ETH Price: $3,253.24 (+2.13%)
Gas: 1 Gwei

Contract

0xc7011449Db9E4F679B90a84Eb7EEAe5e59706d27
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Coupon Mint200586772024-06-10 3:14:3546 days ago1717989275IN
0xc7011449...e59706d27
0 ETH0.00069463.69982161
Set Approval For...200008142024-06-02 1:19:5954 days ago1717291199IN
0xc7011449...e59706d27
0 ETH0.000201254.31738289
Coupon Mint197628032024-04-29 18:38:2388 days ago1714415903IN
0xc7011449...e59706d27
0 ETH0.0021977911.38580961
Coupon Mint197627992024-04-29 18:37:3588 days ago1714415855IN
0xc7011449...e59706d27
0 ETH0.0021400911.08620397
Coupon Mint197627382024-04-29 18:25:2388 days ago1714415123IN
0xc7011449...e59706d27
0 ETH0.0024657812.96135889
Coupon Mint197626852024-04-29 18:14:4788 days ago1714414487IN
0xc7011449...e59706d27
0 ETH0.0027458614.43361033
Coupon Mint196166052024-04-09 7:29:11108 days ago1712647751IN
0xc7011449...e59706d27
0 ETH0.0038264521.38451022
Coupon Mint195284052024-03-27 22:10:47121 days ago1711577447IN
0xc7011449...e59706d27
0 ETH0.008966247.76144688
Coupon Mint194278852024-03-13 18:20:59135 days ago1710354059IN
0xc7011449...e59706d27
0 ETH0.01059756.44481514
Coupon Mint194275762024-03-13 17:17:35135 days ago1710350255IN
0xc7011449...e59706d27
0 ETH0.0125925666.19684859
Coupon Mint194275602024-03-13 17:14:11135 days ago1710350051IN
0xc7011449...e59706d27
0 ETH0.0125350366.76769501
Coupon Mint194274382024-03-13 16:49:35135 days ago1710348575IN
0xc7011449...e59706d27
0 ETH0.0118704466.33907361
Coupon Mint194259342024-03-13 11:44:35135 days ago1710330275IN
0xc7011449...e59706d27
0 ETH0.0117813864.93408275
Coupon Mint194111292024-03-11 10:02:23137 days ago1710151343IN
0xc7011449...e59706d27
0 ETH0.012575470.27878931
Coupon Mint193969262024-03-09 10:24:59139 days ago1709979899IN
0xc7011449...e59706d27
0 ETH0.0067006361.1036918
Coupon Mint193911072024-03-08 14:40:59140 days ago1709908859IN
0xc7011449...e59706d27
0 ETH0.0144924680.99787029
Coupon Mint193299852024-02-29 1:44:47148 days ago1709171087IN
0xc7011449...e59706d27
0 ETH0.0085256746.99001239
Coupon Mint193232892024-02-28 3:15:11149 days ago1709090111IN
0xc7011449...e59706d27
0 ETH0.0077574740.77711517
Coupon Mint193193432024-02-27 13:59:35150 days ago1709042375IN
0xc7011449...e59706d27
0 ETH0.0083250146.52508191
Coupon Mint193187972024-02-27 12:09:59150 days ago1709035799IN
0xc7011449...e59706d27
0 ETH0.0048437241.02212697
Coupon Mint193184132024-02-27 10:52:23150 days ago1709031143IN
0xc7011449...e59706d27
0 ETH0.0086879345.66803135
Coupon Mint193166142024-02-27 4:50:59150 days ago1709009459IN
0xc7011449...e59706d27
0 ETH0.0083299546.55271449
Coupon Mint193135592024-02-26 18:35:47151 days ago1708972547IN
0xc7011449...e59706d27
0 ETH0.0096315451.30231814
Coupon Mint192913322024-02-23 15:58:11154 days ago1708703891IN
0xc7011449...e59706d27
0 ETH0.009050248.20887771
Coupon Mint192751742024-02-21 9:35:11156 days ago1708508111IN
0xc7011449...e59706d27
0 ETH0.0060220432.07841606
View all transactions

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
PunkDaoCommunity

Compiler Version
v0.8.21+commit.d9974bed

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion
File 1 of 17 : PunkDaoCommunity.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.9;

import "./ICryptoPunksMarket.sol";
import "./IDelegateRegistry.sol";
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";
import "@openzeppelin/contracts/access/Ownable.sol";

/**
 * @title PunkDaoCommunity
 * @author Arkaydeus @ Punk DAO
 * @notice The Punk DAO community membership token
 * Please visit https://punk-dao.xyz for more information.
 */

contract PunkDaoCommunity is ERC721, ERC721Enumerable, Ownable {
  struct Coupon {
    bytes32 r;
    bytes32 s;
    uint8 v;
  }

  enum SalePhase {
    Deployed,
    Live,
    Paused
  }

  event Minted(address indexed _from, uint256 indexed _tokenId);

  // Public variables
  SalePhase public salePhase = SalePhase.Deployed;
  uint256 public mintRate = 0.0 ether;

  // Private variables
  string public contractURI;
  address private immutable adminSigner;

  /// @notice CryptoPunksMarket contract address
  address public punkContractAddress;

  /// @notice Delegate.Cash contract address
  address public delegateCashAddress;

  constructor(
    string memory _contractURI,
    address _adminSigner,
    address _deployedPunkContractAddress,
    address _delegateCashAddress
  ) ERC721("Punk DAO Community Membership", "PUNKDC") {
    contractURI = _contractURI;
    adminSigner = _adminSigner;
    punkContractAddress = _deployedPunkContractAddress;
    delegateCashAddress = _delegateCashAddress;
  }

  // Advance Phase
  // @dev Advance the sale phase state
  // @notice Advances sale phase state incrementally
  function enterPhase(SalePhase _salePhase) external onlyOwner {
    require(_salePhase != SalePhase.Deployed, "Cannot set as deployed");
    salePhase = _salePhase;
  }

  /// Mint with coupon
  /// @dev mints by addresses validated using verified coupons signed by an admin signer
  /// @param _tokenId token ID of the cryptopunk to mint in relation to
  /// @param _to address to mint to
  function couponMint(
    uint256 _tokenId,
    address _to,
    Coupon memory _coupon
  ) external payable {
    // If token already exists, activate transfer to new owner
    if (_exists(_tokenId)) {
      require(
        checkValidToAddress(_tokenId, msg.sender),
        "Caller doesn't have authority to transfer token"
      );
      require(checkValidToAddress(_tokenId, _to), "Invalid to address");
      _transfer(_ownerOf(_tokenId), _to, _tokenId);
      return;
    }

    require(salePhase == SalePhase.Live, "Minting is not live");

    bytes32 payloadHash = keccak256(abi.encode(_tokenId, _to));
    bytes32 messageHash = keccak256(
      abi.encodePacked("\x19Ethereum Signed Message:\n32", payloadHash)
    );

    require(_isVerifiedCoupon(messageHash, _coupon), "Invalid coupon");

    require(
      checkValidToAddress(_tokenId, _to),
      "To address is not valid for tokenId."
    );
    require(
      msg.value == mintRate,
      "Transaction value did not equal mint price"
    );

    _safeMint(_to, _tokenId);
    emit Minted(_to, _tokenId);
  }

  /// Set contact URI
  /// @dev sets the URI for metadata
  /// @param _contractURI URI for contract metadata
  function setContractURI(string calldata _contractURI) external onlyOwner {
    contractURI = _contractURI;
  }

  /// Set mint rate
  /// @dev sets the mint rate for the contract
  /// @param _mintRate rate to mint at (price)
  function setMintRate(uint256 _mintRate) external onlyOwner {
    mintRate = _mintRate;
  }

  /// Is Verified Coupon
  /// @dev checks if a coupon is valid
  /// @param _digest digest of the coupon
  /// @param _coupon coupon to check
  function _isVerifiedCoupon(
    bytes32 _digest,
    Coupon memory _coupon
  ) internal view returns (bool) {
    address signer = ecrecover(_digest, _coupon.v, _coupon.r, _coupon.s);
    require(signer != address(0), "ECDSA: invalid signature");

    return signer == adminSigner;
  }

  /// Is With Punk
  /// @dev checks if a token is with a punk
  /// @param _tokenId token ID to check
  function isWithPunk(uint256 _tokenId) public view returns (bool) {
    if (
      ICryptoPunksMarket(punkContractAddress).punkIndexToAddress(_tokenId) ==
      super.ownerOf(_tokenId)
    ) {
      return true;
    }

    if (isDelegatedByPunk(_tokenId)) {
      return true;
    }

    return false;
  }

  /// Is Delegated By Punk
  /// @dev checks if a caller is delegated by a punk address
  /// @param _tokenId token ID to check
  function isDelegatedByPunk(uint256 _tokenId) public view returns (bool) {
    return _checkDelegation(_tokenId, super.ownerOf(_tokenId));
  }

  /// Withdraw
  /// @dev withdraws ETH from the contract
  function withdraw() public onlyOwner {
    (bool success, ) = payable(owner()).call{value: address(this).balance}("");
    require(success, "ETH withdrawal failed");
  }

  /// Check Delegation
  /// @dev checks if a delegate is valid for a token ID
  /// @param _tokenId token ID to check
  /// @param _delegate delegate address to check
  function _checkDelegation(
    uint256 _tokenId,
    address _delegate
  ) internal view returns (bool) {
    return
      IDelegateRegistry(delegateCashAddress).checkDelegateForERC721(
        _delegate,
        ICryptoPunksMarket(punkContractAddress).punkIndexToAddress(_tokenId),
        punkContractAddress,
        _tokenId,
        ""
      );
  }

  /// Check Valid To Address
  /// @dev checks if a to address is valid for a token ID
  /// @param _tokenId token ID to check
  /// @param _to to address to check
  function checkValidToAddress(
    uint256 _tokenId,
    address _to
  ) public view returns (bool) {
    return (_checkDelegation(_tokenId, _to) ||
      (ICryptoPunksMarket(punkContractAddress).punkIndexToAddress(_tokenId)) ==
      _to);
  }

  // The following functions are overrides required by Solidity.

  function _beforeTokenTransfer(
    address from,
    address to,
    uint256 tokenId,
    uint256 batchSize
  ) internal override(ERC721, ERC721Enumerable) {
    require(checkValidToAddress(tokenId, to), "To address is not valid.");

    super._beforeTokenTransfer(from, to, tokenId, batchSize);
  }

  function _burn(uint256 tokenId) internal override(ERC721) {
    super._burn(tokenId);
  }

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

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

  function supportsInterface(
    bytes4 interfaceId
  ) public view override(ERC721, ERC721Enumerable) returns (bool) {
    return super.supportsInterface(interfaceId);
  }
}

File 2 of 17 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (access/Ownable.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

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

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

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

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

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

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

    /**
     * @dev See {IERC721-balanceOf}.
     */
    function balanceOf(address owner) public view virtual override returns (uint256) {
        require(owner != address(0), "ERC721: address zero is not a valid owner");
        return _balances[owner];
    }

    /**
     * @dev See {IERC721-ownerOf}.
     */
    function ownerOf(uint256 tokenId) public view virtual override returns (address) {
        address owner = _ownerOf(tokenId);
        require(owner != address(0), "ERC721: invalid token ID");
        return owner;
    }

    /**
     * @dev See {IERC721Metadata-name}.
     */
    function name() public view virtual override returns (string memory) {
        return _name;
    }

    /**
     * @dev See {IERC721Metadata-symbol}.
     */
    function symbol() public view virtual override returns (string memory) {
        return _symbol;
    }

    /**
     * @dev See {IERC721Metadata-tokenURI}.
     */
    function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
        _requireMinted(tokenId);

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

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

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

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

        _approve(to, tokenId);
    }

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

        return _tokenApprovals[tokenId];
    }

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

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

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

        _transfer(from, to, tokenId);
    }

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

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

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

    /**
     * @dev Returns the owner of the `tokenId`. Does NOT revert if token doesn't exist
     */
    function _ownerOf(uint256 tokenId) internal view virtual returns (address) {
        return _owners[tokenId];
    }

    /**
     * @dev Returns whether `tokenId` exists.
     *
     * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}.
     *
     * Tokens start existing when they are minted (`_mint`),
     * and stop existing when they are burned (`_burn`).
     */
    function _exists(uint256 tokenId) internal view virtual returns (bool) {
        return _ownerOf(tokenId) != address(0);
    }

    /**
     * @dev Returns whether `spender` is allowed to manage `tokenId`.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) {
        address owner = ERC721.ownerOf(tokenId);
        return (spender == owner || isApprovedForAll(owner, spender) || getApproved(tokenId) == spender);
    }

    /**
     * @dev Safely mints `tokenId` and transfers it to `to`.
     *
     * Requirements:
     *
     * - `tokenId` must not exist.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function _safeMint(address to, uint256 tokenId) internal virtual {
        _safeMint(to, tokenId, "");
    }

    /**
     * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is
     * forwarded in {IERC721Receiver-onERC721Received} to contract recipients.
     */
    function _safeMint(address to, uint256 tokenId, bytes memory data) internal virtual {
        _mint(to, tokenId);
        require(
            _checkOnERC721Received(address(0), to, tokenId, data),
            "ERC721: transfer to non ERC721Receiver implementer"
        );
    }

    /**
     * @dev Mints `tokenId` and transfers it to `to`.
     *
     * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible
     *
     * Requirements:
     *
     * - `tokenId` must not exist.
     * - `to` cannot be the zero address.
     *
     * Emits a {Transfer} event.
     */
    function _mint(address to, uint256 tokenId) internal virtual {
        require(to != address(0), "ERC721: mint to the zero address");
        require(!_exists(tokenId), "ERC721: token already minted");

        _beforeTokenTransfer(address(0), to, tokenId, 1);

        // Check that tokenId was not minted by `_beforeTokenTransfer` hook
        require(!_exists(tokenId), "ERC721: token already minted");

        unchecked {
            // Will not overflow unless all 2**256 token ids are minted to the same owner.
            // Given that tokens are minted one by one, it is impossible in practice that
            // this ever happens. Might change if we allow batch minting.
            // The ERC fails to describe this case.
            _balances[to] += 1;
        }

        _owners[tokenId] = to;

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

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

    /**
     * @dev Destroys `tokenId`.
     * The approval is cleared when the token is burned.
     * This is an internal function that does not check if the sender is authorized to operate on the token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     *
     * Emits a {Transfer} event.
     */
    function _burn(uint256 tokenId) internal virtual {
        address owner = ERC721.ownerOf(tokenId);

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

        // Update ownership in case tokenId was transferred by `_beforeTokenTransfer` hook
        owner = ERC721.ownerOf(tokenId);

        // Clear approvals
        delete _tokenApprovals[tokenId];

        unchecked {
            // Cannot overflow, as that would require more tokens to be burned/transferred
            // out than the owner initially received through minting and transferring in.
            _balances[owner] -= 1;
        }
        delete _owners[tokenId];

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

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

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

        _beforeTokenTransfer(from, to, tokenId, 1);

        // Check that tokenId was not transferred by `_beforeTokenTransfer` hook
        require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer from incorrect owner");

        // Clear approvals from the previous owner
        delete _tokenApprovals[tokenId];

        unchecked {
            // `_balances[from]` cannot overflow for the same reason as described in `_burn`:
            // `from`'s balance is the number of token held, which is at least one before the current
            // transfer.
            // `_balances[to]` could overflow in the conditions described in `_mint`. That would require
            // all 2**256 token ids to be minted, which in practice is impossible.
            _balances[from] -= 1;
            _balances[to] += 1;
        }
        _owners[tokenId] = to;

        emit Transfer(from, to, tokenId);

        _afterTokenTransfer(from, to, tokenId, 1);
    }

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

    /**
     * @dev Approve `operator` to operate on all of `owner` tokens
     *
     * Emits an {ApprovalForAll} event.
     */
    function _setApprovalForAll(address owner, address operator, bool approved) internal virtual {
        require(owner != operator, "ERC721: approve to caller");
        _operatorApprovals[owner][operator] = approved;
        emit ApprovalForAll(owner, operator, approved);
    }

    /**
     * @dev Reverts if the `tokenId` has not been minted yet.
     */
    function _requireMinted(uint256 tokenId) internal view virtual {
        require(_exists(tokenId), "ERC721: invalid token ID");
    }

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

    /**
     * @dev Hook that is called before any token transfer. This includes minting and burning. If {ERC721Consecutive} is
     * used, the hook may be called as part of a consecutive (batch) mint, as indicated by `batchSize` greater than 1.
     *
     * Calling conditions:
     *
     * - When `from` and `to` are both non-zero, ``from``'s tokens will be transferred to `to`.
     * - When `from` is zero, the tokens will be minted for `to`.
     * - When `to` is zero, ``from``'s tokens will be burned.
     * - `from` and `to` are never both zero.
     * - `batchSize` is non-zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _beforeTokenTransfer(address from, address to, uint256 firstTokenId, uint256 batchSize) internal virtual {}

    /**
     * @dev Hook that is called after any token transfer. This includes minting and burning. If {ERC721Consecutive} is
     * used, the hook may be called as part of a consecutive (batch) mint, as indicated by `batchSize` greater than 1.
     *
     * Calling conditions:
     *
     * - When `from` and `to` are both non-zero, ``from``'s tokens were transferred to `to`.
     * - When `from` is zero, the tokens were minted for `to`.
     * - When `to` is zero, ``from``'s tokens were burned.
     * - `from` and `to` are never both zero.
     * - `batchSize` is non-zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _afterTokenTransfer(address from, address to, uint256 firstTokenId, uint256 batchSize) internal virtual {}

    /**
     * @dev Unsafe write access to the balances, used by extensions that "mint" tokens using an {ownerOf} override.
     *
     * WARNING: Anyone calling this MUST ensure that the balances remain consistent with the ownership. The invariant
     * being that for any address `a` the value returned by `balanceOf(a)` must be equal to the number of tokens such
     * that `ownerOf(tokenId)` is `a`.
     */
    // solhint-disable-next-line func-name-mixedcase
    function __unsafe_increaseBalance(address account, uint256 amount) internal {
        _balances[account] += amount;
    }
}

File 4 of 17 : ERC721Enumerable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (token/ERC721/extensions/ERC721Enumerable.sol)

pragma solidity ^0.8.0;

import "../ERC721.sol";
import "./IERC721Enumerable.sol";

/**
 * @dev This implements an optional extension of {ERC721} defined in the EIP that adds
 * enumerability of all the token ids in the contract as well as all token ids owned by each
 * account.
 */
abstract contract ERC721Enumerable is ERC721, IERC721Enumerable {
    // Mapping from owner to list of owned token IDs
    mapping(address => mapping(uint256 => uint256)) private _ownedTokens;

    // Mapping from token ID to index of the owner tokens list
    mapping(uint256 => uint256) private _ownedTokensIndex;

    // Array with all token ids, used for enumeration
    uint256[] private _allTokens;

    // Mapping from token id to position in the allTokens array
    mapping(uint256 => uint256) private _allTokensIndex;

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

    /**
     * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}.
     */
    function tokenOfOwnerByIndex(address owner, uint256 index) public view virtual override returns (uint256) {
        require(index < ERC721.balanceOf(owner), "ERC721Enumerable: owner index out of bounds");
        return _ownedTokens[owner][index];
    }

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

    /**
     * @dev See {IERC721Enumerable-tokenByIndex}.
     */
    function tokenByIndex(uint256 index) public view virtual override returns (uint256) {
        require(index < ERC721Enumerable.totalSupply(), "ERC721Enumerable: global index out of bounds");
        return _allTokens[index];
    }

    /**
     * @dev See {ERC721-_beforeTokenTransfer}.
     */
    function _beforeTokenTransfer(
        address from,
        address to,
        uint256 firstTokenId,
        uint256 batchSize
    ) internal virtual override {
        super._beforeTokenTransfer(from, to, firstTokenId, batchSize);

        if (batchSize > 1) {
            // Will only trigger during construction. Batch transferring (minting) is not available afterwards.
            revert("ERC721Enumerable: consecutive transfers not supported");
        }

        uint256 tokenId = firstTokenId;

        if (from == address(0)) {
            _addTokenToAllTokensEnumeration(tokenId);
        } else if (from != to) {
            _removeTokenFromOwnerEnumeration(from, tokenId);
        }
        if (to == address(0)) {
            _removeTokenFromAllTokensEnumeration(tokenId);
        } else if (to != from) {
            _addTokenToOwnerEnumeration(to, tokenId);
        }
    }

    /**
     * @dev Private function to add a token to this extension's ownership-tracking data structures.
     * @param to address representing the new owner of the given token ID
     * @param tokenId uint256 ID of the token to be added to the tokens list of the given address
     */
    function _addTokenToOwnerEnumeration(address to, uint256 tokenId) private {
        uint256 length = ERC721.balanceOf(to);
        _ownedTokens[to][length] = tokenId;
        _ownedTokensIndex[tokenId] = length;
    }

    /**
     * @dev Private function to add a token to this extension's token tracking data structures.
     * @param tokenId uint256 ID of the token to be added to the tokens list
     */
    function _addTokenToAllTokensEnumeration(uint256 tokenId) private {
        _allTokensIndex[tokenId] = _allTokens.length;
        _allTokens.push(tokenId);
    }

    /**
     * @dev Private function to remove a token from this extension's ownership-tracking data structures. Note that
     * while the token is not assigned a new owner, the `_ownedTokensIndex` mapping is _not_ updated: this allows for
     * gas optimizations e.g. when performing a transfer operation (avoiding double writes).
     * This has O(1) time complexity, but alters the order of the _ownedTokens array.
     * @param from address representing the previous owner of the given token ID
     * @param tokenId uint256 ID of the token to be removed from the tokens list of the given address
     */
    function _removeTokenFromOwnerEnumeration(address from, uint256 tokenId) private {
        // To prevent a gap in from's tokens array, we store the last token in the index of the token to delete, and
        // then delete the last slot (swap and pop).

        uint256 lastTokenIndex = ERC721.balanceOf(from) - 1;
        uint256 tokenIndex = _ownedTokensIndex[tokenId];

        // When the token to delete is the last token, the swap operation is unnecessary
        if (tokenIndex != lastTokenIndex) {
            uint256 lastTokenId = _ownedTokens[from][lastTokenIndex];

            _ownedTokens[from][tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token
            _ownedTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index
        }

        // This also deletes the contents at the last position of the array
        delete _ownedTokensIndex[tokenId];
        delete _ownedTokens[from][lastTokenIndex];
    }

    /**
     * @dev Private function to remove a token from this extension's token tracking data structures.
     * This has O(1) time complexity, but alters the order of the _allTokens array.
     * @param tokenId uint256 ID of the token to be removed from the tokens list
     */
    function _removeTokenFromAllTokensEnumeration(uint256 tokenId) private {
        // To prevent a gap in the tokens array, we store the last token in the index of the token to delete, and
        // then delete the last slot (swap and pop).

        uint256 lastTokenIndex = _allTokens.length - 1;
        uint256 tokenIndex = _allTokensIndex[tokenId];

        // When the token to delete is the last token, the swap operation is unnecessary. However, since this occurs so
        // rarely (when the last minted token is burnt) that we still do the swap here to avoid the gas cost of adding
        // an 'if' statement (like in _removeTokenFromOwnerEnumeration)
        uint256 lastTokenId = _allTokens[lastTokenIndex];

        _allTokens[tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token
        _allTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index

        // This also deletes the contents at the last position of the array
        delete _allTokensIndex[tokenId];
        _allTokens.pop();
    }
}

File 5 of 17 : IERC721Enumerable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC721/extensions/IERC721Enumerable.sol)

pragma solidity ^0.8.0;

import "../IERC721.sol";

/**
 * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension
 * @dev See https://eips.ethereum.org/EIPS/eip-721
 */
interface IERC721Enumerable is IERC721 {
    /**
     * @dev Returns the total amount of tokens stored by the contract.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns a token ID owned by `owner` at a given `index` of its token list.
     * Use along with {balanceOf} to enumerate all of ``owner``'s tokens.
     */
    function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256);

    /**
     * @dev Returns a token ID at a given `index` of all the tokens stored by the contract.
     * Use along with {totalSupply} to enumerate all tokens.
     */
    function tokenByIndex(uint256 index) external view returns (uint256);
}

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

pragma solidity ^0.8.0;

import "../IERC721.sol";

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

    /**
     * @dev Transfers `tokenId` token from `from` to `to`.
     *
     * WARNING: Note that the caller is responsible to confirm that the recipient is capable of receiving ERC721
     * or else they may be permanently lost. Usage of {safeTransferFrom} prevents loss, though the caller must
     * understand this adds an external call which potentially creates a reentrancy vulnerability.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must be owned by `from`.
     * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(address from, address to, uint256 tokenId) external;

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

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

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

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

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

pragma solidity ^0.8.0;

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

File 9 of 17 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (utils/Address.sol)

pragma solidity ^0.8.1;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     *
     * Furthermore, `isContract` will also return true if the target contract within
     * the same transaction is already scheduled for destruction by `SELFDESTRUCT`,
     * which only has an effect at the end of a transaction.
     * ====
     *
     * [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://consensys.net/diligence/blog/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.8.0/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 Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionDelegateCall(target, data, "Address: low-level delegate call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        (bool success, bytes memory returndata) = target.delegatecall(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 10 of 17 : Context.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)

pragma solidity ^0.8.0;

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

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

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

pragma solidity ^0.8.0;

import "./IERC165.sol";

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

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

pragma solidity ^0.8.0;

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

File 13 of 17 : Math.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.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) {
                // Solidity will revert if denominator == 0, unlike the div opcode on its own.
                // The surrounding unchecked block does not change this fact.
                // See https://docs.soliditylang.org/en/latest/control-structures.html#checked-or-unchecked-arithmetic.
                return prod0 / denominator;
            }

            // Make sure the result is less than 2^256. Also prevents denominator == 0.
            require(denominator > prod1, "Math: mulDiv overflow");

            ///////////////////////////////////////////////
            // 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 256, 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 << 3) < value ? 1 : 0);
        }
    }
}

File 14 of 17 : SignedMath.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (utils/math/SignedMath.sol)

pragma solidity ^0.8.0;

/**
 * @dev Standard signed math utilities missing in the Solidity language.
 */
library SignedMath {
    /**
     * @dev Returns the largest of two signed numbers.
     */
    function max(int256 a, int256 b) internal pure returns (int256) {
        return a > b ? a : b;
    }

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

    /**
     * @dev Returns the average of two signed numbers without overflow.
     * The result is rounded towards zero.
     */
    function average(int256 a, int256 b) internal pure returns (int256) {
        // Formula from the book "Hacker's Delight"
        int256 x = (a & b) + ((a ^ b) >> 1);
        return x + (int256(uint256(x) >> 255) & (a ^ b));
    }

    /**
     * @dev Returns the absolute unsigned value of a signed value.
     */
    function abs(int256 n) internal pure returns (uint256) {
        unchecked {
            // must be unchecked in order to support `n = type(int256).min`
            return uint256(n >= 0 ? n : -n);
        }
    }
}

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

pragma solidity ^0.8.0;

import "./math/Math.sol";
import "./math/SignedMath.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 `int256` to its ASCII `string` decimal representation.
     */
    function toString(int256 value) internal pure returns (string memory) {
        return string(abi.encodePacked(value < 0 ? "-" : "", toString(SignedMath.abs(value))));
    }

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

    /**
     * @dev Returns true if the two strings are equal.
     */
    function equal(string memory a, string memory b) internal pure returns (bool) {
        return keccak256(bytes(a)) == keccak256(bytes(b));
    }
}

File 16 of 17 : ICryptoPunksMarket.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.9;

interface ICryptoPunksMarket {
    function punkIndexToAddress(
        uint256 _tokenId
    ) external view returns (address);

    function balanceOf(address _address) external view returns (uint256);
}

File 17 of 17 : IDelegateRegistry.sol
// SPDX-License-Identifier: CC0-1.0
pragma solidity >=0.8.13;

/**
 * @title IDelegateRegistry
 * @custom:version 2.0
 * @custom:author foobar (0xfoobar)
 * @notice A standalone immutable registry storing delegated permissions from one address to another
 */
interface IDelegateRegistry {
  /// @notice Delegation type, NONE is used when a delegation does not exist or is revoked
  enum DelegationType {
    NONE,
    ALL,
    CONTRACT,
    ERC721,
    ERC20,
    ERC1155
  }

  /// @notice Struct for returning delegations
  struct Delegation {
    DelegationType type_;
    address to;
    address from;
    bytes32 rights;
    address contract_;
    uint256 tokenId;
    uint256 amount;
  }

  /// @notice Emitted when an address delegates or revokes rights for their entire wallet
  event DelegateAll(
    address indexed from,
    address indexed to,
    bytes32 rights,
    bool enable
  );

  /// @notice Emitted when an address delegates or revokes rights for a contract address
  event DelegateContract(
    address indexed from,
    address indexed to,
    address indexed contract_,
    bytes32 rights,
    bool enable
  );

  /// @notice Emitted when an address delegates or revokes rights for an ERC721 tokenId
  event DelegateERC721(
    address indexed from,
    address indexed to,
    address indexed contract_,
    uint256 tokenId,
    bytes32 rights,
    bool enable
  );

  /// @notice Emitted when an address delegates or revokes rights for an amount of ERC20 tokens
  event DelegateERC20(
    address indexed from,
    address indexed to,
    address indexed contract_,
    bytes32 rights,
    uint256 amount
  );

  /// @notice Emitted when an address delegates or revokes rights for an amount of an ERC1155 tokenId
  event DelegateERC1155(
    address indexed from,
    address indexed to,
    address indexed contract_,
    uint256 tokenId,
    bytes32 rights,
    uint256 amount
  );

  /// @notice Thrown if multicall calldata is malformed
  error MulticallFailed();

  /**
   * -----------  WRITE -----------
   */

  /**
   * @notice Call multiple functions in the current contract and return the data from all of them if they all succeed
   * @param data The encoded function data for each of the calls to make to this contract
   * @return results The results from each of the calls passed in via data
   */
  function multicall(
    bytes[] calldata data
  ) external payable returns (bytes[] memory results);

  /**
   * @notice Allow the delegate to act on behalf of `msg.sender` for all contracts
   * @param to The address to act as delegate
   * @param rights Specific subdelegation rights granted to the delegate, pass an empty bytestring to encompass all rights
   * @param enable Whether to enable or disable this delegation, true delegates and false revokes
   * @return delegationHash The unique identifier of the delegation
   */
  function delegateAll(
    address to,
    bytes32 rights,
    bool enable
  ) external payable returns (bytes32 delegationHash);

  /**
   * @notice Allow the delegate to act on behalf of `msg.sender` for a specific contract
   * @param to The address to act as delegate
   * @param contract_ The contract whose rights are being delegated
   * @param rights Specific subdelegation rights granted to the delegate, pass an empty bytestring to encompass all rights
   * @param enable Whether to enable or disable this delegation, true delegates and false revokes
   * @return delegationHash The unique identifier of the delegation
   */
  function delegateContract(
    address to,
    address contract_,
    bytes32 rights,
    bool enable
  ) external payable returns (bytes32 delegationHash);

  /**
   * @notice Allow the delegate to act on behalf of `msg.sender` for a specific ERC721 token
   * @param to The address to act as delegate
   * @param contract_ The contract whose rights are being delegated
   * @param tokenId The token id to delegate
   * @param rights Specific subdelegation rights granted to the delegate, pass an empty bytestring to encompass all rights
   * @param enable Whether to enable or disable this delegation, true delegates and false revokes
   * @return delegationHash The unique identifier of the delegation
   */
  function delegateERC721(
    address to,
    address contract_,
    uint256 tokenId,
    bytes32 rights,
    bool enable
  ) external payable returns (bytes32 delegationHash);

  /**
   * @notice Allow the delegate to act on behalf of `msg.sender` for a specific amount of ERC20 tokens
   * @dev The actual amount is not encoded in the hash, just the existence of a amount (since it is an upper bound)
   * @param to The address to act as delegate
   * @param contract_ The address for the fungible token contract
   * @param rights Specific subdelegation rights granted to the delegate, pass an empty bytestring to encompass all rights
   * @param amount The amount to delegate, > 0 delegates and 0 revokes
   * @return delegationHash The unique identifier of the delegation
   */
  function delegateERC20(
    address to,
    address contract_,
    bytes32 rights,
    uint256 amount
  ) external payable returns (bytes32 delegationHash);

  /**
   * @notice Allow the delegate to act on behalf of `msg.sender` for a specific amount of ERC1155 tokens
   * @dev The actual amount is not encoded in the hash, just the existence of a amount (since it is an upper bound)
   * @param to The address to act as delegate
   * @param contract_ The address of the contract that holds the token
   * @param tokenId The token id to delegate
   * @param rights Specific subdelegation rights granted to the delegate, pass an empty bytestring to encompass all rights
   * @param amount The amount of that token id to delegate, > 0 delegates and 0 revokes
   * @return delegationHash The unique identifier of the delegation
   */
  function delegateERC1155(
    address to,
    address contract_,
    uint256 tokenId,
    bytes32 rights,
    uint256 amount
  ) external payable returns (bytes32 delegationHash);

  /**
   * ----------- CHECKS -----------
   */

  /**
   * @notice Check if `to` is a delegate of `from` for the entire wallet
   * @param to The potential delegate address
   * @param from The potential address who delegated rights
   * @param rights Specific rights to check for, pass the zero value to ignore subdelegations and check full delegations only
   * @return valid Whether delegate is granted to act on the from's behalf
   */
  function checkDelegateForAll(
    address to,
    address from,
    bytes32 rights
  ) external view returns (bool);

  /**
   * @notice Check if `to` is a delegate of `from` for the specified `contract_` or the entire wallet
   * @param to The delegated address to check
   * @param contract_ The specific contract address being checked
   * @param from The cold wallet who issued the delegation
   * @param rights Specific rights to check for, pass the zero value to ignore subdelegations and check full delegations only
   * @return valid Whether delegate is granted to act on from's behalf for entire wallet or that specific contract
   */
  function checkDelegateForContract(
    address to,
    address from,
    address contract_,
    bytes32 rights
  ) external view returns (bool);

  /**
   * @notice Check if `to` is a delegate of `from` for the specific `contract` and `tokenId`, the entire `contract_`, or the entire wallet
   * @param to The delegated address to check
   * @param contract_ The specific contract address being checked
   * @param tokenId The token id for the token to delegating
   * @param from The wallet that issued the delegation
   * @param rights Specific rights to check for, pass the zero value to ignore subdelegations and check full delegations only
   * @return valid Whether delegate is granted to act on from's behalf for entire wallet, that contract, or that specific tokenId
   */
  function checkDelegateForERC721(
    address to,
    address from,
    address contract_,
    uint256 tokenId,
    bytes32 rights
  ) external view returns (bool);

  /**
   * @notice Returns the amount of ERC20 tokens the delegate is granted rights to act on the behalf of
   * @param to The delegated address to check
   * @param contract_ The address of the token contract
   * @param from The cold wallet who issued the delegation
   * @param rights Specific rights to check for, pass the zero value to ignore subdelegations and check full delegations only
   * @return balance The delegated balance, which will be 0 if the delegation does not exist
   */
  function checkDelegateForERC20(
    address to,
    address from,
    address contract_,
    bytes32 rights
  ) external view returns (uint256);

  /**
   * @notice Returns the amount of a ERC1155 tokens the delegate is granted rights to act on the behalf of
   * @param to The delegated address to check
   * @param contract_ The address of the token contract
   * @param tokenId The token id to check the delegated amount of
   * @param from The cold wallet who issued the delegation
   * @param rights Specific rights to check for, pass the zero value to ignore subdelegations and check full delegations only
   * @return balance The delegated balance, which will be 0 if the delegation does not exist
   */
  function checkDelegateForERC1155(
    address to,
    address from,
    address contract_,
    uint256 tokenId,
    bytes32 rights
  ) external view returns (uint256);

  /**
   * ----------- ENUMERATIONS -----------
   */

  /**
   * @notice Returns all enabled delegations a given delegate has received
   * @param to The address to retrieve delegations for
   * @return delegations Array of Delegation structs
   */
  function getIncomingDelegations(
    address to
  ) external view returns (Delegation[] memory delegations);

  /**
   * @notice Returns all enabled delegations an address has given out
   * @param from The address to retrieve delegations for
   * @return delegations Array of Delegation structs
   */
  function getOutgoingDelegations(
    address from
  ) external view returns (Delegation[] memory delegations);

  /**
   * @notice Returns all hashes associated with enabled delegations an address has received
   * @param to The address to retrieve incoming delegation hashes for
   * @return delegationHashes Array of delegation hashes
   */
  function getIncomingDelegationHashes(
    address to
  ) external view returns (bytes32[] memory delegationHashes);

  /**
   * @notice Returns all hashes associated with enabled delegations an address has given out
   * @param from The address to retrieve outgoing delegation hashes for
   * @return delegationHashes Array of delegation hashes
   */
  function getOutgoingDelegationHashes(
    address from
  ) external view returns (bytes32[] memory delegationHashes);

  /**
   * @notice Returns the delegations for a given array of delegation hashes
   * @param delegationHashes is an array of hashes that correspond to delegations
   * @return delegations Array of Delegation structs, return empty structs for nonexistent or revoked delegations
   */
  function getDelegationsFromHashes(
    bytes32[] calldata delegationHashes
  ) external view returns (Delegation[] memory delegations);

  /**
   * ----------- STORAGE ACCESS -----------
   */

  /**
   * @notice Allows external contracts to read arbitrary storage slots
   */
  function readSlot(bytes32 location) external view returns (bytes32);

  /**
   * @notice Allows external contracts to read an arbitrary array of storage slots
   */
  function readSlots(
    bytes32[] calldata locations
  ) external view returns (bytes32[] memory);
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"_contractURI","type":"string"},{"internalType":"address","name":"_adminSigner","type":"address"},{"internalType":"address","name":"_deployedPunkContractAddress","type":"address"},{"internalType":"address","name":"_delegateCashAddress","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_from","type":"address"},{"indexed":true,"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"Minted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"address","name":"_to","type":"address"}],"name":"checkValidToAddress","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"contractURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"address","name":"_to","type":"address"},{"components":[{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"},{"internalType":"uint8","name":"v","type":"uint8"}],"internalType":"struct PunkDaoCommunity.Coupon","name":"_coupon","type":"tuple"}],"name":"couponMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"delegateCashAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"enum PunkDaoCommunity.SalePhase","name":"_salePhase","type":"uint8"}],"name":"enterPhase","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"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":"_tokenId","type":"uint256"}],"name":"isDelegatedByPunk","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"isWithPunk","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mintRate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"punkContractAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"salePhase","outputs":[{"internalType":"enum PunkDaoCommunity.SalePhase","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_contractURI","type":"string"}],"name":"setContractURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_mintRate","type":"uint256"}],"name":"setMintRate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60a06040525f600a60146101000a81548160ff021916908360028111156200002c576200002b620002b2565b5b02179055505f600b5534801562000041575f80fd5b50604051620052e5380380620052e58339818101604052810190620000679190620004c5565b6040518060400160405280601d81526020017f50756e6b2044414f20436f6d6d756e697479204d656d626572736869700000008152506040518060400160405280600681526020017f50554e4b44430000000000000000000000000000000000000000000000000000815250815f9081620000e391906200078a565b508060019081620000f591906200078a565b505050620001186200010c620001e860201b60201c565b620001ef60201b60201c565b83600c90816200012991906200078a565b508273ffffffffffffffffffffffffffffffffffffffff1660808173ffffffffffffffffffffffffffffffffffffffff168152505081600d5f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555080600e5f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550505050506200086e565b5f33905090565b5f600a5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600a5f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602160045260245ffd5b5f604051905090565b5f80fd5b5f80fd5b5f80fd5b5f80fd5b5f601f19601f8301169050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b6200034082620002f8565b810181811067ffffffffffffffff8211171562000362576200036162000308565b5b80604052505050565b5f62000376620002df565b905062000384828262000335565b919050565b5f67ffffffffffffffff821115620003a657620003a562000308565b5b620003b182620002f8565b9050602081019050919050565b5f5b83811015620003dd578082015181840152602081019050620003c0565b5f8484015250505050565b5f620003fe620003f88462000389565b6200036b565b9050828152602081018484840111156200041d576200041c620002f4565b5b6200042a848285620003be565b509392505050565b5f82601f830112620004495762000448620002f0565b5b81516200045b848260208601620003e8565b91505092915050565b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f6200048f8262000464565b9050919050565b620004a18162000483565b8114620004ac575f80fd5b50565b5f81519050620004bf8162000496565b92915050565b5f805f8060808587031215620004e057620004df620002e8565b5b5f85015167ffffffffffffffff8111156200050057620004ff620002ec565b5b6200050e8782880162000432565b94505060206200052187828801620004af565b93505060406200053487828801620004af565b92505060606200054787828801620004af565b91505092959194509250565b5f81519050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602260045260245ffd5b5f6002820490506001821680620005a257607f821691505b602082108103620005b857620005b76200055d565b5b50919050565b5f819050815f5260205f209050919050565b5f6020601f8301049050919050565b5f82821b905092915050565b5f600883026200061c7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82620005df565b620006288683620005df565b95508019841693508086168417925050509392505050565b5f819050919050565b5f819050919050565b5f620006726200066c620006668462000640565b62000649565b62000640565b9050919050565b5f819050919050565b6200068d8362000652565b620006a56200069c8262000679565b848454620005eb565b825550505050565b5f90565b620006bb620006ad565b620006c881848462000682565b505050565b5b81811015620006ef57620006e35f82620006b1565b600181019050620006ce565b5050565b601f8211156200073e576200070881620005be565b6200071384620005d0565b8101602085101562000723578190505b6200073b6200073285620005d0565b830182620006cd565b50505b505050565b5f82821c905092915050565b5f620007605f198460080262000743565b1980831691505092915050565b5f6200077a83836200074f565b9150826002028217905092915050565b620007958262000553565b67ffffffffffffffff811115620007b157620007b062000308565b5b620007bd82546200058a565b620007ca828285620006f3565b5f60209050601f83116001811462000800575f8415620007eb578287015190505b620007f785826200076d565b86555062000866565b601f1984166200081086620005be565b5f5b82811015620008395784890151825560018201915060208501945060208101905062000812565b8683101562000859578489015162000855601f8916826200074f565b8355505b6001600288020188555050505b505050505050565b608051614a5e620008875f395f6120fd0152614a5e5ff3fe6080604052600436106101e2575f3560e01c806370a0823111610101578063c87b56dd11610094578063e8a3d48511610063578063e8a3d485146106fa578063e985e9c514610724578063f2fde38b14610760578063f9ed982114610788576101e2565b8063c87b56dd14610642578063ca0dcf161461067e578063dbe2193f146106a8578063e4f2487a146106d0576101e2565b8063938e3d7b116100d0578063938e3d7b146105a057806395d89b41146105c8578063a22cb465146105f2578063b88d4fde1461061a576101e2565b806370a08231146104e8578063715018a614610524578063784e9ee01461053a5780638da5cb5b14610576576101e2565b80632f745c591161017957806342842e0e1161014857806342842e0e1461040c5780634f6ccce7146104345780636352211e146104705780636e171523146104ac576101e2565b80632f745c59146103685780633123387b146103a45780633528fabf146103cc5780633ccfd60b146103f6576101e2565b80630d2f86a2116101b55780630d2f86a2146102b057806318160ddd146102da57806321ecd2bf1461030457806323b872dd14610340576101e2565b806301ffc9a7146101e657806306fdde0314610222578063081812fc1461024c578063095ea7b314610288575b5f80fd5b3480156101f1575f80fd5b5061020c60048036038101906102079190612e70565b6107a4565b6040516102199190612eb5565b60405180910390f35b34801561022d575f80fd5b506102366107b5565b6040516102439190612f58565b60405180910390f35b348015610257575f80fd5b50610272600480360381019061026d9190612fab565b610844565b60405161027f9190613015565b60405180910390f35b348015610293575f80fd5b506102ae60048036038101906102a99190613058565b610886565b005b3480156102bb575f80fd5b506102c461099c565b6040516102d19190613015565b60405180910390f35b3480156102e5575f80fd5b506102ee6109c1565b6040516102fb91906130a5565b60405180910390f35b34801561030f575f80fd5b5061032a600480360381019061032591906130be565b6109cd565b6040516103379190612eb5565b60405180910390f35b34801561034b575f80fd5b50610366600480360381019061036191906130fc565b610aae565b005b348015610373575f80fd5b5061038e60048036038101906103899190613058565b610b0e565b60405161039b91906130a5565b60405180910390f35b3480156103af575f80fd5b506103ca60048036038101906103c5919061316f565b610bae565b005b3480156103d7575f80fd5b506103e0610c49565b6040516103ed9190613015565b60405180910390f35b348015610401575f80fd5b5061040a610c6e565b005b348015610417575f80fd5b50610432600480360381019061042d91906130fc565b610d28565b005b34801561043f575f80fd5b5061045a60048036038101906104559190612fab565b610d47565b60405161046791906130a5565b60405180910390f35b34801561047b575f80fd5b5061049660048036038101906104919190612fab565b610db5565b6040516104a39190613015565b60405180910390f35b3480156104b7575f80fd5b506104d260048036038101906104cd9190612fab565b610e39565b6040516104df9190612eb5565b60405180910390f35b3480156104f3575f80fd5b5061050e6004803603810190610509919061319a565b610e53565b60405161051b91906130a5565b60405180910390f35b34801561052f575f80fd5b50610538610f07565b005b348015610545575f80fd5b50610560600480360381019061055b9190612fab565b610f1a565b60405161056d9190612eb5565b60405180910390f35b348015610581575f80fd5b5061058a611017565b6040516105979190613015565b60405180910390f35b3480156105ab575f80fd5b506105c660048036038101906105c19190613226565b61103f565b005b3480156105d3575f80fd5b506105dc61105d565b6040516105e99190612f58565b60405180910390f35b3480156105fd575f80fd5b506106186004803603810190610613919061329b565b6110ed565b005b348015610625575f80fd5b50610640600480360381019061063b9190613401565b611103565b005b34801561064d575f80fd5b5061066860048036038101906106639190612fab565b611165565b6040516106759190612f58565b60405180910390f35b348015610689575f80fd5b50610692611177565b60405161069f91906130a5565b60405180910390f35b3480156106b3575f80fd5b506106ce60048036038101906106c99190612fab565b61117d565b005b3480156106db575f80fd5b506106e461118f565b6040516106f191906134f4565b60405180910390f35b348015610705575f80fd5b5061070e6111a2565b60405161071b9190612f58565b60405180910390f35b34801561072f575f80fd5b5061074a6004803603810190610745919061350d565b61122e565b6040516107579190612eb5565b60405180910390f35b34801561076b575f80fd5b506107866004803603810190610781919061319a565b6112bc565b005b6107a2600480360381019061079d9190613619565b61133e565b005b5f6107ae826115ee565b9050919050565b60605f80546107c390613696565b80601f01602080910402602001604051908101604052809291908181526020018280546107ef90613696565b801561083a5780601f106108115761010080835404028352916020019161083a565b820191905f5260205f20905b81548152906001019060200180831161081d57829003601f168201915b5050505050905090565b5f61084e82611667565b60045f8381526020019081526020015f205f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b5f61089082610db5565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603610900576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108f790613736565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff1661091f6116b2565b73ffffffffffffffffffffffffffffffffffffffff16148061094e575061094d816109486116b2565b61122e565b5b61098d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610984906137c4565b60405180910390fd5b61099783836116b9565b505050565b600d5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b5f600880549050905090565b5f6109d8838361176f565b80610aa657508173ffffffffffffffffffffffffffffffffffffffff16600d5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166358178168856040518263ffffffff1660e01b8152600401610a4f91906130a5565b602060405180830381865afa158015610a6a573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610a8e91906137f6565b73ffffffffffffffffffffffffffffffffffffffff16145b905092915050565b610abf610ab96116b2565b826118d0565b610afe576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610af590613891565b60405180910390fd5b610b09838383611964565b505050565b5f610b1883610e53565b8210610b59576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b509061391f565b60405180910390fd5b60065f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8381526020019081526020015f2054905092915050565b610bb6611c50565b5f6002811115610bc957610bc8613481565b5b816002811115610bdc57610bdb613481565b5b03610c1c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c1390613987565b60405180910390fd5b80600a60146101000a81548160ff02191690836002811115610c4157610c40613481565b5b021790555050565b600e5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b610c76611c50565b5f610c7f611017565b73ffffffffffffffffffffffffffffffffffffffff1647604051610ca2906139d2565b5f6040518083038185875af1925050503d805f8114610cdc576040519150601f19603f3d011682016040523d82523d5f602084013e610ce1565b606091505b5050905080610d25576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d1c90613a30565b60405180910390fd5b50565b610d4283838360405180602001604052805f815250611103565b505050565b5f610d506109c1565b8210610d91576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d8890613abe565b60405180910390fd5b60088281548110610da557610da4613adc565b5b905f5260205f2001549050919050565b5f80610dc083611cce565b90505f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610e30576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e2790613b53565b60405180910390fd5b80915050919050565b5f610e4c82610e4784610db5565b61176f565b9050919050565b5f8073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603610ec2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610eb990613be1565b60405180910390fd5b60035f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20549050919050565b610f0f611c50565b610f185f611d07565b565b5f610f2482610db5565b73ffffffffffffffffffffffffffffffffffffffff16600d5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166358178168846040518263ffffffff1660e01b8152600401610f9491906130a5565b602060405180830381865afa158015610faf573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610fd391906137f6565b73ffffffffffffffffffffffffffffffffffffffff1603610ff75760019050611012565b61100082610e39565b1561100e5760019050611012565b5f90505b919050565b5f600a5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b611047611c50565b8181600c9182611058929190613da6565b505050565b60606001805461106c90613696565b80601f016020809104026020016040519081016040528092919081815260200182805461109890613696565b80156110e35780601f106110ba576101008083540402835291602001916110e3565b820191905f5260205f20905b8154815290600101906020018083116110c657829003601f168201915b5050505050905090565b6110ff6110f86116b2565b8383611dca565b5050565b61111461110e6116b2565b836118d0565b611153576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161114a90613891565b60405180910390fd5b61115f84848484611f31565b50505050565b606061117082611f8d565b9050919050565b600b5481565b611185611c50565b80600b8190555050565b600a60149054906101000a900460ff1681565b600c80546111af90613696565b80601f01602080910402602001604051908101604052809291908181526020018280546111db90613696565b80156112265780601f106111fd57610100808354040283529160200191611226565b820191905f5260205f20905b81548152906001019060200180831161120957829003601f168201915b505050505081565b5f60055f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16905092915050565b6112c4611c50565b5f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611332576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161132990613ee3565b60405180910390fd5b61133b81611d07565b50565b61134783611ff2565b156113f65761135683336109cd565b611395576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161138c90613f71565b60405180910390fd5b61139f83836109cd565b6113de576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113d590613fd9565b60405180910390fd5b6113f16113ea84611cce565b8385611964565b6115e9565b6001600281111561140a57611409613481565b5b600a60149054906101000a900460ff16600281111561142c5761142b613481565b5b1461146c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161146390614041565b60405180910390fd5b5f838360405160200161148092919061405f565b6040516020818303038152906040528051906020012090505f816040516020016114aa91906140fa565b6040516020818303038152906040528051906020012090506114cc8184612032565b61150b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161150290614169565b60405180910390fd5b61151585856109cd565b611554576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161154b906141f7565b60405180910390fd5b600b543414611598576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161158f90614285565b60405180910390fd5b6115a28486612153565b848473ffffffffffffffffffffffffffffffffffffffff167f30385c845b448a36257a6a1716e6ad2e1bc2cbe333cde1e69fe849ad6511adfe60405160405180910390a350505b505050565b5f7f780e9d63000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480611660575061165f82612170565b5b9050919050565b61167081611ff2565b6116af576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116a690613b53565b60405180910390fd5b50565b5f33905090565b8160045f8381526020019081526020015f205f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff1661172983610db5565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b5f600e5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663b9f3687483600d5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166358178168876040518263ffffffff1660e01b815260040161180891906130a5565b602060405180830381865afa158015611823573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061184791906137f6565b600d5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16876040518563ffffffff1660e01b815260040161188994939291906142a9565b602060405180830381865afa1580156118a4573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906118c8919061430c565b905092915050565b5f806118db83610db5565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16148061191d575061191c818561122e565b5b8061195b57508373ffffffffffffffffffffffffffffffffffffffff1661194384610844565b73ffffffffffffffffffffffffffffffffffffffff16145b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff1661198482610db5565b73ffffffffffffffffffffffffffffffffffffffff16146119da576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119d1906143a7565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611a48576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a3f90614435565b60405180910390fd5b611a558383836001612251565b8273ffffffffffffffffffffffffffffffffffffffff16611a7582610db5565b73ffffffffffffffffffffffffffffffffffffffff1614611acb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ac2906143a7565b60405180910390fd5b60045f8281526020019081526020015f205f6101000a81549073ffffffffffffffffffffffffffffffffffffffff0219169055600160035f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8282540392505081905550600160035f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f82825401925050819055508160025f8381526020019081526020015f205f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4611c4b83838360016122ac565b505050565b611c586116b2565b73ffffffffffffffffffffffffffffffffffffffff16611c76611017565b73ffffffffffffffffffffffffffffffffffffffff1614611ccc576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611cc39061449d565b60405180910390fd5b565b5f60025f8381526020019081526020015f205f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b5f600a5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600a5f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603611e38576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e2f90614505565b60405180910390fd5b8060055f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051611f249190612eb5565b60405180910390a3505050565b611f3c848484611964565b611f48848484846122b2565b611f87576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f7e90614593565b60405180910390fd5b50505050565b6060611f9882611667565b5f611fa1612434565b90505f815111611fbf5760405180602001604052805f815250611fea565b80611fc9846124c4565b604051602001611fda9291906145e1565b6040516020818303038152906040525b915050919050565b5f8073ffffffffffffffffffffffffffffffffffffffff1661201383611cce565b73ffffffffffffffffffffffffffffffffffffffff1614159050919050565b5f806001848460400151855f015186602001516040515f81526020016040526040516120619493929190614622565b6020604051602081039080840390855afa158015612081573d5f803e3d5ffd5b5050506020604051035190505f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036120fb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120f2906146af565b60405180910390fd5b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161491505092915050565b61216c828260405180602001604052805f81525061258e565b5050565b5f7f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061223a57507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b8061224a5750612249826125e8565b5b9050919050565b61225b82846109cd565b61229a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161229190614717565b60405180910390fd5b6122a684848484612651565b50505050565b50505050565b5f6122d28473ffffffffffffffffffffffffffffffffffffffff166127ac565b15612427578373ffffffffffffffffffffffffffffffffffffffff1663150b7a026122fb6116b2565b8786866040518563ffffffff1660e01b815260040161231d9493929190614787565b6020604051808303815f875af192505050801561235857506040513d601f19601f8201168201806040525081019061235591906147e5565b60015b6123d7573d805f8114612386576040519150601f19603f3d011682016040523d82523d5f602084013e61238b565b606091505b505f8151036123cf576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123c690614593565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161491505061242c565b600190505b949350505050565b6060600c805461244390613696565b80601f016020809104026020016040519081016040528092919081815260200182805461246f90613696565b80156124ba5780601f10612491576101008083540402835291602001916124ba565b820191905f5260205f20905b81548152906001019060200180831161249d57829003601f168201915b5050505050905090565b60605f60016124d2846127ce565b0190505f8167ffffffffffffffff8111156124f0576124ef6132dd565b5b6040519080825280601f01601f1916602001820160405280156125225781602001600182028036833780820191505090505b5090505f82602001820190505b600115612583578080600190039150507f3031323334353637383961626364656600000000000000000000000000000000600a86061a8153600a858161257857612577614810565b5b0494505f850361252f575b819350505050919050565b612598838361291f565b6125a45f8484846122b2565b6125e3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016125da90614593565b60405180910390fd5b505050565b5f7f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b61265d84848484612b32565b60018111156126a1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612698906148ad565b60405180910390fd5b5f8290505f73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff16036126e6576126e181612b38565b612725565b8373ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1614612724576127238582612b7c565b5b5b5f73ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16036127665761276181612cd2565b6127a5565b8473ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16146127a4576127a38482612d92565b5b5b5050505050565b5f808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b5f805f90507a184f03e93ff9f4daa797ed6e38ed64bf6a1f010000000000000000831061282a577a184f03e93ff9f4daa797ed6e38ed64bf6a1f01000000000000000083816128205761281f614810565b5b0492506040810190505b6d04ee2d6d415b85acef81000000008310612867576d04ee2d6d415b85acef8100000000838161285d5761285c614810565b5b0492506020810190505b662386f26fc10000831061289657662386f26fc10000838161288c5761288b614810565b5b0492506010810190505b6305f5e10083106128bf576305f5e10083816128b5576128b4614810565b5b0492506008810190505b61271083106128e45761271083816128da576128d9614810565b5b0492506004810190505b6064831061290757606483816128fd576128fc614810565b5b0492506002810190505b600a8310612916576001810190505b80915050919050565b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff160361298d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161298490614915565b60405180910390fd5b61299681611ff2565b156129d6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016129cd9061497d565b60405180910390fd5b6129e35f83836001612251565b6129ec81611ff2565b15612a2c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a239061497d565b60405180910390fd5b600160035f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f82825401925050819055508160025f8381526020019081526020015f205f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff165f73ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4612b2e5f838360016122ac565b5050565b50505050565b60088054905060095f8381526020019081526020015f2081905550600881908060018154018082558091505060019003905f5260205f20015f909190919091505550565b5f6001612b8884610e53565b612b9291906149c8565b90505f60075f8481526020019081526020015f20549050818114612c69575f60065f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8481526020019081526020015f205490508060065f8773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8481526020019081526020015f20819055508160075f8381526020019081526020015f2081905550505b60075f8481526020019081526020015f205f905560065f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8381526020019081526020015f205f905550505050565b5f6001600880549050612ce591906149c8565b90505f60095f8481526020019081526020015f205490505f60088381548110612d1157612d10613adc565b5b905f5260205f20015490508060088381548110612d3157612d30613adc565b5b905f5260205f2001819055508160095f8381526020019081526020015f208190555060095f8581526020019081526020015f205f90556008805480612d7957612d786149fb565b5b600190038181905f5260205f20015f9055905550505050565b5f612d9c83610e53565b90508160065f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8381526020019081526020015f20819055508060075f8481526020019081526020015f2081905550505050565b5f604051905090565b5f80fd5b5f80fd5b5f7fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b612e4f81612e1b565b8114612e59575f80fd5b50565b5f81359050612e6a81612e46565b92915050565b5f60208284031215612e8557612e84612e13565b5b5f612e9284828501612e5c565b91505092915050565b5f8115159050919050565b612eaf81612e9b565b82525050565b5f602082019050612ec85f830184612ea6565b92915050565b5f81519050919050565b5f82825260208201905092915050565b5f5b83811015612f05578082015181840152602081019050612eea565b5f8484015250505050565b5f601f19601f8301169050919050565b5f612f2a82612ece565b612f348185612ed8565b9350612f44818560208601612ee8565b612f4d81612f10565b840191505092915050565b5f6020820190508181035f830152612f708184612f20565b905092915050565b5f819050919050565b612f8a81612f78565b8114612f94575f80fd5b50565b5f81359050612fa581612f81565b92915050565b5f60208284031215612fc057612fbf612e13565b5b5f612fcd84828501612f97565b91505092915050565b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f612fff82612fd6565b9050919050565b61300f81612ff5565b82525050565b5f6020820190506130285f830184613006565b92915050565b61303781612ff5565b8114613041575f80fd5b50565b5f813590506130528161302e565b92915050565b5f806040838503121561306e5761306d612e13565b5b5f61307b85828601613044565b925050602061308c85828601612f97565b9150509250929050565b61309f81612f78565b82525050565b5f6020820190506130b85f830184613096565b92915050565b5f80604083850312156130d4576130d3612e13565b5b5f6130e185828601612f97565b92505060206130f285828601613044565b9150509250929050565b5f805f6060848603121561311357613112612e13565b5b5f61312086828701613044565b935050602061313186828701613044565b925050604061314286828701612f97565b9150509250925092565b60038110613158575f80fd5b50565b5f813590506131698161314c565b92915050565b5f6020828403121561318457613183612e13565b5b5f6131918482850161315b565b91505092915050565b5f602082840312156131af576131ae612e13565b5b5f6131bc84828501613044565b91505092915050565b5f80fd5b5f80fd5b5f80fd5b5f8083601f8401126131e6576131e56131c5565b5b8235905067ffffffffffffffff811115613203576132026131c9565b5b60208301915083600182028301111561321f5761321e6131cd565b5b9250929050565b5f806020838503121561323c5761323b612e13565b5b5f83013567ffffffffffffffff81111561325957613258612e17565b5b613265858286016131d1565b92509250509250929050565b61327a81612e9b565b8114613284575f80fd5b50565b5f8135905061329581613271565b92915050565b5f80604083850312156132b1576132b0612e13565b5b5f6132be85828601613044565b92505060206132cf85828601613287565b9150509250929050565b5f80fd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b61331382612f10565b810181811067ffffffffffffffff82111715613332576133316132dd565b5b80604052505050565b5f613344612e0a565b9050613350828261330a565b919050565b5f67ffffffffffffffff82111561336f5761336e6132dd565b5b61337882612f10565b9050602081019050919050565b828183375f83830152505050565b5f6133a56133a084613355565b61333b565b9050828152602081018484840111156133c1576133c06132d9565b5b6133cc848285613385565b509392505050565b5f82601f8301126133e8576133e76131c5565b5b81356133f8848260208601613393565b91505092915050565b5f805f806080858703121561341957613418612e13565b5b5f61342687828801613044565b945050602061343787828801613044565b935050604061344887828801612f97565b925050606085013567ffffffffffffffff81111561346957613468612e17565b5b613475878288016133d4565b91505092959194509250565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602160045260245ffd5b600381106134bf576134be613481565b5b50565b5f8190506134cf826134ae565b919050565b5f6134de826134c2565b9050919050565b6134ee816134d4565b82525050565b5f6020820190506135075f8301846134e5565b92915050565b5f806040838503121561352357613522612e13565b5b5f61353085828601613044565b925050602061354185828601613044565b9150509250929050565b5f80fd5b5f819050919050565b6135618161354f565b811461356b575f80fd5b50565b5f8135905061357c81613558565b92915050565b5f60ff82169050919050565b61359781613582565b81146135a1575f80fd5b50565b5f813590506135b28161358e565b92915050565b5f606082840312156135cd576135cc61354b565b5b6135d7606061333b565b90505f6135e68482850161356e565b5f8301525060206135f98482850161356e565b602083015250604061360d848285016135a4565b60408301525092915050565b5f805f60a084860312156136305761362f612e13565b5b5f61363d86828701612f97565b935050602061364e86828701613044565b925050604061365f868287016135b8565b9150509250925092565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602260045260245ffd5b5f60028204905060018216806136ad57607f821691505b6020821081036136c0576136bf613669565b5b50919050565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e655f8201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b5f613720602183612ed8565b915061372b826136c6565b604082019050919050565b5f6020820190508181035f83015261374d81613714565b9050919050565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f5f8201527f6b656e206f776e6572206f7220617070726f76656420666f7220616c6c000000602082015250565b5f6137ae603d83612ed8565b91506137b982613754565b604082019050919050565b5f6020820190508181035f8301526137db816137a2565b9050919050565b5f815190506137f08161302e565b92915050565b5f6020828403121561380b5761380a612e13565b5b5f613818848285016137e2565b91505092915050565b7f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e655f8201527f72206f7220617070726f76656400000000000000000000000000000000000000602082015250565b5f61387b602d83612ed8565b915061388682613821565b604082019050919050565b5f6020820190508181035f8301526138a88161386f565b9050919050565b7f455243373231456e756d657261626c653a206f776e657220696e646578206f755f8201527f74206f6620626f756e6473000000000000000000000000000000000000000000602082015250565b5f613909602b83612ed8565b9150613914826138af565b604082019050919050565b5f6020820190508181035f830152613936816138fd565b9050919050565b7f43616e6e6f7420736574206173206465706c6f796564000000000000000000005f82015250565b5f613971601683612ed8565b915061397c8261393d565b602082019050919050565b5f6020820190508181035f83015261399e81613965565b9050919050565b5f81905092915050565b50565b5f6139bd5f836139a5565b91506139c8826139af565b5f82019050919050565b5f6139dc826139b2565b9150819050919050565b7f455448207769746864726177616c206661696c656400000000000000000000005f82015250565b5f613a1a601583612ed8565b9150613a25826139e6565b602082019050919050565b5f6020820190508181035f830152613a4781613a0e565b9050919050565b7f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f5f8201527f7574206f6620626f756e64730000000000000000000000000000000000000000602082015250565b5f613aa8602c83612ed8565b9150613ab382613a4e565b604082019050919050565b5f6020820190508181035f830152613ad581613a9c565b9050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b7f4552433732313a20696e76616c696420746f6b656e20494400000000000000005f82015250565b5f613b3d601883612ed8565b9150613b4882613b09565b602082019050919050565b5f6020820190508181035f830152613b6a81613b31565b9050919050565b7f4552433732313a2061646472657373207a65726f206973206e6f7420612076615f8201527f6c6964206f776e65720000000000000000000000000000000000000000000000602082015250565b5f613bcb602983612ed8565b9150613bd682613b71565b604082019050919050565b5f6020820190508181035f830152613bf881613bbf565b9050919050565b5f82905092915050565b5f819050815f5260205f209050919050565b5f6020601f8301049050919050565b5f82821b905092915050565b5f60088302613c657fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82613c2a565b613c6f8683613c2a565b95508019841693508086168417925050509392505050565b5f819050919050565b5f613caa613ca5613ca084612f78565b613c87565b612f78565b9050919050565b5f819050919050565b613cc383613c90565b613cd7613ccf82613cb1565b848454613c36565b825550505050565b5f90565b613ceb613cdf565b613cf6818484613cba565b505050565b5b81811015613d1957613d0e5f82613ce3565b600181019050613cfc565b5050565b601f821115613d5e57613d2f81613c09565b613d3884613c1b565b81016020851015613d47578190505b613d5b613d5385613c1b565b830182613cfb565b50505b505050565b5f82821c905092915050565b5f613d7e5f1984600802613d63565b1980831691505092915050565b5f613d968383613d6f565b9150826002028217905092915050565b613db08383613bff565b67ffffffffffffffff811115613dc957613dc86132dd565b5b613dd38254613696565b613dde828285613d1d565b5f601f831160018114613e0b575f8415613df9578287013590505b613e038582613d8b565b865550613e6a565b601f198416613e1986613c09565b5f5b82811015613e4057848901358255600182019150602085019450602081019050613e1b565b86831015613e5d5784890135613e59601f891682613d6f565b8355505b6001600288020188555050505b50505050505050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f20615f8201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b5f613ecd602683612ed8565b9150613ed882613e73565b604082019050919050565b5f6020820190508181035f830152613efa81613ec1565b9050919050565b7f43616c6c657220646f65736e2774206861766520617574686f7269747920746f5f8201527f207472616e7366657220746f6b656e0000000000000000000000000000000000602082015250565b5f613f5b602f83612ed8565b9150613f6682613f01565b604082019050919050565b5f6020820190508181035f830152613f8881613f4f565b9050919050565b7f496e76616c696420746f206164647265737300000000000000000000000000005f82015250565b5f613fc3601283612ed8565b9150613fce82613f8f565b602082019050919050565b5f6020820190508181035f830152613ff081613fb7565b9050919050565b7f4d696e74696e67206973206e6f74206c697665000000000000000000000000005f82015250565b5f61402b601383612ed8565b915061403682613ff7565b602082019050919050565b5f6020820190508181035f8301526140588161401f565b9050919050565b5f6040820190506140725f830185613096565b61407f6020830184613006565b9392505050565b5f81905092915050565b7f19457468657265756d205369676e6564204d6573736167653a0a3332000000005f82015250565b5f6140c4601c83614086565b91506140cf82614090565b601c82019050919050565b5f819050919050565b6140f46140ef8261354f565b6140da565b82525050565b5f614104826140b8565b915061411082846140e3565b60208201915081905092915050565b7f496e76616c696420636f75706f6e0000000000000000000000000000000000005f82015250565b5f614153600e83612ed8565b915061415e8261411f565b602082019050919050565b5f6020820190508181035f83015261418081614147565b9050919050565b7f546f2061646472657373206973206e6f742076616c696420666f7220746f6b655f8201527f6e49642e00000000000000000000000000000000000000000000000000000000602082015250565b5f6141e1602483612ed8565b91506141ec82614187565b604082019050919050565b5f6020820190508181035f83015261420e816141d5565b9050919050565b7f5472616e73616374696f6e2076616c756520646964206e6f7420657175616c205f8201527f6d696e7420707269636500000000000000000000000000000000000000000000602082015250565b5f61426f602a83612ed8565b915061427a82614215565b604082019050919050565b5f6020820190508181035f83015261429c81614263565b9050919050565b5f815250565b5f60a0820190506142bc5f830187613006565b6142c96020830186613006565b6142d66040830185613006565b6142e36060830184613096565b6142ef608083016142a3565b95945050505050565b5f8151905061430681613271565b92915050565b5f6020828403121561432157614320612e13565b5b5f61432e848285016142f8565b91505092915050565b7f4552433732313a207472616e736665722066726f6d20696e636f7272656374205f8201527f6f776e6572000000000000000000000000000000000000000000000000000000602082015250565b5f614391602583612ed8565b915061439c82614337565b604082019050919050565b5f6020820190508181035f8301526143be81614385565b9050919050565b7f4552433732313a207472616e7366657220746f20746865207a65726f206164645f8201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b5f61441f602483612ed8565b915061442a826143c5565b604082019050919050565b5f6020820190508181035f83015261444c81614413565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65725f82015250565b5f614487602083612ed8565b915061449282614453565b602082019050919050565b5f6020820190508181035f8301526144b48161447b565b9050919050565b7f4552433732313a20617070726f766520746f2063616c6c6572000000000000005f82015250565b5f6144ef601983612ed8565b91506144fa826144bb565b602082019050919050565b5f6020820190508181035f83015261451c816144e3565b9050919050565b7f4552433732313a207472616e7366657220746f206e6f6e2045524337323152655f8201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b5f61457d603283612ed8565b915061458882614523565b604082019050919050565b5f6020820190508181035f8301526145aa81614571565b9050919050565b5f6145bb82612ece565b6145c58185614086565b93506145d5818560208601612ee8565b80840191505092915050565b5f6145ec82856145b1565b91506145f882846145b1565b91508190509392505050565b61460d8161354f565b82525050565b61461c81613582565b82525050565b5f6080820190506146355f830187614604565b6146426020830186614613565b61464f6040830185614604565b61465c6060830184614604565b95945050505050565b7f45434453413a20696e76616c6964207369676e617475726500000000000000005f82015250565b5f614699601883612ed8565b91506146a482614665565b602082019050919050565b5f6020820190508181035f8301526146c68161468d565b9050919050565b7f546f2061646472657373206973206e6f742076616c69642e00000000000000005f82015250565b5f614701601883612ed8565b915061470c826146cd565b602082019050919050565b5f6020820190508181035f83015261472e816146f5565b9050919050565b5f81519050919050565b5f82825260208201905092915050565b5f61475982614735565b614763818561473f565b9350614773818560208601612ee8565b61477c81612f10565b840191505092915050565b5f60808201905061479a5f830187613006565b6147a76020830186613006565b6147b46040830185613096565b81810360608301526147c6818461474f565b905095945050505050565b5f815190506147df81612e46565b92915050565b5f602082840312156147fa576147f9612e13565b5b5f614807848285016147d1565b91505092915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601260045260245ffd5b7f455243373231456e756d657261626c653a20636f6e73656375746976652074725f8201527f616e7366657273206e6f7420737570706f727465640000000000000000000000602082015250565b5f614897603583612ed8565b91506148a28261483d565b604082019050919050565b5f6020820190508181035f8301526148c48161488b565b9050919050565b7f4552433732313a206d696e7420746f20746865207a65726f20616464726573735f82015250565b5f6148ff602083612ed8565b915061490a826148cb565b602082019050919050565b5f6020820190508181035f83015261492c816148f3565b9050919050565b7f4552433732313a20746f6b656e20616c7265616479206d696e746564000000005f82015250565b5f614967601c83612ed8565b915061497282614933565b602082019050919050565b5f6020820190508181035f8301526149948161495b565b9050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b5f6149d282612f78565b91506149dd83612f78565b92508282039050818111156149f5576149f461499b565b5b92915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603160045260245ffdfea26469706673582212203c0aa57644ddec64dcd9d4b13d28d66fccabaf9803e44ea90630c857e3f2a41d64736f6c634300081500330000000000000000000000000000000000000000000000000000000000000080000000000000000000000000ba522e72a9471f9b301dfc61f3e9b3bfe80ea64d000000000000000000000000b47e3cd837ddf8e4c57f05d70ab865de6e193bbb00000000000000000000000000000000000000447e69651d841bd8d104bed493000000000000000000000000000000000000000000000000000000000000002d68747470733a2f2f6170692e70756e6b2d64616f2e78797a2f6d656d626572736869702f6d657461646174612f00000000000000000000000000000000000000

Deployed Bytecode

0x6080604052600436106101e2575f3560e01c806370a0823111610101578063c87b56dd11610094578063e8a3d48511610063578063e8a3d485146106fa578063e985e9c514610724578063f2fde38b14610760578063f9ed982114610788576101e2565b8063c87b56dd14610642578063ca0dcf161461067e578063dbe2193f146106a8578063e4f2487a146106d0576101e2565b8063938e3d7b116100d0578063938e3d7b146105a057806395d89b41146105c8578063a22cb465146105f2578063b88d4fde1461061a576101e2565b806370a08231146104e8578063715018a614610524578063784e9ee01461053a5780638da5cb5b14610576576101e2565b80632f745c591161017957806342842e0e1161014857806342842e0e1461040c5780634f6ccce7146104345780636352211e146104705780636e171523146104ac576101e2565b80632f745c59146103685780633123387b146103a45780633528fabf146103cc5780633ccfd60b146103f6576101e2565b80630d2f86a2116101b55780630d2f86a2146102b057806318160ddd146102da57806321ecd2bf1461030457806323b872dd14610340576101e2565b806301ffc9a7146101e657806306fdde0314610222578063081812fc1461024c578063095ea7b314610288575b5f80fd5b3480156101f1575f80fd5b5061020c60048036038101906102079190612e70565b6107a4565b6040516102199190612eb5565b60405180910390f35b34801561022d575f80fd5b506102366107b5565b6040516102439190612f58565b60405180910390f35b348015610257575f80fd5b50610272600480360381019061026d9190612fab565b610844565b60405161027f9190613015565b60405180910390f35b348015610293575f80fd5b506102ae60048036038101906102a99190613058565b610886565b005b3480156102bb575f80fd5b506102c461099c565b6040516102d19190613015565b60405180910390f35b3480156102e5575f80fd5b506102ee6109c1565b6040516102fb91906130a5565b60405180910390f35b34801561030f575f80fd5b5061032a600480360381019061032591906130be565b6109cd565b6040516103379190612eb5565b60405180910390f35b34801561034b575f80fd5b50610366600480360381019061036191906130fc565b610aae565b005b348015610373575f80fd5b5061038e60048036038101906103899190613058565b610b0e565b60405161039b91906130a5565b60405180910390f35b3480156103af575f80fd5b506103ca60048036038101906103c5919061316f565b610bae565b005b3480156103d7575f80fd5b506103e0610c49565b6040516103ed9190613015565b60405180910390f35b348015610401575f80fd5b5061040a610c6e565b005b348015610417575f80fd5b50610432600480360381019061042d91906130fc565b610d28565b005b34801561043f575f80fd5b5061045a60048036038101906104559190612fab565b610d47565b60405161046791906130a5565b60405180910390f35b34801561047b575f80fd5b5061049660048036038101906104919190612fab565b610db5565b6040516104a39190613015565b60405180910390f35b3480156104b7575f80fd5b506104d260048036038101906104cd9190612fab565b610e39565b6040516104df9190612eb5565b60405180910390f35b3480156104f3575f80fd5b5061050e6004803603810190610509919061319a565b610e53565b60405161051b91906130a5565b60405180910390f35b34801561052f575f80fd5b50610538610f07565b005b348015610545575f80fd5b50610560600480360381019061055b9190612fab565b610f1a565b60405161056d9190612eb5565b60405180910390f35b348015610581575f80fd5b5061058a611017565b6040516105979190613015565b60405180910390f35b3480156105ab575f80fd5b506105c660048036038101906105c19190613226565b61103f565b005b3480156105d3575f80fd5b506105dc61105d565b6040516105e99190612f58565b60405180910390f35b3480156105fd575f80fd5b506106186004803603810190610613919061329b565b6110ed565b005b348015610625575f80fd5b50610640600480360381019061063b9190613401565b611103565b005b34801561064d575f80fd5b5061066860048036038101906106639190612fab565b611165565b6040516106759190612f58565b60405180910390f35b348015610689575f80fd5b50610692611177565b60405161069f91906130a5565b60405180910390f35b3480156106b3575f80fd5b506106ce60048036038101906106c99190612fab565b61117d565b005b3480156106db575f80fd5b506106e461118f565b6040516106f191906134f4565b60405180910390f35b348015610705575f80fd5b5061070e6111a2565b60405161071b9190612f58565b60405180910390f35b34801561072f575f80fd5b5061074a6004803603810190610745919061350d565b61122e565b6040516107579190612eb5565b60405180910390f35b34801561076b575f80fd5b506107866004803603810190610781919061319a565b6112bc565b005b6107a2600480360381019061079d9190613619565b61133e565b005b5f6107ae826115ee565b9050919050565b60605f80546107c390613696565b80601f01602080910402602001604051908101604052809291908181526020018280546107ef90613696565b801561083a5780601f106108115761010080835404028352916020019161083a565b820191905f5260205f20905b81548152906001019060200180831161081d57829003601f168201915b5050505050905090565b5f61084e82611667565b60045f8381526020019081526020015f205f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b5f61089082610db5565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603610900576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108f790613736565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff1661091f6116b2565b73ffffffffffffffffffffffffffffffffffffffff16148061094e575061094d816109486116b2565b61122e565b5b61098d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610984906137c4565b60405180910390fd5b61099783836116b9565b505050565b600d5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b5f600880549050905090565b5f6109d8838361176f565b80610aa657508173ffffffffffffffffffffffffffffffffffffffff16600d5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166358178168856040518263ffffffff1660e01b8152600401610a4f91906130a5565b602060405180830381865afa158015610a6a573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610a8e91906137f6565b73ffffffffffffffffffffffffffffffffffffffff16145b905092915050565b610abf610ab96116b2565b826118d0565b610afe576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610af590613891565b60405180910390fd5b610b09838383611964565b505050565b5f610b1883610e53565b8210610b59576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b509061391f565b60405180910390fd5b60065f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8381526020019081526020015f2054905092915050565b610bb6611c50565b5f6002811115610bc957610bc8613481565b5b816002811115610bdc57610bdb613481565b5b03610c1c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c1390613987565b60405180910390fd5b80600a60146101000a81548160ff02191690836002811115610c4157610c40613481565b5b021790555050565b600e5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b610c76611c50565b5f610c7f611017565b73ffffffffffffffffffffffffffffffffffffffff1647604051610ca2906139d2565b5f6040518083038185875af1925050503d805f8114610cdc576040519150601f19603f3d011682016040523d82523d5f602084013e610ce1565b606091505b5050905080610d25576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d1c90613a30565b60405180910390fd5b50565b610d4283838360405180602001604052805f815250611103565b505050565b5f610d506109c1565b8210610d91576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d8890613abe565b60405180910390fd5b60088281548110610da557610da4613adc565b5b905f5260205f2001549050919050565b5f80610dc083611cce565b90505f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610e30576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e2790613b53565b60405180910390fd5b80915050919050565b5f610e4c82610e4784610db5565b61176f565b9050919050565b5f8073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603610ec2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610eb990613be1565b60405180910390fd5b60035f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20549050919050565b610f0f611c50565b610f185f611d07565b565b5f610f2482610db5565b73ffffffffffffffffffffffffffffffffffffffff16600d5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166358178168846040518263ffffffff1660e01b8152600401610f9491906130a5565b602060405180830381865afa158015610faf573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610fd391906137f6565b73ffffffffffffffffffffffffffffffffffffffff1603610ff75760019050611012565b61100082610e39565b1561100e5760019050611012565b5f90505b919050565b5f600a5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b611047611c50565b8181600c9182611058929190613da6565b505050565b60606001805461106c90613696565b80601f016020809104026020016040519081016040528092919081815260200182805461109890613696565b80156110e35780601f106110ba576101008083540402835291602001916110e3565b820191905f5260205f20905b8154815290600101906020018083116110c657829003601f168201915b5050505050905090565b6110ff6110f86116b2565b8383611dca565b5050565b61111461110e6116b2565b836118d0565b611153576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161114a90613891565b60405180910390fd5b61115f84848484611f31565b50505050565b606061117082611f8d565b9050919050565b600b5481565b611185611c50565b80600b8190555050565b600a60149054906101000a900460ff1681565b600c80546111af90613696565b80601f01602080910402602001604051908101604052809291908181526020018280546111db90613696565b80156112265780601f106111fd57610100808354040283529160200191611226565b820191905f5260205f20905b81548152906001019060200180831161120957829003601f168201915b505050505081565b5f60055f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16905092915050565b6112c4611c50565b5f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611332576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161132990613ee3565b60405180910390fd5b61133b81611d07565b50565b61134783611ff2565b156113f65761135683336109cd565b611395576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161138c90613f71565b60405180910390fd5b61139f83836109cd565b6113de576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113d590613fd9565b60405180910390fd5b6113f16113ea84611cce565b8385611964565b6115e9565b6001600281111561140a57611409613481565b5b600a60149054906101000a900460ff16600281111561142c5761142b613481565b5b1461146c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161146390614041565b60405180910390fd5b5f838360405160200161148092919061405f565b6040516020818303038152906040528051906020012090505f816040516020016114aa91906140fa565b6040516020818303038152906040528051906020012090506114cc8184612032565b61150b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161150290614169565b60405180910390fd5b61151585856109cd565b611554576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161154b906141f7565b60405180910390fd5b600b543414611598576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161158f90614285565b60405180910390fd5b6115a28486612153565b848473ffffffffffffffffffffffffffffffffffffffff167f30385c845b448a36257a6a1716e6ad2e1bc2cbe333cde1e69fe849ad6511adfe60405160405180910390a350505b505050565b5f7f780e9d63000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480611660575061165f82612170565b5b9050919050565b61167081611ff2565b6116af576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116a690613b53565b60405180910390fd5b50565b5f33905090565b8160045f8381526020019081526020015f205f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff1661172983610db5565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b5f600e5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663b9f3687483600d5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166358178168876040518263ffffffff1660e01b815260040161180891906130a5565b602060405180830381865afa158015611823573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061184791906137f6565b600d5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16876040518563ffffffff1660e01b815260040161188994939291906142a9565b602060405180830381865afa1580156118a4573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906118c8919061430c565b905092915050565b5f806118db83610db5565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16148061191d575061191c818561122e565b5b8061195b57508373ffffffffffffffffffffffffffffffffffffffff1661194384610844565b73ffffffffffffffffffffffffffffffffffffffff16145b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff1661198482610db5565b73ffffffffffffffffffffffffffffffffffffffff16146119da576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119d1906143a7565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611a48576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a3f90614435565b60405180910390fd5b611a558383836001612251565b8273ffffffffffffffffffffffffffffffffffffffff16611a7582610db5565b73ffffffffffffffffffffffffffffffffffffffff1614611acb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ac2906143a7565b60405180910390fd5b60045f8281526020019081526020015f205f6101000a81549073ffffffffffffffffffffffffffffffffffffffff0219169055600160035f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8282540392505081905550600160035f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f82825401925050819055508160025f8381526020019081526020015f205f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4611c4b83838360016122ac565b505050565b611c586116b2565b73ffffffffffffffffffffffffffffffffffffffff16611c76611017565b73ffffffffffffffffffffffffffffffffffffffff1614611ccc576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611cc39061449d565b60405180910390fd5b565b5f60025f8381526020019081526020015f205f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b5f600a5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600a5f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603611e38576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e2f90614505565b60405180910390fd5b8060055f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051611f249190612eb5565b60405180910390a3505050565b611f3c848484611964565b611f48848484846122b2565b611f87576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f7e90614593565b60405180910390fd5b50505050565b6060611f9882611667565b5f611fa1612434565b90505f815111611fbf5760405180602001604052805f815250611fea565b80611fc9846124c4565b604051602001611fda9291906145e1565b6040516020818303038152906040525b915050919050565b5f8073ffffffffffffffffffffffffffffffffffffffff1661201383611cce565b73ffffffffffffffffffffffffffffffffffffffff1614159050919050565b5f806001848460400151855f015186602001516040515f81526020016040526040516120619493929190614622565b6020604051602081039080840390855afa158015612081573d5f803e3d5ffd5b5050506020604051035190505f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036120fb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120f2906146af565b60405180910390fd5b7f000000000000000000000000ba522e72a9471f9b301dfc61f3e9b3bfe80ea64d73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161491505092915050565b61216c828260405180602001604052805f81525061258e565b5050565b5f7f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061223a57507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b8061224a5750612249826125e8565b5b9050919050565b61225b82846109cd565b61229a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161229190614717565b60405180910390fd5b6122a684848484612651565b50505050565b50505050565b5f6122d28473ffffffffffffffffffffffffffffffffffffffff166127ac565b15612427578373ffffffffffffffffffffffffffffffffffffffff1663150b7a026122fb6116b2565b8786866040518563ffffffff1660e01b815260040161231d9493929190614787565b6020604051808303815f875af192505050801561235857506040513d601f19601f8201168201806040525081019061235591906147e5565b60015b6123d7573d805f8114612386576040519150601f19603f3d011682016040523d82523d5f602084013e61238b565b606091505b505f8151036123cf576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123c690614593565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161491505061242c565b600190505b949350505050565b6060600c805461244390613696565b80601f016020809104026020016040519081016040528092919081815260200182805461246f90613696565b80156124ba5780601f10612491576101008083540402835291602001916124ba565b820191905f5260205f20905b81548152906001019060200180831161249d57829003601f168201915b5050505050905090565b60605f60016124d2846127ce565b0190505f8167ffffffffffffffff8111156124f0576124ef6132dd565b5b6040519080825280601f01601f1916602001820160405280156125225781602001600182028036833780820191505090505b5090505f82602001820190505b600115612583578080600190039150507f3031323334353637383961626364656600000000000000000000000000000000600a86061a8153600a858161257857612577614810565b5b0494505f850361252f575b819350505050919050565b612598838361291f565b6125a45f8484846122b2565b6125e3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016125da90614593565b60405180910390fd5b505050565b5f7f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b61265d84848484612b32565b60018111156126a1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612698906148ad565b60405180910390fd5b5f8290505f73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff16036126e6576126e181612b38565b612725565b8373ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1614612724576127238582612b7c565b5b5b5f73ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16036127665761276181612cd2565b6127a5565b8473ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16146127a4576127a38482612d92565b5b5b5050505050565b5f808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b5f805f90507a184f03e93ff9f4daa797ed6e38ed64bf6a1f010000000000000000831061282a577a184f03e93ff9f4daa797ed6e38ed64bf6a1f01000000000000000083816128205761281f614810565b5b0492506040810190505b6d04ee2d6d415b85acef81000000008310612867576d04ee2d6d415b85acef8100000000838161285d5761285c614810565b5b0492506020810190505b662386f26fc10000831061289657662386f26fc10000838161288c5761288b614810565b5b0492506010810190505b6305f5e10083106128bf576305f5e10083816128b5576128b4614810565b5b0492506008810190505b61271083106128e45761271083816128da576128d9614810565b5b0492506004810190505b6064831061290757606483816128fd576128fc614810565b5b0492506002810190505b600a8310612916576001810190505b80915050919050565b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff160361298d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161298490614915565b60405180910390fd5b61299681611ff2565b156129d6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016129cd9061497d565b60405180910390fd5b6129e35f83836001612251565b6129ec81611ff2565b15612a2c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a239061497d565b60405180910390fd5b600160035f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f82825401925050819055508160025f8381526020019081526020015f205f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff165f73ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4612b2e5f838360016122ac565b5050565b50505050565b60088054905060095f8381526020019081526020015f2081905550600881908060018154018082558091505060019003905f5260205f20015f909190919091505550565b5f6001612b8884610e53565b612b9291906149c8565b90505f60075f8481526020019081526020015f20549050818114612c69575f60065f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8481526020019081526020015f205490508060065f8773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8481526020019081526020015f20819055508160075f8381526020019081526020015f2081905550505b60075f8481526020019081526020015f205f905560065f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8381526020019081526020015f205f905550505050565b5f6001600880549050612ce591906149c8565b90505f60095f8481526020019081526020015f205490505f60088381548110612d1157612d10613adc565b5b905f5260205f20015490508060088381548110612d3157612d30613adc565b5b905f5260205f2001819055508160095f8381526020019081526020015f208190555060095f8581526020019081526020015f205f90556008805480612d7957612d786149fb565b5b600190038181905f5260205f20015f9055905550505050565b5f612d9c83610e53565b90508160065f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8381526020019081526020015f20819055508060075f8481526020019081526020015f2081905550505050565b5f604051905090565b5f80fd5b5f80fd5b5f7fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b612e4f81612e1b565b8114612e59575f80fd5b50565b5f81359050612e6a81612e46565b92915050565b5f60208284031215612e8557612e84612e13565b5b5f612e9284828501612e5c565b91505092915050565b5f8115159050919050565b612eaf81612e9b565b82525050565b5f602082019050612ec85f830184612ea6565b92915050565b5f81519050919050565b5f82825260208201905092915050565b5f5b83811015612f05578082015181840152602081019050612eea565b5f8484015250505050565b5f601f19601f8301169050919050565b5f612f2a82612ece565b612f348185612ed8565b9350612f44818560208601612ee8565b612f4d81612f10565b840191505092915050565b5f6020820190508181035f830152612f708184612f20565b905092915050565b5f819050919050565b612f8a81612f78565b8114612f94575f80fd5b50565b5f81359050612fa581612f81565b92915050565b5f60208284031215612fc057612fbf612e13565b5b5f612fcd84828501612f97565b91505092915050565b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f612fff82612fd6565b9050919050565b61300f81612ff5565b82525050565b5f6020820190506130285f830184613006565b92915050565b61303781612ff5565b8114613041575f80fd5b50565b5f813590506130528161302e565b92915050565b5f806040838503121561306e5761306d612e13565b5b5f61307b85828601613044565b925050602061308c85828601612f97565b9150509250929050565b61309f81612f78565b82525050565b5f6020820190506130b85f830184613096565b92915050565b5f80604083850312156130d4576130d3612e13565b5b5f6130e185828601612f97565b92505060206130f285828601613044565b9150509250929050565b5f805f6060848603121561311357613112612e13565b5b5f61312086828701613044565b935050602061313186828701613044565b925050604061314286828701612f97565b9150509250925092565b60038110613158575f80fd5b50565b5f813590506131698161314c565b92915050565b5f6020828403121561318457613183612e13565b5b5f6131918482850161315b565b91505092915050565b5f602082840312156131af576131ae612e13565b5b5f6131bc84828501613044565b91505092915050565b5f80fd5b5f80fd5b5f80fd5b5f8083601f8401126131e6576131e56131c5565b5b8235905067ffffffffffffffff811115613203576132026131c9565b5b60208301915083600182028301111561321f5761321e6131cd565b5b9250929050565b5f806020838503121561323c5761323b612e13565b5b5f83013567ffffffffffffffff81111561325957613258612e17565b5b613265858286016131d1565b92509250509250929050565b61327a81612e9b565b8114613284575f80fd5b50565b5f8135905061329581613271565b92915050565b5f80604083850312156132b1576132b0612e13565b5b5f6132be85828601613044565b92505060206132cf85828601613287565b9150509250929050565b5f80fd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b61331382612f10565b810181811067ffffffffffffffff82111715613332576133316132dd565b5b80604052505050565b5f613344612e0a565b9050613350828261330a565b919050565b5f67ffffffffffffffff82111561336f5761336e6132dd565b5b61337882612f10565b9050602081019050919050565b828183375f83830152505050565b5f6133a56133a084613355565b61333b565b9050828152602081018484840111156133c1576133c06132d9565b5b6133cc848285613385565b509392505050565b5f82601f8301126133e8576133e76131c5565b5b81356133f8848260208601613393565b91505092915050565b5f805f806080858703121561341957613418612e13565b5b5f61342687828801613044565b945050602061343787828801613044565b935050604061344887828801612f97565b925050606085013567ffffffffffffffff81111561346957613468612e17565b5b613475878288016133d4565b91505092959194509250565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602160045260245ffd5b600381106134bf576134be613481565b5b50565b5f8190506134cf826134ae565b919050565b5f6134de826134c2565b9050919050565b6134ee816134d4565b82525050565b5f6020820190506135075f8301846134e5565b92915050565b5f806040838503121561352357613522612e13565b5b5f61353085828601613044565b925050602061354185828601613044565b9150509250929050565b5f80fd5b5f819050919050565b6135618161354f565b811461356b575f80fd5b50565b5f8135905061357c81613558565b92915050565b5f60ff82169050919050565b61359781613582565b81146135a1575f80fd5b50565b5f813590506135b28161358e565b92915050565b5f606082840312156135cd576135cc61354b565b5b6135d7606061333b565b90505f6135e68482850161356e565b5f8301525060206135f98482850161356e565b602083015250604061360d848285016135a4565b60408301525092915050565b5f805f60a084860312156136305761362f612e13565b5b5f61363d86828701612f97565b935050602061364e86828701613044565b925050604061365f868287016135b8565b9150509250925092565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602260045260245ffd5b5f60028204905060018216806136ad57607f821691505b6020821081036136c0576136bf613669565b5b50919050565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e655f8201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b5f613720602183612ed8565b915061372b826136c6565b604082019050919050565b5f6020820190508181035f83015261374d81613714565b9050919050565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f5f8201527f6b656e206f776e6572206f7220617070726f76656420666f7220616c6c000000602082015250565b5f6137ae603d83612ed8565b91506137b982613754565b604082019050919050565b5f6020820190508181035f8301526137db816137a2565b9050919050565b5f815190506137f08161302e565b92915050565b5f6020828403121561380b5761380a612e13565b5b5f613818848285016137e2565b91505092915050565b7f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e655f8201527f72206f7220617070726f76656400000000000000000000000000000000000000602082015250565b5f61387b602d83612ed8565b915061388682613821565b604082019050919050565b5f6020820190508181035f8301526138a88161386f565b9050919050565b7f455243373231456e756d657261626c653a206f776e657220696e646578206f755f8201527f74206f6620626f756e6473000000000000000000000000000000000000000000602082015250565b5f613909602b83612ed8565b9150613914826138af565b604082019050919050565b5f6020820190508181035f830152613936816138fd565b9050919050565b7f43616e6e6f7420736574206173206465706c6f796564000000000000000000005f82015250565b5f613971601683612ed8565b915061397c8261393d565b602082019050919050565b5f6020820190508181035f83015261399e81613965565b9050919050565b5f81905092915050565b50565b5f6139bd5f836139a5565b91506139c8826139af565b5f82019050919050565b5f6139dc826139b2565b9150819050919050565b7f455448207769746864726177616c206661696c656400000000000000000000005f82015250565b5f613a1a601583612ed8565b9150613a25826139e6565b602082019050919050565b5f6020820190508181035f830152613a4781613a0e565b9050919050565b7f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f5f8201527f7574206f6620626f756e64730000000000000000000000000000000000000000602082015250565b5f613aa8602c83612ed8565b9150613ab382613a4e565b604082019050919050565b5f6020820190508181035f830152613ad581613a9c565b9050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b7f4552433732313a20696e76616c696420746f6b656e20494400000000000000005f82015250565b5f613b3d601883612ed8565b9150613b4882613b09565b602082019050919050565b5f6020820190508181035f830152613b6a81613b31565b9050919050565b7f4552433732313a2061646472657373207a65726f206973206e6f7420612076615f8201527f6c6964206f776e65720000000000000000000000000000000000000000000000602082015250565b5f613bcb602983612ed8565b9150613bd682613b71565b604082019050919050565b5f6020820190508181035f830152613bf881613bbf565b9050919050565b5f82905092915050565b5f819050815f5260205f209050919050565b5f6020601f8301049050919050565b5f82821b905092915050565b5f60088302613c657fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82613c2a565b613c6f8683613c2a565b95508019841693508086168417925050509392505050565b5f819050919050565b5f613caa613ca5613ca084612f78565b613c87565b612f78565b9050919050565b5f819050919050565b613cc383613c90565b613cd7613ccf82613cb1565b848454613c36565b825550505050565b5f90565b613ceb613cdf565b613cf6818484613cba565b505050565b5b81811015613d1957613d0e5f82613ce3565b600181019050613cfc565b5050565b601f821115613d5e57613d2f81613c09565b613d3884613c1b565b81016020851015613d47578190505b613d5b613d5385613c1b565b830182613cfb565b50505b505050565b5f82821c905092915050565b5f613d7e5f1984600802613d63565b1980831691505092915050565b5f613d968383613d6f565b9150826002028217905092915050565b613db08383613bff565b67ffffffffffffffff811115613dc957613dc86132dd565b5b613dd38254613696565b613dde828285613d1d565b5f601f831160018114613e0b575f8415613df9578287013590505b613e038582613d8b565b865550613e6a565b601f198416613e1986613c09565b5f5b82811015613e4057848901358255600182019150602085019450602081019050613e1b565b86831015613e5d5784890135613e59601f891682613d6f565b8355505b6001600288020188555050505b50505050505050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f20615f8201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b5f613ecd602683612ed8565b9150613ed882613e73565b604082019050919050565b5f6020820190508181035f830152613efa81613ec1565b9050919050565b7f43616c6c657220646f65736e2774206861766520617574686f7269747920746f5f8201527f207472616e7366657220746f6b656e0000000000000000000000000000000000602082015250565b5f613f5b602f83612ed8565b9150613f6682613f01565b604082019050919050565b5f6020820190508181035f830152613f8881613f4f565b9050919050565b7f496e76616c696420746f206164647265737300000000000000000000000000005f82015250565b5f613fc3601283612ed8565b9150613fce82613f8f565b602082019050919050565b5f6020820190508181035f830152613ff081613fb7565b9050919050565b7f4d696e74696e67206973206e6f74206c697665000000000000000000000000005f82015250565b5f61402b601383612ed8565b915061403682613ff7565b602082019050919050565b5f6020820190508181035f8301526140588161401f565b9050919050565b5f6040820190506140725f830185613096565b61407f6020830184613006565b9392505050565b5f81905092915050565b7f19457468657265756d205369676e6564204d6573736167653a0a3332000000005f82015250565b5f6140c4601c83614086565b91506140cf82614090565b601c82019050919050565b5f819050919050565b6140f46140ef8261354f565b6140da565b82525050565b5f614104826140b8565b915061411082846140e3565b60208201915081905092915050565b7f496e76616c696420636f75706f6e0000000000000000000000000000000000005f82015250565b5f614153600e83612ed8565b915061415e8261411f565b602082019050919050565b5f6020820190508181035f83015261418081614147565b9050919050565b7f546f2061646472657373206973206e6f742076616c696420666f7220746f6b655f8201527f6e49642e00000000000000000000000000000000000000000000000000000000602082015250565b5f6141e1602483612ed8565b91506141ec82614187565b604082019050919050565b5f6020820190508181035f83015261420e816141d5565b9050919050565b7f5472616e73616374696f6e2076616c756520646964206e6f7420657175616c205f8201527f6d696e7420707269636500000000000000000000000000000000000000000000602082015250565b5f61426f602a83612ed8565b915061427a82614215565b604082019050919050565b5f6020820190508181035f83015261429c81614263565b9050919050565b5f815250565b5f60a0820190506142bc5f830187613006565b6142c96020830186613006565b6142d66040830185613006565b6142e36060830184613096565b6142ef608083016142a3565b95945050505050565b5f8151905061430681613271565b92915050565b5f6020828403121561432157614320612e13565b5b5f61432e848285016142f8565b91505092915050565b7f4552433732313a207472616e736665722066726f6d20696e636f7272656374205f8201527f6f776e6572000000000000000000000000000000000000000000000000000000602082015250565b5f614391602583612ed8565b915061439c82614337565b604082019050919050565b5f6020820190508181035f8301526143be81614385565b9050919050565b7f4552433732313a207472616e7366657220746f20746865207a65726f206164645f8201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b5f61441f602483612ed8565b915061442a826143c5565b604082019050919050565b5f6020820190508181035f83015261444c81614413565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65725f82015250565b5f614487602083612ed8565b915061449282614453565b602082019050919050565b5f6020820190508181035f8301526144b48161447b565b9050919050565b7f4552433732313a20617070726f766520746f2063616c6c6572000000000000005f82015250565b5f6144ef601983612ed8565b91506144fa826144bb565b602082019050919050565b5f6020820190508181035f83015261451c816144e3565b9050919050565b7f4552433732313a207472616e7366657220746f206e6f6e2045524337323152655f8201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b5f61457d603283612ed8565b915061458882614523565b604082019050919050565b5f6020820190508181035f8301526145aa81614571565b9050919050565b5f6145bb82612ece565b6145c58185614086565b93506145d5818560208601612ee8565b80840191505092915050565b5f6145ec82856145b1565b91506145f882846145b1565b91508190509392505050565b61460d8161354f565b82525050565b61461c81613582565b82525050565b5f6080820190506146355f830187614604565b6146426020830186614613565b61464f6040830185614604565b61465c6060830184614604565b95945050505050565b7f45434453413a20696e76616c6964207369676e617475726500000000000000005f82015250565b5f614699601883612ed8565b91506146a482614665565b602082019050919050565b5f6020820190508181035f8301526146c68161468d565b9050919050565b7f546f2061646472657373206973206e6f742076616c69642e00000000000000005f82015250565b5f614701601883612ed8565b915061470c826146cd565b602082019050919050565b5f6020820190508181035f83015261472e816146f5565b9050919050565b5f81519050919050565b5f82825260208201905092915050565b5f61475982614735565b614763818561473f565b9350614773818560208601612ee8565b61477c81612f10565b840191505092915050565b5f60808201905061479a5f830187613006565b6147a76020830186613006565b6147b46040830185613096565b81810360608301526147c6818461474f565b905095945050505050565b5f815190506147df81612e46565b92915050565b5f602082840312156147fa576147f9612e13565b5b5f614807848285016147d1565b91505092915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601260045260245ffd5b7f455243373231456e756d657261626c653a20636f6e73656375746976652074725f8201527f616e7366657273206e6f7420737570706f727465640000000000000000000000602082015250565b5f614897603583612ed8565b91506148a28261483d565b604082019050919050565b5f6020820190508181035f8301526148c48161488b565b9050919050565b7f4552433732313a206d696e7420746f20746865207a65726f20616464726573735f82015250565b5f6148ff602083612ed8565b915061490a826148cb565b602082019050919050565b5f6020820190508181035f83015261492c816148f3565b9050919050565b7f4552433732313a20746f6b656e20616c7265616479206d696e746564000000005f82015250565b5f614967601c83612ed8565b915061497282614933565b602082019050919050565b5f6020820190508181035f8301526149948161495b565b9050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b5f6149d282612f78565b91506149dd83612f78565b92508282039050818111156149f5576149f461499b565b5b92915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603160045260245ffdfea26469706673582212203c0aa57644ddec64dcd9d4b13d28d66fccabaf9803e44ea90630c857e3f2a41d64736f6c63430008150033

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

0000000000000000000000000000000000000000000000000000000000000080000000000000000000000000ba522e72a9471f9b301dfc61f3e9b3bfe80ea64d000000000000000000000000b47e3cd837ddf8e4c57f05d70ab865de6e193bbb00000000000000000000000000000000000000447e69651d841bd8d104bed493000000000000000000000000000000000000000000000000000000000000002d68747470733a2f2f6170692e70756e6b2d64616f2e78797a2f6d656d626572736869702f6d657461646174612f00000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : _contractURI (string): https://api.punk-dao.xyz/membership/metadata/
Arg [1] : _adminSigner (address): 0xBA522E72A9471f9b301DFC61F3E9B3BfE80EA64d
Arg [2] : _deployedPunkContractAddress (address): 0xb47e3cd837dDF8e4c57F05d70Ab865de6e193BBB
Arg [3] : _delegateCashAddress (address): 0x00000000000000447e69651d841bD8D104Bed493

-----Encoded View---------------
7 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000080
Arg [1] : 000000000000000000000000ba522e72a9471f9b301dfc61f3e9b3bfe80ea64d
Arg [2] : 000000000000000000000000b47e3cd837ddf8e4c57f05d70ab865de6e193bbb
Arg [3] : 00000000000000000000000000000000000000447e69651d841bd8d104bed493
Arg [4] : 000000000000000000000000000000000000000000000000000000000000002d
Arg [5] : 68747470733a2f2f6170692e70756e6b2d64616f2e78797a2f6d656d62657273
Arg [6] : 6869702f6d657461646174612f00000000000000000000000000000000000000


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.