ETH Price: $2,286.62 (+0.43%)

Contract

0xe3B399AAb015D2C0D787ECAd40410D88f4f4cA50
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Safe Transfer Fr...206089002024-08-25 23:30:4713 days ago1724628647IN
Fringe Drifters: FD Token
0 ETH0.000096850.97238702
Transfer From205482892024-08-17 12:17:1121 days ago1723897031IN
Fringe Drifters: FD Token
0 ETH0.00020381.79604177
Set Approval For...205151702024-08-12 21:17:5926 days ago1723497479IN
Fringe Drifters: FD Token
0 ETH0.000211444.5271036
Set Approval For...203062562024-07-14 17:32:1155 days ago1720978331IN
Fringe Drifters: FD Token
0 ETH0.000234895.0290395
Safe Transfer Fr...202720632024-07-09 22:57:4760 days ago1720565867IN
Fringe Drifters: FD Token
0 ETH0.000382083.85258788
Set Approval For...202578252024-07-07 23:10:1162 days ago1720393811IN
Fringe Drifters: FD Token
0 ETH0.000111772.3932036
Safe Transfer Fr...202576712024-07-07 22:39:1162 days ago1720391951IN
Fringe Drifters: FD Token
0 ETH0.000124291.31495161
Safe Transfer Fr...201583362024-06-24 1:42:2376 days ago1719193343IN
Fringe Drifters: FD Token
0 ETH0.000223192.24082331
Safe Transfer Fr...201439582024-06-22 1:26:1178 days ago1719019571IN
Fringe Drifters: FD Token
0 ETH0.000304292.63158378
Set Approval For...200923302024-06-14 20:06:5985 days ago1718395619IN
Fringe Drifters: FD Token
0 ETH0.000398158.50924527
Set Approval For...200898062024-06-14 11:40:2385 days ago1718365223IN
Fringe Drifters: FD Token
0 ETH0.000325936.97833078
Safe Transfer Fr...200887042024-06-14 7:58:3585 days ago1718351915IN
Fringe Drifters: FD Token
0 ETH0.0010110110.56708036
Safe Transfer Fr...200481272024-06-08 15:52:4791 days ago1717861967IN
Fringe Drifters: FD Token
0 ETH0.000837297.2441063
Safe Transfer Fr...200021762024-06-02 5:54:2398 days ago1717307663IN
Fringe Drifters: FD Token
0 ETH0.00022364.55330966
Set Approval For...199981102024-06-01 16:17:2398 days ago1717258643IN
Fringe Drifters: FD Token
0 ETH0.0005110510.94178865
Set Approval For...199173792024-05-21 9:26:23109 days ago1716283583IN
Fringe Drifters: FD Token
0 ETH0.000348967.47127586
Set Approval For...198924532024-05-17 21:45:23113 days ago1715982323IN
Fringe Drifters: FD Token
0 ETH0.000138892.9737572
Safe Transfer Fr...198071602024-05-05 23:25:59125 days ago1714951559IN
Fringe Drifters: FD Token
0 ETH0.000548884.25861031
Set Approval For...197265282024-04-24 16:49:47136 days ago1713977387IN
Fringe Drifters: FD Token
0 ETH0.0007967617.0587233
Set Approval For...196358252024-04-12 0:03:11149 days ago1712880191IN
Fringe Drifters: FD Token
0 ETH0.0005585111.95783701
Set Approval For...196358252024-04-12 0:03:11149 days ago1712880191IN
Fringe Drifters: FD Token
0 ETH0.0005595111.95783701
Set Approval For...196321712024-04-11 11:45:59149 days ago1712835959IN
Fringe Drifters: FD Token
0 ETH0.0008974519.2146001
Set Approval For...195948182024-04-06 6:12:47155 days ago1712383967IN
Fringe Drifters: FD Token
0 ETH0.000505210.79703268
Safe Transfer Fr...194670162024-03-19 6:29:23173 days ago1710829763IN
Fringe Drifters: FD Token
0 ETH0.0023667420.3547146
Set Approval For...194409372024-03-15 14:27:11176 days ago1710512831IN
Fringe Drifters: FD Token
0 ETH0.0019504441.75923412
View all transactions

Latest 2 internal transactions

Advanced mode:
Parent Transaction Hash Block From To
161490342022-12-09 18:48:35638 days ago1670611715
Fringe Drifters: FD Token
116.935 ETH
151750732022-07-19 19:51:01781 days ago1658260261
Fringe Drifters: FD Token
128.59 ETH
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
FringeDriftersContract

Compiler Version
v0.8.4+commit.c7e474f2

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion
File 1 of 12 : DriftersMain.sol
//SPDX-License-Identifier: MIT
//Fringe Drifter Main Contract Created by Swifty.eth

//legal: https://fringedrifters.com/terms

pragma solidity ^0.8.0;

import "contracts/ERC721SW.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol";



interface IERC20 {
    function transfer(address _to, uint256 _amount) external returns (bool);
    function balanceOf(address _from) external returns (uint256);
}

//errors
error NotWithdrawAddress();
error FailedToWithdraw();
error NotMinting();
error NotEnoughEth();
error PastBoundsOfBatchLimit();
error PastSupply();
error AlreadyMinted();
error AuthenticationFailed();
error DoesNotExist();

contract FringeDriftersContract is ERC721SW, Ownable {


    //library integration.
    using ECDSA for bytes32;

    //modifiers.
    modifier withdrawAddressCheck() {
        if (msg.sender != withdrawAccount) revert NotWithdrawAddress();
        _;
    }
    


    //initialization of globals.
    uint256 public FD_PRICE = 0.08 ether;
    uint256 public MAXBATCH = 20;
    string internal _tokenBaseURI;
    string public CURRENTPHASE;
    address private signerAddress;
    
    //storage of all previous transaction IDs to prevent against forgery attacks.
    mapping(string => bool) public usedTransactions;

    //withdraw account.
    address private withdrawAccount = 0x8ff8657929a02c0E15aCE37aAC76f47d1F5fbfC6; //needs to be changed for final.

    //stores information on each colour world, where it starts and ends as well how far into the colour world it is.
    struct Phase {
        uint64 startingPoint;
        uint64 endPoint;
        uint64 currentCount;
    }

    bool public isMinting = false;

    //stores a dictionary for colour world name to its phase storage.
    mapping(string => Phase) public AllPhases;

    //constructor, which also sets signer address as well as tokenbaseURI.
    constructor( 
        string memory baseURI, address startingSignerAddress
    ) ERC721SW("Fringe Drifters", "FD") {
        _tokenBaseURI = baseURI;
        signerAddress = startingSignerAddress;
    }
    

    //change functions.
    function adjustPhases(string calldata PhaseName, uint64 startPoint, uint64 endPoint) external onlyOwner {
        AllPhases[PhaseName].startingPoint = startPoint;
        AllPhases[PhaseName].endPoint = endPoint;

        if (endPoint > _currentIndex) { //sets upper bound _currentIndex to the highest number currently needed.
            _currentIndex = endPoint; 
        }
    }

    //changes current phase which everyone mints on.
    function changePhase(string calldata newPhase) external onlyOwner {
        CURRENTPHASE = newPhase;
    }

    //gets supply for specific phase
    function getSupplyForPhase(string calldata PhaseName) external view returns (uint64){
        return AllPhases[PhaseName].currentCount;
    }

    //adjusts price of drifter.
    function adjustPrice(uint256 newPrice) external onlyOwner {
        FD_PRICE = newPrice;
    }

    //adjusts the maximum amount of allowed drifters to be minted at once (capped to 20 for gas reasons.)
    function adjustMaxBatch(uint256 maxBatch) external onlyOwner {
        MAXBATCH = maxBatch;
    }

    //toggles the mint.
    function toggleMint() external onlyOwner {
        isMinting = !isMinting;
    }


    //sets a new signer incase of worst case scenario.
    function adjustSigner(address newSigner) external onlyOwner {
        signerAddress = newSigner;
    }


    //gifts drifters in bulk, with specified colour world.
    function gift(string calldata phase, address[] calldata receivers) external onlyOwner {
        //gets selected colour world (or phase) information.
        Phase storage CurrentPhaseInfo = AllPhases[phase];

        uint256 startingIndex = CurrentPhaseInfo.startingPoint+CurrentPhaseInfo.currentCount; //gets starting index to start to mint from.

        if (startingIndex + receivers.length > CurrentPhaseInfo.endPoint) revert PastSupply(); //checks if it is past supply of colour world.

        
        for (uint256 i = 0; i < receivers.length; i++) {
            _safeMint(receivers[i], 1, startingIndex+i);
        }//bulk mints.

        //increments colour world counter.
        CurrentPhaseInfo.currentCount += (uint64)(receivers.length); //typecast to uint64

    }

    

    function totalBalance() external view returns (uint256) { //gets total balance in account.
        return payable(address(this)).balance;
    }

    //changes withdraw address if needed.
    function changeWithdrawer(address newAddress) external withdrawAddressCheck() {
        withdrawAccount = newAddress;
    }

    //withdraws all eth funds.
    function withdrawFunds() external withdrawAddressCheck {
        (bool success, bytes memory _data) = payable(msg.sender).call{value: this.totalBalance()}("");
        if (!success) revert FailedToWithdraw();
    }

    //withdraws ERC20 tokens.
    function withdrawERC20(IERC20 erc20Token) external withdrawAddressCheck {
        erc20Token.transfer(msg.sender, erc20Token.balanceOf(address(this)));
    }

    //sets new baseURI
    function setBaseURI(string calldata URI) external onlyOwner {
        _tokenBaseURI = URI;
    }

    //tokenURI handler.
    function tokenURI(uint256 tokenId)
        public
        view
        override(ERC721SW)
        returns (string memory)
    {
        if (!_exists(tokenId)) revert DoesNotExist();
        
        return
            string(
                abi.encodePacked(
                    _tokenBaseURI,
                    Strings.toString(tokenId),
                    string(".json")
                )
            );
    }

    //verifies the signature matches.
    function verifyAddressSigner(bytes32 hash, bytes memory signature) private view returns(bool) {
        return signerAddress == hash.toEthSignedMessageHash().recover(signature);
    }

    //hashes transaction for comparison.
    function hashTransaction(address sender, string memory transactionID, uint256 tokenQuantity) private pure returns(bytes32) {
          bytes32 hash = keccak256(abi.encodePacked(sender, transactionID, tokenQuantity));
          return hash;
    }


    //main mint function.
    function FringeMint(
        bytes32 hash, bytes memory signature, string memory transactionID, uint256 qty
    ) external payable {
        if (!isMinting) revert NotMinting(); //ensures minting is active.


        if (!verifyAddressSigner(hash, signature)) revert AuthenticationFailed(); //webserver does the checks to see wether or not you are allowed to mint, this includes the checks for the various phases.
        if (usedTransactions[transactionID]) revert AuthenticationFailed(); //checks if transaction has already been used.
        if (!(hashTransaction(msg.sender, transactionID, qty) == hash)) revert AuthenticationFailed(); //checks if the hash matches up.
        if (msg.value != (FD_PRICE * qty)) revert NotEnoughEth(); //checks if enough eth.
        if (qty > MAXBATCH) revert PastBoundsOfBatchLimit(); //ensures it doesnt go over max allowed batch.

        Phase storage CurrentPhaseInfo = AllPhases[CURRENTPHASE]; //gets current phase information for use.
        uint256 currentIndexForPhase = CurrentPhaseInfo.startingPoint+CurrentPhaseInfo.currentCount; //gets starting index to mint from.



        if ((currentIndexForPhase + qty) > CurrentPhaseInfo.endPoint) revert PastSupply(); //ensures that there is enough supply to mint for this colour world.

        _safeMint(msg.sender, qty, currentIndexForPhase); //safely mints for that allowed quantity.
        CurrentPhaseInfo.currentCount += (uint64)(qty); //increments phase amount.

        usedTransactions[transactionID] = true; //uses transaction id to prevent it from being used again.
    }
}

File 2 of 12 : ERC721SW.sol
// SPDX-License-Identifier: MIT
// Based on ERC721-A, Created by Swifty.eth

pragma solidity ^0.8.4;

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


error ApprovalCallerNotOwnerNorApproved();
error ApprovalQueryForNonexistentToken();
error ApproveToCaller();
error ApprovalToCurrentOwner();
error BalanceQueryForZeroAddress();
error MintToZeroAddress();
error MintZeroQuantity();
error ExceedsAllowedBatch();
error OwnerQueryForNonexistentToken();
error TransferCallerNotOwnerNorApproved();
error TransferFromIncorrectOwner();
error TransferToNonERC721ReceiverImplementer();
error TransferToZeroAddress();
error URIQueryForNonexistentToken();
error ExceedsCurrentSupply();
error IndexExceedsOwnerBounds();

/**
 * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
 * the Metadata extension. Built to optimize for lower gas during batch mints and non serialized minting such as for migration/non sequence minting.
 *
 * Assumes that an owner cannot have more than 2**64 - 1 (max value of uint64) of supply.
 *
 * Assumes that the maximum token id cannot exceed 2**256 - 1 (max value of uint256).
 */
contract ERC721SW is Context, ERC165, IERC721, IERC721Metadata {
    using Address for address;
    using Strings for uint256;

    // Compiler will pack this into a single 256bit word.
    struct TokenOwnership {
        // The address of the owner.
        address addr;
        //used to figure out gaps with non sequened minting...
        uint64 quantity; //uint64 should suffice as projects using this will not have a single user have a supply greater than 2**64-1
    }

    // Compiler will pack this into a single 256bit word.
    struct AddressData {
        // Realistically, 2**64-1 is more than enough.
        uint64 balance;
        // Keeps track of mint count with minimal overhead for tokenomics.
        uint64 numberMinted;
    }

    // The tokenId of the next token to be minted.
    uint256 internal _currentIndex;

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

    uint256 internal maxBatch = 20;

    // Mapping from token ID to ownership details
    // An empty struct value does not necessarily mean the token is unowned. See _ownershipOf implementation for details.
    mapping(uint256 => TokenOwnership) internal _ownerships;

    // Mapping owner address to address data
    mapping(address => AddressData) private _addressData;

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

    constructor(string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
        _currentIndex = _startTokenId();
    }

    /**
     * To change the starting tokenId, please override this function.
     */
    function _startTokenId() internal view virtual returns (uint256) {
        return 1;
    }

    function totalSupply() public view returns (uint256) {
        // Counter underflow is impossible as _burnCounter cannot be incremented
        // more than _currentIndex - _startTokenId() times
        unchecked {
            return _currentIndex - _startTokenId();
        }
    }
    /**
     * Returns the total amount of tokens minted in the contract.
     */
    function _totalMinted() internal view returns (uint256) {
        // Counter underflow is impossible as _currentIndex does not decrement,
        // and it is initialized to _startTokenId()
        unchecked {
            return _currentIndex - _startTokenId();
        }
    }

    /**
     * @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 override returns (uint256) {
        if (owner == address(0)) revert BalanceQueryForZeroAddress();
        return uint256(_addressData[owner].balance);
    }

    /**
     * Returns the number of tokens minted by `owner`.
     */
    function _numberMinted(address owner) internal view returns (uint256) {
        return uint256(_addressData[owner].numberMinted);
    }


    function tokenByIndex(uint256 index) public view returns (uint256) {
        if (index > totalSupply()) revert ExceedsCurrentSupply();
        return index;
    }

    /**
    * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}.
    * This read function is O(collectionSize). If calling from a separate contract, be sure to test gas first.
    * It may also degrade with extremely large collection sizes (e.g >> 10000), test for your use case.
    */
    function tokenOfOwnerByIndex(address owner, uint256 index)
        public
        view
        returns (uint256)
    {
        if (index > balanceOf(owner)) revert IndexExceedsOwnerBounds();
        uint256 numMintedSoFar = totalSupply();
        uint256 tokenIdsIdx = 0;
        address currOwnershipAddr = address(0);
        uint256 currentOwnershipSize = 0;
        uint256 currTokensPassed = 0;
        for (uint256 tokenId = 0; tokenId < numMintedSoFar; tokenId++) {
            TokenOwnership memory ownership = _ownerships[tokenId];
            if (ownership.addr != address(0)) {
                currOwnershipAddr = ownership.addr;
                currentOwnershipSize = ownership.quantity;
                currTokensPassed = 0;
            }
            if (currOwnershipAddr == owner && (currTokensPassed < currentOwnershipSize)) {
                if ((tokenIdsIdx == index)) {
                    return tokenId;
                }
                tokenIdsIdx++;
                currTokensPassed++;
            }
        }
    revert OwnerQueryForNonexistentToken();
  }


    /**
     * Gas spent here starts off proportional to the maximum mint batch size.
     * It gradually moves to O(1) as tokens get transferred around in the collection over time.
     */
    function _ownershipOf(uint256 tokenId)
        internal
        view
        returns (TokenOwnership memory)
    {
        uint256 curr = tokenId;
        uint256 skipped = 0;
        unchecked {
            if ((_startTokenId() <= curr) && (curr < _currentIndex)) {
                TokenOwnership memory ownership = _ownerships[curr];
                if (ownership.addr != address(0)) {
                    return ownership;
                }
                
                while (true) {
                    curr--;
                    skipped++;
                    ownership = _ownerships[curr];

                    if (
                        (ownership.addr != address(0)) &&
                        (ownership.quantity > (tokenId - curr))
                    ) {
                        return ownership;
                    } else if (_startTokenId() > curr) {
                        //incase it cant find to avoid infinite loop..
                        break;
                    } else if (skipped >= maxBatch) {
                        break;
                    }
                }
            }
        }
        revert OwnerQueryForNonexistentToken();
    }

    /**
     * @dev See {IERC721-ownerOf}.
     */
    function ownerOf(uint256 tokenId) public view override returns (address) {
        return _ownershipOf(tokenId).addr;
    }

    /**
     * @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)
    {
        if (!_exists(tokenId)) revert URIQueryForNonexistentToken();

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

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

    /**
     * @dev See {IERC721-approve}.
     */
    function approve(address to, uint256 tokenId) public override {
        address owner = ERC721SW.ownerOf(tokenId);
        if (to == owner) revert ApprovalToCurrentOwner();

        if (_msgSender() != owner && !isApprovedForAll(owner, _msgSender())) {
            revert ApprovalCallerNotOwnerNorApproved();
        }

        _approve(to, tokenId, owner);
    }

    /**
     * @dev See {IERC721-getApproved}.
     */
    function getApproved(uint256 tokenId)
        public
        view
        override
        returns (address)
    {
        if (!_exists(tokenId)) revert ApprovalQueryForNonexistentToken();

        return _tokenApprovals[tokenId];
    }

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

        _operatorApprovals[_msgSender()][operator] = approved;
        emit ApprovalForAll(_msgSender(), operator, approved);
    }

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

    /**
     * @dev See {IERC721-transferFrom}.
     */
    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public virtual override {
        _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 {
        _transfer(from, to, tokenId);
        if (
            to.isContract() &&
            !_checkContractOnERC721Received(from, to, tokenId, _data)
        ) {
            revert TransferToNonERC721ReceiverImplementer();
        }
    }

    /**
     * @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`),
     */
    function _exists(uint256 tokenId) internal view returns (bool) {
        uint256 curr = tokenId;

        unchecked {
            if ((_startTokenId() <= curr) && (curr < _currentIndex)) {
                TokenOwnership memory ownership = _ownerships[curr];
                if (ownership.addr != address(0)) {
                    return true;
                }
                uint256 TotalChecked = 0;
                while (true) {
                    curr--;
                    ownership = _ownerships[curr];
                    TotalChecked += 1;
                    if (
                        (ownership.addr != address(0)) &&
                        (ownership.quantity > (tokenId - curr))
                    ) {
                        return true;
                    } else if (_startTokenId() > curr) {
                        //incase it cant find to avoid infinite loop..
                        break;
                    } else if (TotalChecked > maxBatch) {
                        break;
                    }
                }
            }
        }
        return false;
    }

    function _safeMint(
        address to,
        uint256 quantity,
        uint256 startingAddress
    ) internal {
        _safeMint(to, quantity, "", startingAddress);
    }

    /**
     * @dev Safely mints `quantity` tokens and transfers them to `to`.
     *
     * Requirements:
     *
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called for each safe transfer.
     * - `quantity` must be greater than 0.
     *
     * Emits a {Transfer} event.
     */
    function _safeMint(
        address to,
        uint256 quantity,
        bytes memory _data,
        uint256 startingAddress
    ) internal {
        _mint(to, quantity, _data, true, startingAddress);
    }

    /**
     * @dev Mints `quantity` tokens and transfers them to `to`.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - `quantity` must be greater than 0.
     *
     * Emits a {Transfer} event.
     */
    function _mint(
        address to,
        uint256 quantity,
        bytes memory _data,
        bool safe,
        uint256 startingAddress
    ) internal {

        uint256 startTokenId = startingAddress;
        if (to == address(0)) revert MintToZeroAddress();
        if (quantity == 0) revert MintZeroQuantity();
        if (quantity > maxBatch) revert ExceedsAllowedBatch();
        _beforeTokenTransfers(address(0), to, startTokenId, quantity);

        // Overflows are incredibly unrealistic.
        // balance or numberMinted overflow if current value of either + quantity > 1.8e19 (2**64) - 1
        // updatedIndex overflows if _currentIndex + quantity > 1.2e77 (2**256) - 1
        unchecked {
            _addressData[to].balance += uint64(quantity);
            _addressData[to].numberMinted += uint64(quantity);

            _ownerships[startTokenId].addr = to;
            _ownerships[startTokenId].quantity = uint64(quantity);

            uint256 updatedIndex = startTokenId;
            uint256 end = updatedIndex + quantity;

            if (safe && to.isContract()) {
                do {
                    emit Transfer(address(0), to, updatedIndex);

                    if (_exists(updatedIndex)) revert();

                    if (
                        !_checkContractOnERC721Received(
                            address(0),
                            to,
                            updatedIndex++,
                            _data
                        )
                    ) {
                        revert TransferToNonERC721ReceiverImplementer();
                    }
                } while (updatedIndex != end);
            } else {
                do {
                    emit Transfer(address(0), to, updatedIndex++);
                } while (updatedIndex != end);
            }
            if (_currentIndex == startingAddress) {
                _currentIndex = updatedIndex;
            }
        }
        _afterTokenTransfers(address(0), to, startTokenId, quantity);
    }

    /**
     * @dev Transfers `tokenId` from `from` to `to`.
     *
     * 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
    ) private {
        TokenOwnership memory prevOwnership = _ownershipOf(tokenId);

        if (prevOwnership.addr != from) revert TransferFromIncorrectOwner();

        bool isApprovedOrOwner = (_msgSender() == from ||
            isApprovedForAll(from, _msgSender()) ||
            getApproved(tokenId) == _msgSender());

        if (!isApprovedOrOwner) revert TransferCallerNotOwnerNorApproved();
        if (to == address(0)) revert TransferToZeroAddress();

        _beforeTokenTransfers(from, to, tokenId, 1);

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

        // Underflow of the sender's balance is impossible because we check for
        // ownership above and the recipient's balance can't realistically overflow.
        // Counter overflow is incredibly unrealistic as tokenId would have to be 2**256.
        unchecked {
            _addressData[from].balance -= 1;
            _addressData[to].balance += 1;

            TokenOwnership storage currSlot = _ownerships[tokenId];

            uint64 qtyLeft = 0;

            if (currSlot.addr != address(0)) {
                qtyLeft = currSlot.quantity-1;
            }

            currSlot.addr = to;

            uint256 nextTokenId = tokenId + 1;
            


            uint256 curr = tokenId;

            uint256 amountSeen = 0;

            if ((_startTokenId() <= curr) && (curr < _currentIndex) && (qtyLeft == 0)) {
                while (true) {
                    curr--;
                    amountSeen++;
                    TokenOwnership storage ownership = _ownerships[curr];
                    if (
                        (ownership.addr != address(0)) &&
                        (ownership.quantity > (tokenId - curr)) &&
                        (ownership.quantity > 0)
                    ) {
                        uint128 amountLeft = (ownership.quantity-uint128(tokenId - curr))-1;
                        ownership.quantity -= 1;
                        qtyLeft = uint64(amountLeft);
                        break;
                    } else if (_startTokenId() > curr) {
                        //incase it cant find to avoid infinite loop..
                        break;
                    } else if (amountSeen > 16) {
                        break;
                    }
                }
            }

            TokenOwnership storage nextSlot = _ownerships[nextTokenId];
            if (nextSlot.addr == address(0) && (qtyLeft > 0)) {
                
                // This will suffice for checking _exists(nextTokenId),
                if (nextTokenId != _currentIndex+1) {
                    nextSlot.addr = from;
                    nextSlot.quantity = qtyLeft;
                }
            }
        }

        emit Transfer(from, to, tokenId);
        _afterTokenTransfers(from, to, tokenId, 1);
    }

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

    /**
     * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target 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 _checkContractOnERC721Received(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) private returns (bool) {
        try
            IERC721Receiver(to).onERC721Received(
                _msgSender(),
                from,
                tokenId,
                _data
            )
        returns (bytes4 retval) {
            return retval == IERC721Receiver(to).onERC721Received.selector;
        } catch (bytes memory reason) {
            if (reason.length == 0) {
                revert TransferToNonERC721ReceiverImplementer();
            } else {
                assembly {
                    revert(add(32, reason), mload(reason))
                }
            }
        }
    }

    /**
     * @dev Hook that is called before a set of serially-ordered token ids are about to be transferred. This includes minting.
     * And also called before burning one token.
     *
     * startTokenId - the first token id to be transferred
     * quantity - the amount to be transferred
     *
     * 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, `tokenId` will be burned by `from`.
     * - `from` and `to` are never both zero.
     */
    function _beforeTokenTransfers(
        address from,
        address to,
        uint256 startTokenId,
        uint256 quantity
    ) internal virtual {}

    /**
     * @dev Hook that is called after a set of serially-ordered token ids have been transferred. This includes
     * minting.
     * And also called after one token has been burned.
     *
     * startTokenId - the first token id to be transferred
     * quantity - the amount to be transferred
     *
     * Calling conditions:
     *
     * - When `from` and `to` are both non-zero, `from`'s `tokenId` has been
     * transferred to `to`.
     * - When `from` is zero, `tokenId` has been minted for `to`.
     * - When `to` is zero, `tokenId` has been burned by `from`.
     * - `from` and `to` are never both zero.
     */
    function _afterTokenTransfers(
        address from,
        address to,
        uint256 startTokenId,
        uint256 quantity
    ) internal virtual {}
}

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

import "../Strings.sol";

/**
 * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations.
 *
 * These functions can be used to verify that a message was signed by the holder
 * of the private keys of a given address.
 */
library ECDSA {
    enum RecoverError {
        NoError,
        InvalidSignature,
        InvalidSignatureLength,
        InvalidSignatureS,
        InvalidSignatureV
    }

    function _throwError(RecoverError error) private pure {
        if (error == RecoverError.NoError) {
            return; // no error: do nothing
        } else if (error == RecoverError.InvalidSignature) {
            revert("ECDSA: invalid signature");
        } else if (error == RecoverError.InvalidSignatureLength) {
            revert("ECDSA: invalid signature length");
        } else if (error == RecoverError.InvalidSignatureS) {
            revert("ECDSA: invalid signature 's' value");
        } else if (error == RecoverError.InvalidSignatureV) {
            revert("ECDSA: invalid signature 'v' value");
        }
    }

    /**
     * @dev Returns the address that signed a hashed message (`hash`) with
     * `signature` or error string. This address can then be used for verification purposes.
     *
     * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:
     * this function rejects them by requiring the `s` value to be in the lower
     * half order, and the `v` value to be either 27 or 28.
     *
     * IMPORTANT: `hash` _must_ be the result of a hash operation for the
     * verification to be secure: it is possible to craft signatures that
     * recover to arbitrary addresses for non-hashed data. A safe way to ensure
     * this is by receiving a hash of the original message (which may otherwise
     * be too long), and then calling {toEthSignedMessageHash} on it.
     *
     * Documentation for signature generation:
     * - with https://web3js.readthedocs.io/en/v1.3.4/web3-eth-accounts.html#sign[Web3.js]
     * - with https://docs.ethers.io/v5/api/signer/#Signer-signMessage[ethers]
     *
     * _Available since v4.3._
     */
    function tryRecover(bytes32 hash, bytes memory signature) internal pure returns (address, RecoverError) {
        // Check the signature length
        // - case 65: r,s,v signature (standard)
        // - case 64: r,vs signature (cf https://eips.ethereum.org/EIPS/eip-2098) _Available since v4.1._
        if (signature.length == 65) {
            bytes32 r;
            bytes32 s;
            uint8 v;
            // ecrecover takes the signature parameters, and the only way to get them
            // currently is to use assembly.
            assembly {
                r := mload(add(signature, 0x20))
                s := mload(add(signature, 0x40))
                v := byte(0, mload(add(signature, 0x60)))
            }
            return tryRecover(hash, v, r, s);
        } else if (signature.length == 64) {
            bytes32 r;
            bytes32 vs;
            // ecrecover takes the signature parameters, and the only way to get them
            // currently is to use assembly.
            assembly {
                r := mload(add(signature, 0x20))
                vs := mload(add(signature, 0x40))
            }
            return tryRecover(hash, r, vs);
        } else {
            return (address(0), RecoverError.InvalidSignatureLength);
        }
    }

    /**
     * @dev Returns the address that signed a hashed message (`hash`) with
     * `signature`. This address can then be used for verification purposes.
     *
     * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:
     * this function rejects them by requiring the `s` value to be in the lower
     * half order, and the `v` value to be either 27 or 28.
     *
     * IMPORTANT: `hash` _must_ be the result of a hash operation for the
     * verification to be secure: it is possible to craft signatures that
     * recover to arbitrary addresses for non-hashed data. A safe way to ensure
     * this is by receiving a hash of the original message (which may otherwise
     * be too long), and then calling {toEthSignedMessageHash} on it.
     */
    function recover(bytes32 hash, bytes memory signature) internal pure returns (address) {
        (address recovered, RecoverError error) = tryRecover(hash, signature);
        _throwError(error);
        return recovered;
    }

    /**
     * @dev Overload of {ECDSA-tryRecover} that receives the `r` and `vs` short-signature fields separately.
     *
     * See https://eips.ethereum.org/EIPS/eip-2098[EIP-2098 short signatures]
     *
     * _Available since v4.3._
     */
    function tryRecover(
        bytes32 hash,
        bytes32 r,
        bytes32 vs
    ) internal pure returns (address, RecoverError) {
        bytes32 s = vs & bytes32(0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff);
        uint8 v = uint8((uint256(vs) >> 255) + 27);
        return tryRecover(hash, v, r, s);
    }

    /**
     * @dev Overload of {ECDSA-recover} that receives the `r and `vs` short-signature fields separately.
     *
     * _Available since v4.2._
     */
    function recover(
        bytes32 hash,
        bytes32 r,
        bytes32 vs
    ) internal pure returns (address) {
        (address recovered, RecoverError error) = tryRecover(hash, r, vs);
        _throwError(error);
        return recovered;
    }

    /**
     * @dev Overload of {ECDSA-tryRecover} that receives the `v`,
     * `r` and `s` signature fields separately.
     *
     * _Available since v4.3._
     */
    function tryRecover(
        bytes32 hash,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) internal pure returns (address, RecoverError) {
        // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature
        // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines
        // the valid range for s in (301): 0 < s < secp256k1n ÷ 2 + 1, and for v in (302): v ∈ {27, 28}. Most
        // signatures from current libraries generate a unique signature with an s-value in the lower half order.
        //
        // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value
        // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or
        // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept
        // these malleable signatures as well.
        if (uint256(s) > 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0) {
            return (address(0), RecoverError.InvalidSignatureS);
        }
        if (v != 27 && v != 28) {
            return (address(0), RecoverError.InvalidSignatureV);
        }

        // If the signature is valid (and not malleable), return the signer address
        address signer = ecrecover(hash, v, r, s);
        if (signer == address(0)) {
            return (address(0), RecoverError.InvalidSignature);
        }

        return (signer, RecoverError.NoError);
    }

    /**
     * @dev Overload of {ECDSA-recover} that receives the `v`,
     * `r` and `s` signature fields separately.
     */
    function recover(
        bytes32 hash,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) internal pure returns (address) {
        (address recovered, RecoverError error) = tryRecover(hash, v, r, s);
        _throwError(error);
        return recovered;
    }

    /**
     * @dev Returns an Ethereum Signed Message, created from a `hash`. This
     * produces hash corresponding to the one signed with the
     * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`]
     * JSON-RPC method as part of EIP-191.
     *
     * See {recover}.
     */
    function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32) {
        // 32 is the length in bytes of hash,
        // enforced by the type signature above
        return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", hash));
    }

    /**
     * @dev Returns an Ethereum Signed Message, created from `s`. This
     * produces hash corresponding to the one signed with the
     * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`]
     * JSON-RPC method as part of EIP-191.
     *
     * See {recover}.
     */
    function toEthSignedMessageHash(bytes memory s) internal pure returns (bytes32) {
        return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n", Strings.toString(s.length), s));
    }

    /**
     * @dev Returns an Ethereum Signed Typed Data, created from a
     * `domainSeparator` and a `structHash`. This produces hash corresponding
     * to the one signed with the
     * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`]
     * JSON-RPC method as part of EIP-712.
     *
     * See {recover}.
     */
    function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32) {
        return keccak256(abi.encodePacked("\x19\x01", domainSeparator, structHash));
    }
}

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

File 7 of 12 : 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 8 of 12 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol)

pragma solidity ^0.8.1;

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

        return account.code.length > 0;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

File 9 of 12 : 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 10 of 12 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Strings.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

File 11 of 12 : 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 12 of 12 : 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);
}

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":"baseURI","type":"string"},{"internalType":"address","name":"startingSignerAddress","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"ApprovalToCurrentOwner","type":"error"},{"inputs":[],"name":"ApproveToCaller","type":"error"},{"inputs":[],"name":"AuthenticationFailed","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"DoesNotExist","type":"error"},{"inputs":[],"name":"ExceedsAllowedBatch","type":"error"},{"inputs":[],"name":"ExceedsCurrentSupply","type":"error"},{"inputs":[],"name":"FailedToWithdraw","type":"error"},{"inputs":[],"name":"IndexExceedsOwnerBounds","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"NotEnoughEth","type":"error"},{"inputs":[],"name":"NotMinting","type":"error"},{"inputs":[],"name":"NotWithdrawAddress","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"PastBoundsOfBatchLimit","type":"error"},{"inputs":[],"name":"PastSupply","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","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":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"string","name":"","type":"string"}],"name":"AllPhases","outputs":[{"internalType":"uint64","name":"startingPoint","type":"uint64"},{"internalType":"uint64","name":"endPoint","type":"uint64"},{"internalType":"uint64","name":"currentCount","type":"uint64"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"CURRENTPHASE","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"FD_PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"hash","type":"bytes32"},{"internalType":"bytes","name":"signature","type":"bytes"},{"internalType":"string","name":"transactionID","type":"string"},{"internalType":"uint256","name":"qty","type":"uint256"}],"name":"FringeMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"MAXBATCH","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"maxBatch","type":"uint256"}],"name":"adjustMaxBatch","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"PhaseName","type":"string"},{"internalType":"uint64","name":"startPoint","type":"uint64"},{"internalType":"uint64","name":"endPoint","type":"uint64"}],"name":"adjustPhases","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newPrice","type":"uint256"}],"name":"adjustPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newSigner","type":"address"}],"name":"adjustSigner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"newPhase","type":"string"}],"name":"changePhase","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newAddress","type":"address"}],"name":"changeWithdrawer","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"PhaseName","type":"string"}],"name":"getSupplyForPhase","outputs":[{"internalType":"uint64","name":"","type":"uint64"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"phase","type":"string"},{"internalType":"address[]","name":"receivers","type":"address[]"}],"name":"gift","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isMinting","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"URI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"toggleMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalBalance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"","type":"string"}],"name":"usedTransactions","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"erc20Token","type":"address"}],"name":"withdrawERC20","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawFunds","outputs":[],"stateMutability":"nonpayable","type":"function"}]

6080604052601460035567011c37937e0800006009556014600a55738ff8657929a02c0e15ace37aac76f47d1f5fbfc6600f60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506000600f60146101000a81548160ff0219169083151502179055503480156200009757600080fd5b5060405162005c4b38038062005c4b8339818101604052810190620000bd919062000405565b6040518060400160405280600f81526020017f4672696e676520447269667465727300000000000000000000000000000000008152506040518060400160405280600281526020017f4644000000000000000000000000000000000000000000000000000000000000815250816001908051906020019062000141929190620002cc565b5080600290805190602001906200015a929190620002cc565b506200016b620001f560201b60201c565b60008190555050506200019362000187620001fe60201b60201c565b6200020660201b60201c565b81600b9080519060200190620001ab929190620002cc565b5080600d60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050506200061d565b60006001905090565b600033905090565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b828054620002da9062000528565b90600052602060002090601f016020900481019282620002fe57600085556200034a565b82601f106200031957805160ff19168380011785556200034a565b828001600101855582156200034a579182015b82811115620003495782518255916020019190600101906200032c565b5b5090506200035991906200035d565b5090565b5b80821115620003785760008160009055506001016200035e565b5090565b6000620003936200038d8462000488565b6200045f565b905082815260208101848484011115620003ac57600080fd5b620003b9848285620004f2565b509392505050565b600081519050620003d28162000603565b92915050565b600082601f830112620003ea57600080fd5b8151620003fc8482602086016200037c565b91505092915050565b600080604083850312156200041957600080fd5b600083015167ffffffffffffffff8111156200043457600080fd5b6200044285828601620003d8565b92505060206200045585828601620003c1565b9150509250929050565b60006200046b6200047e565b90506200047982826200055e565b919050565b6000604051905090565b600067ffffffffffffffff821115620004a657620004a5620005c3565b5b620004b182620005f2565b9050602081019050919050565b6000620004cb82620004d2565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60005b8381101562000512578082015181840152602081019050620004f5565b8381111562000522576000848401525b50505050565b600060028204905060018216806200054157607f821691505b6020821081141562000558576200055762000594565b5b50919050565b6200056982620005f2565b810181811067ffffffffffffffff821117156200058b576200058a620005c3565b5b80604052505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000601f19601f8301169050919050565b6200060e81620004be565b81146200061a57600080fd5b50565b61561e806200062d6000396000f3fe6080604052600436106102305760003560e01c80636e8c38e41161012e578063a868e65b116100ab578063df04c26c1161006f578063df04c26c1461082c578063e985e9c514610869578063f2fde38b146108a6578063f4f3b200146108cf578063ffeac44f146108f857610230565b8063a868e65b1461075b578063ad7a672f14610784578063b88d4fde146107af578063c87b56dd146107d8578063d3dd5fe01461081557610230565b80638da5cb5b116100f25780638da5cb5b1461069557806391e1a095146106c057806395d89b41146106dc57806396a62d3614610707578063a22cb4651461073257610230565b80636e8c38e4146105c45780636f174b14146105ef57806370a0823114610618578063715018a61461065557806372bf079e1461066c57610230565b80632cb9cfc5116101bc57806342842e0e1161018057806342842e0e146104cf5780634f6ccce7146104f857806355ce6b6b1461053557806355f804b31461055e5780636352211e1461058757610230565b80632cb9cfc5146103d65780632f745c591461041557806339d90df1146104525780633c6bad971461047b57806340d9febc146104a457610230565b806318160ddd1161020357806318160ddd146103035780631cc4ad1f1461032e57806323b872dd1461036b57806324600fc3146103945780632a8092df146103ab57610230565b806301ffc9a71461023557806306fdde0314610272578063081812fc1461029d578063095ea7b3146102da575b600080fd5b34801561024157600080fd5b5061025c60048036038101906102579190614637565b610921565b6040516102699190614ce5565b60405180910390f35b34801561027e57600080fd5b50610287610a03565b6040516102949190614d45565b60405180910390f35b3480156102a957600080fd5b506102c460048036038101906102bf9190614819565b610a95565b6040516102d19190614c55565b60405180910390f35b3480156102e657600080fd5b5061030160048036038101906102fc919061453f565b610b11565b005b34801561030f57600080fd5b50610318610c1c565b6040516103259190614e27565b60405180910390f35b34801561033a57600080fd5b50610355600480360381019061035091906147d8565b610c2f565b6040516103629190614ce5565b60405180910390f35b34801561037757600080fd5b50610392600480360381019061038d9190614439565b610c65565b005b3480156103a057600080fd5b506103a9610c75565b005b3480156103b757600080fd5b506103c0610e22565b6040516103cd9190614ce5565b60405180910390f35b3480156103e257600080fd5b506103fd60048036038101906103f891906147d8565b610e35565b60405161040c93929190614e5d565b60405180910390f35b34801561042157600080fd5b5061043c6004803603810190610437919061453f565b610eb1565b6040516104499190614e27565b60405180910390f35b34801561045e57600080fd5b50610479600480360381019061047491906143d4565b6110d1565b005b34801561048757600080fd5b506104a2600480360381019061049d919061476c565b611191565b005b3480156104b057600080fd5b506104b96112cd565b6040516104c69190614d45565b60405180910390f35b3480156104db57600080fd5b506104f660048036038101906104f19190614439565b61135b565b005b34801561050457600080fd5b5061051f600480360381019061051a9190614819565b61137b565b60405161052c9190614e27565b60405180910390f35b34801561054157600080fd5b5061055c600480360381019061055791906146f7565b6113c6565b005b34801561056a57600080fd5b50610585600480360381019061058091906146b2565b6115f8565b005b34801561059357600080fd5b506105ae60048036038101906105a99190614819565b61168a565b6040516105bb9190614c55565b60405180910390f35b3480156105d057600080fd5b506105d96116a0565b6040516105e69190614e27565b60405180910390f35b3480156105fb57600080fd5b50610616600480360381019061061191906146b2565b6116a6565b005b34801561062457600080fd5b5061063f600480360381019061063a91906143d4565b611738565b60405161064c9190614e27565b60405180910390f35b34801561066157600080fd5b5061066a611808565b005b34801561067857600080fd5b50610693600480360381019061068e9190614819565b611890565b005b3480156106a157600080fd5b506106aa611916565b6040516106b79190614c55565b60405180910390f35b6106da60048036038101906106d591906145a4565b611940565b005b3480156106e857600080fd5b506106f1611c59565b6040516106fe9190614d45565b60405180910390f35b34801561071357600080fd5b5061071c611ceb565b6040516107299190614e27565b60405180910390f35b34801561073e57600080fd5b5061075960048036038101906107549190614503565b611cf1565b005b34801561076757600080fd5b50610782600480360381019061077d91906143d4565b611e69565b005b34801561079057600080fd5b50610799611f34565b6040516107a69190614e27565b60405180910390f35b3480156107bb57600080fd5b506107d660048036038101906107d19190614488565b611f53565b005b3480156107e457600080fd5b506107ff60048036038101906107fa9190614819565b611fcf565b60405161080c9190614d45565b60405180910390f35b34801561082157600080fd5b5061082a612079565b005b34801561083857600080fd5b50610853600480360381019061084e91906146b2565b612121565b6040516108609190614e42565b60405180910390f35b34801561087557600080fd5b50610890600480360381019061088b91906143fd565b612163565b60405161089d9190614ce5565b60405180910390f35b3480156108b257600080fd5b506108cd60048036038101906108c891906143d4565b6121f7565b005b3480156108db57600080fd5b506108f660048036038101906108f19190614689565b6122ef565b005b34801561090457600080fd5b5061091f600480360381019061091a9190614819565b612491565b005b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806109ec57507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806109fc57506109fb82612517565b5b9050919050565b606060018054610a12906151c4565b80601f0160208091040260200160405190810160405280929190818152602001828054610a3e906151c4565b8015610a8b5780601f10610a6057610100808354040283529160200191610a8b565b820191906000526020600020905b815481529060010190602001808311610a6e57829003601f168201915b5050505050905090565b6000610aa082612581565b610ad6576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6006600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610b1c8261168a565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610b84576040517f943f7b8c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610ba36127e9565b73ffffffffffffffffffffffffffffffffffffffff1614158015610bd55750610bd381610bce6127e9565b612163565b155b15610c0c576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610c178383836127f1565b505050565b6000610c266128a3565b60005403905090565b600e818051602081018201805184825260208301602085012081835280955050505050506000915054906101000a900460ff1681565b610c708383836128ac565b505050565b600f60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610cfc576040517f6f38d8b400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000803373ffffffffffffffffffffffffffffffffffffffff163073ffffffffffffffffffffffffffffffffffffffff1663ad7a672f6040518163ffffffff1660e01b815260040160206040518083038186803b158015610d5c57600080fd5b505afa158015610d70573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d949190614842565b604051610da090614c40565b60006040518083038185875af1925050503d8060008114610ddd576040519150601f19603f3d011682016040523d82523d6000602084013e610de2565b606091505b509150915081610e1e576040517f2684a07900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5050565b600f60149054906101000a900460ff1681565b6010818051602081018201805184825260208301602085012081835280955050505050506000915090508060000160009054906101000a900467ffffffffffffffff16908060000160089054906101000a900467ffffffffffffffff16908060000160109054906101000a900467ffffffffffffffff16905083565b6000610ebc83611738565b821115610ef5576040517f6df37eaf00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000610eff610c1c565b905060008060008060005b85811015611098576000600460008381526020019081526020016000206040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff16815250509050600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff16146110115780600001519450806020015167ffffffffffffffff169350600092505b8973ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1614801561104b57508383105b15611084578886141561106757819750505050505050506110cb565b858061107290615227565b965050828061108090615227565b9350505b50808061109090615227565b915050610f0a565b506040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b92915050565b6110d96127e9565b73ffffffffffffffffffffffffffffffffffffffff166110f7611916565b73ffffffffffffffffffffffffffffffffffffffff161461114d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161114490614e07565b60405180910390fd5b80600d60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6111996127e9565b73ffffffffffffffffffffffffffffffffffffffff166111b7611916565b73ffffffffffffffffffffffffffffffffffffffff161461120d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161120490614e07565b60405180910390fd5b8160108585604051611220929190614ba2565b908152602001604051809103902060000160006101000a81548167ffffffffffffffff021916908367ffffffffffffffff160217905550806010858560405161126a929190614ba2565b908152602001604051809103902060000160086101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055506000548167ffffffffffffffff1611156112c7578067ffffffffffffffff166000819055505b50505050565b600c80546112da906151c4565b80601f0160208091040260200160405190810160405280929190818152602001828054611306906151c4565b80156113535780601f1061132857610100808354040283529160200191611353565b820191906000526020600020905b81548152906001019060200180831161133657829003601f168201915b505050505081565b61137683838360405180602001604052806000815250611f53565b505050565b6000611385610c1c565b8211156113be576040517f401c27c800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b819050919050565b6113ce6127e9565b73ffffffffffffffffffffffffffffffffffffffff166113ec611916565b73ffffffffffffffffffffffffffffffffffffffff1614611442576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161143990614e07565b60405180910390fd5b600060108585604051611456929190614ba2565b9081526020016040518091039020905060008160000160109054906101000a900467ffffffffffffffff168260000160009054906101000a900467ffffffffffffffff166114a49190614fd4565b67ffffffffffffffff1690508160000160089054906101000a900467ffffffffffffffff1667ffffffffffffffff1684849050826114e29190614f7e565b111561151a576040517ffb5f842300000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60005b8484905081101561159f5761158c858583818110611564577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b905060200201602081019061157991906143d4565b600183856115879190614f7e565b612f90565b808061159790615227565b91505061151d565b50838390508260000160108282829054906101000a900467ffffffffffffffff166115ca9190614fd4565b92506101000a81548167ffffffffffffffff021916908367ffffffffffffffff160217905550505050505050565b6116006127e9565b73ffffffffffffffffffffffffffffffffffffffff1661161e611916565b73ffffffffffffffffffffffffffffffffffffffff1614611674576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161166b90614e07565b60405180910390fd5b8181600b91906116859291906140c1565b505050565b600061169582612fb0565b600001519050919050565b60095481565b6116ae6127e9565b73ffffffffffffffffffffffffffffffffffffffff166116cc611916565b73ffffffffffffffffffffffffffffffffffffffff1614611722576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161171990614e07565b60405180910390fd5b8181600c91906117339291906140c1565b505050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156117a0576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600560008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160009054906101000a900467ffffffffffffffff1667ffffffffffffffff169050919050565b6118106127e9565b73ffffffffffffffffffffffffffffffffffffffff1661182e611916565b73ffffffffffffffffffffffffffffffffffffffff1614611884576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161187b90614e07565b60405180910390fd5b61188e600061324a565b565b6118986127e9565b73ffffffffffffffffffffffffffffffffffffffff166118b6611916565b73ffffffffffffffffffffffffffffffffffffffff161461190c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161190390614e07565b60405180910390fd5b8060098190555050565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b600f60149054906101000a900460ff16611986576040517f803a336f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6119908484613310565b6119c6576040517f5e3c632500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600e826040516119d69190614bbb565b908152602001604051809103902060009054906101000a900460ff1615611a29576040517f5e3c632500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b83611a35338484613385565b14611a6c576040517f5e3c632500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80600954611a7a9190615043565b3414611ab2576040517ff14a42b700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600a54811115611aee576040517fcb106daa00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60006010600c604051611b019190614bd2565b9081526020016040518091039020905060008160000160109054906101000a900467ffffffffffffffff168260000160009054906101000a900467ffffffffffffffff16611b4f9190614fd4565b67ffffffffffffffff1690508160000160089054906101000a900467ffffffffffffffff1667ffffffffffffffff168382611b8a9190614f7e565b1115611bc2576040517ffb5f842300000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b611bcd338483612f90565b828260000160108282829054906101000a900467ffffffffffffffff16611bf49190614fd4565b92506101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055506001600e85604051611c2c9190614bbb565b908152602001604051809103902060006101000a81548160ff021916908315150217905550505050505050565b606060028054611c68906151c4565b80601f0160208091040260200160405190810160405280929190818152602001828054611c94906151c4565b8015611ce15780601f10611cb657610100808354040283529160200191611ce1565b820191906000526020600020905b815481529060010190602001808311611cc457829003601f168201915b5050505050905090565b600a5481565b611cf96127e9565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611d5e576040517fb06307db00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8060076000611d6b6127e9565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff16611e186127e9565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051611e5d9190614ce5565b60405180910390a35050565b600f60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614611ef0576040517f6f38d8b400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80600f60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b60003073ffffffffffffffffffffffffffffffffffffffff1631905090565b611f5e8484846128ac565b611f7d8373ffffffffffffffffffffffffffffffffffffffff166133c0565b8015611f925750611f90848484846133e3565b155b15611fc9576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b50505050565b6060611fda82612581565b612010576040517fb0ce759100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600b61201b83613543565b6040518060400160405280600581526020017f2e6a736f6e00000000000000000000000000000000000000000000000000000081525060405160200161206393929190614be9565b6040516020818303038152906040529050919050565b6120816127e9565b73ffffffffffffffffffffffffffffffffffffffff1661209f611916565b73ffffffffffffffffffffffffffffffffffffffff16146120f5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120ec90614e07565b60405180910390fd5b600f60149054906101000a900460ff1615600f60146101000a81548160ff021916908315150217905550565b600060108383604051612135929190614ba2565b908152602001604051809103902060000160109054906101000a900467ffffffffffffffff16905092915050565b6000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6121ff6127e9565b73ffffffffffffffffffffffffffffffffffffffff1661221d611916565b73ffffffffffffffffffffffffffffffffffffffff1614612273576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161226a90614e07565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156122e3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122da90614da7565b60405180910390fd5b6122ec8161324a565b50565b600f60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614612376576040517f6f38d8b400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff1663a9059cbb338373ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b81526004016123cc9190614c55565b602060405180830381600087803b1580156123e657600080fd5b505af11580156123fa573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061241e9190614842565b6040518363ffffffff1660e01b815260040161243b929190614cbc565b602060405180830381600087803b15801561245557600080fd5b505af1158015612469573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061248d919061457b565b5050565b6124996127e9565b73ffffffffffffffffffffffffffffffffffffffff166124b7611916565b73ffffffffffffffffffffffffffffffffffffffff161461250d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161250490614e07565b60405180910390fd5b80600a8190555050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b600080829050806125906128a3565b1115801561259f575060005481105b156127de576000600460008381526020019081526020016000206040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff16815250509050600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff1614612691576001925050506127e4565b60005b6001156127db57828060019003935050600460008481526020019081526020016000206040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff16815250509150600181019050600073ffffffffffffffffffffffffffffffffffffffff16826000015173ffffffffffffffffffffffffffffffffffffffff16141580156127a25750828503826020015167ffffffffffffffff16115b156127b357600193505050506127e4565b826127bc6128a3565b11156127c7576127db565b6003548111156127d6576127db565b612694565b50505b60009150505b919050565b600033905090565b826006600084815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b60006001905090565b60006128b782612fb0565b90508373ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff1614612922576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008473ffffffffffffffffffffffffffffffffffffffff166129436127e9565b73ffffffffffffffffffffffffffffffffffffffff16148061297257506129718561296c6127e9565b612163565b5b806129b757506129806127e9565b73ffffffffffffffffffffffffffffffffffffffff1661299f84610a95565b73ffffffffffffffffffffffffffffffffffffffff16145b9050806129f0576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161415612a57576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b612a6485858560016136f0565b612a70600084876127f1565b6001600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a900467ffffffffffffffff160392506101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055506001600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a900467ffffffffffffffff160192506101000a81548167ffffffffffffffff021916908367ffffffffffffffff160217905550600060046000858152602001908152602001600020905060008073ffffffffffffffffffffffffffffffffffffffff168260000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614612c055760018260000160149054906101000a900467ffffffffffffffff160390505b858260000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060006001860190506000869050600081612c606128a3565b11158015612c6f575060005482105b8015612c85575060008467ffffffffffffffff16145b15612e19575b600115612e185781806001900392505080806001019150506000600460008481526020019081526020016000209050600073ffffffffffffffffffffffffffffffffffffffff168160000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614158015612d3e57508289038160000160149054906101000a900467ffffffffffffffff1667ffffffffffffffff16115b8015612d6c575060008160000160149054906101000a900467ffffffffffffffff1667ffffffffffffffff16115b15612dee5760006001848b038360000160149054906101000a900467ffffffffffffffff1667ffffffffffffffff160303905060018260000160148282829054906101000a900467ffffffffffffffff160392506101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055508095505050612e18565b82612df76128a3565b1115612e035750612e18565b6010821115612e125750612e18565b50612c8b565b5b6000600460008581526020019081526020016000209050600073ffffffffffffffffffffffffffffffffffffffff168160000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16148015612e9a575060008567ffffffffffffffff16115b15612f1b576001600054018414612f1a578a8160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550848160000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055505b5b505050505050828473ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4612f8985858560016136f6565b5050505050565b612fab838360405180602001604052806000815250846136fc565b505050565b612fb8614147565b6000829050600081612fc86128a3565b11158015612fd7575060005482105b15613213576000600460008481526020019081526020016000206040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff16815250509050600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff16146130c957809350505050613245565b5b600115613211578280600190039350508180600101925050600460008481526020019081526020016000206040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff16815250509050600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff16141580156131da5750828503816020015167ffffffffffffffff16115b156131ea57809350505050613245565b826131f36128a3565b11156131fe57613211565b600354821061320c57613211565b6130ca565b505b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600061332d8261331f85613710565b61374090919063ffffffff16565b73ffffffffffffffffffffffffffffffffffffffff16600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614905092915050565b60008084848460405160200161339d93929190614b69565b604051602081830303815290604052805190602001209050809150509392505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a026134096127e9565b8786866040518563ffffffff1660e01b815260040161342b9493929190614c70565b602060405180830381600087803b15801561344557600080fd5b505af192505050801561347657506040513d601f19601f820116820180604052508101906134739190614660565b60015b6134f0573d80600081146134a6576040519150601f19603f3d011682016040523d82523d6000602084013e6134ab565b606091505b506000815114156134e8576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b6060600082141561358b576040518060400160405280600181526020017f300000000000000000000000000000000000000000000000000000000000000081525090506136eb565b600082905060005b600082146135bd5780806135a690615227565b915050600a826135b69190615012565b9150613593565b60008167ffffffffffffffff8111156135ff577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156136315781602001600182028036833780820191505090505b5090505b600085146136e45760018261364a919061509d565b9150600a8561365991906152a8565b60306136659190614f7e565b60f81b8183815181106136a1577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a856136dd9190615012565b9450613635565b8093505050505b919050565b50505050565b50505050565b61370a848484600185613767565b50505050565b6000816040516020016137239190614c1a565b604051602081830303815290604052805190602001209050919050565b600080600061374f8585613b81565b9150915061375c81613c04565b819250505092915050565b6000819050600073ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff1614156137d3576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600085141561380e576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60035485111561384a576040517f8011f1fa00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61385760008783886136f0565b84600560008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a900467ffffffffffffffff160192506101000a81548167ffffffffffffffff021916908367ffffffffffffffff16021790555084600560008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160088282829054906101000a900467ffffffffffffffff160192506101000a81548167ffffffffffffffff021916908367ffffffffffffffff160217905550856004600083815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550846004600083815260200190815260200160002060000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff160217905550600081905060008682019050848015613a215750613a208873ffffffffffffffffffffffffffffffffffffffff166133c0565b5b15613aec575b818873ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4613a8c82612581565b15613a9657600080fd5b613aa960008984806001019550896133e3565b613adf576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80821415613a2757613b58565b5b818060010192508873ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a480821415613aed575b836000541415613b6a57816000819055505b5050613b7960008783886136f6565b505050505050565b600080604183511415613bc35760008060006020860151925060408601519150606086015160001a9050613bb787828585613f55565b94509450505050613bfd565b604083511415613bf4576000806020850151915060408501519050613be9868383614062565b935093505050613bfd565b60006002915091505b9250929050565b60006004811115613c3e577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b816004811115613c77577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b1415613c8257613f52565b60016004811115613cbc577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b816004811115613cf5577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b1415613d36576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613d2d90614d67565b60405180910390fd5b60026004811115613d70577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b816004811115613da9577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b1415613dea576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613de190614d87565b60405180910390fd5b60036004811115613e24577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b816004811115613e5d577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b1415613e9e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613e9590614dc7565b60405180910390fd5b600480811115613ed7577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b816004811115613f10577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b1415613f51576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613f4890614de7565b60405180910390fd5b5b50565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08360001c1115613f90576000600391509150614059565b601b8560ff1614158015613fa85750601c8560ff1614155b15613fba576000600491509150614059565b600060018787878760405160008152602001604052604051613fdf9493929190614d00565b6020604051602081039080840390855afa158015614001573d6000803e3d6000fd5b505050602060405103519050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141561405057600060019250925050614059565b80600092509250505b94509492505050565b60008060007f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff60001b841690506000601b60ff8660001c901c6140a59190614f7e565b90506140b387828885613f55565b935093505050935093915050565b8280546140cd906151c4565b90600052602060002090601f0160209004810192826140ef5760008555614136565b82601f1061410857803560ff1916838001178555614136565b82800160010185558215614136579182015b8281111561413557823582559160200191906001019061411a565b5b5090506141439190614181565b5090565b6040518060400160405280600073ffffffffffffffffffffffffffffffffffffffff168152602001600067ffffffffffffffff1681525090565b5b8082111561419a576000816000905550600101614182565b5090565b60006141b16141ac84614eb9565b614e94565b9050828152602081018484840111156141c957600080fd5b6141d4848285615182565b509392505050565b60006141ef6141ea84614eea565b614e94565b90508281526020810184848401111561420757600080fd5b614212848285615182565b509392505050565b60008135905061422981615547565b92915050565b60008083601f84011261424157600080fd5b8235905067ffffffffffffffff81111561425a57600080fd5b60208301915083602082028301111561427257600080fd5b9250929050565b6000813590506142888161555e565b92915050565b60008151905061429d8161555e565b92915050565b6000813590506142b281615575565b92915050565b6000813590506142c78161558c565b92915050565b6000815190506142dc8161558c565b92915050565b600082601f8301126142f357600080fd5b813561430384826020860161419e565b91505092915050565b60008135905061431b816155a3565b92915050565b60008083601f84011261433357600080fd5b8235905067ffffffffffffffff81111561434c57600080fd5b60208301915083600182028301111561436457600080fd5b9250929050565b600082601f83011261437c57600080fd5b813561438c8482602086016141dc565b91505092915050565b6000813590506143a4816155ba565b92915050565b6000815190506143b9816155ba565b92915050565b6000813590506143ce816155d1565b92915050565b6000602082840312156143e657600080fd5b60006143f48482850161421a565b91505092915050565b6000806040838503121561441057600080fd5b600061441e8582860161421a565b925050602061442f8582860161421a565b9150509250929050565b60008060006060848603121561444e57600080fd5b600061445c8682870161421a565b935050602061446d8682870161421a565b925050604061447e86828701614395565b9150509250925092565b6000806000806080858703121561449e57600080fd5b60006144ac8782880161421a565b94505060206144bd8782880161421a565b93505060406144ce87828801614395565b925050606085013567ffffffffffffffff8111156144eb57600080fd5b6144f7878288016142e2565b91505092959194509250565b6000806040838503121561451657600080fd5b60006145248582860161421a565b925050602061453585828601614279565b9150509250929050565b6000806040838503121561455257600080fd5b60006145608582860161421a565b925050602061457185828601614395565b9150509250929050565b60006020828403121561458d57600080fd5b600061459b8482850161428e565b91505092915050565b600080600080608085870312156145ba57600080fd5b60006145c8878288016142a3565b945050602085013567ffffffffffffffff8111156145e557600080fd5b6145f1878288016142e2565b935050604085013567ffffffffffffffff81111561460e57600080fd5b61461a8782880161436b565b925050606061462b87828801614395565b91505092959194509250565b60006020828403121561464957600080fd5b6000614657848285016142b8565b91505092915050565b60006020828403121561467257600080fd5b6000614680848285016142cd565b91505092915050565b60006020828403121561469b57600080fd5b60006146a98482850161430c565b91505092915050565b600080602083850312156146c557600080fd5b600083013567ffffffffffffffff8111156146df57600080fd5b6146eb85828601614321565b92509250509250929050565b6000806000806040858703121561470d57600080fd5b600085013567ffffffffffffffff81111561472757600080fd5b61473387828801614321565b9450945050602085013567ffffffffffffffff81111561475257600080fd5b61475e8782880161422f565b925092505092959194509250565b6000806000806060858703121561478257600080fd5b600085013567ffffffffffffffff81111561479c57600080fd5b6147a887828801614321565b945094505060206147bb878288016143bf565b92505060406147cc878288016143bf565b91505092959194509250565b6000602082840312156147ea57600080fd5b600082013567ffffffffffffffff81111561480457600080fd5b6148108482850161436b565b91505092915050565b60006020828403121561482b57600080fd5b600061483984828501614395565b91505092915050565b60006020828403121561485457600080fd5b6000614862848285016143aa565b91505092915050565b614874816150d1565b82525050565b61488b614886826150d1565b615270565b82525050565b61489a816150e3565b82525050565b6148a9816150ef565b82525050565b6148c06148bb826150ef565b615282565b82525050565b60006148d182614f30565b6148db8185614f46565b93506148eb818560208601615191565b6148f481615395565b840191505092915050565b600061490b8385614f73565b9350614918838584615182565b82840190509392505050565b600061492f82614f3b565b6149398185614f62565b9350614949818560208601615191565b61495281615395565b840191505092915050565b600061496882614f3b565b6149728185614f73565b9350614982818560208601615191565b80840191505092915050565b6000815461499b816151c4565b6149a58186614f73565b945060018216600081146149c057600181146149d157614a04565b60ff19831686528186019350614a04565b6149da85614f1b565b60005b838110156149fc578154818901526001820191506020810190506149dd565b838801955050505b50505092915050565b6000614a1a601883614f62565b9150614a25826153b3565b602082019050919050565b6000614a3d601f83614f62565b9150614a48826153dc565b602082019050919050565b6000614a60601c83614f73565b9150614a6b82615405565b601c82019050919050565b6000614a83602683614f62565b9150614a8e8261542e565b604082019050919050565b6000614aa6602283614f62565b9150614ab18261547d565b604082019050919050565b6000614ac9602283614f62565b9150614ad4826154cc565b604082019050919050565b6000614aec602083614f62565b9150614af78261551b565b602082019050919050565b6000614b0f600083614f57565b9150614b1a82615544565b600082019050919050565b614b2e81615157565b82525050565b614b45614b4082615157565b61529e565b82525050565b614b5481615161565b82525050565b614b6381615175565b82525050565b6000614b75828661487a565b601482019150614b85828561495d565b9150614b918284614b34565b602082019150819050949350505050565b6000614baf8284866148ff565b91508190509392505050565b6000614bc7828461495d565b915081905092915050565b6000614bde828461498e565b915081905092915050565b6000614bf5828661498e565b9150614c01828561495d565b9150614c0d828461495d565b9150819050949350505050565b6000614c2582614a53565b9150614c3182846148af565b60208201915081905092915050565b6000614c4b82614b02565b9150819050919050565b6000602082019050614c6a600083018461486b565b92915050565b6000608082019050614c85600083018761486b565b614c92602083018661486b565b614c9f6040830185614b25565b8181036060830152614cb181846148c6565b905095945050505050565b6000604082019050614cd1600083018561486b565b614cde6020830184614b25565b9392505050565b6000602082019050614cfa6000830184614891565b92915050565b6000608082019050614d1560008301876148a0565b614d226020830186614b5a565b614d2f60408301856148a0565b614d3c60608301846148a0565b95945050505050565b60006020820190508181036000830152614d5f8184614924565b905092915050565b60006020820190508181036000830152614d8081614a0d565b9050919050565b60006020820190508181036000830152614da081614a30565b9050919050565b60006020820190508181036000830152614dc081614a76565b9050919050565b60006020820190508181036000830152614de081614a99565b9050919050565b60006020820190508181036000830152614e0081614abc565b9050919050565b60006020820190508181036000830152614e2081614adf565b9050919050565b6000602082019050614e3c6000830184614b25565b92915050565b6000602082019050614e576000830184614b4b565b92915050565b6000606082019050614e726000830186614b4b565b614e7f6020830185614b4b565b614e8c6040830184614b4b565b949350505050565b6000614e9e614eaf565b9050614eaa82826151f6565b919050565b6000604051905090565b600067ffffffffffffffff821115614ed457614ed3615366565b5b614edd82615395565b9050602081019050919050565b600067ffffffffffffffff821115614f0557614f04615366565b5b614f0e82615395565b9050602081019050919050565b60008190508160005260206000209050919050565b600081519050919050565b600081519050919050565b600082825260208201905092915050565b600081905092915050565b600082825260208201905092915050565b600081905092915050565b6000614f8982615157565b9150614f9483615157565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115614fc957614fc86152d9565b5b828201905092915050565b6000614fdf82615161565b9150614fea83615161565b92508267ffffffffffffffff03821115615007576150066152d9565b5b828201905092915050565b600061501d82615157565b915061502883615157565b92508261503857615037615308565b5b828204905092915050565b600061504e82615157565b915061505983615157565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615615092576150916152d9565b5b828202905092915050565b60006150a882615157565b91506150b383615157565b9250828210156150c6576150c56152d9565b5b828203905092915050565b60006150dc82615137565b9050919050565b60008115159050919050565b6000819050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b6000615130826150d1565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600067ffffffffffffffff82169050919050565b600060ff82169050919050565b82818337600083830152505050565b60005b838110156151af578082015181840152602081019050615194565b838111156151be576000848401525b50505050565b600060028204905060018216806151dc57607f821691505b602082108114156151f0576151ef615337565b5b50919050565b6151ff82615395565b810181811067ffffffffffffffff8211171561521e5761521d615366565b5b80604052505050565b600061523282615157565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415615265576152646152d9565b5b600182019050919050565b600061527b8261528c565b9050919050565b6000819050919050565b6000615297826153a6565b9050919050565b6000819050919050565b60006152b382615157565b91506152be83615157565b9250826152ce576152cd615308565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000601f19601f8301169050919050565b60008160601b9050919050565b7f45434453413a20696e76616c6964207369676e61747572650000000000000000600082015250565b7f45434453413a20696e76616c6964207369676e6174757265206c656e67746800600082015250565b7f19457468657265756d205369676e6564204d6573736167653a0a333200000000600082015250565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f45434453413a20696e76616c6964207369676e6174757265202773272076616c60008201527f7565000000000000000000000000000000000000000000000000000000000000602082015250565b7f45434453413a20696e76616c6964207369676e6174757265202776272076616c60008201527f7565000000000000000000000000000000000000000000000000000000000000602082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b50565b615550816150d1565b811461555b57600080fd5b50565b615567816150e3565b811461557257600080fd5b50565b61557e816150ef565b811461558957600080fd5b50565b615595816150f9565b81146155a057600080fd5b50565b6155ac81615125565b81146155b757600080fd5b50565b6155c381615157565b81146155ce57600080fd5b50565b6155da81615161565b81146155e557600080fd5b5056fea2646970667358221220923e1021531ed5082a332f4784bfec86717b5ebec0d84b712b48296d0cf4b10264736f6c63430008040033000000000000000000000000000000000000000000000000000000000000004000000000000000000000000028b7fe755336d2f6093946c91fbaaed14d80318a000000000000000000000000000000000000000000000000000000000000001f68747470733a2f2f6672696e676564726966746572732e636f6d2f6170692f00

Deployed Bytecode

0x6080604052600436106102305760003560e01c80636e8c38e41161012e578063a868e65b116100ab578063df04c26c1161006f578063df04c26c1461082c578063e985e9c514610869578063f2fde38b146108a6578063f4f3b200146108cf578063ffeac44f146108f857610230565b8063a868e65b1461075b578063ad7a672f14610784578063b88d4fde146107af578063c87b56dd146107d8578063d3dd5fe01461081557610230565b80638da5cb5b116100f25780638da5cb5b1461069557806391e1a095146106c057806395d89b41146106dc57806396a62d3614610707578063a22cb4651461073257610230565b80636e8c38e4146105c45780636f174b14146105ef57806370a0823114610618578063715018a61461065557806372bf079e1461066c57610230565b80632cb9cfc5116101bc57806342842e0e1161018057806342842e0e146104cf5780634f6ccce7146104f857806355ce6b6b1461053557806355f804b31461055e5780636352211e1461058757610230565b80632cb9cfc5146103d65780632f745c591461041557806339d90df1146104525780633c6bad971461047b57806340d9febc146104a457610230565b806318160ddd1161020357806318160ddd146103035780631cc4ad1f1461032e57806323b872dd1461036b57806324600fc3146103945780632a8092df146103ab57610230565b806301ffc9a71461023557806306fdde0314610272578063081812fc1461029d578063095ea7b3146102da575b600080fd5b34801561024157600080fd5b5061025c60048036038101906102579190614637565b610921565b6040516102699190614ce5565b60405180910390f35b34801561027e57600080fd5b50610287610a03565b6040516102949190614d45565b60405180910390f35b3480156102a957600080fd5b506102c460048036038101906102bf9190614819565b610a95565b6040516102d19190614c55565b60405180910390f35b3480156102e657600080fd5b5061030160048036038101906102fc919061453f565b610b11565b005b34801561030f57600080fd5b50610318610c1c565b6040516103259190614e27565b60405180910390f35b34801561033a57600080fd5b50610355600480360381019061035091906147d8565b610c2f565b6040516103629190614ce5565b60405180910390f35b34801561037757600080fd5b50610392600480360381019061038d9190614439565b610c65565b005b3480156103a057600080fd5b506103a9610c75565b005b3480156103b757600080fd5b506103c0610e22565b6040516103cd9190614ce5565b60405180910390f35b3480156103e257600080fd5b506103fd60048036038101906103f891906147d8565b610e35565b60405161040c93929190614e5d565b60405180910390f35b34801561042157600080fd5b5061043c6004803603810190610437919061453f565b610eb1565b6040516104499190614e27565b60405180910390f35b34801561045e57600080fd5b50610479600480360381019061047491906143d4565b6110d1565b005b34801561048757600080fd5b506104a2600480360381019061049d919061476c565b611191565b005b3480156104b057600080fd5b506104b96112cd565b6040516104c69190614d45565b60405180910390f35b3480156104db57600080fd5b506104f660048036038101906104f19190614439565b61135b565b005b34801561050457600080fd5b5061051f600480360381019061051a9190614819565b61137b565b60405161052c9190614e27565b60405180910390f35b34801561054157600080fd5b5061055c600480360381019061055791906146f7565b6113c6565b005b34801561056a57600080fd5b50610585600480360381019061058091906146b2565b6115f8565b005b34801561059357600080fd5b506105ae60048036038101906105a99190614819565b61168a565b6040516105bb9190614c55565b60405180910390f35b3480156105d057600080fd5b506105d96116a0565b6040516105e69190614e27565b60405180910390f35b3480156105fb57600080fd5b50610616600480360381019061061191906146b2565b6116a6565b005b34801561062457600080fd5b5061063f600480360381019061063a91906143d4565b611738565b60405161064c9190614e27565b60405180910390f35b34801561066157600080fd5b5061066a611808565b005b34801561067857600080fd5b50610693600480360381019061068e9190614819565b611890565b005b3480156106a157600080fd5b506106aa611916565b6040516106b79190614c55565b60405180910390f35b6106da60048036038101906106d591906145a4565b611940565b005b3480156106e857600080fd5b506106f1611c59565b6040516106fe9190614d45565b60405180910390f35b34801561071357600080fd5b5061071c611ceb565b6040516107299190614e27565b60405180910390f35b34801561073e57600080fd5b5061075960048036038101906107549190614503565b611cf1565b005b34801561076757600080fd5b50610782600480360381019061077d91906143d4565b611e69565b005b34801561079057600080fd5b50610799611f34565b6040516107a69190614e27565b60405180910390f35b3480156107bb57600080fd5b506107d660048036038101906107d19190614488565b611f53565b005b3480156107e457600080fd5b506107ff60048036038101906107fa9190614819565b611fcf565b60405161080c9190614d45565b60405180910390f35b34801561082157600080fd5b5061082a612079565b005b34801561083857600080fd5b50610853600480360381019061084e91906146b2565b612121565b6040516108609190614e42565b60405180910390f35b34801561087557600080fd5b50610890600480360381019061088b91906143fd565b612163565b60405161089d9190614ce5565b60405180910390f35b3480156108b257600080fd5b506108cd60048036038101906108c891906143d4565b6121f7565b005b3480156108db57600080fd5b506108f660048036038101906108f19190614689565b6122ef565b005b34801561090457600080fd5b5061091f600480360381019061091a9190614819565b612491565b005b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806109ec57507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806109fc57506109fb82612517565b5b9050919050565b606060018054610a12906151c4565b80601f0160208091040260200160405190810160405280929190818152602001828054610a3e906151c4565b8015610a8b5780601f10610a6057610100808354040283529160200191610a8b565b820191906000526020600020905b815481529060010190602001808311610a6e57829003601f168201915b5050505050905090565b6000610aa082612581565b610ad6576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6006600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610b1c8261168a565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610b84576040517f943f7b8c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610ba36127e9565b73ffffffffffffffffffffffffffffffffffffffff1614158015610bd55750610bd381610bce6127e9565b612163565b155b15610c0c576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610c178383836127f1565b505050565b6000610c266128a3565b60005403905090565b600e818051602081018201805184825260208301602085012081835280955050505050506000915054906101000a900460ff1681565b610c708383836128ac565b505050565b600f60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610cfc576040517f6f38d8b400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000803373ffffffffffffffffffffffffffffffffffffffff163073ffffffffffffffffffffffffffffffffffffffff1663ad7a672f6040518163ffffffff1660e01b815260040160206040518083038186803b158015610d5c57600080fd5b505afa158015610d70573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d949190614842565b604051610da090614c40565b60006040518083038185875af1925050503d8060008114610ddd576040519150601f19603f3d011682016040523d82523d6000602084013e610de2565b606091505b509150915081610e1e576040517f2684a07900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5050565b600f60149054906101000a900460ff1681565b6010818051602081018201805184825260208301602085012081835280955050505050506000915090508060000160009054906101000a900467ffffffffffffffff16908060000160089054906101000a900467ffffffffffffffff16908060000160109054906101000a900467ffffffffffffffff16905083565b6000610ebc83611738565b821115610ef5576040517f6df37eaf00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000610eff610c1c565b905060008060008060005b85811015611098576000600460008381526020019081526020016000206040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff16815250509050600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff16146110115780600001519450806020015167ffffffffffffffff169350600092505b8973ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1614801561104b57508383105b15611084578886141561106757819750505050505050506110cb565b858061107290615227565b965050828061108090615227565b9350505b50808061109090615227565b915050610f0a565b506040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b92915050565b6110d96127e9565b73ffffffffffffffffffffffffffffffffffffffff166110f7611916565b73ffffffffffffffffffffffffffffffffffffffff161461114d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161114490614e07565b60405180910390fd5b80600d60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6111996127e9565b73ffffffffffffffffffffffffffffffffffffffff166111b7611916565b73ffffffffffffffffffffffffffffffffffffffff161461120d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161120490614e07565b60405180910390fd5b8160108585604051611220929190614ba2565b908152602001604051809103902060000160006101000a81548167ffffffffffffffff021916908367ffffffffffffffff160217905550806010858560405161126a929190614ba2565b908152602001604051809103902060000160086101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055506000548167ffffffffffffffff1611156112c7578067ffffffffffffffff166000819055505b50505050565b600c80546112da906151c4565b80601f0160208091040260200160405190810160405280929190818152602001828054611306906151c4565b80156113535780601f1061132857610100808354040283529160200191611353565b820191906000526020600020905b81548152906001019060200180831161133657829003601f168201915b505050505081565b61137683838360405180602001604052806000815250611f53565b505050565b6000611385610c1c565b8211156113be576040517f401c27c800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b819050919050565b6113ce6127e9565b73ffffffffffffffffffffffffffffffffffffffff166113ec611916565b73ffffffffffffffffffffffffffffffffffffffff1614611442576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161143990614e07565b60405180910390fd5b600060108585604051611456929190614ba2565b9081526020016040518091039020905060008160000160109054906101000a900467ffffffffffffffff168260000160009054906101000a900467ffffffffffffffff166114a49190614fd4565b67ffffffffffffffff1690508160000160089054906101000a900467ffffffffffffffff1667ffffffffffffffff1684849050826114e29190614f7e565b111561151a576040517ffb5f842300000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60005b8484905081101561159f5761158c858583818110611564577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b905060200201602081019061157991906143d4565b600183856115879190614f7e565b612f90565b808061159790615227565b91505061151d565b50838390508260000160108282829054906101000a900467ffffffffffffffff166115ca9190614fd4565b92506101000a81548167ffffffffffffffff021916908367ffffffffffffffff160217905550505050505050565b6116006127e9565b73ffffffffffffffffffffffffffffffffffffffff1661161e611916565b73ffffffffffffffffffffffffffffffffffffffff1614611674576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161166b90614e07565b60405180910390fd5b8181600b91906116859291906140c1565b505050565b600061169582612fb0565b600001519050919050565b60095481565b6116ae6127e9565b73ffffffffffffffffffffffffffffffffffffffff166116cc611916565b73ffffffffffffffffffffffffffffffffffffffff1614611722576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161171990614e07565b60405180910390fd5b8181600c91906117339291906140c1565b505050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156117a0576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600560008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160009054906101000a900467ffffffffffffffff1667ffffffffffffffff169050919050565b6118106127e9565b73ffffffffffffffffffffffffffffffffffffffff1661182e611916565b73ffffffffffffffffffffffffffffffffffffffff1614611884576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161187b90614e07565b60405180910390fd5b61188e600061324a565b565b6118986127e9565b73ffffffffffffffffffffffffffffffffffffffff166118b6611916565b73ffffffffffffffffffffffffffffffffffffffff161461190c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161190390614e07565b60405180910390fd5b8060098190555050565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b600f60149054906101000a900460ff16611986576040517f803a336f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6119908484613310565b6119c6576040517f5e3c632500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600e826040516119d69190614bbb565b908152602001604051809103902060009054906101000a900460ff1615611a29576040517f5e3c632500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b83611a35338484613385565b14611a6c576040517f5e3c632500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80600954611a7a9190615043565b3414611ab2576040517ff14a42b700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600a54811115611aee576040517fcb106daa00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60006010600c604051611b019190614bd2565b9081526020016040518091039020905060008160000160109054906101000a900467ffffffffffffffff168260000160009054906101000a900467ffffffffffffffff16611b4f9190614fd4565b67ffffffffffffffff1690508160000160089054906101000a900467ffffffffffffffff1667ffffffffffffffff168382611b8a9190614f7e565b1115611bc2576040517ffb5f842300000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b611bcd338483612f90565b828260000160108282829054906101000a900467ffffffffffffffff16611bf49190614fd4565b92506101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055506001600e85604051611c2c9190614bbb565b908152602001604051809103902060006101000a81548160ff021916908315150217905550505050505050565b606060028054611c68906151c4565b80601f0160208091040260200160405190810160405280929190818152602001828054611c94906151c4565b8015611ce15780601f10611cb657610100808354040283529160200191611ce1565b820191906000526020600020905b815481529060010190602001808311611cc457829003601f168201915b5050505050905090565b600a5481565b611cf96127e9565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611d5e576040517fb06307db00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8060076000611d6b6127e9565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff16611e186127e9565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051611e5d9190614ce5565b60405180910390a35050565b600f60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614611ef0576040517f6f38d8b400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80600f60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b60003073ffffffffffffffffffffffffffffffffffffffff1631905090565b611f5e8484846128ac565b611f7d8373ffffffffffffffffffffffffffffffffffffffff166133c0565b8015611f925750611f90848484846133e3565b155b15611fc9576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b50505050565b6060611fda82612581565b612010576040517fb0ce759100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600b61201b83613543565b6040518060400160405280600581526020017f2e6a736f6e00000000000000000000000000000000000000000000000000000081525060405160200161206393929190614be9565b6040516020818303038152906040529050919050565b6120816127e9565b73ffffffffffffffffffffffffffffffffffffffff1661209f611916565b73ffffffffffffffffffffffffffffffffffffffff16146120f5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120ec90614e07565b60405180910390fd5b600f60149054906101000a900460ff1615600f60146101000a81548160ff021916908315150217905550565b600060108383604051612135929190614ba2565b908152602001604051809103902060000160109054906101000a900467ffffffffffffffff16905092915050565b6000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6121ff6127e9565b73ffffffffffffffffffffffffffffffffffffffff1661221d611916565b73ffffffffffffffffffffffffffffffffffffffff1614612273576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161226a90614e07565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156122e3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122da90614da7565b60405180910390fd5b6122ec8161324a565b50565b600f60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614612376576040517f6f38d8b400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff1663a9059cbb338373ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b81526004016123cc9190614c55565b602060405180830381600087803b1580156123e657600080fd5b505af11580156123fa573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061241e9190614842565b6040518363ffffffff1660e01b815260040161243b929190614cbc565b602060405180830381600087803b15801561245557600080fd5b505af1158015612469573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061248d919061457b565b5050565b6124996127e9565b73ffffffffffffffffffffffffffffffffffffffff166124b7611916565b73ffffffffffffffffffffffffffffffffffffffff161461250d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161250490614e07565b60405180910390fd5b80600a8190555050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b600080829050806125906128a3565b1115801561259f575060005481105b156127de576000600460008381526020019081526020016000206040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff16815250509050600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff1614612691576001925050506127e4565b60005b6001156127db57828060019003935050600460008481526020019081526020016000206040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff16815250509150600181019050600073ffffffffffffffffffffffffffffffffffffffff16826000015173ffffffffffffffffffffffffffffffffffffffff16141580156127a25750828503826020015167ffffffffffffffff16115b156127b357600193505050506127e4565b826127bc6128a3565b11156127c7576127db565b6003548111156127d6576127db565b612694565b50505b60009150505b919050565b600033905090565b826006600084815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b60006001905090565b60006128b782612fb0565b90508373ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff1614612922576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008473ffffffffffffffffffffffffffffffffffffffff166129436127e9565b73ffffffffffffffffffffffffffffffffffffffff16148061297257506129718561296c6127e9565b612163565b5b806129b757506129806127e9565b73ffffffffffffffffffffffffffffffffffffffff1661299f84610a95565b73ffffffffffffffffffffffffffffffffffffffff16145b9050806129f0576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161415612a57576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b612a6485858560016136f0565b612a70600084876127f1565b6001600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a900467ffffffffffffffff160392506101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055506001600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a900467ffffffffffffffff160192506101000a81548167ffffffffffffffff021916908367ffffffffffffffff160217905550600060046000858152602001908152602001600020905060008073ffffffffffffffffffffffffffffffffffffffff168260000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614612c055760018260000160149054906101000a900467ffffffffffffffff160390505b858260000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060006001860190506000869050600081612c606128a3565b11158015612c6f575060005482105b8015612c85575060008467ffffffffffffffff16145b15612e19575b600115612e185781806001900392505080806001019150506000600460008481526020019081526020016000209050600073ffffffffffffffffffffffffffffffffffffffff168160000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614158015612d3e57508289038160000160149054906101000a900467ffffffffffffffff1667ffffffffffffffff16115b8015612d6c575060008160000160149054906101000a900467ffffffffffffffff1667ffffffffffffffff16115b15612dee5760006001848b038360000160149054906101000a900467ffffffffffffffff1667ffffffffffffffff160303905060018260000160148282829054906101000a900467ffffffffffffffff160392506101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055508095505050612e18565b82612df76128a3565b1115612e035750612e18565b6010821115612e125750612e18565b50612c8b565b5b6000600460008581526020019081526020016000209050600073ffffffffffffffffffffffffffffffffffffffff168160000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16148015612e9a575060008567ffffffffffffffff16115b15612f1b576001600054018414612f1a578a8160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550848160000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055505b5b505050505050828473ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4612f8985858560016136f6565b5050505050565b612fab838360405180602001604052806000815250846136fc565b505050565b612fb8614147565b6000829050600081612fc86128a3565b11158015612fd7575060005482105b15613213576000600460008481526020019081526020016000206040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff16815250509050600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff16146130c957809350505050613245565b5b600115613211578280600190039350508180600101925050600460008481526020019081526020016000206040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff16815250509050600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff16141580156131da5750828503816020015167ffffffffffffffff16115b156131ea57809350505050613245565b826131f36128a3565b11156131fe57613211565b600354821061320c57613211565b6130ca565b505b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600061332d8261331f85613710565b61374090919063ffffffff16565b73ffffffffffffffffffffffffffffffffffffffff16600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614905092915050565b60008084848460405160200161339d93929190614b69565b604051602081830303815290604052805190602001209050809150509392505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a026134096127e9565b8786866040518563ffffffff1660e01b815260040161342b9493929190614c70565b602060405180830381600087803b15801561344557600080fd5b505af192505050801561347657506040513d601f19601f820116820180604052508101906134739190614660565b60015b6134f0573d80600081146134a6576040519150601f19603f3d011682016040523d82523d6000602084013e6134ab565b606091505b506000815114156134e8576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b6060600082141561358b576040518060400160405280600181526020017f300000000000000000000000000000000000000000000000000000000000000081525090506136eb565b600082905060005b600082146135bd5780806135a690615227565b915050600a826135b69190615012565b9150613593565b60008167ffffffffffffffff8111156135ff577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156136315781602001600182028036833780820191505090505b5090505b600085146136e45760018261364a919061509d565b9150600a8561365991906152a8565b60306136659190614f7e565b60f81b8183815181106136a1577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a856136dd9190615012565b9450613635565b8093505050505b919050565b50505050565b50505050565b61370a848484600185613767565b50505050565b6000816040516020016137239190614c1a565b604051602081830303815290604052805190602001209050919050565b600080600061374f8585613b81565b9150915061375c81613c04565b819250505092915050565b6000819050600073ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff1614156137d3576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600085141561380e576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60035485111561384a576040517f8011f1fa00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61385760008783886136f0565b84600560008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a900467ffffffffffffffff160192506101000a81548167ffffffffffffffff021916908367ffffffffffffffff16021790555084600560008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160088282829054906101000a900467ffffffffffffffff160192506101000a81548167ffffffffffffffff021916908367ffffffffffffffff160217905550856004600083815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550846004600083815260200190815260200160002060000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff160217905550600081905060008682019050848015613a215750613a208873ffffffffffffffffffffffffffffffffffffffff166133c0565b5b15613aec575b818873ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4613a8c82612581565b15613a9657600080fd5b613aa960008984806001019550896133e3565b613adf576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80821415613a2757613b58565b5b818060010192508873ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a480821415613aed575b836000541415613b6a57816000819055505b5050613b7960008783886136f6565b505050505050565b600080604183511415613bc35760008060006020860151925060408601519150606086015160001a9050613bb787828585613f55565b94509450505050613bfd565b604083511415613bf4576000806020850151915060408501519050613be9868383614062565b935093505050613bfd565b60006002915091505b9250929050565b60006004811115613c3e577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b816004811115613c77577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b1415613c8257613f52565b60016004811115613cbc577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b816004811115613cf5577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b1415613d36576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613d2d90614d67565b60405180910390fd5b60026004811115613d70577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b816004811115613da9577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b1415613dea576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613de190614d87565b60405180910390fd5b60036004811115613e24577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b816004811115613e5d577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b1415613e9e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613e9590614dc7565b60405180910390fd5b600480811115613ed7577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b816004811115613f10577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b1415613f51576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613f4890614de7565b60405180910390fd5b5b50565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08360001c1115613f90576000600391509150614059565b601b8560ff1614158015613fa85750601c8560ff1614155b15613fba576000600491509150614059565b600060018787878760405160008152602001604052604051613fdf9493929190614d00565b6020604051602081039080840390855afa158015614001573d6000803e3d6000fd5b505050602060405103519050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141561405057600060019250925050614059565b80600092509250505b94509492505050565b60008060007f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff60001b841690506000601b60ff8660001c901c6140a59190614f7e565b90506140b387828885613f55565b935093505050935093915050565b8280546140cd906151c4565b90600052602060002090601f0160209004810192826140ef5760008555614136565b82601f1061410857803560ff1916838001178555614136565b82800160010185558215614136579182015b8281111561413557823582559160200191906001019061411a565b5b5090506141439190614181565b5090565b6040518060400160405280600073ffffffffffffffffffffffffffffffffffffffff168152602001600067ffffffffffffffff1681525090565b5b8082111561419a576000816000905550600101614182565b5090565b60006141b16141ac84614eb9565b614e94565b9050828152602081018484840111156141c957600080fd5b6141d4848285615182565b509392505050565b60006141ef6141ea84614eea565b614e94565b90508281526020810184848401111561420757600080fd5b614212848285615182565b509392505050565b60008135905061422981615547565b92915050565b60008083601f84011261424157600080fd5b8235905067ffffffffffffffff81111561425a57600080fd5b60208301915083602082028301111561427257600080fd5b9250929050565b6000813590506142888161555e565b92915050565b60008151905061429d8161555e565b92915050565b6000813590506142b281615575565b92915050565b6000813590506142c78161558c565b92915050565b6000815190506142dc8161558c565b92915050565b600082601f8301126142f357600080fd5b813561430384826020860161419e565b91505092915050565b60008135905061431b816155a3565b92915050565b60008083601f84011261433357600080fd5b8235905067ffffffffffffffff81111561434c57600080fd5b60208301915083600182028301111561436457600080fd5b9250929050565b600082601f83011261437c57600080fd5b813561438c8482602086016141dc565b91505092915050565b6000813590506143a4816155ba565b92915050565b6000815190506143b9816155ba565b92915050565b6000813590506143ce816155d1565b92915050565b6000602082840312156143e657600080fd5b60006143f48482850161421a565b91505092915050565b6000806040838503121561441057600080fd5b600061441e8582860161421a565b925050602061442f8582860161421a565b9150509250929050565b60008060006060848603121561444e57600080fd5b600061445c8682870161421a565b935050602061446d8682870161421a565b925050604061447e86828701614395565b9150509250925092565b6000806000806080858703121561449e57600080fd5b60006144ac8782880161421a565b94505060206144bd8782880161421a565b93505060406144ce87828801614395565b925050606085013567ffffffffffffffff8111156144eb57600080fd5b6144f7878288016142e2565b91505092959194509250565b6000806040838503121561451657600080fd5b60006145248582860161421a565b925050602061453585828601614279565b9150509250929050565b6000806040838503121561455257600080fd5b60006145608582860161421a565b925050602061457185828601614395565b9150509250929050565b60006020828403121561458d57600080fd5b600061459b8482850161428e565b91505092915050565b600080600080608085870312156145ba57600080fd5b60006145c8878288016142a3565b945050602085013567ffffffffffffffff8111156145e557600080fd5b6145f1878288016142e2565b935050604085013567ffffffffffffffff81111561460e57600080fd5b61461a8782880161436b565b925050606061462b87828801614395565b91505092959194509250565b60006020828403121561464957600080fd5b6000614657848285016142b8565b91505092915050565b60006020828403121561467257600080fd5b6000614680848285016142cd565b91505092915050565b60006020828403121561469b57600080fd5b60006146a98482850161430c565b91505092915050565b600080602083850312156146c557600080fd5b600083013567ffffffffffffffff8111156146df57600080fd5b6146eb85828601614321565b92509250509250929050565b6000806000806040858703121561470d57600080fd5b600085013567ffffffffffffffff81111561472757600080fd5b61473387828801614321565b9450945050602085013567ffffffffffffffff81111561475257600080fd5b61475e8782880161422f565b925092505092959194509250565b6000806000806060858703121561478257600080fd5b600085013567ffffffffffffffff81111561479c57600080fd5b6147a887828801614321565b945094505060206147bb878288016143bf565b92505060406147cc878288016143bf565b91505092959194509250565b6000602082840312156147ea57600080fd5b600082013567ffffffffffffffff81111561480457600080fd5b6148108482850161436b565b91505092915050565b60006020828403121561482b57600080fd5b600061483984828501614395565b91505092915050565b60006020828403121561485457600080fd5b6000614862848285016143aa565b91505092915050565b614874816150d1565b82525050565b61488b614886826150d1565b615270565b82525050565b61489a816150e3565b82525050565b6148a9816150ef565b82525050565b6148c06148bb826150ef565b615282565b82525050565b60006148d182614f30565b6148db8185614f46565b93506148eb818560208601615191565b6148f481615395565b840191505092915050565b600061490b8385614f73565b9350614918838584615182565b82840190509392505050565b600061492f82614f3b565b6149398185614f62565b9350614949818560208601615191565b61495281615395565b840191505092915050565b600061496882614f3b565b6149728185614f73565b9350614982818560208601615191565b80840191505092915050565b6000815461499b816151c4565b6149a58186614f73565b945060018216600081146149c057600181146149d157614a04565b60ff19831686528186019350614a04565b6149da85614f1b565b60005b838110156149fc578154818901526001820191506020810190506149dd565b838801955050505b50505092915050565b6000614a1a601883614f62565b9150614a25826153b3565b602082019050919050565b6000614a3d601f83614f62565b9150614a48826153dc565b602082019050919050565b6000614a60601c83614f73565b9150614a6b82615405565b601c82019050919050565b6000614a83602683614f62565b9150614a8e8261542e565b604082019050919050565b6000614aa6602283614f62565b9150614ab18261547d565b604082019050919050565b6000614ac9602283614f62565b9150614ad4826154cc565b604082019050919050565b6000614aec602083614f62565b9150614af78261551b565b602082019050919050565b6000614b0f600083614f57565b9150614b1a82615544565b600082019050919050565b614b2e81615157565b82525050565b614b45614b4082615157565b61529e565b82525050565b614b5481615161565b82525050565b614b6381615175565b82525050565b6000614b75828661487a565b601482019150614b85828561495d565b9150614b918284614b34565b602082019150819050949350505050565b6000614baf8284866148ff565b91508190509392505050565b6000614bc7828461495d565b915081905092915050565b6000614bde828461498e565b915081905092915050565b6000614bf5828661498e565b9150614c01828561495d565b9150614c0d828461495d565b9150819050949350505050565b6000614c2582614a53565b9150614c3182846148af565b60208201915081905092915050565b6000614c4b82614b02565b9150819050919050565b6000602082019050614c6a600083018461486b565b92915050565b6000608082019050614c85600083018761486b565b614c92602083018661486b565b614c9f6040830185614b25565b8181036060830152614cb181846148c6565b905095945050505050565b6000604082019050614cd1600083018561486b565b614cde6020830184614b25565b9392505050565b6000602082019050614cfa6000830184614891565b92915050565b6000608082019050614d1560008301876148a0565b614d226020830186614b5a565b614d2f60408301856148a0565b614d3c60608301846148a0565b95945050505050565b60006020820190508181036000830152614d5f8184614924565b905092915050565b60006020820190508181036000830152614d8081614a0d565b9050919050565b60006020820190508181036000830152614da081614a30565b9050919050565b60006020820190508181036000830152614dc081614a76565b9050919050565b60006020820190508181036000830152614de081614a99565b9050919050565b60006020820190508181036000830152614e0081614abc565b9050919050565b60006020820190508181036000830152614e2081614adf565b9050919050565b6000602082019050614e3c6000830184614b25565b92915050565b6000602082019050614e576000830184614b4b565b92915050565b6000606082019050614e726000830186614b4b565b614e7f6020830185614b4b565b614e8c6040830184614b4b565b949350505050565b6000614e9e614eaf565b9050614eaa82826151f6565b919050565b6000604051905090565b600067ffffffffffffffff821115614ed457614ed3615366565b5b614edd82615395565b9050602081019050919050565b600067ffffffffffffffff821115614f0557614f04615366565b5b614f0e82615395565b9050602081019050919050565b60008190508160005260206000209050919050565b600081519050919050565b600081519050919050565b600082825260208201905092915050565b600081905092915050565b600082825260208201905092915050565b600081905092915050565b6000614f8982615157565b9150614f9483615157565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115614fc957614fc86152d9565b5b828201905092915050565b6000614fdf82615161565b9150614fea83615161565b92508267ffffffffffffffff03821115615007576150066152d9565b5b828201905092915050565b600061501d82615157565b915061502883615157565b92508261503857615037615308565b5b828204905092915050565b600061504e82615157565b915061505983615157565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615615092576150916152d9565b5b828202905092915050565b60006150a882615157565b91506150b383615157565b9250828210156150c6576150c56152d9565b5b828203905092915050565b60006150dc82615137565b9050919050565b60008115159050919050565b6000819050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b6000615130826150d1565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600067ffffffffffffffff82169050919050565b600060ff82169050919050565b82818337600083830152505050565b60005b838110156151af578082015181840152602081019050615194565b838111156151be576000848401525b50505050565b600060028204905060018216806151dc57607f821691505b602082108114156151f0576151ef615337565b5b50919050565b6151ff82615395565b810181811067ffffffffffffffff8211171561521e5761521d615366565b5b80604052505050565b600061523282615157565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415615265576152646152d9565b5b600182019050919050565b600061527b8261528c565b9050919050565b6000819050919050565b6000615297826153a6565b9050919050565b6000819050919050565b60006152b382615157565b91506152be83615157565b9250826152ce576152cd615308565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000601f19601f8301169050919050565b60008160601b9050919050565b7f45434453413a20696e76616c6964207369676e61747572650000000000000000600082015250565b7f45434453413a20696e76616c6964207369676e6174757265206c656e67746800600082015250565b7f19457468657265756d205369676e6564204d6573736167653a0a333200000000600082015250565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f45434453413a20696e76616c6964207369676e6174757265202773272076616c60008201527f7565000000000000000000000000000000000000000000000000000000000000602082015250565b7f45434453413a20696e76616c6964207369676e6174757265202776272076616c60008201527f7565000000000000000000000000000000000000000000000000000000000000602082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b50565b615550816150d1565b811461555b57600080fd5b50565b615567816150e3565b811461557257600080fd5b50565b61557e816150ef565b811461558957600080fd5b50565b615595816150f9565b81146155a057600080fd5b50565b6155ac81615125565b81146155b757600080fd5b50565b6155c381615157565b81146155ce57600080fd5b50565b6155da81615161565b81146155e557600080fd5b5056fea2646970667358221220923e1021531ed5082a332f4784bfec86717b5ebec0d84b712b48296d0cf4b10264736f6c63430008040033

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

000000000000000000000000000000000000000000000000000000000000004000000000000000000000000028b7fe755336d2f6093946c91fbaaed14d80318a000000000000000000000000000000000000000000000000000000000000001f68747470733a2f2f6672696e676564726966746572732e636f6d2f6170692f00

-----Decoded View---------------
Arg [0] : baseURI (string): https://fringedrifters.com/api/
Arg [1] : startingSignerAddress (address): 0x28b7FE755336d2f6093946C91FBaaED14d80318a

-----Encoded View---------------
4 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000040
Arg [1] : 00000000000000000000000028b7fe755336d2f6093946c91fbaaed14d80318a
Arg [2] : 000000000000000000000000000000000000000000000000000000000000001f
Arg [3] : 68747470733a2f2f6672696e676564726966746572732e636f6d2f6170692f00


Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

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

OVERVIEW

Welcome to THE FRINGE.The Fringe is a new universe founded by the creators of the film PROSPECT.There are 9,494 total drifters. The drifters exist in four destinations in the Fringe. The collection will be minted one destination at a time. Each destination will have unique...

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.