ETH Price: $3,424.16 (+4.21%)

Contract

0xB9D9455EA8Ba8e244B3EA9d46Ba106642Cb99B97
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Set Approval For...209934792024-10-18 15:55:2336 days ago1729266923IN
0xB9D9455E...42Cb99B97
0 ETH0.0011877925.58351668
Set Approval For...206930812024-09-06 17:35:5978 days ago1725644159IN
0xB9D9455E...42Cb99B97
0 ETH0.0004855710.44241278
Approve206681792024-09-03 6:12:3581 days ago1725343955IN
0xB9D9455E...42Cb99B97
0 ETH0.000054641.11464054
Set Approval For...206181332024-08-27 6:29:2388 days ago1724740163IN
0xB9D9455E...42Cb99B97
0 ETH0.000021060.85652399
Set Approval For...205530482024-08-18 4:13:1197 days ago1723954391IN
0xB9D9455E...42Cb99B97
0 ETH0.000048781.0510647
Set Approval For...205511912024-08-17 22:00:4797 days ago1723932047IN
0xB9D9455E...42Cb99B97
0 ETH0.000041130.8845803
Set Approval For...203134252024-07-15 17:32:59131 days ago1721064779IN
0xB9D9455E...42Cb99B97
0 ETH0.0012337826.58092102
Safe Transfer Fr...202455222024-07-06 5:56:23140 days ago1720245383IN
0xB9D9455E...42Cb99B97
0 ETH0.000149771.67368389
Set Approval For...202455132024-07-06 5:54:35140 days ago1720245275IN
0xB9D9455E...42Cb99B97
0 ETH0.000068071.46668208
Set Approval For...201869652024-06-28 1:41:23148 days ago1719538883IN
0xB9D9455E...42Cb99B97
0 ETH0.000375138.08195632
Set Approval For...201570272024-06-23 21:19:11152 days ago1719177551IN
0xB9D9455E...42Cb99B97
0 ETH0.000160483.45749993
Set Approval For...200061352024-06-02 19:09:59174 days ago1717355399IN
0xB9D9455E...42Cb99B97
0 ETH0.000396028.53206099
Set Approval For...198281842024-05-08 22:02:11198 days ago1715205731IN
0xB9D9455E...42Cb99B97
0 ETH0.000096933.94239913
Set Approval For...197992412024-05-04 20:51:23202 days ago1714855883IN
0xB9D9455E...42Cb99B97
0 ETH0.000192744.145
Set Approval For...196771132024-04-17 18:54:23220 days ago1713380063IN
0xB9D9455E...42Cb99B97
0 ETH0.0009131319.67288926
Set Approval For...196613492024-04-15 13:56:59222 days ago1713189419IN
0xB9D9455E...42Cb99B97
0 ETH0.0009467420.39694603
Set Approval For...196613492024-04-15 13:56:59222 days ago1713189419IN
0xB9D9455E...42Cb99B97
0 ETH0.0009484520.39694603
Set Approval For...196533012024-04-14 10:53:35223 days ago1713092015IN
0xB9D9455E...42Cb99B97
0 ETH0.0005030910.81932666
Set Approval For...196300692024-04-11 4:41:59226 days ago1712810519IN
0xB9D9455E...42Cb99B97
0 ETH0.0003789915.41397803
Set Approval For...196257972024-04-10 14:22:59227 days ago1712758979IN
0xB9D9455E...42Cb99B97
0 ETH0.0014797731.8231494
Set Approval For...196236242024-04-10 7:04:47227 days ago1712732687IN
0xB9D9455E...42Cb99B97
0 ETH0.0006687114.38092569
Set Approval For...196209502024-04-09 22:05:59227 days ago1712700359IN
0xB9D9455E...42Cb99B97
0 ETH0.0010394522.35391493
Set Approval For...196209352024-04-09 22:02:59227 days ago1712700179IN
0xB9D9455E...42Cb99B97
0 ETH0.0009868821.22876354
Set Approval For...196126362024-04-08 18:09:11229 days ago1712599751IN
0xB9D9455E...42Cb99B97
0 ETH0.0019293341.49107711
Set Approval For...196060202024-04-07 19:53:35229 days ago1712519615IN
0xB9D9455E...42Cb99B97
0 ETH0.0006146213.24162844
View all transactions

Latest 1 internal transaction

Advanced mode:
Parent Transaction Hash Block From To
140731562022-01-25 6:27:101033 days ago1643092030
0xB9D9455E...42Cb99B97
500.76 ETH
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
Blockverse

Compiler Version
v0.8.9+commit.e5eed63a

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, None license
File 1 of 25 : Blockverse.sol
// SPDX-License-Identifier: UNLICENSED

pragma solidity ^0.8.0;

import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import {MerkleProof} from "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol";
import "./interfaces/IBlockverse.sol";
import "./interfaces/IBlockverseStaking.sol";
import "./interfaces/IBlockverseMetadata.sol";

contract Blockverse is IBlockverse, ERC721Enumerable, Ownable, ReentrancyGuard {
    using MerkleProof for bytes32[];

    IBlockverseStaking staking;
    IBlockverseMetadata metadata;

    uint256 public constant price = 0.05 ether;
    uint256 constant mintLimit = 4;
    uint256 constant presaleMintLimit = 3;
    uint256 constant supplyLimit = 10000;
    bytes32 whitelistMerkelRoot;

    // Sale Stages
    // 0 - Nothing enabled
    // 1 - Whitelist
    // 2 - Public sale
    uint8 public saleStage = 0;

    mapping(address => uint256) public minted;
    mapping(address => BlockverseFaction) public walletAssignedMintFaction;
    mapping(BlockverseFaction => uint256) public mintedByFaction;
    mapping(uint256 => BlockverseFaction) public tokenFaction;

    constructor() ERC721("Blockverse", "BLCK")  {}

    // MINT
    function remainingMint(address user) public view returns (uint256) {
        return (saleStage == 1 ? presaleMintLimit : mintLimit) - minted[user];
    }

    function mint(uint256 num, bool autoStake) external override payable nonReentrant requireContractsSet {
        uint256 supply = totalSupply();
        require(tx.origin == _msgSender(), "Only EOA");
        require(saleStage == 2 || _msgSender() == owner(), "Sale not started");
        require(remainingMint(_msgSender()) >= num || _msgSender() == owner(), "Hit mint limit");
        require(supply + num < supplyLimit, "Exceeds maximum supply");
        require(msg.value >= price * num || _msgSender() == owner(), "Ether sent is not correct");
        require(num > 0, "Can't mint 0");

        if (walletAssignedMintFaction[_msgSender()] == BlockverseFaction.UNASSIGNED) {
            BlockverseFaction minFaction = BlockverseFaction.APES;
            uint256 minCount = mintedByFaction[minFaction];

            for (uint256 i = 1; i <= uint256(BlockverseFaction.ALIENS); i++) {
                uint256 iCount = mintedByFaction[BlockverseFaction(i)];
                if (iCount < minCount) {
                    minFaction = BlockverseFaction(i);
                    minCount = iCount;
                }
            }

            walletAssignedMintFaction[_msgSender()] = minFaction;
        }

        minted[_msgSender()] += num;
        mintedByFaction[walletAssignedMintFaction[_msgSender()]] += num;

        for (uint256 i; i < num; i++) {
            address recipient = autoStake && i == 0 ? address(staking) : _msgSender();
            _safeMint(recipient, supply + i + 1);
            tokenFaction[supply + i + 1] = walletAssignedMintFaction[_msgSender()];
        }

        if (autoStake && staking.stakedByUser(_msgSender()) == 0) {
            staking.stake(_msgSender(), supply + 1);
        }
    }

    function whitelistMint(uint256 num, bytes32[] memory proof, bool autoStake) external override payable nonReentrant requireContractsSet {
        uint256 supply = totalSupply();
        require(tx.origin == _msgSender(), "Only EOA");
        require(saleStage == 1 || _msgSender() == owner(), "Pre-sale not started or has ended");
        require(remainingMint(_msgSender()) >= num, "Hit mint limit");
        require(supply + num < supplyLimit, "Exceeds maximum supply");
        require(msg.value >= num * price, "Ether sent is not correct");
        require(whitelistMerkelRoot != 0, "Whitelist not set");
        require(
            proof.verify(whitelistMerkelRoot, keccak256(abi.encodePacked(_msgSender()))),
            "You aren't whitelisted"
        );
        require(num > 0, "Can't mint 0");

        minted[_msgSender()] += num;

        for (uint256 i; i < num; i++) {
            address recipient = autoStake ? address(staking) : _msgSender();
            _safeMint(recipient, supply + i + 1);
            tokenFaction[supply + i + 1] = walletAssignedMintFaction[_msgSender()];
        }

        if (autoStake) {
            staking.stake(_msgSender(), supply + 1);
        }
    }

    // UI LINK/METADATA
    function walletOfUser(address user) public view override returns (uint256[] memory) {
        uint256 tokenCount = balanceOf(user);

        uint256[] memory tokensId = new uint256[](tokenCount);
        for (uint256 i; i < tokenCount; i++) {
            tokensId[i] = tokenOfOwnerByIndex(user, i);
        }
        return tokensId;
    }

    function tokenURI(uint256 tokenId) public view override returns (string memory) {
        return metadata.tokenURI(tokenId, tokenFaction[tokenId]);
    }

    function getTokenFaction(uint256 tokenId) external view override returns (BlockverseFaction) {
        return tokenFaction[tokenId];
    }

    // ADMIN
    function setSaleStage(uint8 val) public onlyOwner {
        saleStage = val;
    }

    function setWhitelistRoot(bytes32 val) public onlyOwner {
        whitelistMerkelRoot = val;
    }

    function withdrawAll(address payable a) public onlyOwner {
        a.transfer(address(this).balance);
    }

    // ALLOW STAKING TO MODIFY
    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public virtual override(ERC721, IERC721) {
        // allow admin contracts to be send without approval
        if(_msgSender() != address(staking) && _msgSender() != owner()) {
            require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved");
        }
        _transfer(from, to, tokenId);
    }

    // SETUP
    modifier requireContractsSet() {
        require(address(staking) != address(0) && address(metadata) != address(0)
        , "Contracts not set");
        _;
    }

    function setContracts(address _staking, address _metadata) external onlyOwner {
        staking = IBlockverseStaking(_staking);
        metadata = IBlockverseMetadata(_metadata);
    }
}

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

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

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

pragma solidity ^0.8.0;

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

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

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

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

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

        _;

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

File 5 of 25 : MerkleProof.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/cryptography/MerkleProof.sol)

pragma solidity ^0.8.0;

/**
 * @dev These functions deal with verification of Merkle Trees proofs.
 *
 * The proofs can be generated using the JavaScript library
 * https://github.com/miguelmota/merkletreejs[merkletreejs].
 * Note: the hashing algorithm should be keccak256 and pair sorting should be enabled.
 *
 * See `test/utils/cryptography/MerkleProof.test.js` for some examples.
 */
library MerkleProof {
    /**
     * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree
     * defined by `root`. For this, a `proof` must be provided, containing
     * sibling hashes on the branch from the leaf to the root of the tree. Each
     * pair of leaves and each pair of pre-images are assumed to be sorted.
     */
    function verify(
        bytes32[] memory proof,
        bytes32 root,
        bytes32 leaf
    ) internal pure returns (bool) {
        return processProof(proof, leaf) == root;
    }

    /**
     * @dev Returns the rebuilt hash obtained by traversing a Merklee tree up
     * from `leaf` using `proof`. A `proof` is valid if and only if the rebuilt
     * hash matches the root of the tree. When processing the proof, the pairs
     * of leafs & pre-images are assumed to be sorted.
     *
     * _Available since v4.4._
     */
    function processProof(bytes32[] memory proof, bytes32 leaf) internal pure returns (bytes32) {
        bytes32 computedHash = leaf;
        for (uint256 i = 0; i < proof.length; i++) {
            bytes32 proofElement = proof[i];
            if (computedHash <= proofElement) {
                // Hash(current computed hash + current element of the proof)
                computedHash = keccak256(abi.encodePacked(computedHash, proofElement));
            } else {
                // Hash(current element of the proof + current computed hash)
                computedHash = keccak256(abi.encodePacked(proofElement, computedHash));
            }
        }
        return computedHash;
    }
}

File 6 of 25 : IBlockverse.sol
// SPDX-License-Identifier: UNLICENSED

pragma solidity ^0.8.0;

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

interface IBlockverse is IERC721Enumerable {
    function mint(uint256 amount, bool autoStake) external payable;
    function whitelistMint(uint256 amount, bytes32[] memory proof, bool autoStake) external payable;
    function walletOfUser(address user) external view returns (uint256[] memory);
    function getTokenFaction(uint256 tokenId) external view returns (BlockverseFaction);

    enum BlockverseFaction {
        UNASSIGNED,
        APES,
        KONGS,
        DOODLERS,
        CATS,
        KAIJUS,
        ALIENS
    }
}

File 7 of 25 : IBlockverseStaking.sol
// SPDX-License-Identifier: UNLICENSED

pragma solidity ^0.8.0;

interface IBlockverseStaking {
    function stake(address from, uint256 tokenId) external;
    function claim(uint256 tokenId, bool unstake, uint256 nonce, uint256 amountV, bytes32 r, bytes32 s) external;
    function stakedByUser(address user) external view returns (uint256);

    event Claim(uint256 indexed _tokenId, uint256 indexed _amount, bool indexed _unstake);
}

File 8 of 25 : IBlockverseMetadata.sol
// SPDX-License-Identifier: UNLICENSED

pragma solidity ^0.8.0;

import "./IBlockverse.sol";

interface IBlockverseMetadata {
    function tokenURI(uint256 tokenId, IBlockverse.BlockverseFaction faction) external view returns (string memory);
}

File 9 of 25 : ERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/ERC721.sol)

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 {
        _setApprovalForAll(_msgSender(), operator, approved);
    }

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

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

        _transfer(from, to, tokenId);
    }

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

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

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

    /**
     * @dev Returns whether `tokenId` exists.
     *
     * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}.
     *
     * Tokens start existing when they are minted (`_mint`),
     * and stop existing when they are burned (`_burn`).
     */
    function _exists(uint256 tokenId) internal view virtual returns (bool) {
        return _owners[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 Approve `operator` to operate on all of `owner` tokens
     *
     * Emits a {ApprovalForAll} event.
     */
    function _setApprovalForAll(
        address owner,
        address operator,
        bool approved
    ) internal virtual {
        require(owner != operator, "ERC721: approve to caller");
        _operatorApprovals[owner][operator] = approved;
        emit ApprovalForAll(owner, operator, approved);
    }

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

pragma solidity ^0.8.0;

import "../IERC721.sol";

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

pragma solidity ^0.8.0;

import "./IERC165.sol";

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

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

pragma solidity ^0.8.0;

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

File 19 of 25 : BlockverseMetadata.sol
// SPDX-License-Identifier: UNLICENSED

pragma solidity ^0.8.0;

import "./interfaces/IBlockverseMetadata.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/Strings.sol";

struct BlockverseToken {
    IBlockverse.BlockverseFaction faction;
    uint8 bottom;
    uint8 eye;
    uint8 mouth;
    uint8 top;
}

contract BlockverseMetadata is IBlockverseMetadata, Ownable {
    using Strings for uint256;
    using Strings for uint8;

    string public cdnUrl;
    uint256[] public tidBreakpoints;
    uint256[] public seedBreakpoints;
    mapping(uint256 => uint8[]) public traitProbabilities;
    mapping(uint256 => uint8[]) public traitAliases;
    mapping(uint256 => mapping(uint8 => string)) public traitNames;

    function tokenURI(uint256 tokenId, IBlockverse.BlockverseFaction faction) external view override returns (string memory) {
        BlockverseToken memory tokenStruct = getTokenMetadata(tokenId, faction);

        string memory metadata;
        if (tokenStruct.faction == IBlockverse.BlockverseFaction.UNASSIGNED) {
            metadata = string(abi.encodePacked(
                '{',
                    '"name":"Blockverse #???",',
                    '"description":"",',
                    '"image":"', cdnUrl, '/unknown",',
                    '"attributes":[',
                        attributeForTypeAndValue("Faction", "???"),',',
                        attributeForTypeAndValue("Bottom", "???"),',',
                        attributeForTypeAndValue("Eye", "???"),',',
                        attributeForTypeAndValue("Mouth", "???"),',',
                        attributeForTypeAndValue("Top", "???"),
                    ']',
                "}"
            ));
        } else {
            string memory queryParams = string(abi.encodePacked(
                    "?base=",uint256(faction).toString(),
                    "&bottoms=",tokenStruct.bottom.toString(),
                    "&eyes=",tokenStruct.eye.toString(),
                    "&mouths=",tokenStruct.mouth.toString(),
                    "&tops=",tokenStruct.top.toString()
                ));
            metadata = string(abi.encodePacked(
                '{',
                    '"name":"Blockverse #',tokenId.toString(),'",',
                    '"description":"",',
                    '"image":"', cdnUrl, '/token',queryParams,'",',
                    '"skinImage":"', cdnUrl, '/skin',queryParams,'",',
                    '"attributes":[',
                        attributeForTypeAndValue("Faction", factionToString(faction)),',',
                        attributeForTypeAndValue("Bottom", traitNames[0][tokenStruct.bottom]),',',
                        attributeForTypeAndValue("Eye", traitNames[1][tokenStruct.eye]),',',
                        attributeForTypeAndValue("Mouth", traitNames[2][tokenStruct.mouth]),',',
                        attributeForTypeAndValue("Top", traitNames[3][tokenStruct.top]),
                    ']',
                "}"
            ));
        }

        return string(abi.encodePacked(
            "data:application/json;base64,",
            base64(bytes(metadata))
        ));
    }

    // METADATA/SEEDING
    function getTokenMetadata(uint256 tid, IBlockverse.BlockverseFaction faction) internal view returns (BlockverseToken memory tokenMetadata) {
        uint256 seed = getTokenSeed(tid);

        if (seed == 0) {
            tokenMetadata.faction = IBlockverse.BlockverseFaction.UNASSIGNED;
        } else {
            tokenMetadata.faction = faction;
            tokenMetadata.bottom = getTraitValue(seed, 0);
            tokenMetadata.eye = getTraitValue(seed, 1);
            tokenMetadata.mouth = getTraitValue(seed, 2);
            tokenMetadata.top = getTraitValue(seed, 3);
        }
    }

    function getTraitValue(uint256 seed, uint256 trait) public view returns (uint8 traitValue) {
        uint8 n = uint8(traitProbabilities[trait].length);

        uint16 traitSeed = uint16(seed >> trait * 16);
        traitValue = uint8(traitSeed) % n;
        uint8 rand = uint8(traitSeed >> 8);

        if (traitProbabilities[trait][traitValue] < rand) {
            traitValue = traitAliases[trait][traitValue];
        }
    }

    function getTokenSeed(uint256 tid) public view returns (uint256 seed) {
        require(tidBreakpoints.length == seedBreakpoints.length, "Invalid state");

        uint256 rangeSeed = 0;
        for (uint256 i; i < tidBreakpoints.length; i++) {
            if (tidBreakpoints[i] > tid) {
                rangeSeed = seedBreakpoints[i];
            }
        }

        seed = rangeSeed == 0 ? 0 : uint256(keccak256(abi.encodePacked(tid, rangeSeed)));
    }

    function addBreakpoint(uint256 seed, uint256 tid) external onlyOwner {
        require(seed != 0, "Seed can't be 0");
        require(tid != 0, "Token ID can't be 0");

        seedBreakpoints.push(seed);
        tidBreakpoints.push(tid);
    }

    // TRAIT UPLOAD
    function uploadTraitNames(uint8 traitType, uint8[] calldata traitIds, string[] calldata newTraitNames) external onlyOwner {
        require(traitIds.length == newTraitNames.length, "Mismatched inputs");
        for (uint i = 0; i < traitIds.length; i++) {
            traitNames[traitType][traitIds[i]] = newTraitNames[i];
        }
    }

    function uploadTraitProbabilities(uint8 traitType, uint8[] calldata newTraitProbabilities) external onlyOwner {
        delete traitProbabilities[traitType];
        for (uint i = 0; i < newTraitProbabilities.length; i++) {
            traitProbabilities[traitType].push(newTraitProbabilities[i]);
        }
    }

    function uploadTraitAliases(uint8 traitType, uint8[] calldata newTraitAliases) external onlyOwner {
        delete traitAliases[traitType];
        for (uint i = 0; i < newTraitAliases.length; i++) {
            traitAliases[traitType].push(newTraitAliases[i]);
        }
    }

    function setCdnUri(string memory newCdnUri) external onlyOwner {
        cdnUrl = newCdnUri;
    }

    // JSON Representation
    function factionToString(IBlockverse.BlockverseFaction faction) internal pure returns (string memory factionString) {
        factionString = "???";
        if (faction == IBlockverse.BlockverseFaction.APES) {
            factionString = "Apes";
        } else if (faction == IBlockverse.BlockverseFaction.KONGS) {
            factionString = "Kongs";
        } else if (faction == IBlockverse.BlockverseFaction.DOODLERS) {
            factionString = "Doodlers";
        } else if (faction == IBlockverse.BlockverseFaction.CATS) {
            factionString = "Cats";
        } else if (faction == IBlockverse.BlockverseFaction.KAIJUS) {
            factionString = "Kaijus";
        } else if (faction == IBlockverse.BlockverseFaction.ALIENS) {
            factionString = "Aliens";
        }
    }

    function attributeForTypeAndValue(string memory traitType, string memory value) internal pure returns (string memory) {
        return string(abi.encodePacked(
            '{"trait_type":"',
            traitType,
            '","value":"',
            value,
            '"}'
        ));
    }

    /** BASE 64 - Written by Brech Devos */
    string internal constant TABLE = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/';

    function base64(bytes memory data) internal pure returns (string memory) {
        if (data.length == 0) return '';

        // load the table into memory
        string memory table = TABLE;

        // multiply by 4/3 rounded up
        uint256 encodedLen = 4 * ((data.length + 2) / 3);

        // add some extra buffer at the end required for the writing
        string memory result = new string(encodedLen + 32);

        assembly {
            // set the actual output length
            mstore(result, encodedLen)

            // prepare the lookup table
            let tablePtr := add(table, 1)

            // input ptr
            let dataPtr := data
            let endPtr := add(dataPtr, mload(data))

            // result ptr, jump over length
            let resultPtr := add(result, 32)

            // run over the input, 3 bytes at a time
            for {} lt(dataPtr, endPtr) {}
            {
                dataPtr := add(dataPtr, 3)

                // read 3 bytes
                let input := mload(dataPtr)

                // write 4 characters
                mstore(resultPtr, shl(248, mload(add(tablePtr, and(shr(18, input), 0x3F)))))
                resultPtr := add(resultPtr, 1)
                mstore(resultPtr, shl(248, mload(add(tablePtr, and(shr(12, input), 0x3F)))))
                resultPtr := add(resultPtr, 1)
                mstore(resultPtr, shl(248, mload(add(tablePtr, and(shr( 6, input), 0x3F)))))
                resultPtr := add(resultPtr, 1)
                mstore(resultPtr, shl(248, mload(add(tablePtr, and(        input,  0x3F)))))
                resultPtr := add(resultPtr, 1)
            }

            // padding with '='
            switch mod(mload(data), 3)
            case 1 { mstore(sub(resultPtr, 2), shl(240, 0x3d3d)) }
            case 2 { mstore(sub(resultPtr, 1), shl(248, 0x3d)) }
        }

        return result;
    }
}

File 20 of 25 : BlockverseStaking.sol
// SPDX-License-Identifier: UNLICENSED

pragma solidity ^0.8.0;

import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol";
import "./interfaces/IBlockverseStaking.sol";
import "./interfaces/IBlockverseDiamonds.sol";
import "./interfaces/IBlockverse.sol";

contract BlockverseStaking is IBlockverseStaking, IERC721Receiver, Ownable, ReentrancyGuard {
    IBlockverse blockverse;
    IBlockverseDiamonds diamonds;
    address signer;

    mapping(address => uint256) public userStake;
    mapping(address => uint256) public userUnstakeTime;
    mapping(address => IBlockverse.BlockverseFaction) public userUnstakeFaction;
    mapping(uint256 => address) public tokenStakedBy;
    mapping(uint256 => bool) public nonceUsed;

    uint256 unstakeFactionChangeTime = 3 days;

    function stake(address from, uint256 tokenId) external override requireContractsSet nonReentrant {
        require(tx.origin == _msgSender() || _msgSender() == address(blockverse), "Only EOA");
        require(userStake[from] == 0, "Must not be staking already");
        require(userUnstakeFaction[from] == blockverse.getTokenFaction(tokenId) || block.timestamp - userUnstakeTime[from] > unstakeFactionChangeTime, "Can't switch faction yet");
        if (_msgSender() != address(blockverse)) {
            require(blockverse.ownerOf(tokenId) == _msgSender(), "Must own this token");
            require(_msgSender() == from, "Must stake from yourself");
            blockverse.transferFrom(_msgSender(), address(this), tokenId);
        }

        userStake[from] = tokenId;
        tokenStakedBy[tokenId] = from;
    }

    bytes32 constant public MINT_CALL_HASH_TYPE = keccak256("mint(address to,uint256 amount)");

    function claim(uint256 tokenId, bool unstake, uint256 nonce, uint256 amountV, bytes32 r, bytes32 s) external override requireContractsSet nonReentrant {
        require(tx.origin == _msgSender(), "Only EOA");
        require(userStake[_msgSender()] == tokenId, "Must own this token");
        require(tokenStakedBy[tokenId] == _msgSender(), "Must own this token");
        require(!nonceUsed[nonce], "Claim already used");

        nonceUsed[nonce] = true;
        uint256 amount = uint248(amountV >> 8);
        uint8 v = uint8(amountV);

        bytes32 digest = keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32",
            keccak256(abi.encode(MINT_CALL_HASH_TYPE, nonce, _msgSender(), amount))
        ));

        address signedBy = ecrecover(digest, v, r, s);
        require(signedBy == signer, "Invalid signer");

        if (unstake) {
            userStake[_msgSender()] = 0;
            tokenStakedBy[tokenId] = address(0);
            userUnstakeFaction[_msgSender()] = blockverse.getTokenFaction(tokenId);
            userUnstakeTime[_msgSender()] = block.timestamp;

            blockverse.safeTransferFrom(address(this), _msgSender(), tokenId, "");
        }

        diamonds.mint(_msgSender(), amount);

        emit Claim(tokenId, amount, unstake);
    }

    function stakedByUser(address user) external view override returns (uint256) {
        return userStake[user];
    }

    // SETUP
    modifier requireContractsSet() {
        require(address(blockverse) != address(0) && address(diamonds) != address(0) &&
            address(signer) != address(0),
            "Contracts not set");
        _;
    }

    function setContracts(address _blockverse, address _diamonds, address _signer) external onlyOwner {
        blockverse = IBlockverse(_blockverse);
        diamonds = IBlockverseDiamonds(_diamonds);
        signer = _signer;
    }

    function onERC721Received(
        address,
        address from,
        uint256,
        bytes calldata
    ) external pure override returns (bytes4) {
      require(from == address(0x0), "Cannot send to BlockverseStaking directly");
      return IERC721Receiver.onERC721Received.selector;
    }
}

File 21 of 25 : IBlockverseDiamonds.sol
// SPDX-License-Identifier: UNLICENSED

pragma solidity ^0.8.0;

interface IBlockverseDiamonds {
    function mint(address to, uint256 amount) external;
}

File 22 of 25 : BlockverseDiamonds.sol
// SPDX-License-Identifier: UNLICENSED

pragma solidity ^0.8.0;

import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "./interfaces/IBlockverseDiamonds.sol";
import "./interfaces/IBlockverseStaking.sol";

contract BlockverseDiamonds is ERC20, IBlockverseDiamonds, Ownable, ReentrancyGuard {
    IBlockverseStaking staking;

    constructor() ERC20("Blockverse Diamonds", "DIAMOND") {}

    function decimals() public view virtual override returns (uint8) {
        return 0;
    }

    function mint(address to, uint256 amount) external override nonReentrant requireContractsSet {
        require(_msgSender() == address(staking) || _msgSender() == owner(), "Not authorized");

        _mint(to, amount);
    }

    // SETUP
    modifier requireContractsSet() {
        require(address(staking) != address(0), "Contracts not set");
        _;
    }

    function setContracts(address _staking) external onlyOwner {
        staking = IBlockverseStaking(_staking);
    }
}

File 23 of 25 : ERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/ERC20.sol)

pragma solidity ^0.8.0;

import "./IERC20.sol";
import "./extensions/IERC20Metadata.sol";
import "../../utils/Context.sol";

/**
 * @dev Implementation of the {IERC20} interface.
 *
 * This implementation is agnostic to the way tokens are created. This means
 * that a supply mechanism has to be added in a derived contract using {_mint}.
 * For a generic mechanism see {ERC20PresetMinterPauser}.
 *
 * TIP: For a detailed writeup see our guide
 * https://forum.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How
 * to implement supply mechanisms].
 *
 * We have followed general OpenZeppelin Contracts guidelines: functions revert
 * instead returning `false` on failure. This behavior is nonetheless
 * conventional and does not conflict with the expectations of ERC20
 * applications.
 *
 * Additionally, an {Approval} event is emitted on calls to {transferFrom}.
 * This allows applications to reconstruct the allowance for all accounts just
 * by listening to said events. Other implementations of the EIP may not emit
 * these events, as it isn't required by the specification.
 *
 * Finally, the non-standard {decreaseAllowance} and {increaseAllowance}
 * functions have been added to mitigate the well-known issues around setting
 * allowances. See {IERC20-approve}.
 */
contract ERC20 is Context, IERC20, IERC20Metadata {
    mapping(address => uint256) private _balances;

    mapping(address => mapping(address => uint256)) private _allowances;

    uint256 private _totalSupply;

    string private _name;
    string private _symbol;

    /**
     * @dev Sets the values for {name} and {symbol}.
     *
     * The default value of {decimals} is 18. To select a different value for
     * {decimals} you should overload it.
     *
     * All two of these values are immutable: they can only be set once during
     * construction.
     */
    constructor(string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
    }

    /**
     * @dev Returns the name of the token.
     */
    function name() public view virtual override returns (string memory) {
        return _name;
    }

    /**
     * @dev Returns the symbol of the token, usually a shorter version of the
     * name.
     */
    function symbol() public view virtual override returns (string memory) {
        return _symbol;
    }

    /**
     * @dev Returns the number of decimals used to get its user representation.
     * For example, if `decimals` equals `2`, a balance of `505` tokens should
     * be displayed to a user as `5.05` (`505 / 10 ** 2`).
     *
     * Tokens usually opt for a value of 18, imitating the relationship between
     * Ether and Wei. This is the value {ERC20} uses, unless this function is
     * overridden;
     *
     * NOTE: This information is only used for _display_ purposes: it in
     * no way affects any of the arithmetic of the contract, including
     * {IERC20-balanceOf} and {IERC20-transfer}.
     */
    function decimals() public view virtual override returns (uint8) {
        return 18;
    }

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

    /**
     * @dev See {IERC20-balanceOf}.
     */
    function balanceOf(address account) public view virtual override returns (uint256) {
        return _balances[account];
    }

    /**
     * @dev See {IERC20-transfer}.
     *
     * Requirements:
     *
     * - `recipient` cannot be the zero address.
     * - the caller must have a balance of at least `amount`.
     */
    function transfer(address recipient, uint256 amount) public virtual override returns (bool) {
        _transfer(_msgSender(), recipient, amount);
        return true;
    }

    /**
     * @dev See {IERC20-allowance}.
     */
    function allowance(address owner, address spender) public view virtual override returns (uint256) {
        return _allowances[owner][spender];
    }

    /**
     * @dev See {IERC20-approve}.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function approve(address spender, uint256 amount) public virtual override returns (bool) {
        _approve(_msgSender(), spender, amount);
        return true;
    }

    /**
     * @dev See {IERC20-transferFrom}.
     *
     * Emits an {Approval} event indicating the updated allowance. This is not
     * required by the EIP. See the note at the beginning of {ERC20}.
     *
     * Requirements:
     *
     * - `sender` and `recipient` cannot be the zero address.
     * - `sender` must have a balance of at least `amount`.
     * - the caller must have allowance for ``sender``'s tokens of at least
     * `amount`.
     */
    function transferFrom(
        address sender,
        address recipient,
        uint256 amount
    ) public virtual override returns (bool) {
        _transfer(sender, recipient, amount);

        uint256 currentAllowance = _allowances[sender][_msgSender()];
        require(currentAllowance >= amount, "ERC20: transfer amount exceeds allowance");
        unchecked {
            _approve(sender, _msgSender(), currentAllowance - amount);
        }

        return true;
    }

    /**
     * @dev Atomically increases the allowance granted to `spender` by the caller.
     *
     * This is an alternative to {approve} that can be used as a mitigation for
     * problems described in {IERC20-approve}.
     *
     * Emits an {Approval} event indicating the updated allowance.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) {
        _approve(_msgSender(), spender, _allowances[_msgSender()][spender] + addedValue);
        return true;
    }

    /**
     * @dev Atomically decreases the allowance granted to `spender` by the caller.
     *
     * This is an alternative to {approve} that can be used as a mitigation for
     * problems described in {IERC20-approve}.
     *
     * Emits an {Approval} event indicating the updated allowance.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     * - `spender` must have allowance for the caller of at least
     * `subtractedValue`.
     */
    function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) {
        uint256 currentAllowance = _allowances[_msgSender()][spender];
        require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero");
        unchecked {
            _approve(_msgSender(), spender, currentAllowance - subtractedValue);
        }

        return true;
    }

    /**
     * @dev Moves `amount` of tokens from `sender` to `recipient`.
     *
     * This internal function is equivalent to {transfer}, and can be used to
     * e.g. implement automatic token fees, slashing mechanisms, etc.
     *
     * Emits a {Transfer} event.
     *
     * Requirements:
     *
     * - `sender` cannot be the zero address.
     * - `recipient` cannot be the zero address.
     * - `sender` must have a balance of at least `amount`.
     */
    function _transfer(
        address sender,
        address recipient,
        uint256 amount
    ) internal virtual {
        require(sender != address(0), "ERC20: transfer from the zero address");
        require(recipient != address(0), "ERC20: transfer to the zero address");

        _beforeTokenTransfer(sender, recipient, amount);

        uint256 senderBalance = _balances[sender];
        require(senderBalance >= amount, "ERC20: transfer amount exceeds balance");
        unchecked {
            _balances[sender] = senderBalance - amount;
        }
        _balances[recipient] += amount;

        emit Transfer(sender, recipient, amount);

        _afterTokenTransfer(sender, recipient, amount);
    }

    /** @dev Creates `amount` tokens and assigns them to `account`, increasing
     * the total supply.
     *
     * Emits a {Transfer} event with `from` set to the zero address.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     */
    function _mint(address account, uint256 amount) internal virtual {
        require(account != address(0), "ERC20: mint to the zero address");

        _beforeTokenTransfer(address(0), account, amount);

        _totalSupply += amount;
        _balances[account] += amount;
        emit Transfer(address(0), account, amount);

        _afterTokenTransfer(address(0), account, amount);
    }

    /**
     * @dev Destroys `amount` tokens from `account`, reducing the
     * total supply.
     *
     * Emits a {Transfer} event with `to` set to the zero address.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     * - `account` must have at least `amount` tokens.
     */
    function _burn(address account, uint256 amount) internal virtual {
        require(account != address(0), "ERC20: burn from the zero address");

        _beforeTokenTransfer(account, address(0), amount);

        uint256 accountBalance = _balances[account];
        require(accountBalance >= amount, "ERC20: burn amount exceeds balance");
        unchecked {
            _balances[account] = accountBalance - amount;
        }
        _totalSupply -= amount;

        emit Transfer(account, address(0), amount);

        _afterTokenTransfer(account, address(0), amount);
    }

    /**
     * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens.
     *
     * This internal function is equivalent to `approve`, and can be used to
     * e.g. set automatic allowances for certain subsystems, etc.
     *
     * Emits an {Approval} event.
     *
     * Requirements:
     *
     * - `owner` cannot be the zero address.
     * - `spender` cannot be the zero address.
     */
    function _approve(
        address owner,
        address spender,
        uint256 amount
    ) internal virtual {
        require(owner != address(0), "ERC20: approve from the zero address");
        require(spender != address(0), "ERC20: approve to the zero address");

        _allowances[owner][spender] = amount;
        emit Approval(owner, spender, amount);
    }

    /**
     * @dev Hook that is called before any transfer of tokens. This includes
     * minting and burning.
     *
     * Calling conditions:
     *
     * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
     * will be transferred to `to`.
     * - when `from` is zero, `amount` tokens will be minted for `to`.
     * - when `to` is zero, `amount` of ``from``'s tokens 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 amount
    ) internal virtual {}

    /**
     * @dev Hook that is called after any transfer of tokens. This includes
     * minting and burning.
     *
     * Calling conditions:
     *
     * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
     * has been transferred to `to`.
     * - when `from` is zero, `amount` tokens have been minted for `to`.
     * - when `to` is zero, `amount` of ``from``'s tokens have been 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 _afterTokenTransfer(
        address from,
        address to,
        uint256 amount
    ) internal virtual {}
}

File 24 of 25 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

File 25 of 25 : IERC20Metadata.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol)

pragma solidity ^0.8.0;

import "../IERC20.sol";

/**
 * @dev Interface for the optional metadata functions from the ERC20 standard.
 *
 * _Available since v4.1._
 */
interface IERC20Metadata is IERC20 {
    /**
     * @dev Returns the name of the token.
     */
    function name() external view returns (string memory);

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

    /**
     * @dev Returns the decimals places of the token.
     */
    function decimals() external view returns (uint8);
}

Settings
{
  "optimizer": {
    "enabled": true,
    "runs": 200,
    "details": {
      "yul": true,
      "yulDetails": {
        "stackAllocation": true,
        "optimizerSteps": "dhfoDgvulfnTUtnIf"
      }
    }
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "abi"
      ]
    }
  },
  "metadata": {
    "useLiteralContent": true
  }
}

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getTokenFaction","outputs":[{"internalType":"enum IBlockverse.BlockverseFaction","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"num","type":"uint256"},{"internalType":"bool","name":"autoStake","type":"bool"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"minted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"enum IBlockverse.BlockverseFaction","name":"","type":"uint8"}],"name":"mintedByFaction","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"price","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"}],"name":"remainingMint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"saleStage","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_staking","type":"address"},{"internalType":"address","name":"_metadata","type":"address"}],"name":"setContracts","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint8","name":"val","type":"uint8"}],"name":"setSaleStage","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"val","type":"bytes32"}],"name":"setWhitelistRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"tokenFaction","outputs":[{"internalType":"enum IBlockverse.BlockverseFaction","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"walletAssignedMintFaction","outputs":[{"internalType":"enum IBlockverse.BlockverseFaction","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"}],"name":"walletOfUser","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"num","type":"uint256"},{"internalType":"bytes32[]","name":"proof","type":"bytes32[]"},{"internalType":"bool","name":"autoStake","type":"bool"}],"name":"whitelistMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address payable","name":"a","type":"address"}],"name":"withdrawAll","outputs":[],"stateMutability":"nonpayable","type":"function"}]

6080604052600f805460ff191690553480156200001b57600080fd5b50604080518082018252600a815269426c6f636b766572736560b01b602080830191825283518085019094526004845263424c434b60e01b9084015281519192916200006a91600091620000fe565b50805162000080906001906020840190620000fe565b5050506200009d62000097620000a860201b60201c565b620000ac565b6001600b55620001eb565b3390565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b8280546200010c90620001ba565b90600052602060002090601f0160209004810192826200013057600085556200017b565b82601f106200014b57805160ff19168380011785556200017b565b828001600101855582156200017b579182015b828111156200017b5782518255916020019190600101906200015e565b50620001899291506200018d565b5090565b5b808211156200018957600081556001016200018e565b634e487b7160e01b600052602260045260246000fd5b600281046001821680620001cf57607f821691505b60208210811415620001e557620001e5620001a4565b50919050565b612fc380620001fb6000396000f3fe6080604052600436106101f95760003560e01c8063715018a61161010d578063b44c5767116100a0578063db67f6171161006f578063db67f617146105eb578063e985e9c51461061b578063f2fde38b14610664578063f5aa406d14610684578063fa09e630146106a457600080fd5b8063b44c57671461056b578063b88d4fde1461058b578063c87b56dd146105ab578063d8952a49146105cb57600080fd5b8063969ee813116100dc578063969ee813146104d3578063a035b1fe14610503578063a22cb4651461051e578063b20060d51461053e57600080fd5b8063715018a61461044e57806386e34a3b146104635780638da5cb5b146104a057806395d89b41146104be57600080fd5b80632f745c59116101905780634f6ccce71161015f5780634f6ccce7146103c857806360e8c102146103e85780636352211e146103fb57806367f68fac1461041b57806370a082311461042e57600080fd5b80632f745c591461034157806337c056a71461036157806342842e0e146103815780634aaca86d146103a157600080fd5b80630fd048c6116101cc5780630fd048c6146102a557806318160ddd146102df5780631e7269c5146102f457806323b872dd1461032157600080fd5b806301ffc9a7146101fe57806306fdde0314610234578063081812fc14610256578063095ea7b314610283575b600080fd5b34801561020a57600080fd5b5061021e610219366004611ed8565b6106c4565b60405161022b9190611f03565b60405180910390f35b34801561024057600080fd5b506102496106ef565b60405161022b9190611f6f565b34801561026257600080fd5b50610276610271366004611f91565b610781565b60405161022b9190611fcc565b34801561028f57600080fd5b506102a361029e366004611fee565b6107da565b005b3480156102b157600080fd5b506102d26102c0366004612043565b60126020526000908152604090205481565b60405161022b919061206a565b3480156102eb57600080fd5b506008546102d2565b34801561030057600080fd5b506102d261030f366004612078565b60106020526000908152604090205481565b34801561032d57600080fd5b506102a361033c366004612099565b610860565b34801561034d57600080fd5b506102d261035c366004611fee565b6108c5565b34801561036d57600080fd5b506102d261037c366004612078565b610917565b34801561038d57600080fd5b506102a361039c366004612099565b610951565b3480156103ad57600080fd5b50600f546103bb9060ff1681565b60405161022b91906120f2565b3480156103d457600080fd5b506102d26103e3366004611f91565b61096c565b6102a36103f6366004612218565b6109ba565b34801561040757600080fd5b50610276610416366004611f91565b610d00565b6102a3610429366004612279565b610d35565b34801561043a57600080fd5b506102d2610449366004612078565b611218565b34801561045a57600080fd5b506102a361125c565b34801561046f57600080fd5b5061049361047e366004611f91565b60136020526000908152604090205460ff1681565b60405161022b91906122f0565b3480156104ac57600080fd5b50600a546001600160a01b0316610276565b3480156104ca57600080fd5b50610249611292565b3480156104df57600080fd5b506104936104ee366004612078565b60116020526000908152604090205460ff1681565b34801561050f57600080fd5b506102d266b1a2bc2ec5000081565b34801561052a57600080fd5b506102a36105393660046122fe565b6112a1565b34801561054a57600080fd5b5061055e610559366004612078565b6112b0565b60405161022b919061237e565b34801561057757600080fd5b506102a36105863660046123a3565b611352565b34801561059757600080fd5b506102a36105a6366004612454565b611392565b3480156105b757600080fd5b506102496105c6366004611f91565b6113ca565b3480156105d757600080fd5b506102a36105e63660046124d3565b611465565b3480156105f757600080fd5b50610493610606366004611f91565b60009081526013602052604090205460ff1690565b34801561062757600080fd5b5061021e6106363660046124d3565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b34801561067057600080fd5b506102a361067f366004612078565b6114bd565b34801561069057600080fd5b506102a361069f366004611f91565b611519565b3480156106b057600080fd5b506102a36106bf366004612078565b611548565b60006001600160e01b0319821663780e9d6360e01b14806106e957506106e9826115a7565b92915050565b6060600080546106fe9061251c565b80601f016020809104026020016040519081016040528092919081815260200182805461072a9061251c565b80156107775780601f1061074c57610100808354040283529160200191610777565b820191906000526020600020905b81548152906001019060200180831161075a57829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b03166107be5760405162461bcd60e51b81526004016107b590612592565b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b60006107e582610d00565b9050806001600160a01b0316836001600160a01b031614156108195760405162461bcd60e51b81526004016107b5906125de565b336001600160a01b038216148061083557506108358133610636565b6108515760405162461bcd60e51b81526004016107b590612646565b61085b83836115f7565b505050565b600c546001600160a01b0316336001600160a01b03161415801561088f5750600a546001600160a01b03163314155b156108ba5761089e3382611665565b6108ba5760405162461bcd60e51b81526004016107b5906126a2565b61085b838383611717565b60006108d083611218565b82106108ee5760405162461bcd60e51b81526004016107b5906126f8565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b6001600160a01b038116600090815260106020526040812054600f5460ff16600114610944576004610947565b60035b6106e9919061271e565b61085b83838360405180602001604052806000815250611392565b600061097760085490565b82106109955760405162461bcd60e51b81526004016107b59061277c565b600882815481106109a8576109a861278c565b90600052602060002001549050919050565b6002600b5414156109dd5760405162461bcd60e51b81526004016107b5906127d4565b6002600b55600c546001600160a01b031615801590610a065750600d546001600160a01b031615155b610a225760405162461bcd60e51b81526004016107b59061280a565b6000610a2d60085490565b9050323314610a4e5760405162461bcd60e51b81526004016107b590612837565b600f5460ff1660011480610a6c5750600a546001600160a01b031633145b610a885760405162461bcd60e51b81526004016107b590612883565b83610a9233610917565b1015610ab05760405162461bcd60e51b81526004016107b5906128b6565b612710610abd85836128c6565b10610ada5760405162461bcd60e51b81526004016107b590612909565b610aeb66b1a2bc2ec5000085612919565b341015610b0a5760405162461bcd60e51b81526004016107b59061296a565b600e54610b295760405162461bcd60e51b81526004016107b5906129a0565b610b6c600e54610b363390565b604051602001610b4691906129d8565b60405160208183030381529060405280519060200120856118449092919063ffffffff16565b610b885760405162461bcd60e51b81526004016107b590612a15565b60008411610ba85760405162461bcd60e51b81526004016107b590612a46565b3360009081526010602052604081208054869290610bc79084906128c6565b90915550600090505b84811015610c8157600083610be55733610bf2565b600c546001600160a01b03165b9050610c1281610c0284866128c6565b610c0d9060016128c6565b61185c565b3360009081526011602052604081205460ff1690601390610c3385876128c6565b610c3e9060016128c6565b81526020810191909152604001600020805460ff19166001836006811115610c6857610c686122ac565b0217905550508080610c7990612a56565b915050610bd0565b508115610cf557600c546001600160a01b031663adc9772e33610ca58460016128c6565b6040518363ffffffff1660e01b8152600401610cc2929190612a71565b600060405180830381600087803b158015610cdc57600080fd5b505af1158015610cf0573d6000803e3d6000fd5b505050505b50506001600b555050565b6000818152600260205260408120546001600160a01b0316806106e95760405162461bcd60e51b81526004016107b590612ad0565b6002600b541415610d585760405162461bcd60e51b81526004016107b5906127d4565b6002600b55600c546001600160a01b031615801590610d815750600d546001600160a01b031615155b610d9d5760405162461bcd60e51b81526004016107b59061280a565b6000610da860085490565b9050323314610dc95760405162461bcd60e51b81526004016107b590612837565b600f5460ff1660021480610de75750600a546001600160a01b031633145b610e035760405162461bcd60e51b81526004016107b590612b05565b82610e0d33610917565b101580610e245750600a546001600160a01b031633145b610e405760405162461bcd60e51b81526004016107b5906128b6565b612710610e4d84836128c6565b10610e6a5760405162461bcd60e51b81526004016107b590612909565b610e7b8366b1a2bc2ec50000612919565b34101580610e935750600a546001600160a01b031633145b610eaf5760405162461bcd60e51b81526004016107b59061296a565b60008311610ecf5760405162461bcd60e51b81526004016107b590612a46565b3360009081526011602052604081205460ff166006811115610ef357610ef36122ac565b1415610fe4576001600081905260126020527f71a67924699a20698523213e55fe499d539379d7769cd5567e2c45d583f815a354815b60068111610faf57600060126000836006811115610f4957610f496122ac565b6006811115610f5a57610f5a6122ac565b6006811115610f6b57610f6b6122ac565b815260200190815260200160002054905082811015610f9c57816006811115610f9657610f966122ac565b93508092505b5080610fa781612a56565b915050610f29565b50336000908152601160205260409020805483919060ff19166001836006811115610fdc57610fdc6122ac565b021790555050505b33600090815260106020526040812080548592906110039084906128c6565b909155505033600090815260116020526040812054849160129160ff166006811115611031576110316122ac565b6006811115611042576110426122ac565b8152602001908152602001600020600082825461105f91906128c6565b90915550600090505b8381101561111357600083801561107d575081155b6110875733611094565b600c546001600160a01b03165b90506110a481610c0284866128c6565b3360009081526011602052604081205460ff16906013906110c585876128c6565b6110d09060016128c6565b81526020810191909152604001600020805460ff191660018360068111156110fa576110fa6122ac565b021790555050808061110b90612a56565b915050611068565b5081801561119c5750600c546001600160a01b031663b7614de7336040518263ffffffff1660e01b815260040161114a9190611fcc565b60206040518083038186803b15801561116257600080fd5b505afa158015611176573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061119a9190612b20565b155b1561120e57600c546001600160a01b031663adc9772e336111be8460016128c6565b6040518363ffffffff1660e01b81526004016111db929190612a71565b600060405180830381600087803b1580156111f557600080fd5b505af1158015611209573d6000803e3d6000fd5b505050505b50506001600b5550565b60006001600160a01b0382166112405760405162461bcd60e51b81526004016107b590612b86565b506001600160a01b031660009081526003602052604090205490565b600a546001600160a01b031633146112865760405162461bcd60e51b81526004016107b590612bc6565b6112906000611876565b565b6060600180546106fe9061251c565b6112ac3383836118c8565b5050565b606060006112bd83611218565b905060008167ffffffffffffffff8111156112da576112da612100565b604051908082528060200260200182016040528015611303578160200160208202803683370190505b50905060005b8281101561134a5761131b85826108c5565b82828151811061132d5761132d61278c565b60209081029190910101528061134281612a56565b915050611309565b509392505050565b600a546001600160a01b0316331461137c5760405162461bcd60e51b81526004016107b590612bc6565b600f805460ff191660ff92909216919091179055565b61139c3383611665565b6113b85760405162461bcd60e51b81526004016107b5906126a2565b6113c48484848461196b565b50505050565b600d5460008281526013602052604090819020549051632e628c5d60e11b81526060926001600160a01b031691635cc518ba9161141191869160ff90911690600401612bd6565b60006040518083038186803b15801561142957600080fd5b505afa15801561143d573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526106e99190810190612c49565b600a546001600160a01b0316331461148f5760405162461bcd60e51b81526004016107b590612bc6565b600c80546001600160a01b039384166001600160a01b031991821617909155600d8054929093169116179055565b600a546001600160a01b031633146114e75760405162461bcd60e51b81526004016107b590612bc6565b6001600160a01b03811661150d5760405162461bcd60e51b81526004016107b590612cc5565b61151681611876565b50565b600a546001600160a01b031633146115435760405162461bcd60e51b81526004016107b590612bc6565b600e55565b600a546001600160a01b031633146115725760405162461bcd60e51b81526004016107b590612bc6565b6040516001600160a01b038216904780156108fc02916000818181858888f193505050501580156112ac573d6000803e3d6000fd5b60006001600160e01b031982166380ac58cd60e01b14806115d857506001600160e01b03198216635b5e139f60e01b145b806106e957506301ffc9a760e01b6001600160e01b03198316146106e9565b600081815260046020526040902080546001600160a01b0319166001600160a01b038416908117909155819061162c82610d00565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152600260205260408120546001600160a01b03166116995760405162461bcd60e51b81526004016107b590612d1c565b60006116a483610d00565b9050806001600160a01b0316846001600160a01b031614806116df5750836001600160a01b03166116d484610781565b6001600160a01b0316145b8061170f57506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b031661172a82610d00565b6001600160a01b0316146117505760405162461bcd60e51b81526004016107b590612d70565b6001600160a01b0382166117765760405162461bcd60e51b81526004016107b590612dbf565b61178183838361199e565b61178c6000826115f7565b6001600160a01b03831660009081526003602052604081208054600192906117b590849061271e565b90915550506001600160a01b03821660009081526003602052604081208054600192906117e39084906128c6565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6000826118518584611a56565b1490505b9392505050565b6112ac828260405180602001604052806000815250611af8565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b816001600160a01b0316836001600160a01b031614156118fa5760405162461bcd60e51b81526004016107b590612e01565b6001600160a01b0383811660008181526005602090815260408083209487168084529490915290819020805460ff1916851515179055517f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c319061195e908590611f03565b60405180910390a3505050565b611976848484611717565b61198284848484611b2b565b6113c45760405162461bcd60e51b81526004016107b590612e5e565b6001600160a01b0383166119f9576119f481600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b611a1c565b816001600160a01b0316836001600160a01b031614611a1c57611a1c8382611c38565b6001600160a01b038216611a335761085b81611cd5565b826001600160a01b0316826001600160a01b03161461085b5761085b8282611d84565b600081815b845181101561134a576000858281518110611a7857611a7861278c565b60200260200101519050808311611ab9578281604051602001611a9c929190612e6e565b604051602081830303815290604052805190602001209250611ae5565b8083604051602001611acc929190612e6e565b6040516020818303038152906040528051906020012092505b5080611af081612a56565b915050611a5b565b611b028383611dc8565b611b0f6000848484611b2b565b61085b5760405162461bcd60e51b81526004016107b590612e5e565b60006001600160a01b0384163b15611c2d57604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290611b6f903390899088908890600401612e85565b602060405180830381600087803b158015611b8957600080fd5b505af1925050508015611bb9575060408051601f3d908101601f19168201909252611bb691810190612ed4565b60015b611c13573d808015611be7576040519150601f19603f3d011682016040523d82523d6000602084013e611bec565b606091505b508051611c0b5760405162461bcd60e51b81526004016107b590612e5e565b805181602001fd5b6001600160e01b031916630a85bd0160e11b14905061170f565b506001949350505050565b60006001611c4584611218565b611c4f919061271e565b600083815260076020526040902054909150808214611ca2576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b600854600090611ce79060019061271e565b60008381526009602052604081205460088054939450909284908110611d0f57611d0f61278c565b906000526020600020015490508060088381548110611d3057611d3061278c565b6000918252602080832090910192909255828152600990915260408082208490558582528120556008805480611d6857611d68612ef5565b6001900381819060005260206000200160009055905550505050565b6000611d8f83611218565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b6001600160a01b038216611dee5760405162461bcd60e51b81526004016107b590612f3b565b6000818152600260205260409020546001600160a01b031615611e235760405162461bcd60e51b81526004016107b590612f7d565b611e2f6000838361199e565b6001600160a01b0382166000908152600360205260408120805460019290611e589084906128c6565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6001600160e01b031981165b811461151657600080fd5b80356106e981611eb6565b600060208284031215611eed57611eed600080fd5b600061170f8484611ecd565b8015155b82525050565b602081016106e98284611ef9565b60005b83811015611f2c578181015183820152602001611f14565b838111156113c45750506000910152565b6000611f47825190565b808452602084019350611f5e818560208601611f11565b601f01601f19169290920192915050565b602080825281016118558184611f3d565b80611ec2565b80356106e981611f80565b600060208284031215611fa657611fa6600080fd5b600061170f8484611f86565b60006001600160a01b0382166106e9565b611efd81611fb2565b602081016106e98284611fc3565b611ec281611fb2565b80356106e981611fda565b6000806040838503121561200457612004600080fd5b60006120108585611fe3565b925050602061202185828601611f86565b9150509250929050565b6007811061151657600080fd5b80356106e98161202b565b60006020828403121561205857612058600080fd5b600061170f8484612038565b80611efd565b602081016106e98284612064565b60006020828403121561208d5761208d600080fd5b600061170f8484611fe3565b6000806000606084860312156120b1576120b1600080fd5b60006120bd8686611fe3565b93505060206120ce86828701611fe3565b92505060406120df86828701611f86565b9150509250925092565b60ff8116611efd565b602081016106e982846120e9565b634e487b7160e01b600052604160045260246000fd5b601f19601f830116810181811067ffffffffffffffff8211171561213c5761213c612100565b6040525050565b600061214e60405190565b905061215a8282612116565b919050565b600067ffffffffffffffff82111561217957612179612100565b5060209081020190565b60006121966121918461215f565b612143565b838152905060208082019084028301858111156121b5576121b5600080fd5b835b818110156121d7576121c98782611f86565b8352602092830192016121b7565b5050509392505050565b600082601f8301126121f5576121f5600080fd5b813561170f848260208601612183565b801515611ec2565b80356106e981612205565b60008060006060848603121561223057612230600080fd5b600061223c8686611f86565b935050602084013567ffffffffffffffff81111561225c5761225c600080fd5b612268868287016121e1565b92505060406120df8682870161220d565b6000806040838503121561228f5761228f600080fd5b600061229b8585611f86565b92505060206120218582860161220d565b634e487b7160e01b600052602160045260246000fd5b60078110611516576115166122ac565b8061215a816122c2565b60006106e9826122d2565b611efd816122dc565b602081016106e982846122e7565b6000806040838503121561231457612314600080fd5b600061229b8585611fe3565b61232a8282612064565b5060200190565b60200190565b6000612341825190565b808452602093840193830160005b828110156123745781516123638782612320565b96505060208201915060010161234f565b5093949350505050565b602080825281016118558184612337565b60ff8116611ec2565b80356106e98161238f565b6000602082840312156123b8576123b8600080fd5b600061170f8484612398565b600067ffffffffffffffff8211156123de576123de612100565b601f19601f8301165b60200192915050565b82818337506000910152565b600061240a612191846123c4565b90508281526020810184848401111561242557612425600080fd5b61134a8482856123f0565b600082601f83011261244457612444600080fd5b813561170f8482602086016123fc565b6000806000806080858703121561246d5761246d600080fd5b60006124798787611fe3565b945050602061248a87828801611fe3565b935050604061249b87828801611f86565b925050606085013567ffffffffffffffff8111156124bb576124bb600080fd5b6124c787828801612430565b91505092959194509250565b600080604083850312156124e9576124e9600080fd5b60006124f58585611fe3565b925050602061202185828601611fe3565b634e487b7160e01b600052602260045260246000fd5b60028104600182168061253057607f821691505b6020821081141561254357612543612506565b50919050565b602c8152602081017f4552433732313a20617070726f76656420717565727920666f72206e6f6e657881526b34b9ba32b73a103a37b5b2b760a11b602082015290505b60400190565b602080825281016106e981612549565b60218152602081017f4552433732313a20617070726f76616c20746f2063757272656e74206f776e658152603960f91b6020820152905061258c565b602080825281016106e9816125a2565b60388152602081017f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7781527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006020820152905061258c565b602080825281016106e9816125ee565b60318152602081017f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f8152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b6020820152905061258c565b602080825281016106e981612656565b602b8152602081017f455243373231456e756d657261626c653a206f776e657220696e646578206f7581526a74206f6620626f756e647360a81b6020820152905061258c565b602080825281016106e9816126b2565b634e487b7160e01b600052601160045260246000fd5b60008282101561273057612730612708565b500390565b602c8152602081017f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f81526b7574206f6620626f756e647360a01b6020820152905061258c565b602080825281016106e981612735565b634e487b7160e01b600052603260045260246000fd5b601f8152602081017f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0081529050612331565b602080825281016106e9816127a2565b60118152602081017010dbdb9d1c9858dd1cc81b9bdd081cd95d607a1b81529050612331565b602080825281016106e9816127e4565b6008815260208101674f6e6c7920454f4160c01b81529050612331565b602080825281016106e98161281a565b60218152602081017f5072652d73616c65206e6f742073746172746564206f722068617320656e64658152601960fa1b6020820152905061258c565b602080825281016106e981612847565b600e8152602081016d121a5d081b5a5b9d081b1a5b5a5d60921b81529050612331565b602080825281016106e981612893565b600082198211156128d9576128d9612708565b500190565b60168152602081017545786365656473206d6178696d756d20737570706c7960501b81529050612331565b602080825281016106e9816128de565b600081600019048311821515161561293357612933612708565b500290565b60198152602081017f45746865722073656e74206973206e6f7420636f72726563740000000000000081529050612331565b602080825281016106e981612938565b60118152602081017015da1a5d195b1a5cdd081b9bdd081cd95d607a1b81529050612331565b602080825281016106e98161297a565b60006106e98260601b90565b60006106e9826129b0565b611efd6129d382611fb2565b6129bc565b6129e281836129c7565b601401919050565b601681526020810175165bdd48185c995b89dd081dda1a5d195b1a5cdd195960521b81529050612331565b602080825281016106e9816129ea565b600c8152602081016b043616e2774206d696e7420360a41b81529050612331565b602080825281016106e981612a25565b6000600019821415612a6a57612a6a612708565b5060010190565b60408101612a7f8285611fc3565b6118556020830184612064565b60298152602081017f4552433732313a206f776e657220717565727920666f72206e6f6e657869737481526832b73a103a37b5b2b760b91b6020820152905061258c565b602080825281016106e981612a8c565b60108152602081016f14d85b19481b9bdd081cdd185c9d195960821b81529050612331565b602080825281016106e981612ae0565b80516106e981611f80565b600060208284031215612b3557612b35600080fd5b600061170f8484612b15565b602a8152602081017f4552433732313a2062616c616e636520717565727920666f7220746865207a65815269726f206164647265737360b01b6020820152905061258c565b602080825281016106e981612b41565b60208082527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65729101908152612331565b602080825281016106e981612b96565b60408101612be48285612064565b61185560208301846122e7565b6000612bff612191846123c4565b905082815260208101848484011115612c1a57612c1a600080fd5b61134a848285611f11565b600082601f830112612c3957612c39600080fd5b815161170f848260208601612bf1565b600060208284031215612c5e57612c5e600080fd5b815167ffffffffffffffff811115612c7857612c78600080fd5b61170f84828501612c25565b60268152602081017f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206181526564647265737360d01b6020820152905061258c565b602080825281016106e981612c84565b602c8152602081017f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657881526b34b9ba32b73a103a37b5b2b760a11b6020820152905061258c565b602080825281016106e981612cd5565b60298152602081017f4552433732313a207472616e73666572206f6620746f6b656e2074686174206981526839903737ba1037bbb760b91b6020820152905061258c565b602080825281016106e981612d2c565b60248152602081017f4552433732313a207472616e7366657220746f20746865207a65726f206164648152637265737360e01b6020820152905061258c565b602080825281016106e981612d80565b60198152602081017f4552433732313a20617070726f766520746f2063616c6c65720000000000000081529050612331565b602080825281016106e981612dcf565b60328152602081017f4552433732313a207472616e7366657220746f206e6f6e20455243373231526581527131b2b4bb32b91034b6b83632b6b2b73a32b960711b6020820152905061258c565b602080825281016106e981612e11565b612e788184612064565b6020016123e78183612064565b60808101612e938287611fc3565b612ea06020830186611fc3565b612ead6040830185612064565b8181036060830152612ebf8184611f3d565b9695505050505050565b80516106e981611eb6565b600060208284031215612ee957612ee9600080fd5b600061170f8484612ec9565b634e487b7160e01b600052603160045260246000fd5b60208082527f4552433732313a206d696e7420746f20746865207a65726f20616464726573739101908152612331565b602080825281016106e981612f0b565b601c8152602081017f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000081529050612331565b602080825281016106e981612f4b56fea2646970667358221220ce0c4ab11cb8654e695b49ef68da2ab71b2b864c027afb4a83fd12ce1f2f537e64736f6c63430008090033

Deployed Bytecode

0x6080604052600436106101f95760003560e01c8063715018a61161010d578063b44c5767116100a0578063db67f6171161006f578063db67f617146105eb578063e985e9c51461061b578063f2fde38b14610664578063f5aa406d14610684578063fa09e630146106a457600080fd5b8063b44c57671461056b578063b88d4fde1461058b578063c87b56dd146105ab578063d8952a49146105cb57600080fd5b8063969ee813116100dc578063969ee813146104d3578063a035b1fe14610503578063a22cb4651461051e578063b20060d51461053e57600080fd5b8063715018a61461044e57806386e34a3b146104635780638da5cb5b146104a057806395d89b41146104be57600080fd5b80632f745c59116101905780634f6ccce71161015f5780634f6ccce7146103c857806360e8c102146103e85780636352211e146103fb57806367f68fac1461041b57806370a082311461042e57600080fd5b80632f745c591461034157806337c056a71461036157806342842e0e146103815780634aaca86d146103a157600080fd5b80630fd048c6116101cc5780630fd048c6146102a557806318160ddd146102df5780631e7269c5146102f457806323b872dd1461032157600080fd5b806301ffc9a7146101fe57806306fdde0314610234578063081812fc14610256578063095ea7b314610283575b600080fd5b34801561020a57600080fd5b5061021e610219366004611ed8565b6106c4565b60405161022b9190611f03565b60405180910390f35b34801561024057600080fd5b506102496106ef565b60405161022b9190611f6f565b34801561026257600080fd5b50610276610271366004611f91565b610781565b60405161022b9190611fcc565b34801561028f57600080fd5b506102a361029e366004611fee565b6107da565b005b3480156102b157600080fd5b506102d26102c0366004612043565b60126020526000908152604090205481565b60405161022b919061206a565b3480156102eb57600080fd5b506008546102d2565b34801561030057600080fd5b506102d261030f366004612078565b60106020526000908152604090205481565b34801561032d57600080fd5b506102a361033c366004612099565b610860565b34801561034d57600080fd5b506102d261035c366004611fee565b6108c5565b34801561036d57600080fd5b506102d261037c366004612078565b610917565b34801561038d57600080fd5b506102a361039c366004612099565b610951565b3480156103ad57600080fd5b50600f546103bb9060ff1681565b60405161022b91906120f2565b3480156103d457600080fd5b506102d26103e3366004611f91565b61096c565b6102a36103f6366004612218565b6109ba565b34801561040757600080fd5b50610276610416366004611f91565b610d00565b6102a3610429366004612279565b610d35565b34801561043a57600080fd5b506102d2610449366004612078565b611218565b34801561045a57600080fd5b506102a361125c565b34801561046f57600080fd5b5061049361047e366004611f91565b60136020526000908152604090205460ff1681565b60405161022b91906122f0565b3480156104ac57600080fd5b50600a546001600160a01b0316610276565b3480156104ca57600080fd5b50610249611292565b3480156104df57600080fd5b506104936104ee366004612078565b60116020526000908152604090205460ff1681565b34801561050f57600080fd5b506102d266b1a2bc2ec5000081565b34801561052a57600080fd5b506102a36105393660046122fe565b6112a1565b34801561054a57600080fd5b5061055e610559366004612078565b6112b0565b60405161022b919061237e565b34801561057757600080fd5b506102a36105863660046123a3565b611352565b34801561059757600080fd5b506102a36105a6366004612454565b611392565b3480156105b757600080fd5b506102496105c6366004611f91565b6113ca565b3480156105d757600080fd5b506102a36105e63660046124d3565b611465565b3480156105f757600080fd5b50610493610606366004611f91565b60009081526013602052604090205460ff1690565b34801561062757600080fd5b5061021e6106363660046124d3565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b34801561067057600080fd5b506102a361067f366004612078565b6114bd565b34801561069057600080fd5b506102a361069f366004611f91565b611519565b3480156106b057600080fd5b506102a36106bf366004612078565b611548565b60006001600160e01b0319821663780e9d6360e01b14806106e957506106e9826115a7565b92915050565b6060600080546106fe9061251c565b80601f016020809104026020016040519081016040528092919081815260200182805461072a9061251c565b80156107775780601f1061074c57610100808354040283529160200191610777565b820191906000526020600020905b81548152906001019060200180831161075a57829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b03166107be5760405162461bcd60e51b81526004016107b590612592565b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b60006107e582610d00565b9050806001600160a01b0316836001600160a01b031614156108195760405162461bcd60e51b81526004016107b5906125de565b336001600160a01b038216148061083557506108358133610636565b6108515760405162461bcd60e51b81526004016107b590612646565b61085b83836115f7565b505050565b600c546001600160a01b0316336001600160a01b03161415801561088f5750600a546001600160a01b03163314155b156108ba5761089e3382611665565b6108ba5760405162461bcd60e51b81526004016107b5906126a2565b61085b838383611717565b60006108d083611218565b82106108ee5760405162461bcd60e51b81526004016107b5906126f8565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b6001600160a01b038116600090815260106020526040812054600f5460ff16600114610944576004610947565b60035b6106e9919061271e565b61085b83838360405180602001604052806000815250611392565b600061097760085490565b82106109955760405162461bcd60e51b81526004016107b59061277c565b600882815481106109a8576109a861278c565b90600052602060002001549050919050565b6002600b5414156109dd5760405162461bcd60e51b81526004016107b5906127d4565b6002600b55600c546001600160a01b031615801590610a065750600d546001600160a01b031615155b610a225760405162461bcd60e51b81526004016107b59061280a565b6000610a2d60085490565b9050323314610a4e5760405162461bcd60e51b81526004016107b590612837565b600f5460ff1660011480610a6c5750600a546001600160a01b031633145b610a885760405162461bcd60e51b81526004016107b590612883565b83610a9233610917565b1015610ab05760405162461bcd60e51b81526004016107b5906128b6565b612710610abd85836128c6565b10610ada5760405162461bcd60e51b81526004016107b590612909565b610aeb66b1a2bc2ec5000085612919565b341015610b0a5760405162461bcd60e51b81526004016107b59061296a565b600e54610b295760405162461bcd60e51b81526004016107b5906129a0565b610b6c600e54610b363390565b604051602001610b4691906129d8565b60405160208183030381529060405280519060200120856118449092919063ffffffff16565b610b885760405162461bcd60e51b81526004016107b590612a15565b60008411610ba85760405162461bcd60e51b81526004016107b590612a46565b3360009081526010602052604081208054869290610bc79084906128c6565b90915550600090505b84811015610c8157600083610be55733610bf2565b600c546001600160a01b03165b9050610c1281610c0284866128c6565b610c0d9060016128c6565b61185c565b3360009081526011602052604081205460ff1690601390610c3385876128c6565b610c3e9060016128c6565b81526020810191909152604001600020805460ff19166001836006811115610c6857610c686122ac565b0217905550508080610c7990612a56565b915050610bd0565b508115610cf557600c546001600160a01b031663adc9772e33610ca58460016128c6565b6040518363ffffffff1660e01b8152600401610cc2929190612a71565b600060405180830381600087803b158015610cdc57600080fd5b505af1158015610cf0573d6000803e3d6000fd5b505050505b50506001600b555050565b6000818152600260205260408120546001600160a01b0316806106e95760405162461bcd60e51b81526004016107b590612ad0565b6002600b541415610d585760405162461bcd60e51b81526004016107b5906127d4565b6002600b55600c546001600160a01b031615801590610d815750600d546001600160a01b031615155b610d9d5760405162461bcd60e51b81526004016107b59061280a565b6000610da860085490565b9050323314610dc95760405162461bcd60e51b81526004016107b590612837565b600f5460ff1660021480610de75750600a546001600160a01b031633145b610e035760405162461bcd60e51b81526004016107b590612b05565b82610e0d33610917565b101580610e245750600a546001600160a01b031633145b610e405760405162461bcd60e51b81526004016107b5906128b6565b612710610e4d84836128c6565b10610e6a5760405162461bcd60e51b81526004016107b590612909565b610e7b8366b1a2bc2ec50000612919565b34101580610e935750600a546001600160a01b031633145b610eaf5760405162461bcd60e51b81526004016107b59061296a565b60008311610ecf5760405162461bcd60e51b81526004016107b590612a46565b3360009081526011602052604081205460ff166006811115610ef357610ef36122ac565b1415610fe4576001600081905260126020527f71a67924699a20698523213e55fe499d539379d7769cd5567e2c45d583f815a354815b60068111610faf57600060126000836006811115610f4957610f496122ac565b6006811115610f5a57610f5a6122ac565b6006811115610f6b57610f6b6122ac565b815260200190815260200160002054905082811015610f9c57816006811115610f9657610f966122ac565b93508092505b5080610fa781612a56565b915050610f29565b50336000908152601160205260409020805483919060ff19166001836006811115610fdc57610fdc6122ac565b021790555050505b33600090815260106020526040812080548592906110039084906128c6565b909155505033600090815260116020526040812054849160129160ff166006811115611031576110316122ac565b6006811115611042576110426122ac565b8152602001908152602001600020600082825461105f91906128c6565b90915550600090505b8381101561111357600083801561107d575081155b6110875733611094565b600c546001600160a01b03165b90506110a481610c0284866128c6565b3360009081526011602052604081205460ff16906013906110c585876128c6565b6110d09060016128c6565b81526020810191909152604001600020805460ff191660018360068111156110fa576110fa6122ac565b021790555050808061110b90612a56565b915050611068565b5081801561119c5750600c546001600160a01b031663b7614de7336040518263ffffffff1660e01b815260040161114a9190611fcc565b60206040518083038186803b15801561116257600080fd5b505afa158015611176573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061119a9190612b20565b155b1561120e57600c546001600160a01b031663adc9772e336111be8460016128c6565b6040518363ffffffff1660e01b81526004016111db929190612a71565b600060405180830381600087803b1580156111f557600080fd5b505af1158015611209573d6000803e3d6000fd5b505050505b50506001600b5550565b60006001600160a01b0382166112405760405162461bcd60e51b81526004016107b590612b86565b506001600160a01b031660009081526003602052604090205490565b600a546001600160a01b031633146112865760405162461bcd60e51b81526004016107b590612bc6565b6112906000611876565b565b6060600180546106fe9061251c565b6112ac3383836118c8565b5050565b606060006112bd83611218565b905060008167ffffffffffffffff8111156112da576112da612100565b604051908082528060200260200182016040528015611303578160200160208202803683370190505b50905060005b8281101561134a5761131b85826108c5565b82828151811061132d5761132d61278c565b60209081029190910101528061134281612a56565b915050611309565b509392505050565b600a546001600160a01b0316331461137c5760405162461bcd60e51b81526004016107b590612bc6565b600f805460ff191660ff92909216919091179055565b61139c3383611665565b6113b85760405162461bcd60e51b81526004016107b5906126a2565b6113c48484848461196b565b50505050565b600d5460008281526013602052604090819020549051632e628c5d60e11b81526060926001600160a01b031691635cc518ba9161141191869160ff90911690600401612bd6565b60006040518083038186803b15801561142957600080fd5b505afa15801561143d573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526106e99190810190612c49565b600a546001600160a01b0316331461148f5760405162461bcd60e51b81526004016107b590612bc6565b600c80546001600160a01b039384166001600160a01b031991821617909155600d8054929093169116179055565b600a546001600160a01b031633146114e75760405162461bcd60e51b81526004016107b590612bc6565b6001600160a01b03811661150d5760405162461bcd60e51b81526004016107b590612cc5565b61151681611876565b50565b600a546001600160a01b031633146115435760405162461bcd60e51b81526004016107b590612bc6565b600e55565b600a546001600160a01b031633146115725760405162461bcd60e51b81526004016107b590612bc6565b6040516001600160a01b038216904780156108fc02916000818181858888f193505050501580156112ac573d6000803e3d6000fd5b60006001600160e01b031982166380ac58cd60e01b14806115d857506001600160e01b03198216635b5e139f60e01b145b806106e957506301ffc9a760e01b6001600160e01b03198316146106e9565b600081815260046020526040902080546001600160a01b0319166001600160a01b038416908117909155819061162c82610d00565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152600260205260408120546001600160a01b03166116995760405162461bcd60e51b81526004016107b590612d1c565b60006116a483610d00565b9050806001600160a01b0316846001600160a01b031614806116df5750836001600160a01b03166116d484610781565b6001600160a01b0316145b8061170f57506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b031661172a82610d00565b6001600160a01b0316146117505760405162461bcd60e51b81526004016107b590612d70565b6001600160a01b0382166117765760405162461bcd60e51b81526004016107b590612dbf565b61178183838361199e565b61178c6000826115f7565b6001600160a01b03831660009081526003602052604081208054600192906117b590849061271e565b90915550506001600160a01b03821660009081526003602052604081208054600192906117e39084906128c6565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6000826118518584611a56565b1490505b9392505050565b6112ac828260405180602001604052806000815250611af8565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b816001600160a01b0316836001600160a01b031614156118fa5760405162461bcd60e51b81526004016107b590612e01565b6001600160a01b0383811660008181526005602090815260408083209487168084529490915290819020805460ff1916851515179055517f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c319061195e908590611f03565b60405180910390a3505050565b611976848484611717565b61198284848484611b2b565b6113c45760405162461bcd60e51b81526004016107b590612e5e565b6001600160a01b0383166119f9576119f481600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b611a1c565b816001600160a01b0316836001600160a01b031614611a1c57611a1c8382611c38565b6001600160a01b038216611a335761085b81611cd5565b826001600160a01b0316826001600160a01b03161461085b5761085b8282611d84565b600081815b845181101561134a576000858281518110611a7857611a7861278c565b60200260200101519050808311611ab9578281604051602001611a9c929190612e6e565b604051602081830303815290604052805190602001209250611ae5565b8083604051602001611acc929190612e6e565b6040516020818303038152906040528051906020012092505b5080611af081612a56565b915050611a5b565b611b028383611dc8565b611b0f6000848484611b2b565b61085b5760405162461bcd60e51b81526004016107b590612e5e565b60006001600160a01b0384163b15611c2d57604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290611b6f903390899088908890600401612e85565b602060405180830381600087803b158015611b8957600080fd5b505af1925050508015611bb9575060408051601f3d908101601f19168201909252611bb691810190612ed4565b60015b611c13573d808015611be7576040519150601f19603f3d011682016040523d82523d6000602084013e611bec565b606091505b508051611c0b5760405162461bcd60e51b81526004016107b590612e5e565b805181602001fd5b6001600160e01b031916630a85bd0160e11b14905061170f565b506001949350505050565b60006001611c4584611218565b611c4f919061271e565b600083815260076020526040902054909150808214611ca2576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b600854600090611ce79060019061271e565b60008381526009602052604081205460088054939450909284908110611d0f57611d0f61278c565b906000526020600020015490508060088381548110611d3057611d3061278c565b6000918252602080832090910192909255828152600990915260408082208490558582528120556008805480611d6857611d68612ef5565b6001900381819060005260206000200160009055905550505050565b6000611d8f83611218565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b6001600160a01b038216611dee5760405162461bcd60e51b81526004016107b590612f3b565b6000818152600260205260409020546001600160a01b031615611e235760405162461bcd60e51b81526004016107b590612f7d565b611e2f6000838361199e565b6001600160a01b0382166000908152600360205260408120805460019290611e589084906128c6565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6001600160e01b031981165b811461151657600080fd5b80356106e981611eb6565b600060208284031215611eed57611eed600080fd5b600061170f8484611ecd565b8015155b82525050565b602081016106e98284611ef9565b60005b83811015611f2c578181015183820152602001611f14565b838111156113c45750506000910152565b6000611f47825190565b808452602084019350611f5e818560208601611f11565b601f01601f19169290920192915050565b602080825281016118558184611f3d565b80611ec2565b80356106e981611f80565b600060208284031215611fa657611fa6600080fd5b600061170f8484611f86565b60006001600160a01b0382166106e9565b611efd81611fb2565b602081016106e98284611fc3565b611ec281611fb2565b80356106e981611fda565b6000806040838503121561200457612004600080fd5b60006120108585611fe3565b925050602061202185828601611f86565b9150509250929050565b6007811061151657600080fd5b80356106e98161202b565b60006020828403121561205857612058600080fd5b600061170f8484612038565b80611efd565b602081016106e98284612064565b60006020828403121561208d5761208d600080fd5b600061170f8484611fe3565b6000806000606084860312156120b1576120b1600080fd5b60006120bd8686611fe3565b93505060206120ce86828701611fe3565b92505060406120df86828701611f86565b9150509250925092565b60ff8116611efd565b602081016106e982846120e9565b634e487b7160e01b600052604160045260246000fd5b601f19601f830116810181811067ffffffffffffffff8211171561213c5761213c612100565b6040525050565b600061214e60405190565b905061215a8282612116565b919050565b600067ffffffffffffffff82111561217957612179612100565b5060209081020190565b60006121966121918461215f565b612143565b838152905060208082019084028301858111156121b5576121b5600080fd5b835b818110156121d7576121c98782611f86565b8352602092830192016121b7565b5050509392505050565b600082601f8301126121f5576121f5600080fd5b813561170f848260208601612183565b801515611ec2565b80356106e981612205565b60008060006060848603121561223057612230600080fd5b600061223c8686611f86565b935050602084013567ffffffffffffffff81111561225c5761225c600080fd5b612268868287016121e1565b92505060406120df8682870161220d565b6000806040838503121561228f5761228f600080fd5b600061229b8585611f86565b92505060206120218582860161220d565b634e487b7160e01b600052602160045260246000fd5b60078110611516576115166122ac565b8061215a816122c2565b60006106e9826122d2565b611efd816122dc565b602081016106e982846122e7565b6000806040838503121561231457612314600080fd5b600061229b8585611fe3565b61232a8282612064565b5060200190565b60200190565b6000612341825190565b808452602093840193830160005b828110156123745781516123638782612320565b96505060208201915060010161234f565b5093949350505050565b602080825281016118558184612337565b60ff8116611ec2565b80356106e98161238f565b6000602082840312156123b8576123b8600080fd5b600061170f8484612398565b600067ffffffffffffffff8211156123de576123de612100565b601f19601f8301165b60200192915050565b82818337506000910152565b600061240a612191846123c4565b90508281526020810184848401111561242557612425600080fd5b61134a8482856123f0565b600082601f83011261244457612444600080fd5b813561170f8482602086016123fc565b6000806000806080858703121561246d5761246d600080fd5b60006124798787611fe3565b945050602061248a87828801611fe3565b935050604061249b87828801611f86565b925050606085013567ffffffffffffffff8111156124bb576124bb600080fd5b6124c787828801612430565b91505092959194509250565b600080604083850312156124e9576124e9600080fd5b60006124f58585611fe3565b925050602061202185828601611fe3565b634e487b7160e01b600052602260045260246000fd5b60028104600182168061253057607f821691505b6020821081141561254357612543612506565b50919050565b602c8152602081017f4552433732313a20617070726f76656420717565727920666f72206e6f6e657881526b34b9ba32b73a103a37b5b2b760a11b602082015290505b60400190565b602080825281016106e981612549565b60218152602081017f4552433732313a20617070726f76616c20746f2063757272656e74206f776e658152603960f91b6020820152905061258c565b602080825281016106e9816125a2565b60388152602081017f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7781527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006020820152905061258c565b602080825281016106e9816125ee565b60318152602081017f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f8152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b6020820152905061258c565b602080825281016106e981612656565b602b8152602081017f455243373231456e756d657261626c653a206f776e657220696e646578206f7581526a74206f6620626f756e647360a81b6020820152905061258c565b602080825281016106e9816126b2565b634e487b7160e01b600052601160045260246000fd5b60008282101561273057612730612708565b500390565b602c8152602081017f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f81526b7574206f6620626f756e647360a01b6020820152905061258c565b602080825281016106e981612735565b634e487b7160e01b600052603260045260246000fd5b601f8152602081017f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0081529050612331565b602080825281016106e9816127a2565b60118152602081017010dbdb9d1c9858dd1cc81b9bdd081cd95d607a1b81529050612331565b602080825281016106e9816127e4565b6008815260208101674f6e6c7920454f4160c01b81529050612331565b602080825281016106e98161281a565b60218152602081017f5072652d73616c65206e6f742073746172746564206f722068617320656e64658152601960fa1b6020820152905061258c565b602080825281016106e981612847565b600e8152602081016d121a5d081b5a5b9d081b1a5b5a5d60921b81529050612331565b602080825281016106e981612893565b600082198211156128d9576128d9612708565b500190565b60168152602081017545786365656473206d6178696d756d20737570706c7960501b81529050612331565b602080825281016106e9816128de565b600081600019048311821515161561293357612933612708565b500290565b60198152602081017f45746865722073656e74206973206e6f7420636f72726563740000000000000081529050612331565b602080825281016106e981612938565b60118152602081017015da1a5d195b1a5cdd081b9bdd081cd95d607a1b81529050612331565b602080825281016106e98161297a565b60006106e98260601b90565b60006106e9826129b0565b611efd6129d382611fb2565b6129bc565b6129e281836129c7565b601401919050565b601681526020810175165bdd48185c995b89dd081dda1a5d195b1a5cdd195960521b81529050612331565b602080825281016106e9816129ea565b600c8152602081016b043616e2774206d696e7420360a41b81529050612331565b602080825281016106e981612a25565b6000600019821415612a6a57612a6a612708565b5060010190565b60408101612a7f8285611fc3565b6118556020830184612064565b60298152602081017f4552433732313a206f776e657220717565727920666f72206e6f6e657869737481526832b73a103a37b5b2b760b91b6020820152905061258c565b602080825281016106e981612a8c565b60108152602081016f14d85b19481b9bdd081cdd185c9d195960821b81529050612331565b602080825281016106e981612ae0565b80516106e981611f80565b600060208284031215612b3557612b35600080fd5b600061170f8484612b15565b602a8152602081017f4552433732313a2062616c616e636520717565727920666f7220746865207a65815269726f206164647265737360b01b6020820152905061258c565b602080825281016106e981612b41565b60208082527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65729101908152612331565b602080825281016106e981612b96565b60408101612be48285612064565b61185560208301846122e7565b6000612bff612191846123c4565b905082815260208101848484011115612c1a57612c1a600080fd5b61134a848285611f11565b600082601f830112612c3957612c39600080fd5b815161170f848260208601612bf1565b600060208284031215612c5e57612c5e600080fd5b815167ffffffffffffffff811115612c7857612c78600080fd5b61170f84828501612c25565b60268152602081017f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206181526564647265737360d01b6020820152905061258c565b602080825281016106e981612c84565b602c8152602081017f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657881526b34b9ba32b73a103a37b5b2b760a11b6020820152905061258c565b602080825281016106e981612cd5565b60298152602081017f4552433732313a207472616e73666572206f6620746f6b656e2074686174206981526839903737ba1037bbb760b91b6020820152905061258c565b602080825281016106e981612d2c565b60248152602081017f4552433732313a207472616e7366657220746f20746865207a65726f206164648152637265737360e01b6020820152905061258c565b602080825281016106e981612d80565b60198152602081017f4552433732313a20617070726f766520746f2063616c6c65720000000000000081529050612331565b602080825281016106e981612dcf565b60328152602081017f4552433732313a207472616e7366657220746f206e6f6e20455243373231526581527131b2b4bb32b91034b6b83632b6b2b73a32b960711b6020820152905061258c565b602080825281016106e981612e11565b612e788184612064565b6020016123e78183612064565b60808101612e938287611fc3565b612ea06020830186611fc3565b612ead6040830185612064565b8181036060830152612ebf8184611f3d565b9695505050505050565b80516106e981611eb6565b600060208284031215612ee957612ee9600080fd5b600061170f8484612ec9565b634e487b7160e01b600052603160045260246000fd5b60208082527f4552433732313a206d696e7420746f20746865207a65726f20616464726573739101908152612331565b602080825281016106e981612f0b565b601c8152602081017f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000081529050612331565b602080825281016106e981612f4b56fea2646970667358221220ce0c4ab11cb8654e695b49ef68da2ab71b2b864c027afb4a83fd12ce1f2f537e64736f6c63430008090033

Deployed Bytecode Sourcemap

481:5762:17:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;990:222:8;;;;;;;;;;-1:-1:-1;990:222:8;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;2473:98:5;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;3984:217::-;;;;;;;;;;-1:-1:-1;3984:217:5;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;3522:401::-;;;;;;;;;;-1:-1:-1;3522:401:5;;;;;:::i;:::-;;:::i;:::-;;1120:60:17;;;;;;;;;;-1:-1:-1;1120:60:17;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;:::i;1615:111:8:-;;;;;;;;;;-1:-1:-1;1702:10:8;:17;1615:111;;997:41:17;;;;;;;;;;-1:-1:-1;997:41:17;;;;;:::i;:::-;;;;;;;;;;;;;;5426:443;;;;;;;;;;-1:-1:-1;5426:443:17;;;;;:::i;:::-;;:::i;1291:253:8:-;;;;;;;;;;-1:-1:-1;1291:253:8;;;;;:::i;:::-;;:::i;1314:153:17:-;;;;;;;;;;-1:-1:-1;1314:153:17;;;;;:::i;:::-;;:::i;5107:179:5:-;;;;;;;;;;-1:-1:-1;5107:179:5;;;;;:::i;:::-;;:::i;964:26:17:-;;;;;;;;;;-1:-1:-1;964:26:17;;;;;;;;;;;;;;;:::i;1798:230:8:-;;;;;;;;;;-1:-1:-1;1798:230:8;;;;;:::i;:::-;;:::i;3200:1199:17:-;;;;;;:::i;:::-;;:::i;2176:235:5:-;;;;;;;;;;-1:-1:-1;2176:235:5;;;;;:::i;:::-;;:::i;1473:1721:17:-;;;;;;:::i;:::-;;:::i;1914:205:5:-;;;;;;;;;;-1:-1:-1;1914:205:5;;;;;:::i;:::-;;:::i;1668:101:0:-;;;;;;;;;;;;;:::i;1186:57:17:-;;;;;;;;;;-1:-1:-1;1186:57:17;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;:::i;1036:85:0:-;;;;;;;;;;-1:-1:-1;1108:6:0;;-1:-1:-1;;;;;1108:6:0;1036:85;;2635:102:5;;;;;;;;;;;;;:::i;1044:70:17:-;;;;;;;;;;-1:-1:-1;1044:70:17;;;;;:::i;:::-;;;;;;;;;;;;;;;;671:42;;;;;;;;;;;;703:10;671:42;;4268:153:5;;;;;;;;;;-1:-1:-1;4268:153:5;;;;;:::i;:::-;;:::i;4429:339:17:-;;;;;;;;;;-1:-1:-1;4429:339:17;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;5090:82::-;;;;;;;;;;-1:-1:-1;5090:82:17;;;;;:::i;:::-;;:::i;5352:320:5:-;;;;;;;;;;-1:-1:-1;5352:320:5;;;;;:::i;:::-;;:::i;4774:153:17:-;;;;;;;;;;-1:-1:-1;4774:153:17;;;;;:::i;:::-;;:::i;6057:184::-;;;;;;;;;;-1:-1:-1;6057:184:17;;;;;:::i;:::-;;:::i;4933:138::-;;;;;;;;;;-1:-1:-1;4933:138:17;;;;;:::i;:::-;5007:17;5043:21;;;:12;:21;;;;;;;;;4933:138;4487:162:5;;;;;;;;;;-1:-1:-1;4487:162:5;;;;;:::i;:::-;-1:-1:-1;;;;;4607:25:5;;;4584:4;4607:25;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;;;;4487:162;1918:198:0;;;;;;;;;;-1:-1:-1;1918:198:0;;;;;:::i;:::-;;:::i;5178:98:17:-;;;;;;;;;;-1:-1:-1;5178:98:17;;;;;:::i;:::-;;:::i;5282:107::-;;;;;;;;;;-1:-1:-1;5282:107:17;;;;;:::i;:::-;;:::i;990:222:8:-;1092:4;-1:-1:-1;;;;;;1115:50:8;;-1:-1:-1;;;1115:50:8;;:90;;;1169:36;1193:11;1169:23;:36::i;:::-;1108:97;990:222;-1:-1:-1;;990:222:8:o;2473:98:5:-;2527:13;2559:5;2552:12;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2473:98;:::o;3984:217::-;4060:7;7232:16;;;:7;:16;;;;;;-1:-1:-1;;;;;7232:16:5;4079:73;;;;-1:-1:-1;;;4079:73:5;;;;;;;:::i;:::-;;;;;;;;;-1:-1:-1;4170:24:5;;;;:15;:24;;;;;;-1:-1:-1;;;;;4170:24:5;;3984:217::o;3522:401::-;3602:13;3618:23;3633:7;3618:14;:23::i;:::-;3602:39;;3665:5;-1:-1:-1;;;;;3659:11:5;:2;-1:-1:-1;;;;;3659:11:5;;;3651:57;;;;-1:-1:-1;;;3651:57:5;;;;;;;:::i;:::-;719:10:12;-1:-1:-1;;;;;3740:21:5;;;;:62;;-1:-1:-1;3765:37:5;3782:5;719:10:12;4487:162:5;:::i;3765:37::-;3719:165;;;;-1:-1:-1;;;3719:165:5;;;;;;;:::i;:::-;3895:21;3904:2;3908:7;3895:8;:21::i;:::-;3592:331;3522:401;;:::o;5426:443:17:-;5660:7;;-1:-1:-1;;;;;5660:7:17;719:10:12;-1:-1:-1;;;;;5636:32:17;;;:59;;;;-1:-1:-1;1108:6:0;;-1:-1:-1;;;;;1108:6:0;719:10:12;5672:23:17;;5636:59;5633:192;;;5719:41;719:10:12;5752:7:17;5719:18;:41::i;:::-;5711:103;;;;-1:-1:-1;;;5711:103:17;;;;;;;:::i;:::-;5834:28;5844:4;5850:2;5854:7;5834:9;:28::i;1291:253:8:-;1388:7;1423:23;1440:5;1423:16;:23::i;:::-;1415:5;:31;1407:87;;;;-1:-1:-1;;;1407:87:8;;;;;;;:::i;:::-;-1:-1:-1;;;;;;1511:19:8;;;;;;;;:12;:19;;;;;;;;:26;;;;;;;;;1291:253::o;1314:153:17:-;-1:-1:-1;;;;;1448:12:17;;1372:7;1448:12;;;:6;:12;;;;;;1399:9;;;;;:14;:45;;748:1;1399:45;;;791:1;1399:45;1398:62;;;;:::i;5107:179:5:-;5240:39;5257:4;5263:2;5267:7;5240:39;;;;;;;;;;;;:16;:39::i;1798:230:8:-;1873:7;1908:30;1702:10;:17;;1615:111;1908:30;1900:5;:38;1892:95;;;;-1:-1:-1;;;1892:95:8;;;;;;;:::i;:::-;2004:10;2015:5;2004:17;;;;;;;;:::i;:::-;;;;;;;;;1997:24;;1798:230;;;:::o;3200:1199:17:-;1744:1:1;2325:7;;:19;;2317:63;;;;-1:-1:-1;;;2317:63:1;;;;;;;:::i;:::-;1744:1;2455:7;:18;5945:7:17::1;::::0;-1:-1:-1;;;;;5945:7:17::1;5937:30:::0;;::::1;::::0;:65:::1;;-1:-1:-1::0;5979:8:17::1;::::0;-1:-1:-1;;;;;5979:8:17::1;5971:31:::0;::::1;5937:65;5929:104;;;;-1:-1:-1::0;;;5929:104:17::1;;;;;;;:::i;:::-;3345:14:::2;3362:13;1702:10:8::0;:17;;1615:111;3362:13:17::2;3345:30:::0;-1:-1:-1;3393:9:17::2;719:10:12::0;3393:25:17::2;3385:46;;;;-1:-1:-1::0;;;3385:46:17::2;;;;;;;:::i;:::-;3449:9;::::0;::::2;;::::0;:14:::2;::::0;:41:::2;;-1:-1:-1::0;1108:6:0;;-1:-1:-1;;;;;1108:6:0;719:10:12;3467:23:17::2;3449:41;3441:87;;;;-1:-1:-1::0;;;3441:87:17::2;;;;;;;:::i;:::-;3577:3:::0;3546:27:::2;719:10:12::0;1314:153:17;:::i;3546:27::-:2;:34;;3538:61;;;;-1:-1:-1::0;;;3538:61:17::2;;;;;;;:::i;:::-;829:5;3617:12;3626:3:::0;3617:6;:12:::2;:::i;:::-;:26;3609:61;;;;-1:-1:-1::0;;;3609:61:17::2;;;;;;;:::i;:::-;3701:11;703:10;3701:3:::0;:11:::2;:::i;:::-;3688:9;:24;;3680:62;;;;-1:-1:-1::0;;;3680:62:17::2;;;;;;;:::i;:::-;3760:19;::::0;3752:54:::2;;;;-1:-1:-1::0;;;3752:54:17::2;;;;;;;:::i;:::-;3837:76;3850:19;;3898:12;719:10:12::0;;640:96;3898:12:17::2;3881:30;;;;;;;;:::i;:::-;;;;;;;;;;;;;3871:41;;;;;;3837:5;:12;;:76;;;;;:::i;:::-;3816:145;;;;-1:-1:-1::0;;;3816:145:17::2;;;;;;;:::i;:::-;3985:1;3979:3;:7;3971:32;;;;-1:-1:-1::0;;;3971:32:17::2;;;;;;;:::i;:::-;719:10:12::0;4014:20:17::2;::::0;;;:6:::2;:20;::::0;;;;:27;;4038:3;;4014:20;:27:::2;::::0;4038:3;;4014:27:::2;:::i;:::-;::::0;;;-1:-1:-1;4057:9:17::2;::::0;-1:-1:-1;4052:252:17::2;4072:3;4068:1;:7;4052:252;;;4096:17;4116:9;:43;;719:10:12::0;4116:43:17::2;;;4136:7;::::0;-1:-1:-1;;;;;4136:7:17::2;4116:43;4096:63:::0;-1:-1:-1;4173:36:17::2;4096:63:::0;4194:10:::2;4203:1:::0;4194:6;:10:::2;:::i;:::-;:14;::::0;4207:1:::2;4194:14;:::i;:::-;4173:9;:36::i;:::-;719:10:12::0;4254:39:17::2;::::0;;;:25:::2;:39;::::0;;;;;::::2;;::::0;4223:12:::2;::::0;4236:10:::2;4245:1:::0;4236:6;:10:::2;:::i;:::-;:14;::::0;4249:1:::2;4236:14;:::i;:::-;4223:28:::0;;::::2;::::0;::::2;::::0;;;;;;-1:-1:-1;4223:28:17;:70;;-1:-1:-1;;4223:70:17::2;::::0;;::::2;::::0;::::2;;;;;;:::i;:::-;;;;;;4082:222;4077:3;;;;;:::i;:::-;;;;4052:252;;;;4318:9;4314:79;;;4343:7;::::0;-1:-1:-1;;;;;4343:7:17::2;:13;719:10:12::0;4371::17::2;:6:::0;4380:1:::2;4371:10;:::i;:::-;4343:39;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;::::0;::::2;;;;;;;;;;;;::::0;::::2;;;;;;;;;4314:79;-1:-1:-1::0;;1701:1:1;2628:7;:22;-1:-1:-1;;3200:1199:17:o;2176:235:5:-;2248:7;2283:16;;;:7;:16;;;;;;-1:-1:-1;;;;;2283:16:5;2317:19;2309:73;;;;-1:-1:-1;;;2309:73:5;;;;;;;:::i;1473:1721:17:-;1744:1:1;2325:7;;:19;;2317:63;;;;-1:-1:-1;;;2317:63:1;;;;;;;:::i;:::-;1744:1;2455:7;:18;5945:7:17::1;::::0;-1:-1:-1;;;;;5945:7:17::1;5937:30:::0;;::::1;::::0;:65:::1;;-1:-1:-1::0;5979:8:17::1;::::0;-1:-1:-1;;;;;5979:8:17::1;5971:31:::0;::::1;5937:65;5929:104;;;;-1:-1:-1::0;;;5929:104:17::1;;;;;;;:::i;:::-;1585:14:::2;1602:13;1702:10:8::0;:17;;1615:111;1602:13:17::2;1585:30:::0;-1:-1:-1;1633:9:17::2;719:10:12::0;1633:25:17::2;1625:46;;;;-1:-1:-1::0;;;1625:46:17::2;;;;;;;:::i;:::-;1689:9;::::0;::::2;;1702:1;1689:14;::::0;:41:::2;;-1:-1:-1::0;1108:6:0;;-1:-1:-1;;;;;1108:6:0;719:10:12;1707:23:17::2;1689:41;1681:70;;;;-1:-1:-1::0;;;1681:70:17::2;;;;;;;:::i;:::-;1800:3:::0;1769:27:::2;719:10:12::0;1314:153:17;:::i;1769:27::-:2;:34;;:61;;;-1:-1:-1::0;1108:6:0;;-1:-1:-1;;;;;1108:6:0;719:10:12;1807:23:17::2;1769:61;1761:88;;;;-1:-1:-1::0;;;1761:88:17::2;;;;;;;:::i;:::-;829:5;1867:12;1876:3:::0;1867:6;:12:::2;:::i;:::-;:26;1859:61;;;;-1:-1:-1::0;;;1859:61:17::2;;;;;;;:::i;:::-;1951:11;1959:3:::0;703:10:::2;1951:11;:::i;:::-;1938:9;:24;;:51;;;-1:-1:-1::0;1108:6:0;;-1:-1:-1;;;;;1108:6:0;719:10:12;1966:23:17::2;1938:51;1930:89;;;;-1:-1:-1::0;;;1930:89:17::2;;;;;;;:::i;:::-;2043:1;2037:3;:7;2029:32;;;;-1:-1:-1::0;;;2029:32:17::2;;;;;;;:::i;:::-;719:10:12::0;2119:28:17::2;2076:39:::0;;;:25:::2;:39;::::0;;;;;::::2;;:71;::::0;::::2;;;;;;:::i;:::-;;2072:601;;;2194:22;2163:28;2249:27:::0;;;:15:::2;:27;::::0;;;2194:22;2291:305:::2;2324:24;2311:1;:38;2291:305;;2374:14;2391:15;:37;2425:1;2407:20;;;;;;;;:::i;:::-;2391:37;;;;;;;;:::i;:::-;;;;;;;;;:::i;:::-;;;;;;;;;;;;;2374:54;;2459:8;2450:6;:17;2446:136;;;2522:1;2504:20;;;;;;;;:::i;:::-;2491:33;;2557:6;2546:17;;2446:136;-1:-1:-1::0;2351:3:17;::::2;::::0;::::2;:::i;:::-;;;;2291:305;;;-1:-1:-1::0;719:10:12;2610:39:17::2;::::0;;;:25:::2;:39;::::0;;;;:52;;2652:10;;2610:39;-1:-1:-1;;2610:52:17::2;::::0;2652:10;2610:52:::2;::::0;::::2;;;;;;:::i;:::-;;;;;;2149:524;;2072:601;719:10:12::0;2683:20:17::2;::::0;;;:6:::2;:20;::::0;;;;:27;;2707:3;;2683:20;:27:::2;::::0;2707:3;;2683:27:::2;:::i;:::-;::::0;;;-1:-1:-1;;719:10:12;2720:56:17::2;2736:39:::0;;;:25:::2;:39;::::0;;;;;2780:3;;2720:15:::2;::::0;2736:39:::2;;2720:56;::::0;::::2;;;;;;:::i;:::-;;;;;;;;;:::i;:::-;;;;;;;;;;;;;:63;;;;;;;:::i;:::-;::::0;;;-1:-1:-1;2799:9:17::2;::::0;-1:-1:-1;2794:262:17::2;2814:3;2810:1;:7;2794:262;;;2838:17;2858:9;:19;;;;-1:-1:-1::0;2871:6:17;;2858:19:::2;:53;;719:10:12::0;2858:53:17::2;;;2888:7;::::0;-1:-1:-1;;;;;2888:7:17::2;2858:53;2838:73:::0;-1:-1:-1;2925:36:17::2;2838:73:::0;2946:10:::2;2955:1:::0;2946:6;:10:::2;:::i;2925:36::-;719:10:12::0;3006:39:17::2;::::0;;;:25:::2;:39;::::0;;;;;::::2;;::::0;2975:12:::2;::::0;2988:10:::2;2997:1:::0;2988:6;:10:::2;:::i;:::-;:14;::::0;3001:1:::2;2988:14;:::i;:::-;2975:28:::0;;::::2;::::0;::::2;::::0;;;;;;-1:-1:-1;2975:28:17;:70;;-1:-1:-1;;2975:70:17::2;::::0;;::::2;::::0;::::2;;;;;;:::i;:::-;;;;;;2824:232;2819:3;;;;;:::i;:::-;;;;2794:262;;;;3070:9;:52;;;;-1:-1:-1::0;3083:7:17::2;::::0;-1:-1:-1;;;;;3083:7:17::2;:20;719:10:12::0;3083:34:17::2;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;::::0;::::2;;;;;;;;;;;;::::0;::::2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:39:::0;3070:52:::2;3066:122;;;3138:7;::::0;-1:-1:-1;;;;;3138:7:17::2;:13;719:10:12::0;3166::17::2;:6:::0;3175:1:::2;3166:10;:::i;:::-;3138:39;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;::::0;::::2;;;;;;;;;;;;::::0;::::2;;;;;;;;;3066:122;-1:-1:-1::0;;1701:1:1;2628:7;:22;-1:-1:-1;1473:1721:17:o;1914:205:5:-;1986:7;-1:-1:-1;;;;;2013:19:5;;2005:74;;;;-1:-1:-1;;;2005:74:5;;;;;;;:::i;:::-;-1:-1:-1;;;;;;2096:16:5;;;;;:9;:16;;;;;;;1914:205::o;1668:101:0:-;1108:6;;-1:-1:-1;;;;;1108:6:0;719:10:12;1248:23:0;1240:68;;;;-1:-1:-1;;;1240:68:0;;;;;;;:::i;:::-;1732:30:::1;1759:1;1732:18;:30::i;:::-;1668:101::o:0;2635:102:5:-;2691:13;2723:7;2716:14;;;;;:::i;4268:153::-;4362:52;719:10:12;4395:8:5;4405;4362:18;:52::i;:::-;4268:153;;:::o;4429:339:17:-;4495:16;4523:18;4544:15;4554:4;4544:9;:15::i;:::-;4523:36;;4570:25;4612:10;4598:25;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;4598:25:17;;4570:53;;4638:9;4633:104;4653:10;4649:1;:14;4633:104;;;4698:28;4718:4;4724:1;4698:19;:28::i;:::-;4684:8;4693:1;4684:11;;;;;;;;:::i;:::-;;;;;;;;;;:42;4665:3;;;;:::i;:::-;;;;4633:104;;;-1:-1:-1;4753:8:17;4429:339;-1:-1:-1;;;4429:339:17:o;5090:82::-;1108:6:0;;-1:-1:-1;;;;;1108:6:0;719:10:12;1248:23:0;1240:68;;;;-1:-1:-1;;;1240:68:0;;;;;;;:::i;:::-;5150:9:17::1;:15:::0;;-1:-1:-1;;5150:15:17::1;;::::0;;;::::1;::::0;;;::::1;::::0;;5090:82::o;5352:320:5:-;5521:41;719:10:12;5554:7:5;5521:18;:41::i;:::-;5513:103;;;;-1:-1:-1;;;5513:103:5;;;;;;;:::i;:::-;5626:39;5640:4;5646:2;5650:7;5659:5;5626:13;:39::i;:::-;5352:320;;;;:::o;4774:153:17:-;4871:8;;;4898:21;;;:12;:21;;;;;;;;4871:49;;-1:-1:-1;;;4871:49:17;;4839:13;;-1:-1:-1;;;;;4871:8:17;;:17;;:49;;4889:7;;4898:21;;;;;4871:49;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;4871:49:17;;;;;;;;;;;;:::i;6057:184::-;1108:6:0;;-1:-1:-1;;;;;1108:6:0;719:10:12;1248:23:0;1240:68;;;;-1:-1:-1;;;1240:68:0;;;;;;;:::i;:::-;6145:7:17::1;:38:::0;;-1:-1:-1;;;;;6145:38:17;;::::1;-1:-1:-1::0;;;;;;6145:38:17;;::::1;;::::0;;;6193:8:::1;:41:::0;;;;;::::1;::::0;::::1;;::::0;;6057:184::o;1918:198:0:-;1108:6;;-1:-1:-1;;;;;1108:6:0;719:10:12;1248:23:0;1240:68;;;;-1:-1:-1;;;1240:68:0;;;;;;;:::i;:::-;-1:-1:-1;;;;;2006:22:0;::::1;1998:73;;;;-1:-1:-1::0;;;1998:73:0::1;;;;;;;:::i;:::-;2081:28;2100:8;2081:18;:28::i;:::-;1918:198:::0;:::o;5178:98:17:-;1108:6:0;;-1:-1:-1;;;;;1108:6:0;719:10:12;1248:23:0;1240:68;;;;-1:-1:-1;;;1240:68:0;;;;;;;:::i;:::-;5244:19:17::1;:25:::0;5178:98::o;5282:107::-;1108:6:0;;-1:-1:-1;;;;;1108:6:0;719:10:12;1248:23:0;1240:68;;;;-1:-1:-1;;;1240:68:0;;;;;;;:::i;:::-;5349:33:17::1;::::0;-1:-1:-1;;;;;5349:10:17;::::1;::::0;5360:21:::1;5349:33:::0;::::1;;;::::0;::::1;::::0;;;5360:21;5349:10;:33;::::1;;;;;;;;;;;;;::::0;::::1;;;;1555:300:5::0;1657:4;-1:-1:-1;;;;;;1692:40:5;;-1:-1:-1;;;1692:40:5;;:104;;-1:-1:-1;;;;;;;1748:48:5;;-1:-1:-1;;;1748:48:5;1692:104;:156;;;-1:-1:-1;;;;;;;;;;937:40:15;;;1812:36:5;829:155:15;10995:171:5;11069:24;;;;:15;:24;;;;;:29;;-1:-1:-1;;;;;;11069:29:5;-1:-1:-1;;;;;11069:29:5;;;;;;;;:24;;11122:23;11069:24;11122:14;:23::i;:::-;-1:-1:-1;;;;;11113:46:5;;;;;;;;;;;10995:171;;:::o;7427:344::-;7520:4;7232:16;;;:7;:16;;;;;;-1:-1:-1;;;;;7232:16:5;7536:73;;;;-1:-1:-1;;;7536:73:5;;;;;;;:::i;:::-;7619:13;7635:23;7650:7;7635:14;:23::i;:::-;7619:39;;7687:5;-1:-1:-1;;;;;7676:16:5;:7;-1:-1:-1;;;;;7676:16:5;;:51;;;;7720:7;-1:-1:-1;;;;;7696:31:5;:20;7708:7;7696:11;:20::i;:::-;-1:-1:-1;;;;;7696:31:5;;7676:51;:87;;;-1:-1:-1;;;;;;4607:25:5;;;4584:4;4607:25;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;7731:32;7668:96;7427:344;-1:-1:-1;;;;7427:344:5:o;10324:560::-;10478:4;-1:-1:-1;;;;;10451:31:5;:23;10466:7;10451:14;:23::i;:::-;-1:-1:-1;;;;;10451:31:5;;10443:85;;;;-1:-1:-1;;;10443:85:5;;;;;;;:::i;:::-;-1:-1:-1;;;;;10546:16:5;;10538:65;;;;-1:-1:-1;;;10538:65:5;;;;;;;:::i;:::-;10614:39;10635:4;10641:2;10645:7;10614:20;:39::i;:::-;10715:29;10732:1;10736:7;10715:8;:29::i;:::-;-1:-1:-1;;;;;10755:15:5;;;;;;:9;:15;;;;;:20;;10774:1;;10755:15;:20;;10774:1;;10755:20;:::i;:::-;;;;-1:-1:-1;;;;;;;10785:13:5;;;;;;:9;:13;;;;;:18;;10802:1;;10785:13;:18;;10802:1;;10785:18;:::i;:::-;;;;-1:-1:-1;;10813:16:5;;;;:7;:16;;;;;;:21;;-1:-1:-1;;;;;;10813:21:5;-1:-1:-1;;;;;10813:21:5;;;;;;;;;10850:27;;10813:16;;10850:27;;;;;;;10324:560;;;:::o;847:184:14:-;968:4;1020;991:25;1004:5;1011:4;991:12;:25::i;:::-;:33;984:40;;847:184;;;;;;:::o;8101:108:5:-;8176:26;8186:2;8190:7;8176:26;;;;;;;;;;;;:9;:26::i;2270:187:0:-;2362:6;;;-1:-1:-1;;;;;2378:17:0;;;-1:-1:-1;;;;;;2378:17:0;;;;;;;2410:40;;2362:6;;;2378:17;2362:6;;2410:40;;2343:16;;2410:40;2333:124;2270:187;:::o;11301:307:5:-;11451:8;-1:-1:-1;;;;;11442:17:5;:5;-1:-1:-1;;;;;11442:17:5;;;11434:55;;;;-1:-1:-1;;;11434:55:5;;;;;;;:::i;:::-;-1:-1:-1;;;;;11499:25:5;;;;;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;;;:46;;-1:-1:-1;;11499:46:5;;;;;;;11560:41;;;;;11499:46;;11560:41;:::i;:::-;;;;;;;;11301:307;;;:::o;6534:::-;6685:28;6695:4;6701:2;6705:7;6685:9;:28::i;:::-;6731:48;6754:4;6760:2;6764:7;6773:5;6731:22;:48::i;:::-;6723:111;;;;-1:-1:-1;;;6723:111:5;;;;;;;:::i;2624:572:8:-;-1:-1:-1;;;;;2823:18:8;;2819:183;;2857:40;2889:7;4005:10;:17;;3978:24;;;;:15;:24;;;;;:44;;;4032:24;;;;;;;;;;;;3902:161;2857:40;2819:183;;;2926:2;-1:-1:-1;;;;;2918:10:8;:4;-1:-1:-1;;;;;2918:10:8;;2914:88;;2944:47;2977:4;2983:7;2944:32;:47::i;:::-;-1:-1:-1;;;;;3015:16:8;;3011:179;;3047:45;3084:7;3047:36;:45::i;3011:179::-;3119:4;-1:-1:-1;;;;;3113:10:8;:2;-1:-1:-1;;;;;3113:10:8;;3109:81;;3139:40;3167:2;3171:7;3139:27;:40::i;1383:688:14:-;1466:7;1508:4;1466:7;1522:514;1546:5;:12;1542:1;:16;1522:514;;;1579:20;1602:5;1608:1;1602:8;;;;;;;;:::i;:::-;;;;;;;1579:31;;1644:12;1628;:28;1624:402;;1796:12;1810;1779:44;;;;;;;;;:::i;:::-;;;;;;;;;;;;;1769:55;;;;;;1754:70;;1624:402;;;1983:12;1997;1966:44;;;;;;;;;:::i;:::-;;;;;;;;;;;;;1956:55;;;;;;1941:70;;1624:402;-1:-1:-1;1560:3:14;;;;:::i;:::-;;;;1522:514;;8430:311:5;8555:18;8561:2;8565:7;8555:5;:18::i;:::-;8604:54;8635:1;8639:2;8643:7;8652:5;8604:22;:54::i;:::-;8583:151;;;;-1:-1:-1;;;8583:151:5;;;;;;;:::i;12161:778::-;12311:4;-1:-1:-1;;;;;12331:13:5;;1087:20:11;1133:8;12327:606:5;;12366:72;;-1:-1:-1;;;12366:72:5;;-1:-1:-1;;;;;12366:36:5;;;;;:72;;719:10:12;;12417:4:5;;12423:7;;12432:5;;12366:72;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;12366:72:5;;;;;;;;-1:-1:-1;;12366:72:5;;;;;;;;;;;;:::i;:::-;;;12362:519;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;12605:13:5;;12601:266;;12647:60;;-1:-1:-1;;;12647:60:5;;;;;;;:::i;12601:266::-;12819:6;12813:13;12804:6;12800:2;12796:15;12789:38;12362:519;-1:-1:-1;;;;;;12488:51:5;-1:-1:-1;;;12488:51:5;;-1:-1:-1;12481:58:5;;12327:606;-1:-1:-1;12918:4:5;12161:778;;;;;;:::o;4680:970:8:-;4942:22;4992:1;4967:22;4984:4;4967:16;:22::i;:::-;:26;;;;:::i;:::-;5003:18;5024:26;;;:17;:26;;;;;;4942:51;;-1:-1:-1;5154:28:8;;;5150:323;;-1:-1:-1;;;;;5220:18:8;;5198:19;5220:18;;;:12;:18;;;;;;;;:34;;;;;;;;;5269:30;;;;;;:44;;;5385:30;;:17;:30;;;;;:43;;;5150:323;-1:-1:-1;5566:26:8;;;;:17;:26;;;;;;;;5559:33;;;-1:-1:-1;;;;;5609:18:8;;;;;:12;:18;;;;;:34;;;;;;;5602:41;4680:970::o;5938:1061::-;6212:10;:17;6187:22;;6212:21;;6232:1;;6212:21;:::i;:::-;6243:18;6264:24;;;:15;:24;;;;;;6632:10;:26;;6187:46;;-1:-1:-1;6264:24:8;;6187:46;;6632:26;;;;;;:::i;:::-;;;;;;;;;6610:48;;6694:11;6669:10;6680;6669:22;;;;;;;;:::i;:::-;;;;;;;;;;;;:36;;;;6773:28;;;:15;:28;;;;;;;:41;;;6942:24;;;;;6935:31;6976:10;:16;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;6009:990;;;5938:1061;:::o;3490:217::-;3574:14;3591:20;3608:2;3591:16;:20::i;:::-;-1:-1:-1;;;;;3621:16:8;;;;;;;:12;:16;;;;;;;;:24;;;;;;;;:34;;;3665:26;;;:17;:26;;;;;;:35;;;;-1:-1:-1;3490:217:8:o;9063:372:5:-;-1:-1:-1;;;;;9142:16:5;;9134:61;;;;-1:-1:-1;;;9134:61:5;;;;;;;:::i;:::-;7209:4;7232:16;;;:7;:16;;;;;;-1:-1:-1;;;;;7232:16:5;:30;9205:58;;;;-1:-1:-1;;;9205:58:5;;;;;;;:::i;:::-;9274:45;9303:1;9307:2;9311:7;9274:20;:45::i;:::-;-1:-1:-1;;;;;9330:13:5;;;;;;:9;:13;;;;;:18;;9347:1;;9330:13;:18;;9347:1;;9330:18;:::i;:::-;;;;-1:-1:-1;;9358:16:5;;;;:7;:16;;;;;;:21;;-1:-1:-1;;;;;;9358:21:5;-1:-1:-1;;;;;9358:21:5;;;;;;;;9395:33;;9358:16;;;9395:33;;9358:16;;9395:33;9063:372;;:::o;310:120:25:-;-1:-1:-1;;;;;;267:32:25;;384:21;377:5;374:32;364:60;;420:1;417;410:12;435:137;507:20;;536:30;507:20;536:30;:::i;577:325::-;635:6;688:2;676:9;667:7;663:23;659:32;656:147;;;714:79;481:5762:17;;;714:79:25;826:1;846:50;888:7;868:9;846:50;:::i;1004:89::-;979:13;;972:21;1067:19;1062:3;1055:32;;;1004:89::o;1098:188::-;1226:2;1211:18;;1238:42;1215:9;1254:6;1238:42;:::i;1527:258::-;1599:1;1609:113;1623:6;1620:1;1617:13;1609:113;;;1699:11;;;1693:18;1680:11;;;1673:39;1645:2;1638:10;1609:113;;;1740:6;1737:1;1734:13;1731:48;;;-1:-1:-1;;1775:1:25;1757:16;;1750:27;1527:258::o;1898:283::-;1940:3;1972:26;1992:5;1353:12;;1291:76;1972:26;1459:19;;;1511:4;1502:14;;2007:55;;2071:52;2116:6;2111:3;2104:4;2097:5;2093:16;2071:52;:::i;:::-;1883:2;1863:14;-1:-1:-1;;1859:28:25;2139:36;;;;;;-1:-1:-1;;1898:283:25:o;2186:267::-;2340:2;2352:47;;;2325:18;;2416:31;2325:18;2434:6;2416:31;:::i;2530:122::-;2621:5;2605:22;2458:67;2657:139;2730:20;;2759:31;2730:20;2759:31;:::i;2801:327::-;2860:6;2913:2;2901:9;2892:7;2888:23;2884:32;2881:147;;;2939:79;481:5762:17;;;2939:79:25;3051:1;3071:51;3114:7;3094:9;3071:51;:::i;3243:96::-;3278:7;-1:-1:-1;;;;;3201:31:25;;3311:22;3133:105;3344:95;3410:22;3426:5;3410:22;:::i;3444:197::-;3578:2;3563:18;;3590:45;3567:9;3609:6;3590:45;:::i;3646:122::-;3721:22;3737:5;3721:22;:::i;3773:139::-;3846:20;;3875:31;3846:20;3875:31;:::i;3917:443::-;3985:6;3993;4046:2;4034:9;4025:7;4021:23;4017:32;4014:147;;;4072:79;481:5762:17;;;4072:79:25;4184:1;4204:51;4247:7;4227:9;4204:51;:::i;:::-;4194:61;;;4280:2;4301:53;4346:7;4335:8;4324:9;4320:24;4301:53;:::i;:::-;4291:63;;;3917:443;;;;;:::o;4365:116::-;4455:1;4448:5;4445:12;4435:40;;4471:1;4468;4461:12;4486:169;4574:20;;4603:46;4574:20;4603:46;:::i;4660:364::-;4741:6;4794:2;4782:9;4773:7;4769:23;4765:32;4762:147;;;4820:79;481:5762:17;;;4820:79:25;4932:1;4952:66;5010:7;4990:9;4952:66;:::i;5029:95::-;5111:5;5095:22;2458:67;5129:197;5263:2;5248:18;;5275:45;5252:9;5294:6;5275:45;:::i;5331:327::-;5390:6;5443:2;5431:9;5422:7;5418:23;5414:32;5411:147;;;5469:79;481:5762:17;;;5469:79:25;5581:1;5601:51;5644:7;5624:9;5601:51;:::i;5663:559::-;5740:6;5748;5756;5809:2;5797:9;5788:7;5784:23;5780:32;5777:147;;;5835:79;481:5762:17;;;5835:79:25;5947:1;5967:51;6010:7;5990:9;5967:51;:::i;:::-;5957:61;;;6043:2;6064:53;6109:7;6098:8;6087:9;6083:24;6064:53;:::i;:::-;6054:63;;;6142:2;6163:53;6208:7;6197:8;6186:9;6182:24;6163:53;:::i;:::-;6153:63;;;5663:559;;;;;:::o;6308:91::-;6296:4;6285:16;;6372:20;6227:76;6404:191;6534:2;6519:18;;6546:43;6523:9;6563:6;6546:43;:::i;6600:127::-;6661:10;6656:3;6652:20;6649:1;6642:31;6692:4;6689:1;6682:15;6716:4;6713:1;6706:15;6732:246;-1:-1:-1;;1883:2:25;1863:14;;1859:28;6811:6;6807:37;6910:6;6898:10;6895:22;6874:18;6862:10;6859:34;6856:62;6853:88;;;6921:18;;:::i;:::-;6957:2;6950:22;-1:-1:-1;;6732:246:25:o;6983:133::-;7017:6;7048:20;76:2;70:9;;14:67;7048:20;7038:30;;7077:33;7105:4;7097:6;7077:33;:::i;:::-;6983:133;;;:::o;7121:207::-;7181:4;7214:18;7206:6;7203:30;7200:56;;;7236:18;;:::i;:::-;-1:-1:-1;7285:4:25;7273:17;;;7307:15;;7121:207::o;7604:683::-;7683:5;7712:64;7728:47;7768:6;7728:47;:::i;:::-;7712:64;:::i;:::-;7810:21;;;7703:73;-1:-1:-1;7858:4:25;7847:16;;;;7898:17;;7886:30;;7928:15;;;7925:130;;;7966:79;481:5762:17;;;7966:79:25;8075:6;8090:191;8106:6;8101:3;8098:15;8090:191;;;8208:28;8232:3;8227;8208:28;:::i;:::-;8196:41;;8266:4;8257:14;;;;8123;8090:191;;;8094:3;;;7604:683;;;;;:::o;8292:368::-;8346:5;8399:3;8392:4;8384:6;8380:17;8376:27;8366:150;;8427:79;481:5762:17;;;8427:79:25;8552:6;8539:20;8577:77;8650:3;8642:6;8635:4;8627:6;8623:17;8577:77;:::i;8665:116::-;979:13;;972:21;8737:19;907:92;8786:133;8856:20;;8885:28;8856:20;8885:28;:::i;8924:774::-;9023:6;9031;9039;9092:2;9080:9;9071:7;9067:23;9063:32;9060:147;;;9118:79;481:5762:17;;;9118:79:25;9230:1;9250:51;9293:7;9273:9;9250:51;:::i;:::-;9240:61;;;9354:2;9343:9;9339:18;9326:32;9383:18;9373:8;9370:32;9367:147;;;9425:79;481:5762:17;;;9425:79:25;9533:63;9588:7;9577:8;9566:9;9562:24;9533:63;:::i;:::-;9523:73;;;9621:2;9642:50;9684:7;9673:8;9662:9;9658:24;9642:50;:::i;9703:437::-;9768:6;9776;9829:2;9817:9;9808:7;9804:23;9800:32;9797:147;;;9855:79;481:5762:17;;;9855:79:25;9967:1;9987:51;10030:7;10010:9;9987:51;:::i;:::-;9977:61;;;10063:2;10084:50;10126:7;10115:8;10104:9;10100:24;10084:50;:::i;10145:127::-;10206:10;10201:3;10197:20;10194:1;10187:31;10237:4;10234:1;10227:15;10261:4;10258:1;10251:15;10277:122;10367:1;10360:5;10357:12;10347:46;;10373:18;;:::i;10404:149::-;10487:5;10501:46;10487:5;10501:46;:::i;10558:139::-;10617:9;10654:37;10685:5;10654:37;:::i;10702:134::-;10783:46;10823:5;10783:46;:::i;10841:232::-;10995:2;10980:18;;11007:60;10984:9;11041:6;11007:60;:::i;11078:437::-;11143:6;11151;11204:2;11192:9;11183:7;11179:23;11175:32;11172:147;;;11230:79;481:5762:17;;;11230:79:25;11342:1;11362:51;11405:7;11385:9;11362:51;:::i;11642:153::-;11721:31;11748:3;11740:6;11721:31;:::i;:::-;-1:-1:-1;11784:4:25;11775:14;;11642:153::o;11800:88::-;11881:4;11872:14;;11800:88::o;11893:562::-;11946:3;11978:26;11998:5;1353:12;;1291:76;11978:26;1459:19;;;1511:4;1502:14;;;;11617;;12179:1;12189:241;12203:6;12200:1;12197:13;12189:241;;;12279:6;12273:13;12306:48;12350:3;12335:13;12306:48;:::i;:::-;12299:55;-1:-1:-1;;11881:4:25;11872:14;;12367:53;-1:-1:-1;12225:1:25;12218:9;12189:241;;;-1:-1:-1;12446:3:25;;11893:562;-1:-1:-1;;;;11893:562:25:o;12460:308::-;12644:2;12656:47;;;12629:18;;12720:42;12629:18;12749:6;12720:42;:::i;12773:118::-;6296:4;6285:16;;12846:20;6227:76;12896:135;12967:20;;12996:29;12967:20;12996:29;:::i;13036:323::-;13093:6;13146:2;13134:9;13125:7;13121:23;13117:32;13114:147;;;13172:79;481:5762:17;;;13172:79:25;13284:1;13304:49;13345:7;13325:9;13304:49;:::i;13364:204::-;13412:4;13445:18;13437:6;13434:30;13431:56;;;13467:18;;:::i;:::-;-1:-1:-1;;1883:2:25;1863:14;;1859:28;13504:26;13557:4;13547:15;;13364:204;-1:-1:-1;;13364:204:25:o;13573:137::-;13661:6;13656:3;13651;13638:30;-1:-1:-1;13702:1:25;13684:16;;13677:27;13573:137::o;13715:416::-;13779:5;13808:52;13824:35;13852:6;13824:35;:::i;13808:52::-;13799:61;;13883:6;13876:5;13869:21;13921:4;13914:5;13910:16;13959:3;13950:6;13945:3;13941:16;13938:25;13935:140;;;13986:79;481:5762:17;;;13986:79:25;14084:41;14118:6;14113:3;14108;14084:41;:::i;14136:344::-;14178:5;14231:3;14224:4;14216:6;14212:17;14208:27;14198:150;;14259:79;481:5762:17;;;14259:79:25;14384:6;14371:20;14409:65;14470:3;14462:6;14455:4;14447:6;14443:17;14409:65;:::i;14485:869::-;14580:6;14588;14596;14604;14657:3;14645:9;14636:7;14632:23;14628:33;14625:148;;;14684:79;481:5762:17;;;14684:79:25;14796:1;14816:51;14859:7;14839:9;14816:51;:::i;:::-;14806:61;;;14892:2;14913:53;14958:7;14947:8;14936:9;14932:24;14913:53;:::i;:::-;14903:63;;;14991:2;15012:53;15057:7;15046:8;15035:9;15031:24;15012:53;:::i;:::-;15002:63;;;15118:2;15107:9;15103:18;15090:32;15147:18;15137:8;15134:32;15131:147;;;15189:79;481:5762:17;;;15189:79:25;15297:51;15340:7;15329:8;15318:9;15314:24;15297:51;:::i;:::-;15287:61;;;14485:869;;;;;;;:::o;15359:443::-;15427:6;15435;15488:2;15476:9;15467:7;15463:23;15459:32;15456:147;;;15514:79;481:5762:17;;;15514:79:25;15626:1;15646:51;15689:7;15669:9;15646:51;:::i;:::-;15636:61;;;15722:2;15743:53;15788:7;15777:8;15766:9;15762:24;15743:53;:::i;16782:127::-;16843:10;16838:3;16834:20;16831:1;16824:31;16874:4;16871:1;16864:15;16898:4;16895:1;16888:15;16914:283;16999:1;16989:12;;17046:1;17036:12;;;17057:61;;17111:4;17103:6;17099:17;17089:27;;17057:61;17164:2;17156:6;17153:14;17133:18;17130:38;17127:64;;;17171:18;;:::i;:::-;17127:64;16914:283;;;:::o;17439:252::-;17552:2;1459:19;;1511:4;1502:14;;17345:34;17322:58;;-1:-1:-1;;;17408:2:25;17396:15;;17389:39;17504:51;-1:-1:-1;17564:93:25;17682:2;17673:12;;17439:252::o;17696:324::-;17903:2;17915:47;;;17888:18;;17979:35;17888:18;17979:35;:::i;18251:252::-;18364:2;1459:19;;1511:4;1502:14;;18168:34;18145:58;;-1:-1:-1;;;18231:2:25;18219:15;;18212:28;18316:51;-1:-1:-1;18376:93:25;18025:221;18508:324;18715:2;18727:47;;;18700:18;;18791:35;18700:18;18791:35;:::i;19086:252::-;19199:2;1459:19;;1511:4;1502:14;;18980:34;18957:58;;19048:26;19043:2;19031:15;;19024:51;19151;-1:-1:-1;19211:93:25;18837:244;19343:324;19550:2;19562:47;;;19535:18;;19626:35;19535:18;19626:35;:::i;19914:252::-;20027:2;1459:19;;1511:4;1502:14;;19815:34;19792:58;;-1:-1:-1;;;19878:2:25;19866:15;;19859:44;19979:51;-1:-1:-1;20039:93:25;19672:237;20171:324;20378:2;20390:47;;;20363:18;;20454:35;20363:18;20454:35;:::i;20736:252::-;20849:2;1459:19;;1511:4;1502:14;;20643:34;20620:58;;-1:-1:-1;;;20706:2:25;20694:15;;20687:38;20801:51;-1:-1:-1;20861:93:25;20500:231;20993:324;21200:2;21212:47;;;21185:18;;21276:35;21185:18;21276:35;:::i;21322:127::-;21383:10;21378:3;21374:20;21371:1;21364:31;21414:4;21411:1;21404:15;21438:4;21435:1;21428:15;21454:189;21494:4;21586:1;21583;21580:8;21577:34;;;21591:18;;:::i;:::-;-1:-1:-1;21628:9:25;;21454:189::o;21885:252::-;21998:2;1459:19;;1511:4;1502:14;;21791:34;21768:58;;-1:-1:-1;;;21854:2:25;21842:15;;21835:39;21950:51;-1:-1:-1;22010:93:25;21648:232;22142:324;22349:2;22361:47;;;22334:18;;22425:35;22334:18;22425:35;:::i;22471:127::-;22532:10;22527:3;22523:20;22520:1;22513:31;22563:4;22560:1;22553:15;22587:4;22584:1;22577:15;22791:252;22904:2;1459:19;;1511:4;1502:14;;22746:33;22723:57;;22856:51;-1:-1:-1;22916:93:25;22603:183;23048:324;23255:2;23267:47;;;23240:18;;23331:35;23240:18;23331:35;:::i;23551:252::-;23664:2;1459:19;;1511:4;1502:14;;-1:-1:-1;;;23497:43:25;;23616:51;-1:-1:-1;23676:93:25;23377:169;23808:324;24015:2;24027:47;;;24000:18;;24091:35;24000:18;24091:35;:::i;24302:251::-;24415:1;1459:19;;1511:4;1502:14;;-1:-1:-1;;;24257:34:25;;24367:50;-1:-1:-1;24426:93:25;24137:160;24558:324;24765:2;24777:47;;;24750:18;;24841:35;24750:18;24841:35;:::i;25113:252::-;25226:2;1459:19;;1511:4;1502:14;;25030:34;25007:58;;-1:-1:-1;;;25093:2:25;25081:15;;25074:28;25178:51;-1:-1:-1;25238:93:25;24887:221;25370:324;25577:2;25589:47;;;25562:18;;25653:35;25562:18;25653:35;:::i;25870:252::-;25983:2;1459:19;;1511:4;1502:14;;-1:-1:-1;;;25819:40:25;;25935:51;-1:-1:-1;25995:93:25;25699:166;26127:324;26334:2;26346:47;;;26319:18;;26410:35;26319:18;26410:35;:::i;26456:200::-;26496:3;26587:14;;26581:21;;26578:47;;;26605:18;;:::i;:::-;-1:-1:-1;26641:9:25;;26456:200::o;26840:252::-;26953:2;1459:19;;1511:4;1502:14;;-1:-1:-1;;;26781:48:25;;26905:51;-1:-1:-1;26965:93:25;26661:174;27097:324;27304:2;27316:47;;;27289:18;;27380:35;27289:18;27380:35;:::i;27426:232::-;27466:7;27596:1;27592;27588:6;27584:14;27581:1;27578:21;27573:1;27566:9;27559:17;27555:45;27552:71;;;27603:18;;:::i;:::-;-1:-1:-1;27643:9:25;;27426:232::o;27845:252::-;27958:2;1459:19;;1511:4;1502:14;;27806:27;27783:51;;27910;-1:-1:-1;27970:93:25;27663:177;28102:324;28309:2;28321:47;;;28294:18;;28385:35;28294:18;28385:35;:::i;28605:252::-;28718:2;1459:19;;1511:4;1502:14;;-1:-1:-1;;;28551:43:25;;28670:51;-1:-1:-1;28730:93:25;28431:169;28862:324;29069:2;29081:47;;;29054:18;;29145:35;29054:18;29145:35;:::i;29269:81::-;29306:7;29331:17;29342:5;29252:2;29248:14;;29191:73;29355:100;29392:7;29425:24;29443:5;29425:24;:::i;29460:143::-;29555:41;29573:22;29589:5;29573:22;:::i;:::-;29555:41;:::i;29608:242::-;29737:60;29793:3;29785:6;29737:60;:::i;:::-;29822:2;29813:12;;29608:242;-1:-1:-1;29608:242:25:o;30034:252::-;30147:2;1459:19;;1511:4;1502:14;;-1:-1:-1;;;29975:48:25;;30099:51;-1:-1:-1;30159:93:25;29855:174;30291:324;30498:2;30510:47;;;30483:18;;30574:35;30483:18;30574:35;:::i;30789:247::-;30897:2;1459:19;;1511:4;1502:14;;-1:-1:-1;;;30740:38:25;;30849:51;-1:-1:-1;30909:93:25;30620:164;31041:319;31248:2;31260:47;;;31233:18;;31324:30;31233:18;31324:30;:::i;31365:175::-;31404:3;-1:-1:-1;;31465:17:25;;31462:43;;;31485:18;;:::i;:::-;-1:-1:-1;31532:1:25;31521:13;;31365:175::o;31545:280::-;31707:2;31692:18;;31719:45;31696:9;31738:6;31719:45;:::i;:::-;31773:46;31815:2;31804:9;31800:18;31792:6;31773:46;:::i;32064:252::-;32177:2;1459:19;;1511:4;1502:14;;31973:34;31950:58;;-1:-1:-1;;;32036:2:25;32024:15;;32017:36;32129:51;-1:-1:-1;32189:93:25;31830:229;32321:324;32528:2;32540:47;;;32513:18;;32604:35;32513:18;32604:35;:::i;32823:252::-;32936:2;1459:19;;1511:4;1502:14;;-1:-1:-1;;;32770:42:25;;32888:51;-1:-1:-1;32948:93:25;32650:168;33080:324;33287:2;33299:47;;;33272:18;;33363:35;33272:18;33363:35;:::i;33409:143::-;33493:13;;33515:31;33493:13;33515:31;:::i;33557:349::-;33627:6;33680:2;33668:9;33659:7;33655:23;33651:32;33648:147;;;33706:79;481:5762:17;;;33706:79:25;33818:1;33838:62;33892:7;33872:9;33838:62;:::i;34146:252::-;34259:2;1459:19;;1511:4;1502:14;;34054:34;34031:58;;-1:-1:-1;;;34117:2:25;34105:15;;34098:37;34211:51;-1:-1:-1;34271:93:25;33911:230;34403:324;34610:2;34622:47;;;34595:18;;34686:35;34595:18;34686:35;:::i;34921:252::-;35034:2;1459:19;;;34875:34;1502:14;;34852:58;;;35046:93;34732:184;35178:324;35385:2;35397:47;;;35370:18;;35461:35;35370:18;35461:35;:::i;35507:315::-;35689:2;35674:18;;35701:45;35678:9;35720:6;35701:45;:::i;:::-;35755:61;35812:2;35801:9;35797:18;35789:6;35755:61;:::i;35827:426::-;35903:5;35932:52;35948:35;35976:6;35948:35;:::i;35932:52::-;35923:61;;36007:6;36000:5;35993:21;36045:4;36038:5;36034:16;36083:3;36074:6;36069:3;36065:16;36062:25;36059:140;;;36110:79;481:5762:17;;;36110:79:25;36208:39;36240:6;36235:3;36230;36208:39;:::i;36258:361::-;36312:5;36365:3;36358:4;36350:6;36346:17;36342:27;36332:150;;36393:79;481:5762:17;;;36393:79:25;36511:6;36505:13;36536:77;36609:3;36601:6;36594:4;36586:6;36582:17;36536:77;:::i;36624:535::-;36704:6;36757:2;36745:9;36736:7;36732:23;36728:32;36725:147;;;36783:79;481:5762:17;;;36783:79:25;36895:24;;36942:18;36931:30;;36928:145;;;36984:79;481:5762:17;;;36984:79:25;37092:61;37145:7;37136:6;37125:9;37121:22;37092:61;:::i;37395:252::-;37508:2;1459:19;;1511:4;1502:14;;37307:34;37284:58;;-1:-1:-1;;;37370:2:25;37358:15;;37351:33;37460:51;-1:-1:-1;37520:93:25;37164:226;37652:324;37859:2;37871:47;;;37844:18;;37935:35;37844:18;37935:35;:::i;38218:252::-;38331:2;1459:19;;1511:4;1502:14;;38124:34;38101:58;;-1:-1:-1;;;38187:2:25;38175:15;;38168:39;38283:51;-1:-1:-1;38343:93:25;37981:232;38475:324;38682:2;38694:47;;;38667:18;;38758:35;38667:18;38758:35;:::i;39038:252::-;39151:2;1459:19;;1511:4;1502:14;;38947:34;38924:58;;-1:-1:-1;;;39010:2:25;38998:15;;38991:36;39103:51;-1:-1:-1;39163:93:25;38804:229;39295:324;39502:2;39514:47;;;39487:18;;39578:35;39487:18;39578:35;:::i;39853:252::-;39966:2;1459:19;;1511:4;1502:14;;39767:34;39744:58;;-1:-1:-1;;;39830:2:25;39818:15;;39811:31;39918:51;-1:-1:-1;39978:93:25;39624:224;40110:324;40317:2;40329:47;;;40302:18;;40393:35;40302:18;40393:35;:::i;40621:252::-;40734:2;1459:19;;1511:4;1502:14;;40582:27;40559:51;;40686;-1:-1:-1;40746:93:25;40439:177;40878:324;41085:2;41097:47;;;41070:18;;41161:35;41070:18;41161:35;:::i;41450:252::-;41563:2;1459:19;;1511:4;1502:14;;41350:34;41327:58;;-1:-1:-1;;;41413:2:25;41401:15;;41394:45;41515:51;-1:-1:-1;41575:93:25;41207:238;41707:324;41914:2;41926:47;;;41899:18;;41990:35;41899:18;41990:35;:::i;42153:309::-;42310:31;42337:3;42329:6;42310:31;:::i;:::-;42366:2;42357:12;42378:31;42357:12;42397:6;42378:31;:::i;42754:514::-;42990:3;42975:19;;43003:45;42979:9;43022:6;43003:45;:::i;:::-;43057:46;43099:2;43088:9;43084:18;43076:6;43057:46;:::i;:::-;43112;43154:2;43143:9;43139:18;43131:6;43112:46;:::i;:::-;43204:9;43198:4;43194:20;43189:2;43178:9;43174:18;43167:48;43232:30;43257:4;43249:6;43232:30;:::i;:::-;43224:38;42754:514;-1:-1:-1;;;;;;42754:514:25:o;43273:141::-;43356:13;;43378:30;43356:13;43378:30;:::i;43419:347::-;43488:6;43541:2;43529:9;43520:7;43516:23;43512:32;43509:147;;;43567:79;481:5762:17;;;43567:79:25;43679:1;43699:61;43752:7;43732:9;43699:61;:::i;43771:127::-;43832:10;43827:3;43823:20;43820:1;43813:31;43863:4;43860:1;43853:15;43887:4;43884:1;43877:15;44092:252;44205:2;1459:19;;;44046:34;1502:14;;44023:58;;;44217:93;43903:184;44349:324;44556:2;44568:47;;;44541:18;;44632:35;44541:18;44632:35;:::i;44863:252::-;44976:2;1459:19;;1511:4;1502:14;;44821:30;44798:54;;44928:51;-1:-1:-1;44988:93:25;44678:180;45120:324;45327:2;45339:47;;;45312:18;;45403:35;45312:18;45403:35;:::i

Swarm Source

ipfs://ce0c4ab11cb8654e695b49ef68da2ab71b2b864c027afb4a83fd12ce1f2f537e

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
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.