ETH Price: $2,531.28 (-0.01%)

Contract

0x84EA1fa1443aCB3a1de7197BbcA63758331b0ad9
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
0x60806040143058452022-03-02 5:58:32911 days ago1646200712IN
 Create: Strain
0 ETH0.0935815637.27075278

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
Strain

Compiler Version
v0.8.4+commit.c7e474f2

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 16 : Strain.sol
//SPDX-License-Identifier: Unlicense

pragma solidity ^0.8.0;

import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol";
import "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol";
import "@openzeppelin/contracts-upgradeable/token/ERC721/ERC721Upgradeable.sol";
import "@openzeppelin/contracts-upgradeable/security/ReentrancyGuardUpgradeable.sol";
import "@openzeppelin/contracts/utils/Counters.sol";
import "@openzeppelin/contracts-upgradeable/security/PausableUpgradeable.sol";
import "./AdminManager.sol";

contract Strain is
    Initializable,
    ERC721Upgradeable,
    PausableUpgradeable,
    ReentrancyGuardUpgradeable,
    AdminManagerUpgradable
{
    using Counters for Counters.Counter;

    struct CoreTraits {
        uint32 size;
        uint32 thc;
        uint32 terpenes;
        uint32 deathTime;
    }

    Counters.Counter private _idCounter;

    uint256 public ethCost;
    uint256 public genesisSupply;
    uint256 public maxGenesisSupply;
    bool public publicSaleEnabled;
    string private _uri;
    bytes32 private _merkleTreeRoot;
    uint256 private _publicMintLimit;
    address payable private _paymentSplitter;
    mapping(uint256 => CoreTraits) private _coreTraits;
    mapping(address => uint256) private _mintsByWhitelist;

    function initialize(string memory uri, bytes32 merkleTreeRoot)
        public
        initializer
    {
        __Context_init_unchained();
        __ERC165_init_unchained();
        __ERC721_init_unchained("WEEDGANG.GAME - STRAIN", "WG-S");
        __Pausable_init_unchained();
        __ReentrancyGuard_init();
        __AdminManager_init();
        _uri = uri;
        _merkleTreeRoot = merkleTreeRoot;
        ethCost = 0.8 ether;
        maxGenesisSupply = 9000;
        _publicMintLimit = 5;
    }

    function adminMint(uint256 amount) external onlyAdmin {
        _callMint(amount);
    }

    function whitelistMint(
        uint256 amount,
        uint256 places,
        bytes32[] calldata proof
    ) external payable whenNotPaused nonReentrant {
        bytes32 leaf = keccak256(abi.encodePacked(msg.sender, places));
        require(
            MerkleProof.verify(proof, _merkleTreeRoot, leaf),
            "Address not whitelisted!"
        );
        require(
            _mintsByWhitelist[msg.sender] + amount <= places,
            "Not enough whitelist places!"
        );
        require(msg.value >= ethCost * amount, "Provide more ether!");
        _callMint(amount);
        _mintsByWhitelist[msg.sender] += amount;
    }

    function breedMint(address account, CoreTraits memory traits)
        external
        onlyAdmin
        whenNotPaused
    {
        _breed(account, traits);
    }

    function mint(uint256 amount) external payable whenNotPaused nonReentrant {
        require(publicSaleEnabled, "Public sale disabled!");
        require(amount <= _publicMintLimit, "Transaction limit reached!");
        require(
            balanceOf(msg.sender) + amount <= _publicMintLimit,
            "Address max balance reached!"
        );
        require(msg.value >= ethCost * amount, "Provide more ether!");
        _callMint(amount);
    }

    function pause() external onlyAdmin {
        _pause();
    }

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

    function setEthCost(uint256 cost) external onlyAdmin {
        ethCost = cost;
    }

    function setMaxGenesisSupply(uint256 supply) external onlyAdmin {
        maxGenesisSupply = supply;
    }

    function setPublicSaleEnabled(bool publicSale) external onlyAdmin {
        publicSaleEnabled = publicSale;
    }

    function setUri(string memory uri) external onlyAdmin {
        _uri = uri;
    }

    function setMerkleTreeRoot(bytes32 root) external onlyAdmin {
        _merkleTreeRoot = root;
    }

    function setPublicMintLimit(uint256 limit) external onlyAdmin {
        _publicMintLimit = limit;
    }

    function paymentSplitter() external view onlyAdmin returns (address) {
        return _paymentSplitter;
    }

    function setPaymentSplitter(address payable contractAddress)
        external
        onlyAdmin
    {
        _paymentSplitter = contractAddress;
    }

    function coreTraits(uint256 id) external view returns (CoreTraits memory) {
        require(_exists(id), "Nonexistent token!");
        return _coreTraits[id];
    }

    function burn(uint256 id) external onlyAdmin {
        _burn(id);
    }

    function withdraw() external onlyAdmin {
        require(_paymentSplitter != address(0x0), "Address not set!");
        (bool success, ) = _paymentSplitter.call{value: address(this).balance}(
            ""
        );
        require(success, "Transfer failed!");
    }

    function _callMint(uint256 amount) private {
        require(amount > 0, "Trying to mint 0 tokens!");
        require(
            genesisSupply + amount <= maxGenesisSupply,
            "Genesis supply limit reached!"
        );
        for (uint256 i = 1; i <= amount; i++) {
            _breed(msg.sender, CoreTraits(500, 500, 250, 0));
            genesisSupply++;
        }
    }

    function _breed(address account, CoreTraits memory traits) private {
        _idCounter.increment();
        uint256 id = _idCounter.current();
        _coreTraits[id] = traits;
        _safeMint(account, id);
    }

    function _baseURI() internal view override returns (string memory) {
        return _uri;
    }
}

File 2 of 16 : 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 3 of 16 : Initializable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (proxy/utils/Initializable.sol)

pragma solidity ^0.8.0;

import "../../utils/AddressUpgradeable.sol";

/**
 * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed
 * behind a proxy. Since a proxied contract can't have a constructor, it's common to move constructor logic to an
 * external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer
 * function so it can only be called once. The {initializer} modifier provided by this contract will have this effect.
 *
 * TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as
 * possible by providing the encoded function call as the `_data` argument to {ERC1967Proxy-constructor}.
 *
 * CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure
 * that all initializers are idempotent. This is not verified automatically as constructors are by Solidity.
 *
 * [CAUTION]
 * ====
 * Avoid leaving a contract uninitialized.
 *
 * An uninitialized contract can be taken over by an attacker. This applies to both a proxy and its implementation
 * contract, which may impact the proxy. To initialize the implementation contract, you can either invoke the
 * initializer manually, or you can include a constructor to automatically mark it as initialized when it is deployed:
 *
 * [.hljs-theme-light.nopadding]
 * ```
 * /// @custom:oz-upgrades-unsafe-allow constructor
 * constructor() initializer {}
 * ```
 * ====
 */
abstract contract Initializable {
    /**
     * @dev Indicates that the contract has been initialized.
     */
    bool private _initialized;

    /**
     * @dev Indicates that the contract is in the process of being initialized.
     */
    bool private _initializing;

    /**
     * @dev Modifier to protect an initializer function from being invoked twice.
     */
    modifier initializer() {
        // If the contract is initializing we ignore whether _initialized is set in order to support multiple
        // inheritance patterns, but we only do this in the context of a constructor, because in other contexts the
        // contract may have been reentered.
        require(_initializing ? _isConstructor() : !_initialized, "Initializable: contract is already initialized");

        bool isTopLevelCall = !_initializing;
        if (isTopLevelCall) {
            _initializing = true;
            _initialized = true;
        }

        _;

        if (isTopLevelCall) {
            _initializing = false;
        }
    }

    /**
     * @dev Modifier to protect an initialization function so that it can only be invoked by functions with the
     * {initializer} modifier, directly or indirectly.
     */
    modifier onlyInitializing() {
        require(_initializing, "Initializable: contract is not initializing");
        _;
    }

    function _isConstructor() private view returns (bool) {
        return !AddressUpgradeable.isContract(address(this));
    }
}

File 4 of 16 : ERC721Upgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/ERC721.sol)

pragma solidity ^0.8.0;

import "./IERC721Upgradeable.sol";
import "./IERC721ReceiverUpgradeable.sol";
import "./extensions/IERC721MetadataUpgradeable.sol";
import "../../utils/AddressUpgradeable.sol";
import "../../utils/ContextUpgradeable.sol";
import "../../utils/StringsUpgradeable.sol";
import "../../utils/introspection/ERC165Upgradeable.sol";
import "../../proxy/utils/Initializable.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 ERC721Upgradeable is Initializable, ContextUpgradeable, ERC165Upgradeable, IERC721Upgradeable, IERC721MetadataUpgradeable {
    using AddressUpgradeable for address;
    using StringsUpgradeable 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.
     */
    function __ERC721_init(string memory name_, string memory symbol_) internal onlyInitializing {
        __Context_init_unchained();
        __ERC165_init_unchained();
        __ERC721_init_unchained(name_, symbol_);
    }

    function __ERC721_init_unchained(string memory name_, string memory symbol_) internal onlyInitializing {
        _name = name_;
        _symbol = symbol_;
    }

    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165Upgradeable, IERC165Upgradeable) returns (bool) {
        return
            interfaceId == type(IERC721Upgradeable).interfaceId ||
            interfaceId == type(IERC721MetadataUpgradeable).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 = ERC721Upgradeable.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 = ERC721Upgradeable.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 = ERC721Upgradeable.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(ERC721Upgradeable.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(ERC721Upgradeable.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 IERC721ReceiverUpgradeable(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) {
                return retval == IERC721ReceiverUpgradeable.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 {}
    uint256[44] private __gap;
}

File 5 of 16 : ReentrancyGuardUpgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol)

pragma solidity ^0.8.0;
import "../proxy/utils/Initializable.sol";

/**
 * @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 ReentrancyGuardUpgradeable is Initializable {
    // 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;

    function __ReentrancyGuard_init() internal onlyInitializing {
        __ReentrancyGuard_init_unchained();
    }

    function __ReentrancyGuard_init_unchained() internal onlyInitializing {
        _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;
    }
    uint256[49] private __gap;
}

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

pragma solidity ^0.8.0;

/**
 * @title Counters
 * @author Matt Condon (@shrugs)
 * @dev Provides counters that can only be incremented, decremented or reset. This can be used e.g. to track the number
 * of elements in a mapping, issuing ERC721 ids, or counting request ids.
 *
 * Include with `using Counters for Counters.Counter;`
 */
library Counters {
    struct Counter {
        // This variable should never be directly accessed by users of the library: interactions must be restricted to
        // the library's function. As of Solidity v0.5.2, this cannot be enforced, though there is a proposal to add
        // this feature: see https://github.com/ethereum/solidity/issues/4637
        uint256 _value; // default: 0
    }

    function current(Counter storage counter) internal view returns (uint256) {
        return counter._value;
    }

    function increment(Counter storage counter) internal {
        unchecked {
            counter._value += 1;
        }
    }

    function decrement(Counter storage counter) internal {
        uint256 value = counter._value;
        require(value > 0, "Counter: decrement overflow");
        unchecked {
            counter._value = value - 1;
        }
    }

    function reset(Counter storage counter) internal {
        counter._value = 0;
    }
}

File 7 of 16 : PausableUpgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (security/Pausable.sol)

pragma solidity ^0.8.0;

import "../utils/ContextUpgradeable.sol";
import "../proxy/utils/Initializable.sol";

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

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

    bool private _paused;

    /**
     * @dev Initializes the contract in unpaused state.
     */
    function __Pausable_init() internal onlyInitializing {
        __Context_init_unchained();
        __Pausable_init_unchained();
    }

    function __Pausable_init_unchained() internal onlyInitializing {
        _paused = false;
    }

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

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

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

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

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

File 8 of 16 : AdminManager.sol
//SPDX-License-Identifier: Unlicense

pragma solidity ^0.8.0;

import "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol";

contract AdminManagerUpgradable is Initializable {
    mapping(address => bool) private _admins;

    function __AdminManager_init() internal onlyInitializing {
        _admins[msg.sender] = true;
    }

    function setAdminPermissions(address account, bool enable)
        external
        onlyAdmin
    {
        _admins[account] = enable;
    }

    modifier onlyAdmin() {
        require(_admins[msg.sender], "Not an admin");
        _;
    }

    uint256[49] private __gap;
}

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

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

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

pragma solidity ^0.8.0;

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

/**
 * @dev Required interface of an ERC721 compliant contract.
 */
interface IERC721Upgradeable is IERC165Upgradeable {
    /**
     * @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 11 of 16 : IERC721ReceiverUpgradeable.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 IERC721ReceiverUpgradeable {
    /**
     * @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 12 of 16 : IERC721MetadataUpgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol)

pragma solidity ^0.8.0;

import "../IERC721Upgradeable.sol";

/**
 * @title ERC-721 Non-Fungible Token Standard, optional metadata extension
 * @dev See https://eips.ethereum.org/EIPS/eip-721
 */
interface IERC721MetadataUpgradeable is IERC721Upgradeable {
    /**
     * @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 13 of 16 : ContextUpgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)

pragma solidity ^0.8.0;
import "../proxy/utils/Initializable.sol";

/**
 * @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 ContextUpgradeable is Initializable {
    function __Context_init() internal onlyInitializing {
        __Context_init_unchained();
    }

    function __Context_init_unchained() internal onlyInitializing {
    }
    function _msgSender() internal view virtual returns (address) {
        return msg.sender;
    }

    function _msgData() internal view virtual returns (bytes calldata) {
        return msg.data;
    }
    uint256[50] private __gap;
}

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

pragma solidity ^0.8.0;

import "./IERC165Upgradeable.sol";
import "../../proxy/utils/Initializable.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 ERC165Upgradeable is Initializable, IERC165Upgradeable {
    function __ERC165_init() internal onlyInitializing {
        __ERC165_init_unchained();
    }

    function __ERC165_init_unchained() internal onlyInitializing {
    }
    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
        return interfaceId == type(IERC165Upgradeable).interfaceId;
    }
    uint256[50] private __gap;
}

File 16 of 16 : IERC165Upgradeable.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 IERC165Upgradeable {
    /**
     * @dev Returns true if this contract implements the interface defined by
     * `interfaceId`. See the corresponding
     * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section]
     * to learn more about how these ids are created.
     *
     * This function call must use less than 30 000 gas.
     */
    function supportsInterface(bytes4 interfaceId) external view returns (bool);
}

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

Contract Security Audit

Contract ABI

[{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","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"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"adminMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"components":[{"internalType":"uint32","name":"size","type":"uint32"},{"internalType":"uint32","name":"thc","type":"uint32"},{"internalType":"uint32","name":"terpenes","type":"uint32"},{"internalType":"uint32","name":"deathTime","type":"uint32"}],"internalType":"struct Strain.CoreTraits","name":"traits","type":"tuple"}],"name":"breedMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"coreTraits","outputs":[{"components":[{"internalType":"uint32","name":"size","type":"uint32"},{"internalType":"uint32","name":"thc","type":"uint32"},{"internalType":"uint32","name":"terpenes","type":"uint32"},{"internalType":"uint32","name":"deathTime","type":"uint32"}],"internalType":"struct Strain.CoreTraits","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ethCost","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"genesisSupply","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":"string","name":"uri","type":"string"},{"internalType":"bytes32","name":"merkleTreeRoot","type":"bytes32"}],"name":"initialize","outputs":[],"stateMutability":"nonpayable","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":[],"name":"maxGenesisSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"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":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"paymentSplitter","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"publicSaleEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","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":[{"internalType":"address","name":"account","type":"address"},{"internalType":"bool","name":"enable","type":"bool"}],"name":"setAdminPermissions","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"cost","type":"uint256"}],"name":"setEthCost","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"supply","type":"uint256"}],"name":"setMaxGenesisSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"root","type":"bytes32"}],"name":"setMerkleTreeRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address payable","name":"contractAddress","type":"address"}],"name":"setPaymentSplitter","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"limit","type":"uint256"}],"name":"setPublicMintLimit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"publicSale","type":"bool"}],"name":"setPublicSaleEnabled","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"uri","type":"string"}],"name":"setUri","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"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":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"places","type":"uint256"},{"internalType":"bytes32[]","name":"proof","type":"bytes32[]"}],"name":"whitelistMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

608060405234801561001057600080fd5b50612c75806100206000396000f3fe60806040526004361061021a5760003560e01c806370a0823111610123578063b3944d94116100ab578063c87b56dd1161006f578063c87b56dd146105f0578063e985e9c514610610578063ed4a6b0c14610659578063ef3e067c1461066e578063fd5d21f81461068e57600080fd5b8063b3944d941461055d578063b88d4fde1461057d578063bd93bc301461059d578063c1f26123146105bd578063c4be5b59146105dd57600080fd5b80638b4f7b3b116100f25780638b4f7b3b146104d557806395d89b41146104f55780639b642de11461050a578063a0712d681461052a578063a22cb4651461053d57600080fd5b806370a0823114610469578063842b83fa146104895780638456cb59146104a05780638720fbef146104b557600080fd5b80633ccfd60b116101a65780634bbf179b116101755780634bbf179b146103da57806350dc4656146103f15780635c975abb146104115780636352211e146104295780636b29b79f1461044957600080fd5b80633ccfd60b146103705780633f4ba83a1461038557806342842e0e1461039a57806342966c68146103ba57600080fd5b8063095ea7b3116101ed578063095ea7b3146102d357806323b872dd146102f5578063240ff27f1461031557806324a8fb70146103355780632ab91bba1461035557600080fd5b806301ffc9a71461021f5780630435e2f91461025457806306fdde0314610279578063081812fc1461029b575b600080fd5b34801561022b57600080fd5b5061023f61023a3660046127c5565b6106ee565b60405190151581526020015b60405180910390f35b34801561026057600080fd5b5061026b61012e5481565b60405190815260200161024b565b34801561028557600080fd5b5061028e610740565b60405161024b9190612989565b3480156102a757600080fd5b506102bb6102b63660046127ad565b6107d2565b6040516001600160a01b03909116815260200161024b565b3480156102df57600080fd5b506102f36102ee366004612768565b61086c565b005b34801561030157600080fd5b506102f36103103660046125d3565b610982565b34801561032157600080fd5b506102f3610330366004612690565b6109b3565b34801561034157600080fd5b506102f36103503660046127ad565b610a0d565b34801561036157600080fd5b506101315461023f9060ff1681565b34801561037c57600080fd5b506102f3610a42565b34801561039157600080fd5b506102f3610b57565b3480156103a657600080fd5b506102f36103b53660046125d3565b610b90565b3480156103c657600080fd5b506102f36103d53660046127ad565b610bab565b3480156103e657600080fd5b5061026b61012f5481565b3480156103fd57600080fd5b506102f361040c3660046127ad565b610be3565b34801561041d57600080fd5b5060975460ff1661023f565b34801561043557600080fd5b506102bb6104443660046127ad565b610c18565b34801561045557600080fd5b506102f361046436600461257f565b610c8f565b34801561047557600080fd5b5061026b61048436600461257f565b610ce1565b34801561049557600080fd5b5061026b6101305481565b3480156104ac57600080fd5b506102f3610d68565b3480156104c157600080fd5b506102f36104d0366004612793565b610d9f565b3480156104e157600080fd5b506102f36104f0366004612830565b610de2565b34801561050157600080fd5b5061028e610f4d565b34801561051657600080fd5b506102f36105253660046127fd565b610f5c565b6102f36105383660046127ad565b610fa3565b34801561054957600080fd5b506102f3610558366004612690565b611187565b34801561056957600080fd5b506102f36105783660046126c4565b611192565b34801561058957600080fd5b506102f3610598366004612613565b6111ee565b3480156105a957600080fd5b506102f36105b83660046127ad565b611226565b3480156105c957600080fd5b506102f36105d83660046127ad565b61125b565b6102f36105eb366004612873565b611293565b3480156105fc57600080fd5b5061028e61060b3660046127ad565b6114d6565b34801561061c57600080fd5b5061023f61062b36600461259b565b6001600160a01b039182166000908152606a6020908152604080832093909416825291909152205460ff1690565b34801561066557600080fd5b506102bb6115b1565b34801561067a57600080fd5b506102f36106893660046127ad565b6115f1565b34801561069a57600080fd5b506106ae6106a93660046127ad565b611626565b60405161024b9190815163ffffffff9081168252602080840151821690830152604080840151821690830152606092830151169181019190915260800190565b60006001600160e01b031982166380ac58cd60e01b148061071f57506001600160e01b03198216635b5e139f60e01b145b8061073a57506301ffc9a760e01b6001600160e01b03198316145b92915050565b60606065805461074f90612b68565b80601f016020809104026020016040519081016040528092919081815260200182805461077b90612b68565b80156107c85780601f1061079d576101008083540402835291602001916107c8565b820191906000526020600020905b8154815290600101906020018083116107ab57829003601f168201915b5050505050905090565b6000818152606760205260408120546001600160a01b03166108505760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152606960205260409020546001600160a01b031690565b600061087782610c18565b9050806001600160a01b0316836001600160a01b031614156108e55760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610847565b336001600160a01b03821614806109015750610901813361062b565b6109735760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610847565b61097d83836116fd565b505050565b61098c338261176b565b6109a85760405162461bcd60e51b815260040161084790612a3e565b61097d838383611862565b33600090815260fb602052604090205460ff166109e25760405162461bcd60e51b8152600401610847906129ee565b6001600160a01b0391909116600090815260fb60205260409020805460ff1916911515919091179055565b33600090815260fb602052604090205460ff16610a3c5760405162461bcd60e51b8152600401610847906129ee565b61012e55565b33600090815260fb602052604090205460ff16610a715760405162461bcd60e51b8152600401610847906129ee565b610135546001600160a01b0316610abd5760405162461bcd60e51b815260206004820152601060248201526f41646472657373206e6f74207365742160801b6044820152606401610847565b610135546040516000916001600160a01b03169047908381818185875af1925050503d8060008114610b0b576040519150601f19603f3d011682016040523d82523d6000602084013e610b10565b606091505b5050905080610b545760405162461bcd60e51b815260206004820152601060248201526f5472616e73666572206661696c65642160801b6044820152606401610847565b50565b33600090815260fb602052604090205460ff16610b865760405162461bcd60e51b8152600401610847906129ee565b610b8e611a02565b565b61097d838383604051806020016040528060008152506111ee565b33600090815260fb602052604090205460ff16610bda5760405162461bcd60e51b8152600401610847906129ee565b610b5481611a95565b33600090815260fb602052604090205460ff16610c125760405162461bcd60e51b8152600401610847906129ee565b61013355565b6000818152606760205260408120546001600160a01b03168061073a5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610847565b33600090815260fb602052604090205460ff16610cbe5760405162461bcd60e51b8152600401610847906129ee565b61013580546001600160a01b0319166001600160a01b0392909216919091179055565b60006001600160a01b038216610d4c5760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610847565b506001600160a01b031660009081526068602052604090205490565b33600090815260fb602052604090205460ff16610d975760405162461bcd60e51b8152600401610847906129ee565b610b8e611b30565b33600090815260fb602052604090205460ff16610dce5760405162461bcd60e51b8152600401610847906129ee565b610131805460ff1916911515919091179055565b600054610100900460ff16610dfd5760005460ff1615610e01565b303b155b610e645760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b6064820152608401610847565b600054610100900460ff16158015610e86576000805461ffff19166101011790555b610e8e611b88565b610e96611b88565b610eea604051806040016040528060168152602001752ba2a2a223a0a7239723a0a6a290169029aa2920a4a760511b8152506040518060400160405280600481526020016357472d5360e01b815250611baf565b610ef2611bfd565b610efa611c30565b610f02611c5f565b8251610f1690610132906020860190612428565b50610133829055670b1a2bc2ec50000061012e5561232861013055600561013455801561097d576000805461ff0019169055505050565b60606066805461074f90612b68565b33600090815260fb602052604090205460ff16610f8b5760405162461bcd60e51b8152600401610847906129ee565b8051610f9f90610132906020840190612428565b5050565b60975460ff1615610fc65760405162461bcd60e51b815260040161084790612a14565b600260c95414156110195760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610847565b600260c9556101315460ff166110695760405162461bcd60e51b81526020600482015260156024820152745075626c69632073616c652064697361626c65642160581b6044820152606401610847565b610134548111156110bc5760405162461bcd60e51b815260206004820152601a60248201527f5472616e73616374696f6e206c696d69742072656163686564210000000000006044820152606401610847565b61013454816110ca33610ce1565b6110d49190612ada565b11156111225760405162461bcd60e51b815260206004820152601c60248201527f41646472657373206d61782062616c616e6365207265616368656421000000006044820152606401610847565b8061012e546111319190612b06565b3410156111765760405162461bcd60e51b815260206004820152601360248201527250726f76696465206d6f72652065746865722160681b6044820152606401610847565b61117f81611ca2565b50600160c955565b610f9f338383611db6565b33600090815260fb602052604090205460ff166111c15760405162461bcd60e51b8152600401610847906129ee565b60975460ff16156111e45760405162461bcd60e51b815260040161084790612a14565b610f9f8282611e85565b6111f8338361176b565b6112145760405162461bcd60e51b815260040161084790612a3e565b61122084848484611f31565b50505050565b33600090815260fb602052604090205460ff166112555760405162461bcd60e51b8152600401610847906129ee565b61013055565b33600090815260fb602052604090205460ff1661128a5760405162461bcd60e51b8152600401610847906129ee565b610b5481611ca2565b60975460ff16156112b65760405162461bcd60e51b815260040161084790612a14565b600260c95414156113095760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610847565b600260c9556040516bffffffffffffffffffffffff193360601b1660208201526034810184905260009060540160405160208183030381529060405280519060200120905061139083838080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525050610133549150849050611f64565b6113dc5760405162461bcd60e51b815260206004820152601860248201527f41646472657373206e6f742077686974656c69737465642100000000000000006044820152606401610847565b336000908152610137602052604090205484906113fa908790612ada565b11156114485760405162461bcd60e51b815260206004820152601c60248201527f4e6f7420656e6f7567682077686974656c69737420706c6163657321000000006044820152606401610847565b8461012e546114579190612b06565b34101561149c5760405162461bcd60e51b815260206004820152601360248201527250726f76696465206d6f72652065746865722160681b6044820152606401610847565b6114a585611ca2565b3360009081526101376020526040812080548792906114c5908490612ada565b9091555050600160c9555050505050565b6000818152606760205260409020546060906001600160a01b03166115555760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401610847565b600061155f611f7a565b9050600081511161157f57604051806020016040528060008152506115aa565b8061158984611f8a565b60405160200161159a92919061291d565b6040516020818303038152906040525b9392505050565b33600090815260fb602052604081205460ff166115e05760405162461bcd60e51b8152600401610847906129ee565b50610135546001600160a01b031690565b33600090815260fb602052604090205460ff166116205760405162461bcd60e51b8152600401610847906129ee565b61013455565b6040805160808101825260008082526020820181905291810182905260608101919091526000828152606760205260409020546001600160a01b03166116a35760405162461bcd60e51b81526020600482015260126024820152714e6f6e6578697374656e7420746f6b656e2160701b6044820152606401610847565b50600090815261013660209081526040918290208251608081018452905463ffffffff80821683526401000000008204811693830193909352600160401b8104831693820193909352600160601b90920416606082015290565b600081815260696020526040902080546001600160a01b0319166001600160a01b038416908117909155819061173282610c18565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152606760205260408120546001600160a01b03166117e45760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610847565b60006117ef83610c18565b9050806001600160a01b0316846001600160a01b0316148061182a5750836001600160a01b031661181f846107d2565b6001600160a01b0316145b8061185a57506001600160a01b038082166000908152606a602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b031661187582610c18565b6001600160a01b0316146118dd5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b6064820152608401610847565b6001600160a01b03821661193f5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610847565b61194a6000826116fd565b6001600160a01b0383166000908152606860205260408120805460019290611973908490612b25565b90915550506001600160a01b03821660009081526068602052604081208054600192906119a1908490612ada565b909155505060008181526067602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b60975460ff16611a4b5760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b6044820152606401610847565b6097805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b6000611aa082610c18565b9050611aad6000836116fd565b6001600160a01b0381166000908152606860205260408120805460019290611ad6908490612b25565b909155505060008281526067602052604080822080546001600160a01b0319169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b60975460ff1615611b535760405162461bcd60e51b815260040161084790612a14565b6097805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258611a783390565b600054610100900460ff16610b8e5760405162461bcd60e51b815260040161084790612a8f565b600054610100900460ff16611bd65760405162461bcd60e51b815260040161084790612a8f565b8151611be9906065906020850190612428565b50805161097d906066906020840190612428565b600054610100900460ff16611c245760405162461bcd60e51b815260040161084790612a8f565b6097805460ff19169055565b600054610100900460ff16611c575760405162461bcd60e51b815260040161084790612a8f565b610b8e6120a4565b600054610100900460ff16611c865760405162461bcd60e51b815260040161084790612a8f565b33600090815260fb60205260409020805460ff19166001179055565b60008111611cf25760405162461bcd60e51b815260206004820152601860248201527f547279696e6720746f206d696e74203020746f6b656e732100000000000000006044820152606401610847565b610130548161012f54611d059190612ada565b1115611d535760405162461bcd60e51b815260206004820152601d60248201527f47656e6573697320737570706c79206c696d69742072656163686564210000006044820152606401610847565b60015b818111610f9f57604080516080810182526101f4808252602082015260fa9181019190915260006060820152611d8d903390611e85565b61012f8054906000611d9e83612ba3565b91905055508080611dae90612ba3565b915050611d56565b816001600160a01b0316836001600160a01b03161415611e185760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610847565b6001600160a01b038381166000818152606a6020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b611e9461012d80546001019055565b6000611ea061012d5490565b60008181526101366020908152604091829020855181549287015193870151606088015163ffffffff908116600160601b0263ffffffff60601b19928216600160401b02929092166fffffffffffffffff0000000000000000199682166401000000000267ffffffffffffffff199096169190931617939093179390931692909217179055905061097d83826120d2565b611f3c848484611862565b611f48848484846120ec565b6112205760405162461bcd60e51b81526004016108479061299c565b600082611f7185846121f9565b14949350505050565b6060610132805461074f90612b68565b606081611fae5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115611fd85780611fc281612ba3565b9150611fd19050600a83612af2565b9150611fb2565b60008167ffffffffffffffff81111561200157634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f19166020018201604052801561202b576020820181803683370190505b5090505b841561185a57612040600183612b25565b915061204d600a86612bbe565b612058906030612ada565b60f81b81838151811061207b57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a90535061209d600a86612af2565b945061202f565b600054610100900460ff166120cb5760405162461bcd60e51b815260040161084790612a8f565b600160c955565b610f9f8282604051806020016040528060008152506122b3565b60006001600160a01b0384163b156121ee57604051630a85bd0160e11b81526001600160a01b0385169063150b7a029061213090339089908890889060040161294c565b602060405180830381600087803b15801561214a57600080fd5b505af192505050801561217a575060408051601f3d908101601f19168201909252612177918101906127e1565b60015b6121d4573d8080156121a8576040519150601f19603f3d011682016040523d82523d6000602084013e6121ad565b606091505b5080516121cc5760405162461bcd60e51b81526004016108479061299c565b805181602001fd5b6001600160e01b031916630a85bd0160e11b14905061185a565b506001949350505050565b600081815b84518110156122ab57600085828151811061222957634e487b7160e01b600052603260045260246000fd5b6020026020010151905080831161226b576040805160208101859052908101829052606001604051602081830303815290604052805190602001209250612298565b60408051602081018390529081018490526060016040516020818303038152906040528051906020012092505b50806122a381612ba3565b9150506121fe565b509392505050565b6122bd83836122e6565b6122ca60008484846120ec565b61097d5760405162461bcd60e51b81526004016108479061299c565b6001600160a01b03821661233c5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610847565b6000818152606760205260409020546001600160a01b0316156123a15760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610847565b6001600160a01b03821660009081526068602052604081208054600192906123ca908490612ada565b909155505060008181526067602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b82805461243490612b68565b90600052602060002090601f016020900481019282612456576000855561249c565b82601f1061246f57805160ff191683800117855561249c565b8280016001018555821561249c579182015b8281111561249c578251825591602001919060010190612481565b506124a89291506124ac565b5090565b5b808211156124a857600081556001016124ad565b600067ffffffffffffffff808411156124dc576124dc612bfe565b604051601f8501601f19908116603f0116810190828211818310171561250457612504612bfe565b8160405280935085815286868601111561251d57600080fd5b858560208301376000602087830101525050509392505050565b8035801515811461254757600080fd5b919050565b600082601f83011261255c578081fd5b6115aa838335602085016124c1565b803563ffffffff8116811461254757600080fd5b600060208284031215612590578081fd5b81356115aa81612c14565b600080604083850312156125ad578081fd5b82356125b881612c14565b915060208301356125c881612c14565b809150509250929050565b6000806000606084860312156125e7578081fd5b83356125f281612c14565b9250602084013561260281612c14565b929592945050506040919091013590565b60008060008060808587031215612628578081fd5b843561263381612c14565b9350602085013561264381612c14565b925060408501359150606085013567ffffffffffffffff811115612665578182fd5b8501601f81018713612675578182fd5b612684878235602084016124c1565b91505092959194509250565b600080604083850312156126a2578182fd5b82356126ad81612c14565b91506126bb60208401612537565b90509250929050565b60008082840360a08112156126d7578283fd5b83356126e281612c14565b92506080601f19820112156126f5578182fd5b506040516080810181811067ffffffffffffffff8211171561271957612719612bfe565b6040526127286020850161256b565b81526127366040850161256b565b60208201526127476060850161256b565b60408201526127586080850161256b565b6060820152809150509250929050565b6000806040838503121561277a578182fd5b823561278581612c14565b946020939093013593505050565b6000602082840312156127a4578081fd5b6115aa82612537565b6000602082840312156127be578081fd5b5035919050565b6000602082840312156127d6578081fd5b81356115aa81612c29565b6000602082840312156127f2578081fd5b81516115aa81612c29565b60006020828403121561280e578081fd5b813567ffffffffffffffff811115612824578182fd5b61185a8482850161254c565b60008060408385031215612842578182fd5b823567ffffffffffffffff811115612858578283fd5b6128648582860161254c565b95602094909401359450505050565b60008060008060608587031215612888578182fd5b8435935060208501359250604085013567ffffffffffffffff808211156128ad578384fd5b818701915087601f8301126128c0578384fd5b8135818111156128ce578485fd5b8860208260051b85010111156128e2578485fd5b95989497505060200194505050565b60008151808452612909816020860160208601612b3c565b601f01601f19169290920160200192915050565b6000835161292f818460208801612b3c565b835190830190612943818360208801612b3c565b01949350505050565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061297f908301846128f1565b9695505050505050565b6020815260006115aa60208301846128f1565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6020808252600c908201526b2737ba1030b71030b236b4b760a11b604082015260600190565b60208082526010908201526f14185d5cd8589b194e881c185d5cd95960821b604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b6020808252602b908201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960408201526a6e697469616c697a696e6760a81b606082015260800190565b60008219821115612aed57612aed612bd2565b500190565b600082612b0157612b01612be8565b500490565b6000816000190483118215151615612b2057612b20612bd2565b500290565b600082821015612b3757612b37612bd2565b500390565b60005b83811015612b57578181015183820152602001612b3f565b838111156112205750506000910152565b600181811c90821680612b7c57607f821691505b60208210811415612b9d57634e487b7160e01b600052602260045260246000fd5b50919050565b6000600019821415612bb757612bb7612bd2565b5060010190565b600082612bcd57612bcd612be8565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b0381168114610b5457600080fd5b6001600160e01b031981168114610b5457600080fdfea2646970667358221220386bc4456f306a0f61e4fd948c3d210495bd8de683e435c3b053897bd24ecf4164736f6c63430008040033

Deployed Bytecode

0x60806040526004361061021a5760003560e01c806370a0823111610123578063b3944d94116100ab578063c87b56dd1161006f578063c87b56dd146105f0578063e985e9c514610610578063ed4a6b0c14610659578063ef3e067c1461066e578063fd5d21f81461068e57600080fd5b8063b3944d941461055d578063b88d4fde1461057d578063bd93bc301461059d578063c1f26123146105bd578063c4be5b59146105dd57600080fd5b80638b4f7b3b116100f25780638b4f7b3b146104d557806395d89b41146104f55780639b642de11461050a578063a0712d681461052a578063a22cb4651461053d57600080fd5b806370a0823114610469578063842b83fa146104895780638456cb59146104a05780638720fbef146104b557600080fd5b80633ccfd60b116101a65780634bbf179b116101755780634bbf179b146103da57806350dc4656146103f15780635c975abb146104115780636352211e146104295780636b29b79f1461044957600080fd5b80633ccfd60b146103705780633f4ba83a1461038557806342842e0e1461039a57806342966c68146103ba57600080fd5b8063095ea7b3116101ed578063095ea7b3146102d357806323b872dd146102f5578063240ff27f1461031557806324a8fb70146103355780632ab91bba1461035557600080fd5b806301ffc9a71461021f5780630435e2f91461025457806306fdde0314610279578063081812fc1461029b575b600080fd5b34801561022b57600080fd5b5061023f61023a3660046127c5565b6106ee565b60405190151581526020015b60405180910390f35b34801561026057600080fd5b5061026b61012e5481565b60405190815260200161024b565b34801561028557600080fd5b5061028e610740565b60405161024b9190612989565b3480156102a757600080fd5b506102bb6102b63660046127ad565b6107d2565b6040516001600160a01b03909116815260200161024b565b3480156102df57600080fd5b506102f36102ee366004612768565b61086c565b005b34801561030157600080fd5b506102f36103103660046125d3565b610982565b34801561032157600080fd5b506102f3610330366004612690565b6109b3565b34801561034157600080fd5b506102f36103503660046127ad565b610a0d565b34801561036157600080fd5b506101315461023f9060ff1681565b34801561037c57600080fd5b506102f3610a42565b34801561039157600080fd5b506102f3610b57565b3480156103a657600080fd5b506102f36103b53660046125d3565b610b90565b3480156103c657600080fd5b506102f36103d53660046127ad565b610bab565b3480156103e657600080fd5b5061026b61012f5481565b3480156103fd57600080fd5b506102f361040c3660046127ad565b610be3565b34801561041d57600080fd5b5060975460ff1661023f565b34801561043557600080fd5b506102bb6104443660046127ad565b610c18565b34801561045557600080fd5b506102f361046436600461257f565b610c8f565b34801561047557600080fd5b5061026b61048436600461257f565b610ce1565b34801561049557600080fd5b5061026b6101305481565b3480156104ac57600080fd5b506102f3610d68565b3480156104c157600080fd5b506102f36104d0366004612793565b610d9f565b3480156104e157600080fd5b506102f36104f0366004612830565b610de2565b34801561050157600080fd5b5061028e610f4d565b34801561051657600080fd5b506102f36105253660046127fd565b610f5c565b6102f36105383660046127ad565b610fa3565b34801561054957600080fd5b506102f3610558366004612690565b611187565b34801561056957600080fd5b506102f36105783660046126c4565b611192565b34801561058957600080fd5b506102f3610598366004612613565b6111ee565b3480156105a957600080fd5b506102f36105b83660046127ad565b611226565b3480156105c957600080fd5b506102f36105d83660046127ad565b61125b565b6102f36105eb366004612873565b611293565b3480156105fc57600080fd5b5061028e61060b3660046127ad565b6114d6565b34801561061c57600080fd5b5061023f61062b36600461259b565b6001600160a01b039182166000908152606a6020908152604080832093909416825291909152205460ff1690565b34801561066557600080fd5b506102bb6115b1565b34801561067a57600080fd5b506102f36106893660046127ad565b6115f1565b34801561069a57600080fd5b506106ae6106a93660046127ad565b611626565b60405161024b9190815163ffffffff9081168252602080840151821690830152604080840151821690830152606092830151169181019190915260800190565b60006001600160e01b031982166380ac58cd60e01b148061071f57506001600160e01b03198216635b5e139f60e01b145b8061073a57506301ffc9a760e01b6001600160e01b03198316145b92915050565b60606065805461074f90612b68565b80601f016020809104026020016040519081016040528092919081815260200182805461077b90612b68565b80156107c85780601f1061079d576101008083540402835291602001916107c8565b820191906000526020600020905b8154815290600101906020018083116107ab57829003601f168201915b5050505050905090565b6000818152606760205260408120546001600160a01b03166108505760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152606960205260409020546001600160a01b031690565b600061087782610c18565b9050806001600160a01b0316836001600160a01b031614156108e55760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610847565b336001600160a01b03821614806109015750610901813361062b565b6109735760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610847565b61097d83836116fd565b505050565b61098c338261176b565b6109a85760405162461bcd60e51b815260040161084790612a3e565b61097d838383611862565b33600090815260fb602052604090205460ff166109e25760405162461bcd60e51b8152600401610847906129ee565b6001600160a01b0391909116600090815260fb60205260409020805460ff1916911515919091179055565b33600090815260fb602052604090205460ff16610a3c5760405162461bcd60e51b8152600401610847906129ee565b61012e55565b33600090815260fb602052604090205460ff16610a715760405162461bcd60e51b8152600401610847906129ee565b610135546001600160a01b0316610abd5760405162461bcd60e51b815260206004820152601060248201526f41646472657373206e6f74207365742160801b6044820152606401610847565b610135546040516000916001600160a01b03169047908381818185875af1925050503d8060008114610b0b576040519150601f19603f3d011682016040523d82523d6000602084013e610b10565b606091505b5050905080610b545760405162461bcd60e51b815260206004820152601060248201526f5472616e73666572206661696c65642160801b6044820152606401610847565b50565b33600090815260fb602052604090205460ff16610b865760405162461bcd60e51b8152600401610847906129ee565b610b8e611a02565b565b61097d838383604051806020016040528060008152506111ee565b33600090815260fb602052604090205460ff16610bda5760405162461bcd60e51b8152600401610847906129ee565b610b5481611a95565b33600090815260fb602052604090205460ff16610c125760405162461bcd60e51b8152600401610847906129ee565b61013355565b6000818152606760205260408120546001600160a01b03168061073a5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610847565b33600090815260fb602052604090205460ff16610cbe5760405162461bcd60e51b8152600401610847906129ee565b61013580546001600160a01b0319166001600160a01b0392909216919091179055565b60006001600160a01b038216610d4c5760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610847565b506001600160a01b031660009081526068602052604090205490565b33600090815260fb602052604090205460ff16610d975760405162461bcd60e51b8152600401610847906129ee565b610b8e611b30565b33600090815260fb602052604090205460ff16610dce5760405162461bcd60e51b8152600401610847906129ee565b610131805460ff1916911515919091179055565b600054610100900460ff16610dfd5760005460ff1615610e01565b303b155b610e645760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b6064820152608401610847565b600054610100900460ff16158015610e86576000805461ffff19166101011790555b610e8e611b88565b610e96611b88565b610eea604051806040016040528060168152602001752ba2a2a223a0a7239723a0a6a290169029aa2920a4a760511b8152506040518060400160405280600481526020016357472d5360e01b815250611baf565b610ef2611bfd565b610efa611c30565b610f02611c5f565b8251610f1690610132906020860190612428565b50610133829055670b1a2bc2ec50000061012e5561232861013055600561013455801561097d576000805461ff0019169055505050565b60606066805461074f90612b68565b33600090815260fb602052604090205460ff16610f8b5760405162461bcd60e51b8152600401610847906129ee565b8051610f9f90610132906020840190612428565b5050565b60975460ff1615610fc65760405162461bcd60e51b815260040161084790612a14565b600260c95414156110195760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610847565b600260c9556101315460ff166110695760405162461bcd60e51b81526020600482015260156024820152745075626c69632073616c652064697361626c65642160581b6044820152606401610847565b610134548111156110bc5760405162461bcd60e51b815260206004820152601a60248201527f5472616e73616374696f6e206c696d69742072656163686564210000000000006044820152606401610847565b61013454816110ca33610ce1565b6110d49190612ada565b11156111225760405162461bcd60e51b815260206004820152601c60248201527f41646472657373206d61782062616c616e6365207265616368656421000000006044820152606401610847565b8061012e546111319190612b06565b3410156111765760405162461bcd60e51b815260206004820152601360248201527250726f76696465206d6f72652065746865722160681b6044820152606401610847565b61117f81611ca2565b50600160c955565b610f9f338383611db6565b33600090815260fb602052604090205460ff166111c15760405162461bcd60e51b8152600401610847906129ee565b60975460ff16156111e45760405162461bcd60e51b815260040161084790612a14565b610f9f8282611e85565b6111f8338361176b565b6112145760405162461bcd60e51b815260040161084790612a3e565b61122084848484611f31565b50505050565b33600090815260fb602052604090205460ff166112555760405162461bcd60e51b8152600401610847906129ee565b61013055565b33600090815260fb602052604090205460ff1661128a5760405162461bcd60e51b8152600401610847906129ee565b610b5481611ca2565b60975460ff16156112b65760405162461bcd60e51b815260040161084790612a14565b600260c95414156113095760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610847565b600260c9556040516bffffffffffffffffffffffff193360601b1660208201526034810184905260009060540160405160208183030381529060405280519060200120905061139083838080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525050610133549150849050611f64565b6113dc5760405162461bcd60e51b815260206004820152601860248201527f41646472657373206e6f742077686974656c69737465642100000000000000006044820152606401610847565b336000908152610137602052604090205484906113fa908790612ada565b11156114485760405162461bcd60e51b815260206004820152601c60248201527f4e6f7420656e6f7567682077686974656c69737420706c6163657321000000006044820152606401610847565b8461012e546114579190612b06565b34101561149c5760405162461bcd60e51b815260206004820152601360248201527250726f76696465206d6f72652065746865722160681b6044820152606401610847565b6114a585611ca2565b3360009081526101376020526040812080548792906114c5908490612ada565b9091555050600160c9555050505050565b6000818152606760205260409020546060906001600160a01b03166115555760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401610847565b600061155f611f7a565b9050600081511161157f57604051806020016040528060008152506115aa565b8061158984611f8a565b60405160200161159a92919061291d565b6040516020818303038152906040525b9392505050565b33600090815260fb602052604081205460ff166115e05760405162461bcd60e51b8152600401610847906129ee565b50610135546001600160a01b031690565b33600090815260fb602052604090205460ff166116205760405162461bcd60e51b8152600401610847906129ee565b61013455565b6040805160808101825260008082526020820181905291810182905260608101919091526000828152606760205260409020546001600160a01b03166116a35760405162461bcd60e51b81526020600482015260126024820152714e6f6e6578697374656e7420746f6b656e2160701b6044820152606401610847565b50600090815261013660209081526040918290208251608081018452905463ffffffff80821683526401000000008204811693830193909352600160401b8104831693820193909352600160601b90920416606082015290565b600081815260696020526040902080546001600160a01b0319166001600160a01b038416908117909155819061173282610c18565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152606760205260408120546001600160a01b03166117e45760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610847565b60006117ef83610c18565b9050806001600160a01b0316846001600160a01b0316148061182a5750836001600160a01b031661181f846107d2565b6001600160a01b0316145b8061185a57506001600160a01b038082166000908152606a602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b031661187582610c18565b6001600160a01b0316146118dd5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b6064820152608401610847565b6001600160a01b03821661193f5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610847565b61194a6000826116fd565b6001600160a01b0383166000908152606860205260408120805460019290611973908490612b25565b90915550506001600160a01b03821660009081526068602052604081208054600192906119a1908490612ada565b909155505060008181526067602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b60975460ff16611a4b5760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b6044820152606401610847565b6097805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b6000611aa082610c18565b9050611aad6000836116fd565b6001600160a01b0381166000908152606860205260408120805460019290611ad6908490612b25565b909155505060008281526067602052604080822080546001600160a01b0319169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b60975460ff1615611b535760405162461bcd60e51b815260040161084790612a14565b6097805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258611a783390565b600054610100900460ff16610b8e5760405162461bcd60e51b815260040161084790612a8f565b600054610100900460ff16611bd65760405162461bcd60e51b815260040161084790612a8f565b8151611be9906065906020850190612428565b50805161097d906066906020840190612428565b600054610100900460ff16611c245760405162461bcd60e51b815260040161084790612a8f565b6097805460ff19169055565b600054610100900460ff16611c575760405162461bcd60e51b815260040161084790612a8f565b610b8e6120a4565b600054610100900460ff16611c865760405162461bcd60e51b815260040161084790612a8f565b33600090815260fb60205260409020805460ff19166001179055565b60008111611cf25760405162461bcd60e51b815260206004820152601860248201527f547279696e6720746f206d696e74203020746f6b656e732100000000000000006044820152606401610847565b610130548161012f54611d059190612ada565b1115611d535760405162461bcd60e51b815260206004820152601d60248201527f47656e6573697320737570706c79206c696d69742072656163686564210000006044820152606401610847565b60015b818111610f9f57604080516080810182526101f4808252602082015260fa9181019190915260006060820152611d8d903390611e85565b61012f8054906000611d9e83612ba3565b91905055508080611dae90612ba3565b915050611d56565b816001600160a01b0316836001600160a01b03161415611e185760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610847565b6001600160a01b038381166000818152606a6020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b611e9461012d80546001019055565b6000611ea061012d5490565b60008181526101366020908152604091829020855181549287015193870151606088015163ffffffff908116600160601b0263ffffffff60601b19928216600160401b02929092166fffffffffffffffff0000000000000000199682166401000000000267ffffffffffffffff199096169190931617939093179390931692909217179055905061097d83826120d2565b611f3c848484611862565b611f48848484846120ec565b6112205760405162461bcd60e51b81526004016108479061299c565b600082611f7185846121f9565b14949350505050565b6060610132805461074f90612b68565b606081611fae5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115611fd85780611fc281612ba3565b9150611fd19050600a83612af2565b9150611fb2565b60008167ffffffffffffffff81111561200157634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f19166020018201604052801561202b576020820181803683370190505b5090505b841561185a57612040600183612b25565b915061204d600a86612bbe565b612058906030612ada565b60f81b81838151811061207b57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a90535061209d600a86612af2565b945061202f565b600054610100900460ff166120cb5760405162461bcd60e51b815260040161084790612a8f565b600160c955565b610f9f8282604051806020016040528060008152506122b3565b60006001600160a01b0384163b156121ee57604051630a85bd0160e11b81526001600160a01b0385169063150b7a029061213090339089908890889060040161294c565b602060405180830381600087803b15801561214a57600080fd5b505af192505050801561217a575060408051601f3d908101601f19168201909252612177918101906127e1565b60015b6121d4573d8080156121a8576040519150601f19603f3d011682016040523d82523d6000602084013e6121ad565b606091505b5080516121cc5760405162461bcd60e51b81526004016108479061299c565b805181602001fd5b6001600160e01b031916630a85bd0160e11b14905061185a565b506001949350505050565b600081815b84518110156122ab57600085828151811061222957634e487b7160e01b600052603260045260246000fd5b6020026020010151905080831161226b576040805160208101859052908101829052606001604051602081830303815290604052805190602001209250612298565b60408051602081018390529081018490526060016040516020818303038152906040528051906020012092505b50806122a381612ba3565b9150506121fe565b509392505050565b6122bd83836122e6565b6122ca60008484846120ec565b61097d5760405162461bcd60e51b81526004016108479061299c565b6001600160a01b03821661233c5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610847565b6000818152606760205260409020546001600160a01b0316156123a15760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610847565b6001600160a01b03821660009081526068602052604081208054600192906123ca908490612ada565b909155505060008181526067602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b82805461243490612b68565b90600052602060002090601f016020900481019282612456576000855561249c565b82601f1061246f57805160ff191683800117855561249c565b8280016001018555821561249c579182015b8281111561249c578251825591602001919060010190612481565b506124a89291506124ac565b5090565b5b808211156124a857600081556001016124ad565b600067ffffffffffffffff808411156124dc576124dc612bfe565b604051601f8501601f19908116603f0116810190828211818310171561250457612504612bfe565b8160405280935085815286868601111561251d57600080fd5b858560208301376000602087830101525050509392505050565b8035801515811461254757600080fd5b919050565b600082601f83011261255c578081fd5b6115aa838335602085016124c1565b803563ffffffff8116811461254757600080fd5b600060208284031215612590578081fd5b81356115aa81612c14565b600080604083850312156125ad578081fd5b82356125b881612c14565b915060208301356125c881612c14565b809150509250929050565b6000806000606084860312156125e7578081fd5b83356125f281612c14565b9250602084013561260281612c14565b929592945050506040919091013590565b60008060008060808587031215612628578081fd5b843561263381612c14565b9350602085013561264381612c14565b925060408501359150606085013567ffffffffffffffff811115612665578182fd5b8501601f81018713612675578182fd5b612684878235602084016124c1565b91505092959194509250565b600080604083850312156126a2578182fd5b82356126ad81612c14565b91506126bb60208401612537565b90509250929050565b60008082840360a08112156126d7578283fd5b83356126e281612c14565b92506080601f19820112156126f5578182fd5b506040516080810181811067ffffffffffffffff8211171561271957612719612bfe565b6040526127286020850161256b565b81526127366040850161256b565b60208201526127476060850161256b565b60408201526127586080850161256b565b6060820152809150509250929050565b6000806040838503121561277a578182fd5b823561278581612c14565b946020939093013593505050565b6000602082840312156127a4578081fd5b6115aa82612537565b6000602082840312156127be578081fd5b5035919050565b6000602082840312156127d6578081fd5b81356115aa81612c29565b6000602082840312156127f2578081fd5b81516115aa81612c29565b60006020828403121561280e578081fd5b813567ffffffffffffffff811115612824578182fd5b61185a8482850161254c565b60008060408385031215612842578182fd5b823567ffffffffffffffff811115612858578283fd5b6128648582860161254c565b95602094909401359450505050565b60008060008060608587031215612888578182fd5b8435935060208501359250604085013567ffffffffffffffff808211156128ad578384fd5b818701915087601f8301126128c0578384fd5b8135818111156128ce578485fd5b8860208260051b85010111156128e2578485fd5b95989497505060200194505050565b60008151808452612909816020860160208601612b3c565b601f01601f19169290920160200192915050565b6000835161292f818460208801612b3c565b835190830190612943818360208801612b3c565b01949350505050565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061297f908301846128f1565b9695505050505050565b6020815260006115aa60208301846128f1565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6020808252600c908201526b2737ba1030b71030b236b4b760a11b604082015260600190565b60208082526010908201526f14185d5cd8589b194e881c185d5cd95960821b604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b6020808252602b908201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960408201526a6e697469616c697a696e6760a81b606082015260800190565b60008219821115612aed57612aed612bd2565b500190565b600082612b0157612b01612be8565b500490565b6000816000190483118215151615612b2057612b20612bd2565b500290565b600082821015612b3757612b37612bd2565b500390565b60005b83811015612b57578181015183820152602001612b3f565b838111156112205750506000910152565b600181811c90821680612b7c57607f821691505b60208210811415612b9d57634e487b7160e01b600052602260045260246000fd5b50919050565b6000600019821415612bb757612bb7612bd2565b5060010190565b600082612bcd57612bcd612be8565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b0381168114610b5457600080fd5b6001600160e01b031981168114610b5457600080fdfea2646970667358221220386bc4456f306a0f61e4fd948c3d210495bd8de683e435c3b053897bd24ecf4164736f6c63430008040033

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  ]

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.