ETH Price: $3,433.77 (-2.34%)

Contract

0xB775206E01FE2D60De85DF9F18Dd810998bFf6D7
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Set Approval For...212969952024-11-30 0:43:3520 days ago1732927415IN
0xB775206E...998bFf6D7
0 ETH0.000219398.86746319
Set Approval For...202939892024-07-13 0:24:11160 days ago1720830251IN
0xB775206E...998bFf6D7
0 ETH0.000081371.7441607
Safe Transfer Fr...174310052023-06-07 20:57:47561 days ago1686171467IN
0xB775206E...998bFf6D7
0 ETH0.0014593521.20814851
Set Approval For...169902882023-04-06 14:55:59624 days ago1680792959IN
0xB775206E...998bFf6D7
0 ETH0.0014629831.30177926
Safe Transfer Fr...168946262023-03-24 3:15:59637 days ago1679627759IN
0xB775206E...998bFf6D7
0 ETH0.001039315.99722941
Transfer From167173362023-02-27 5:05:11662 days ago1677474311IN
0xB775206E...998bFf6D7
0 ETH0.0012624620.64537205
Set Approval For...164536482023-01-21 7:21:35699 days ago1674285695IN
0xB775206E...998bFf6D7
0 ETH0.0007616316.32508028
Set Approval For...163276222023-01-03 17:02:23717 days ago1672765343IN
0xB775206E...998bFf6D7
0 ETH0.0013529829.00039167
Set Approval For...161984702022-12-16 16:31:59735 days ago1671208319IN
0xB775206E...998bFf6D7
0 ETH0.0011674725.02408096
Set Approval For...161941642022-12-16 2:06:23735 days ago1671156383IN
0xB775206E...998bFf6D7
0 ETH0.0006245313.36242326
Set Approval For...161865342022-12-15 0:31:35736 days ago1671064295IN
0xB775206E...998bFf6D7
0 ETH0.0006660114.25372009
Set Approval For...161477322022-12-09 14:27:23742 days ago1670596043IN
0xB775206E...998bFf6D7
0 ETH0.0009875721.16802181
Set Approval For...160963632022-12-02 9:55:35749 days ago1669974935IN
0xB775206E...998bFf6D7
0 ETH0.0005488911.76516511
Set Approval For...160842952022-11-30 17:28:59751 days ago1669829339IN
0xB775206E...998bFf6D7
0 ETH0.0007754816.59207532
Set Approval For...159623742022-11-13 16:43:47768 days ago1668357827IN
0xB775206E...998bFf6D7
0 ETH0.0007838816.80219397
Set Approval For...158163682022-10-24 7:07:23788 days ago1666595243IN
0xB775206E...998bFf6D7
0 ETH0.000419889
Set Approval For...158147612022-10-24 1:43:59788 days ago1666575839IN
0xB775206E...998bFf6D7
0 ETH0.0006197313.2837448
Transfer From157341282022-10-12 19:30:59799 days ago1665603059IN
0xB775206E...998bFf6D7
0 ETH0.0012303718.65274147
Set Approval For...157279762022-10-11 22:53:35800 days ago1665528815IN
0xB775206E...998bFf6D7
0 ETH0.0009147219.60664361
Set Approval For...156807462022-10-05 8:35:11807 days ago1664958911IN
0xB775206E...998bFf6D7
0 ETH0.00032977.05438542
Set Approval For...156577962022-10-02 3:33:35810 days ago1664681615IN
0xB775206E...998bFf6D7
0 ETH0.000236235.0636376
Set Approval For...156384542022-09-29 10:37:47813 days ago1664447867IN
0xB775206E...998bFf6D7
0 ETH0.000379438.11827621
Set Approval For...156296782022-09-28 5:14:35814 days ago1664342075IN
0xB775206E...998bFf6D7
0 ETH0.0005325511.41494775
Set Approval For...155578052022-09-18 3:38:11824 days ago1663472291IN
0xB775206E...998bFf6D7
0 ETH0.000194314.16502666
Set Approval For...155571952022-09-18 1:34:59824 days ago1663464899IN
0xB775206E...998bFf6D7
0 ETH0.000167063.58100214
View all transactions

Latest 3 internal transactions

Advanced mode:
Parent Transaction Hash Block
From
To
155366412022-09-15 3:35:44827 days ago1663212944
0xB775206E...998bFf6D7
0.16 ETH
155366412022-09-15 3:35:44827 days ago1663212944
0xB775206E...998bFf6D7
0.24 ETH
155366412022-09-15 3:35:44827 days ago1663212944
0xB775206E...998bFf6D7
0.24 ETH
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
FjordDrop

Compiler Version
v0.8.14+commit.80d49f37

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion
File 1 of 21 : FjordDrop.sol
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.14;
//OpenZeppelin
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@openzeppelin/contracts/interfaces/IERC2981.sol";
import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol";
//AlchemistCoin
import "@alchemist.wtf/token-extensions/contracts/Erc721BurningErc20OnMint.sol";

//   _____    _ _   ______                     _____ _               _
//  |  ___|__| | |_|__  (_)_ __   ___  __  __ |  ___(_) ___  _ __ __| |
//  | |_ / _ \ | __| / /| | '_ \ / _ \ \ \/ / | |_  | |/ _ \| '__/ _` |
//  |  _|  __/ | |_ / /_| | | | |  __/  >  <  |  _| | | (_) | | | (_| |
//  |_|  \___|_|\__/____|_|_| |_|\___| /_/\_\ |_|  _/ |\___/|_|  \__,_|
//                                                |__/

/*
 @title Lost Echoes | FELT Zine x Fjord Drop 1
 @notice FELT Zine & Fjord present a series of experimental NFT collections
 @artist Ina Vare with executive production by Mark Sabb of Felt Zine
 @dev javvvs.eth
 */

contract FjordDrop is Erc721BurningErc20OnMint, ReentrancyGuard, IERC2981 {
/*//////////////////////////////////////////////////////////////
                        ERRORS
//////////////////////////////////////////////////////////////*/

    error FJORD_TotalMinted();
    error FJORD_InexactPayment();
    error FJORD_MaxMintExceeded();
    error FJORD_WhitelistMaxSupplyExceeded();
    error FJORD_WhitelistMintEnded();
    error FJORD_PublicMintisNotActive();
    error FJORD_FjordIsNotActive();

/*//////////////////////////////////////////////////////////////
                        EVENTS
//////////////////////////////////////////////////////////////*/

    event MintedAnNFT(address indexed to, uint256 indexed tokenId);

/*//////////////////////////////////////////////////////////////
                        STATE VARIABLES
//////////////////////////////////////////////////////////////*/

    uint16 public mintCounter;
    uint16 public constant TOTAL_SUPPLY = 525;
    string public customBaseURI;
    string public contractURI =
        "ipfs://QmdyYCtUsVsC5ymr7b4txQ6hXHpLXtJU7JXCDuHEJdXnRe";
    uint256 public whitelistEndDate;
    uint256 private constant PRICE_PER_WHITELIST_NFT = 0.02 ether;
    bytes32 public whiteListSaleMerkleRoot;
    uint32 private constant MAX_MINT_PER_WHITELIST_WALLET = 2;
    mapping(address => uint32) public mintPerWhitelistedWallet;
    uint256 private PRICE_PER_PUBLIC_MINT= 0.02 ether;
    
    enum MintPhase {
    ONLY_MINT_OWNER,    
    NOT_ACTIVE,
    WHITELIST,
    FJORD,
    PUBLIC
}
    MintPhase public stage = MintPhase.ONLY_MINT_OWNER;
/*//////////////////////////////////////////////////////////////
                        INIT/CONSTRUCTOR
//////////////////////////////////////////////////////////////*/
    constructor(
        string memory customBaseURI_,
        bytes32 whiteListSaleMerkleRoot_,
        uint256 mintQtyToOwner
    ) ERC721("Lost Echoes by Felt Zine", "FFLE") {
        customBaseURI = customBaseURI_;
        whiteListSaleMerkleRoot = whiteListSaleMerkleRoot_;
        for (uint256 i = 0; i < mintQtyToOwner; i++) {
            unchecked {
                mintCounter++;
            }
            uint256 tokenId = mintCounter;
            _mint(msg.sender, tokenId);
        }
        stage = MintPhase.NOT_ACTIVE;
    }

/*//////////////////////////////////////////////////////////////
                        MODIFIERS
//////////////////////////////////////////////////////////////*/

    modifier isValidMerkleProof(bytes32[] calldata _proof, bytes32 root) {
        require(
            MerkleProof.verify(
                _proof,
                root,
                keccak256(abi.encodePacked(msg.sender))
            ),
            "Address is not whitelisted"
        );
        _;
    }
/*//////////////////////////////////////////////////////////////
                        ONLY OWNER
//////////////////////////////////////////////////////////////*/

    /// @notice set _time in  Unix Time Stamp to end the whitelist sale
    function setEndDateWhitelist(uint256 time_) external onlyOwner {
        whitelistEndDate = block.timestamp + time_;
    }
    function setBaseURI(string memory customBaseURI_) external onlyOwner {
        customBaseURI = customBaseURI_;
    }
    //@notice: owner set the different states of the minting phase
    // 0 = ONLY_MINT_OWNER, 1 = NOT_ACTIVE, 2 = WHITELIST, 3 = FJORD, 4 = PUBLIC
    function setMintStage(MintPhase val_) external onlyOwner {
        stage = val_;
    }
    function setPublicMintPrice(uint256 price) external onlyOwner {
        PRICE_PER_PUBLIC_MINT = price;
    }

/*//////////////////////////////////////////////////////////////
                            MINT
//////////////////////////////////////////////////////////////*/

    /// @notice mint implementation interfacing w Erc721BurningErc20OnMint contract

    function mint() public override nonReentrant returns (uint256) {
        require(stage == MintPhase.FJORD, "Fjord drop is not active");
       if (mintCounter >= TOTAL_SUPPLY) {
            revert FJORD_TotalMinted();
        }  else  {
            unchecked {
                mintCounter++;
            }
            uint256 tokenId = mintCounter;
            _mint(msg.sender, tokenId);
            return tokenId;
        }
    }

    /// @notice mint implementation for the whitelisted wallets

    function whitelistMint(uint256 amount, bytes32[] calldata merkleProof)
        public
        payable
        isValidMerkleProof(merkleProof, whiteListSaleMerkleRoot)
    {
        //cache the current minted amount by the wallet address
        uint256 totalMinted = mintPerWhitelistedWallet[msg.sender];
        uint256 whitelistAllocation = 100;
          require(stage == MintPhase.WHITELIST, "Whitelist Mint is disabled");
        if (msg.value != PRICE_PER_WHITELIST_NFT * amount) {
            revert FJORD_InexactPayment();
        } else if(mintCounter + amount > whitelistAllocation ){
            revert('whitelist mint  exceeded');
        } else if (block.timestamp >= whitelistEndDate) {
            revert FJORD_WhitelistMintEnded();
        } else {
            require(
                totalMinted + amount <= MAX_MINT_PER_WHITELIST_WALLET,
                "Max mint exceeded"
            );
            uint256 i;
            for (i = 0; i < amount; i++) {
                unchecked {
                    mintCounter++;
                    mintPerWhitelistedWallet[msg.sender]++;
                }
                // cache the minteCounter as the tokenId to mint
                uint256 tokenId = mintCounter;
                _mint(msg.sender, tokenId);
                emit MintedAnNFT(msg.sender, tokenId);
            }
        }
    }

    
    function publicMint(uint256 _amount) public payable {
        require(stage == MintPhase.PUBLIC, "Public Mint is disabled");
         if (msg.value != PRICE_PER_PUBLIC_MINT * _amount) {
            revert FJORD_InexactPayment();
        } else if (mintCounter + _amount > TOTAL_SUPPLY){
            revert FJORD_MaxMintExceeded();
        } else {
            uint256 i;
            for (i = 0; i < _amount; i++) {
                unchecked {
                    mintCounter++;
                }
                uint256 tokenId = mintCounter;
                _mint(msg.sender, tokenId);
                emit MintedAnNFT(msg.sender, tokenId);
            }
        }
    }

function _beforeTokenTransfer(
        address from,
        address to,
        uint256 amount
    ) internal virtual override(Erc721BurningErc20OnMint) {
        require(stage != MintPhase.NOT_ACTIVE, "Minting is not active");
        if (stage == MintPhase.FJORD) {
            Erc721BurningErc20OnMint._beforeTokenTransfer(from, to, amount);
        } else if(stage == MintPhase.PUBLIC || stage == MintPhase.ONLY_MINT_OWNER || stage == MintPhase.WHITELIST) {
            ERC721._beforeTokenTransfer(from, to, amount);
        } else{
        revert('Minting error');
        }
    }

/*//////////////////////////////////////////////////////////////
                            READ
//////////////////////////////////////////////////////////////*/

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

    function tokenURI(uint256 tokenId)
        public
        view
        override
        returns (string memory)
    {
        return string(abi.encodePacked(super.tokenURI(tokenId)));
    }

    function totalSupply() public view returns (uint256) {
        return mintCounter;
    }

/*//////////////////////////////////////////////////////////////
                WITHDRAW AND ROYALTIES FUNCTIONS
//////////////////////////////////////////////////////////////*/

    ///@notice sets the royalties for secondary sales.
    ///Override function gets royalty information for a token (EIP-2981)
    ///@param salePrice as an input to calculate the royalties
    ///@dev conforms to EIP-2981

    function royaltyInfo(uint256, uint256 salePrice)
        external
        view
        override
        returns (address receiver, uint256 royaltyAmount)
    {
        return (address(this), (salePrice * 10) / 100);
    }

    //PAYOUT ADDRESSES
    address private constant feltzine = 0x5e080D8b14c1DA5936509c2c9EF0168A19304202;
    address private constant artist = 0xb012A1bDCA34E1d0c2267bb50e6c53C8042eB4b6;
    address private constant dev = 0x52aA63A67b15e3C2F201c9422cAC1e81bD6ea847;
    //@notice : withdraws the royalties to the addresses above
    function withdraw() public nonReentrant onlyOwner {
        uint256 balance = address(this).balance;
        Address.sendValue(payable(feltzine), (balance * 375) / 1000);
        Address.sendValue(payable(artist), (balance * 375) / 1000);
        Address.sendValue(payable(dev), (balance * 250) / 1000);
    }
    //Fallback
    receive() external payable {}
}

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

pragma solidity ^0.8.0;

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

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

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

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

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

        _;

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

File 3 of 21 : IERC2981.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (interfaces/IERC2981.sol)

pragma solidity ^0.8.0;

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

/**
 * @dev Interface for the NFT Royalty Standard.
 *
 * A standardized way to retrieve royalty payment information for non-fungible tokens (NFTs) to enable universal
 * support for royalty payments across all NFT marketplaces and ecosystem participants.
 *
 * _Available since v4.5._
 */
interface IERC2981 is IERC165 {
    /**
     * @dev Returns how much royalty is owed and to whom, based on a sale price that may be denominated in any unit of
     * exchange. The royalty amount is denominated and should be paid in that same unit of exchange.
     */
    function royaltyInfo(uint256 tokenId, uint256 salePrice)
        external
        view
        returns (address receiver, uint256 royaltyAmount);
}

File 4 of 21 : MerkleProof.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (utils/cryptography/MerkleProof.sol)

pragma solidity ^0.8.0;

/**
 * @dev These functions deal with verification of Merkle Tree 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.
 *
 * WARNING: You should avoid using leaf values that are 64 bytes long prior to
 * hashing, or use a hash function other than keccak256 for hashing leaves.
 * This is because the concatenation of a sorted pair of internal nodes in
 * the merkle tree could be reinterpreted as a leaf value.
 */
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 Calldata version of {verify}
     *
     * _Available since v4.7._
     */
    function verifyCalldata(
        bytes32[] calldata proof,
        bytes32 root,
        bytes32 leaf
    ) internal pure returns (bool) {
        return processProofCalldata(proof, leaf) == root;
    }

    /**
     * @dev Returns the rebuilt hash obtained by traversing a Merkle 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++) {
            computedHash = _hashPair(computedHash, proof[i]);
        }
        return computedHash;
    }

    /**
     * @dev Calldata version of {processProof}
     *
     * _Available since v4.7._
     */
    function processProofCalldata(bytes32[] calldata proof, bytes32 leaf) internal pure returns (bytes32) {
        bytes32 computedHash = leaf;
        for (uint256 i = 0; i < proof.length; i++) {
            computedHash = _hashPair(computedHash, proof[i]);
        }
        return computedHash;
    }

    /**
     * @dev Returns true if the `leaves` can be proved to be a part of a Merkle tree defined by
     * `root`, according to `proof` and `proofFlags` as described in {processMultiProof}.
     *
     * _Available since v4.7._
     */
    function multiProofVerify(
        bytes32[] memory proof,
        bool[] memory proofFlags,
        bytes32 root,
        bytes32[] memory leaves
    ) internal pure returns (bool) {
        return processMultiProof(proof, proofFlags, leaves) == root;
    }

    /**
     * @dev Calldata version of {multiProofVerify}
     *
     * _Available since v4.7._
     */
    function multiProofVerifyCalldata(
        bytes32[] calldata proof,
        bool[] calldata proofFlags,
        bytes32 root,
        bytes32[] memory leaves
    ) internal pure returns (bool) {
        return processMultiProofCalldata(proof, proofFlags, leaves) == root;
    }

    /**
     * @dev Returns the root of a tree reconstructed from `leaves` and the sibling nodes in `proof`,
     * consuming from one or the other at each step according to the instructions given by
     * `proofFlags`.
     *
     * _Available since v4.7._
     */
    function processMultiProof(
        bytes32[] memory proof,
        bool[] memory proofFlags,
        bytes32[] memory leaves
    ) internal pure returns (bytes32 merkleRoot) {
        // This function rebuild the root hash by traversing the tree up from the leaves. The root is rebuilt by
        // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the
        // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of
        // the merkle tree.
        uint256 leavesLen = leaves.length;
        uint256 totalHashes = proofFlags.length;

        // Check proof validity.
        require(leavesLen + proof.length - 1 == totalHashes, "MerkleProof: invalid multiproof");

        // The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using
        // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop".
        bytes32[] memory hashes = new bytes32[](totalHashes);
        uint256 leafPos = 0;
        uint256 hashPos = 0;
        uint256 proofPos = 0;
        // At each step, we compute the next hash using two values:
        // - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we
        //   get the next hash.
        // - depending on the flag, either another value for the "main queue" (merging branches) or an element from the
        //   `proof` array.
        for (uint256 i = 0; i < totalHashes; i++) {
            bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++];
            bytes32 b = proofFlags[i] ? leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++] : proof[proofPos++];
            hashes[i] = _hashPair(a, b);
        }

        if (totalHashes > 0) {
            return hashes[totalHashes - 1];
        } else if (leavesLen > 0) {
            return leaves[0];
        } else {
            return proof[0];
        }
    }

    /**
     * @dev Calldata version of {processMultiProof}
     *
     * _Available since v4.7._
     */
    function processMultiProofCalldata(
        bytes32[] calldata proof,
        bool[] calldata proofFlags,
        bytes32[] memory leaves
    ) internal pure returns (bytes32 merkleRoot) {
        // This function rebuild the root hash by traversing the tree up from the leaves. The root is rebuilt by
        // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the
        // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of
        // the merkle tree.
        uint256 leavesLen = leaves.length;
        uint256 totalHashes = proofFlags.length;

        // Check proof validity.
        require(leavesLen + proof.length - 1 == totalHashes, "MerkleProof: invalid multiproof");

        // The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using
        // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop".
        bytes32[] memory hashes = new bytes32[](totalHashes);
        uint256 leafPos = 0;
        uint256 hashPos = 0;
        uint256 proofPos = 0;
        // At each step, we compute the next hash using two values:
        // - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we
        //   get the next hash.
        // - depending on the flag, either another value for the "main queue" (merging branches) or an element from the
        //   `proof` array.
        for (uint256 i = 0; i < totalHashes; i++) {
            bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++];
            bytes32 b = proofFlags[i] ? leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++] : proof[proofPos++];
            hashes[i] = _hashPair(a, b);
        }

        if (totalHashes > 0) {
            return hashes[totalHashes - 1];
        } else if (leavesLen > 0) {
            return leaves[0];
        } else {
            return proof[0];
        }
    }

    function _hashPair(bytes32 a, bytes32 b) private pure returns (bytes32) {
        return a < b ? _efficientHash(a, b) : _efficientHash(b, a);
    }

    function _efficientHash(bytes32 a, bytes32 b) private pure returns (bytes32 value) {
        /// @solidity memory-safe-assembly
        assembly {
            mstore(0x00, a)
            mstore(0x20, b)
            value := keccak256(0x00, 0x40)
        }
    }
}

File 5 of 21 : Erc721BurningErc20OnMint.sol
//SPDX-License-Identifier: MIT
pragma solidity ^0.8.7;

import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/utils/introspection/ERC165Storage.sol";
import "@openzeppelin/contracts/token/ERC20/extensions/ERC20Burnable.sol";
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/utils/introspection/IERC165.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "./IErc721BurningErc20OnMint.sol";

abstract contract Erc721BurningErc20OnMint is
    ERC721,
    IErc721BurningErc20OnMint,
    Ownable
{
    address public erc20TokenAddress;

    function setErc20TokenAddress(address erc20TokenAddress_)
        public
        override
        onlyOwner
    {
        erc20TokenAddress = erc20TokenAddress_;
    }

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

    /**
     *   @dev this method hooks into ERC721's internal transfers mechanism (mint, burn, transfer) - see
     https://docs.openzeppelin.com/contracts/4.x/api/token/erc721#ERC721-_beforeTokenTransfer-address-address-uint256-
     * - When from and to are both non-zero, from's amount will be transferred to to.
     * - When from is zero, amount will be minted for to.
     * - When to is zero, from's amount will be burned.
     *   from and to are never both zero.
     *   This function checks that the "to" address has at least a balance of 1, in order for them to qualify for
     *   minting an NFT, and if they do, we burn one token
     *   the above logic only applies to minting, other transfer operations are ignored
     */
    function _beforeTokenTransfer(
        address from,
        address to,
        uint256 amount
    ) internal virtual override {
        super._beforeTokenTransfer(from, to, amount);
        //check if it's a mint
        if (from == address(0) && to != address(0)) {
            require(
                erc20TokenAddress != address(0),
                "erc20TokenAddress undefined"
            );
            uint256 balanceOfAddress = IERC20(erc20TokenAddress).balanceOf(to);
            require(balanceOfAddress >= 1, "user does not hold a token");
            ERC20Burnable(erc20TokenAddress).burnFrom(to, 1);
        }
    }
}

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

pragma solidity ^0.8.0;

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

File 7 of 21 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

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

    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

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

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

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

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

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

File 8 of 21 : ERC165Storage.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165Storage.sol)

pragma solidity ^0.8.0;

import "./ERC165.sol";

/**
 * @dev Storage based implementation of the {IERC165} interface.
 *
 * Contracts may inherit from this and call {_registerInterface} to declare
 * their support of an interface.
 */
abstract contract ERC165Storage is ERC165 {
    /**
     * @dev Mapping of interface ids to whether or not it's supported.
     */
    mapping(bytes4 => bool) private _supportedInterfaces;

    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
        return super.supportsInterface(interfaceId) || _supportedInterfaces[interfaceId];
    }

    /**
     * @dev Registers the contract as an implementer of the interface defined by
     * `interfaceId`. Support of the actual ERC165 interface is automatic and
     * registering its interface id is not required.
     *
     * See {IERC165-supportsInterface}.
     *
     * Requirements:
     *
     * - `interfaceId` cannot be the ERC165 invalid interface (`0xffffffff`).
     */
    function _registerInterface(bytes4 interfaceId) internal virtual {
        require(interfaceId != 0xffffffff, "ERC165: invalid interface id");
        _supportedInterfaces[interfaceId] = true;
    }
}

File 9 of 21 : ERC20Burnable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC20/extensions/ERC20Burnable.sol)

pragma solidity ^0.8.0;

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

/**
 * @dev Extension of {ERC20} that allows token holders to destroy both their own
 * tokens and those that they have an allowance for, in a way that can be
 * recognized off-chain (via event analysis).
 */
abstract contract ERC20Burnable is Context, ERC20 {
    /**
     * @dev Destroys `amount` tokens from the caller.
     *
     * See {ERC20-_burn}.
     */
    function burn(uint256 amount) public virtual {
        _burn(_msgSender(), amount);
    }

    /**
     * @dev Destroys `amount` tokens from `account`, deducting from the caller's
     * allowance.
     *
     * See {ERC20-_burn} and {ERC20-allowance}.
     *
     * Requirements:
     *
     * - the caller must have allowance for ``accounts``'s tokens of at least
     * `amount`.
     */
    function burnFrom(address account, uint256 amount) public virtual {
        _spendAllowance(account, _msgSender(), amount);
        _burn(account, amount);
    }
}

File 10 of 21 : ERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (token/ERC721/ERC721.sol)

pragma solidity ^0.8.0;

import "./IERC721.sol";
import "./IERC721Receiver.sol";
import "./extensions/IERC721Metadata.sol";
import "../../utils/Address.sol";
import "../../utils/Context.sol";
import "../../utils/Strings.sol";
import "../../utils/introspection/ERC165.sol";

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

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

    // Mapping from token ID to owner address
    mapping(uint256 => address) private _owners;

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

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

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

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

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

    /**
     * @dev See {IERC721-balanceOf}.
     */
    function balanceOf(address owner) public view virtual override returns (uint256) {
        require(owner != address(0), "ERC721: address zero is not a valid owner");
        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: invalid token ID");
        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) {
        _requireMinted(tokenId);

        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 overridden in child contracts.
     */
    function _baseURI() internal view virtual returns (string memory) {
        return "";
    }

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

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

        _approve(to, tokenId);
    }

    /**
     * @dev See {IERC721-getApproved}.
     */
    function getApproved(uint256 tokenId) public view virtual override returns (address) {
        _requireMinted(tokenId);

        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: caller is not token 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: caller is not token 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) {
        address owner = ERC721.ownerOf(tokenId);
        return (spender == owner || isApprovedForAll(owner, spender) || getApproved(tokenId) == 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);

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

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

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

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

        _balances[owner] -= 1;
        delete _owners[tokenId];

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

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

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

        _beforeTokenTransfer(from, to, tokenId);

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

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

        emit Transfer(from, to, tokenId);

        _afterTokenTransfer(from, to, tokenId);
    }

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

    /**
     * @dev Approve `operator` to operate on all of `owner` tokens
     *
     * Emits an {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 Reverts if the `tokenId` has not been minted yet.
     */
    function _requireMinted(uint256 tokenId) internal view virtual {
        require(_exists(tokenId), "ERC721: invalid token ID");
    }

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

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

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

File 11 of 21 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol)

pragma solidity ^0.8.0;

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

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

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

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

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        _checkOwner();
        _;
    }

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

    /**
     * @dev Throws if the sender is not the owner.
     */
    function _checkOwner() internal view virtual {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
    }

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

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

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

File 12 of 21 : IErc721BurningErc20OnMint.sol
//SPDX-License-Identifier: MIT
pragma solidity ^0.8.7;

interface IErc721BurningErc20OnMint {
    function setErc20TokenAddress(address erc20TokenAddress_) external;

    // Input: address to mint ERC721 to, and returns the token ID minted
    function mint() external returns (uint256);
}

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

pragma solidity ^0.8.0;

import "./IERC165.sol";

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

File 14 of 21 : ERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (token/ERC20/ERC20.sol)

pragma solidity ^0.8.0;

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

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

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

    uint256 private _totalSupply;

    string private _name;
    string private _symbol;

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

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

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

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

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

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

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

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

    /**
     * @dev See {IERC20-approve}.
     *
     * NOTE: If `amount` is the maximum `uint256`, the allowance is not updated on
     * `transferFrom`. This is semantically equivalent to an infinite approval.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function approve(address spender, uint256 amount) public virtual override returns (bool) {
        address owner = _msgSender();
        _approve(owner, spender, amount);
        return true;
    }

    /**
     * @dev See {IERC20-transferFrom}.
     *
     * Emits an {Approval} event indicating the updated allowance. This is not
     * required by the EIP. See the note at the beginning of {ERC20}.
     *
     * NOTE: Does not update the allowance if the current allowance
     * is the maximum `uint256`.
     *
     * Requirements:
     *
     * - `from` and `to` cannot be the zero address.
     * - `from` must have a balance of at least `amount`.
     * - the caller must have allowance for ``from``'s tokens of at least
     * `amount`.
     */
    function transferFrom(
        address from,
        address to,
        uint256 amount
    ) public virtual override returns (bool) {
        address spender = _msgSender();
        _spendAllowance(from, spender, amount);
        _transfer(from, to, amount);
        return true;
    }

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

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

        return true;
    }

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

        _beforeTokenTransfer(from, to, amount);

        uint256 fromBalance = _balances[from];
        require(fromBalance >= amount, "ERC20: transfer amount exceeds balance");
        unchecked {
            _balances[from] = fromBalance - amount;
        }
        _balances[to] += amount;

        emit Transfer(from, to, amount);

        _afterTokenTransfer(from, to, amount);
    }

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

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

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

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

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

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

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

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

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

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

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

    /**
     * @dev Updates `owner` s allowance for `spender` based on spent `amount`.
     *
     * Does not update the allowance amount in case of infinite allowance.
     * Revert if not enough allowance is available.
     *
     * Might emit an {Approval} event.
     */
    function _spendAllowance(
        address owner,
        address spender,
        uint256 amount
    ) internal virtual {
        uint256 currentAllowance = allowance(owner, spender);
        if (currentAllowance != type(uint256).max) {
            require(currentAllowance >= amount, "ERC20: insufficient allowance");
            unchecked {
                _approve(owner, spender, currentAllowance - amount);
            }
        }
    }

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

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

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

pragma solidity ^0.8.0;

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

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

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

pragma solidity ^0.8.0;

import "../IERC20.sol";

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

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

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

File 17 of 21 : IERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (token/ERC721/IERC721.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`.
     *
     * 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;

    /**
     * @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 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 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 the account approved for `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function getApproved(uint256 tokenId) external view returns (address operator);

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

File 18 of 21 : IERC721Receiver.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721Receiver.sol)

pragma solidity ^0.8.0;

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

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

pragma solidity ^0.8.0;

import "../IERC721.sol";

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

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

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

File 20 of 21 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (utils/Address.sol)

pragma solidity ^0.8.1;

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

        return account.code.length > 0;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

File 21 of 21 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (utils/Strings.sol)

pragma solidity ^0.8.0;

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

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

    /**
     * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation.
     */
    function toHexString(address addr) internal pure returns (string memory) {
        return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH);
    }
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"customBaseURI_","type":"string"},{"internalType":"bytes32","name":"whiteListSaleMerkleRoot_","type":"bytes32"},{"internalType":"uint256","name":"mintQtyToOwner","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"FJORD_FjordIsNotActive","type":"error"},{"inputs":[],"name":"FJORD_InexactPayment","type":"error"},{"inputs":[],"name":"FJORD_MaxMintExceeded","type":"error"},{"inputs":[],"name":"FJORD_PublicMintisNotActive","type":"error"},{"inputs":[],"name":"FJORD_TotalMinted","type":"error"},{"inputs":[],"name":"FJORD_WhitelistMaxSupplyExceeded","type":"error"},{"inputs":[],"name":"FJORD_WhitelistMintEnded","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"MintedAnNFT","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"TOTAL_SUPPLY","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"contractURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"customBaseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"erc20TokenAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"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":"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":"mint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"mintCounter","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"mintPerWhitelistedWallet","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"publicMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint256","name":"royaltyAmount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"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":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"customBaseURI_","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"time_","type":"uint256"}],"name":"setEndDateWhitelist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"erc20TokenAddress_","type":"address"}],"name":"setErc20TokenAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"enum FjordDrop.MintPhase","name":"val_","type":"uint8"}],"name":"setMintStage","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"price","type":"uint256"}],"name":"setPublicMintPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"stage","outputs":[{"internalType":"enum FjordDrop.MintPhase","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"whiteListSaleMerkleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"whitelistEndDate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes32[]","name":"merkleProof","type":"bytes32[]"}],"name":"whitelistMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]

608060405260405180606001604052806035815260200162005d6d60359139600b90805190602001906200003592919062000a31565b5066470de4df820000600f556000601060006101000a81548160ff021916908360048111156200006a576200006962000ae1565b5b02179055503480156200007c57600080fd5b5060405162005da238038062005da28339818101604052810190620000a2919062000d23565b6040518060400160405280601881526020017f4c6f7374204563686f65732062792046656c74205a696e6500000000000000008152506040518060400160405280600481526020017f46464c450000000000000000000000000000000000000000000000000000000081525081600090805190602001906200012692919062000a31565b5080600190805190602001906200013f92919062000a31565b50505062000162620001566200024560201b60201c565b6200024d60201b60201c565b600160088190555082600a90805190602001906200018292919062000a31565b5081600d8190555060005b818110156200020d576009600081819054906101000a900461ffff168092919060010191906101000a81548161ffff021916908361ffff160217905550506000600960009054906101000a900461ffff1661ffff169050620001f633826200031360201b60201c565b508080620002049062000dcd565b9150506200018d565b506001601060006101000a81548160ff0219169083600481111562000237576200023662000ae1565b5b0217905550505050620012a6565b600033905090565b6000600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600660006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff160362000385576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016200037c9062000e7b565b60405180910390fd5b62000396816200050c60201b60201c565b15620003d9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620003d09062000eed565b60405180910390fd5b620003ed600083836200057860201b60201c565b6001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546200043f919062000f0f565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a462000508600083836200078460201b60201c565b5050565b60008073ffffffffffffffffffffffffffffffffffffffff166002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b600160048111156200058f576200058e62000ae1565b5b601060009054906101000a900460ff166004811115620005b457620005b362000ae1565b5b03620005f7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620005ee9062000fbc565b60405180910390fd5b600360048111156200060e576200060d62000ae1565b5b601060009054906101000a900460ff16600481111562000633576200063262000ae1565b5b036200065757620006518383836200078960201b62001a5f1760201c565b6200077f565b6004808111156200066d576200066c62000ae1565b5b601060009054906101000a900460ff16600481111562000692576200069162000ae1565b5b1480620006d8575060006004811115620006b157620006b062000ae1565b5b601060009054906101000a900460ff166004811115620006d657620006d562000ae1565b5b145b806200071d575060026004811115620006f657620006f562000ae1565b5b601060009054906101000a900460ff1660048111156200071b576200071a62000ae1565b5b145b1562000741576200073b83838362000a2c60201b62001ce41760201c565b6200077e565b6040517f08c379a000000000000000000000000000000000000000000000000000000000815260040162000775906200102e565b60405180910390fd5b5b505050565b505050565b620007a183838362000a2c60201b62001ce41760201c565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161480156200080b5750600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614155b1562000a2757600073ffffffffffffffffffffffffffffffffffffffff16600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1603620008a5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016200089c90620010a0565b60405180910390fd5b6000600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231846040518263ffffffff1660e01b815260040162000904919062001107565b602060405180830381865afa15801562000922573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062000948919062001124565b9050600181101562000991576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016200098890620011a6565b60405180910390fd5b600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166379cc67908460016040518363ffffffff1660e01b8152600401620009f192919062001215565b600060405180830381600087803b15801562000a0c57600080fd5b505af115801562000a21573d6000803e3d6000fd5b50505050505b505050565b505050565b82805462000a3f9062001271565b90600052602060002090601f01602090048101928262000a63576000855562000aaf565b82601f1062000a7e57805160ff191683800117855562000aaf565b8280016001018555821562000aaf579182015b8281111562000aae57825182559160200191906001019062000a91565b5b50905062000abe919062000ac2565b5090565b5b8082111562000add57600081600090555060010162000ac3565b5090565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b6000604051905090565b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b62000b798262000b2e565b810181811067ffffffffffffffff8211171562000b9b5762000b9a62000b3f565b5b80604052505050565b600062000bb062000b10565b905062000bbe828262000b6e565b919050565b600067ffffffffffffffff82111562000be15762000be062000b3f565b5b62000bec8262000b2e565b9050602081019050919050565b60005b8381101562000c1957808201518184015260208101905062000bfc565b8381111562000c29576000848401525b50505050565b600062000c4662000c408462000bc3565b62000ba4565b90508281526020810184848401111562000c655762000c6462000b29565b5b62000c7284828562000bf9565b509392505050565b600082601f83011262000c925762000c9162000b24565b5b815162000ca484826020860162000c2f565b91505092915050565b6000819050919050565b62000cc28162000cad565b811462000cce57600080fd5b50565b60008151905062000ce28162000cb7565b92915050565b6000819050919050565b62000cfd8162000ce8565b811462000d0957600080fd5b50565b60008151905062000d1d8162000cf2565b92915050565b60008060006060848603121562000d3f5762000d3e62000b1a565b5b600084015167ffffffffffffffff81111562000d605762000d5f62000b1f565b5b62000d6e8682870162000c7a565b935050602062000d818682870162000cd1565b925050604062000d948682870162000d0c565b9150509250925092565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600062000dda8262000ce8565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff820362000e0f5762000e0e62000d9e565b5b600182019050919050565b600082825260208201905092915050565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b600062000e6360208362000e1a565b915062000e708262000e2b565b602082019050919050565b6000602082019050818103600083015262000e968162000e54565b9050919050565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b600062000ed5601c8362000e1a565b915062000ee28262000e9d565b602082019050919050565b6000602082019050818103600083015262000f088162000ec6565b9050919050565b600062000f1c8262000ce8565b915062000f298362000ce8565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0382111562000f615762000f6062000d9e565b5b828201905092915050565b7f4d696e74696e67206973206e6f74206163746976650000000000000000000000600082015250565b600062000fa460158362000e1a565b915062000fb18262000f6c565b602082019050919050565b6000602082019050818103600083015262000fd78162000f95565b9050919050565b7f4d696e74696e67206572726f7200000000000000000000000000000000000000600082015250565b600062001016600d8362000e1a565b9150620010238262000fde565b602082019050919050565b60006020820190508181036000830152620010498162001007565b9050919050565b7f6572633230546f6b656e4164647265737320756e646566696e65640000000000600082015250565b600062001088601b8362000e1a565b9150620010958262001050565b602082019050919050565b60006020820190508181036000830152620010bb8162001079565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000620010ef82620010c2565b9050919050565b6200110181620010e2565b82525050565b60006020820190506200111e6000830184620010f6565b92915050565b6000602082840312156200113d576200113c62000b1a565b5b60006200114d8482850162000d0c565b91505092915050565b7f7573657220646f6573206e6f7420686f6c64206120746f6b656e000000000000600082015250565b60006200118e601a8362000e1a565b91506200119b8262001156565b602082019050919050565b60006020820190508181036000830152620011c1816200117f565b9050919050565b6000819050919050565b6000819050919050565b6000620011fd620011f7620011f184620011c8565b620011d2565b62000ce8565b9050919050565b6200120f81620011dc565b82525050565b60006040820190506200122c6000830185620010f6565b6200123b602083018462001204565b9392505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806200128a57607f821691505b602082108103620012a0576200129f62001242565b5b50919050565b614ab780620012b66000396000f3fe6080604052600436106102135760003560e01c80638da5cb5b11610118578063c87b56dd116100a0578063e8a3d4851161006f578063e8a3d4851461077b578063e985e9c5146107a6578063eb107e20146107e3578063f2fde38b1461080c578063f835cd3c146108355761021a565b8063c87b56dd146106ce578063d2cab0561461070b578063df1ca2e814610727578063dfb25a7d146107505761021a565b8063a86add1f116100e7578063a86add1f146105e9578063b88d4fde14610626578063bb0ba35d1461064f578063beeee0f714610678578063c040e6b8146106a35761021a565b80638da5cb5b1461053f578063902d55a51461056a57806395d89b4114610595578063a22cb465146105c05761021a565b80633ccfd60b1161019b5780635d82cf6e1161016a5780635d82cf6e1461045a5780636352211e1461048357806370a08231146104c0578063715018a6146104fd578063889a3f19146105145761021a565b80633ccfd60b146103c657806342842e0e146103dd57806346aa52ce1461040657806355f804b3146104315761021a565b80631249c58b116101e25780631249c58b146102ed57806318160ddd1461031857806323b872dd146103435780632a55205a1461036c5780632db11544146103aa5761021a565b806301ffc9a71461021f57806306fdde031461025c578063081812fc14610287578063095ea7b3146102c45761021a565b3661021a57005b600080fd5b34801561022b57600080fd5b5061024660048036038101906102419190613011565b610860565b6040516102539190613059565b60405180910390f35b34801561026857600080fd5b506102716108da565b60405161027e919061310d565b60405180910390f35b34801561029357600080fd5b506102ae60048036038101906102a99190613165565b61096c565b6040516102bb91906131d3565b60405180910390f35b3480156102d057600080fd5b506102eb60048036038101906102e6919061321a565b6109b2565b005b3480156102f957600080fd5b50610302610ac9565b60405161030f9190613269565b60405180910390f35b34801561032457600080fd5b5061032d610c48565b60405161033a9190613269565b60405180910390f35b34801561034f57600080fd5b5061036a60048036038101906103659190613284565b610c64565b005b34801561037857600080fd5b50610393600480360381019061038e91906132d7565b610cc4565b6040516103a1929190613317565b60405180910390f35b6103c460048036038101906103bf9190613165565b610cec565b005b3480156103d257600080fd5b506103db610ec5565b005b3480156103e957600080fd5b5061040460048036038101906103ff9190613284565b610fd1565b005b34801561041257600080fd5b5061041b610ff1565b604051610428919061335d565b60405180910390f35b34801561043d57600080fd5b50610458600480360381019061045391906134ad565b611005565b005b34801561046657600080fd5b50610481600480360381019061047c9190613165565b611027565b005b34801561048f57600080fd5b506104aa60048036038101906104a59190613165565b611039565b6040516104b791906131d3565b60405180910390f35b3480156104cc57600080fd5b506104e760048036038101906104e291906134f6565b6110ea565b6040516104f49190613269565b60405180910390f35b34801561050957600080fd5b506105126111a1565b005b34801561052057600080fd5b506105296111b5565b604051610536919061310d565b60405180910390f35b34801561054b57600080fd5b50610554611243565b60405161056191906131d3565b60405180910390f35b34801561057657600080fd5b5061057f61126d565b60405161058c919061335d565b60405180910390f35b3480156105a157600080fd5b506105aa611273565b6040516105b7919061310d565b60405180910390f35b3480156105cc57600080fd5b506105e760048036038101906105e2919061354f565b611305565b005b3480156105f557600080fd5b50610610600480360381019061060b91906134f6565b61131b565b60405161061d91906135ae565b60405180910390f35b34801561063257600080fd5b5061064d6004803603810190610648919061366a565b61133e565b005b34801561065b57600080fd5b5061067660048036038101906106719190613712565b6113a0565b005b34801561068457600080fd5b5061068d6113d5565b60405161069a9190613758565b60405180910390f35b3480156106af57600080fd5b506106b86113db565b6040516106c591906137ea565b60405180910390f35b3480156106da57600080fd5b506106f560048036038101906106f09190613165565b6113ee565b604051610702919061310d565b60405180910390f35b61072560048036038101906107209190613865565b61141f565b005b34801561073357600080fd5b5061074e60048036038101906107499190613165565b611825565b005b34801561075c57600080fd5b50610765611842565b6040516107729190613269565b60405180910390f35b34801561078757600080fd5b50610790611848565b60405161079d919061310d565b60405180910390f35b3480156107b257600080fd5b506107cd60048036038101906107c891906138c5565b6118d6565b6040516107da9190613059565b60405180910390f35b3480156107ef57600080fd5b5061080a600480360381019061080591906134f6565b61196a565b005b34801561081857600080fd5b50610833600480360381019061082e91906134f6565b6119b6565b005b34801561084157600080fd5b5061084a611a39565b60405161085791906131d3565b60405180910390f35b60007ff959bbab000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806108d357506108d282611ce9565b5b9050919050565b6060600080546108e990613934565b80601f016020809104026020016040519081016040528092919081815260200182805461091590613934565b80156109625780601f1061093757610100808354040283529160200191610962565b820191906000526020600020905b81548152906001019060200180831161094557829003601f168201915b5050505050905090565b600061097782611dcb565b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b60006109bd82611039565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603610a2d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a24906139d7565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610a4c611e16565b73ffffffffffffffffffffffffffffffffffffffff161480610a7b5750610a7a81610a75611e16565b6118d6565b5b610aba576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ab190613a69565b60405180910390fd5b610ac48383611e1e565b505050565b6000600260085403610b10576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b0790613ad5565b60405180910390fd5b600260088190555060036004811115610b2c57610b2b613773565b5b601060009054906101000a900460ff166004811115610b4e57610b4d613773565b5b14610b8e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b8590613b41565b60405180910390fd5b61020d61ffff16600960009054906101000a900461ffff1661ffff1610610be1576040517fec3664a200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6009600081819054906101000a900461ffff168092919060010191906101000a81548161ffff021916908361ffff160217905550506000600960009054906101000a900461ffff1661ffff169050610c393382611ed7565b80915050600160088190555090565b6000600960009054906101000a900461ffff1661ffff16905090565b610c75610c6f611e16565b826120b0565b610cb4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610cab90613bd3565b60405180910390fd5b610cbf838383612145565b505050565b600080306064600a85610cd79190613c22565b610ce19190613cab565b915091509250929050565b600480811115610cff57610cfe613773565b5b601060009054906101000a900460ff166004811115610d2157610d20613773565b5b14610d61576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d5890613d28565b60405180910390fd5b80600f54610d6f9190613c22565b3414610da7576040517f824251ea00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61020d61ffff1681600960009054906101000a900461ffff1661ffff16610dce9190613d48565b1115610e06576040517fdec0507f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60005b81811015610ec1576009600081819054906101000a900461ffff168092919060010191906101000a81548161ffff021916908361ffff160217905550506000600960009054906101000a900461ffff1661ffff169050610e693382611ed7565b803373ffffffffffffffffffffffffffffffffffffffff167f24c6b97e79955b9de057c4c63cdf9b5fe58ce436fc0d15bc93ef39166cfcf07b60405160405180910390a3508080610eb990613d9e565b915050610e09565b5050565b600260085403610f0a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f0190613ad5565b60405180910390fd5b6002600881905550610f1a6123ab565b6000479050610f57735e080d8b14c1da5936509c2c9ef0168a193042026103e861017784610f489190613c22565b610f529190613cab565b612429565b610f8f73b012a1bdca34e1d0c2267bb50e6c53c8042eb4b66103e861017784610f809190613c22565b610f8a9190613cab565b612429565b610fc67352aa63a67b15e3c2f201c9422cac1e81bd6ea8476103e860fa84610fb79190613c22565b610fc19190613cab565b612429565b506001600881905550565b610fec8383836040518060200160405280600081525061133e565b505050565b600960009054906101000a900461ffff1681565b61100d6123ab565b80600a9080519060200190611023929190612f02565b5050565b61102f6123ab565b80600f8190555050565b6000806002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036110e1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110d890613e32565b60405180910390fd5b80915050919050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff160361115a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161115190613ec4565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b6111a96123ab565b6111b3600061251d565b565b600a80546111c290613934565b80601f01602080910402602001604051908101604052809291908181526020018280546111ee90613934565b801561123b5780601f106112105761010080835404028352916020019161123b565b820191906000526020600020905b81548152906001019060200180831161121e57829003601f168201915b505050505081565b6000600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b61020d81565b60606001805461128290613934565b80601f01602080910402602001604051908101604052809291908181526020018280546112ae90613934565b80156112fb5780601f106112d0576101008083540402835291602001916112fb565b820191906000526020600020905b8154815290600101906020018083116112de57829003601f168201915b5050505050905090565b611317611310611e16565b83836125e3565b5050565b600e6020528060005260406000206000915054906101000a900463ffffffff1681565b61134f611349611e16565b836120b0565b61138e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161138590613bd3565b60405180910390fd5b61139a8484848461274f565b50505050565b6113a86123ab565b80601060006101000a81548160ff021916908360048111156113cd576113cc613773565b5b021790555050565b600d5481565b601060009054906101000a900460ff1681565b60606113f9826127ab565b6040516020016114099190613f20565b6040516020818303038152906040529050919050565b8181600d54611496838380806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f82011690508083019250505050505050823360405160200161147b9190613f7f565b60405160208183030381529060405280519060200120612813565b6114d5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114cc90613fe6565b60405180910390fd5b6000600e60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900463ffffffff1663ffffffff1690506000606490506002600481111561154957611548613773565b5b601060009054906101000a900460ff16600481111561156b5761156a613773565b5b146115ab576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115a290614052565b60405180910390fd5b8766470de4df8200006115be9190613c22565b34146115f6576040517f824251ea00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8088600960009054906101000a900461ffff1661ffff166116179190613d48565b1115611658576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161164f906140be565b60405180910390fd5b600c544210611692576040517e98b41c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600263ffffffff1688836116a69190613d48565b11156116e7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116de9061412a565b60405180910390fd5b60005b8881101561181a576009600081819054906101000a900461ffff168092919060010191906101000a81548161ffff021916908361ffff16021790555050600e60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081819054906101000a900463ffffffff168092919060010191906101000a81548163ffffffff021916908363ffffffff160217905550506000600960009054906101000a900461ffff1661ffff1690506117c23382611ed7565b803373ffffffffffffffffffffffffffffffffffffffff167f24c6b97e79955b9de057c4c63cdf9b5fe58ce436fc0d15bc93ef39166cfcf07b60405160405180910390a350808061181290613d9e565b9150506116ea565b505050505050505050565b61182d6123ab565b80426118399190613d48565b600c8190555050565b600c5481565b600b805461185590613934565b80601f016020809104026020016040519081016040528092919081815260200182805461188190613934565b80156118ce5780601f106118a3576101008083540402835291602001916118ce565b820191906000526020600020905b8154815290600101906020018083116118b157829003601f168201915b505050505081565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6119726123ab565b80600760006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6119be6123ab565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611a2d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a24906141bc565b60405180910390fd5b611a368161251d565b50565b600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b611a6a838383611ce4565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16148015611ad35750600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614155b15611cdf57600073ffffffffffffffffffffffffffffffffffffffff16600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1603611b69576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b6090614228565b60405180910390fd5b6000600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231846040518263ffffffff1660e01b8152600401611bc691906131d3565b602060405180830381865afa158015611be3573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611c07919061425d565b90506001811015611c4d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c44906142d6565b60405180910390fd5b600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166379cc67908460016040518363ffffffff1660e01b8152600401611cab92919061433b565b600060405180830381600087803b158015611cc557600080fd5b505af1158015611cd9573d6000803e3d6000fd5b50505050505b505050565b505050565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480611db457507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80611dc45750611dc38261282a565b5b9050919050565b611dd481612894565b611e13576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e0a90613e32565b60405180910390fd5b50565b600033905090565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16611e9183611039565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611f46576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f3d906143b0565b60405180910390fd5b611f4f81612894565b15611f8f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f869061441c565b60405180910390fd5b611f9b60008383612900565b6001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611feb9190613d48565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46120ac60008383612ac9565b5050565b6000806120bc83611039565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614806120fe57506120fd81856118d6565b5b8061213c57508373ffffffffffffffffffffffffffffffffffffffff166121248461096c565b73ffffffffffffffffffffffffffffffffffffffff16145b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff1661216582611039565b73ffffffffffffffffffffffffffffffffffffffff16146121bb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121b2906144ae565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff160361222a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161222190614540565b60405180910390fd5b612235838383612900565b612240600082611e1e565b6001600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546122909190614560565b925050819055506001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546122e79190613d48565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46123a6838383612ac9565b505050565b6123b3611e16565b73ffffffffffffffffffffffffffffffffffffffff166123d1611243565b73ffffffffffffffffffffffffffffffffffffffff1614612427576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161241e906145e0565b60405180910390fd5b565b8047101561246c576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124639061464c565b60405180910390fd5b60008273ffffffffffffffffffffffffffffffffffffffff16826040516124929061469d565b60006040518083038185875af1925050503d80600081146124cf576040519150601f19603f3d011682016040523d82523d6000602084013e6124d4565b606091505b5050905080612518576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161250f90614724565b60405180910390fd5b505050565b6000600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600660006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603612651576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161264890614790565b60405180910390fd5b80600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516127429190613059565b60405180910390a3505050565b61275a848484612145565b61276684848484612ace565b6127a5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161279c90614822565b60405180910390fd5b50505050565b60606127b682611dcb565b60006127c0612c55565b905060008151116127e0576040518060200160405280600081525061280b565b806127ea84612ce7565b6040516020016127fb929190614842565b6040516020818303038152906040525b915050919050565b6000826128208584612e47565b1490509392505050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b60008073ffffffffffffffffffffffffffffffffffffffff166002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b6001600481111561291457612913613773565b5b601060009054906101000a900460ff16600481111561293657612935613773565b5b03612976576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161296d906148b2565b60405180910390fd5b6003600481111561298a57612989613773565b5b601060009054906101000a900460ff1660048111156129ac576129ab613773565b5b036129c1576129bc838383611a5f565b612ac4565b6004808111156129d4576129d3613773565b5b601060009054906101000a900460ff1660048111156129f6576129f5613773565b5b1480612a35575060006004811115612a1157612a10613773565b5b601060009054906101000a900460ff166004811115612a3357612a32613773565b5b145b80612a73575060026004811115612a4f57612a4e613773565b5b601060009054906101000a900460ff166004811115612a7157612a70613773565b5b145b15612a8857612a83838383611ce4565b612ac3565b6040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612aba9061491e565b60405180910390fd5b5b505050565b505050565b6000612aef8473ffffffffffffffffffffffffffffffffffffffff16612e9d565b15612c48578373ffffffffffffffffffffffffffffffffffffffff1663150b7a02612b18611e16565b8786866040518563ffffffff1660e01b8152600401612b3a9493929190614993565b6020604051808303816000875af1925050508015612b7657506040513d601f19601f82011682018060405250810190612b7391906149f4565b60015b612bf8573d8060008114612ba6576040519150601f19603f3d011682016040523d82523d6000602084013e612bab565b606091505b506000815103612bf0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612be790614822565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050612c4d565b600190505b949350505050565b6060600a8054612c6490613934565b80601f0160208091040260200160405190810160405280929190818152602001828054612c9090613934565b8015612cdd5780601f10612cb257610100808354040283529160200191612cdd565b820191906000526020600020905b815481529060010190602001808311612cc057829003601f168201915b5050505050905090565b606060008203612d2e576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050612e42565b600082905060005b60008214612d60578080612d4990613d9e565b915050600a82612d599190613cab565b9150612d36565b60008167ffffffffffffffff811115612d7c57612d7b613382565b5b6040519080825280601f01601f191660200182016040528015612dae5781602001600182028036833780820191505090505b5090505b60008514612e3b57600182612dc79190614560565b9150600a85612dd69190614a21565b6030612de29190613d48565b60f81b818381518110612df857612df7614a52565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a85612e349190613cab565b9450612db2565b8093505050505b919050565b60008082905060005b8451811015612e9257612e7d82868381518110612e7057612e6f614a52565b5b6020026020010151612ec0565b91508080612e8a90613d9e565b915050612e50565b508091505092915050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b6000818310612ed857612ed38284612eeb565b612ee3565b612ee28383612eeb565b5b905092915050565b600082600052816020526040600020905092915050565b828054612f0e90613934565b90600052602060002090601f016020900481019282612f305760008555612f77565b82601f10612f4957805160ff1916838001178555612f77565b82800160010185558215612f77579182015b82811115612f76578251825591602001919060010190612f5b565b5b509050612f849190612f88565b5090565b5b80821115612fa1576000816000905550600101612f89565b5090565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b612fee81612fb9565b8114612ff957600080fd5b50565b60008135905061300b81612fe5565b92915050565b60006020828403121561302757613026612faf565b5b600061303584828501612ffc565b91505092915050565b60008115159050919050565b6130538161303e565b82525050565b600060208201905061306e600083018461304a565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b838110156130ae578082015181840152602081019050613093565b838111156130bd576000848401525b50505050565b6000601f19601f8301169050919050565b60006130df82613074565b6130e9818561307f565b93506130f9818560208601613090565b613102816130c3565b840191505092915050565b6000602082019050818103600083015261312781846130d4565b905092915050565b6000819050919050565b6131428161312f565b811461314d57600080fd5b50565b60008135905061315f81613139565b92915050565b60006020828403121561317b5761317a612faf565b5b600061318984828501613150565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006131bd82613192565b9050919050565b6131cd816131b2565b82525050565b60006020820190506131e860008301846131c4565b92915050565b6131f7816131b2565b811461320257600080fd5b50565b600081359050613214816131ee565b92915050565b6000806040838503121561323157613230612faf565b5b600061323f85828601613205565b925050602061325085828601613150565b9150509250929050565b6132638161312f565b82525050565b600060208201905061327e600083018461325a565b92915050565b60008060006060848603121561329d5761329c612faf565b5b60006132ab86828701613205565b93505060206132bc86828701613205565b92505060406132cd86828701613150565b9150509250925092565b600080604083850312156132ee576132ed612faf565b5b60006132fc85828601613150565b925050602061330d85828601613150565b9150509250929050565b600060408201905061332c60008301856131c4565b613339602083018461325a565b9392505050565b600061ffff82169050919050565b61335781613340565b82525050565b6000602082019050613372600083018461334e565b92915050565b600080fd5b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6133ba826130c3565b810181811067ffffffffffffffff821117156133d9576133d8613382565b5b80604052505050565b60006133ec612fa5565b90506133f882826133b1565b919050565b600067ffffffffffffffff82111561341857613417613382565b5b613421826130c3565b9050602081019050919050565b82818337600083830152505050565b600061345061344b846133fd565b6133e2565b90508281526020810184848401111561346c5761346b61337d565b5b61347784828561342e565b509392505050565b600082601f83011261349457613493613378565b5b81356134a484826020860161343d565b91505092915050565b6000602082840312156134c3576134c2612faf565b5b600082013567ffffffffffffffff8111156134e1576134e0612fb4565b5b6134ed8482850161347f565b91505092915050565b60006020828403121561350c5761350b612faf565b5b600061351a84828501613205565b91505092915050565b61352c8161303e565b811461353757600080fd5b50565b60008135905061354981613523565b92915050565b6000806040838503121561356657613565612faf565b5b600061357485828601613205565b92505060206135858582860161353a565b9150509250929050565b600063ffffffff82169050919050565b6135a88161358f565b82525050565b60006020820190506135c3600083018461359f565b92915050565b600067ffffffffffffffff8211156135e4576135e3613382565b5b6135ed826130c3565b9050602081019050919050565b600061360d613608846135c9565b6133e2565b9050828152602081018484840111156136295761362861337d565b5b61363484828561342e565b509392505050565b600082601f83011261365157613650613378565b5b81356136618482602086016135fa565b91505092915050565b6000806000806080858703121561368457613683612faf565b5b600061369287828801613205565b94505060206136a387828801613205565b93505060406136b487828801613150565b925050606085013567ffffffffffffffff8111156136d5576136d4612fb4565b5b6136e18782880161363c565b91505092959194509250565b600581106136fa57600080fd5b50565b60008135905061370c816136ed565b92915050565b60006020828403121561372857613727612faf565b5b6000613736848285016136fd565b91505092915050565b6000819050919050565b6137528161373f565b82525050565b600060208201905061376d6000830184613749565b92915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b600581106137b3576137b2613773565b5b50565b60008190506137c4826137a2565b919050565b60006137d4826137b6565b9050919050565b6137e4816137c9565b82525050565b60006020820190506137ff60008301846137db565b92915050565b600080fd5b600080fd5b60008083601f84011261382557613824613378565b5b8235905067ffffffffffffffff81111561384257613841613805565b5b60208301915083602082028301111561385e5761385d61380a565b5b9250929050565b60008060006040848603121561387e5761387d612faf565b5b600061388c86828701613150565b935050602084013567ffffffffffffffff8111156138ad576138ac612fb4565b5b6138b98682870161380f565b92509250509250925092565b600080604083850312156138dc576138db612faf565b5b60006138ea85828601613205565b92505060206138fb85828601613205565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168061394c57607f821691505b60208210810361395f5761395e613905565b5b50919050565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b60006139c160218361307f565b91506139cc82613965565b604082019050919050565b600060208201905081810360008301526139f0816139b4565b9050919050565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60008201527f6b656e206f776e6572206e6f7220617070726f76656420666f7220616c6c0000602082015250565b6000613a53603e8361307f565b9150613a5e826139f7565b604082019050919050565b60006020820190508181036000830152613a8281613a46565b9050919050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b6000613abf601f8361307f565b9150613aca82613a89565b602082019050919050565b60006020820190508181036000830152613aee81613ab2565b9050919050565b7f466a6f72642064726f70206973206e6f74206163746976650000000000000000600082015250565b6000613b2b60188361307f565b9150613b3682613af5565b602082019050919050565b60006020820190508181036000830152613b5a81613b1e565b9050919050565b7f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560008201527f72206e6f7220617070726f766564000000000000000000000000000000000000602082015250565b6000613bbd602e8361307f565b9150613bc882613b61565b604082019050919050565b60006020820190508181036000830152613bec81613bb0565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000613c2d8261312f565b9150613c388361312f565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615613c7157613c70613bf3565b5b828202905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000613cb68261312f565b9150613cc18361312f565b925082613cd157613cd0613c7c565b5b828204905092915050565b7f5075626c6963204d696e742069732064697361626c6564000000000000000000600082015250565b6000613d1260178361307f565b9150613d1d82613cdc565b602082019050919050565b60006020820190508181036000830152613d4181613d05565b9050919050565b6000613d538261312f565b9150613d5e8361312f565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115613d9357613d92613bf3565b5b828201905092915050565b6000613da98261312f565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203613ddb57613dda613bf3565b5b600182019050919050565b7f4552433732313a20696e76616c696420746f6b656e2049440000000000000000600082015250565b6000613e1c60188361307f565b9150613e2782613de6565b602082019050919050565b60006020820190508181036000830152613e4b81613e0f565b9050919050565b7f4552433732313a2061646472657373207a65726f206973206e6f74206120766160008201527f6c6964206f776e65720000000000000000000000000000000000000000000000602082015250565b6000613eae60298361307f565b9150613eb982613e52565b604082019050919050565b60006020820190508181036000830152613edd81613ea1565b9050919050565b600081905092915050565b6000613efa82613074565b613f048185613ee4565b9350613f14818560208601613090565b80840191505092915050565b6000613f2c8284613eef565b915081905092915050565b60008160601b9050919050565b6000613f4f82613f37565b9050919050565b6000613f6182613f44565b9050919050565b613f79613f74826131b2565b613f56565b82525050565b6000613f8b8284613f68565b60148201915081905092915050565b7f41646472657373206973206e6f742077686974656c6973746564000000000000600082015250565b6000613fd0601a8361307f565b9150613fdb82613f9a565b602082019050919050565b60006020820190508181036000830152613fff81613fc3565b9050919050565b7f57686974656c697374204d696e742069732064697361626c6564000000000000600082015250565b600061403c601a8361307f565b915061404782614006565b602082019050919050565b6000602082019050818103600083015261406b8161402f565b9050919050565b7f77686974656c697374206d696e74202065786365656465640000000000000000600082015250565b60006140a860188361307f565b91506140b382614072565b602082019050919050565b600060208201905081810360008301526140d78161409b565b9050919050565b7f4d6178206d696e74206578636565646564000000000000000000000000000000600082015250565b600061411460118361307f565b915061411f826140de565b602082019050919050565b6000602082019050818103600083015261414381614107565b9050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b60006141a660268361307f565b91506141b18261414a565b604082019050919050565b600060208201905081810360008301526141d581614199565b9050919050565b7f6572633230546f6b656e4164647265737320756e646566696e65640000000000600082015250565b6000614212601b8361307f565b915061421d826141dc565b602082019050919050565b6000602082019050818103600083015261424181614205565b9050919050565b60008151905061425781613139565b92915050565b60006020828403121561427357614272612faf565b5b600061428184828501614248565b91505092915050565b7f7573657220646f6573206e6f7420686f6c64206120746f6b656e000000000000600082015250565b60006142c0601a8361307f565b91506142cb8261428a565b602082019050919050565b600060208201905081810360008301526142ef816142b3565b9050919050565b6000819050919050565b6000819050919050565b600061432561432061431b846142f6565b614300565b61312f565b9050919050565b6143358161430a565b82525050565b600060408201905061435060008301856131c4565b61435d602083018461432c565b9392505050565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b600061439a60208361307f565b91506143a582614364565b602082019050919050565b600060208201905081810360008301526143c98161438d565b9050919050565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b6000614406601c8361307f565b9150614411826143d0565b602082019050919050565b60006020820190508181036000830152614435816143f9565b9050919050565b7f4552433732313a207472616e736665722066726f6d20696e636f72726563742060008201527f6f776e6572000000000000000000000000000000000000000000000000000000602082015250565b600061449860258361307f565b91506144a38261443c565b604082019050919050565b600060208201905081810360008301526144c78161448b565b9050919050565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b600061452a60248361307f565b9150614535826144ce565b604082019050919050565b600060208201905081810360008301526145598161451d565b9050919050565b600061456b8261312f565b91506145768361312f565b92508282101561458957614588613bf3565b5b828203905092915050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b60006145ca60208361307f565b91506145d582614594565b602082019050919050565b600060208201905081810360008301526145f9816145bd565b9050919050565b7f416464726573733a20696e73756666696369656e742062616c616e6365000000600082015250565b6000614636601d8361307f565b915061464182614600565b602082019050919050565b6000602082019050818103600083015261466581614629565b9050919050565b600081905092915050565b50565b600061468760008361466c565b915061469282614677565b600082019050919050565b60006146a88261467a565b9150819050919050565b7f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260008201527f6563697069656e74206d61792068617665207265766572746564000000000000602082015250565b600061470e603a8361307f565b9150614719826146b2565b604082019050919050565b6000602082019050818103600083015261473d81614701565b9050919050565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b600061477a60198361307f565b915061478582614744565b602082019050919050565b600060208201905081810360008301526147a98161476d565b9050919050565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b600061480c60328361307f565b9150614817826147b0565b604082019050919050565b6000602082019050818103600083015261483b816147ff565b9050919050565b600061484e8285613eef565b915061485a8284613eef565b91508190509392505050565b7f4d696e74696e67206973206e6f74206163746976650000000000000000000000600082015250565b600061489c60158361307f565b91506148a782614866565b602082019050919050565b600060208201905081810360008301526148cb8161488f565b9050919050565b7f4d696e74696e67206572726f7200000000000000000000000000000000000000600082015250565b6000614908600d8361307f565b9150614913826148d2565b602082019050919050565b60006020820190508181036000830152614937816148fb565b9050919050565b600081519050919050565b600082825260208201905092915050565b60006149658261493e565b61496f8185614949565b935061497f818560208601613090565b614988816130c3565b840191505092915050565b60006080820190506149a860008301876131c4565b6149b560208301866131c4565b6149c2604083018561325a565b81810360608301526149d4818461495a565b905095945050505050565b6000815190506149ee81612fe5565b92915050565b600060208284031215614a0a57614a09612faf565b5b6000614a18848285016149df565b91505092915050565b6000614a2c8261312f565b9150614a378361312f565b925082614a4757614a46613c7c565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fdfea26469706673582212205194860421c4bab60fb11b39d4be0bb25a58387519212ed0b1510f3f0e5d0c0a64736f6c634300080e0033697066733a2f2f516d6479594374557356734335796d7237623474785136685848704c58744a55374a5843447548454a64586e52650000000000000000000000000000000000000000000000000000000000000060c076b4518f2c28f03337c4d74af5263fffdc040a32c9080717a45ffde87033a600000000000000000000000000000000000000000000000000000000000000190000000000000000000000000000000000000000000000000000000000000036697066733a2f2f516d616737486768334332696759616a645946744c6745313332796a4567776a4164613478344842586a38744e762f00000000000000000000

Deployed Bytecode

0x6080604052600436106102135760003560e01c80638da5cb5b11610118578063c87b56dd116100a0578063e8a3d4851161006f578063e8a3d4851461077b578063e985e9c5146107a6578063eb107e20146107e3578063f2fde38b1461080c578063f835cd3c146108355761021a565b8063c87b56dd146106ce578063d2cab0561461070b578063df1ca2e814610727578063dfb25a7d146107505761021a565b8063a86add1f116100e7578063a86add1f146105e9578063b88d4fde14610626578063bb0ba35d1461064f578063beeee0f714610678578063c040e6b8146106a35761021a565b80638da5cb5b1461053f578063902d55a51461056a57806395d89b4114610595578063a22cb465146105c05761021a565b80633ccfd60b1161019b5780635d82cf6e1161016a5780635d82cf6e1461045a5780636352211e1461048357806370a08231146104c0578063715018a6146104fd578063889a3f19146105145761021a565b80633ccfd60b146103c657806342842e0e146103dd57806346aa52ce1461040657806355f804b3146104315761021a565b80631249c58b116101e25780631249c58b146102ed57806318160ddd1461031857806323b872dd146103435780632a55205a1461036c5780632db11544146103aa5761021a565b806301ffc9a71461021f57806306fdde031461025c578063081812fc14610287578063095ea7b3146102c45761021a565b3661021a57005b600080fd5b34801561022b57600080fd5b5061024660048036038101906102419190613011565b610860565b6040516102539190613059565b60405180910390f35b34801561026857600080fd5b506102716108da565b60405161027e919061310d565b60405180910390f35b34801561029357600080fd5b506102ae60048036038101906102a99190613165565b61096c565b6040516102bb91906131d3565b60405180910390f35b3480156102d057600080fd5b506102eb60048036038101906102e6919061321a565b6109b2565b005b3480156102f957600080fd5b50610302610ac9565b60405161030f9190613269565b60405180910390f35b34801561032457600080fd5b5061032d610c48565b60405161033a9190613269565b60405180910390f35b34801561034f57600080fd5b5061036a60048036038101906103659190613284565b610c64565b005b34801561037857600080fd5b50610393600480360381019061038e91906132d7565b610cc4565b6040516103a1929190613317565b60405180910390f35b6103c460048036038101906103bf9190613165565b610cec565b005b3480156103d257600080fd5b506103db610ec5565b005b3480156103e957600080fd5b5061040460048036038101906103ff9190613284565b610fd1565b005b34801561041257600080fd5b5061041b610ff1565b604051610428919061335d565b60405180910390f35b34801561043d57600080fd5b50610458600480360381019061045391906134ad565b611005565b005b34801561046657600080fd5b50610481600480360381019061047c9190613165565b611027565b005b34801561048f57600080fd5b506104aa60048036038101906104a59190613165565b611039565b6040516104b791906131d3565b60405180910390f35b3480156104cc57600080fd5b506104e760048036038101906104e291906134f6565b6110ea565b6040516104f49190613269565b60405180910390f35b34801561050957600080fd5b506105126111a1565b005b34801561052057600080fd5b506105296111b5565b604051610536919061310d565b60405180910390f35b34801561054b57600080fd5b50610554611243565b60405161056191906131d3565b60405180910390f35b34801561057657600080fd5b5061057f61126d565b60405161058c919061335d565b60405180910390f35b3480156105a157600080fd5b506105aa611273565b6040516105b7919061310d565b60405180910390f35b3480156105cc57600080fd5b506105e760048036038101906105e2919061354f565b611305565b005b3480156105f557600080fd5b50610610600480360381019061060b91906134f6565b61131b565b60405161061d91906135ae565b60405180910390f35b34801561063257600080fd5b5061064d6004803603810190610648919061366a565b61133e565b005b34801561065b57600080fd5b5061067660048036038101906106719190613712565b6113a0565b005b34801561068457600080fd5b5061068d6113d5565b60405161069a9190613758565b60405180910390f35b3480156106af57600080fd5b506106b86113db565b6040516106c591906137ea565b60405180910390f35b3480156106da57600080fd5b506106f560048036038101906106f09190613165565b6113ee565b604051610702919061310d565b60405180910390f35b61072560048036038101906107209190613865565b61141f565b005b34801561073357600080fd5b5061074e60048036038101906107499190613165565b611825565b005b34801561075c57600080fd5b50610765611842565b6040516107729190613269565b60405180910390f35b34801561078757600080fd5b50610790611848565b60405161079d919061310d565b60405180910390f35b3480156107b257600080fd5b506107cd60048036038101906107c891906138c5565b6118d6565b6040516107da9190613059565b60405180910390f35b3480156107ef57600080fd5b5061080a600480360381019061080591906134f6565b61196a565b005b34801561081857600080fd5b50610833600480360381019061082e91906134f6565b6119b6565b005b34801561084157600080fd5b5061084a611a39565b60405161085791906131d3565b60405180910390f35b60007ff959bbab000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806108d357506108d282611ce9565b5b9050919050565b6060600080546108e990613934565b80601f016020809104026020016040519081016040528092919081815260200182805461091590613934565b80156109625780601f1061093757610100808354040283529160200191610962565b820191906000526020600020905b81548152906001019060200180831161094557829003601f168201915b5050505050905090565b600061097782611dcb565b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b60006109bd82611039565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603610a2d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a24906139d7565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610a4c611e16565b73ffffffffffffffffffffffffffffffffffffffff161480610a7b5750610a7a81610a75611e16565b6118d6565b5b610aba576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ab190613a69565b60405180910390fd5b610ac48383611e1e565b505050565b6000600260085403610b10576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b0790613ad5565b60405180910390fd5b600260088190555060036004811115610b2c57610b2b613773565b5b601060009054906101000a900460ff166004811115610b4e57610b4d613773565b5b14610b8e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b8590613b41565b60405180910390fd5b61020d61ffff16600960009054906101000a900461ffff1661ffff1610610be1576040517fec3664a200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6009600081819054906101000a900461ffff168092919060010191906101000a81548161ffff021916908361ffff160217905550506000600960009054906101000a900461ffff1661ffff169050610c393382611ed7565b80915050600160088190555090565b6000600960009054906101000a900461ffff1661ffff16905090565b610c75610c6f611e16565b826120b0565b610cb4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610cab90613bd3565b60405180910390fd5b610cbf838383612145565b505050565b600080306064600a85610cd79190613c22565b610ce19190613cab565b915091509250929050565b600480811115610cff57610cfe613773565b5b601060009054906101000a900460ff166004811115610d2157610d20613773565b5b14610d61576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d5890613d28565b60405180910390fd5b80600f54610d6f9190613c22565b3414610da7576040517f824251ea00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61020d61ffff1681600960009054906101000a900461ffff1661ffff16610dce9190613d48565b1115610e06576040517fdec0507f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60005b81811015610ec1576009600081819054906101000a900461ffff168092919060010191906101000a81548161ffff021916908361ffff160217905550506000600960009054906101000a900461ffff1661ffff169050610e693382611ed7565b803373ffffffffffffffffffffffffffffffffffffffff167f24c6b97e79955b9de057c4c63cdf9b5fe58ce436fc0d15bc93ef39166cfcf07b60405160405180910390a3508080610eb990613d9e565b915050610e09565b5050565b600260085403610f0a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f0190613ad5565b60405180910390fd5b6002600881905550610f1a6123ab565b6000479050610f57735e080d8b14c1da5936509c2c9ef0168a193042026103e861017784610f489190613c22565b610f529190613cab565b612429565b610f8f73b012a1bdca34e1d0c2267bb50e6c53c8042eb4b66103e861017784610f809190613c22565b610f8a9190613cab565b612429565b610fc67352aa63a67b15e3c2f201c9422cac1e81bd6ea8476103e860fa84610fb79190613c22565b610fc19190613cab565b612429565b506001600881905550565b610fec8383836040518060200160405280600081525061133e565b505050565b600960009054906101000a900461ffff1681565b61100d6123ab565b80600a9080519060200190611023929190612f02565b5050565b61102f6123ab565b80600f8190555050565b6000806002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036110e1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110d890613e32565b60405180910390fd5b80915050919050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff160361115a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161115190613ec4565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b6111a96123ab565b6111b3600061251d565b565b600a80546111c290613934565b80601f01602080910402602001604051908101604052809291908181526020018280546111ee90613934565b801561123b5780601f106112105761010080835404028352916020019161123b565b820191906000526020600020905b81548152906001019060200180831161121e57829003601f168201915b505050505081565b6000600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b61020d81565b60606001805461128290613934565b80601f01602080910402602001604051908101604052809291908181526020018280546112ae90613934565b80156112fb5780601f106112d0576101008083540402835291602001916112fb565b820191906000526020600020905b8154815290600101906020018083116112de57829003601f168201915b5050505050905090565b611317611310611e16565b83836125e3565b5050565b600e6020528060005260406000206000915054906101000a900463ffffffff1681565b61134f611349611e16565b836120b0565b61138e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161138590613bd3565b60405180910390fd5b61139a8484848461274f565b50505050565b6113a86123ab565b80601060006101000a81548160ff021916908360048111156113cd576113cc613773565b5b021790555050565b600d5481565b601060009054906101000a900460ff1681565b60606113f9826127ab565b6040516020016114099190613f20565b6040516020818303038152906040529050919050565b8181600d54611496838380806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f82011690508083019250505050505050823360405160200161147b9190613f7f565b60405160208183030381529060405280519060200120612813565b6114d5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114cc90613fe6565b60405180910390fd5b6000600e60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900463ffffffff1663ffffffff1690506000606490506002600481111561154957611548613773565b5b601060009054906101000a900460ff16600481111561156b5761156a613773565b5b146115ab576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115a290614052565b60405180910390fd5b8766470de4df8200006115be9190613c22565b34146115f6576040517f824251ea00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8088600960009054906101000a900461ffff1661ffff166116179190613d48565b1115611658576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161164f906140be565b60405180910390fd5b600c544210611692576040517e98b41c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600263ffffffff1688836116a69190613d48565b11156116e7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116de9061412a565b60405180910390fd5b60005b8881101561181a576009600081819054906101000a900461ffff168092919060010191906101000a81548161ffff021916908361ffff16021790555050600e60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081819054906101000a900463ffffffff168092919060010191906101000a81548163ffffffff021916908363ffffffff160217905550506000600960009054906101000a900461ffff1661ffff1690506117c23382611ed7565b803373ffffffffffffffffffffffffffffffffffffffff167f24c6b97e79955b9de057c4c63cdf9b5fe58ce436fc0d15bc93ef39166cfcf07b60405160405180910390a350808061181290613d9e565b9150506116ea565b505050505050505050565b61182d6123ab565b80426118399190613d48565b600c8190555050565b600c5481565b600b805461185590613934565b80601f016020809104026020016040519081016040528092919081815260200182805461188190613934565b80156118ce5780601f106118a3576101008083540402835291602001916118ce565b820191906000526020600020905b8154815290600101906020018083116118b157829003601f168201915b505050505081565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6119726123ab565b80600760006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6119be6123ab565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611a2d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a24906141bc565b60405180910390fd5b611a368161251d565b50565b600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b611a6a838383611ce4565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16148015611ad35750600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614155b15611cdf57600073ffffffffffffffffffffffffffffffffffffffff16600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1603611b69576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b6090614228565b60405180910390fd5b6000600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231846040518263ffffffff1660e01b8152600401611bc691906131d3565b602060405180830381865afa158015611be3573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611c07919061425d565b90506001811015611c4d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c44906142d6565b60405180910390fd5b600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166379cc67908460016040518363ffffffff1660e01b8152600401611cab92919061433b565b600060405180830381600087803b158015611cc557600080fd5b505af1158015611cd9573d6000803e3d6000fd5b50505050505b505050565b505050565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480611db457507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80611dc45750611dc38261282a565b5b9050919050565b611dd481612894565b611e13576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e0a90613e32565b60405180910390fd5b50565b600033905090565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16611e9183611039565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611f46576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f3d906143b0565b60405180910390fd5b611f4f81612894565b15611f8f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f869061441c565b60405180910390fd5b611f9b60008383612900565b6001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611feb9190613d48565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46120ac60008383612ac9565b5050565b6000806120bc83611039565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614806120fe57506120fd81856118d6565b5b8061213c57508373ffffffffffffffffffffffffffffffffffffffff166121248461096c565b73ffffffffffffffffffffffffffffffffffffffff16145b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff1661216582611039565b73ffffffffffffffffffffffffffffffffffffffff16146121bb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121b2906144ae565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff160361222a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161222190614540565b60405180910390fd5b612235838383612900565b612240600082611e1e565b6001600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546122909190614560565b925050819055506001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546122e79190613d48565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46123a6838383612ac9565b505050565b6123b3611e16565b73ffffffffffffffffffffffffffffffffffffffff166123d1611243565b73ffffffffffffffffffffffffffffffffffffffff1614612427576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161241e906145e0565b60405180910390fd5b565b8047101561246c576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124639061464c565b60405180910390fd5b60008273ffffffffffffffffffffffffffffffffffffffff16826040516124929061469d565b60006040518083038185875af1925050503d80600081146124cf576040519150601f19603f3d011682016040523d82523d6000602084013e6124d4565b606091505b5050905080612518576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161250f90614724565b60405180910390fd5b505050565b6000600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600660006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603612651576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161264890614790565b60405180910390fd5b80600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516127429190613059565b60405180910390a3505050565b61275a848484612145565b61276684848484612ace565b6127a5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161279c90614822565b60405180910390fd5b50505050565b60606127b682611dcb565b60006127c0612c55565b905060008151116127e0576040518060200160405280600081525061280b565b806127ea84612ce7565b6040516020016127fb929190614842565b6040516020818303038152906040525b915050919050565b6000826128208584612e47565b1490509392505050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b60008073ffffffffffffffffffffffffffffffffffffffff166002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b6001600481111561291457612913613773565b5b601060009054906101000a900460ff16600481111561293657612935613773565b5b03612976576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161296d906148b2565b60405180910390fd5b6003600481111561298a57612989613773565b5b601060009054906101000a900460ff1660048111156129ac576129ab613773565b5b036129c1576129bc838383611a5f565b612ac4565b6004808111156129d4576129d3613773565b5b601060009054906101000a900460ff1660048111156129f6576129f5613773565b5b1480612a35575060006004811115612a1157612a10613773565b5b601060009054906101000a900460ff166004811115612a3357612a32613773565b5b145b80612a73575060026004811115612a4f57612a4e613773565b5b601060009054906101000a900460ff166004811115612a7157612a70613773565b5b145b15612a8857612a83838383611ce4565b612ac3565b6040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612aba9061491e565b60405180910390fd5b5b505050565b505050565b6000612aef8473ffffffffffffffffffffffffffffffffffffffff16612e9d565b15612c48578373ffffffffffffffffffffffffffffffffffffffff1663150b7a02612b18611e16565b8786866040518563ffffffff1660e01b8152600401612b3a9493929190614993565b6020604051808303816000875af1925050508015612b7657506040513d601f19601f82011682018060405250810190612b7391906149f4565b60015b612bf8573d8060008114612ba6576040519150601f19603f3d011682016040523d82523d6000602084013e612bab565b606091505b506000815103612bf0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612be790614822565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050612c4d565b600190505b949350505050565b6060600a8054612c6490613934565b80601f0160208091040260200160405190810160405280929190818152602001828054612c9090613934565b8015612cdd5780601f10612cb257610100808354040283529160200191612cdd565b820191906000526020600020905b815481529060010190602001808311612cc057829003601f168201915b5050505050905090565b606060008203612d2e576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050612e42565b600082905060005b60008214612d60578080612d4990613d9e565b915050600a82612d599190613cab565b9150612d36565b60008167ffffffffffffffff811115612d7c57612d7b613382565b5b6040519080825280601f01601f191660200182016040528015612dae5781602001600182028036833780820191505090505b5090505b60008514612e3b57600182612dc79190614560565b9150600a85612dd69190614a21565b6030612de29190613d48565b60f81b818381518110612df857612df7614a52565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a85612e349190613cab565b9450612db2565b8093505050505b919050565b60008082905060005b8451811015612e9257612e7d82868381518110612e7057612e6f614a52565b5b6020026020010151612ec0565b91508080612e8a90613d9e565b915050612e50565b508091505092915050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b6000818310612ed857612ed38284612eeb565b612ee3565b612ee28383612eeb565b5b905092915050565b600082600052816020526040600020905092915050565b828054612f0e90613934565b90600052602060002090601f016020900481019282612f305760008555612f77565b82601f10612f4957805160ff1916838001178555612f77565b82800160010185558215612f77579182015b82811115612f76578251825591602001919060010190612f5b565b5b509050612f849190612f88565b5090565b5b80821115612fa1576000816000905550600101612f89565b5090565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b612fee81612fb9565b8114612ff957600080fd5b50565b60008135905061300b81612fe5565b92915050565b60006020828403121561302757613026612faf565b5b600061303584828501612ffc565b91505092915050565b60008115159050919050565b6130538161303e565b82525050565b600060208201905061306e600083018461304a565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b838110156130ae578082015181840152602081019050613093565b838111156130bd576000848401525b50505050565b6000601f19601f8301169050919050565b60006130df82613074565b6130e9818561307f565b93506130f9818560208601613090565b613102816130c3565b840191505092915050565b6000602082019050818103600083015261312781846130d4565b905092915050565b6000819050919050565b6131428161312f565b811461314d57600080fd5b50565b60008135905061315f81613139565b92915050565b60006020828403121561317b5761317a612faf565b5b600061318984828501613150565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006131bd82613192565b9050919050565b6131cd816131b2565b82525050565b60006020820190506131e860008301846131c4565b92915050565b6131f7816131b2565b811461320257600080fd5b50565b600081359050613214816131ee565b92915050565b6000806040838503121561323157613230612faf565b5b600061323f85828601613205565b925050602061325085828601613150565b9150509250929050565b6132638161312f565b82525050565b600060208201905061327e600083018461325a565b92915050565b60008060006060848603121561329d5761329c612faf565b5b60006132ab86828701613205565b93505060206132bc86828701613205565b92505060406132cd86828701613150565b9150509250925092565b600080604083850312156132ee576132ed612faf565b5b60006132fc85828601613150565b925050602061330d85828601613150565b9150509250929050565b600060408201905061332c60008301856131c4565b613339602083018461325a565b9392505050565b600061ffff82169050919050565b61335781613340565b82525050565b6000602082019050613372600083018461334e565b92915050565b600080fd5b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6133ba826130c3565b810181811067ffffffffffffffff821117156133d9576133d8613382565b5b80604052505050565b60006133ec612fa5565b90506133f882826133b1565b919050565b600067ffffffffffffffff82111561341857613417613382565b5b613421826130c3565b9050602081019050919050565b82818337600083830152505050565b600061345061344b846133fd565b6133e2565b90508281526020810184848401111561346c5761346b61337d565b5b61347784828561342e565b509392505050565b600082601f83011261349457613493613378565b5b81356134a484826020860161343d565b91505092915050565b6000602082840312156134c3576134c2612faf565b5b600082013567ffffffffffffffff8111156134e1576134e0612fb4565b5b6134ed8482850161347f565b91505092915050565b60006020828403121561350c5761350b612faf565b5b600061351a84828501613205565b91505092915050565b61352c8161303e565b811461353757600080fd5b50565b60008135905061354981613523565b92915050565b6000806040838503121561356657613565612faf565b5b600061357485828601613205565b92505060206135858582860161353a565b9150509250929050565b600063ffffffff82169050919050565b6135a88161358f565b82525050565b60006020820190506135c3600083018461359f565b92915050565b600067ffffffffffffffff8211156135e4576135e3613382565b5b6135ed826130c3565b9050602081019050919050565b600061360d613608846135c9565b6133e2565b9050828152602081018484840111156136295761362861337d565b5b61363484828561342e565b509392505050565b600082601f83011261365157613650613378565b5b81356136618482602086016135fa565b91505092915050565b6000806000806080858703121561368457613683612faf565b5b600061369287828801613205565b94505060206136a387828801613205565b93505060406136b487828801613150565b925050606085013567ffffffffffffffff8111156136d5576136d4612fb4565b5b6136e18782880161363c565b91505092959194509250565b600581106136fa57600080fd5b50565b60008135905061370c816136ed565b92915050565b60006020828403121561372857613727612faf565b5b6000613736848285016136fd565b91505092915050565b6000819050919050565b6137528161373f565b82525050565b600060208201905061376d6000830184613749565b92915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b600581106137b3576137b2613773565b5b50565b60008190506137c4826137a2565b919050565b60006137d4826137b6565b9050919050565b6137e4816137c9565b82525050565b60006020820190506137ff60008301846137db565b92915050565b600080fd5b600080fd5b60008083601f84011261382557613824613378565b5b8235905067ffffffffffffffff81111561384257613841613805565b5b60208301915083602082028301111561385e5761385d61380a565b5b9250929050565b60008060006040848603121561387e5761387d612faf565b5b600061388c86828701613150565b935050602084013567ffffffffffffffff8111156138ad576138ac612fb4565b5b6138b98682870161380f565b92509250509250925092565b600080604083850312156138dc576138db612faf565b5b60006138ea85828601613205565b92505060206138fb85828601613205565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168061394c57607f821691505b60208210810361395f5761395e613905565b5b50919050565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b60006139c160218361307f565b91506139cc82613965565b604082019050919050565b600060208201905081810360008301526139f0816139b4565b9050919050565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60008201527f6b656e206f776e6572206e6f7220617070726f76656420666f7220616c6c0000602082015250565b6000613a53603e8361307f565b9150613a5e826139f7565b604082019050919050565b60006020820190508181036000830152613a8281613a46565b9050919050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b6000613abf601f8361307f565b9150613aca82613a89565b602082019050919050565b60006020820190508181036000830152613aee81613ab2565b9050919050565b7f466a6f72642064726f70206973206e6f74206163746976650000000000000000600082015250565b6000613b2b60188361307f565b9150613b3682613af5565b602082019050919050565b60006020820190508181036000830152613b5a81613b1e565b9050919050565b7f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560008201527f72206e6f7220617070726f766564000000000000000000000000000000000000602082015250565b6000613bbd602e8361307f565b9150613bc882613b61565b604082019050919050565b60006020820190508181036000830152613bec81613bb0565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000613c2d8261312f565b9150613c388361312f565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615613c7157613c70613bf3565b5b828202905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000613cb68261312f565b9150613cc18361312f565b925082613cd157613cd0613c7c565b5b828204905092915050565b7f5075626c6963204d696e742069732064697361626c6564000000000000000000600082015250565b6000613d1260178361307f565b9150613d1d82613cdc565b602082019050919050565b60006020820190508181036000830152613d4181613d05565b9050919050565b6000613d538261312f565b9150613d5e8361312f565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115613d9357613d92613bf3565b5b828201905092915050565b6000613da98261312f565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203613ddb57613dda613bf3565b5b600182019050919050565b7f4552433732313a20696e76616c696420746f6b656e2049440000000000000000600082015250565b6000613e1c60188361307f565b9150613e2782613de6565b602082019050919050565b60006020820190508181036000830152613e4b81613e0f565b9050919050565b7f4552433732313a2061646472657373207a65726f206973206e6f74206120766160008201527f6c6964206f776e65720000000000000000000000000000000000000000000000602082015250565b6000613eae60298361307f565b9150613eb982613e52565b604082019050919050565b60006020820190508181036000830152613edd81613ea1565b9050919050565b600081905092915050565b6000613efa82613074565b613f048185613ee4565b9350613f14818560208601613090565b80840191505092915050565b6000613f2c8284613eef565b915081905092915050565b60008160601b9050919050565b6000613f4f82613f37565b9050919050565b6000613f6182613f44565b9050919050565b613f79613f74826131b2565b613f56565b82525050565b6000613f8b8284613f68565b60148201915081905092915050565b7f41646472657373206973206e6f742077686974656c6973746564000000000000600082015250565b6000613fd0601a8361307f565b9150613fdb82613f9a565b602082019050919050565b60006020820190508181036000830152613fff81613fc3565b9050919050565b7f57686974656c697374204d696e742069732064697361626c6564000000000000600082015250565b600061403c601a8361307f565b915061404782614006565b602082019050919050565b6000602082019050818103600083015261406b8161402f565b9050919050565b7f77686974656c697374206d696e74202065786365656465640000000000000000600082015250565b60006140a860188361307f565b91506140b382614072565b602082019050919050565b600060208201905081810360008301526140d78161409b565b9050919050565b7f4d6178206d696e74206578636565646564000000000000000000000000000000600082015250565b600061411460118361307f565b915061411f826140de565b602082019050919050565b6000602082019050818103600083015261414381614107565b9050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b60006141a660268361307f565b91506141b18261414a565b604082019050919050565b600060208201905081810360008301526141d581614199565b9050919050565b7f6572633230546f6b656e4164647265737320756e646566696e65640000000000600082015250565b6000614212601b8361307f565b915061421d826141dc565b602082019050919050565b6000602082019050818103600083015261424181614205565b9050919050565b60008151905061425781613139565b92915050565b60006020828403121561427357614272612faf565b5b600061428184828501614248565b91505092915050565b7f7573657220646f6573206e6f7420686f6c64206120746f6b656e000000000000600082015250565b60006142c0601a8361307f565b91506142cb8261428a565b602082019050919050565b600060208201905081810360008301526142ef816142b3565b9050919050565b6000819050919050565b6000819050919050565b600061432561432061431b846142f6565b614300565b61312f565b9050919050565b6143358161430a565b82525050565b600060408201905061435060008301856131c4565b61435d602083018461432c565b9392505050565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b600061439a60208361307f565b91506143a582614364565b602082019050919050565b600060208201905081810360008301526143c98161438d565b9050919050565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b6000614406601c8361307f565b9150614411826143d0565b602082019050919050565b60006020820190508181036000830152614435816143f9565b9050919050565b7f4552433732313a207472616e736665722066726f6d20696e636f72726563742060008201527f6f776e6572000000000000000000000000000000000000000000000000000000602082015250565b600061449860258361307f565b91506144a38261443c565b604082019050919050565b600060208201905081810360008301526144c78161448b565b9050919050565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b600061452a60248361307f565b9150614535826144ce565b604082019050919050565b600060208201905081810360008301526145598161451d565b9050919050565b600061456b8261312f565b91506145768361312f565b92508282101561458957614588613bf3565b5b828203905092915050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b60006145ca60208361307f565b91506145d582614594565b602082019050919050565b600060208201905081810360008301526145f9816145bd565b9050919050565b7f416464726573733a20696e73756666696369656e742062616c616e6365000000600082015250565b6000614636601d8361307f565b915061464182614600565b602082019050919050565b6000602082019050818103600083015261466581614629565b9050919050565b600081905092915050565b50565b600061468760008361466c565b915061469282614677565b600082019050919050565b60006146a88261467a565b9150819050919050565b7f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260008201527f6563697069656e74206d61792068617665207265766572746564000000000000602082015250565b600061470e603a8361307f565b9150614719826146b2565b604082019050919050565b6000602082019050818103600083015261473d81614701565b9050919050565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b600061477a60198361307f565b915061478582614744565b602082019050919050565b600060208201905081810360008301526147a98161476d565b9050919050565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b600061480c60328361307f565b9150614817826147b0565b604082019050919050565b6000602082019050818103600083015261483b816147ff565b9050919050565b600061484e8285613eef565b915061485a8284613eef565b91508190509392505050565b7f4d696e74696e67206973206e6f74206163746976650000000000000000000000600082015250565b600061489c60158361307f565b91506148a782614866565b602082019050919050565b600060208201905081810360008301526148cb8161488f565b9050919050565b7f4d696e74696e67206572726f7200000000000000000000000000000000000000600082015250565b6000614908600d8361307f565b9150614913826148d2565b602082019050919050565b60006020820190508181036000830152614937816148fb565b9050919050565b600081519050919050565b600082825260208201905092915050565b60006149658261493e565b61496f8185614949565b935061497f818560208601613090565b614988816130c3565b840191505092915050565b60006080820190506149a860008301876131c4565b6149b560208301866131c4565b6149c2604083018561325a565b81810360608301526149d4818461495a565b905095945050505050565b6000815190506149ee81612fe5565b92915050565b600060208284031215614a0a57614a09612faf565b5b6000614a18848285016149df565b91505092915050565b6000614a2c8261312f565b9150614a378361312f565b925082614a4757614a46613c7c565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fdfea26469706673582212205194860421c4bab60fb11b39d4be0bb25a58387519212ed0b1510f3f0e5d0c0a64736f6c634300080e0033

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

0000000000000000000000000000000000000000000000000000000000000060c076b4518f2c28f03337c4d74af5263fffdc040a32c9080717a45ffde87033a600000000000000000000000000000000000000000000000000000000000000190000000000000000000000000000000000000000000000000000000000000036697066733a2f2f516d616737486768334332696759616a645946744c6745313332796a4567776a4164613478344842586a38744e762f00000000000000000000

-----Decoded View---------------
Arg [0] : customBaseURI_ (string): ipfs://Qmag7Hgh3C2igYajdYFtLgE132yjEgwjAda4x4HBXj8tNv/
Arg [1] : whiteListSaleMerkleRoot_ (bytes32): 0xc076b4518f2c28f03337c4d74af5263fffdc040a32c9080717a45ffde87033a6
Arg [2] : mintQtyToOwner (uint256): 25

-----Encoded View---------------
6 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000060
Arg [1] : c076b4518f2c28f03337c4d74af5263fffdc040a32c9080717a45ffde87033a6
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000019
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000036
Arg [4] : 697066733a2f2f516d616737486768334332696759616a645946744c67453133
Arg [5] : 32796a4567776a4164613478344842586a38744e762f00000000000000000000


Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

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

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading
[ Download: CSV Export  ]
[ Download: CSV Export  ]

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