ETH Price: $3,305.63 (-3.51%)
Gas: 7 Gwei

Contract

0x10453962b2f5675bc715F5329f5A0291A3f8F8Af
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Value
Initialize160492572022-11-25 20:03:11585 days ago1669406591IN
0x10453962...1A3f8F8Af
0 ETH0.001590919.91273509
0x60a06040160492412022-11-25 19:59:59585 days ago1669406399IN
 Create: FreeNFTDailyCargo
0 ETH0.056354779.83282392

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
FreeNFTDailyCargo

Compiler Version
v0.8.17+commit.8df45f5f

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion
File 1 of 20 : DailyCargo.sol
// SPDX-License-Identifier: Unliscensed

pragma solidity ^0.8.17;


import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol";
import "erc721a/contracts/ERC721A.sol";  

import "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol";
import "@openzeppelin/contracts-upgradeable/proxy/utils/UUPSUpgradeable.sol";
import "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol";
import "@openzeppelin/contracts-upgradeable/security/ReentrancyGuardUpgradeable.sol";
import "operator-filter-registry/src/DefaultOperatorFilterer.sol";
import "./Base64.sol";
import "@openzeppelin/contracts/utils/Strings.sol";

/*

███████ ██████  ███████ ███████ ███    ██ ███████ ████████                                                               
██      ██   ██ ██      ██      ████   ██ ██         ██                                                                  
█████   ██████  █████   █████   ██ ██  ██ █████      ██                                                                  
██      ██   ██ ██      ██      ██  ██ ██ ██         ██                                                                  
██      ██   ██ ███████ ███████ ██   ████ ██         ██                                                                  
                                                                                                                         

*/



contract FreeNFTDailyCargo is ERC721A, Initializable, OwnableUpgradeable, ReentrancyGuardUpgradeable, UUPSUpgradeable, DefaultOperatorFilterer {

  /* ------------------------------------ *\

  ||||||||||||||||||||||||||||||||||||||||||
  ||| ------- ERC721A/PROXY SET-UP ------ ||
  ||||||||||||||||||||||||||||||||||||||||||

  \* ------------------------------------ */

  using Strings for uint256;
  using ECDSA for bytes32;
  string suffix;

  function initialize() public initializer {
        __Ownable_init();
        __ReentrancyGuard_init();
        _name = "Daily Cargo";
        _symbol = "DC";
        _currentIndex = _startTokenId();
  }

  function _authorizeUpgrade(address _newImplementation) internal override onlyOwner {}

  string description = "Go to https://freenft.xyz every day to upgrade your cargo, maintain your streak and win rewards.";
  string externalUrl = "https://freenft.xyz";
  string baseURI = "https://a2vh8vk6r7.execute-api.us-east-1.amazonaws.com/prod/daily_chest_image/";
  string baseName = "Daily Cargo #";

  string attributesStart = '[{"trait_type": "Streak", "value":';
  string attributesEnd = "}]";



  /* ------------------------------------ *\

  ||||||||||||||||||||||||||||||||||||||||||
  ||| ---- DAILY CONTAINER VARIABLES --- |||
  ||||||||||||||||||||||||||||||||||||||||||

  \* ------------------------------------ */

  address signerAddress;

  /**
   * @notice struct defining a player.
   * @param lastClaimed the last time the player claimed a cargo.
   * @param streak the number of consecutive daily cargos minted by the
   * player.
   * @param activeChestId the id of the ctonainer the player is currently upgrading.
   */
  struct Player {
    uint64 lastClaimed;
    uint64 streak;
    uint128 activeCargoId;
  }

  /**
   * @notice mapping from address to their player data.
   * @dev keeps track of the last time a player claimed a cargo, the number
   * of consecutive days they have claimed a cargo, and the id of the chest
   * @dev used in { getDailyCargo } to determine if a player can upgrade
   * their cargo, or need to mint a new one.
   */
  mapping(address => Player) public players;

  /**
   * @notice keeps track of a cargo's streak. A cargo's streak is the number of
   * times { getDailyCargo } has been called by the minter of the cargo consecutively
   * without missing a day.
   * 
   * @dev this is incremented in { getDailyCargo } if the sender is on time. A cargo
   * streak can becomes immutable if the sender is not on time - they must mint
   * a new cargo and start a new streak. Nonetheless, the cargo's streak is still
   * stored and the ERC721 is still ownable/tradeable.
   */
  mapping (uint256 => uint256) public cargoStreak;


  /**
   * @notice one/two day/s in seconds.
   * 
   * @dev used in time calculations in { getDailyCargo } and { missedADay }
   */
  uint256 private constant DAY_IN_SECONDS = 86400;
  uint256 private constant TWO_DAYS_IN_SECONDS = 86400 * 2;



  /* ------------------------------------ *\

  ||||||||||||||||||||||||||||||||||||||||||
  ||| ----- DAILY CONTAINER FUNCTIONS -- |||
  ||||||||||||||||||||||||||||||||||||||||||

  \* ------------------------------------ */


  //TODO: SIGNATURE INPUT

  /**
   * @notice mints a new ERC721 cargo for the sender if they haven't minted before
   * OR updates their existing cargo's streak if they call within the 24 hour window
   * starting when the function becomes callable again.
   * @notice the function becomes callable again after 24 hours.
   */
  function getDailyCargo(bytes calldata _signature) public nonReentrant onlyProxy {
    
    // gets the timestamp the address last called the function at //
    // then checks they did not call the function less than a day ago //

    Player memory player = players[msg.sender];

    uint256 lastMintedTimestamp = uint256(player.lastClaimed);
    uint256 addressStreak= uint256(player.streak);

   
    require(_verifyDailyCargo(_signature, addressStreak, lastMintedTimestamp), "invalid signature.");
 
    require(lastMintedTimestamp + DAY_IN_SECONDS < block.timestamp, "you can only mint one per day");

    // checks if the sender hasn't minted or missed the 24 hour callable window //
    if (addressStreak == 0 || missedADay(lastMintedTimestamp)) {

      // if so we grab the new cargo id //
      uint256 nextCargoId = _nextTokenId();

      
      // create a new Player struct with the new cargo id and a streak of 1 //

      Player memory newPlayerData;
      newPlayerData.streak = 1;
      newPlayerData.lastClaimed = uint64(block.timestamp);
      newPlayerData.activeCargoId = uint128(nextCargoId);

      // update the players mapping with the new Player struct //
      players[msg.sender] = newPlayerData;

      // set the cargo's streak to 1 //
      cargoStreak[nextCargoId] = 1;
    

      // we mint the new cargo and increment the supply //
      return _mint(msg.sender, 1);

    }  
    
    // if the sender has a cargo and is on time... //
    // we grab the cargo id the most recently minted //
    // increment their address streak //
    // increment the cargo streak //

    uint128 activeCargoId = player.activeCargoId;

    Player memory updatedPlayerData;
    updatedPlayerData.streak = player.streak + 1;
    updatedPlayerData.lastClaimed = uint64(block.timestamp);
    updatedPlayerData.activeCargoId = activeCargoId;

    // update the mapping //
    players[msg.sender] = updatedPlayerData;

    // update the cargo streak //

    cargoStreak[activeCargoId] += 1;

    emit Transfer(address(0), msg.sender, activeCargoId);
  }

  /**
   * @notice checks if the sender missed the 24 hour window to call { getDailyCargo }
   * 
   * @dev after they call { getDailyCargo } the function 
   * becomes callable again
   * after 24 hours. If they call within the 24 hour window after it is callable, 
   * they are on time, so this will return false.
   */
  function missedADay(uint256 _lastMintedTimestamp) public view returns (bool) {
    // using two days in seconds to account for the 24 hour uncallable period //
    return _lastMintedTimestamp + TWO_DAYS_IN_SECONDS < block.timestamp;
  }
  
  /**
   * @notice signature functions to verify a cargo is being minted from
   * freenft.xyz to stop bots from minting.
   */
  function _hashDailyCargo(address _address, uint256 _streakCount, uint256 _lastMintedTimestamp) internal view returns (bytes32) {
      return keccak256(abi.encode(
        address(this), 
        _address, 
        _streakCount, 
        _lastMintedTimestamp
        )).toEthSignedMessageHash();
  }

  function _verifyDailyCargo(bytes memory signature, uint256 _streakCount, uint256 _lastMintedTimestamp) internal view returns (bool) {
      return (_hashDailyCargo(msg.sender, _streakCount, _lastMintedTimestamp).recover(signature) == signerAddress);
  }


  /* ------------------------------------ *\

  ||||||||||||||||||||||||||||||||||||||||||
  ||| ------ CONTAINER METADATA  ------- |||
  ||||||||||||||||||||||||||||||||||||||||||

  \* ------------------------------------ */
  

  /**
   * @notice returns the cargo's metadata.
   * @dev constructs a json string in compliance with the ERC721/A metadata standard.
   * @dev the json string is constructed using the cargo's id and streak.
   * @dev used in { tokenURI }.
   */
  function buildJSON(uint256 _cargoId) public view returns (string memory) {
    uint256 streak = cargoStreak[_cargoId];
    string memory openBracket = "{";
    string memory quotation = '"';

    string memory descriptionAdded = string(abi.encodePacked(openBracket, '"description":', quotation, description, quotation, ","));
    string memory urlAdded = string(abi.encodePacked(descriptionAdded, '"external_url":', quotation, externalUrl, quotation, ","));
    string memory imageAdded = string(abi.encodePacked(urlAdded, '"image":', quotation, baseURI, streak.toString(), quotation, ","));
    string memory nameAdded = string(abi.encodePacked(imageAdded, '"name":', quotation, baseName, _cargoId.toString(), quotation, ",")); 
    string memory attributesAdded = string(abi.encodePacked(nameAdded, '"attributes":', attributesStart, quotation, streak.toString(), quotation, attributesEnd, "}"));


    return attributesAdded;
  }

  /**
   * @notice overrides the ERC721 tokenURI, uses { buildJSON }.
   * @dev return a base64 encoded string of the JSON metadata.
   * 
   */
  function tokenURI(uint256 _cargoId) public view override returns (string memory) {
    require(_exists(_cargoId), "cargo has not been minted.");

    string memory json = buildJSON(_cargoId);
    return string(abi.encodePacked("data:application/json;base64,", Base64.encode(bytes(json))));
  }

  /**
   * @notice sets the baseName used in { buildJSON }.
   */
  function setBaseName(string memory _baseName) public onlyOwner {
    baseName = _baseName;
  }

  /**
   * @notice sets the externalUrl used in { buildJSON }.
   */
  function setExternalUrl(string memory _externalUrl) public onlyOwner {
    externalUrl = _externalUrl;
  }

  /**
   * @notice sets the attributesStart used in { buildJSON }.
   */
  function setAttributesStart(string memory _attributesStart) public onlyOwner {
    attributesStart = _attributesStart;
  }
 
  /**
   * @notice sets the attributesEnd used in { buildJSON }.
   */
  function setAttributesEnd(string memory _attributesEnd) public onlyOwner {
    attributesEnd = _attributesEnd;
  }
  
  /**
   * @notice sets the description used in { buildJSON }.
   */
  function setDescription(string memory _description) public onlyOwner {
    description = _description;
  }

  /**
   * @notice sets the baseURI used in { tokenURI }.
   */
  function setBaseURI(string memory _baseURI) public onlyOwner {
    baseURI = _baseURI;
  }



  /* ------------------------------------ *\

  ||||||||||||||||||||||||||||||||||||||||||
  ||| ------- ERC721A OVERRIDDES ------- |||
  ||||||||||||||||||||||||||||||||||||||||||

  \* ------------------------------------ */
  
  

  /**
   * @notice overrides the ERC721A transferFrom function to delete an address'
   * streak when they transfer a cargo.
   * 
   * @dev this is so that the address needs to mint a new cargo to start a streak again.
   * the cargo data is not cleared, the receiver may use the cargo's streak benefits as they please.
   * BUT the new owner cannot increment the cargo's streak, as they are not the minter.
   * calling { getDailyCargo } will still just update the receivers streak, or mint them a token.
   */
  function transferFrom(
      address from,
      address to,
      uint256 tokenId
    ) public override payable onlyAllowedOperator(from) {  
      // deleteing the from address' streak if it's their active cargo //
      Player memory player = players[from];
      if (player.activeCargoId == tokenId) {
          delete players[from];
      }

      // complete the transfer //
      ERC721A.transferFrom(from, to, tokenId);
    }

  /**
   * @notice overrides the ERC721A { _startTokenId } function to start at 1.
   * 
   * @dev starting at 1 makes the first mint cheaper, since moving from 0 -> 1
   * is more expensive than x > 0 => y > 0.
  */
  function _startTokenId() internal pure override returns (uint256) {
      return 1;
  }

  /**
   * overrides of { ERC721A } approval/transfer functions in compliance
   * with exchange on-chain royalty requirements.
   * 
   * read more https://support.opensea.io/hc/en-us/articles/1500009575482-How-do-creator-fees-work-on-OpenSea-
   */
  
  function approve(address to, uint256 tokenId) 
    public 
    payable 
    virtual 
    override 
    onlyAllowedOperatorApproval(to)
  {
    super.approve(to, tokenId);
  }

  function setApprovalForAll(address operator, bool approved) 
    public 
    virtual 
    override 
    onlyAllowedOperatorApproval(operator)
  {
    super.setApprovalForAll(operator, approved);
  }

  function safeTransferFrom(
    address from,
    address to,
    uint256 tokenId
    )    
    public 
    payable 
    virtual 
    override 
    onlyAllowedOperator(from)
  {
    super.safeTransferFrom(from, to, tokenId, '');
  }

  function safeTransferFrom(
    address from,
    address to,
    uint256 tokenId,
    bytes memory _data
    ) 
    public 
    payable 
    virtual 
    override
    onlyAllowedOperator(from)
  {
    super.safeTransferFrom(from, to, tokenId, _data);
  }
  

  /* ------------------------------------ *\

  ||||||||||||||||||||||||||||||||||||||||||
  ||| -- VIEW FUNCTIONS FOR FRONT END -- |||
  ||||||||||||||||||||||||||||||||||||||||||

  \* ------------------------------------ */


  /**
   * @notice returns the address' streak and the cargo's streak.
   * 
   * @dev used in the front end to display the address' streak and the cargo's streak.
   * 
   * @param _address the address to check.
   */
  function getAddressStreak(address _address) public view returns (uint256) {
    return players[_address].streak;
  }

  /**
   * @notice returns the the cargo's streak.
   * 
   * @dev used in the front end to display the cargo' streak.
   * 
   * @param _cargoId the cargo id to check.
   */
  function getCargoStreak(uint256 _cargoId) public view returns (uint256) {
    return cargoStreak[_cargoId];
  }

  /**
   * @notice returns the address' latest cargo minted timestamp.
   * 
   * @param _address the address to check.
   */
  function getAddressLastMintedTimestamp(address _address) public view returns (uint256) {
    return players[_address].lastClaimed;
  }

  /**
   * @notice returns the address' latest cargo minted.
   * 
   * @dev used in the front end the address' active cargo.
   * 
   * @param _address the address to check.
   */
  function getLatestCargoMinted(address _address) public view returns (uint256) {
    return players[_address].activeCargoId;
  }


  /**
   * @notice burns a cargoId
   * 
   * @dev used by an auction contract to burn the winning cargo
   */

  function burnCargo(uint256 _cargoId) public {
    _burn(_cargoId);
  }


  /* ------------------------------------ *\

  ||||||||||||||||||||||||||||||||||||||||||
  ||| ------- CONTRACT MANAGEMENT ------ |||
  ||||||||||||||||||||||||||||||||||||||||||

  \* ------------------------------------ */

  /**
   * @notice sets the signer address used in { _verifyDailyCargo }.
   */
  function setSignerAddress(address _signerAddress) public onlyOwner {
    signerAddress = _signerAddress;
  }
}

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

pragma solidity ^0.8.0;

import "./math/Math.sol";

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

    /**
     * @dev Converts a `uint256` to its ASCII `string` decimal representation.
     */
    function toString(uint256 value) internal pure returns (string memory) {
        unchecked {
            uint256 length = Math.log10(value) + 1;
            string memory buffer = new string(length);
            uint256 ptr;
            /// @solidity memory-safe-assembly
            assembly {
                ptr := add(buffer, add(32, length))
            }
            while (true) {
                ptr--;
                /// @solidity memory-safe-assembly
                assembly {
                    mstore8(ptr, byte(mod(value, 10), _SYMBOLS))
                }
                value /= 10;
                if (value == 0) break;
            }
            return buffer;
        }
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.
     */
    function toHexString(uint256 value) internal pure returns (string memory) {
        unchecked {
            return toHexString(value, Math.log256(value) + 1);
        }
    }

    /**
     * @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] = _SYMBOLS[value & 0xf];
            value >>= 4;
        }
        require(value == 0, "Strings: hex length insufficient");
        return string(buffer);
    }

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

File 3 of 20 : Base64.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

library Base64 {
    string internal constant TABLE_ENCODE =
        "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
    bytes internal constant TABLE_DECODE =
        hex"0000000000000000000000000000000000000000000000000000000000000000"
        hex"00000000000000000000003e0000003f3435363738393a3b3c3d000000000000"
        hex"00000102030405060708090a0b0c0d0e0f101112131415161718190000000000"
        hex"001a1b1c1d1e1f202122232425262728292a2b2c2d2e2f303132330000000000";

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

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

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

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

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

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

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

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

            // run over the input, 3 bytes at a time
            for {

            } lt(dataPtr, endPtr) {

            } {
                // read 3 bytes
                dataPtr := add(dataPtr, 3)
                let input := mload(dataPtr)

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

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

        return result;
    }

    function decode(string memory _data) internal pure returns (bytes memory) {
        bytes memory data = bytes(_data);

        if (data.length == 0) return new bytes(0);
        require(data.length % 4 == 0, "invalid base64 decoder input");

        // load the table into memory
        bytes memory table = TABLE_DECODE;

        // every 4 characters represent 3 bytes
        uint256 decodedLen = (data.length / 4) * 3;

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

        assembly {
            // padding with '='
            let lastBytes := mload(add(data, mload(data)))
            if eq(and(lastBytes, 0xFF), 0x3d) {
                decodedLen := sub(decodedLen, 1)
                if eq(and(lastBytes, 0xFFFF), 0x3d3d) {
                    decodedLen := sub(decodedLen, 1)
                }
            }

            // set the actual output length
            mstore(result, decodedLen)

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

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

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

            // run over the input, 4 characters at a time
            for {

            } lt(dataPtr, endPtr) {

            } {
                // read 4 characters
                dataPtr := add(dataPtr, 4)
                let input := mload(dataPtr)

                // write 3 bytes
                let output := add(
                    add(
                        shl(
                            18,
                            and(
                                mload(add(tablePtr, and(shr(24, input), 0xFF))),
                                0xFF
                            )
                        ),
                        shl(
                            12,
                            and(
                                mload(add(tablePtr, and(shr(16, input), 0xFF))),
                                0xFF
                            )
                        )
                    ),
                    add(
                        shl(
                            6,
                            and(
                                mload(add(tablePtr, and(shr(8, input), 0xFF))),
                                0xFF
                            )
                        ),
                        and(mload(add(tablePtr, and(input, 0xFF))), 0xFF)
                    )
                )
                mstore(resultPtr, shl(232, output))
                resultPtr := add(resultPtr, 3)
            }
        }

        return result;
    }
}

File 4 of 20 : DefaultOperatorFilterer.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.13;

import {OperatorFilterer} from "./OperatorFilterer.sol";

/**
 * @title  DefaultOperatorFilterer
 * @notice Inherits from OperatorFilterer and automatically subscribes to the default OpenSea subscription.
 */
abstract contract DefaultOperatorFilterer is OperatorFilterer {
    address constant DEFAULT_SUBSCRIPTION = address(0x3cc6CddA760b79bAfa08dF41ECFA224f810dCeB6);

    constructor() OperatorFilterer(DEFAULT_SUBSCRIPTION, true) {}
}

File 5 of 20 : ReentrancyGuardUpgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (security/ReentrancyGuard.sol)

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

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

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

    uint256 private _status;

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

    function __ReentrancyGuard_init_unchained() internal onlyInitializing {
        _status = _NOT_ENTERED;
    }

    /**
     * @dev Prevents a contract from calling itself, directly or indirectly.
     * Calling a `nonReentrant` function from another `nonReentrant`
     * function is not supported. It is possible to prevent this from happening
     * by making the `nonReentrant` function external, and making it call a
     * `private` function that does the actual work.
     */
    modifier nonReentrant() {
        _nonReentrantBefore();
        _;
        _nonReentrantAfter();
    }

    function _nonReentrantBefore() private {
        // On the first call to nonReentrant, _status will be _NOT_ENTERED
        require(_status != _ENTERED, "ReentrancyGuard: reentrant call");

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

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

    /**
     * @dev This empty reserved space is put in place to allow future versions to add new
     * variables without shifting down storage in the inheritance chain.
     * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps
     */
    uint256[49] private __gap;
}

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

pragma solidity ^0.8.0;

import "../utils/ContextUpgradeable.sol";
import "../proxy/utils/Initializable.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 OwnableUpgradeable is Initializable, ContextUpgradeable {
    address private _owner;

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

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    function __Ownable_init() internal onlyInitializing {
        __Ownable_init_unchained();
    }

    function __Ownable_init_unchained() internal onlyInitializing {
        _transferOwnership(_msgSender());
    }

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

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

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

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

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

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

    /**
     * @dev This empty reserved space is put in place to allow future versions to add new
     * variables without shifting down storage in the inheritance chain.
     * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps
     */
    uint256[49] private __gap;
}

File 7 of 20 : UUPSUpgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (proxy/utils/UUPSUpgradeable.sol)

pragma solidity ^0.8.0;

import "../../interfaces/draft-IERC1822Upgradeable.sol";
import "../ERC1967/ERC1967UpgradeUpgradeable.sol";
import "./Initializable.sol";

/**
 * @dev An upgradeability mechanism designed for UUPS proxies. The functions included here can perform an upgrade of an
 * {ERC1967Proxy}, when this contract is set as the implementation behind such a proxy.
 *
 * A security mechanism ensures that an upgrade does not turn off upgradeability accidentally, although this risk is
 * reinstated if the upgrade retains upgradeability but removes the security mechanism, e.g. by replacing
 * `UUPSUpgradeable` with a custom implementation of upgrades.
 *
 * The {_authorizeUpgrade} function must be overridden to include access restriction to the upgrade mechanism.
 *
 * _Available since v4.1._
 */
abstract contract UUPSUpgradeable is Initializable, IERC1822ProxiableUpgradeable, ERC1967UpgradeUpgradeable {
    function __UUPSUpgradeable_init() internal onlyInitializing {
    }

    function __UUPSUpgradeable_init_unchained() internal onlyInitializing {
    }
    /// @custom:oz-upgrades-unsafe-allow state-variable-immutable state-variable-assignment
    address private immutable __self = address(this);

    /**
     * @dev Check that the execution is being performed through a delegatecall call and that the execution context is
     * a proxy contract with an implementation (as defined in ERC1967) pointing to self. This should only be the case
     * for UUPS and transparent proxies that are using the current contract as their implementation. Execution of a
     * function through ERC1167 minimal proxies (clones) would not normally pass this test, but is not guaranteed to
     * fail.
     */
    modifier onlyProxy() {
        require(address(this) != __self, "Function must be called through delegatecall");
        require(_getImplementation() == __self, "Function must be called through active proxy");
        _;
    }

    /**
     * @dev Check that the execution is not being performed through a delegate call. This allows a function to be
     * callable on the implementing contract but not through proxies.
     */
    modifier notDelegated() {
        require(address(this) == __self, "UUPSUpgradeable: must not be called through delegatecall");
        _;
    }

    /**
     * @dev Implementation of the ERC1822 {proxiableUUID} function. This returns the storage slot used by the
     * implementation. It is used to validate the implementation's compatibility when performing an upgrade.
     *
     * IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks
     * bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this
     * function revert if invoked through a proxy. This is guaranteed by the `notDelegated` modifier.
     */
    function proxiableUUID() external view virtual override notDelegated returns (bytes32) {
        return _IMPLEMENTATION_SLOT;
    }

    /**
     * @dev Upgrade the implementation of the proxy to `newImplementation`.
     *
     * Calls {_authorizeUpgrade}.
     *
     * Emits an {Upgraded} event.
     */
    function upgradeTo(address newImplementation) external virtual onlyProxy {
        _authorizeUpgrade(newImplementation);
        _upgradeToAndCallUUPS(newImplementation, new bytes(0), false);
    }

    /**
     * @dev Upgrade the implementation of the proxy to `newImplementation`, and subsequently execute the function call
     * encoded in `data`.
     *
     * Calls {_authorizeUpgrade}.
     *
     * Emits an {Upgraded} event.
     */
    function upgradeToAndCall(address newImplementation, bytes memory data) external payable virtual onlyProxy {
        _authorizeUpgrade(newImplementation);
        _upgradeToAndCallUUPS(newImplementation, data, true);
    }

    /**
     * @dev Function that should revert when `msg.sender` is not authorized to upgrade the contract. Called by
     * {upgradeTo} and {upgradeToAndCall}.
     *
     * Normally, this function will use an xref:access.adoc[access control] modifier such as {Ownable-onlyOwner}.
     *
     * ```solidity
     * function _authorizeUpgrade(address) internal override onlyOwner {}
     * ```
     */
    function _authorizeUpgrade(address newImplementation) internal virtual;

    /**
     * @dev This empty reserved space is put in place to allow future versions to add new
     * variables without shifting down storage in the inheritance chain.
     * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps
     */
    uint256[50] private __gap;
}

File 8 of 20 : Initializable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (proxy/utils/Initializable.sol)

pragma solidity ^0.8.2;

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

/**
 * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed
 * behind a proxy. Since proxied contracts do not make use of a constructor, it's common to move constructor logic to an
 * external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer
 * function so it can only be called once. The {initializer} modifier provided by this contract will have this effect.
 *
 * The initialization functions use a version number. Once a version number is used, it is consumed and cannot be
 * reused. This mechanism prevents re-execution of each "step" but allows the creation of new initialization steps in
 * case an upgrade adds a module that needs to be initialized.
 *
 * For example:
 *
 * [.hljs-theme-light.nopadding]
 * ```
 * contract MyToken is ERC20Upgradeable {
 *     function initialize() initializer public {
 *         __ERC20_init("MyToken", "MTK");
 *     }
 * }
 * contract MyTokenV2 is MyToken, ERC20PermitUpgradeable {
 *     function initializeV2() reinitializer(2) public {
 *         __ERC20Permit_init("MyToken");
 *     }
 * }
 * ```
 *
 * TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as
 * possible by providing the encoded function call as the `_data` argument to {ERC1967Proxy-constructor}.
 *
 * CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure
 * that all initializers are idempotent. This is not verified automatically as constructors are by Solidity.
 *
 * [CAUTION]
 * ====
 * Avoid leaving a contract uninitialized.
 *
 * An uninitialized contract can be taken over by an attacker. This applies to both a proxy and its implementation
 * contract, which may impact the proxy. To prevent the implementation contract from being used, you should invoke
 * the {_disableInitializers} function in the constructor to automatically lock it when it is deployed:
 *
 * [.hljs-theme-light.nopadding]
 * ```
 * /// @custom:oz-upgrades-unsafe-allow constructor
 * constructor() {
 *     _disableInitializers();
 * }
 * ```
 * ====
 */
abstract contract Initializable {
    /**
     * @dev Indicates that the contract has been initialized.
     * @custom:oz-retyped-from bool
     */
    uint8 private _initialized;

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

    /**
     * @dev Triggered when the contract has been initialized or reinitialized.
     */
    event Initialized(uint8 version);

    /**
     * @dev A modifier that defines a protected initializer function that can be invoked at most once. In its scope,
     * `onlyInitializing` functions can be used to initialize parent contracts.
     *
     * Similar to `reinitializer(1)`, except that functions marked with `initializer` can be nested in the context of a
     * constructor.
     *
     * Emits an {Initialized} event.
     */
    modifier initializer() {
        bool isTopLevelCall = !_initializing;
        require(
            (isTopLevelCall && _initialized < 1) || (!AddressUpgradeable.isContract(address(this)) && _initialized == 1),
            "Initializable: contract is already initialized"
        );
        _initialized = 1;
        if (isTopLevelCall) {
            _initializing = true;
        }
        _;
        if (isTopLevelCall) {
            _initializing = false;
            emit Initialized(1);
        }
    }

    /**
     * @dev A modifier that defines a protected reinitializer function that can be invoked at most once, and only if the
     * contract hasn't been initialized to a greater version before. In its scope, `onlyInitializing` functions can be
     * used to initialize parent contracts.
     *
     * A reinitializer may be used after the original initialization step. This is essential to configure modules that
     * are added through upgrades and that require initialization.
     *
     * When `version` is 1, this modifier is similar to `initializer`, except that functions marked with `reinitializer`
     * cannot be nested. If one is invoked in the context of another, execution will revert.
     *
     * Note that versions can jump in increments greater than 1; this implies that if multiple reinitializers coexist in
     * a contract, executing them in the right order is up to the developer or operator.
     *
     * WARNING: setting the version to 255 will prevent any future reinitialization.
     *
     * Emits an {Initialized} event.
     */
    modifier reinitializer(uint8 version) {
        require(!_initializing && _initialized < version, "Initializable: contract is already initialized");
        _initialized = version;
        _initializing = true;
        _;
        _initializing = false;
        emit Initialized(version);
    }

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

    /**
     * @dev Locks the contract, preventing any future reinitialization. This cannot be part of an initializer call.
     * Calling this in the constructor of a contract will prevent that contract from being initialized or reinitialized
     * to any version. It is recommended to use this to lock implementation contracts that are designed to be called
     * through proxies.
     *
     * Emits an {Initialized} event the first time it is successfully executed.
     */
    function _disableInitializers() internal virtual {
        require(!_initializing, "Initializable: contract is initializing");
        if (_initialized < type(uint8).max) {
            _initialized = type(uint8).max;
            emit Initialized(type(uint8).max);
        }
    }

    /**
     * @dev Internal function that returns the initialized version. Returns `_initialized`
     */
    function _getInitializedVersion() internal view returns (uint8) {
        return _initialized;
    }

    /**
     * @dev Internal function that returns the initialized version. Returns `_initializing`
     */
    function _isInitializing() internal view returns (bool) {
        return _initializing;
    }
}

File 9 of 20 : ERC721A.sol
// SPDX-License-Identifier: MIT
// ERC721A Contracts v4.2.3
// Creator: Chiru Labs

pragma solidity ^0.8.4;

import './IERC721A.sol';

/**
 * @dev Interface of ERC721 token receiver.
 */
interface ERC721A__IERC721Receiver {
    function onERC721Received(
        address operator,
        address from,
        uint256 tokenId,
        bytes calldata data
    ) external returns (bytes4);
}

/**
 * @title ERC721A
 *
 * @dev Implementation of the [ERC721](https://eips.ethereum.org/EIPS/eip-721)
 * Non-Fungible Token Standard, including the Metadata extension.
 * Optimized for lower gas during batch mints.
 *
 * Token IDs are minted in sequential order (e.g. 0, 1, 2, 3, ...)
 * starting from `_startTokenId()`.
 *
 * Assumptions:
 *
 * - An owner cannot have more than 2**64 - 1 (max value of uint64) of supply.
 * - The maximum token ID cannot exceed 2**256 - 1 (max value of uint256).
 */
contract ERC721A is IERC721A {
    // Bypass for a `--via-ir` bug (https://github.com/chiru-labs/ERC721A/pull/364).
    struct TokenApprovalRef {
        address value;
    }

    // =============================================================
    //                           CONSTANTS
    // =============================================================

    // Mask of an entry in packed address data.
    uint256 private constant _BITMASK_ADDRESS_DATA_ENTRY = (1 << 64) - 1;

    // The bit position of `numberMinted` in packed address data.
    uint256 private constant _BITPOS_NUMBER_MINTED = 64;

    // The bit position of `numberBurned` in packed address data.
    uint256 private constant _BITPOS_NUMBER_BURNED = 128;

    // The bit position of `aux` in packed address data.
    uint256 private constant _BITPOS_AUX = 192;

    // Mask of all 256 bits in packed address data except the 64 bits for `aux`.
    uint256 private constant _BITMASK_AUX_COMPLEMENT = (1 << 192) - 1;

    // The bit position of `startTimestamp` in packed ownership.
    uint256 private constant _BITPOS_START_TIMESTAMP = 160;

    // The bit mask of the `burned` bit in packed ownership.
    uint256 private constant _BITMASK_BURNED = 1 << 224;

    // The bit position of the `nextInitialized` bit in packed ownership.
    uint256 private constant _BITPOS_NEXT_INITIALIZED = 225;

    // The bit mask of the `nextInitialized` bit in packed ownership.
    uint256 private constant _BITMASK_NEXT_INITIALIZED = 1 << 225;

    // The bit position of `extraData` in packed ownership.
    uint256 private constant _BITPOS_EXTRA_DATA = 232;

    // Mask of all 256 bits in a packed ownership except the 24 bits for `extraData`.
    uint256 private constant _BITMASK_EXTRA_DATA_COMPLEMENT = (1 << 232) - 1;

    // The mask of the lower 160 bits for addresses.
    uint256 private constant _BITMASK_ADDRESS = (1 << 160) - 1;

    // The maximum `quantity` that can be minted with {_mintERC2309}.
    // This limit is to prevent overflows on the address data entries.
    // For a limit of 5000, a total of 3.689e15 calls to {_mintERC2309}
    // is required to cause an overflow, which is unrealistic.
    uint256 private constant _MAX_MINT_ERC2309_QUANTITY_LIMIT = 5000;

    // The `Transfer` event signature is given by:
    // `keccak256(bytes("Transfer(address,address,uint256)"))`.
    bytes32 private constant _TRANSFER_EVENT_SIGNATURE =
        0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef;

    // =============================================================
    //                            STORAGE
    // =============================================================

    // The next token ID to be minted.
    uint256 internal _currentIndex;

    // The number of tokens burned.
    uint256 private _burnCounter;

    // Token name
    string internal _name;

    // Token symbol
    string internal _symbol;

    // Mapping from token ID to ownership details
    // An empty struct value does not necessarily mean the token is unowned.
    // See {_packedOwnershipOf} implementation for details.
    //
    // Bits Layout:
    // - [0..159]   `addr`
    // - [160..223] `startTimestamp`
    // - [224]      `burned`
    // - [225]      `nextInitialized`
    // - [232..255] `extraData`
    mapping(uint256 => uint256) private _packedOwnerships;

    // Mapping owner address to address data.
    //
    // Bits Layout:
    // - [0..63]    `balance`
    // - [64..127]  `numberMinted`
    // - [128..191] `numberBurned`
    // - [192..255] `aux`
    mapping(address => uint256) private _packedAddressData;

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

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


    // =============================================================
    //                   TOKEN COUNTING OPERATIONS
    // =============================================================

    /**
     * @dev Returns the starting token ID.
     * To change the starting token ID, please override this function.
     */
    function _startTokenId() internal view virtual returns (uint256) {
        return 0;
    }

    /**
     * @dev Returns the next token ID to be minted.
     */
    function _nextTokenId() internal view virtual returns (uint256) {
        return _currentIndex;
    }

    /**
     * @dev Returns the total number of tokens in existence.
     * Burned tokens will reduce the count.
     * To get the total number of tokens minted, please see {_totalMinted}.
     */
    function totalSupply() public view virtual override returns (uint256) {
        // Counter underflow is impossible as _burnCounter cannot be incremented
        // more than `_currentIndex - _startTokenId()` times.
        unchecked {
            return _currentIndex - _burnCounter - _startTokenId();
        }
    }

    /**
     * @dev Returns the total amount of tokens minted in the contract.
     */
    function _totalMinted() internal view virtual returns (uint256) {
        // Counter underflow is impossible as `_currentIndex` does not decrement,
        // and it is initialized to `_startTokenId()`.
        unchecked {
            return _currentIndex - _startTokenId();
        }
    }

    /**
     * @dev Returns the total number of tokens burned.
     */
    function _totalBurned() internal view virtual returns (uint256) {
        return _burnCounter;
    }

    // =============================================================
    //                    ADDRESS DATA OPERATIONS
    // =============================================================

    /**
     * @dev Returns the number of tokens in `owner`'s account.
     */
    function balanceOf(address owner) public view virtual override returns (uint256) {
        if (owner == address(0)) revert BalanceQueryForZeroAddress();
        return _packedAddressData[owner] & _BITMASK_ADDRESS_DATA_ENTRY;
    }

    /**
     * Returns the number of tokens minted by `owner`.
     */
    function _numberMinted(address owner) internal view returns (uint256) {
        return (_packedAddressData[owner] >> _BITPOS_NUMBER_MINTED) & _BITMASK_ADDRESS_DATA_ENTRY;
    }

    /**
     * Returns the number of tokens burned by or on behalf of `owner`.
     */
    function _numberBurned(address owner) internal view returns (uint256) {
        return (_packedAddressData[owner] >> _BITPOS_NUMBER_BURNED) & _BITMASK_ADDRESS_DATA_ENTRY;
    }

    /**
     * Returns the auxiliary data for `owner`. (e.g. number of whitelist mint slots used).
     */
    function _getAux(address owner) internal view returns (uint64) {
        return uint64(_packedAddressData[owner] >> _BITPOS_AUX);
    }

    /**
     * Sets the auxiliary data for `owner`. (e.g. number of whitelist mint slots used).
     * If there are multiple variables, please pack them into a uint64.
     */
    function _setAux(address owner, uint64 aux) internal virtual {
        uint256 packed = _packedAddressData[owner];
        uint256 auxCasted;
        // Cast `aux` with assembly to avoid redundant masking.
        assembly {
            auxCasted := aux
        }
        packed = (packed & _BITMASK_AUX_COMPLEMENT) | (auxCasted << _BITPOS_AUX);
        _packedAddressData[owner] = packed;
    }

    // =============================================================
    //                            IERC165
    // =============================================================

    /**
     * @dev Returns true if this contract implements the interface defined by
     * `interfaceId`. See the corresponding
     * [EIP section](https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified)
     * to learn more about how these ids are created.
     *
     * This function call must use less than 30000 gas.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
        // The interface IDs are constants representing the first 4 bytes
        // of the XOR of all function selectors in the interface.
        // See: [ERC165](https://eips.ethereum.org/EIPS/eip-165)
        // (e.g. `bytes4(i.functionA.selector ^ i.functionB.selector ^ ...)`)
        return
            interfaceId == 0x01ffc9a7 || // ERC165 interface ID for ERC165.
            interfaceId == 0x80ac58cd || // ERC165 interface ID for ERC721.
            interfaceId == 0x5b5e139f; // ERC165 interface ID for ERC721Metadata.
    }

    // =============================================================
    //                        IERC721Metadata
    // =============================================================

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

    /**
     * @dev Returns the token collection symbol.
     */
    function symbol() public view virtual override returns (string memory) {
        return _symbol;
    }

    /**
     * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token.
     */
    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, _toString(tokenId))) : '';
    }

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

    // =============================================================
    //                     OWNERSHIPS OPERATIONS
    // =============================================================

    /**
     * @dev Returns the owner of the `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function ownerOf(uint256 tokenId) public view virtual override returns (address) {
        return address(uint160(_packedOwnershipOf(tokenId)));
    }

    /**
     * @dev Gas spent here starts off proportional to the maximum mint batch size.
     * It gradually moves to O(1) as tokens get transferred around over time.
     */
    function _ownershipOf(uint256 tokenId) internal view virtual returns (TokenOwnership memory) {
        return _unpackedOwnership(_packedOwnershipOf(tokenId));
    }

    /**
     * @dev Returns the unpacked `TokenOwnership` struct at `index`.
     */
    function _ownershipAt(uint256 index) internal view virtual returns (TokenOwnership memory) {
        return _unpackedOwnership(_packedOwnerships[index]);
    }

    /**
     * @dev Initializes the ownership slot minted at `index` for efficiency purposes.
     */
    function _initializeOwnershipAt(uint256 index) internal virtual {
        if (_packedOwnerships[index] == 0) {
            _packedOwnerships[index] = _packedOwnershipOf(index);
        }
    }

    /**
     * Returns the packed ownership data of `tokenId`.
     */
    function _packedOwnershipOf(uint256 tokenId) private view returns (uint256) {
        uint256 curr = tokenId;

        unchecked {
            if (_startTokenId() <= curr)
                if (curr < _currentIndex) {
                    uint256 packed = _packedOwnerships[curr];
                    // If not burned.
                    if (packed & _BITMASK_BURNED == 0) {
                        // Invariant:
                        // There will always be an initialized ownership slot
                        // (i.e. `ownership.addr != address(0) && ownership.burned == false`)
                        // before an unintialized ownership slot
                        // (i.e. `ownership.addr == address(0) && ownership.burned == false`)
                        // Hence, `curr` will not underflow.
                        //
                        // We can directly compare the packed value.
                        // If the address is zero, packed will be zero.
                        while (packed == 0) {
                            packed = _packedOwnerships[--curr];
                        }
                        return packed;
                    }
                }
        }
        revert OwnerQueryForNonexistentToken();
    }

    /**
     * @dev Returns the unpacked `TokenOwnership` struct from `packed`.
     */
    function _unpackedOwnership(uint256 packed) private pure returns (TokenOwnership memory ownership) {
        ownership.addr = address(uint160(packed));
        ownership.startTimestamp = uint64(packed >> _BITPOS_START_TIMESTAMP);
        ownership.burned = packed & _BITMASK_BURNED != 0;
        ownership.extraData = uint24(packed >> _BITPOS_EXTRA_DATA);
    }

    /**
     * @dev Packs ownership data into a single uint256.
     */
    function _packOwnershipData(address owner, uint256 flags) private view returns (uint256 result) {
        assembly {
            // Mask `owner` to the lower 160 bits, in case the upper bits somehow aren't clean.
            owner := and(owner, _BITMASK_ADDRESS)
            // `owner | (block.timestamp << _BITPOS_START_TIMESTAMP) | flags`.
            result := or(owner, or(shl(_BITPOS_START_TIMESTAMP, timestamp()), flags))
        }
    }

    /**
     * @dev Returns the `nextInitialized` flag set if `quantity` equals 1.
     */
    function _nextInitializedFlag(uint256 quantity) private pure returns (uint256 result) {
        // For branchless setting of the `nextInitialized` flag.
        assembly {
            // `(quantity == 1) << _BITPOS_NEXT_INITIALIZED`.
            result := shl(_BITPOS_NEXT_INITIALIZED, eq(quantity, 1))
        }
    }

    // =============================================================
    //                      APPROVAL OPERATIONS
    // =============================================================

    /**
     * @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) public payable virtual override {
        address owner = ownerOf(tokenId);

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

        _tokenApprovals[tokenId].value = to;
        emit Approval(owner, to, tokenId);
    }

    /**
     * @dev Returns the account approved for `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function getApproved(uint256 tokenId) public view virtual override returns (address) {
        if (!_exists(tokenId)) revert ApprovalQueryForNonexistentToken();

        return _tokenApprovals[tokenId].value;
    }

    /**
     * @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) public virtual override {
        _operatorApprovals[_msgSenderERC721A()][operator] = approved;
        emit ApprovalForAll(_msgSenderERC721A(), operator, approved);
    }

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

    /**
     * @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. See {_mint}.
     */
    function _exists(uint256 tokenId) internal view virtual returns (bool) {
        return
            _startTokenId() <= tokenId &&
            tokenId < _currentIndex && // If within bounds,
            _packedOwnerships[tokenId] & _BITMASK_BURNED == 0; // and not burned.
    }

    /**
     * @dev Returns whether `msgSender` is equal to `approvedAddress` or `owner`.
     */
    function _isSenderApprovedOrOwner(
        address approvedAddress,
        address owner,
        address msgSender
    ) private pure returns (bool result) {
        assembly {
            // Mask `owner` to the lower 160 bits, in case the upper bits somehow aren't clean.
            owner := and(owner, _BITMASK_ADDRESS)
            // Mask `msgSender` to the lower 160 bits, in case the upper bits somehow aren't clean.
            msgSender := and(msgSender, _BITMASK_ADDRESS)
            // `msgSender == owner || msgSender == approvedAddress`.
            result := or(eq(msgSender, owner), eq(msgSender, approvedAddress))
        }
    }

    /**
     * @dev Returns the storage slot and value for the approved address of `tokenId`.
     */
    function _getApprovedSlotAndAddress(uint256 tokenId)
        private
        view
        returns (uint256 approvedAddressSlot, address approvedAddress)
    {
        TokenApprovalRef storage tokenApproval = _tokenApprovals[tokenId];
        // The following is equivalent to `approvedAddress = _tokenApprovals[tokenId].value`.
        assembly {
            approvedAddressSlot := tokenApproval.slot
            approvedAddress := sload(approvedAddressSlot)
        }
    }

    // =============================================================
    //                      TRANSFER OPERATIONS
    // =============================================================

    /**
     * @dev Transfers `tokenId` from `from` to `to`.
     *
     * 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
    ) public payable virtual override {
        uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId);

        if (address(uint160(prevOwnershipPacked)) != from) revert TransferFromIncorrectOwner();

        (uint256 approvedAddressSlot, address approvedAddress) = _getApprovedSlotAndAddress(tokenId);

        // The nested ifs save around 20+ gas over a compound boolean condition.
        if (!_isSenderApprovedOrOwner(approvedAddress, from, _msgSenderERC721A()))
            if (!isApprovedForAll(from, _msgSenderERC721A())) revert TransferCallerNotOwnerNorApproved();

        if (to == address(0)) revert TransferToZeroAddress();

        _beforeTokenTransfers(from, to, tokenId, 1);

        // Clear approvals from the previous owner.
        assembly {
            if approvedAddress {
                // This is equivalent to `delete _tokenApprovals[tokenId]`.
                sstore(approvedAddressSlot, 0)
            }
        }

        // 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 {
            // We can directly increment and decrement the balances.
            --_packedAddressData[from]; // Updates: `balance -= 1`.
            ++_packedAddressData[to]; // Updates: `balance += 1`.

            // Updates:
            // - `address` to the next owner.
            // - `startTimestamp` to the timestamp of transfering.
            // - `burned` to `false`.
            // - `nextInitialized` to `true`.
            _packedOwnerships[tokenId] = _packOwnershipData(
                to,
                _BITMASK_NEXT_INITIALIZED | _nextExtraData(from, to, prevOwnershipPacked)
            );

            // If the next slot may not have been initialized (i.e. `nextInitialized == false`) .
            if (prevOwnershipPacked & _BITMASK_NEXT_INITIALIZED == 0) {
                uint256 nextTokenId = tokenId + 1;
                // If the next slot's address is zero and not burned (i.e. packed value is zero).
                if (_packedOwnerships[nextTokenId] == 0) {
                    // If the next slot is within bounds.
                    if (nextTokenId != _currentIndex) {
                        // Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`.
                        _packedOwnerships[nextTokenId] = prevOwnershipPacked;
                    }
                }
            }
        }

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

    /**
     * @dev Equivalent to `safeTransferFrom(from, to, tokenId, '')`.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public payable virtual override {
        safeTransferFrom(from, to, tokenId, '');
    }

    /**
     * @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 memory _data
    ) public payable virtual override {
        transferFrom(from, to, tokenId);
        if (to.code.length != 0)
            if (!_checkContractOnERC721Received(from, to, tokenId, _data)) {
                revert TransferToNonERC721ReceiverImplementer();
            }
    }

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

    /**
     * @dev Private function to invoke {IERC721Receiver-onERC721Received} on a target contract.
     *
     * `from` - Previous owner of the given token ID.
     * `to` - Target address that will receive the token.
     * `tokenId` - Token ID to be transferred.
     * `_data` - Optional data to send along with the call.
     *
     * Returns whether the call correctly returned the expected magic value.
     */
    function _checkContractOnERC721Received(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) private returns (bool) {
        try ERC721A__IERC721Receiver(to).onERC721Received(_msgSenderERC721A(), from, tokenId, _data) returns (
            bytes4 retval
        ) {
            return retval == ERC721A__IERC721Receiver(to).onERC721Received.selector;
        } catch (bytes memory reason) {
            if (reason.length == 0) {
                revert TransferToNonERC721ReceiverImplementer();
            } else {
                assembly {
                    revert(add(32, reason), mload(reason))
                }
            }
        }
    }

    // =============================================================
    //                        MINT OPERATIONS
    // =============================================================

    /**
     * @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 for each mint.
     */
    function _mint(address to, uint256 quantity) internal virtual {
        uint256 startTokenId = _currentIndex;
        if (quantity == 0) revert MintZeroQuantity();

        _beforeTokenTransfers(address(0), to, startTokenId, quantity);

        // Overflows are incredibly unrealistic.
        // `balance` and `numberMinted` have a maximum limit of 2**64.
        // `tokenId` has a maximum limit of 2**256.
        unchecked {
            // Updates:
            // - `balance += quantity`.
            // - `numberMinted += quantity`.
            //
            // We can directly add to the `balance` and `numberMinted`.
            _packedAddressData[to] += quantity * ((1 << _BITPOS_NUMBER_MINTED) | 1);

            // Updates:
            // - `address` to the owner.
            // - `startTimestamp` to the timestamp of minting.
            // - `burned` to `false`.
            // - `nextInitialized` to `quantity == 1`.
            _packedOwnerships[startTokenId] = _packOwnershipData(
                to,
                _nextInitializedFlag(quantity) | _nextExtraData(address(0), to, 0)
            );

            uint256 toMasked;
            uint256 end = startTokenId + quantity;

            // Use assembly to loop and emit the `Transfer` event for gas savings.
            // The duplicated `log4` removes an extra check and reduces stack juggling.
            // The assembly, together with the surrounding Solidity code, have been
            // delicately arranged to nudge the compiler into producing optimized opcodes.
            assembly {
                // Mask `to` to the lower 160 bits, in case the upper bits somehow aren't clean.
                toMasked := and(to, _BITMASK_ADDRESS)
                // Emit the `Transfer` event.
                log4(
                    0, // Start of data (0, since no data).
                    0, // End of data (0, since no data).
                    _TRANSFER_EVENT_SIGNATURE, // Signature.
                    0, // `address(0)`.
                    toMasked, // `to`.
                    startTokenId // `tokenId`.
                )

                // The `iszero(eq(,))` check ensures that large values of `quantity`
                // that overflows uint256 will make the loop run out of gas.
                // The compiler will optimize the `iszero` away for performance.
                for {
                    let tokenId := add(startTokenId, 1)
                } iszero(eq(tokenId, end)) {
                    tokenId := add(tokenId, 1)
                } {
                    // Emit the `Transfer` event. Similar to above.
                    log4(0, 0, _TRANSFER_EVENT_SIGNATURE, 0, toMasked, tokenId)
                }
            }
            if (toMasked == 0) revert MintToZeroAddress();

            _currentIndex = end;
        }
        _afterTokenTransfers(address(0), to, startTokenId, quantity);
    }

    /**
     * @dev Mints `quantity` tokens and transfers them to `to`.
     *
     * This function is intended for efficient minting only during contract creation.
     *
     * It emits only one {ConsecutiveTransfer} as defined in
     * [ERC2309](https://eips.ethereum.org/EIPS/eip-2309),
     * instead of a sequence of {Transfer} event(s).
     *
     * Calling this function outside of contract creation WILL make your contract
     * non-compliant with the ERC721 standard.
     * For full ERC721 compliance, substituting ERC721 {Transfer} event(s) with the ERC2309
     * {ConsecutiveTransfer} event is only permissible during contract creation.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - `quantity` must be greater than 0.
     *
     * Emits a {ConsecutiveTransfer} event.
     */
    function _mintERC2309(address to, uint256 quantity) internal virtual {
        uint256 startTokenId = _currentIndex;
        if (to == address(0)) revert MintToZeroAddress();
        if (quantity == 0) revert MintZeroQuantity();
        if (quantity > _MAX_MINT_ERC2309_QUANTITY_LIMIT) revert MintERC2309QuantityExceedsLimit();

        _beforeTokenTransfers(address(0), to, startTokenId, quantity);

        // Overflows are unrealistic due to the above check for `quantity` to be below the limit.
        unchecked {
            // Updates:
            // - `balance += quantity`.
            // - `numberMinted += quantity`.
            //
            // We can directly add to the `balance` and `numberMinted`.
            _packedAddressData[to] += quantity * ((1 << _BITPOS_NUMBER_MINTED) | 1);

            // Updates:
            // - `address` to the owner.
            // - `startTimestamp` to the timestamp of minting.
            // - `burned` to `false`.
            // - `nextInitialized` to `quantity == 1`.
            _packedOwnerships[startTokenId] = _packOwnershipData(
                to,
                _nextInitializedFlag(quantity) | _nextExtraData(address(0), to, 0)
            );

            emit ConsecutiveTransfer(startTokenId, startTokenId + quantity - 1, address(0), to);

            _currentIndex = startTokenId + quantity;
        }
        _afterTokenTransfers(address(0), to, startTokenId, quantity);
    }

    /**
     * @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.
     *
     * See {_mint}.
     *
     * Emits a {Transfer} event for each mint.
     */
    function _safeMint(
        address to,
        uint256 quantity,
        bytes memory _data
    ) internal virtual {
        _mint(to, quantity);

        unchecked {
            if (to.code.length != 0) {
                uint256 end = _currentIndex;
                uint256 index = end - quantity;
                do {
                    if (!_checkContractOnERC721Received(address(0), to, index++, _data)) {
                        revert TransferToNonERC721ReceiverImplementer();
                    }
                } while (index < end);
                // Reentrancy protection.
                if (_currentIndex != end) revert();
            }
        }
    }

    /**
     * @dev Equivalent to `_safeMint(to, quantity, '')`.
     */
    function _safeMint(address to, uint256 quantity) internal virtual {
        _safeMint(to, quantity, '');
    }

    // =============================================================
    //                        BURN OPERATIONS
    // =============================================================

    /**
     * @dev Equivalent to `_burn(tokenId, false)`.
     */
    function _burn(uint256 tokenId) internal virtual {
        _burn(tokenId, false);
    }

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

        address from = address(uint160(prevOwnershipPacked));

        (uint256 approvedAddressSlot, address approvedAddress) = _getApprovedSlotAndAddress(tokenId);

        if (approvalCheck) {
            // The nested ifs save around 20+ gas over a compound boolean condition.
            if (!_isSenderApprovedOrOwner(approvedAddress, from, _msgSenderERC721A()))
                if (!isApprovedForAll(from, _msgSenderERC721A())) revert TransferCallerNotOwnerNorApproved();
        }

        _beforeTokenTransfers(from, address(0), tokenId, 1);

        // Clear approvals from the previous owner.
        assembly {
            if approvedAddress {
                // This is equivalent to `delete _tokenApprovals[tokenId]`.
                sstore(approvedAddressSlot, 0)
            }
        }

        // 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 {
            // Updates:
            // - `balance -= 1`.
            // - `numberBurned += 1`.
            //
            // We can directly decrement the balance, and increment the number burned.
            // This is equivalent to `packed -= 1; packed += 1 << _BITPOS_NUMBER_BURNED;`.
            _packedAddressData[from] += (1 << _BITPOS_NUMBER_BURNED) - 1;

            // Updates:
            // - `address` to the last owner.
            // - `startTimestamp` to the timestamp of burning.
            // - `burned` to `true`.
            // - `nextInitialized` to `true`.
            _packedOwnerships[tokenId] = _packOwnershipData(
                from,
                (_BITMASK_BURNED | _BITMASK_NEXT_INITIALIZED) | _nextExtraData(from, address(0), prevOwnershipPacked)
            );

            // If the next slot may not have been initialized (i.e. `nextInitialized == false`) .
            if (prevOwnershipPacked & _BITMASK_NEXT_INITIALIZED == 0) {
                uint256 nextTokenId = tokenId + 1;
                // If the next slot's address is zero and not burned (i.e. packed value is zero).
                if (_packedOwnerships[nextTokenId] == 0) {
                    // If the next slot is within bounds.
                    if (nextTokenId != _currentIndex) {
                        // Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`.
                        _packedOwnerships[nextTokenId] = prevOwnershipPacked;
                    }
                }
            }
        }

        emit Transfer(from, address(0), tokenId);
        _afterTokenTransfers(from, address(0), tokenId, 1);

        // Overflow not possible, as _burnCounter cannot be exceed _currentIndex times.
        unchecked {
            _burnCounter++;
        }
    }

    // =============================================================
    //                     EXTRA DATA OPERATIONS
    // =============================================================

    /**
     * @dev Directly sets the extra data for the ownership data `index`.
     */
    function _setExtraDataAt(uint256 index, uint24 extraData) internal virtual {
        uint256 packed = _packedOwnerships[index];
        if (packed == 0) revert OwnershipNotInitializedForExtraData();
        uint256 extraDataCasted;
        // Cast `extraData` with assembly to avoid redundant masking.
        assembly {
            extraDataCasted := extraData
        }
        packed = (packed & _BITMASK_EXTRA_DATA_COMPLEMENT) | (extraDataCasted << _BITPOS_EXTRA_DATA);
        _packedOwnerships[index] = packed;
    }

    /**
     * @dev Called during each token transfer to set the 24bit `extraData` field.
     * Intended to be overridden by the cosumer contract.
     *
     * `previousExtraData` - the value of `extraData` before transfer.
     *
     * 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 _extraData(
        address from,
        address to,
        uint24 previousExtraData
    ) internal view virtual returns (uint24) {}

    /**
     * @dev Returns the next extra data for the packed ownership data.
     * The returned result is shifted into position.
     */
    function _nextExtraData(
        address from,
        address to,
        uint256 prevOwnershipPacked
    ) private view returns (uint256) {
        uint24 extraData = uint24(prevOwnershipPacked >> _BITPOS_EXTRA_DATA);
        return uint256(_extraData(from, to, extraData)) << _BITPOS_EXTRA_DATA;
    }

    // =============================================================
    //                       OTHER OPERATIONS
    // =============================================================

    /**
     * @dev Returns the message sender (defaults to `msg.sender`).
     *
     * If you are writing GSN compatible contracts, you need to override this function.
     */
    function _msgSenderERC721A() internal view virtual returns (address) {
        return msg.sender;
    }

    /**
     * @dev Converts a uint256 to its ASCII string decimal representation.
     */
    function _toString(uint256 value) internal pure virtual returns (string memory str) {
        assembly {
            // The maximum value of a uint256 contains 78 digits (1 byte per digit), but
            // we allocate 0xa0 bytes to keep the free memory pointer 32-byte word aligned.
            // We will need 1 word for the trailing zeros padding, 1 word for the length,
            // and 3 words for a maximum of 78 digits. Total: 5 * 0x20 = 0xa0.
            let m := add(mload(0x40), 0xa0)
            // Update the free memory pointer to allocate.
            mstore(0x40, m)
            // Assign the `str` to the end.
            str := sub(m, 0x20)
            // Zeroize the slot after the string.
            mstore(str, 0)

            // Cache the end of the memory to calculate the length later.
            let end := str

            // We write the string from rightmost digit to leftmost digit.
            // The following is essentially a do-while loop that also handles the zero case.
            // prettier-ignore
            for { let temp := value } 1 {} {
                str := sub(str, 1)
                // Write the character to the pointer.
                // The ASCII index of the '0' character is 48.
                mstore8(str, add(48, mod(temp, 10)))
                // Keep dividing `temp` until zero.
                temp := div(temp, 10)
                // prettier-ignore
                if iszero(temp) { break }
            }

            let length := sub(end, str)
            // Move the pointer 32 bytes leftwards to make room for the length.
            str := sub(str, 0x20)
            // Store the length.
            mstore(str, length)
        }
    }
}

File 10 of 20 : ECDSA.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.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 // Deprecated in v4.8
    }

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

    /**
     * @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) {
        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.
            /// @solidity memory-safe-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 {
            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 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 11 of 20 : OperatorFilterer.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.13;

import {IOperatorFilterRegistry} from "./IOperatorFilterRegistry.sol";

/**
 * @title  OperatorFilterer
 * @notice Abstract contract whose constructor automatically registers and optionally subscribes to or copies another
 *         registrant's entries in the OperatorFilterRegistry.
 * @dev    This smart contract is meant to be inherited by token contracts so they can use the following:
 *         - `onlyAllowedOperator` modifier for `transferFrom` and `safeTransferFrom` methods.
 *         - `onlyAllowedOperatorApproval` modifier for `approve` and `setApprovalForAll` methods.
 */
abstract contract OperatorFilterer {
    error OperatorNotAllowed(address operator);

    IOperatorFilterRegistry public constant OPERATOR_FILTER_REGISTRY =
        IOperatorFilterRegistry(0x000000000000AAeB6D7670E522A718067333cd4E);

    constructor(address subscriptionOrRegistrantToCopy, bool subscribe) {
        // If an inheriting token contract is deployed to a network without the registry deployed, the modifier
        // will not revert, but the contract will need to be registered with the registry once it is deployed in
        // order for the modifier to filter addresses.
        if (address(OPERATOR_FILTER_REGISTRY).code.length > 0) {
            if (subscribe) {
                OPERATOR_FILTER_REGISTRY.registerAndSubscribe(address(this), subscriptionOrRegistrantToCopy);
            } else {
                if (subscriptionOrRegistrantToCopy != address(0)) {
                    OPERATOR_FILTER_REGISTRY.registerAndCopyEntries(address(this), subscriptionOrRegistrantToCopy);
                } else {
                    OPERATOR_FILTER_REGISTRY.register(address(this));
                }
            }
        }
    }

    modifier onlyAllowedOperator(address from) virtual {
        // Allow spending tokens from addresses with balance
        // Note that this still allows listings and marketplaces with escrow to transfer tokens if transferred
        // from an EOA.
        if (from != msg.sender) {
            _checkFilterOperator(msg.sender);
        }
        _;
    }

    modifier onlyAllowedOperatorApproval(address operator) virtual {
        _checkFilterOperator(operator);
        _;
    }

    function _checkFilterOperator(address operator) internal view virtual {
        // Check registry code length to facilitate testing in environments without a deployed registry.
        if (address(OPERATOR_FILTER_REGISTRY).code.length > 0) {
            if (!OPERATOR_FILTER_REGISTRY.isOperatorAllowed(address(this), operator)) {
                revert OperatorNotAllowed(operator);
            }
        }
    }
}

File 12 of 20 : IERC721A.sol
// SPDX-License-Identifier: MIT
// ERC721A Contracts v4.2.3
// Creator: Chiru Labs

pragma solidity ^0.8.4;

/**
 * @dev Interface of ERC721A.
 */
interface IERC721A {
    /**
     * The caller must own the token or be an approved operator.
     */
    error ApprovalCallerNotOwnerNorApproved();

    /**
     * The token does not exist.
     */
    error ApprovalQueryForNonexistentToken();

    /**
     * Cannot query the balance for the zero address.
     */
    error BalanceQueryForZeroAddress();

    /**
     * Cannot mint to the zero address.
     */
    error MintToZeroAddress();

    /**
     * The quantity of tokens minted must be more than zero.
     */
    error MintZeroQuantity();

    /**
     * The token does not exist.
     */
    error OwnerQueryForNonexistentToken();

    /**
     * The caller must own the token or be an approved operator.
     */
    error TransferCallerNotOwnerNorApproved();

    /**
     * The token must be owned by `from`.
     */
    error TransferFromIncorrectOwner();

    /**
     * Cannot safely transfer to a contract that does not implement the
     * ERC721Receiver interface.
     */
    error TransferToNonERC721ReceiverImplementer();

    /**
     * Cannot transfer to the zero address.
     */
    error TransferToZeroAddress();

    /**
     * The token does not exist.
     */
    error URIQueryForNonexistentToken();

    /**
     * The `quantity` minted with ERC2309 exceeds the safety limit.
     */
    error MintERC2309QuantityExceedsLimit();

    /**
     * The `extraData` cannot be set on an unintialized ownership slot.
     */
    error OwnershipNotInitializedForExtraData();

    // =============================================================
    //                            STRUCTS
    // =============================================================

    struct TokenOwnership {
        // The address of the owner.
        address addr;
        // Stores the start time of ownership with minimal overhead for tokenomics.
        uint64 startTimestamp;
        // Whether the token has been burned.
        bool burned;
        // Arbitrary data similar to `startTimestamp` that can be set via {_extraData}.
        uint24 extraData;
    }

    // =============================================================
    //                         TOKEN COUNTERS
    // =============================================================

    /**
     * @dev Returns the total number of tokens in existence.
     * Burned tokens will reduce the count.
     * To get the total number of tokens minted, please see {_totalMinted}.
     */
    function totalSupply() external view returns (uint256);

    // =============================================================
    //                            IERC165
    // =============================================================

    /**
     * @dev Returns true if this contract implements the interface defined by
     * `interfaceId`. See the corresponding
     * [EIP section](https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified)
     * to learn more about how these ids are created.
     *
     * This function call must use less than 30000 gas.
     */
    function supportsInterface(bytes4 interfaceId) external view returns (bool);

    // =============================================================
    //                            IERC721
    // =============================================================

    /**
     * @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,
        bytes calldata data
    ) external payable;

    /**
     * @dev Equivalent to `safeTransferFrom(from, to, tokenId, '')`.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId
    ) external payable;

    /**
     * @dev Transfers `tokenId` 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 payable;

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

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

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

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

    // =============================================================
    //                        IERC721Metadata
    // =============================================================

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

    // =============================================================
    //                           IERC2309
    // =============================================================

    /**
     * @dev Emitted when tokens in `fromTokenId` to `toTokenId`
     * (inclusive) is transferred from `from` to `to`, as defined in the
     * [ERC2309](https://eips.ethereum.org/EIPS/eip-2309) standard.
     *
     * See {_mintERC2309} for more details.
     */
    event ConsecutiveTransfer(uint256 indexed fromTokenId, uint256 toTokenId, address indexed from, address indexed to);
}

File 13 of 20 : Math.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (utils/math/Math.sol)

pragma solidity ^0.8.0;

/**
 * @dev Standard math utilities missing in the Solidity language.
 */
library Math {
    enum Rounding {
        Down, // Toward negative infinity
        Up, // Toward infinity
        Zero // Toward zero
    }

    /**
     * @dev Returns the largest of two numbers.
     */
    function max(uint256 a, uint256 b) internal pure returns (uint256) {
        return a > b ? a : b;
    }

    /**
     * @dev Returns the smallest of two numbers.
     */
    function min(uint256 a, uint256 b) internal pure returns (uint256) {
        return a < b ? a : b;
    }

    /**
     * @dev Returns the average of two numbers. The result is rounded towards
     * zero.
     */
    function average(uint256 a, uint256 b) internal pure returns (uint256) {
        // (a + b) / 2 can overflow.
        return (a & b) + (a ^ b) / 2;
    }

    /**
     * @dev Returns the ceiling of the division of two numbers.
     *
     * This differs from standard division with `/` in that it rounds up instead
     * of rounding down.
     */
    function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) {
        // (a + b - 1) / b can overflow on addition, so we distribute.
        return a == 0 ? 0 : (a - 1) / b + 1;
    }

    /**
     * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or denominator == 0
     * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv)
     * with further edits by Uniswap Labs also under MIT license.
     */
    function mulDiv(
        uint256 x,
        uint256 y,
        uint256 denominator
    ) internal pure returns (uint256 result) {
        unchecked {
            // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use
            // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256
            // variables such that product = prod1 * 2^256 + prod0.
            uint256 prod0; // Least significant 256 bits of the product
            uint256 prod1; // Most significant 256 bits of the product
            assembly {
                let mm := mulmod(x, y, not(0))
                prod0 := mul(x, y)
                prod1 := sub(sub(mm, prod0), lt(mm, prod0))
            }

            // Handle non-overflow cases, 256 by 256 division.
            if (prod1 == 0) {
                return prod0 / denominator;
            }

            // Make sure the result is less than 2^256. Also prevents denominator == 0.
            require(denominator > prod1);

            ///////////////////////////////////////////////
            // 512 by 256 division.
            ///////////////////////////////////////////////

            // Make division exact by subtracting the remainder from [prod1 prod0].
            uint256 remainder;
            assembly {
                // Compute remainder using mulmod.
                remainder := mulmod(x, y, denominator)

                // Subtract 256 bit number from 512 bit number.
                prod1 := sub(prod1, gt(remainder, prod0))
                prod0 := sub(prod0, remainder)
            }

            // Factor powers of two out of denominator and compute largest power of two divisor of denominator. Always >= 1.
            // See https://cs.stackexchange.com/q/138556/92363.

            // Does not overflow because the denominator cannot be zero at this stage in the function.
            uint256 twos = denominator & (~denominator + 1);
            assembly {
                // Divide denominator by twos.
                denominator := div(denominator, twos)

                // Divide [prod1 prod0] by twos.
                prod0 := div(prod0, twos)

                // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one.
                twos := add(div(sub(0, twos), twos), 1)
            }

            // Shift in bits from prod1 into prod0.
            prod0 |= prod1 * twos;

            // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such
            // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for
            // four bits. That is, denominator * inv = 1 mod 2^4.
            uint256 inverse = (3 * denominator) ^ 2;

            // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also works
            // in modular arithmetic, doubling the correct bits in each step.
            inverse *= 2 - denominator * inverse; // inverse mod 2^8
            inverse *= 2 - denominator * inverse; // inverse mod 2^16
            inverse *= 2 - denominator * inverse; // inverse mod 2^32
            inverse *= 2 - denominator * inverse; // inverse mod 2^64
            inverse *= 2 - denominator * inverse; // inverse mod 2^128
            inverse *= 2 - denominator * inverse; // inverse mod 2^256

            // Because the division is now exact we can divide by multiplying with the modular inverse of denominator.
            // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is
            // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1
            // is no longer required.
            result = prod0 * inverse;
            return result;
        }
    }

    /**
     * @notice Calculates x * y / denominator with full precision, following the selected rounding direction.
     */
    function mulDiv(
        uint256 x,
        uint256 y,
        uint256 denominator,
        Rounding rounding
    ) internal pure returns (uint256) {
        uint256 result = mulDiv(x, y, denominator);
        if (rounding == Rounding.Up && mulmod(x, y, denominator) > 0) {
            result += 1;
        }
        return result;
    }

    /**
     * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded down.
     *
     * Inspired by Henry S. Warren, Jr.'s "Hacker's Delight" (Chapter 11).
     */
    function sqrt(uint256 a) internal pure returns (uint256) {
        if (a == 0) {
            return 0;
        }

        // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target.
        //
        // We know that the "msb" (most significant bit) of our target number `a` is a power of 2 such that we have
        // `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`.
        //
        // This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)`
        // → `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))`
        // → `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)`
        //
        // Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit.
        uint256 result = 1 << (log2(a) >> 1);

        // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128,
        // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at
        // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision
        // into the expected uint128 result.
        unchecked {
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            return min(result, a / result);
        }
    }

    /**
     * @notice Calculates sqrt(a), following the selected rounding direction.
     */
    function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = sqrt(a);
            return result + (rounding == Rounding.Up && result * result < a ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 2, rounded down, of a positive value.
     * Returns 0 if given 0.
     */
    function log2(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >> 128 > 0) {
                value >>= 128;
                result += 128;
            }
            if (value >> 64 > 0) {
                value >>= 64;
                result += 64;
            }
            if (value >> 32 > 0) {
                value >>= 32;
                result += 32;
            }
            if (value >> 16 > 0) {
                value >>= 16;
                result += 16;
            }
            if (value >> 8 > 0) {
                value >>= 8;
                result += 8;
            }
            if (value >> 4 > 0) {
                value >>= 4;
                result += 4;
            }
            if (value >> 2 > 0) {
                value >>= 2;
                result += 2;
            }
            if (value >> 1 > 0) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 2, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log2(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log2(value);
            return result + (rounding == Rounding.Up && 1 << result < value ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 10, rounded down, of a positive value.
     * Returns 0 if given 0.
     */
    function log10(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >= 10**64) {
                value /= 10**64;
                result += 64;
            }
            if (value >= 10**32) {
                value /= 10**32;
                result += 32;
            }
            if (value >= 10**16) {
                value /= 10**16;
                result += 16;
            }
            if (value >= 10**8) {
                value /= 10**8;
                result += 8;
            }
            if (value >= 10**4) {
                value /= 10**4;
                result += 4;
            }
            if (value >= 10**2) {
                value /= 10**2;
                result += 2;
            }
            if (value >= 10**1) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 10, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log10(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log10(value);
            return result + (rounding == Rounding.Up && 10**result < value ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 256, rounded down, of a positive value.
     * Returns 0 if given 0.
     *
     * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string.
     */
    function log256(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >> 128 > 0) {
                value >>= 128;
                result += 16;
            }
            if (value >> 64 > 0) {
                value >>= 64;
                result += 8;
            }
            if (value >> 32 > 0) {
                value >>= 32;
                result += 4;
            }
            if (value >> 16 > 0) {
                value >>= 16;
                result += 2;
            }
            if (value >> 8 > 0) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 10, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log256(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log256(value);
            return result + (rounding == Rounding.Up && 1 << (result * 8) < value ? 1 : 0);
        }
    }
}

File 14 of 20 : ERC1967UpgradeUpgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (proxy/ERC1967/ERC1967Upgrade.sol)

pragma solidity ^0.8.2;

import "../beacon/IBeaconUpgradeable.sol";
import "../../interfaces/draft-IERC1822Upgradeable.sol";
import "../../utils/AddressUpgradeable.sol";
import "../../utils/StorageSlotUpgradeable.sol";
import "../utils/Initializable.sol";

/**
 * @dev This abstract contract provides getters and event emitting update functions for
 * https://eips.ethereum.org/EIPS/eip-1967[EIP1967] slots.
 *
 * _Available since v4.1._
 *
 * @custom:oz-upgrades-unsafe-allow delegatecall
 */
abstract contract ERC1967UpgradeUpgradeable is Initializable {
    function __ERC1967Upgrade_init() internal onlyInitializing {
    }

    function __ERC1967Upgrade_init_unchained() internal onlyInitializing {
    }
    // This is the keccak-256 hash of "eip1967.proxy.rollback" subtracted by 1
    bytes32 private constant _ROLLBACK_SLOT = 0x4910fdfa16fed3260ed0e7147f7cc6da11a60208b5b9406d12a635614ffd9143;

    /**
     * @dev Storage slot with the address of the current implementation.
     * This is the keccak-256 hash of "eip1967.proxy.implementation" subtracted by 1, and is
     * validated in the constructor.
     */
    bytes32 internal constant _IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;

    /**
     * @dev Emitted when the implementation is upgraded.
     */
    event Upgraded(address indexed implementation);

    /**
     * @dev Returns the current implementation address.
     */
    function _getImplementation() internal view returns (address) {
        return StorageSlotUpgradeable.getAddressSlot(_IMPLEMENTATION_SLOT).value;
    }

    /**
     * @dev Stores a new address in the EIP1967 implementation slot.
     */
    function _setImplementation(address newImplementation) private {
        require(AddressUpgradeable.isContract(newImplementation), "ERC1967: new implementation is not a contract");
        StorageSlotUpgradeable.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation;
    }

    /**
     * @dev Perform implementation upgrade
     *
     * Emits an {Upgraded} event.
     */
    function _upgradeTo(address newImplementation) internal {
        _setImplementation(newImplementation);
        emit Upgraded(newImplementation);
    }

    /**
     * @dev Perform implementation upgrade with additional setup call.
     *
     * Emits an {Upgraded} event.
     */
    function _upgradeToAndCall(
        address newImplementation,
        bytes memory data,
        bool forceCall
    ) internal {
        _upgradeTo(newImplementation);
        if (data.length > 0 || forceCall) {
            _functionDelegateCall(newImplementation, data);
        }
    }

    /**
     * @dev Perform implementation upgrade with security checks for UUPS proxies, and additional setup call.
     *
     * Emits an {Upgraded} event.
     */
    function _upgradeToAndCallUUPS(
        address newImplementation,
        bytes memory data,
        bool forceCall
    ) internal {
        // Upgrades from old implementations will perform a rollback test. This test requires the new
        // implementation to upgrade back to the old, non-ERC1822 compliant, implementation. Removing
        // this special case will break upgrade paths from old UUPS implementation to new ones.
        if (StorageSlotUpgradeable.getBooleanSlot(_ROLLBACK_SLOT).value) {
            _setImplementation(newImplementation);
        } else {
            try IERC1822ProxiableUpgradeable(newImplementation).proxiableUUID() returns (bytes32 slot) {
                require(slot == _IMPLEMENTATION_SLOT, "ERC1967Upgrade: unsupported proxiableUUID");
            } catch {
                revert("ERC1967Upgrade: new implementation is not UUPS");
            }
            _upgradeToAndCall(newImplementation, data, forceCall);
        }
    }

    /**
     * @dev Storage slot with the admin of the contract.
     * This is the keccak-256 hash of "eip1967.proxy.admin" subtracted by 1, and is
     * validated in the constructor.
     */
    bytes32 internal constant _ADMIN_SLOT = 0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103;

    /**
     * @dev Emitted when the admin account has changed.
     */
    event AdminChanged(address previousAdmin, address newAdmin);

    /**
     * @dev Returns the current admin.
     */
    function _getAdmin() internal view returns (address) {
        return StorageSlotUpgradeable.getAddressSlot(_ADMIN_SLOT).value;
    }

    /**
     * @dev Stores a new address in the EIP1967 admin slot.
     */
    function _setAdmin(address newAdmin) private {
        require(newAdmin != address(0), "ERC1967: new admin is the zero address");
        StorageSlotUpgradeable.getAddressSlot(_ADMIN_SLOT).value = newAdmin;
    }

    /**
     * @dev Changes the admin of the proxy.
     *
     * Emits an {AdminChanged} event.
     */
    function _changeAdmin(address newAdmin) internal {
        emit AdminChanged(_getAdmin(), newAdmin);
        _setAdmin(newAdmin);
    }

    /**
     * @dev The storage slot of the UpgradeableBeacon contract which defines the implementation for this proxy.
     * This is bytes32(uint256(keccak256('eip1967.proxy.beacon')) - 1)) and is validated in the constructor.
     */
    bytes32 internal constant _BEACON_SLOT = 0xa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6cb3582b35133d50;

    /**
     * @dev Emitted when the beacon is upgraded.
     */
    event BeaconUpgraded(address indexed beacon);

    /**
     * @dev Returns the current beacon.
     */
    function _getBeacon() internal view returns (address) {
        return StorageSlotUpgradeable.getAddressSlot(_BEACON_SLOT).value;
    }

    /**
     * @dev Stores a new beacon in the EIP1967 beacon slot.
     */
    function _setBeacon(address newBeacon) private {
        require(AddressUpgradeable.isContract(newBeacon), "ERC1967: new beacon is not a contract");
        require(
            AddressUpgradeable.isContract(IBeaconUpgradeable(newBeacon).implementation()),
            "ERC1967: beacon implementation is not a contract"
        );
        StorageSlotUpgradeable.getAddressSlot(_BEACON_SLOT).value = newBeacon;
    }

    /**
     * @dev Perform beacon upgrade with additional setup call. Note: This upgrades the address of the beacon, it does
     * not upgrade the implementation contained in the beacon (see {UpgradeableBeacon-_setImplementation} for that).
     *
     * Emits a {BeaconUpgraded} event.
     */
    function _upgradeBeaconToAndCall(
        address newBeacon,
        bytes memory data,
        bool forceCall
    ) internal {
        _setBeacon(newBeacon);
        emit BeaconUpgraded(newBeacon);
        if (data.length > 0 || forceCall) {
            _functionDelegateCall(IBeaconUpgradeable(newBeacon).implementation(), data);
        }
    }

    /**
     * @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) private returns (bytes memory) {
        require(AddressUpgradeable.isContract(target), "Address: delegate call to non-contract");

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = target.delegatecall(data);
        return AddressUpgradeable.verifyCallResult(success, returndata, "Address: low-level delegate call failed");
    }

    /**
     * @dev This empty reserved space is put in place to allow future versions to add new
     * variables without shifting down storage in the inheritance chain.
     * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps
     */
    uint256[50] private __gap;
}

File 15 of 20 : draft-IERC1822Upgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (interfaces/draft-IERC1822.sol)

pragma solidity ^0.8.0;

/**
 * @dev ERC1822: Universal Upgradeable Proxy Standard (UUPS) documents a method for upgradeability through a simplified
 * proxy whose upgrades are fully controlled by the current implementation.
 */
interface IERC1822ProxiableUpgradeable {
    /**
     * @dev Returns the storage slot that the proxiable contract assumes is being used to store the implementation
     * address.
     *
     * IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks
     * bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this
     * function revert if invoked through a proxy.
     */
    function proxiableUUID() external view returns (bytes32);
}

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

pragma solidity ^0.8.1;

/**
 * @dev Collection of functions related to the address type
 */
library AddressUpgradeable {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     *
     * [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 functionCallWithValue(target, data, 0, "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");
        (bool success, bytes memory returndata) = target.call{value: value}(data);
        return verifyCallResultFromTarget(target, 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) {
        (bool success, bytes memory returndata) = target.staticcall(data);
        return verifyCallResultFromTarget(target, success, returndata, errorMessage);
    }

    /**
     * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling
     * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract.
     *
     * _Available since v4.8._
     */
    function verifyCallResultFromTarget(
        address target,
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        if (success) {
            if (returndata.length == 0) {
                // only check isContract if the call was successful and the return data is empty
                // otherwise we already know that it was a contract
                require(isContract(target), "Address: call to non-contract");
            }
            return returndata;
        } else {
            _revert(returndata, errorMessage);
        }
    }

    /**
     * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason or 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 {
            _revert(returndata, errorMessage);
        }
    }

    function _revert(bytes memory returndata, string memory errorMessage) private pure {
        // Look for revert reason and bubble it up if present
        if (returndata.length > 0) {
            // The easiest way to bubble the revert reason is using memory via assembly
            /// @solidity memory-safe-assembly
            assembly {
                let returndata_size := mload(returndata)
                revert(add(32, returndata), returndata_size)
            }
        } else {
            revert(errorMessage);
        }
    }
}

File 17 of 20 : ContextUpgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)

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

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

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

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

    /**
     * @dev This empty reserved space is put in place to allow future versions to add new
     * variables without shifting down storage in the inheritance chain.
     * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps
     */
    uint256[50] private __gap;
}

File 18 of 20 : IOperatorFilterRegistry.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.13;

interface IOperatorFilterRegistry {
    function isOperatorAllowed(address registrant, address operator) external view returns (bool);
    function register(address registrant) external;
    function registerAndSubscribe(address registrant, address subscription) external;
    function registerAndCopyEntries(address registrant, address registrantToCopy) external;
    function unregister(address addr) external;
    function updateOperator(address registrant, address operator, bool filtered) external;
    function updateOperators(address registrant, address[] calldata operators, bool filtered) external;
    function updateCodeHash(address registrant, bytes32 codehash, bool filtered) external;
    function updateCodeHashes(address registrant, bytes32[] calldata codeHashes, bool filtered) external;
    function subscribe(address registrant, address registrantToSubscribe) external;
    function unsubscribe(address registrant, bool copyExistingEntries) external;
    function subscriptionOf(address addr) external returns (address registrant);
    function subscribers(address registrant) external returns (address[] memory);
    function subscriberAt(address registrant, uint256 index) external returns (address);
    function copyEntriesOf(address registrant, address registrantToCopy) external;
    function isOperatorFiltered(address registrant, address operator) external returns (bool);
    function isCodeHashOfFiltered(address registrant, address operatorWithCode) external returns (bool);
    function isCodeHashFiltered(address registrant, bytes32 codeHash) external returns (bool);
    function filteredOperators(address addr) external returns (address[] memory);
    function filteredCodeHashes(address addr) external returns (bytes32[] memory);
    function filteredOperatorAt(address registrant, uint256 index) external returns (address);
    function filteredCodeHashAt(address registrant, uint256 index) external returns (bytes32);
    function isRegistered(address addr) external returns (bool);
    function codeHashOf(address addr) external returns (bytes32);
}

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

pragma solidity ^0.8.0;

/**
 * @dev Library for reading and writing primitive types to specific storage slots.
 *
 * Storage slots are often used to avoid storage conflict when dealing with upgradeable contracts.
 * This library helps with reading and writing to such slots without the need for inline assembly.
 *
 * The functions in this library return Slot structs that contain a `value` member that can be used to read or write.
 *
 * Example usage to set ERC1967 implementation slot:
 * ```
 * contract ERC1967 {
 *     bytes32 internal constant _IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;
 *
 *     function _getImplementation() internal view returns (address) {
 *         return StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value;
 *     }
 *
 *     function _setImplementation(address newImplementation) internal {
 *         require(Address.isContract(newImplementation), "ERC1967: new implementation is not a contract");
 *         StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation;
 *     }
 * }
 * ```
 *
 * _Available since v4.1 for `address`, `bool`, `bytes32`, and `uint256`._
 */
library StorageSlotUpgradeable {
    struct AddressSlot {
        address value;
    }

    struct BooleanSlot {
        bool value;
    }

    struct Bytes32Slot {
        bytes32 value;
    }

    struct Uint256Slot {
        uint256 value;
    }

    /**
     * @dev Returns an `AddressSlot` with member `value` located at `slot`.
     */
    function getAddressSlot(bytes32 slot) internal pure returns (AddressSlot storage r) {
        /// @solidity memory-safe-assembly
        assembly {
            r.slot := slot
        }
    }

    /**
     * @dev Returns an `BooleanSlot` with member `value` located at `slot`.
     */
    function getBooleanSlot(bytes32 slot) internal pure returns (BooleanSlot storage r) {
        /// @solidity memory-safe-assembly
        assembly {
            r.slot := slot
        }
    }

    /**
     * @dev Returns an `Bytes32Slot` with member `value` located at `slot`.
     */
    function getBytes32Slot(bytes32 slot) internal pure returns (Bytes32Slot storage r) {
        /// @solidity memory-safe-assembly
        assembly {
            r.slot := slot
        }
    }

    /**
     * @dev Returns an `Uint256Slot` with member `value` located at `slot`.
     */
    function getUint256Slot(bytes32 slot) internal pure returns (Uint256Slot storage r) {
        /// @solidity memory-safe-assembly
        assembly {
            r.slot := slot
        }
    }
}

File 20 of 20 : IBeaconUpgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (proxy/beacon/IBeacon.sol)

pragma solidity ^0.8.0;

/**
 * @dev This is the interface that {BeaconProxy} expects of its beacon.
 */
interface IBeaconUpgradeable {
    /**
     * @dev Must return an address that can be used as a delegate call target.
     *
     * {BeaconProxy} will check that this address is a contract.
     */
    function implementation() external view returns (address);
}

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

Contract Security Audit

Contract ABI

[{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"MintERC2309QuantityExceedsLimit","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[{"internalType":"address","name":"operator","type":"address"}],"name":"OperatorNotAllowed","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"OwnershipNotInitializedForExtraData","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"inputs":[],"name":"URIQueryForNonexistentToken","type":"error"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"previousAdmin","type":"address"},{"indexed":false,"internalType":"address","name":"newAdmin","type":"address"}],"name":"AdminChanged","type":"event"},{"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":"beacon","type":"address"}],"name":"BeaconUpgraded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"fromTokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"toTokenId","type":"uint256"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"}],"name":"ConsecutiveTransfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint8","name":"version","type":"uint8"}],"name":"Initialized","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"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"implementation","type":"address"}],"name":"Upgraded","type":"event"},{"inputs":[],"name":"OPERATOR_FILTER_REGISTRY","outputs":[{"internalType":"contract IOperatorFilterRegistry","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_cargoId","type":"uint256"}],"name":"buildJSON","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_cargoId","type":"uint256"}],"name":"burnCargo","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"cargoStreak","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"getAddressLastMintedTimestamp","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"getAddressStreak","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_cargoId","type":"uint256"}],"name":"getCargoStreak","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes","name":"_signature","type":"bytes"}],"name":"getDailyCargo","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"getLatestCargoMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_lastMintedTimestamp","type":"uint256"}],"name":"missedADay","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":[{"internalType":"address","name":"","type":"address"}],"name":"players","outputs":[{"internalType":"uint64","name":"lastClaimed","type":"uint64"},{"internalType":"uint64","name":"streak","type":"uint64"},{"internalType":"uint128","name":"activeCargoId","type":"uint128"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"proxiableUUID","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"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":"payable","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":"payable","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":"_attributesEnd","type":"string"}],"name":"setAttributesEnd","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_attributesStart","type":"string"}],"name":"setAttributesStart","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_baseName","type":"string"}],"name":"setBaseName","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_baseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_description","type":"string"}],"name":"setDescription","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_externalUrl","type":"string"}],"name":"setExternalUrl","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_signerAddress","type":"address"}],"name":"setSignerAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_cargoId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newImplementation","type":"address"}],"name":"upgradeTo","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newImplementation","type":"address"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"upgradeToAndCall","outputs":[],"stateMutability":"payable","type":"function"}]

60a06040523073ffffffffffffffffffffffffffffffffffffffff1660809073ffffffffffffffffffffffffffffffffffffffff16815250604051806080016040528060608152602001620067646060913961010490816200006291906200062f565b506040518060400160405280601381526020017f68747470733a2f2f667265656e66742e78797a000000000000000000000000008152506101059081620000aa91906200062f565b506040518060800160405280604e8152602001620067c4604e91396101069081620000d691906200062f565b506040518060400160405280600d81526020017f4461696c7920436172676f20230000000000000000000000000000000000000081525061010790816200011e91906200062f565b50604051806060016040528060228152602001620068126022913961010890816200014a91906200062f565b506040518060400160405280600281526020017f7d5d00000000000000000000000000000000000000000000000000000000000081525061010990816200019291906200062f565b50348015620001a057600080fd5b50733cc6cdda760b79bafa08df41ecfa224f810dceb6600160006daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff163b1115620003ad57801562000273576daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff16637d3e3dbe30846040518363ffffffff1660e01b8152600401620002399291906200075b565b600060405180830381600087803b1580156200025457600080fd5b505af115801562000269573d6000803e3d6000fd5b50505050620003ac565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16146200032d576daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff1663a0af290330846040518363ffffffff1660e01b8152600401620002f39291906200075b565b600060405180830381600087803b1580156200030e57600080fd5b505af115801562000323573d6000803e3d6000fd5b50505050620003ab565b6daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff16634420e486306040518263ffffffff1660e01b815260040162000376919062000788565b600060405180830381600087803b1580156200039157600080fd5b505af1158015620003a6573d6000803e3d6000fd5b505050505b5b5b5050620007a5565b600081519050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806200043757607f821691505b6020821081036200044d576200044c620003ef565b5b50919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b600060088302620004b77fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8262000478565b620004c3868362000478565b95508019841693508086168417925050509392505050565b6000819050919050565b6000819050919050565b6000620005106200050a6200050484620004db565b620004e5565b620004db565b9050919050565b6000819050919050565b6200052c83620004ef565b620005446200053b8262000517565b84845462000485565b825550505050565b600090565b6200055b6200054c565b6200056881848462000521565b505050565b5b8181101562000590576200058460008262000551565b6001810190506200056e565b5050565b601f821115620005df57620005a98162000453565b620005b48462000468565b81016020851015620005c4578190505b620005dc620005d38562000468565b8301826200056d565b50505b505050565b600082821c905092915050565b60006200060460001984600802620005e4565b1980831691505092915050565b60006200061f8383620005f1565b9150826002028217905092915050565b6200063a82620003b5565b67ffffffffffffffff811115620006565762000655620003c0565b5b6200066282546200041e565b6200066f82828562000594565b600060209050601f831160018114620006a7576000841562000692578287015190505b6200069e858262000611565b8655506200070e565b601f198416620006b78662000453565b60005b82811015620006e157848901518255600182019150602085019450602081019050620006ba565b86831015620007015784890151620006fd601f891682620005f1565b8355505b6001600288020188555050505b505050505050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000620007438262000716565b9050919050565b620007558162000736565b82525050565b60006040820190506200077260008301856200074a565b6200078160208301846200074a565b9392505050565b60006020820190506200079f60008301846200074a565b92915050565b608051615f79620007eb60003960008181610f7401528181611002015281816111f4015281816112820152818161134c015281816117c201526118500152615f796000f3fe6080604052600436106102305760003560e01c8063501e20f01161012e578063962cb602116100ab578063e8b0fb701161006f578063e8b0fb7014610818578063e985e9c514610855578063eaebdd5314610892578063f2fde38b146108cf578063fae99f71146108f857610230565b8063962cb6021461072e578063a22cb46514610757578063b88d4fde14610780578063c87b56dd1461079c578063e2eb41ff146107d957610230565b8063715018a6116100f2578063715018a6146106815780638129fc1c146106985780638da5cb5b146106af57806390c3f38f146106da57806395d89b411461070357610230565b8063501e20f01461057657806352d1902d146105b357806355f804b3146105de5780636352211e1461060757806370a082311461064457610230565b80631dba95ac116101bc57806341f434341161018057806341f43434146104ad57806342842e0e146104d857806346ccc416146104f45780634e63510f146105315780634f1ef2861461055a57610230565b80631dba95ac146103d95780631edbd4c81461041657806323b872dd1461043f57806326d58ad31461045b5780633659cfe61461048457610230565b8063081812fc11610203578063081812fc14610303578063095ea7b3146103405780630a928aef1461035c57806318160ddd146103855780631b2121aa146103b057610230565b806301ffc9a71461023557806302053b7714610272578063046dc166146102af57806306fdde03146102d8575b600080fd5b34801561024157600080fd5b5061025c60048036038101906102579190614048565b610935565b6040516102699190614090565b60405180910390f35b34801561027e57600080fd5b50610299600480360381019061029491906140e1565b6109c7565b6040516102a6919061411d565b60405180910390f35b3480156102bb57600080fd5b506102d660048036038101906102d19190614196565b6109e0565b005b3480156102e457600080fd5b506102ed610a2d565b6040516102fa9190614253565b60405180910390f35b34801561030f57600080fd5b5061032a600480360381019061032591906140e1565b610abf565b6040516103379190614284565b60405180910390f35b61035a6004803603810190610355919061429f565b610b3e565b005b34801561036857600080fd5b50610383600480360381019061037e91906140e1565b610b57565b005b34801561039157600080fd5b5061039a610b63565b6040516103a7919061411d565b60405180910390f35b3480156103bc57600080fd5b506103d760048036038101906103d29190614414565b610b7a565b005b3480156103e557600080fd5b5061040060048036038101906103fb91906140e1565b610b96565b60405161040d9190614253565b60405180910390f35b34801561042257600080fd5b5061043d60048036038101906104389190614414565b610d33565b005b6104596004803603810190610454919061445d565b610d4f565b005b34801561046757600080fd5b50610482600480360381019061047d9190614414565b610f56565b005b34801561049057600080fd5b506104ab60048036038101906104a69190614196565b610f72565b005b3480156104b957600080fd5b506104c26110fa565b6040516104cf919061450f565b60405180910390f35b6104f260048036038101906104ed919061445d565b61110c565b005b34801561050057600080fd5b5061051b60048036038101906105169190614196565b61116b565b604051610528919061411d565b60405180910390f35b34801561053d57600080fd5b5061055860048036038101906105539190614414565b6111d6565b005b610574600480360381019061056f91906145cb565b6111f2565b005b34801561058257600080fd5b5061059d600480360381019061059891906140e1565b61132e565b6040516105aa9190614090565b60405180910390f35b3480156105bf57600080fd5b506105c8611348565b6040516105d59190614640565b60405180910390f35b3480156105ea57600080fd5b5061060560048036038101906106009190614414565b611401565b005b34801561061357600080fd5b5061062e600480360381019061062991906140e1565b61141d565b60405161063b9190614284565b60405180910390f35b34801561065057600080fd5b5061066b60048036038101906106669190614196565b61142f565b604051610678919061411d565b60405180910390f35b34801561068d57600080fd5b506106966114e7565b005b3480156106a457600080fd5b506106ad6114fb565b005b3480156106bb57600080fd5b506106c46116e0565b6040516106d19190614284565b60405180910390f35b3480156106e657600080fd5b5061070160048036038101906106fc9190614414565b61170a565b005b34801561070f57600080fd5b50610718611726565b6040516107259190614253565b60405180910390f35b34801561073a57600080fd5b50610755600480360381019061075091906146bb565b6117b8565b005b34801561076357600080fd5b5061077e60048036038101906107799190614734565b611ec2565b005b61079a60048036038101906107959190614774565b611edb565b005b3480156107a857600080fd5b506107c360048036038101906107be91906140e1565b611f2c565b6040516107d09190614253565b60405180910390f35b3480156107e557600080fd5b5061080060048036038101906107fb9190614196565b611fb3565b60405161080f93929190614845565b60405180910390f35b34801561082457600080fd5b5061083f600480360381019061083a9190614196565b612022565b60405161084c919061411d565b60405180910390f35b34801561086157600080fd5b5061087c6004803603810190610877919061487c565b61208d565b6040516108899190614090565b60405180910390f35b34801561089e57600080fd5b506108b960048036038101906108b491906140e1565b612121565b6040516108c6919061411d565b60405180910390f35b3480156108db57600080fd5b506108f660048036038101906108f19190614196565b61213f565b005b34801561090457600080fd5b5061091f600480360381019061091a9190614196565b6121c2565b60405161092c919061411d565b60405180910390f35b60006301ffc9a760e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061099057506380ac58cd60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806109c05750635b5e139f60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b61010c6020528060005260406000206000915090505481565b6109e861223d565b8061010a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b606060028054610a3c906148eb565b80601f0160208091040260200160405190810160405280929190818152602001828054610a68906148eb565b8015610ab55780601f10610a8a57610100808354040283529160200191610ab5565b820191906000526020600020905b815481529060010190602001808311610a9857829003601f168201915b5050505050905090565b6000610aca826122bb565b610b00576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6006600083815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b81610b488161231a565b610b528383612417565b505050565b610b608161255b565b50565b6000610b6d612569565b6001546000540303905090565b610b8261223d565b806101079081610b929190614abe565b5050565b6060600061010c600084815260200190815260200160002054905060006040518060400160405280600181526020017f7b00000000000000000000000000000000000000000000000000000000000000815250905060006040518060400160405280600181526020017f220000000000000000000000000000000000000000000000000000000000000081525090506000828261010484604051602001610c409493929190614ce7565b60405160208183030381529060405290506000818361010585604051602001610c6c9493929190614d87565b604051602081830303815290604052905060008184610106610c8d89612572565b87604051602001610ca2959493929190614e27565b604051602081830303815290604052905060008185610107610cc38c612572565b88604051602001610cd8959493929190614ed4565b604051602081830303815290604052905060008161010887610cf98b612572565b89610109604051602001610d1296959493929190614fcd565b60405160208183030381529060405290508098505050505050505050919050565b610d3b61223d565b806101089081610d4b9190614abe565b5050565b823373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610d8d57610d8c3361231a565b5b600061010b60008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206040518060600160405290816000820160009054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff1681526020016000820160089054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff1681526020016000820160109054906101000a90046fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff168152505090508281604001516fffffffffffffffffffffffffffffffff1603610f445761010b60008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600080820160006101000a81549067ffffffffffffffff02191690556000820160086101000a81549067ffffffffffffffff02191690556000820160106101000a8154906fffffffffffffffffffffffffffffffff021916905550505b610f4f858585612640565b5050505050565b610f5e61223d565b806101059081610f6e9190614abe565b5050565b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff163073ffffffffffffffffffffffffffffffffffffffff1603611000576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ff7906150ad565b60405180910390fd5b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1661103f612962565b73ffffffffffffffffffffffffffffffffffffffff1614611095576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161108c9061513f565b60405180910390fd5b61109e816129b9565b6110f781600067ffffffffffffffff8111156110bd576110bc6142e9565b5b6040519080825280601f01601f1916602001820160405280156110ef5781602001600182028036833780820191505090505b5060006129c4565b50565b6daaeb6d7670e522a718067333cd4e81565b823373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161461114a576111493361231a565b5b61116584848460405180602001604052806000815250612b32565b50505050565b600061010b60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160089054906101000a900467ffffffffffffffff1667ffffffffffffffff169050919050565b6111de61223d565b8061010990816111ee9190614abe565b5050565b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff163073ffffffffffffffffffffffffffffffffffffffff1603611280576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611277906150ad565b60405180910390fd5b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166112bf612962565b73ffffffffffffffffffffffffffffffffffffffff1614611315576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161130c9061513f565b60405180910390fd5b61131e826129b9565b61132a828260016129c4565b5050565b6000426202a30083611340919061518e565b109050919050565b60007f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff163073ffffffffffffffffffffffffffffffffffffffff16146113d8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113cf90615234565b60405180910390fd5b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc60001b905090565b61140961223d565b8061010690816114199190614abe565b5050565b600061142882612ba5565b9050919050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611496576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b67ffffffffffffffff600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054169050919050565b6114ef61223d565b6114f96000612c71565b565b6000600860019054906101000a900460ff1615905080801561152f57506001600860009054906101000a900460ff1660ff16105b8061155e575061153e30612d37565b15801561155d57506001600860009054906101000a900460ff1660ff16145b5b61159d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611594906152c6565b60405180910390fd5b6001600860006101000a81548160ff021916908360ff16021790555080156115db576001600860016101000a81548160ff0219169083151502179055505b6115e3612d5a565b6115eb612db3565b6040518060400160405280600b81526020017f4461696c7920436172676f0000000000000000000000000000000000000000008152506002908161162f9190614abe565b506040518060400160405280600281526020017f4443000000000000000000000000000000000000000000000000000000000000815250600390816116749190614abe565b5061167d612569565b60008190555080156116dd576000600860016101000a81548160ff0219169083151502179055507f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb384740249860016040516116d4919061532e565b60405180910390a15b50565b6000603b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b61171261223d565b8061010490816117229190614abe565b5050565b606060038054611735906148eb565b80601f0160208091040260200160405190810160405280929190818152602001828054611761906148eb565b80156117ae5780601f10611783576101008083540402835291602001916117ae565b820191906000526020600020905b81548152906001019060200180831161179157829003601f168201915b5050505050905090565b6117c0612e0c565b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff163073ffffffffffffffffffffffffffffffffffffffff160361184e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611845906150ad565b60405180910390fd5b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1661188d612962565b73ffffffffffffffffffffffffffffffffffffffff16146118e3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118da9061513f565b60405180910390fd5b600061010b60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206040518060600160405290816000820160009054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff1681526020016000820160089054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff1681526020016000820160109054906101000a90046fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff168152505090506000816000015167ffffffffffffffff1690506000826020015167ffffffffffffffff169050611a5585858080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f820116905080830192505050505050508284612e5b565b611a94576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a8b90615395565b60405180910390fd5b426201518083611aa4919061518e565b10611ae4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611adb90615401565b60405180910390fd5b6000811480611af85750611af78261132e565b5b15611c92576000611b07612ed4565b9050611b11613f95565b6001816020019067ffffffffffffffff16908167ffffffffffffffff168152505042816000019067ffffffffffffffff16908167ffffffffffffffff16815250508181604001906fffffffffffffffffffffffffffffffff1690816fffffffffffffffffffffffffffffffff16815250508061010b60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008201518160000160006101000a81548167ffffffffffffffff021916908367ffffffffffffffff16021790555060208201518160000160086101000a81548167ffffffffffffffff021916908367ffffffffffffffff16021790555060408201518160000160106101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff160217905550905050600161010c600084815260200190815260200160002081905550611c88336001612edd565b5050505050611eb6565b600083604001519050611ca3613f95565b60018560200151611cb49190615421565b816020019067ffffffffffffffff16908167ffffffffffffffff168152505042816000019067ffffffffffffffff16908167ffffffffffffffff16815250508181604001906fffffffffffffffffffffffffffffffff1690816fffffffffffffffffffffffffffffffff16815250508061010b60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008201518160000160006101000a81548167ffffffffffffffff021916908367ffffffffffffffff16021790555060208201518160000160086101000a81548167ffffffffffffffff021916908367ffffffffffffffff16021790555060408201518160000160106101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff160217905550905050600161010c6000846fffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611e3b919061518e565b92505081905550816fffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a450505050505b611ebe613098565b5050565b81611ecc8161231a565b611ed683836130a2565b505050565b833373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614611f1957611f183361231a565b5b611f2585858585612b32565b5050505050565b6060611f37826122bb565b611f76576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f6d906154a9565b60405180910390fd5b6000611f8183610b96565b9050611f8c816131ad565b604051602001611f9c9190615515565b604051602081830303815290604052915050919050565b61010b6020528060005260406000206000915090508060000160009054906101000a900467ffffffffffffffff16908060000160089054906101000a900467ffffffffffffffff16908060000160109054906101000a90046fffffffffffffffffffffffffffffffff16905083565b600061010b60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160009054906101000a900467ffffffffffffffff1667ffffffffffffffff169050919050565b6000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b600061010c6000838152602001908152602001600020549050919050565b61214761223d565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036121b6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121ad906155a9565b60405180910390fd5b6121bf81612c71565b50565b600061010b60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160109054906101000a90046fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff169050919050565b612245613325565b73ffffffffffffffffffffffffffffffffffffffff166122636116e0565b73ffffffffffffffffffffffffffffffffffffffff16146122b9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122b090615615565b60405180910390fd5b565b6000816122c6612569565b111580156122d5575060005482105b8015612313575060007c0100000000000000000000000000000000000000000000000000000000600460008581526020019081526020016000205416145b9050919050565b60006daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff163b1115612414576daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff1663c617113430836040518363ffffffff1660e01b8152600401612391929190615635565b602060405180830381865afa1580156123ae573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906123d29190615673565b61241357806040517fede71dcc00000000000000000000000000000000000000000000000000000000815260040161240a9190614284565b60405180910390fd5b5b50565b60006124228261141d565b90508073ffffffffffffffffffffffffffffffffffffffff1661244361332d565b73ffffffffffffffffffffffffffffffffffffffff16146124a65761246f8161246a61332d565b61208d565b6124a5576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b826006600084815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b612566816000613335565b50565b60006001905090565b60606000600161258184613587565b01905060008167ffffffffffffffff8111156125a05761259f6142e9565b5b6040519080825280601f01601f1916602001820160405280156125d25781602001600182028036833780820191505090505b509050600082602001820190505b600115612635578080600190039150507f3031323334353637383961626364656600000000000000000000000000000000600a86061a8153600a8581612629576126286156a0565b5b049450600085036125e0575b819350505050919050565b600061264b82612ba5565b90508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16146126b2576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000806126be846136da565b915091506126d481876126cf61332d565b613701565b612720576126e9866126e461332d565b61208d565b61271f576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1603612786576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6127938686866001613745565b801561279e57600082555b600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081546001900391905081905550600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081546001019190508190555061286c8561284888888761374b565b7c020000000000000000000000000000000000000000000000000000000017613773565b600460008681526020019081526020016000208190555060007c02000000000000000000000000000000000000000000000000000000008416036128f257600060018501905060006004600083815260200190815260200160002054036128f05760005481146128ef578360046000838152602001908152602001600020819055505b5b505b838573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a461295a868686600161379e565b505050505050565b60006129907f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc60001b6137a4565b60000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6129c161223d565b50565b6129f07f4910fdfa16fed3260ed0e7147f7cc6da11a60208b5b9406d12a635614ffd914360001b6137ae565b60000160009054906101000a900460ff1615612a1457612a0f836137b8565b612b2d565b8273ffffffffffffffffffffffffffffffffffffffff166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa925050508015612a7c57506040513d601f19601f82011682018060405250810190612a7991906156fb565b60015b612abb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612ab29061579a565b60405180910390fd5b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc60001b8114612b20576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612b179061582c565b60405180910390fd5b50612b2c838383613871565b5b505050565b612b3d848484610d4f565b60008373ffffffffffffffffffffffffffffffffffffffff163b14612b9f57612b688484848461389d565b612b9e576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b50505050565b60008082905080612bb4612569565b11612c3a57600054811015612c395760006004600083815260200190815260200160002054905060007c0100000000000000000000000000000000000000000000000000000000821603612c37575b60008103612c2d576004600083600190039350838152602001908152602001600020549050612c03565b8092505050612c6c565b505b5b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b6000603b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081603b60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b600860019054906101000a900460ff16612da9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612da0906158be565b60405180910390fd5b612db16139ed565b565b600860019054906101000a900460ff16612e02576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612df9906158be565b60405180910390fd5b612e0a613a4e565b565b6002606d5403612e51576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612e489061592a565b60405180910390fd5b6002606d81905550565b600061010a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16612eb485612ea6338787613aa7565b613ae790919063ffffffff16565b73ffffffffffffffffffffffffffffffffffffffff161490509392505050565b60008054905090565b60008054905060008203612f1d576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b612f2a6000848385613745565b600160406001901b178202600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282540192505081905550612fa183612f92600086600061374b565b612f9b85613b0e565b17613773565b6004600083815260200190815260200160002081905550600080838301905073ffffffffffffffffffffffffffffffffffffffff85169150828260007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600183015b81811461304257808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600181019050613007565b506000820361307d576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b806000819055505050613093600084838561379e565b505050565b6001606d81905550565b80600760006130af61332d565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff1661315c61332d565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516131a19190614090565b60405180910390a35050565b606060008251036131cf57604051806020016040528060008152509050613320565b6000604051806060016040528060408152602001615edd60409139905060006003600285516131fe919061518e565b613208919061594a565b6004613214919061597b565b90506000602082613225919061518e565b67ffffffffffffffff81111561323e5761323d6142e9565b5b6040519080825280601f01601f1916602001820160405280156132705781602001600182028036833780820191505090505b509050818152600183018586518101602084015b818310156132df576003830192508251603f8160121c168501518253600182019150603f81600c1c168501518253600182019150603f8160061c168501518253600182019150603f8116850151825360018201915050613284565b6003895106600181146132f9576002811461330957613314565b613d3d60f01b6002830352613314565b603d60f81b60018303525b50505050508093505050505b919050565b600033905090565b600033905090565b600061334083612ba5565b90506000819050600080613353866136da565b9150915084156133bc5761336f818461336a61332d565b613701565b6133bb576133848361337f61332d565b61208d565b6133ba576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b5b6133ca836000886001613745565b80156133d557600082555b600160806001901b03600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254019250508190555061347d8361343a8560008861374b565b7c02000000000000000000000000000000000000000000000000000000007c01000000000000000000000000000000000000000000000000000000001717613773565b600460008881526020019081526020016000208190555060007c02000000000000000000000000000000000000000000000000000000008516036135035760006001870190506000600460008381526020019081526020016000205403613501576000548114613500578460046000838152602001908152602001600020819055505b5b505b85600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a461356d83600088600161379e565b600160008154809291906001019190505550505050505050565b600080600090507a184f03e93ff9f4daa797ed6e38ed64bf6a1f01000000000000000083106135e5577a184f03e93ff9f4daa797ed6e38ed64bf6a1f01000000000000000083816135db576135da6156a0565b5b0492506040810190505b6d04ee2d6d415b85acef81000000008310613622576d04ee2d6d415b85acef81000000008381613618576136176156a0565b5b0492506020810190505b662386f26fc10000831061365157662386f26fc100008381613647576136466156a0565b5b0492506010810190505b6305f5e100831061367a576305f5e10083816136705761366f6156a0565b5b0492506008810190505b612710831061369f576127108381613695576136946156a0565b5b0492506004810190505b606483106136c257606483816136b8576136b76156a0565b5b0492506002810190505b600a83106136d1576001810190505b80915050919050565b60008060006006600085815260200190815260200160002090508092508254915050915091565b600073ffffffffffffffffffffffffffffffffffffffff8316925073ffffffffffffffffffffffffffffffffffffffff821691508382148383141790509392505050565b50505050565b60008060e883901c905060e8613762868684613b1e565b62ffffff16901b9150509392505050565b600073ffffffffffffffffffffffffffffffffffffffff83169250814260a01b178317905092915050565b50505050565b6000819050919050565b6000819050919050565b6137c181612d37565b613800576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016137f790615a2f565b60405180910390fd5b8061382d7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc60001b6137a4565b60000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b61387a83613b27565b6000825111806138875750805b15613898576138968383613b76565b505b505050565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a026138c361332d565b8786866040518563ffffffff1660e01b81526004016138e59493929190615aa4565b6020604051808303816000875af192505050801561392157506040513d601f19601f8201168201806040525081019061391e9190615b05565b60015b61399a573d8060008114613951576040519150601f19603f3d011682016040523d82523d6000602084013e613956565b606091505b506000815103613992576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b600860019054906101000a900460ff16613a3c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613a33906158be565b60405180910390fd5b613a4c613a47613325565b612c71565b565b600860019054906101000a900460ff16613a9d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613a94906158be565b60405180910390fd5b6001606d81905550565b6000613ade30858585604051602001613ac39493929190615b32565b60405160208183030381529060405280519060200120613c5a565b90509392505050565b6000806000613af68585613c8a565b91509150613b0381613cdb565b819250505092915050565b60006001821460e11b9050919050565b60009392505050565b613b30816137b8565b8073ffffffffffffffffffffffffffffffffffffffff167fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b60405160405180910390a250565b6060613b8183612d37565b613bc0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613bb790615be9565b60405180910390fd5b6000808473ffffffffffffffffffffffffffffffffffffffff1684604051613be89190615c45565b600060405180830381855af49150503d8060008114613c23576040519150601f19603f3d011682016040523d82523d6000602084013e613c28565b606091505b5091509150613c508282604051806060016040528060278152602001615f1d60279139613e41565b9250505092915050565b600081604051602001613c6d9190615cc9565b604051602081830303815290604052805190602001209050919050565b6000806041835103613ccb5760008060006020860151925060408601519150606086015160001a9050613cbf87828585613e63565b94509450505050613cd4565b60006002915091505b9250929050565b60006004811115613cef57613cee615cef565b5b816004811115613d0257613d01615cef565b5b0315613e3e5760016004811115613d1c57613d1b615cef565b5b816004811115613d2f57613d2e615cef565b5b03613d6f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613d6690615d6a565b60405180910390fd5b60026004811115613d8357613d82615cef565b5b816004811115613d9657613d95615cef565b5b03613dd6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613dcd90615dd6565b60405180910390fd5b60036004811115613dea57613de9615cef565b5b816004811115613dfd57613dfc615cef565b5b03613e3d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613e3490615e68565b60405180910390fd5b5b50565b60608315613e5157829050613e5c565b613e5b8383613f45565b5b9392505050565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08360001c1115613e9e576000600391509150613f3c565b600060018787878760405160008152602001604052604051613ec39493929190615e97565b6020604051602081039080840390855afa158015613ee5573d6000803e3d6000fd5b505050602060405103519050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603613f3357600060019250925050613f3c565b80600092509250505b94509492505050565b600082511115613f585781518083602001fd5b806040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613f8c9190614253565b60405180910390fd5b6040518060600160405280600067ffffffffffffffff168152602001600067ffffffffffffffff16815260200160006fffffffffffffffffffffffffffffffff1681525090565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b61402581613ff0565b811461403057600080fd5b50565b6000813590506140428161401c565b92915050565b60006020828403121561405e5761405d613fe6565b5b600061406c84828501614033565b91505092915050565b60008115159050919050565b61408a81614075565b82525050565b60006020820190506140a56000830184614081565b92915050565b6000819050919050565b6140be816140ab565b81146140c957600080fd5b50565b6000813590506140db816140b5565b92915050565b6000602082840312156140f7576140f6613fe6565b5b6000614105848285016140cc565b91505092915050565b614117816140ab565b82525050565b6000602082019050614132600083018461410e565b92915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061416382614138565b9050919050565b61417381614158565b811461417e57600080fd5b50565b6000813590506141908161416a565b92915050565b6000602082840312156141ac576141ab613fe6565b5b60006141ba84828501614181565b91505092915050565b600081519050919050565b600082825260208201905092915050565b60005b838110156141fd5780820151818401526020810190506141e2565b60008484015250505050565b6000601f19601f8301169050919050565b6000614225826141c3565b61422f81856141ce565b935061423f8185602086016141df565b61424881614209565b840191505092915050565b6000602082019050818103600083015261426d818461421a565b905092915050565b61427e81614158565b82525050565b60006020820190506142996000830184614275565b92915050565b600080604083850312156142b6576142b5613fe6565b5b60006142c485828601614181565b92505060206142d5858286016140cc565b9150509250929050565b600080fd5b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b61432182614209565b810181811067ffffffffffffffff821117156143405761433f6142e9565b5b80604052505050565b6000614353613fdc565b905061435f8282614318565b919050565b600067ffffffffffffffff82111561437f5761437e6142e9565b5b61438882614209565b9050602081019050919050565b82818337600083830152505050565b60006143b76143b284614364565b614349565b9050828152602081018484840111156143d3576143d26142e4565b5b6143de848285614395565b509392505050565b600082601f8301126143fb576143fa6142df565b5b813561440b8482602086016143a4565b91505092915050565b60006020828403121561442a57614429613fe6565b5b600082013567ffffffffffffffff81111561444857614447613feb565b5b614454848285016143e6565b91505092915050565b60008060006060848603121561447657614475613fe6565b5b600061448486828701614181565b935050602061449586828701614181565b92505060406144a6868287016140cc565b9150509250925092565b6000819050919050565b60006144d56144d06144cb84614138565b6144b0565b614138565b9050919050565b60006144e7826144ba565b9050919050565b60006144f9826144dc565b9050919050565b614509816144ee565b82525050565b60006020820190506145246000830184614500565b92915050565b600067ffffffffffffffff821115614545576145446142e9565b5b61454e82614209565b9050602081019050919050565b600061456e6145698461452a565b614349565b90508281526020810184848401111561458a576145896142e4565b5b614595848285614395565b509392505050565b600082601f8301126145b2576145b16142df565b5b81356145c284826020860161455b565b91505092915050565b600080604083850312156145e2576145e1613fe6565b5b60006145f085828601614181565b925050602083013567ffffffffffffffff81111561461157614610613feb565b5b61461d8582860161459d565b9150509250929050565b6000819050919050565b61463a81614627565b82525050565b60006020820190506146556000830184614631565b92915050565b600080fd5b600080fd5b60008083601f84011261467b5761467a6142df565b5b8235905067ffffffffffffffff8111156146985761469761465b565b5b6020830191508360018202830111156146b4576146b3614660565b5b9250929050565b600080602083850312156146d2576146d1613fe6565b5b600083013567ffffffffffffffff8111156146f0576146ef613feb565b5b6146fc85828601614665565b92509250509250929050565b61471181614075565b811461471c57600080fd5b50565b60008135905061472e81614708565b92915050565b6000806040838503121561474b5761474a613fe6565b5b600061475985828601614181565b925050602061476a8582860161471f565b9150509250929050565b6000806000806080858703121561478e5761478d613fe6565b5b600061479c87828801614181565b94505060206147ad87828801614181565b93505060406147be878288016140cc565b925050606085013567ffffffffffffffff8111156147df576147de613feb565b5b6147eb8782880161459d565b91505092959194509250565b600067ffffffffffffffff82169050919050565b614814816147f7565b82525050565b60006fffffffffffffffffffffffffffffffff82169050919050565b61483f8161481a565b82525050565b600060608201905061485a600083018661480b565b614867602083018561480b565b6148746040830184614836565b949350505050565b6000806040838503121561489357614892613fe6565b5b60006148a185828601614181565b92505060206148b285828601614181565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168061490357607f821691505b602082108103614916576149156148bc565b5b50919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b60006008830261497e7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82614941565b6149888683614941565b95508019841693508086168417925050509392505050565b60006149bb6149b66149b1846140ab565b6144b0565b6140ab565b9050919050565b6000819050919050565b6149d5836149a0565b6149e96149e1826149c2565b84845461494e565b825550505050565b600090565b6149fe6149f1565b614a098184846149cc565b505050565b5b81811015614a2d57614a226000826149f6565b600181019050614a0f565b5050565b601f821115614a7257614a438161491c565b614a4c84614931565b81016020851015614a5b578190505b614a6f614a6785614931565b830182614a0e565b50505b505050565b600082821c905092915050565b6000614a9560001984600802614a77565b1980831691505092915050565b6000614aae8383614a84565b9150826002028217905092915050565b614ac7826141c3565b67ffffffffffffffff811115614ae057614adf6142e9565b5b614aea82546148eb565b614af5828285614a31565b600060209050601f831160018114614b285760008415614b16578287015190505b614b208582614aa2565b865550614b88565b601f198416614b368661491c565b60005b82811015614b5e57848901518255600182019150602085019450602081019050614b39565b86831015614b7b5784890151614b77601f891682614a84565b8355505b6001600288020188555050505b505050505050565b600081905092915050565b6000614ba6826141c3565b614bb08185614b90565b9350614bc08185602086016141df565b80840191505092915050565b7f226465736372697074696f6e223a000000000000000000000000000000000000600082015250565b6000614c02600e83614b90565b9150614c0d82614bcc565b600e82019050919050565b60008154614c25816148eb565b614c2f8186614b90565b94506001821660008114614c4a5760018114614c5f57614c92565b60ff1983168652811515820286019350614c92565b614c688561491c565b60005b83811015614c8a57815481890152600182019150602081019050614c6b565b838801955050505b50505092915050565b7f2c00000000000000000000000000000000000000000000000000000000000000600082015250565b6000614cd1600183614b90565b9150614cdc82614c9b565b600182019050919050565b6000614cf38287614b9b565b9150614cfe82614bf5565b9150614d0a8286614b9b565b9150614d168285614c18565b9150614d228284614b9b565b9150614d2d82614cc4565b915081905095945050505050565b7f2265787465726e616c5f75726c223a0000000000000000000000000000000000600082015250565b6000614d71600f83614b90565b9150614d7c82614d3b565b600f82019050919050565b6000614d938287614b9b565b9150614d9e82614d64565b9150614daa8286614b9b565b9150614db68285614c18565b9150614dc28284614b9b565b9150614dcd82614cc4565b915081905095945050505050565b7f22696d616765223a000000000000000000000000000000000000000000000000600082015250565b6000614e11600883614b90565b9150614e1c82614ddb565b600882019050919050565b6000614e338288614b9b565b9150614e3e82614e04565b9150614e4a8287614b9b565b9150614e568286614c18565b9150614e628285614b9b565b9150614e6e8284614b9b565b9150614e7982614cc4565b91508190509695505050505050565b7f226e616d65223a00000000000000000000000000000000000000000000000000600082015250565b6000614ebe600783614b90565b9150614ec982614e88565b600782019050919050565b6000614ee08288614b9b565b9150614eeb82614eb1565b9150614ef78287614b9b565b9150614f038286614c18565b9150614f0f8285614b9b565b9150614f1b8284614b9b565b9150614f2682614cc4565b91508190509695505050505050565b7f2261747472696275746573223a00000000000000000000000000000000000000600082015250565b6000614f6b600d83614b90565b9150614f7682614f35565b600d82019050919050565b7f7d00000000000000000000000000000000000000000000000000000000000000600082015250565b6000614fb7600183614b90565b9150614fc282614f81565b600182019050919050565b6000614fd98289614b9b565b9150614fe482614f5e565b9150614ff08288614c18565b9150614ffc8287614b9b565b91506150088286614b9b565b91506150148285614b9b565b91506150208284614c18565b915061502b82614faa565b9150819050979650505050505050565b7f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060008201527f64656c656761746563616c6c0000000000000000000000000000000000000000602082015250565b6000615097602c836141ce565b91506150a28261503b565b604082019050919050565b600060208201905081810360008301526150c68161508a565b9050919050565b7f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060008201527f6163746976652070726f78790000000000000000000000000000000000000000602082015250565b6000615129602c836141ce565b9150615134826150cd565b604082019050919050565b600060208201905081810360008301526151588161511c565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000615199826140ab565b91506151a4836140ab565b92508282019050808211156151bc576151bb61515f565b5b92915050565b7f555550535570677261646561626c653a206d757374206e6f742062652063616c60008201527f6c6564207468726f7567682064656c656761746563616c6c0000000000000000602082015250565b600061521e6038836141ce565b9150615229826151c2565b604082019050919050565b6000602082019050818103600083015261524d81615211565b9050919050565b7f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160008201527f647920696e697469616c697a6564000000000000000000000000000000000000602082015250565b60006152b0602e836141ce565b91506152bb82615254565b604082019050919050565b600060208201905081810360008301526152df816152a3565b9050919050565b6000819050919050565b600060ff82169050919050565b600061531861531361530e846152e6565b6144b0565b6152f0565b9050919050565b615328816152fd565b82525050565b6000602082019050615343600083018461531f565b92915050565b7f696e76616c6964207369676e61747572652e0000000000000000000000000000600082015250565b600061537f6012836141ce565b915061538a82615349565b602082019050919050565b600060208201905081810360008301526153ae81615372565b9050919050565b7f796f752063616e206f6e6c79206d696e74206f6e652070657220646179000000600082015250565b60006153eb601d836141ce565b91506153f6826153b5565b602082019050919050565b6000602082019050818103600083015261541a816153de565b9050919050565b600061542c826147f7565b9150615437836147f7565b9250828201905067ffffffffffffffff8111156154575761545661515f565b5b92915050565b7f636172676f20686173206e6f74206265656e206d696e7465642e000000000000600082015250565b6000615493601a836141ce565b915061549e8261545d565b602082019050919050565b600060208201905081810360008301526154c281615486565b9050919050565b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c000000600082015250565b60006154ff601d83614b90565b915061550a826154c9565b601d82019050919050565b6000615520826154f2565b915061552c8284614b9b565b915081905092915050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b60006155936026836141ce565b915061559e82615537565b604082019050919050565b600060208201905081810360008301526155c281615586565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b60006155ff6020836141ce565b915061560a826155c9565b602082019050919050565b6000602082019050818103600083015261562e816155f2565b9050919050565b600060408201905061564a6000830185614275565b6156576020830184614275565b9392505050565b60008151905061566d81614708565b92915050565b60006020828403121561568957615688613fe6565b5b60006156978482850161565e565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6156d881614627565b81146156e357600080fd5b50565b6000815190506156f5816156cf565b92915050565b60006020828403121561571157615710613fe6565b5b600061571f848285016156e6565b91505092915050565b7f45524331393637557067726164653a206e657720696d706c656d656e7461746960008201527f6f6e206973206e6f742055555053000000000000000000000000000000000000602082015250565b6000615784602e836141ce565b915061578f82615728565b604082019050919050565b600060208201905081810360008301526157b381615777565b9050919050565b7f45524331393637557067726164653a20756e737570706f727465642070726f7860008201527f6961626c65555549440000000000000000000000000000000000000000000000602082015250565b60006158166029836141ce565b9150615821826157ba565b604082019050919050565b6000602082019050818103600083015261584581615809565b9050919050565b7f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960008201527f6e697469616c697a696e67000000000000000000000000000000000000000000602082015250565b60006158a8602b836141ce565b91506158b38261584c565b604082019050919050565b600060208201905081810360008301526158d78161589b565b9050919050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b6000615914601f836141ce565b915061591f826158de565b602082019050919050565b6000602082019050818103600083015261594381615907565b9050919050565b6000615955826140ab565b9150615960836140ab565b9250826159705761596f6156a0565b5b828204905092915050565b6000615986826140ab565b9150615991836140ab565b925082820261599f816140ab565b915082820484148315176159b6576159b561515f565b5b5092915050565b7f455243313936373a206e657720696d706c656d656e746174696f6e206973206e60008201527f6f74206120636f6e747261637400000000000000000000000000000000000000602082015250565b6000615a19602d836141ce565b9150615a24826159bd565b604082019050919050565b60006020820190508181036000830152615a4881615a0c565b9050919050565b600081519050919050565b600082825260208201905092915050565b6000615a7682615a4f565b615a808185615a5a565b9350615a908185602086016141df565b615a9981614209565b840191505092915050565b6000608082019050615ab96000830187614275565b615ac66020830186614275565b615ad3604083018561410e565b8181036060830152615ae58184615a6b565b905095945050505050565b600081519050615aff8161401c565b92915050565b600060208284031215615b1b57615b1a613fe6565b5b6000615b2984828501615af0565b91505092915050565b6000608082019050615b476000830187614275565b615b546020830186614275565b615b61604083018561410e565b615b6e606083018461410e565b95945050505050565b7f416464726573733a2064656c65676174652063616c6c20746f206e6f6e2d636f60008201527f6e74726163740000000000000000000000000000000000000000000000000000602082015250565b6000615bd36026836141ce565b9150615bde82615b77565b604082019050919050565b60006020820190508181036000830152615c0281615bc6565b9050919050565b600081905092915050565b6000615c1f82615a4f565b615c298185615c09565b9350615c398185602086016141df565b80840191505092915050565b6000615c518284615c14565b915081905092915050565b7f19457468657265756d205369676e6564204d6573736167653a0a333200000000600082015250565b6000615c92601c83614b90565b9150615c9d82615c5c565b601c82019050919050565b6000819050919050565b615cc3615cbe82614627565b615ca8565b82525050565b6000615cd482615c85565b9150615ce08284615cb2565b60208201915081905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b7f45434453413a20696e76616c6964207369676e61747572650000000000000000600082015250565b6000615d546018836141ce565b9150615d5f82615d1e565b602082019050919050565b60006020820190508181036000830152615d8381615d47565b9050919050565b7f45434453413a20696e76616c6964207369676e6174757265206c656e67746800600082015250565b6000615dc0601f836141ce565b9150615dcb82615d8a565b602082019050919050565b60006020820190508181036000830152615def81615db3565b9050919050565b7f45434453413a20696e76616c6964207369676e6174757265202773272076616c60008201527f7565000000000000000000000000000000000000000000000000000000000000602082015250565b6000615e526022836141ce565b9150615e5d82615df6565b604082019050919050565b60006020820190508181036000830152615e8181615e45565b9050919050565b615e91816152f0565b82525050565b6000608082019050615eac6000830187614631565b615eb96020830186615e88565b615ec66040830185614631565b615ed36060830184614631565b9594505050505056fe4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2f416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564a26469706673582212202f7df4465af697bdacfb5d6a500f22a37aebd4443cfe3e777b69f0e84785d86d64736f6c63430008110033476f20746f2068747470733a2f2f667265656e66742e78797a2065766572792064617920746f207570677261646520796f757220636172676f2c206d61696e7461696e20796f75722073747265616b20616e642077696e20726577617264732e68747470733a2f2f6132766838766b3672372e657865637574652d6170692e75732d656173742d312e616d617a6f6e6177732e636f6d2f70726f642f6461696c795f63686573745f696d6167652f5b7b2274726169745f74797065223a202253747265616b222c202276616c7565223a

Deployed Bytecode

0x6080604052600436106102305760003560e01c8063501e20f01161012e578063962cb602116100ab578063e8b0fb701161006f578063e8b0fb7014610818578063e985e9c514610855578063eaebdd5314610892578063f2fde38b146108cf578063fae99f71146108f857610230565b8063962cb6021461072e578063a22cb46514610757578063b88d4fde14610780578063c87b56dd1461079c578063e2eb41ff146107d957610230565b8063715018a6116100f2578063715018a6146106815780638129fc1c146106985780638da5cb5b146106af57806390c3f38f146106da57806395d89b411461070357610230565b8063501e20f01461057657806352d1902d146105b357806355f804b3146105de5780636352211e1461060757806370a082311461064457610230565b80631dba95ac116101bc57806341f434341161018057806341f43434146104ad57806342842e0e146104d857806346ccc416146104f45780634e63510f146105315780634f1ef2861461055a57610230565b80631dba95ac146103d95780631edbd4c81461041657806323b872dd1461043f57806326d58ad31461045b5780633659cfe61461048457610230565b8063081812fc11610203578063081812fc14610303578063095ea7b3146103405780630a928aef1461035c57806318160ddd146103855780631b2121aa146103b057610230565b806301ffc9a71461023557806302053b7714610272578063046dc166146102af57806306fdde03146102d8575b600080fd5b34801561024157600080fd5b5061025c60048036038101906102579190614048565b610935565b6040516102699190614090565b60405180910390f35b34801561027e57600080fd5b50610299600480360381019061029491906140e1565b6109c7565b6040516102a6919061411d565b60405180910390f35b3480156102bb57600080fd5b506102d660048036038101906102d19190614196565b6109e0565b005b3480156102e457600080fd5b506102ed610a2d565b6040516102fa9190614253565b60405180910390f35b34801561030f57600080fd5b5061032a600480360381019061032591906140e1565b610abf565b6040516103379190614284565b60405180910390f35b61035a6004803603810190610355919061429f565b610b3e565b005b34801561036857600080fd5b50610383600480360381019061037e91906140e1565b610b57565b005b34801561039157600080fd5b5061039a610b63565b6040516103a7919061411d565b60405180910390f35b3480156103bc57600080fd5b506103d760048036038101906103d29190614414565b610b7a565b005b3480156103e557600080fd5b5061040060048036038101906103fb91906140e1565b610b96565b60405161040d9190614253565b60405180910390f35b34801561042257600080fd5b5061043d60048036038101906104389190614414565b610d33565b005b6104596004803603810190610454919061445d565b610d4f565b005b34801561046757600080fd5b50610482600480360381019061047d9190614414565b610f56565b005b34801561049057600080fd5b506104ab60048036038101906104a69190614196565b610f72565b005b3480156104b957600080fd5b506104c26110fa565b6040516104cf919061450f565b60405180910390f35b6104f260048036038101906104ed919061445d565b61110c565b005b34801561050057600080fd5b5061051b60048036038101906105169190614196565b61116b565b604051610528919061411d565b60405180910390f35b34801561053d57600080fd5b5061055860048036038101906105539190614414565b6111d6565b005b610574600480360381019061056f91906145cb565b6111f2565b005b34801561058257600080fd5b5061059d600480360381019061059891906140e1565b61132e565b6040516105aa9190614090565b60405180910390f35b3480156105bf57600080fd5b506105c8611348565b6040516105d59190614640565b60405180910390f35b3480156105ea57600080fd5b5061060560048036038101906106009190614414565b611401565b005b34801561061357600080fd5b5061062e600480360381019061062991906140e1565b61141d565b60405161063b9190614284565b60405180910390f35b34801561065057600080fd5b5061066b60048036038101906106669190614196565b61142f565b604051610678919061411d565b60405180910390f35b34801561068d57600080fd5b506106966114e7565b005b3480156106a457600080fd5b506106ad6114fb565b005b3480156106bb57600080fd5b506106c46116e0565b6040516106d19190614284565b60405180910390f35b3480156106e657600080fd5b5061070160048036038101906106fc9190614414565b61170a565b005b34801561070f57600080fd5b50610718611726565b6040516107259190614253565b60405180910390f35b34801561073a57600080fd5b50610755600480360381019061075091906146bb565b6117b8565b005b34801561076357600080fd5b5061077e60048036038101906107799190614734565b611ec2565b005b61079a60048036038101906107959190614774565b611edb565b005b3480156107a857600080fd5b506107c360048036038101906107be91906140e1565b611f2c565b6040516107d09190614253565b60405180910390f35b3480156107e557600080fd5b5061080060048036038101906107fb9190614196565b611fb3565b60405161080f93929190614845565b60405180910390f35b34801561082457600080fd5b5061083f600480360381019061083a9190614196565b612022565b60405161084c919061411d565b60405180910390f35b34801561086157600080fd5b5061087c6004803603810190610877919061487c565b61208d565b6040516108899190614090565b60405180910390f35b34801561089e57600080fd5b506108b960048036038101906108b491906140e1565b612121565b6040516108c6919061411d565b60405180910390f35b3480156108db57600080fd5b506108f660048036038101906108f19190614196565b61213f565b005b34801561090457600080fd5b5061091f600480360381019061091a9190614196565b6121c2565b60405161092c919061411d565b60405180910390f35b60006301ffc9a760e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061099057506380ac58cd60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806109c05750635b5e139f60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b61010c6020528060005260406000206000915090505481565b6109e861223d565b8061010a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b606060028054610a3c906148eb565b80601f0160208091040260200160405190810160405280929190818152602001828054610a68906148eb565b8015610ab55780601f10610a8a57610100808354040283529160200191610ab5565b820191906000526020600020905b815481529060010190602001808311610a9857829003601f168201915b5050505050905090565b6000610aca826122bb565b610b00576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6006600083815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b81610b488161231a565b610b528383612417565b505050565b610b608161255b565b50565b6000610b6d612569565b6001546000540303905090565b610b8261223d565b806101079081610b929190614abe565b5050565b6060600061010c600084815260200190815260200160002054905060006040518060400160405280600181526020017f7b00000000000000000000000000000000000000000000000000000000000000815250905060006040518060400160405280600181526020017f220000000000000000000000000000000000000000000000000000000000000081525090506000828261010484604051602001610c409493929190614ce7565b60405160208183030381529060405290506000818361010585604051602001610c6c9493929190614d87565b604051602081830303815290604052905060008184610106610c8d89612572565b87604051602001610ca2959493929190614e27565b604051602081830303815290604052905060008185610107610cc38c612572565b88604051602001610cd8959493929190614ed4565b604051602081830303815290604052905060008161010887610cf98b612572565b89610109604051602001610d1296959493929190614fcd565b60405160208183030381529060405290508098505050505050505050919050565b610d3b61223d565b806101089081610d4b9190614abe565b5050565b823373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610d8d57610d8c3361231a565b5b600061010b60008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206040518060600160405290816000820160009054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff1681526020016000820160089054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff1681526020016000820160109054906101000a90046fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff168152505090508281604001516fffffffffffffffffffffffffffffffff1603610f445761010b60008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600080820160006101000a81549067ffffffffffffffff02191690556000820160086101000a81549067ffffffffffffffff02191690556000820160106101000a8154906fffffffffffffffffffffffffffffffff021916905550505b610f4f858585612640565b5050505050565b610f5e61223d565b806101059081610f6e9190614abe565b5050565b7f00000000000000000000000010453962b2f5675bc715f5329f5a0291a3f8f8af73ffffffffffffffffffffffffffffffffffffffff163073ffffffffffffffffffffffffffffffffffffffff1603611000576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ff7906150ad565b60405180910390fd5b7f00000000000000000000000010453962b2f5675bc715f5329f5a0291a3f8f8af73ffffffffffffffffffffffffffffffffffffffff1661103f612962565b73ffffffffffffffffffffffffffffffffffffffff1614611095576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161108c9061513f565b60405180910390fd5b61109e816129b9565b6110f781600067ffffffffffffffff8111156110bd576110bc6142e9565b5b6040519080825280601f01601f1916602001820160405280156110ef5781602001600182028036833780820191505090505b5060006129c4565b50565b6daaeb6d7670e522a718067333cd4e81565b823373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161461114a576111493361231a565b5b61116584848460405180602001604052806000815250612b32565b50505050565b600061010b60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160089054906101000a900467ffffffffffffffff1667ffffffffffffffff169050919050565b6111de61223d565b8061010990816111ee9190614abe565b5050565b7f00000000000000000000000010453962b2f5675bc715f5329f5a0291a3f8f8af73ffffffffffffffffffffffffffffffffffffffff163073ffffffffffffffffffffffffffffffffffffffff1603611280576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611277906150ad565b60405180910390fd5b7f00000000000000000000000010453962b2f5675bc715f5329f5a0291a3f8f8af73ffffffffffffffffffffffffffffffffffffffff166112bf612962565b73ffffffffffffffffffffffffffffffffffffffff1614611315576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161130c9061513f565b60405180910390fd5b61131e826129b9565b61132a828260016129c4565b5050565b6000426202a30083611340919061518e565b109050919050565b60007f00000000000000000000000010453962b2f5675bc715f5329f5a0291a3f8f8af73ffffffffffffffffffffffffffffffffffffffff163073ffffffffffffffffffffffffffffffffffffffff16146113d8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113cf90615234565b60405180910390fd5b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc60001b905090565b61140961223d565b8061010690816114199190614abe565b5050565b600061142882612ba5565b9050919050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611496576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b67ffffffffffffffff600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054169050919050565b6114ef61223d565b6114f96000612c71565b565b6000600860019054906101000a900460ff1615905080801561152f57506001600860009054906101000a900460ff1660ff16105b8061155e575061153e30612d37565b15801561155d57506001600860009054906101000a900460ff1660ff16145b5b61159d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611594906152c6565b60405180910390fd5b6001600860006101000a81548160ff021916908360ff16021790555080156115db576001600860016101000a81548160ff0219169083151502179055505b6115e3612d5a565b6115eb612db3565b6040518060400160405280600b81526020017f4461696c7920436172676f0000000000000000000000000000000000000000008152506002908161162f9190614abe565b506040518060400160405280600281526020017f4443000000000000000000000000000000000000000000000000000000000000815250600390816116749190614abe565b5061167d612569565b60008190555080156116dd576000600860016101000a81548160ff0219169083151502179055507f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb384740249860016040516116d4919061532e565b60405180910390a15b50565b6000603b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b61171261223d565b8061010490816117229190614abe565b5050565b606060038054611735906148eb565b80601f0160208091040260200160405190810160405280929190818152602001828054611761906148eb565b80156117ae5780601f10611783576101008083540402835291602001916117ae565b820191906000526020600020905b81548152906001019060200180831161179157829003601f168201915b5050505050905090565b6117c0612e0c565b7f00000000000000000000000010453962b2f5675bc715f5329f5a0291a3f8f8af73ffffffffffffffffffffffffffffffffffffffff163073ffffffffffffffffffffffffffffffffffffffff160361184e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611845906150ad565b60405180910390fd5b7f00000000000000000000000010453962b2f5675bc715f5329f5a0291a3f8f8af73ffffffffffffffffffffffffffffffffffffffff1661188d612962565b73ffffffffffffffffffffffffffffffffffffffff16146118e3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118da9061513f565b60405180910390fd5b600061010b60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206040518060600160405290816000820160009054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff1681526020016000820160089054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff1681526020016000820160109054906101000a90046fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff168152505090506000816000015167ffffffffffffffff1690506000826020015167ffffffffffffffff169050611a5585858080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f820116905080830192505050505050508284612e5b565b611a94576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a8b90615395565b60405180910390fd5b426201518083611aa4919061518e565b10611ae4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611adb90615401565b60405180910390fd5b6000811480611af85750611af78261132e565b5b15611c92576000611b07612ed4565b9050611b11613f95565b6001816020019067ffffffffffffffff16908167ffffffffffffffff168152505042816000019067ffffffffffffffff16908167ffffffffffffffff16815250508181604001906fffffffffffffffffffffffffffffffff1690816fffffffffffffffffffffffffffffffff16815250508061010b60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008201518160000160006101000a81548167ffffffffffffffff021916908367ffffffffffffffff16021790555060208201518160000160086101000a81548167ffffffffffffffff021916908367ffffffffffffffff16021790555060408201518160000160106101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff160217905550905050600161010c600084815260200190815260200160002081905550611c88336001612edd565b5050505050611eb6565b600083604001519050611ca3613f95565b60018560200151611cb49190615421565b816020019067ffffffffffffffff16908167ffffffffffffffff168152505042816000019067ffffffffffffffff16908167ffffffffffffffff16815250508181604001906fffffffffffffffffffffffffffffffff1690816fffffffffffffffffffffffffffffffff16815250508061010b60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008201518160000160006101000a81548167ffffffffffffffff021916908367ffffffffffffffff16021790555060208201518160000160086101000a81548167ffffffffffffffff021916908367ffffffffffffffff16021790555060408201518160000160106101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff160217905550905050600161010c6000846fffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611e3b919061518e565b92505081905550816fffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a450505050505b611ebe613098565b5050565b81611ecc8161231a565b611ed683836130a2565b505050565b833373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614611f1957611f183361231a565b5b611f2585858585612b32565b5050505050565b6060611f37826122bb565b611f76576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f6d906154a9565b60405180910390fd5b6000611f8183610b96565b9050611f8c816131ad565b604051602001611f9c9190615515565b604051602081830303815290604052915050919050565b61010b6020528060005260406000206000915090508060000160009054906101000a900467ffffffffffffffff16908060000160089054906101000a900467ffffffffffffffff16908060000160109054906101000a90046fffffffffffffffffffffffffffffffff16905083565b600061010b60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160009054906101000a900467ffffffffffffffff1667ffffffffffffffff169050919050565b6000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b600061010c6000838152602001908152602001600020549050919050565b61214761223d565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036121b6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121ad906155a9565b60405180910390fd5b6121bf81612c71565b50565b600061010b60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160109054906101000a90046fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff169050919050565b612245613325565b73ffffffffffffffffffffffffffffffffffffffff166122636116e0565b73ffffffffffffffffffffffffffffffffffffffff16146122b9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122b090615615565b60405180910390fd5b565b6000816122c6612569565b111580156122d5575060005482105b8015612313575060007c0100000000000000000000000000000000000000000000000000000000600460008581526020019081526020016000205416145b9050919050565b60006daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff163b1115612414576daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff1663c617113430836040518363ffffffff1660e01b8152600401612391929190615635565b602060405180830381865afa1580156123ae573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906123d29190615673565b61241357806040517fede71dcc00000000000000000000000000000000000000000000000000000000815260040161240a9190614284565b60405180910390fd5b5b50565b60006124228261141d565b90508073ffffffffffffffffffffffffffffffffffffffff1661244361332d565b73ffffffffffffffffffffffffffffffffffffffff16146124a65761246f8161246a61332d565b61208d565b6124a5576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b826006600084815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b612566816000613335565b50565b60006001905090565b60606000600161258184613587565b01905060008167ffffffffffffffff8111156125a05761259f6142e9565b5b6040519080825280601f01601f1916602001820160405280156125d25781602001600182028036833780820191505090505b509050600082602001820190505b600115612635578080600190039150507f3031323334353637383961626364656600000000000000000000000000000000600a86061a8153600a8581612629576126286156a0565b5b049450600085036125e0575b819350505050919050565b600061264b82612ba5565b90508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16146126b2576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000806126be846136da565b915091506126d481876126cf61332d565b613701565b612720576126e9866126e461332d565b61208d565b61271f576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1603612786576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6127938686866001613745565b801561279e57600082555b600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081546001900391905081905550600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081546001019190508190555061286c8561284888888761374b565b7c020000000000000000000000000000000000000000000000000000000017613773565b600460008681526020019081526020016000208190555060007c02000000000000000000000000000000000000000000000000000000008416036128f257600060018501905060006004600083815260200190815260200160002054036128f05760005481146128ef578360046000838152602001908152602001600020819055505b5b505b838573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a461295a868686600161379e565b505050505050565b60006129907f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc60001b6137a4565b60000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6129c161223d565b50565b6129f07f4910fdfa16fed3260ed0e7147f7cc6da11a60208b5b9406d12a635614ffd914360001b6137ae565b60000160009054906101000a900460ff1615612a1457612a0f836137b8565b612b2d565b8273ffffffffffffffffffffffffffffffffffffffff166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa925050508015612a7c57506040513d601f19601f82011682018060405250810190612a7991906156fb565b60015b612abb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612ab29061579a565b60405180910390fd5b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc60001b8114612b20576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612b179061582c565b60405180910390fd5b50612b2c838383613871565b5b505050565b612b3d848484610d4f565b60008373ffffffffffffffffffffffffffffffffffffffff163b14612b9f57612b688484848461389d565b612b9e576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b50505050565b60008082905080612bb4612569565b11612c3a57600054811015612c395760006004600083815260200190815260200160002054905060007c0100000000000000000000000000000000000000000000000000000000821603612c37575b60008103612c2d576004600083600190039350838152602001908152602001600020549050612c03565b8092505050612c6c565b505b5b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b6000603b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081603b60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b600860019054906101000a900460ff16612da9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612da0906158be565b60405180910390fd5b612db16139ed565b565b600860019054906101000a900460ff16612e02576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612df9906158be565b60405180910390fd5b612e0a613a4e565b565b6002606d5403612e51576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612e489061592a565b60405180910390fd5b6002606d81905550565b600061010a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16612eb485612ea6338787613aa7565b613ae790919063ffffffff16565b73ffffffffffffffffffffffffffffffffffffffff161490509392505050565b60008054905090565b60008054905060008203612f1d576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b612f2a6000848385613745565b600160406001901b178202600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282540192505081905550612fa183612f92600086600061374b565b612f9b85613b0e565b17613773565b6004600083815260200190815260200160002081905550600080838301905073ffffffffffffffffffffffffffffffffffffffff85169150828260007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600183015b81811461304257808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600181019050613007565b506000820361307d576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b806000819055505050613093600084838561379e565b505050565b6001606d81905550565b80600760006130af61332d565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff1661315c61332d565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516131a19190614090565b60405180910390a35050565b606060008251036131cf57604051806020016040528060008152509050613320565b6000604051806060016040528060408152602001615edd60409139905060006003600285516131fe919061518e565b613208919061594a565b6004613214919061597b565b90506000602082613225919061518e565b67ffffffffffffffff81111561323e5761323d6142e9565b5b6040519080825280601f01601f1916602001820160405280156132705781602001600182028036833780820191505090505b509050818152600183018586518101602084015b818310156132df576003830192508251603f8160121c168501518253600182019150603f81600c1c168501518253600182019150603f8160061c168501518253600182019150603f8116850151825360018201915050613284565b6003895106600181146132f9576002811461330957613314565b613d3d60f01b6002830352613314565b603d60f81b60018303525b50505050508093505050505b919050565b600033905090565b600033905090565b600061334083612ba5565b90506000819050600080613353866136da565b9150915084156133bc5761336f818461336a61332d565b613701565b6133bb576133848361337f61332d565b61208d565b6133ba576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b5b6133ca836000886001613745565b80156133d557600082555b600160806001901b03600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254019250508190555061347d8361343a8560008861374b565b7c02000000000000000000000000000000000000000000000000000000007c01000000000000000000000000000000000000000000000000000000001717613773565b600460008881526020019081526020016000208190555060007c02000000000000000000000000000000000000000000000000000000008516036135035760006001870190506000600460008381526020019081526020016000205403613501576000548114613500578460046000838152602001908152602001600020819055505b5b505b85600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a461356d83600088600161379e565b600160008154809291906001019190505550505050505050565b600080600090507a184f03e93ff9f4daa797ed6e38ed64bf6a1f01000000000000000083106135e5577a184f03e93ff9f4daa797ed6e38ed64bf6a1f01000000000000000083816135db576135da6156a0565b5b0492506040810190505b6d04ee2d6d415b85acef81000000008310613622576d04ee2d6d415b85acef81000000008381613618576136176156a0565b5b0492506020810190505b662386f26fc10000831061365157662386f26fc100008381613647576136466156a0565b5b0492506010810190505b6305f5e100831061367a576305f5e10083816136705761366f6156a0565b5b0492506008810190505b612710831061369f576127108381613695576136946156a0565b5b0492506004810190505b606483106136c257606483816136b8576136b76156a0565b5b0492506002810190505b600a83106136d1576001810190505b80915050919050565b60008060006006600085815260200190815260200160002090508092508254915050915091565b600073ffffffffffffffffffffffffffffffffffffffff8316925073ffffffffffffffffffffffffffffffffffffffff821691508382148383141790509392505050565b50505050565b60008060e883901c905060e8613762868684613b1e565b62ffffff16901b9150509392505050565b600073ffffffffffffffffffffffffffffffffffffffff83169250814260a01b178317905092915050565b50505050565b6000819050919050565b6000819050919050565b6137c181612d37565b613800576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016137f790615a2f565b60405180910390fd5b8061382d7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc60001b6137a4565b60000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b61387a83613b27565b6000825111806138875750805b15613898576138968383613b76565b505b505050565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a026138c361332d565b8786866040518563ffffffff1660e01b81526004016138e59493929190615aa4565b6020604051808303816000875af192505050801561392157506040513d601f19601f8201168201806040525081019061391e9190615b05565b60015b61399a573d8060008114613951576040519150601f19603f3d011682016040523d82523d6000602084013e613956565b606091505b506000815103613992576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b600860019054906101000a900460ff16613a3c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613a33906158be565b60405180910390fd5b613a4c613a47613325565b612c71565b565b600860019054906101000a900460ff16613a9d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613a94906158be565b60405180910390fd5b6001606d81905550565b6000613ade30858585604051602001613ac39493929190615b32565b60405160208183030381529060405280519060200120613c5a565b90509392505050565b6000806000613af68585613c8a565b91509150613b0381613cdb565b819250505092915050565b60006001821460e11b9050919050565b60009392505050565b613b30816137b8565b8073ffffffffffffffffffffffffffffffffffffffff167fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b60405160405180910390a250565b6060613b8183612d37565b613bc0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613bb790615be9565b60405180910390fd5b6000808473ffffffffffffffffffffffffffffffffffffffff1684604051613be89190615c45565b600060405180830381855af49150503d8060008114613c23576040519150601f19603f3d011682016040523d82523d6000602084013e613c28565b606091505b5091509150613c508282604051806060016040528060278152602001615f1d60279139613e41565b9250505092915050565b600081604051602001613c6d9190615cc9565b604051602081830303815290604052805190602001209050919050565b6000806041835103613ccb5760008060006020860151925060408601519150606086015160001a9050613cbf87828585613e63565b94509450505050613cd4565b60006002915091505b9250929050565b60006004811115613cef57613cee615cef565b5b816004811115613d0257613d01615cef565b5b0315613e3e5760016004811115613d1c57613d1b615cef565b5b816004811115613d2f57613d2e615cef565b5b03613d6f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613d6690615d6a565b60405180910390fd5b60026004811115613d8357613d82615cef565b5b816004811115613d9657613d95615cef565b5b03613dd6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613dcd90615dd6565b60405180910390fd5b60036004811115613dea57613de9615cef565b5b816004811115613dfd57613dfc615cef565b5b03613e3d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613e3490615e68565b60405180910390fd5b5b50565b60608315613e5157829050613e5c565b613e5b8383613f45565b5b9392505050565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08360001c1115613e9e576000600391509150613f3c565b600060018787878760405160008152602001604052604051613ec39493929190615e97565b6020604051602081039080840390855afa158015613ee5573d6000803e3d6000fd5b505050602060405103519050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603613f3357600060019250925050613f3c565b80600092509250505b94509492505050565b600082511115613f585781518083602001fd5b806040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613f8c9190614253565b60405180910390fd5b6040518060600160405280600067ffffffffffffffff168152602001600067ffffffffffffffff16815260200160006fffffffffffffffffffffffffffffffff1681525090565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b61402581613ff0565b811461403057600080fd5b50565b6000813590506140428161401c565b92915050565b60006020828403121561405e5761405d613fe6565b5b600061406c84828501614033565b91505092915050565b60008115159050919050565b61408a81614075565b82525050565b60006020820190506140a56000830184614081565b92915050565b6000819050919050565b6140be816140ab565b81146140c957600080fd5b50565b6000813590506140db816140b5565b92915050565b6000602082840312156140f7576140f6613fe6565b5b6000614105848285016140cc565b91505092915050565b614117816140ab565b82525050565b6000602082019050614132600083018461410e565b92915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061416382614138565b9050919050565b61417381614158565b811461417e57600080fd5b50565b6000813590506141908161416a565b92915050565b6000602082840312156141ac576141ab613fe6565b5b60006141ba84828501614181565b91505092915050565b600081519050919050565b600082825260208201905092915050565b60005b838110156141fd5780820151818401526020810190506141e2565b60008484015250505050565b6000601f19601f8301169050919050565b6000614225826141c3565b61422f81856141ce565b935061423f8185602086016141df565b61424881614209565b840191505092915050565b6000602082019050818103600083015261426d818461421a565b905092915050565b61427e81614158565b82525050565b60006020820190506142996000830184614275565b92915050565b600080604083850312156142b6576142b5613fe6565b5b60006142c485828601614181565b92505060206142d5858286016140cc565b9150509250929050565b600080fd5b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b61432182614209565b810181811067ffffffffffffffff821117156143405761433f6142e9565b5b80604052505050565b6000614353613fdc565b905061435f8282614318565b919050565b600067ffffffffffffffff82111561437f5761437e6142e9565b5b61438882614209565b9050602081019050919050565b82818337600083830152505050565b60006143b76143b284614364565b614349565b9050828152602081018484840111156143d3576143d26142e4565b5b6143de848285614395565b509392505050565b600082601f8301126143fb576143fa6142df565b5b813561440b8482602086016143a4565b91505092915050565b60006020828403121561442a57614429613fe6565b5b600082013567ffffffffffffffff81111561444857614447613feb565b5b614454848285016143e6565b91505092915050565b60008060006060848603121561447657614475613fe6565b5b600061448486828701614181565b935050602061449586828701614181565b92505060406144a6868287016140cc565b9150509250925092565b6000819050919050565b60006144d56144d06144cb84614138565b6144b0565b614138565b9050919050565b60006144e7826144ba565b9050919050565b60006144f9826144dc565b9050919050565b614509816144ee565b82525050565b60006020820190506145246000830184614500565b92915050565b600067ffffffffffffffff821115614545576145446142e9565b5b61454e82614209565b9050602081019050919050565b600061456e6145698461452a565b614349565b90508281526020810184848401111561458a576145896142e4565b5b614595848285614395565b509392505050565b600082601f8301126145b2576145b16142df565b5b81356145c284826020860161455b565b91505092915050565b600080604083850312156145e2576145e1613fe6565b5b60006145f085828601614181565b925050602083013567ffffffffffffffff81111561461157614610613feb565b5b61461d8582860161459d565b9150509250929050565b6000819050919050565b61463a81614627565b82525050565b60006020820190506146556000830184614631565b92915050565b600080fd5b600080fd5b60008083601f84011261467b5761467a6142df565b5b8235905067ffffffffffffffff8111156146985761469761465b565b5b6020830191508360018202830111156146b4576146b3614660565b5b9250929050565b600080602083850312156146d2576146d1613fe6565b5b600083013567ffffffffffffffff8111156146f0576146ef613feb565b5b6146fc85828601614665565b92509250509250929050565b61471181614075565b811461471c57600080fd5b50565b60008135905061472e81614708565b92915050565b6000806040838503121561474b5761474a613fe6565b5b600061475985828601614181565b925050602061476a8582860161471f565b9150509250929050565b6000806000806080858703121561478e5761478d613fe6565b5b600061479c87828801614181565b94505060206147ad87828801614181565b93505060406147be878288016140cc565b925050606085013567ffffffffffffffff8111156147df576147de613feb565b5b6147eb8782880161459d565b91505092959194509250565b600067ffffffffffffffff82169050919050565b614814816147f7565b82525050565b60006fffffffffffffffffffffffffffffffff82169050919050565b61483f8161481a565b82525050565b600060608201905061485a600083018661480b565b614867602083018561480b565b6148746040830184614836565b949350505050565b6000806040838503121561489357614892613fe6565b5b60006148a185828601614181565b92505060206148b285828601614181565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168061490357607f821691505b602082108103614916576149156148bc565b5b50919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b60006008830261497e7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82614941565b6149888683614941565b95508019841693508086168417925050509392505050565b60006149bb6149b66149b1846140ab565b6144b0565b6140ab565b9050919050565b6000819050919050565b6149d5836149a0565b6149e96149e1826149c2565b84845461494e565b825550505050565b600090565b6149fe6149f1565b614a098184846149cc565b505050565b5b81811015614a2d57614a226000826149f6565b600181019050614a0f565b5050565b601f821115614a7257614a438161491c565b614a4c84614931565b81016020851015614a5b578190505b614a6f614a6785614931565b830182614a0e565b50505b505050565b600082821c905092915050565b6000614a9560001984600802614a77565b1980831691505092915050565b6000614aae8383614a84565b9150826002028217905092915050565b614ac7826141c3565b67ffffffffffffffff811115614ae057614adf6142e9565b5b614aea82546148eb565b614af5828285614a31565b600060209050601f831160018114614b285760008415614b16578287015190505b614b208582614aa2565b865550614b88565b601f198416614b368661491c565b60005b82811015614b5e57848901518255600182019150602085019450602081019050614b39565b86831015614b7b5784890151614b77601f891682614a84565b8355505b6001600288020188555050505b505050505050565b600081905092915050565b6000614ba6826141c3565b614bb08185614b90565b9350614bc08185602086016141df565b80840191505092915050565b7f226465736372697074696f6e223a000000000000000000000000000000000000600082015250565b6000614c02600e83614b90565b9150614c0d82614bcc565b600e82019050919050565b60008154614c25816148eb565b614c2f8186614b90565b94506001821660008114614c4a5760018114614c5f57614c92565b60ff1983168652811515820286019350614c92565b614c688561491c565b60005b83811015614c8a57815481890152600182019150602081019050614c6b565b838801955050505b50505092915050565b7f2c00000000000000000000000000000000000000000000000000000000000000600082015250565b6000614cd1600183614b90565b9150614cdc82614c9b565b600182019050919050565b6000614cf38287614b9b565b9150614cfe82614bf5565b9150614d0a8286614b9b565b9150614d168285614c18565b9150614d228284614b9b565b9150614d2d82614cc4565b915081905095945050505050565b7f2265787465726e616c5f75726c223a0000000000000000000000000000000000600082015250565b6000614d71600f83614b90565b9150614d7c82614d3b565b600f82019050919050565b6000614d938287614b9b565b9150614d9e82614d64565b9150614daa8286614b9b565b9150614db68285614c18565b9150614dc28284614b9b565b9150614dcd82614cc4565b915081905095945050505050565b7f22696d616765223a000000000000000000000000000000000000000000000000600082015250565b6000614e11600883614b90565b9150614e1c82614ddb565b600882019050919050565b6000614e338288614b9b565b9150614e3e82614e04565b9150614e4a8287614b9b565b9150614e568286614c18565b9150614e628285614b9b565b9150614e6e8284614b9b565b9150614e7982614cc4565b91508190509695505050505050565b7f226e616d65223a00000000000000000000000000000000000000000000000000600082015250565b6000614ebe600783614b90565b9150614ec982614e88565b600782019050919050565b6000614ee08288614b9b565b9150614eeb82614eb1565b9150614ef78287614b9b565b9150614f038286614c18565b9150614f0f8285614b9b565b9150614f1b8284614b9b565b9150614f2682614cc4565b91508190509695505050505050565b7f2261747472696275746573223a00000000000000000000000000000000000000600082015250565b6000614f6b600d83614b90565b9150614f7682614f35565b600d82019050919050565b7f7d00000000000000000000000000000000000000000000000000000000000000600082015250565b6000614fb7600183614b90565b9150614fc282614f81565b600182019050919050565b6000614fd98289614b9b565b9150614fe482614f5e565b9150614ff08288614c18565b9150614ffc8287614b9b565b91506150088286614b9b565b91506150148285614b9b565b91506150208284614c18565b915061502b82614faa565b9150819050979650505050505050565b7f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060008201527f64656c656761746563616c6c0000000000000000000000000000000000000000602082015250565b6000615097602c836141ce565b91506150a28261503b565b604082019050919050565b600060208201905081810360008301526150c68161508a565b9050919050565b7f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060008201527f6163746976652070726f78790000000000000000000000000000000000000000602082015250565b6000615129602c836141ce565b9150615134826150cd565b604082019050919050565b600060208201905081810360008301526151588161511c565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000615199826140ab565b91506151a4836140ab565b92508282019050808211156151bc576151bb61515f565b5b92915050565b7f555550535570677261646561626c653a206d757374206e6f742062652063616c60008201527f6c6564207468726f7567682064656c656761746563616c6c0000000000000000602082015250565b600061521e6038836141ce565b9150615229826151c2565b604082019050919050565b6000602082019050818103600083015261524d81615211565b9050919050565b7f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160008201527f647920696e697469616c697a6564000000000000000000000000000000000000602082015250565b60006152b0602e836141ce565b91506152bb82615254565b604082019050919050565b600060208201905081810360008301526152df816152a3565b9050919050565b6000819050919050565b600060ff82169050919050565b600061531861531361530e846152e6565b6144b0565b6152f0565b9050919050565b615328816152fd565b82525050565b6000602082019050615343600083018461531f565b92915050565b7f696e76616c6964207369676e61747572652e0000000000000000000000000000600082015250565b600061537f6012836141ce565b915061538a82615349565b602082019050919050565b600060208201905081810360008301526153ae81615372565b9050919050565b7f796f752063616e206f6e6c79206d696e74206f6e652070657220646179000000600082015250565b60006153eb601d836141ce565b91506153f6826153b5565b602082019050919050565b6000602082019050818103600083015261541a816153de565b9050919050565b600061542c826147f7565b9150615437836147f7565b9250828201905067ffffffffffffffff8111156154575761545661515f565b5b92915050565b7f636172676f20686173206e6f74206265656e206d696e7465642e000000000000600082015250565b6000615493601a836141ce565b915061549e8261545d565b602082019050919050565b600060208201905081810360008301526154c281615486565b9050919050565b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c000000600082015250565b60006154ff601d83614b90565b915061550a826154c9565b601d82019050919050565b6000615520826154f2565b915061552c8284614b9b565b915081905092915050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b60006155936026836141ce565b915061559e82615537565b604082019050919050565b600060208201905081810360008301526155c281615586565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b60006155ff6020836141ce565b915061560a826155c9565b602082019050919050565b6000602082019050818103600083015261562e816155f2565b9050919050565b600060408201905061564a6000830185614275565b6156576020830184614275565b9392505050565b60008151905061566d81614708565b92915050565b60006020828403121561568957615688613fe6565b5b60006156978482850161565e565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6156d881614627565b81146156e357600080fd5b50565b6000815190506156f5816156cf565b92915050565b60006020828403121561571157615710613fe6565b5b600061571f848285016156e6565b91505092915050565b7f45524331393637557067726164653a206e657720696d706c656d656e7461746960008201527f6f6e206973206e6f742055555053000000000000000000000000000000000000602082015250565b6000615784602e836141ce565b915061578f82615728565b604082019050919050565b600060208201905081810360008301526157b381615777565b9050919050565b7f45524331393637557067726164653a20756e737570706f727465642070726f7860008201527f6961626c65555549440000000000000000000000000000000000000000000000602082015250565b60006158166029836141ce565b9150615821826157ba565b604082019050919050565b6000602082019050818103600083015261584581615809565b9050919050565b7f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960008201527f6e697469616c697a696e67000000000000000000000000000000000000000000602082015250565b60006158a8602b836141ce565b91506158b38261584c565b604082019050919050565b600060208201905081810360008301526158d78161589b565b9050919050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b6000615914601f836141ce565b915061591f826158de565b602082019050919050565b6000602082019050818103600083015261594381615907565b9050919050565b6000615955826140ab565b9150615960836140ab565b9250826159705761596f6156a0565b5b828204905092915050565b6000615986826140ab565b9150615991836140ab565b925082820261599f816140ab565b915082820484148315176159b6576159b561515f565b5b5092915050565b7f455243313936373a206e657720696d706c656d656e746174696f6e206973206e60008201527f6f74206120636f6e747261637400000000000000000000000000000000000000602082015250565b6000615a19602d836141ce565b9150615a24826159bd565b604082019050919050565b60006020820190508181036000830152615a4881615a0c565b9050919050565b600081519050919050565b600082825260208201905092915050565b6000615a7682615a4f565b615a808185615a5a565b9350615a908185602086016141df565b615a9981614209565b840191505092915050565b6000608082019050615ab96000830187614275565b615ac66020830186614275565b615ad3604083018561410e565b8181036060830152615ae58184615a6b565b905095945050505050565b600081519050615aff8161401c565b92915050565b600060208284031215615b1b57615b1a613fe6565b5b6000615b2984828501615af0565b91505092915050565b6000608082019050615b476000830187614275565b615b546020830186614275565b615b61604083018561410e565b615b6e606083018461410e565b95945050505050565b7f416464726573733a2064656c65676174652063616c6c20746f206e6f6e2d636f60008201527f6e74726163740000000000000000000000000000000000000000000000000000602082015250565b6000615bd36026836141ce565b9150615bde82615b77565b604082019050919050565b60006020820190508181036000830152615c0281615bc6565b9050919050565b600081905092915050565b6000615c1f82615a4f565b615c298185615c09565b9350615c398185602086016141df565b80840191505092915050565b6000615c518284615c14565b915081905092915050565b7f19457468657265756d205369676e6564204d6573736167653a0a333200000000600082015250565b6000615c92601c83614b90565b9150615c9d82615c5c565b601c82019050919050565b6000819050919050565b615cc3615cbe82614627565b615ca8565b82525050565b6000615cd482615c85565b9150615ce08284615cb2565b60208201915081905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b7f45434453413a20696e76616c6964207369676e61747572650000000000000000600082015250565b6000615d546018836141ce565b9150615d5f82615d1e565b602082019050919050565b60006020820190508181036000830152615d8381615d47565b9050919050565b7f45434453413a20696e76616c6964207369676e6174757265206c656e67746800600082015250565b6000615dc0601f836141ce565b9150615dcb82615d8a565b602082019050919050565b60006020820190508181036000830152615def81615db3565b9050919050565b7f45434453413a20696e76616c6964207369676e6174757265202773272076616c60008201527f7565000000000000000000000000000000000000000000000000000000000000602082015250565b6000615e526022836141ce565b9150615e5d82615df6565b604082019050919050565b60006020820190508181036000830152615e8181615e45565b9050919050565b615e91816152f0565b82525050565b6000608082019050615eac6000830187614631565b615eb96020830186615e88565b615ec66040830185614631565b615ed36060830184614631565b9594505050505056fe4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2f416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564a26469706673582212202f7df4465af697bdacfb5d6a500f22a37aebd4443cfe3e777b69f0e84785d86d64736f6c63430008110033

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

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

Validator Index Block Amount
View All Withdrawals

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

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