Contract 0x20E964cfA52BC87CABb816713eDCA056D2fb5261

 
 
Txn Hash Method
Block
From
To
Value [Txn Fee]
0x70787e670a6d8d22674b6a97f7b1120a8b7381d2cc50d89a1bafa8d436626a600x4046f85f304127312022-07-06 17:40:104 hrs 13 mins ago0x42a149af798ff314c761b099e1e45a4ceeb7c24f IN  0x20e964cfa52bc87cabb816713edca056d2fb5261550 MATIC0.004687461351 30.745112561
0xde7d9122edf56facf330f6e45fdb1f66d1ab12fd3f9a97d88369978f2d6e79b40x4046f85f302318342022-07-01 23:59:024 days 21 hrs ago0x75118c402064aea990e1367fe3d83bae340f6303 IN  0x20e964cfa52bc87cabb816713edca056d2fb5261550 MATIC0.004573860003 30.00000002
0x86bb9fefcbceb6a76d9c31ed45a4833a9564765ed61e7c7463d671c39dfb75ec0x4046f85f302243792022-07-01 19:20:555 days 2 hrs ago0x886fc03678e54bfad52ddcb8636528432786eb84 IN  0x20e964cfa52bc87cabb816713edca056d2fb5261550 MATIC0.004573860002 30.000000014
0x8d1c8cbe367396d361e3029cb46f6e5b0d37d464cf65e125e9e80d5634a80c7b0x4046f85f302196552022-07-01 16:27:505 days 5 hrs ago0x046f8a9c9f35d239b41c2c9d9620f3b6935fb61e IN  0x20e964cfa52bc87cabb816713edca056d2fb5261550 MATIC0.004577030349 30.020794358
0xe75d5dab2dd076bcb32b6c44eb610ed8b8c30f3af00e14053142d41901c587e70x4046f85f301887312022-06-30 20:43:366 days 1 hr ago0x205d7cb8d49be022c7439e696559f108bd06a71a IN  0x20e964cfa52bc87cabb816713edca056d2fb5261550 MATIC0.005594610876 36.69511666
0xb6f82f75fc8def8519e7fa1f8ad714241907ddfe345b4e32a4eb6bbe4333747fSafe Transfer Fr...298830602022-06-22 22:15:2013 days 23 hrs ago0xc4a715312dcb8f416e781664d363b73885da1bf7 IN  0x20e964cfa52bc87cabb816713edca056d2fb52610 MATIC0.00181536 30.000000013
0x45178dc4b45e0ac7bc038e3ef18e5632e52adbe8c8a6a5a59616dec6c68cf62f0x4046f85f298507882022-06-22 2:15:5114 days 19 hrs ago0xb5dfd13c21b294186ae86c3a0f44342f1de8d411 IN  0x20e964cfa52bc87cabb816713edca056d2fb5261550 MATIC0.006438166893 42.234658638
0x01002fec5b89c1271d8bf2d4ea23dc59c17c37678f46c917438757ec14793cafOwner Mint298112262022-06-21 2:00:4915 days 19 hrs ago0x24913b38363bd5901c4ecc69727e48e743b39088 IN  0x20e964cfa52bc87cabb816713edca056d2fb52610 MATIC0.002606087911 30.240054671
0xd8267c7a73a2e1e2bcf7f702724d4498b0d7994b40222bd9a590a9e4c8b2cc680x4046f85f298105342022-06-21 1:34:5315 days 20 hrs ago0xc7908024586487712bdcf5c5a067aaa7b1a1f936 IN  0x20e964cfa52bc87cabb816713edca056d2fb5261550 MATIC0.006096446652 39.986663253
0x31954a90ef29e9ddb59bce82c9b88969b383ed677023496238449fc483114686Owner Mint297808772022-06-20 5:58:1016 days 15 hrs ago0x24913b38363bd5901c4ecc69727e48e743b39088 IN  0x20e964cfa52bc87cabb816713edca056d2fb52610 MATIC0.004307276969 49.980006603
0xd7baff979e6fac9e7aa75fce0deca2437ee6f9024b2832b58c59a3bfe8444523Owner Mint297808522022-06-20 5:56:5416 days 15 hrs ago0x24913b38363bd5901c4ecc69727e48e743b39088 IN  0x20e964cfa52bc87cabb816713edca056d2fb52610 MATIC0.003293341091 38.220001529
0x85834dd27604210b99bf241ed247824901db62029d9f2e621dde2233399e0b16Owner Mint297808222022-06-20 5:54:5416 days 15 hrs ago0x24913b38363bd5901c4ecc69727e48e743b39088 IN  0x20e964cfa52bc87cabb816713edca056d2fb52610 MATIC0.003497648478 40.585384986
0x8551879636c2392e372ec96e6256ef319c196fa0b72a043613a2311e31d37e1bOwner Mint297807312022-06-20 5:50:5816 days 16 hrs ago0x24913b38363bd5901c4ecc69727e48e743b39088 IN  0x20e964cfa52bc87cabb816713edca056d2fb52610 MATIC0.002585400002 30.000000033
0xc0dc98b3fb2057dd9a2e3c4c8049f0e9dc15387adc5382639e526a54a25d2b75Owner Mint297806992022-06-20 5:49:5416 days 16 hrs ago0x24913b38363bd5901c4ecc69727e48e743b39088 IN  0x20e964cfa52bc87cabb816713edca056d2fb52610 MATIC0.002585400002 30.000000032
0xab0ed2478b5b38955428adbd60e49007ab0b60d7c2812b249c434dc4a743083fOwner Mint297806632022-06-20 5:48:3816 days 16 hrs ago0x24913b38363bd5901c4ecc69727e48e743b39088 IN  0x20e964cfa52bc87cabb816713edca056d2fb52610 MATIC0.002585400003 30.000000035
0x0b2f80ce3faeea50c57643863068ec44bf5a48e51b2af863af641beafda5b0a8Owner Mint297806232022-06-20 5:47:1816 days 16 hrs ago0x24913b38363bd5901c4ecc69727e48e743b39088 IN  0x20e964cfa52bc87cabb816713edca056d2fb52610 MATIC0.002585400002 30.000000029
0x25ac112055bd684906fb82378fbb7065a0ce30b88db8924abadc0e8a2497f4410x4046f85f297640712022-06-19 19:14:1517 days 2 hrs ago0x25a1cfac8c9eadab7c12fb59d54144593aa96436 IN  0x20e964cfa52bc87cabb816713edca056d2fb5261550 MATIC0.005234550557 34.333476915
0x9f77549fa65f26b88d0a0838704dd32ae65959366e3e362257589d4c148bad20Safe Transfer Fr...297582032022-06-19 15:28:5717 days 6 hrs ago0x0a6243c41112ca1b2c6a06c24a66bc8102a4141e IN  0x20e964cfa52bc87cabb816713edca056d2fb52610 MATIC0.00181536 30.000000014
0xfaa483e2623e7345acffc5ef5685ef3a7ddff326d9d388c7366990b95e32511b0x4046f85f297553162022-06-19 13:41:1017 days 8 hrs ago0xb2c4a6405f8d4f3eafeb30bde18697295869f713 IN  0x20e964cfa52bc87cabb816713edca056d2fb5261550 MATIC0.004576748645 30.018946661
0xcae8d58ba74c12a6aa6195d6d3d87d9735d3c4ef5d71d62013955934014f3eda0x4046f85f297487502022-06-19 9:32:0017 days 12 hrs ago0x33031e7acf112d140f849a8da3684e67498c9357 IN  0x20e964cfa52bc87cabb816713edca056d2fb5261550 MATIC0.004464238764 32.98000003
0x127ea74e337d774d7c2bd4d74af11d4154274e9d8ce2265d0867094b942dd4240x4046f85f297418762022-06-19 5:24:3417 days 16 hrs ago0x0a6243c41112ca1b2c6a06c24a66bc8102a4141e IN  0x20e964cfa52bc87cabb816713edca056d2fb5261550 MATIC0.004573860044 30.000000291
0x1c338839b8863699d1381161321f5fc861251390da392e4288a0dc137bdd9fb20x4046f85f297303722022-06-18 22:21:1317 days 23 hrs ago0x01f699f01e346e84864413850a3b8272b353ef87 IN  0x20e964cfa52bc87cabb816713edca056d2fb5261550 MATIC0.01487187029 97.544767157
0xe2606bada725f431dcc595934d2f04b0510ff7479fbf292159179ab22b09c09c0x4046f85f297292402022-06-18 21:40:0918 days 13 mins ago0x41014421186c55d4875141701c52c324ad07c6a3 IN  0x20e964cfa52bc87cabb816713edca056d2fb5261550 MATIC0.0042729384 36.134785629
0xd079f7bc629db651c86925eeafe7582d67fdc1be962893895cb9124cd3605bcc0x4046f85f297292312022-06-18 21:39:5118 days 13 mins ago0x41014421186c55d4875141701c52c324ad07c6a3 IN  0x20e964cfa52bc87cabb816713edca056d2fb5261550 MATIC0.006166373507 40.448497915
0xdeed578f9b96d6a8984ec6b072a3c10bbda902507f2e3921bb87767f88c7a1c40x4046f85f297280452022-06-18 20:54:4518 days 58 mins ago0xd6a89a3e4898a4749b64e5df29932597d4d30c73 IN  0x20e964cfa52bc87cabb816713edca056d2fb5261550 MATIC0.114705985077 752.357866734
[ Download CSV Export 
Parent Txn Hash Block From To Value
Loading

Similar Match Source Code
Note: This contract matches the deployed ByteCode of the Source Code for Contract 0xFC9A7b993A850b12eaC9a6A9E4246939DB7Ce8F4

Contract Name:
ParkPassNFT

Compiler Version
v0.8.4+commit.c7e474f2

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion

Contract Source Code (Solidity Standard Json-Input format)

File 1 of 17 : ParkPassNFT.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;

import "@openzeppelin/contracts/interfaces/IERC2981.sol";
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "./Coupon.sol";
import "./ParkPassMgmt.sol";

contract ParkPassNFT is ERC721, IERC2981, Ownable, ReentrancyGuard {
    // Park Pass details
    uint256 public passId;
    uint256 public listedPriceInWei;
    uint256 public unlistedPriceInWei;
    uint256 public guaranteedMint;
    uint256 public numMinted;
    uint256 public maxSupply;
    uint256 public reserveSupply;
    uint96 public discountPct;
    bool public mintActive;

    // Base metadata URI
    string public baseURI;

    // Token ID sequence
    uint256 private curTokenId;

    // Royalty on secondary sales. 10000 = 100%, 1000 = 10%, 100 = 1%
    uint96 royalty;

    // Where to send withdrawals and royalties
    address vaultAddress;

    // Address of management contract
    address mgmtAddress;

    // Coupon public key for listed wallets
    address public listedCouponPublicKey;

    // Coupon public key for un-listed wallets
    address public unlistedCouponPublicKey;

    constructor(
        uint256 _passId,
        string memory _name,
        string memory _symbol
    ) ERC721(_name, _symbol) {
        passId = _passId;
    }

    /**
     * @dev This contract implements the IERC2981 "royalty info" interface.
     */
    function supportsInterface(bytes4 _interfaceId)
        public
        view
        virtual
        override(IERC165, ERC721)
        returns (bool)
    {
        return
            _interfaceId == type(IERC2981).interfaceId ||
            super.supportsInterface(_interfaceId);
    }

    /**
     * @dev Mints one park pass.
     */
    function passMint(Coupon memory _coupon) external payable {
        require(mintActive, "Mint not active");
        require(mgmtAddress != address(0), "Mgmt Contract address not set");

        // Validate coupon
        address signer = ecrecover(_coupon.m, _coupon.v, _coupon.r, _coupon.s);
        require((signer == listedCouponPublicKey) || (signer == unlistedCouponPublicKey), "Invalid Coupon");
        if(signer == listedCouponPublicKey) {
            require(listedCouponPublicKey != address(0), "Coupon public key for listed not set");
            require(msg.value >= listedPriceInWei, "Insufficient funds");
        } else if (signer == unlistedCouponPublicKey){
            require(unlistedCouponPublicKey != address(0), "Coupon public key for unlisted not set");
            require(msg.value >= unlistedPriceInWei, "Insufficient funds");
        }
        require(_msgSender() != owner(), "Owner should call ownerMint");

        // Check remaining supply (excluding reserve)
        unchecked {
            // Warning: uint wraparound is possible here
            uint256 curSupply = maxSupply - reserveSupply - numMinted;
            require(
                curSupply > 0 && curSupply <= maxSupply,
                "This park pass has minted out"
            );
        }

        // Mark coupon as consumed. Will fail/revert if:
        //  - address has max minted
        //  - coupon is already consumed
        bytes32 couponHash = keccak256(
            abi.encode(_coupon.r, _coupon.s, _coupon.v)
        );
        ParkPassMgmt mgmt = ParkPassMgmt(mgmtAddress);
        mgmt.consumeCoupon(_msgSender(), couponHash);

        // Mint it!
        _mintCore(_msgSender());
    }

    /**
     * @dev (Owner-only) Mints one token to the given receiver.
     */
    function ownerMint(address _receiver) external onlyOwner {
        require(_receiver != address(0), "Invalid receiver address");

        // Check remaining supply (including reserve)
        unchecked {
            // Warning: uint wraparound is possible here
            uint256 curSupply = maxSupply - numMinted;
            require(
                curSupply > 0 && curSupply <= maxSupply,
                "This park pass has minted out (and reserve depleted)"
            );
        }

        // Mint it!
        _mintCore(_receiver);
    }

    /**
     * @dev Shared mint function (private)
     */
    function _mintCore(address _receiver) private {
        // Get the next token ID
        curTokenId = curTokenId + 1;
        require(curTokenId != 0);
        uint256 tokenId = curTokenId;

        // Increment the mint counter
        numMinted += 1;

        // Mint it!
        _safeMint(_receiver, tokenId);
    }

    /**
     * @dev Destroys the token.
     */
    function burn(uint256 _tokenId) public {
        address owner = ERC721.ownerOf(_tokenId);
        require(owner == _msgSender(), "Caller is not token owner");
        super._burn(_tokenId);
    }

    /**
     * Pass bulk-configuration (convenience method to save gas).
     */
    function configurePass(
        address _mgmtAddress,
        address _vaultAddress,
        address _listedCouponPublicKey,
        address _unlistedCouponPublicKey,
        uint256 _listedPriceInWei,
        uint256 _unlistedPriceInWei,
        uint256 _guaranteedMint,
        uint96 _discountPct,
        uint256 _maxSupply,
        uint256 _reserveSupply
    ) public onlyOwner {
        setMgmtAddress(_mgmtAddress);
        setVaultAddress(_vaultAddress);
        setListedCouponPublicKey(_listedCouponPublicKey);
        setUnlistedCouponPublicKey(_unlistedCouponPublicKey);
        setListedPriceInWei(_listedPriceInWei);
        setUnlistedPriceInWei(_unlistedPriceInWei);
        setGuaranteedMint(_guaranteedMint);
        setDiscountPct(_discountPct);
        setMaxSupply(_maxSupply);
        setReserveSupply(_reserveSupply);
    }

    /**
     * @dev Sets the mint price of the park pass for listed.
     */
    function setListedPriceInWei(uint256 _listedPriceInWei) public onlyOwner {
        listedPriceInWei = _listedPriceInWei;
    }

    /**
     * @dev Sets the mint price of the park pass for unlisted.
     */
    function setUnlistedPriceInWei(uint256 _unlistedPriceInWei) public onlyOwner {
        unlistedPriceInWei = _unlistedPriceInWei;
    }

    /**
     * @dev Sets the guaranteed mint of the park pass. For a given mint event, the holder is guaranteed this number of NFTs at a discount.
     */
    function setGuaranteedMint(uint256 _guaranteedMint) public onlyOwner {
        guaranteedMint = _guaranteedMint;
    }

    /**
     * @dev Sets the discount percentage of the park pass. This is the discount applied when consuming a guaranteed mint.
     */
    function setDiscountPct(uint96 _discountPct) public onlyOwner {
        discountPct = _discountPct;
    }

    /**
     * @dev Sets the max supply of the park pass.
     */
    function setMaxSupply(uint256 _maxSupply) public onlyOwner {
        maxSupply = _maxSupply;
    }

    /**
     * @dev Sets the reserve supply of the park pass.
     */
    function setReserveSupply(uint256 _reserveSupply) public onlyOwner {
        reserveSupply = _reserveSupply;
    }

    /**
     * @dev Sets the mint active/inactive for the park pass.
     */
    function setMintActive(bool _active) public onlyOwner {
        mintActive = _active;
    }

    /**
     * @dev Sets the metadata base URI.
     */
    function setBaseURI(string memory _baseURI) public onlyOwner {
        baseURI = _baseURI;
    }

    /**
     * @dev Override: Returns the metadata URI for the token's park pass.
     */
    function tokenURI(uint256 _tokenId)
        public
        view
        override
        returns (string memory)
    {
        require(_exists(_tokenId));

        // Return URI to park pass metadata
        return
            bytes(baseURI).length > 0
                ? string(
                    abi.encodePacked(
                        baseURI,
                        "/parkpassnft/token/",
                        Strings.toString(passId)
                    )
                )
                : "";
    }

    /**
     * @dev Returns the contract metadata URI. This is mainly to provide OpenSea with royalty configuration.
     * https://docs.opensea.io/docs/contract-level-metadata
     */
    function contractURI() public view returns (string memory) {
        // Return URI to contract metadata
        return
            bytes(baseURI).length > 0
                ? string(
                    abi.encodePacked(
                        baseURI,
                        "/parkpassnft/contract/",
                        Strings.toString(passId)
                    )
                )
                : "";
    }

    /**
     * @dev Sets the address to receive withdrawals and royalties.
     */
    function setVaultAddress(address _vaultAddress) public onlyOwner {
        require(_vaultAddress != address(0), "Invalid vault address");
        vaultAddress = _vaultAddress;
    }

    function setMgmtAddress(address _mgmtAddress) public onlyOwner {
        require(_mgmtAddress != address(0), "Invalid mgmt address");
        mgmtAddress = _mgmtAddress;
    }

    function setListedCouponPublicKey(address _listedCouponPublicKey) public onlyOwner {
        require(_listedCouponPublicKey != address(0), "Invalid signer address for listed");
        listedCouponPublicKey = _listedCouponPublicKey;
    }

    function setUnlistedCouponPublicKey(address _unlistedCouponPublicKey) public onlyOwner {
        require(_unlistedCouponPublicKey != address(0), "Invalid signer address for unlisted");
        unlistedCouponPublicKey = _unlistedCouponPublicKey;
    }

    /**
     * @dev Sets the royalty percentage on secondary sales. 10000 = 100%, 100 = 1%.
            Note: Not all marketplaces support the IERC2981 "Royalty Info" interface.
            More info: https://eips.ethereum.org/EIPS/eip-2981
     */
    function setRoyaltyPercentage(uint96 _percentage) public onlyOwner {
        require(_percentage <= 10000, "Invalid royalty percentage");
        royalty = _percentage;
    }

    /**
     * @dev IERC2981 royaltyInfo implementation
     */
    function royaltyInfo(
        uint256, /*_tokenId*/
        uint256 _salePrice
    ) public view override returns (address, uint256) {
        uint256 royaltyAmount = (_salePrice * royalty) / 10000;
        return (vaultAddress, royaltyAmount);
    }

    /**
     * @dev Withdraws balance to vault.
     */
    function withdraw() public onlyOwner {
        require(vaultAddress != address(0), "Vault address not set");

        (bool success, ) = payable(vaultAddress).call{
            value: address(this).balance
        }("");
        require(success);
    }

    function testListedCoupon(Coupon memory _listedCoupon) public view returns (bool) {
        // Validate the coupon
        address signer = ecrecover(_listedCoupon.m, _listedCoupon.v, _listedCoupon.r, _listedCoupon.s);
        require(signer == listedCouponPublicKey, "Invalid coupon for listed");
        return true;
    }

    function testUnlistedCoupon(Coupon memory _unlistedCoupon) public view returns (bool) {
        // Validate the coupon
        address signer = ecrecover(_unlistedCoupon.m, _unlistedCoupon.v, _unlistedCoupon.r, _unlistedCoupon.s);
        require(signer == unlistedCouponPublicKey, "Invalid coupon for unlisted");
        return true;
    }
}

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

pragma solidity ^0.8.0;

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

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

File 3 of 17 : ERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.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: balance query for the zero address");
        return _balances[owner];
    }

    /**
     * @dev See {IERC721-ownerOf}.
     */
    function ownerOf(uint256 tokenId) public view virtual override returns (address) {
        address owner = _owners[tokenId];
        require(owner != address(0), "ERC721: owner query for nonexistent token");
        return owner;
    }

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

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

    /**
     * @dev See {IERC721Metadata-tokenURI}.
     */
    function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
        require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token");

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

    /**
     * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each
     * token will be the concatenation of the `baseURI` and the `tokenId`. Empty
     * by default, can be 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 owner nor approved for all"
        );

        _approve(to, tokenId);
    }

    /**
     * @dev See {IERC721-getApproved}.
     */
    function getApproved(uint256 tokenId) public view virtual override returns (address) {
        require(_exists(tokenId), "ERC721: approved query for nonexistent token");

        return _tokenApprovals[tokenId];
    }

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

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

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

        _transfer(from, to, tokenId);
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        _beforeTokenTransfer(from, to, tokenId);

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

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

        emit Transfer(from, to, tokenId);

        _afterTokenTransfer(from, to, tokenId);
    }

    /**
     * @dev Approve `to` to operate on `tokenId`
     *
     * Emits a {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 a {ApprovalForAll} event.
     */
    function _setApprovalForAll(
        address owner,
        address operator,
        bool approved
    ) internal virtual {
        require(owner != operator, "ERC721: approve to caller");
        _operatorApprovals[owner][operator] = approved;
        emit ApprovalForAll(owner, operator, approved);
    }

    /**
     * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address.
     * The call is not executed if the target address is not a contract.
     *
     * @param from address representing the previous owner of the given token ID
     * @param to target address that will receive the tokens
     * @param tokenId uint256 ID of the token to be transferred
     * @param _data bytes optional data to send along with the call
     * @return bool whether the call correctly returned the expected magic value
     */
    function _checkOnERC721Received(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) private returns (bool) {
        if (to.isContract()) {
            try 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 {
                    assembly {
                        revert(add(32, reason), mload(reason))
                    }
                }
            }
        } else {
            return true;
        }
    }

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

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

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

        _;

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

File 6 of 17 : Coupon.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;

struct Coupon {
    uint8 v;
    bytes32 r;
    bytes32 s;
    bytes32 m;
}

File 7 of 17 : ParkPassMgmt.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;

import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/access/AccessControl.sol";

contract ParkPassMgmt is Ownable, AccessControl {
    bytes32 public constant COUPON_CONSUMER_ROLE = "coupon-consumer";

    // Mapping of coupon => consumed
    mapping(bytes32 => bool) consumedCoupons;

    // Mapping of address => count of tokens minted
    mapping(address => uint256) tokensMinted;

    // Max number of passes one address can mint
    uint256 maxMint;

    constructor() {
        _setupRole(DEFAULT_ADMIN_ROLE, msg.sender);
    }

    function setMaxMint(uint256 _maxMint) public onlyOwner {
        maxMint = _maxMint;
    }

    function grantCouponConsumerRole(address _address) public {
        require(_address != address(0), "Invalid address");
        grantRole(COUPON_CONSUMER_ROLE, _address);
    }

    function revokeCouponConsumerRole(address _address) public {
        require(_address != address(0), "Invalid address");
        revokeRole(COUPON_CONSUMER_ROLE, _address);
    }

    function consumeCoupon(address _originator, bytes32 _couponHash) public onlyRole(COUPON_CONSUMER_ROLE) {
        require(_originator != address(0), "Invalid originator address");
        require(tokensMinted[_originator] < maxMint, "Address has max minted");
        require(!consumedCoupons[_couponHash], "Coupon already consumed");

        // Increment tokens minted
        tokensMinted[_originator] += 1;

        // Mark coupon as consumed
        consumedCoupons[_couponHash] = true;
    }
}

File 8 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 9 of 17 : IERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.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 be have been allowed to move this token by either {approve} or {setApprovalForAll}.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId
    ) external;

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

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

    /**
     * @dev 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 10 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 11 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 12 of 17 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol)

pragma solidity ^0.8.1;

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

        return account.code.length > 0;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

File 15 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 16 of 17 : AccessControl.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (access/AccessControl.sol)

pragma solidity ^0.8.0;

import "./IAccessControl.sol";
import "../utils/Context.sol";
import "../utils/Strings.sol";
import "../utils/introspection/ERC165.sol";

/**
 * @dev Contract module that allows children to implement role-based access
 * control mechanisms. This is a lightweight version that doesn't allow enumerating role
 * members except through off-chain means by accessing the contract event logs. Some
 * applications may benefit from on-chain enumerability, for those cases see
 * {AccessControlEnumerable}.
 *
 * Roles are referred to by their `bytes32` identifier. These should be exposed
 * in the external API and be unique. The best way to achieve this is by
 * using `public constant` hash digests:
 *
 * ```
 * bytes32 public constant MY_ROLE = keccak256("MY_ROLE");
 * ```
 *
 * Roles can be used to represent a set of permissions. To restrict access to a
 * function call, use {hasRole}:
 *
 * ```
 * function foo() public {
 *     require(hasRole(MY_ROLE, msg.sender));
 *     ...
 * }
 * ```
 *
 * Roles can be granted and revoked dynamically via the {grantRole} and
 * {revokeRole} functions. Each role has an associated admin role, and only
 * accounts that have a role's admin role can call {grantRole} and {revokeRole}.
 *
 * By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means
 * that only accounts with this role will be able to grant or revoke other
 * roles. More complex role relationships can be created by using
 * {_setRoleAdmin}.
 *
 * WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to
 * grant and revoke this role. Extra precautions should be taken to secure
 * accounts that have been granted it.
 */
abstract contract AccessControl is Context, IAccessControl, ERC165 {
    struct RoleData {
        mapping(address => bool) members;
        bytes32 adminRole;
    }

    mapping(bytes32 => RoleData) private _roles;

    bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00;

    /**
     * @dev Modifier that checks that an account has a specific role. Reverts
     * with a standardized message including the required role.
     *
     * The format of the revert reason is given by the following regular expression:
     *
     *  /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/
     *
     * _Available since v4.1._
     */
    modifier onlyRole(bytes32 role) {
        _checkRole(role);
        _;
    }

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

    /**
     * @dev Returns `true` if `account` has been granted `role`.
     */
    function hasRole(bytes32 role, address account) public view virtual override returns (bool) {
        return _roles[role].members[account];
    }

    /**
     * @dev Revert with a standard message if `_msgSender()` is missing `role`.
     * Overriding this function changes the behavior of the {onlyRole} modifier.
     *
     * Format of the revert message is described in {_checkRole}.
     *
     * _Available since v4.6._
     */
    function _checkRole(bytes32 role) internal view virtual {
        _checkRole(role, _msgSender());
    }

    /**
     * @dev Revert with a standard message if `account` is missing `role`.
     *
     * The format of the revert reason is given by the following regular expression:
     *
     *  /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/
     */
    function _checkRole(bytes32 role, address account) internal view virtual {
        if (!hasRole(role, account)) {
            revert(
                string(
                    abi.encodePacked(
                        "AccessControl: account ",
                        Strings.toHexString(uint160(account), 20),
                        " is missing role ",
                        Strings.toHexString(uint256(role), 32)
                    )
                )
            );
        }
    }

    /**
     * @dev Returns the admin role that controls `role`. See {grantRole} and
     * {revokeRole}.
     *
     * To change a role's admin, use {_setRoleAdmin}.
     */
    function getRoleAdmin(bytes32 role) public view virtual override returns (bytes32) {
        return _roles[role].adminRole;
    }

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function grantRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) {
        _grantRole(role, account);
    }

    /**
     * @dev Revokes `role` from `account`.
     *
     * If `account` had been granted `role`, emits a {RoleRevoked} event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function revokeRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) {
        _revokeRole(role, account);
    }

    /**
     * @dev Revokes `role` from the calling account.
     *
     * Roles are often managed via {grantRole} and {revokeRole}: this function's
     * purpose is to provide a mechanism for accounts to lose their privileges
     * if they are compromised (such as when a trusted device is misplaced).
     *
     * If the calling account had been revoked `role`, emits a {RoleRevoked}
     * event.
     *
     * Requirements:
     *
     * - the caller must be `account`.
     */
    function renounceRole(bytes32 role, address account) public virtual override {
        require(account == _msgSender(), "AccessControl: can only renounce roles for self");

        _revokeRole(role, account);
    }

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event. Note that unlike {grantRole}, this function doesn't perform any
     * checks on the calling account.
     *
     * [WARNING]
     * ====
     * This function should only be called from the constructor when setting
     * up the initial roles for the system.
     *
     * Using this function in any other way is effectively circumventing the admin
     * system imposed by {AccessControl}.
     * ====
     *
     * NOTE: This function is deprecated in favor of {_grantRole}.
     */
    function _setupRole(bytes32 role, address account) internal virtual {
        _grantRole(role, account);
    }

    /**
     * @dev Sets `adminRole` as ``role``'s admin role.
     *
     * Emits a {RoleAdminChanged} event.
     */
    function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal virtual {
        bytes32 previousAdminRole = getRoleAdmin(role);
        _roles[role].adminRole = adminRole;
        emit RoleAdminChanged(role, previousAdminRole, adminRole);
    }

    /**
     * @dev Grants `role` to `account`.
     *
     * Internal function without access restriction.
     */
    function _grantRole(bytes32 role, address account) internal virtual {
        if (!hasRole(role, account)) {
            _roles[role].members[account] = true;
            emit RoleGranted(role, account, _msgSender());
        }
    }

    /**
     * @dev Revokes `role` from `account`.
     *
     * Internal function without access restriction.
     */
    function _revokeRole(bytes32 role, address account) internal virtual {
        if (hasRole(role, account)) {
            _roles[role].members[account] = false;
            emit RoleRevoked(role, account, _msgSender());
        }
    }
}

File 17 of 17 : IAccessControl.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (access/IAccessControl.sol)

pragma solidity ^0.8.0;

/**
 * @dev External interface of AccessControl declared to support ERC165 detection.
 */
interface IAccessControl {
    /**
     * @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole`
     *
     * `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite
     * {RoleAdminChanged} not being emitted signaling this.
     *
     * _Available since v3.1._
     */
    event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole);

    /**
     * @dev Emitted when `account` is granted `role`.
     *
     * `sender` is the account that originated the contract call, an admin role
     * bearer except when using {AccessControl-_setupRole}.
     */
    event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender);

    /**
     * @dev Emitted when `account` is revoked `role`.
     *
     * `sender` is the account that originated the contract call:
     *   - if using `revokeRole`, it is the admin role bearer
     *   - if using `renounceRole`, it is the role bearer (i.e. `account`)
     */
    event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender);

    /**
     * @dev Returns `true` if `account` has been granted `role`.
     */
    function hasRole(bytes32 role, address account) external view returns (bool);

    /**
     * @dev Returns the admin role that controls `role`. See {grantRole} and
     * {revokeRole}.
     *
     * To change a role's admin, use {AccessControl-_setRoleAdmin}.
     */
    function getRoleAdmin(bytes32 role) external view returns (bytes32);

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function grantRole(bytes32 role, address account) external;

    /**
     * @dev Revokes `role` from `account`.
     *
     * If `account` had been granted `role`, emits a {RoleRevoked} event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function revokeRole(bytes32 role, address account) external;

    /**
     * @dev Revokes `role` from the calling account.
     *
     * Roles are often managed via {grantRole} and {revokeRole}: this function's
     * purpose is to provide a mechanism for accounts to lose their privileges
     * if they are compromised (such as when a trusted device is misplaced).
     *
     * If the calling account had been granted `role`, emits a {RoleRevoked}
     * event.
     *
     * Requirements:
     *
     * - the caller must be `account`.
     */
    function renounceRole(bytes32 role, address account) external;
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"uint256","name":"_passId","type":"uint256"},{"internalType":"string","name":"_name","type":"string"},{"internalType":"string","name":"_symbol","type":"string"}],"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":"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":[],"name":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_mgmtAddress","type":"address"},{"internalType":"address","name":"_vaultAddress","type":"address"},{"internalType":"address","name":"_listedCouponPublicKey","type":"address"},{"internalType":"address","name":"_unlistedCouponPublicKey","type":"address"},{"internalType":"uint256","name":"_listedPriceInWei","type":"uint256"},{"internalType":"uint256","name":"_unlistedPriceInWei","type":"uint256"},{"internalType":"uint256","name":"_guaranteedMint","type":"uint256"},{"internalType":"uint96","name":"_discountPct","type":"uint96"},{"internalType":"uint256","name":"_maxSupply","type":"uint256"},{"internalType":"uint256","name":"_reserveSupply","type":"uint256"}],"name":"configurePass","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"contractURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"discountPct","outputs":[{"internalType":"uint96","name":"","type":"uint96"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"guaranteedMint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"listedCouponPublicKey","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"listedPriceInWei","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mintActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"numMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_receiver","type":"address"}],"name":"ownerMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"passId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"components":[{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"},{"internalType":"bytes32","name":"m","type":"bytes32"}],"internalType":"struct Coupon","name":"_coupon","type":"tuple"}],"name":"passMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"reserveSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"_salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"","type":"address"},{"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":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_baseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint96","name":"_discountPct","type":"uint96"}],"name":"setDiscountPct","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_guaranteedMint","type":"uint256"}],"name":"setGuaranteedMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_listedCouponPublicKey","type":"address"}],"name":"setListedCouponPublicKey","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_listedPriceInWei","type":"uint256"}],"name":"setListedPriceInWei","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_maxSupply","type":"uint256"}],"name":"setMaxSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_mgmtAddress","type":"address"}],"name":"setMgmtAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_active","type":"bool"}],"name":"setMintActive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_reserveSupply","type":"uint256"}],"name":"setReserveSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint96","name":"_percentage","type":"uint96"}],"name":"setRoyaltyPercentage","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_unlistedCouponPublicKey","type":"address"}],"name":"setUnlistedCouponPublicKey","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_unlistedPriceInWei","type":"uint256"}],"name":"setUnlistedPriceInWei","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_vaultAddress","type":"address"}],"name":"setVaultAddress","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":[{"components":[{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"},{"internalType":"bytes32","name":"m","type":"bytes32"}],"internalType":"struct Coupon","name":"_listedCoupon","type":"tuple"}],"name":"testListedCoupon","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"components":[{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"},{"internalType":"bytes32","name":"m","type":"bytes32"}],"internalType":"struct Coupon","name":"_unlistedCoupon","type":"tuple"}],"name":"testUnlistedCoupon","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unlistedCouponPublicKey","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"unlistedPriceInWei","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60806040523480156200001157600080fd5b50604051620032e7380380620032e783398101604081905262000034916200023f565b8151829082906200004d906000906020850190620000e6565b50805162000063906001906020840190620000e6565b505050620000806200007a6200009060201b60201c565b62000094565b5050600160075560085562000303565b3390565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b828054620000f490620002b0565b90600052602060002090601f01602090048101928262000118576000855562000163565b82601f106200013357805160ff191683800117855562000163565b8280016001018555821562000163579182015b828111156200016357825182559160200191906001019062000146565b506200017192915062000175565b5090565b5b8082111562000171576000815560010162000176565b600082601f8301126200019d578081fd5b81516001600160401b0380821115620001ba57620001ba620002ed565b604051601f8301601f19908116603f01168101908282118183101715620001e557620001e5620002ed565b8160405283815260209250868385880101111562000201578485fd5b8491505b8382101562000224578582018301518183018401529082019062000205565b838211156200023557848385830101525b9695505050505050565b60008060006060848603121562000254578283fd5b835160208501519093506001600160401b038082111562000273578384fd5b62000281878388016200018c565b9350604086015191508082111562000297578283fd5b50620002a6868287016200018c565b9150509250925092565b600181811c90821680620002c557607f821691505b60208210811415620002e757634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052604160045260246000fd5b612fd480620003136000396000f3fe6080604052600436106102c95760003560e01c80636f8b44b011610175578063b4265468116100dc578063d5abeb0111610095578063e8a3d4851161006f578063e8a3d48514610884578063e985e9c514610899578063ee1cc944146108e2578063f2fde38b1461090257600080fd5b8063d5abeb011461082e578063d9255ae714610844578063dcd396301461086457600080fd5b8063b426546814610782578063b88d4fde146107a2578063bf7c82f7146107c2578063c87b56dd146107d8578063d4b3beda146107f8578063d52079b41461081857600080fd5b80638da5cb5b1161012e5780638da5cb5b146106cf57806395d89b41146106ed5780639671688f146107025780639f6d68b014610722578063a22cb46514610742578063aecc2b9e1461076257600080fd5b80636f8b44b01461060257806370a0823114610622578063715018a6146106425780637354c2c614610657578063773a534a1461067757806385535cc5146106af57600080fd5b80633ccfd60b116102345780634f877e75116101ed57806358b4ce55116101c757806358b4ce551461058d5780635c7eb49b146105ad5780636352211e146105cd5780636c0360eb146105ed57600080fd5b80634f877e751461052d578063505cee491461054d57806355f804b31461056d57600080fd5b80633ccfd60b1461048f5780633f51a3a4146104a45780634046f85f146104c457806342842e0e146104d757806342966c68146104f7578063444b7aaf1461051757600080fd5b80631e3bcc8e116102865780631e3bcc8e146103b957806323b872dd146103d957806325fd90f3146103f9578063279c22351461041a5780632a55205a1461043a578063326268641461047957600080fd5b806301ffc9a7146102ce57806303d41eb614610303578063043dc9761461032757806306fdde031461033d578063081812fc1461035f578063095ea7b314610397575b600080fd5b3480156102da57600080fd5b506102ee6102e9366004612a93565b610922565b60405190151581526020015b60405180910390f35b34801561030f57600080fd5b50610319600e5481565b6040519081526020016102fa565b34801561033357600080fd5b50610319600b5481565b34801561034957600080fd5b5061035261094d565b6040516102fa9190612d63565b34801561036b57600080fd5b5061037f61037a366004612b84565b6109df565b6040516001600160a01b0390911681526020016102fa565b3480156103a357600080fd5b506103b76103b2366004612a50565b610a79565b005b3480156103c557600080fd5b506103b76103d436600461288a565b610b8f565b3480156103e557600080fd5b506103b76103f4366004612973565b610c9f565b34801561040557600080fd5b50600f546102ee90600160601b900460ff1681565b34801561042657600080fd5b506102ee610435366004612b11565b610cd0565b34801561044657600080fd5b5061045a610455366004612b9c565b610db6565b604080516001600160a01b0390931683526020830191909152016102fa565b34801561048557600080fd5b5061031960095481565b34801561049b57600080fd5b506103b7610dff565b3480156104b057600080fd5b506103b76104bf36600461288a565b610ee7565b6103b76104d2366004612b11565b610f80565b3480156104e357600080fd5b506103b76104f2366004612973565b611416565b34801561050357600080fd5b506103b7610512366004612b84565b611431565b34801561052357600080fd5b5061031960085481565b34801561053957600080fd5b506103b761054836600461288a565b6114a3565b34801561055957600080fd5b506103b7610568366004612b84565b611551565b34801561057957600080fd5b506103b7610588366004612acb565b611580565b34801561059957600080fd5b5060155461037f906001600160a01b031681565b3480156105b957600080fd5b506103b76105c836600461288a565b6115bd565b3480156105d957600080fd5b5061037f6105e8366004612b84565b611669565b3480156105f957600080fd5b506103526116e0565b34801561060e57600080fd5b506103b761061d366004612b84565b61176e565b34801561062e57600080fd5b5061031961063d36600461288a565b61179d565b34801561064e57600080fd5b506103b7611824565b34801561066357600080fd5b506103b7610672366004612b84565b61185a565b34801561068357600080fd5b50600f54610697906001600160601b031681565b6040516001600160601b0390911681526020016102fa565b3480156106bb57600080fd5b506103b76106ca36600461288a565b611889565b3480156106db57600080fd5b506006546001600160a01b031661037f565b3480156106f957600080fd5b50610352611929565b34801561070e57600080fd5b506102ee61071d366004612b11565b611938565b34801561072e57600080fd5b506103b761073d366004612bbd565b611a15565b34801561074e57600080fd5b506103b761075d366004612a27565b611ac1565b34801561076e57600080fd5b506103b761077d366004612b84565b611acc565b34801561078e57600080fd5b506103b761079d366004612bbd565b611afb565b3480156107ae57600080fd5b506103b76107bd3660046129ae565b611b4c565b3480156107ce57600080fd5b50610319600a5481565b3480156107e457600080fd5b506103526107f3366004612b84565b611b7e565b34801561080457600080fd5b506103b7610813366004612b84565b611c00565b34801561082457600080fd5b50610319600c5481565b34801561083a57600080fd5b50610319600d5481565b34801561085057600080fd5b5060145461037f906001600160a01b031681565b34801561087057600080fd5b506103b761087f3660046128dd565b611c2f565b34801561089057600080fd5b50610352611cbf565b3480156108a557600080fd5b506102ee6108b43660046128ab565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b3480156108ee57600080fd5b506103b76108fd366004612a79565b611d1c565b34801561090e57600080fd5b506103b761091d36600461288a565b611d64565b60006001600160e01b0319821663152a902d60e11b1480610947575061094782611dfc565b92915050565b60606000805461095c90612edc565b80601f016020809104026020016040519081016040528092919081815260200182805461098890612edc565b80156109d55780601f106109aa576101008083540402835291602001916109d5565b820191906000526020600020905b8154815290600101906020018083116109b857829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b0316610a5d5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b6000610a8482611669565b9050806001600160a01b0316836001600160a01b03161415610af25760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610a54565b336001600160a01b0382161480610b0e5750610b0e81336108b4565b610b805760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610a54565b610b8a8383611e4c565b505050565b6006546001600160a01b03163314610bb95760405162461bcd60e51b8152600401610a5490612dc8565b6001600160a01b038116610c0f5760405162461bcd60e51b815260206004820152601860248201527f496e76616c6964207265636569766572206164647265737300000000000000006044820152606401610a54565b600c54600d548181039114801590610c295750600d548111155b610c925760405162461bcd60e51b815260206004820152603460248201527f54686973207061726b207061737320686173206d696e746564206f75742028616044820152736e642072657365727665206465706c657465642960601b6064820152608401610a54565b50610c9c81611eba565b50565b610ca93382611f00565b610cc55760405162461bcd60e51b8152600401610a5490612dfd565b610b8a838383611ff7565b6000806001836060015184600001518560200151866040015160405160008152602001604052604051610d1f949392919093845260ff9290921660208401526040830152606082015260800190565b6020604051602081039080840390855afa158015610d41573d6000803e3d6000fd5b5050604051601f1901516014549092506001600160a01b038084169116149050610dad5760405162461bcd60e51b815260206004820152601960248201527f496e76616c696420636f75706f6e20666f72206c6973746564000000000000006044820152606401610a54565b50600192915050565b6012546000908190819061271090610dd7906001600160601b031686612e7a565b610de19190612e66565b601254600160601b90046001600160a01b0316969095509350505050565b6006546001600160a01b03163314610e295760405162461bcd60e51b8152600401610a5490612dc8565b601254600160601b90046001600160a01b0316610e805760405162461bcd60e51b815260206004820152601560248201527415985d5b1d081859191c995cdcc81b9bdd081cd95d605a1b6044820152606401610a54565b601254604051600091600160601b90046001600160a01b03169047908381818185875af1925050503d8060008114610ed4576040519150601f19603f3d011682016040523d82523d6000602084013e610ed9565b606091505b5050905080610c9c57600080fd5b6006546001600160a01b03163314610f115760405162461bcd60e51b8152600401610a5490612dc8565b6001600160a01b038116610f5e5760405162461bcd60e51b8152602060048201526014602482015273496e76616c6964206d676d74206164647265737360601b6044820152606401610a54565b601380546001600160a01b0319166001600160a01b0392909216919091179055565b600f54600160601b900460ff16610fcb5760405162461bcd60e51b815260206004820152600f60248201526e4d696e74206e6f742061637469766560881b6044820152606401610a54565b6013546001600160a01b03166110235760405162461bcd60e51b815260206004820152601d60248201527f4d676d7420436f6e74726163742061646472657373206e6f74207365740000006044820152606401610a54565b6060808201518251602080850151604080870151815160008082529481018084529690965260ff9094169085015293830193909352608082015260019060a0016020604051602081039080840390855afa158015611085573d6000803e3d6000fd5b5050604051601f1901516014549092506001600160a01b038084169116149050806110bd57506015546001600160a01b038281169116145b6110fa5760405162461bcd60e51b815260206004820152600e60248201526d24b73b30b634b21021b7bab837b760911b6044820152606401610a54565b6014546001600160a01b03828116911614156111c0576014546001600160a01b03166111745760405162461bcd60e51b8152602060048201526024808201527f436f75706f6e207075626c6963206b657920666f72206c6973746564206e6f74604482015263081cd95d60e21b6064820152608401610a54565b6009543410156111bb5760405162461bcd60e51b8152602060048201526012602482015271496e73756666696369656e742066756e647360701b6044820152606401610a54565b611284565b6015546001600160a01b0382811691161415611284576015546001600160a01b031661123d5760405162461bcd60e51b815260206004820152602660248201527f436f75706f6e207075626c6963206b657920666f7220756e6c6973746564206e6044820152651bdd081cd95d60d21b6064820152608401610a54565b600a543410156112845760405162461bcd60e51b8152602060048201526012602482015271496e73756666696369656e742066756e647360701b6044820152606401610a54565b6006546001600160a01b03163314156112df5760405162461bcd60e51b815260206004820152601b60248201527f4f776e65722073686f756c642063616c6c206f776e65724d696e7400000000006044820152606401610a54565b600c54600e54600d540381810391148015906112fd5750600d548111155b6113495760405162461bcd60e51b815260206004820152601d60248201527f54686973207061726b207061737320686173206d696e746564206f75740000006044820152606401610a54565b5060208281015160408085015185518251948501939093529083015260ff16606082015260009060800160408051808303601f1901815291905280516020909101206013549091506001600160a01b0316806383f0fb9b336040516001600160e01b031960e084901b1681526001600160a01b03909116600482015260248101859052604401600060405180830381600087803b1580156113e957600080fd5b505af11580156113fd573d6000803e3d6000fd5b5050505061141061140b3390565b611eba565b50505050565b610b8a83838360405180602001604052806000815250611b4c565b600061143c82611669565b90506001600160a01b03811633146114965760405162461bcd60e51b815260206004820152601960248201527f43616c6c6572206973206e6f7420746f6b656e206f776e6572000000000000006044820152606401610a54565b61149f82612193565b5050565b6006546001600160a01b031633146114cd5760405162461bcd60e51b8152600401610a5490612dc8565b6001600160a01b03811661152f5760405162461bcd60e51b815260206004820152602360248201527f496e76616c6964207369676e6572206164647265737320666f7220756e6c69736044820152621d195960ea1b6064820152608401610a54565b601580546001600160a01b0319166001600160a01b0392909216919091179055565b6006546001600160a01b0316331461157b5760405162461bcd60e51b8152600401610a5490612dc8565b600e55565b6006546001600160a01b031633146115aa5760405162461bcd60e51b8152600401610a5490612dc8565b805161149f906010906020840190612738565b6006546001600160a01b031633146115e75760405162461bcd60e51b8152600401610a5490612dc8565b6001600160a01b0381166116475760405162461bcd60e51b815260206004820152602160248201527f496e76616c6964207369676e6572206164647265737320666f72206c697374656044820152601960fa1b6064820152608401610a54565b601480546001600160a01b0319166001600160a01b0392909216919091179055565b6000818152600260205260408120546001600160a01b0316806109475760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610a54565b601080546116ed90612edc565b80601f016020809104026020016040519081016040528092919081815260200182805461171990612edc565b80156117665780601f1061173b57610100808354040283529160200191611766565b820191906000526020600020905b81548152906001019060200180831161174957829003601f168201915b505050505081565b6006546001600160a01b031633146117985760405162461bcd60e51b8152600401610a5490612dc8565b600d55565b60006001600160a01b0382166118085760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610a54565b506001600160a01b031660009081526003602052604090205490565b6006546001600160a01b0316331461184e5760405162461bcd60e51b8152600401610a5490612dc8565b611858600061222e565b565b6006546001600160a01b031633146118845760405162461bcd60e51b8152600401610a5490612dc8565b600b55565b6006546001600160a01b031633146118b35760405162461bcd60e51b8152600401610a5490612dc8565b6001600160a01b0381166119015760405162461bcd60e51b8152602060048201526015602482015274496e76616c6964207661756c74206164647265737360581b6044820152606401610a54565b601280546001600160a01b03909216600160601b026001600160601b03909216919091179055565b60606001805461095c90612edc565b6000806001836060015184600001518560200151866040015160405160008152602001604052604051611987949392919093845260ff9290921660208401526040830152606082015260800190565b6020604051602081039080840390855afa1580156119a9573d6000803e3d6000fd5b5050604051601f1901516015549092506001600160a01b038084169116149050610dad5760405162461bcd60e51b815260206004820152601b60248201527f496e76616c696420636f75706f6e20666f7220756e6c697374656400000000006044820152606401610a54565b6006546001600160a01b03163314611a3f5760405162461bcd60e51b8152600401610a5490612dc8565b612710816001600160601b03161115611a9a5760405162461bcd60e51b815260206004820152601a60248201527f496e76616c696420726f79616c74792070657263656e746167650000000000006044820152606401610a54565b601280546bffffffffffffffffffffffff19166001600160601b0392909216919091179055565b61149f338383612280565b6006546001600160a01b03163314611af65760405162461bcd60e51b8152600401610a5490612dc8565b600a55565b6006546001600160a01b03163314611b255760405162461bcd60e51b8152600401610a5490612dc8565b600f80546bffffffffffffffffffffffff19166001600160601b0392909216919091179055565b611b563383611f00565b611b725760405162461bcd60e51b8152600401610a5490612dfd565b6114108484848461234f565b6000818152600260205260409020546060906001600160a01b0316611ba257600080fd5b600060108054611bb190612edc565b905011611bcd5760405180602001604052806000815250610947565b6010611bda600854612382565b604051602001611beb929190612c9b565b60405160208183030381529060405292915050565b6006546001600160a01b03163314611c2a5760405162461bcd60e51b8152600401610a5490612dc8565b600955565b6006546001600160a01b03163314611c595760405162461bcd60e51b8152600401610a5490612dc8565b611c628a610ee7565b611c6b89611889565b611c74886115bd565b611c7d876114a3565b611c8686611c00565b611c8f85611acc565b611c988461185a565b611ca183611afb565b611caa8261176e565b611cb381611551565b50505050505050505050565b6060600060108054611cd090612edc565b905011611cea575060408051602081019091526000815290565b6010611cf7600854612382565b604051602001611d08929190612cdf565b604051602081830303815290604052905090565b6006546001600160a01b03163314611d465760405162461bcd60e51b8152600401610a5490612dc8565b600f8054911515600160601b0260ff60601b19909216919091179055565b6006546001600160a01b03163314611d8e5760405162461bcd60e51b8152600401610a5490612dc8565b6001600160a01b038116611df35760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610a54565b610c9c8161222e565b60006001600160e01b031982166380ac58cd60e01b1480611e2d57506001600160e01b03198216635b5e139f60e01b145b8061094757506301ffc9a760e01b6001600160e01b0319831614610947565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190611e8182611669565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b601154611ec8906001612e4e565b6011819055611ed657600080fd5b600060115490506001600c6000828254611ef09190612e4e565b9091555061149f9050828261249c565b6000818152600260205260408120546001600160a01b0316611f795760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610a54565b6000611f8483611669565b9050806001600160a01b0316846001600160a01b03161480611fcb57506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b80611fef5750836001600160a01b0316611fe4846109df565b6001600160a01b0316145b949350505050565b826001600160a01b031661200a82611669565b6001600160a01b03161461206e5760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201526437bbb732b960d91b6064820152608401610a54565b6001600160a01b0382166120d05760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610a54565b6120db600082611e4c565b6001600160a01b0383166000908152600360205260408120805460019290612104908490612e99565b90915550506001600160a01b0382166000908152600360205260408120805460019290612132908490612e4e565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b600061219e82611669565b90506121ab600083611e4c565b6001600160a01b03811660009081526003602052604081208054600192906121d4908490612e99565b909155505060008281526002602052604080822080546001600160a01b0319169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b816001600160a01b0316836001600160a01b031614156122e25760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610a54565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b61235a848484611ff7565b612366848484846124b6565b6114105760405162461bcd60e51b8152600401610a5490612d76565b6060816123a65750506040805180820190915260018152600360fc1b602082015290565b8160005b81156123d057806123ba81612f17565b91506123c99050600a83612e66565b91506123aa565b60008167ffffffffffffffff8111156123f957634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015612423576020820181803683370190505b5090505b8415611fef57612438600183612e99565b9150612445600a86612f32565b612450906030612e4e565b60f81b81838151811061247357634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350612495600a86612e66565b9450612427565b61149f8282604051806020016040528060008152506125c3565b60006001600160a01b0384163b156125b857604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906124fa903390899088908890600401612d26565b602060405180830381600087803b15801561251457600080fd5b505af1925050508015612544575060408051601f3d908101601f1916820190925261254191810190612aaf565b60015b61259e573d808015612572576040519150601f19603f3d011682016040523d82523d6000602084013e612577565b606091505b5080516125965760405162461bcd60e51b8152600401610a5490612d76565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611fef565b506001949350505050565b6125cd83836125f6565b6125da60008484846124b6565b610b8a5760405162461bcd60e51b8152600401610a5490612d76565b6001600160a01b03821661264c5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610a54565b6000818152600260205260409020546001600160a01b0316156126b15760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610a54565b6001600160a01b03821660009081526003602052604081208054600192906126da908490612e4e565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b82805461274490612edc565b90600052602060002090601f01602090048101928261276657600085556127ac565b82601f1061277f57805160ff19168380011785556127ac565b828001600101855582156127ac579182015b828111156127ac578251825591602001919060010190612791565b506127b89291506127bc565b5090565b5b808211156127b857600081556001016127bd565b600067ffffffffffffffff808411156127ec576127ec612f72565b604051601f8501601f19908116603f0116810190828211818310171561281457612814612f72565b8160405280935085815286868601111561282d57600080fd5b858560208301376000602087830101525050509392505050565b80356001600160a01b038116811461285e57600080fd5b919050565b8035801515811461285e57600080fd5b80356001600160601b038116811461285e57600080fd5b60006020828403121561289b578081fd5b6128a482612847565b9392505050565b600080604083850312156128bd578081fd5b6128c683612847565b91506128d460208401612847565b90509250929050565b6000806000806000806000806000806101408b8d0312156128fc578586fd5b6129058b612847565b995061291360208c01612847565b985061292160408c01612847565b975061292f60608c01612847565b965060808b0135955060a08b0135945060c08b0135935061295260e08c01612873565b92506101008b013591506101208b013590509295989b9194979a5092959850565b600080600060608486031215612987578283fd5b61299084612847565b925061299e60208501612847565b9150604084013590509250925092565b600080600080608085870312156129c3578384fd5b6129cc85612847565b93506129da60208601612847565b925060408501359150606085013567ffffffffffffffff8111156129fc578182fd5b8501601f81018713612a0c578182fd5b612a1b878235602084016127d1565b91505092959194509250565b60008060408385031215612a39578182fd5b612a4283612847565b91506128d460208401612863565b60008060408385031215612a62578182fd5b612a6b83612847565b946020939093013593505050565b600060208284031215612a8a578081fd5b6128a482612863565b600060208284031215612aa4578081fd5b81356128a481612f88565b600060208284031215612ac0578081fd5b81516128a481612f88565b600060208284031215612adc578081fd5b813567ffffffffffffffff811115612af2578182fd5b8201601f81018413612b02578182fd5b611fef848235602084016127d1565b600060808284031215612b22578081fd5b6040516080810181811067ffffffffffffffff82111715612b4557612b45612f72565b604052823560ff81168114612b58578283fd5b808252506020830135602082015260408301356040820152606083013560608201528091505092915050565b600060208284031215612b95578081fd5b5035919050565b60008060408385031215612bae578182fd5b50508035926020909101359150565b600060208284031215612bce578081fd5b6128a482612873565b60008151808452612bef816020860160208601612eb0565b601f01601f19169290920160200192915050565b8054600090600181811c9080831680612c1d57607f831692505b6020808410821415612c3d57634e487b7160e01b86526022600452602486fd5b818015612c515760018114612c6257612c8f565b60ff19861689528489019650612c8f565b60008881526020902060005b86811015612c875781548b820152908501908301612c6e565b505084890196505b50505050505092915050565b6000612ca78285612c03565b722f7061726b706173736e66742f746f6b656e2f60681b81528351612cd3816013840160208801612eb0565b01601301949350505050565b6000612ceb8285612c03565b752f7061726b706173736e66742f636f6e74726163742f60501b81528351612d1a816016840160208801612eb0565b01601601949350505050565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090612d5990830184612bd7565b9695505050505050565b6020815260006128a46020830184612bd7565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b60008219821115612e6157612e61612f46565b500190565b600082612e7557612e75612f5c565b500490565b6000816000190483118215151615612e9457612e94612f46565b500290565b600082821015612eab57612eab612f46565b500390565b60005b83811015612ecb578181015183820152602001612eb3565b838111156114105750506000910152565b600181811c90821680612ef057607f821691505b60208210811415612f1157634e487b7160e01b600052602260045260246000fd5b50919050565b6000600019821415612f2b57612f2b612f46565b5060010190565b600082612f4157612f41612f5c565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160e01b031981168114610c9c57600080fdfea264697066735822122082f42a6b72b7871ada4ff6d9cdc6c1ae674ce1c40441f391f50d6b6046e2164164736f6c634300080400330000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000000000000000000000000000000000000000007474f54484945530000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000034750500000000000000000000000000000000000000000000000000000000000

Block Transaction Gas Used Reward
Age Block Fee Address BC Fee Address Voting Power Jailed Incoming
Block Uncle Number Difficulty Gas Used Reward
Loading
Loading
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.