Contract 0x7645eeC8bB51862A5aa855c40971b2877dAe81AF 1

 

Contract Overview

Balance:
0 Ether

EtherValue:
$0.00

Token:
Txn Hash
Method
Block
From
To
Value
0x50be315528e53da651007a15525e24896d4f4292784f9862bfa4766dc28e0226Set Approval For...153412982022-08-14 18:18:366 hrs 51 mins agoENS Name metamaxnft.eth IN  0x7645eec8bb51862a5aa855c40971b2877dae81af0 Ether0.‍0003099 12.‍53222268
0x72e3773d38eada2b7329d4a17acdca3a36c3b565419f3613342ed7afb9d61b0aSet Approval For...153389232022-08-14 9:22:5915 hrs 47 mins ago0x45f21b16088c13a58f930d0cc778470bf2c357b9 IN  0x7645eec8bb51862a5aa855c40971b2877dae81af0 Ether0.‍00027543 5.‍90539045
0x0c87e89eb7588bd75c99b68bbc674c912ad3cb74e0f3c29ad48058190351a92eSet Approval For...153385662022-08-14 8:06:0417 hrs 3 mins agoENS Name johnacw.eth IN  0x7645eec8bb51862a5aa855c40971b2877dae81af0 Ether0.‍00040366 8.‍65466227
0x58e465c3d5eaac7cae6e0b60cc3681dee95a8176f3a07285708e0e4b7b5b7931Set Approval For...153363322022-08-13 23:32:021 day 1 hr agoENS Name yiheyuan.eth IN  0x7645eec8bb51862a5aa855c40971b2877dae81af0 Ether0.‍00018656 4
0x73ee4e1d7ce4c592c92d1f9a50c12778ecd2377945accb61ff58eea20755b41fTransfer From153355442022-08-13 20:31:511 day 4 hrs agoENS Name catindahats.eth IN  0x7645eec8bb51862a5aa855c40971b2877dae81af0 Ether0.‍00042237 7.‍19441316
0xc41dc8a06b5a959bbb001b23d6a795602551548ec5453447cea7b3dbf8d3bbfaSet Approval For...153347712022-08-13 17:38:581 day 7 hrs ago0x4491311f63b89ec32387c47ea97d39880128b48a IN  0x7645eec8bb51862a5aa855c40971b2877dae81af0 Ether0.‍00040525 8.‍68875751
0x59753cb71c2370d32c611494528997dbd642331645ce31033474daf188acf3f7Set Approval For...153343542022-08-13 16:07:231 day 9 hrs ago0xb201ed632810922b12a3a17f7abbd4f77c74ce5d IN  0x7645eec8bb51862a5aa855c40971b2877dae81af0 Ether0.‍00048637 10.‍42802776
0x8814635dc46174ab5c3af5e55abd7c731bfd0038b9b0123306ad4742a381a086Set Approval For...153342922022-08-13 15:53:001 day 9 hrs ago0xe0cb2355241552c0b1ec323b14c82be605333763 IN  0x7645eec8bb51862a5aa855c40971b2877dae81af0 Ether0.‍0004672510
0xd5f256a0a4ca7be8b4ca88b6ff90a1e014d32f622c76b1f0c02076aa861588bcSet Approval For...153313722022-08-13 4:45:561 day 20 hrs ago0x2a00f63af45627ff351549106ea735bd973aa86e IN  0x7645eec8bb51862a5aa855c40971b2877dae81af0 Ether0.‍00043791 9.‍3889944
0x1c3b10bfd3acf3b4ee4d2243783459e0fc7ffce3b3acb4c0976cdd17ceb2e603Set Approval For...153259082022-08-12 8:18:142 days 16 hrs ago0xe0cb2355241552c0b1ec323b14c82be605333763 IN  0x7645eec8bb51862a5aa855c40971b2877dae81af0 Ether0.‍000420529
0x995b2e61008d8a6c8449408706078f92b188097599c446ce60bb0185082faa3eTransfer From153258642022-08-12 8:08:172 days 17 hrs ago0xa0ec73c2cbbe78d9f1467335fab24fae874e0e36 IN  0x7645eec8bb51862a5aa855c40971b2877dae81af0 Ether0.‍00067784 11.‍54588817
0x13e0c4f3d74e6fe84d47a197f7042b4b1f05f52d12637a89d4d7837bc7e52bd4Set Approval For...153246232022-08-12 3:13:272 days 21 hrs ago0xe038017f8136dae061780c1f0af844507ff82386 IN  0x7645eec8bb51862a5aa855c40971b2877dae81af0 Ether0.‍00023572 8.‍78754384
0x59b2965cc8667bbdf6c765f80ff3c00a5196e1543fb552124957e7350f3bcef0Set Approval For...153246182022-08-12 3:12:422 days 21 hrs ago0xe038017f8136dae061780c1f0af844507ff82386 IN  0x7645eec8bb51862a5aa855c40971b2877dae81af0 Ether0.‍00029857 11.‍13064856
0x188c2aafda16a2691e11fb990975d55733edb8d340c2c2de154f72dbc5772c89Set Approval For...153246132022-08-12 3:11:512 days 21 hrs ago0xe038017f8136dae061780c1f0af844507ff82386 IN  0x7645eec8bb51862a5aa855c40971b2877dae81af0 Ether0.‍00048421 10.‍36307076
0x852bd9e45850f03cb09e6ae8c3fdbb5c1191a1a509ae6a4c3f914febedea43bbSafe Transfer Fr...153245992022-08-12 3:08:432 days 22 hrs agoENS Name ntando.eth IN  0x7645eec8bb51862a5aa855c40971b2877dae81af0 Ether0.‍0005787713
0x666d198ffa8083b159e965a2cf6cb0aaf1118fd364893abef6a241833b7c4565Safe Transfer Fr...153245952022-08-12 3:07:532 days 22 hrs agoENS Name ntando.eth IN  0x7645eec8bb51862a5aa855c40971b2877dae81af0 Ether0.‍0008634713
0x87b6ff39f90b1d0e550d9ffa7c3c65424b8ce29f1bc93d48f0672e69b1ce6a1dSet Approval For...153237422022-08-12 0:00:273 days 1 hr agoENS Name vault1988.eth IN  0x7645eec8bb51862a5aa855c40971b2877dae81af0 Ether0.‍00056341 12.‍07976807
0x6600248a7e3b0e5cba4477e8c923b298f691209bb12329bda2fbf67046b27b31Set Approval For...153232962022-08-11 22:23:263 days 2 hrs agoENS Name tballer.eth IN  0x7645eec8bb51862a5aa855c40971b2877dae81af0 Ether0.‍0006806 14.‍59247006
0xb06c79ae73775fc4bbf170d7cd22534d31d4093e9eca1cf32522b4de88215c44Set Approval For...153216442022-08-11 16:02:183 days 9 hrs agoENS Name lafleur.eth IN  0x7645eec8bb51862a5aa855c40971b2877dae81af0 Ether0.‍00197904 42.‍4314374
0x7e6048b55bfce25ec768edb40e788929f1767250583698aeaa57e959525e1c32Set Approval For...153110872022-08-10 0:07:285 days 1 hr agoENS Name 0x681.eth IN  0x7645eec8bb51862a5aa855c40971b2877dae81af0 Ether0.‍00042882 9.‍17765563
0xc5d7956abbb62a206b73cfc72b8169fd84b093cc0f2d75743578a89cb462289aSet Approval For...153034192022-08-08 19:25:386 days 5 hrs ago0x3640a9ba0a6ef5738f0b41b87eae75b8928f8917 IN  0x7645eec8bb51862a5aa855c40971b2877dae81af0 Ether0.‍00137511 29.‍4829876
0x5eecf842fbd2c15c9e9b074c325bdc03ac939c08519288d2a49583a938d3ce3dSet Approval For...152958392022-08-07 14:58:477 days 10 hrs agoENS Name metamaxnft.eth IN  0x7645eec8bb51862a5aa855c40971b2877dae81af0 Ether0.‍0004753 10.‍19062028
0x885c68cefc7d3fb4029b0b7b14b13af7a0ac2f8540fc307035274637c267ad9dSet Approval For...152904832022-08-06 19:02:418 days 6 hrs agoENS Name jimbol.eth IN  0x7645eec8bb51862a5aa855c40971b2877dae81af0 Ether0.‍00043295 9.‍26606647
0x39d4a71d21b43ae04a9f0736491c0988b6a07f543524e80fdb8c3bb22d99f4afSet Approval For...152896552022-08-06 16:00:278 days 9 hrs ago0x4dd5a4d1fcb6f8938aa8ad070aefe1b19e8f9c0c IN  0x7645eec8bb51862a5aa855c40971b2877dae81af0 Ether0.‍00068474 14.‍6812113
0xeb591b1f87c51acc6bb2fd29cbb23d3f602d7a815c48224e489c84cd4f02e8bdSet Approval For...152894092022-08-06 14:59:058 days 10 hrs agoENS Name jettflax.eth IN  0x7645eec8bb51862a5aa855c40971b2877dae81af0 Ether0.‍00039979 8.‍57175519
[ Download CSV Export 
View more zero value Internal Transactions in Advanced View mode
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
LondonGift

Compiler Version
v0.8.4+commit.c7e474f2

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion
File 1 of 15 : LondonGift.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "./ERC20Mintable.sol";
import "./Erc721.sol";
import "./Ownable.sol";
import "./utils/Strings.sol";

contract LondonGift is Ownable, ERC721 {
    using Strings for uint256;

    uint256 constant MAX_MINT_PER_TX = 20;

    ERC20Mintable public immutable payableErc20;
    uint256 public immutable mintPrice;
    // uint256 public immutable maxMintPerAddress;
    uint256 public immutable maxSupply;
    bytes32 public immutable provenance;

    uint256 public startingIndex = 0;
    uint256 public mintStartAtBlockNum;
    uint256 public revealStartAtBlockNum;

    address public treasury;
    string public baseMetadataURI;
    string public contractURI;

    uint256 public tokenIndex;

    // mapping(address => uint256) public mintedAmounts;

    constructor (
      string memory name_,
      string memory symbol_,
      address _payableErc20,
      uint256 _mintPrice,
      // uint256 _maxMintPerAddress,
      uint256 _maxSupply,
      bytes32 _provenance
    ) ERC721(name_, symbol_) {
      payableErc20 = ERC20Mintable(_payableErc20);
      mintPrice = _mintPrice;
      // maxMintPerAddress = _maxMintPerAddress;
      maxSupply = _maxSupply;
      provenance = _provenance;
    }

    function setTreasury(address _treasury) public onlyOwner {
      treasury = _treasury;
    }

    function setBaseMetadataURI(string memory _baseMetadataURI) public onlyOwner {
      baseMetadataURI = _baseMetadataURI;
    }

    function setContractURI(string calldata newContractURI) external onlyOwner {
        contractURI = newContractURI;
    }

    function setRevealStartAtBlockNum(uint256 _revealStartAtBlockNum) public onlyOwner {
      revealStartAtBlockNum = _revealStartAtBlockNum;
    }

   function setMintStartAtBlockNum(uint256 _mintStartAtBlockNum) public onlyOwner {
      mintStartAtBlockNum = _mintStartAtBlockNum;
    }

    modifier onlyUnderMaxSupply(uint mintAmount) {
      require(tokenIndex + mintAmount <= maxSupply, 'max supply minted');
      _;
    }

    // modifier onlyUnderMaxMintPerAddress() {
    //   require(mintedAmounts[_msgSender()] < maxMintPerAddress, 'Max supply per address minted');
    //   _;
    // }

    modifier onlyMintUnderMaxPerTx(uint256 mintAmount) {
      require(mintAmount < MAX_MINT_PER_TX, 'too many mints in one go');
      _;
    }

    modifier onlyAfterMintStartAtBlockNum() {
      require(mintStartAtBlockNum != 0 && block.number > mintStartAtBlockNum, 'too early');
      _;
    }

    function _baseURI() override internal view virtual returns (string memory) {
      if (startingIndex == 0) {
        return "";
      }
      return baseMetadataURI;
    }

    function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
        require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token");

        uint256 id = tokenId + startingIndex % maxSupply;

        string memory baseURI = _baseURI();
        
        return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, id.toString())) : "";
    }
    
    function mint(uint mintAmount) onlyAfterMintStartAtBlockNum() onlyUnderMaxSupply(mintAmount) onlyMintUnderMaxPerTx(mintAmount) public {
      // ensure approval is met
      require(payableErc20.allowance(_msgSender(), address(this)) >= (mintPrice * mintAmount), "Allowance not set to mint");
      require(payableErc20.balanceOf(_msgSender()) >= (mintPrice * mintAmount), "Not enough token to mint");
      // transfer payableERC20
      payableErc20.transferFrom(_msgSender(), treasury, (mintPrice * mintAmount));
      for (uint i = 0; i < mintAmount; ++i) {
        // mint token
        _safeMint(_msgSender(), tokenIndex);
        // increment
        tokenIndex++;
      }

      if (startingIndex == 0 && (tokenIndex == maxSupply || (block.number > revealStartAtBlockNum && revealStartAtBlockNum != 0))) {
        startingIndex = uint(blockhash(block.number - 1)) % maxSupply;
        if (startingIndex == 0) {
          startingIndex += 1;
        }
      }
    }
}

File 2 of 15 : ERC20Mintable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "./ERC20.sol";
import "./Ownable.sol";

contract ERC20Mintable is Ownable, ERC20 {
    address public minter;

    constructor (address minter_, string memory name_, string memory symbol_) ERC20(name_, symbol_) {
      minter = minter_;
    }

    function setMinter(address _minter) public onlyOwner {
      minter = _minter;
    }

    modifier onlyMinter() {
        require(minter == _msgSender(), "Only minter can call.");
        _;
    }


    function mint(address account, uint256 amount) onlyMinter public {
        _mint(account, amount);
    }
}

File 3 of 15 : Erc721.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "./interface/IERC721.sol";
import "./interface/IERC721Receiver.sol";
import "./interface/IERC721Metadata.sol";
import "./utils/Address.sol";
import "./utils/Context.sol";
import "./utils/Strings.sol";
import "./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 overriden 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 {
        require(operator != _msgSender(), "ERC721: approve to caller");

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

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

    /**
     * @dev See {IERC721-transferFrom}.
     */
    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public virtual override {
        //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 || getApproved(tokenId) == spender || isApprovedForAll(owner, 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);
    }

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

    /**
     * @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 of token that is not own");
        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);
    }

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

File 4 of 15 : Ownable.sol
// SPDX-License-Identifier: MIT
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 () {
        address msgSender = _msgSender();
        _owner = msgSender;
        emit OwnershipTransferred(address(0), msgSender);
    }

    /**
     * @dev Returns the address of the current owner.
     */
    function owner() public view 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 onlyOwner {
        emit OwnershipTransferred(_owner, address(0));
        _owner = 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 onlyOwner {
        require(newOwner != address(0), "Ownable: new owner is the zero address");
        emit OwnershipTransferred(_owner, newOwner);
        _owner = newOwner;
    }
}

File 5 of 15 : Strings.sol
// SPDX-License-Identifier: MIT

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 6 of 15 : ERC20.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

    uint256 private _totalSupply;

    string private _name;
    string private _symbol;

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

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

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

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

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

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

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

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

    /**
     * @dev See {IERC20-approve}.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function approve(address spender, uint256 amount) public virtual override returns (bool) {
        _approve(_msgSender(), spender, amount);
        return true;
    }

    /**
     * @dev See {IERC20-transferFrom}.
     *
     * Emits an {Approval} event indicating the updated allowance. This is not
     * required by the EIP. See the note at the beginning of {ERC20}.
     *
     * Requirements:
     *
     * - `sender` and `recipient` cannot be the zero address.
     * - `sender` must have a balance of at least `amount`.
     * - the caller must have allowance for ``sender``'s tokens of at least
     * `amount`.
     */
    function transferFrom(address sender, address recipient, uint256 amount) public virtual override returns (bool) {
        _transfer(sender, recipient, amount);

        uint256 currentAllowance = _allowances[sender][_msgSender()];
        require(currentAllowance >= amount, "ERC20: transfer amount exceeds allowance");
        unchecked {
            _approve(sender, _msgSender(), currentAllowance - amount);
        }

        return true;
    }

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

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

        return true;
    }

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

        _beforeTokenTransfer(sender, recipient, amount);

        uint256 senderBalance = _balances[sender];
        require(senderBalance >= amount, "ERC20: transfer amount exceeds balance");
        unchecked {
            _balances[sender] = senderBalance - amount;
        }
        _balances[recipient] += amount;

        emit Transfer(sender, recipient, amount);
    }

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

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

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

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

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

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

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

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

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

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

File 7 of 15 : IERC20.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

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

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

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

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

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

    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

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

File 8 of 15 : IERC20Metadata.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "./IERC20.sol";

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

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

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

File 9 of 15 : Context.sol
// SPDX-License-Identifier: MIT

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) {
        this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691
        return msg.data;
    }
}

File 10 of 15 : IERC721.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "./IERC165.sol";

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

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

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

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

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

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

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

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

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

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

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

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

File 11 of 15 : IERC721Receiver.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

File 12 of 15 : IERC721Metadata.sol
// SPDX-License-Identifier: MIT

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 13 of 15 : Address.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @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
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize, which returns 0 for contracts in
        // construction, since the code is only stored at the end of the
        // constructor execution.

        uint256 size;
        assembly {
            size := extcodesize(account)
        }
        return size > 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 14 of 15 : ERC165.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "./interface/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 15 of 15 : IERC165.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"name_","type":"string"},{"internalType":"string","name":"symbol_","type":"string"},{"internalType":"address","name":"_payableErc20","type":"address"},{"internalType":"uint256","name":"_mintPrice","type":"uint256"},{"internalType":"uint256","name":"_maxSupply","type":"uint256"},{"internalType":"bytes32","name":"_provenance","type":"bytes32"}],"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":"baseMetadataURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"contractURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"mintAmount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"mintPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mintStartAtBlockNum","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"payableErc20","outputs":[{"internalType":"contract ERC20Mintable","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"provenance","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"revealStartAtBlockNum","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"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":"_baseMetadataURI","type":"string"}],"name":"setBaseMetadataURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"newContractURI","type":"string"}],"name":"setContractURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_mintStartAtBlockNum","type":"uint256"}],"name":"setMintStartAtBlockNum","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_revealStartAtBlockNum","type":"uint256"}],"name":"setRevealStartAtBlockNum","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_treasury","type":"address"}],"name":"setTreasury","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"startingIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tokenIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"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":"treasury","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"}]

61010060405260006007553480156200001757600080fd5b506040516200468e3803806200468e83398181016040528101906200003d9190620002ed565b85856000620000516200017e60201b60201c565b9050806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508073ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35081600190805190602001906200010792919062000186565b5080600290805190602001906200012092919062000186565b5050508373ffffffffffffffffffffffffffffffffffffffff1660808173ffffffffffffffffffffffffffffffffffffffff1660601b815250508260a081815250508160c081815250508060e08181525050505050505050620005bb565b600033905090565b828054620001949062000492565b90600052602060002090601f016020900481019282620001b8576000855562000204565b82601f10620001d357805160ff191683800117855562000204565b8280016001018555821562000204579182015b8281111562000203578251825591602001919060010190620001e6565b5b50905062000213919062000217565b5090565b5b808211156200023257600081600090555060010162000218565b5090565b60006200024d6200024784620003de565b620003b5565b9050828152602081018484840111156200026657600080fd5b620002738482856200045c565b509392505050565b6000815190506200028c816200056d565b92915050565b600081519050620002a38162000587565b92915050565b600082601f830112620002bb57600080fd5b8151620002cd84826020860162000236565b91505092915050565b600081519050620002e781620005a1565b92915050565b60008060008060008060c087890312156200030757600080fd5b600087015167ffffffffffffffff8111156200032257600080fd5b6200033089828a01620002a9565b965050602087015167ffffffffffffffff8111156200034e57600080fd5b6200035c89828a01620002a9565b95505060406200036f89828a016200027b565b94505060606200038289828a01620002d6565b93505060806200039589828a01620002d6565b92505060a0620003a889828a0162000292565b9150509295509295509295565b6000620003c1620003d4565b9050620003cf8282620004c8565b919050565b6000604051905090565b600067ffffffffffffffff821115620003fc57620003fb6200052d565b5b62000407826200055c565b9050602081019050919050565b6000620004218262000432565b9050919050565b6000819050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b60005b838110156200047c5780820151818401526020810190506200045f565b838111156200048c576000848401525b50505050565b60006002820490506001821680620004ab57607f821691505b60208210811415620004c257620004c1620004fe565b5b50919050565b620004d3826200055c565b810181811067ffffffffffffffff82111715620004f557620004f46200052d565b5b80604052505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000601f19601f8301169050919050565b620005788162000414565b81146200058457600080fd5b50565b620005928162000428565b81146200059e57600080fd5b50565b620005ac8162000452565b8114620005b857600080fd5b50565b60805160601c60a05160c05160e0516140506200063e600039600061093101526000818161109c015281816114e50152818161152b015281816117c8015261186d015260008181610c04015281816111510152818161127001526113f4015260008181610b080152818161117c0152818161129b015261138c01526140506000f3fe608060405234801561001057600080fd5b50600436106101fb5760003560e01c80637e518ec81161011a578063cb774d47116100ad578063e985e9c51161007c578063e985e9c51461057c578063ef6f3db2146105ac578063f0f44260146105c8578063f2fde38b146105e4578063f6b9027c14610600576101fb565b8063cb774d4714610504578063d55f927314610522578063d5abeb0114610540578063e8a3d4851461055e576101fb565b8063a0712d68116100e9578063a0712d6814610480578063a22cb4651461049c578063b88d4fde146104b8578063c87b56dd146104d4576101fb565b80637e518ec81461040c5780638da5cb5b14610428578063938e3d7b1461044657806395d89b4114610462576101fb565b8063511c7932116101925780636352211e116101615780636352211e146103845780636817c76c146103b457806370a08231146103d2578063715018a614610402576101fb565b8063511c79321461030c5780635b2bd79e1461032a5780635cc02ee91461034857806361d027b314610366576101fb565b80630f7309e8116101ce5780630f7309e81461029a5780631aaa4c02146102b857806323b872dd146102d457806342842e0e146102f0576101fb565b806301ffc9a71461020057806306fdde0314610230578063081812fc1461024e578063095ea7b31461027e575b600080fd5b61021a60048036038101906102159190612d1c565b61061e565b60405161022791906132fe565b60405180910390f35b610238610700565b604051610245919061334f565b60405180910390f35b61026860048036038101906102639190612df4565b610792565b6040516102759190613237565b60405180910390f35b61029860048036038101906102939190612cb7565b610817565b005b6102a261092f565b6040516102af9190613319565b60405180910390f35b6102d260048036038101906102cd9190612df4565b610953565b005b6102ee60048036038101906102e99190612bb1565b6109f2565b005b61030a60048036038101906103059190612bb1565b610a52565b005b610314610a72565b6040516103219190613611565b60405180910390f35b610332610a78565b60405161033f919061334f565b60405180910390f35b610350610b06565b60405161035d9190613334565b60405180910390f35b61036e610b2a565b60405161037b9190613237565b60405180910390f35b61039e60048036038101906103999190612df4565b610b50565b6040516103ab9190613237565b60405180910390f35b6103bc610c02565b6040516103c99190613611565b60405180910390f35b6103ec60048036038101906103e79190612b4c565b610c26565b6040516103f99190613611565b60405180910390f35b61040a610cde565b005b61042660048036038101906104219190612db3565b610e31565b005b610430610ee0565b60405161043d9190613237565b60405180910390f35b610460600480360381019061045b9190612d6e565b610f09565b005b61046a610fb4565b604051610477919061334f565b60405180910390f35b61049a60048036038101906104959190612df4565b611046565b005b6104b660048036038101906104b19190612c7b565b611597565b005b6104d260048036038101906104cd9190612c00565b611718565b005b6104ee60048036038101906104e99190612df4565b61177a565b6040516104fb919061334f565b60405180910390f35b61050c61185f565b6040516105199190613611565b60405180910390f35b61052a611865565b6040516105379190613611565b60405180910390f35b61054861186b565b6040516105559190613611565b60405180910390f35b61056661188f565b604051610573919061334f565b60405180910390f35b61059660048036038101906105919190612b75565b61191d565b6040516105a391906132fe565b60405180910390f35b6105c660048036038101906105c19190612df4565b6119b1565b005b6105e260048036038101906105dd9190612b4c565b611a50565b005b6105fe60048036038101906105f99190612b4c565b611b29565b005b610608611ceb565b6040516106159190613611565b60405180910390f35b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806106e957507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806106f957506106f882611cf1565b5b9050919050565b60606001805461070f906138ef565b80601f016020809104026020016040519081016040528092919081815260200182805461073b906138ef565b80156107885780601f1061075d57610100808354040283529160200191610788565b820191906000526020600020905b81548152906001019060200180831161076b57829003601f168201915b5050505050905090565b600061079d82611d5b565b6107dc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107d390613531565b60405180910390fd5b6005600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b600061082282610b50565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610893576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161088a906135b1565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff166108b2611dc7565b73ffffffffffffffffffffffffffffffffffffffff1614806108e157506108e0816108db611dc7565b61191d565b5b610920576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161091790613491565b60405180910390fd5b61092a8383611dcf565b505050565b7f000000000000000000000000000000000000000000000000000000000000000081565b61095b611dc7565b73ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16146109e8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109df90613551565b60405180910390fd5b8060098190555050565b610a036109fd611dc7565b82611e88565b610a42576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a39906135d1565b60405180910390fd5b610a4d838383611f66565b505050565b610a6d83838360405180602001604052806000815250611718565b505050565b60095481565b600b8054610a85906138ef565b80601f0160208091040260200160405190810160405280929190818152602001828054610ab1906138ef565b8015610afe5780601f10610ad357610100808354040283529160200191610afe565b820191906000526020600020905b815481529060010190602001808311610ae157829003601f168201915b505050505081565b7f000000000000000000000000000000000000000000000000000000000000000081565b600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000806003600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415610bf9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bf0906134d1565b60405180910390fd5b80915050919050565b7f000000000000000000000000000000000000000000000000000000000000000081565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415610c97576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c8e906134b1565b60405180910390fd5b600460008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b610ce6611dc7565b73ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614610d73576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d6a90613551565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a360008060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550565b610e39611dc7565b73ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614610ec6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ebd90613551565b60405180910390fd5b80600b9080519060200190610edc929190612876565b5050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b610f11611dc7565b73ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614610f9e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f9590613551565b60405180910390fd5b8181600c9190610faf9291906128fc565b505050565b606060028054610fc3906138ef565b80601f0160208091040260200160405190810160405280929190818152602001828054610fef906138ef565b801561103c5780601f106110115761010080835404028352916020019161103c565b820191906000526020600020905b81548152906001019060200180831161101f57829003601f168201915b5050505050905090565b60006008541415801561105a575060085443115b611099576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611090906135f1565b60405180910390fd5b807f000000000000000000000000000000000000000000000000000000000000000081600d546110c991906136f6565b111561110a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161110190613511565b60405180910390fd5b816014811061114e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161114590613471565b60405180910390fd5b827f000000000000000000000000000000000000000000000000000000000000000061117a919061377d565b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663dd62ed3e6111be611dc7565b306040518363ffffffff1660e01b81526004016111dc929190613252565b60206040518083038186803b1580156111f457600080fd5b505afa158015611208573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061122c9190612e1d565b101561126d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611264906133f1565b60405180910390fd5b827f0000000000000000000000000000000000000000000000000000000000000000611299919061377d565b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166370a082316112dd611dc7565b6040518263ffffffff1660e01b81526004016112f99190613237565b60206040518083038186803b15801561131157600080fd5b505afa158015611325573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113499190612e1d565b101561138a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161138190613371565b60405180910390fd5b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166323b872dd6113ce611dc7565b600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16867f000000000000000000000000000000000000000000000000000000000000000061141d919061377d565b6040518463ffffffff1660e01b815260040161143b9392919061327b565b602060405180830381600087803b15801561145557600080fd5b505af1158015611469573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061148d9190612cf3565b5060005b838110156114d5576114ac6114a4611dc7565b600d546121c2565b600d60008154809291906114bf90613952565b9190505550806114ce90613952565b9050611491565b50600060075414801561152457507f0000000000000000000000000000000000000000000000000000000000000000600d5414806115235750600954431180156115225750600060095414155b5b5b15611592577f000000000000000000000000000000000000000000000000000000000000000060014361155791906137d7565b4060001c611565919061399b565b600781905550600060075414156115915760016007600082825461158991906136f6565b925050819055505b5b505050565b61159f611dc7565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561160d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161160490613431565b60405180910390fd5b806006600061161a611dc7565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff166116c7611dc7565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405161170c91906132fe565b60405180910390a35050565b611729611723611dc7565b83611e88565b611768576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161175f906135d1565b60405180910390fd5b611774848484846121e0565b50505050565b606061178582611d5b565b6117c4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117bb90613591565b60405180910390fd5b60007f00000000000000000000000000000000000000000000000000000000000000006007546117f4919061399b565b836117ff91906136f6565b9050600061180b61223c565b9050600081511161182b5760405180602001604052806000815250611856565b80611835836122f1565b604051602001611846929190613213565b6040516020818303038152906040525b92505050919050565b60075481565b600d5481565b7f000000000000000000000000000000000000000000000000000000000000000081565b600c805461189c906138ef565b80601f01602080910402602001604051908101604052809291908181526020018280546118c8906138ef565b80156119155780601f106118ea57610100808354040283529160200191611915565b820191906000526020600020905b8154815290600101906020018083116118f857829003601f168201915b505050505081565b6000600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6119b9611dc7565b73ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614611a46576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a3d90613551565b60405180910390fd5b8060088190555050565b611a58611dc7565b73ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614611ae5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611adc90613551565b60405180910390fd5b80600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b611b31611dc7565b73ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614611bbe576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611bb590613551565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611c2e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c25906133b1565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a3806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b60085481565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b60008073ffffffffffffffffffffffffffffffffffffffff166003600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b600033905090565b816005600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16611e4283610b50565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000611e9382611d5b565b611ed2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ec990613451565b60405180910390fd5b6000611edd83610b50565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161480611f4c57508373ffffffffffffffffffffffffffffffffffffffff16611f3484610792565b73ffffffffffffffffffffffffffffffffffffffff16145b80611f5d5750611f5c818561191d565b5b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff16611f8682610b50565b73ffffffffffffffffffffffffffffffffffffffff1614611fdc576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611fd390613571565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561204c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161204390613411565b60405180910390fd5b61205783838361249e565b612062600082611dcf565b6001600460008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546120b291906137d7565b925050819055506001600460008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461210991906136f6565b92505081905550816003600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b6121dc8282604051806020016040528060008152506124a3565b5050565b6121eb848484611f66565b6121f7848484846124fe565b612236576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161222d90613391565b60405180910390fd5b50505050565b606060006007541415612260576040518060200160405280600081525090506122ee565b600b805461226d906138ef565b80601f0160208091040260200160405190810160405280929190818152602001828054612299906138ef565b80156122e65780601f106122bb576101008083540402835291602001916122e6565b820191906000526020600020905b8154815290600101906020018083116122c957829003601f168201915b505050505090505b90565b60606000821415612339576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050612499565b600082905060005b6000821461236b57808061235490613952565b915050600a82612364919061374c565b9150612341565b60008167ffffffffffffffff8111156123ad577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156123df5781602001600182028036833780820191505090505b5090505b60008514612492576001826123f891906137d7565b9150600a85612407919061399b565b603061241391906136f6565b60f81b81838151811061244f577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a8561248b919061374c565b94506123e3565b8093505050505b919050565b505050565b6124ad8383612695565b6124ba60008484846124fe565b6124f9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124f090613391565b60405180910390fd5b505050565b600061251f8473ffffffffffffffffffffffffffffffffffffffff16612863565b15612688578373ffffffffffffffffffffffffffffffffffffffff1663150b7a02612548611dc7565b8786866040518563ffffffff1660e01b815260040161256a94939291906132b2565b602060405180830381600087803b15801561258457600080fd5b505af19250505080156125b557506040513d601f19601f820116820180604052508101906125b29190612d45565b60015b612638573d80600081146125e5576040519150601f19603f3d011682016040523d82523d6000602084013e6125ea565b606091505b50600081511415612630576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161262790613391565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161491505061268d565b600190505b949350505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612705576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016126fc906134f1565b60405180910390fd5b61270e81611d5b565b1561274e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612745906133d1565b60405180910390fd5b61275a6000838361249e565b6001600460008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546127aa91906136f6565b92505081905550816003600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050565b600080823b905060008111915050919050565b828054612882906138ef565b90600052602060002090601f0160209004810192826128a457600085556128eb565b82601f106128bd57805160ff19168380011785556128eb565b828001600101855582156128eb579182015b828111156128ea5782518255916020019190600101906128cf565b5b5090506128f89190612982565b5090565b828054612908906138ef565b90600052602060002090601f01602090048101928261292a5760008555612971565b82601f1061294357803560ff1916838001178555612971565b82800160010185558215612971579182015b82811115612970578235825591602001919060010190612955565b5b50905061297e9190612982565b5090565b5b8082111561299b576000816000905550600101612983565b5090565b60006129b26129ad84613651565b61362c565b9050828152602081018484840111156129ca57600080fd5b6129d58482856138ad565b509392505050565b60006129f06129eb84613682565b61362c565b905082815260208101848484011115612a0857600080fd5b612a138482856138ad565b509392505050565b600081359050612a2a81613fbe565b92915050565b600081359050612a3f81613fd5565b92915050565b600081519050612a5481613fd5565b92915050565b600081359050612a6981613fec565b92915050565b600081519050612a7e81613fec565b92915050565b600082601f830112612a9557600080fd5b8135612aa584826020860161299f565b91505092915050565b60008083601f840112612ac057600080fd5b8235905067ffffffffffffffff811115612ad957600080fd5b602083019150836001820283011115612af157600080fd5b9250929050565b600082601f830112612b0957600080fd5b8135612b198482602086016129dd565b91505092915050565b600081359050612b3181614003565b92915050565b600081519050612b4681614003565b92915050565b600060208284031215612b5e57600080fd5b6000612b6c84828501612a1b565b91505092915050565b60008060408385031215612b8857600080fd5b6000612b9685828601612a1b565b9250506020612ba785828601612a1b565b9150509250929050565b600080600060608486031215612bc657600080fd5b6000612bd486828701612a1b565b9350506020612be586828701612a1b565b9250506040612bf686828701612b22565b9150509250925092565b60008060008060808587031215612c1657600080fd5b6000612c2487828801612a1b565b9450506020612c3587828801612a1b565b9350506040612c4687828801612b22565b925050606085013567ffffffffffffffff811115612c6357600080fd5b612c6f87828801612a84565b91505092959194509250565b60008060408385031215612c8e57600080fd5b6000612c9c85828601612a1b565b9250506020612cad85828601612a30565b9150509250929050565b60008060408385031215612cca57600080fd5b6000612cd885828601612a1b565b9250506020612ce985828601612b22565b9150509250929050565b600060208284031215612d0557600080fd5b6000612d1384828501612a45565b91505092915050565b600060208284031215612d2e57600080fd5b6000612d3c84828501612a5a565b91505092915050565b600060208284031215612d5757600080fd5b6000612d6584828501612a6f565b91505092915050565b60008060208385031215612d8157600080fd5b600083013567ffffffffffffffff811115612d9b57600080fd5b612da785828601612aae565b92509250509250929050565b600060208284031215612dc557600080fd5b600082013567ffffffffffffffff811115612ddf57600080fd5b612deb84828501612af8565b91505092915050565b600060208284031215612e0657600080fd5b6000612e1484828501612b22565b91505092915050565b600060208284031215612e2f57600080fd5b6000612e3d84828501612b37565b91505092915050565b612e4f8161380b565b82525050565b612e5e8161381d565b82525050565b612e6d81613829565b82525050565b6000612e7e826136b3565b612e8881856136c9565b9350612e988185602086016138bc565b612ea181613a88565b840191505092915050565b612eb581613889565b82525050565b6000612ec6826136be565b612ed081856136da565b9350612ee08185602086016138bc565b612ee981613a88565b840191505092915050565b6000612eff826136be565b612f0981856136eb565b9350612f198185602086016138bc565b80840191505092915050565b6000612f326018836136da565b9150612f3d82613a99565b602082019050919050565b6000612f556032836136da565b9150612f6082613ac2565b604082019050919050565b6000612f786026836136da565b9150612f8382613b11565b604082019050919050565b6000612f9b601c836136da565b9150612fa682613b60565b602082019050919050565b6000612fbe6019836136da565b9150612fc982613b89565b602082019050919050565b6000612fe16024836136da565b9150612fec82613bb2565b604082019050919050565b60006130046019836136da565b915061300f82613c01565b602082019050919050565b6000613027602c836136da565b915061303282613c2a565b604082019050919050565b600061304a6018836136da565b915061305582613c79565b602082019050919050565b600061306d6038836136da565b915061307882613ca2565b604082019050919050565b6000613090602a836136da565b915061309b82613cf1565b604082019050919050565b60006130b36029836136da565b91506130be82613d40565b604082019050919050565b60006130d66020836136da565b91506130e182613d8f565b602082019050919050565b60006130f96011836136da565b915061310482613db8565b602082019050919050565b600061311c602c836136da565b915061312782613de1565b604082019050919050565b600061313f6020836136da565b915061314a82613e30565b602082019050919050565b60006131626029836136da565b915061316d82613e59565b604082019050919050565b6000613185602f836136da565b915061319082613ea8565b604082019050919050565b60006131a86021836136da565b91506131b382613ef7565b604082019050919050565b60006131cb6031836136da565b91506131d682613f46565b604082019050919050565b60006131ee6009836136da565b91506131f982613f95565b602082019050919050565b61320d8161387f565b82525050565b600061321f8285612ef4565b915061322b8284612ef4565b91508190509392505050565b600060208201905061324c6000830184612e46565b92915050565b60006040820190506132676000830185612e46565b6132746020830184612e46565b9392505050565b60006060820190506132906000830186612e46565b61329d6020830185612e46565b6132aa6040830184613204565b949350505050565b60006080820190506132c76000830187612e46565b6132d46020830186612e46565b6132e16040830185613204565b81810360608301526132f38184612e73565b905095945050505050565b60006020820190506133136000830184612e55565b92915050565b600060208201905061332e6000830184612e64565b92915050565b60006020820190506133496000830184612eac565b92915050565b600060208201905081810360008301526133698184612ebb565b905092915050565b6000602082019050818103600083015261338a81612f25565b9050919050565b600060208201905081810360008301526133aa81612f48565b9050919050565b600060208201905081810360008301526133ca81612f6b565b9050919050565b600060208201905081810360008301526133ea81612f8e565b9050919050565b6000602082019050818103600083015261340a81612fb1565b9050919050565b6000602082019050818103600083015261342a81612fd4565b9050919050565b6000602082019050818103600083015261344a81612ff7565b9050919050565b6000602082019050818103600083015261346a8161301a565b9050919050565b6000602082019050818103600083015261348a8161303d565b9050919050565b600060208201905081810360008301526134aa81613060565b9050919050565b600060208201905081810360008301526134ca81613083565b9050919050565b600060208201905081810360008301526134ea816130a6565b9050919050565b6000602082019050818103600083015261350a816130c9565b9050919050565b6000602082019050818103600083015261352a816130ec565b9050919050565b6000602082019050818103600083015261354a8161310f565b9050919050565b6000602082019050818103600083015261356a81613132565b9050919050565b6000602082019050818103600083015261358a81613155565b9050919050565b600060208201905081810360008301526135aa81613178565b9050919050565b600060208201905081810360008301526135ca8161319b565b9050919050565b600060208201905081810360008301526135ea816131be565b9050919050565b6000602082019050818103600083015261360a816131e1565b9050919050565b60006020820190506136266000830184613204565b92915050565b6000613636613647565b90506136428282613921565b919050565b6000604051905090565b600067ffffffffffffffff82111561366c5761366b613a59565b5b61367582613a88565b9050602081019050919050565b600067ffffffffffffffff82111561369d5761369c613a59565b5b6136a682613a88565b9050602081019050919050565b600081519050919050565b600081519050919050565b600082825260208201905092915050565b600082825260208201905092915050565b600081905092915050565b60006137018261387f565b915061370c8361387f565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115613741576137406139cc565b5b828201905092915050565b60006137578261387f565b91506137628361387f565b925082613772576137716139fb565b5b828204905092915050565b60006137888261387f565b91506137938361387f565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156137cc576137cb6139cc565b5b828202905092915050565b60006137e28261387f565b91506137ed8361387f565b925082821015613800576137ff6139cc565b5b828203905092915050565b60006138168261385f565b9050919050565b60008115159050919050565b6000819050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b60006138948261389b565b9050919050565b60006138a68261385f565b9050919050565b82818337600083830152505050565b60005b838110156138da5780820151818401526020810190506138bf565b838111156138e9576000848401525b50505050565b6000600282049050600182168061390757607f821691505b6020821081141561391b5761391a613a2a565b5b50919050565b61392a82613a88565b810181811067ffffffffffffffff8211171561394957613948613a59565b5b80604052505050565b600061395d8261387f565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8214156139905761398f6139cc565b5b600182019050919050565b60006139a68261387f565b91506139b18361387f565b9250826139c1576139c06139fb565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000601f19601f8301169050919050565b7f4e6f7420656e6f75676820746f6b656e20746f206d696e740000000000000000600082015250565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b7f416c6c6f77616e6365206e6f742073657420746f206d696e7400000000000000600082015250565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b7f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b7f746f6f206d616e79206d696e747320696e206f6e6520676f0000000000000000600082015250565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760008201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000602082015250565b7f4552433732313a2062616c616e636520717565727920666f7220746865207a6560008201527f726f206164647265737300000000000000000000000000000000000000000000602082015250565b7f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460008201527f656e7420746f6b656e0000000000000000000000000000000000000000000000602082015250565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b7f6d617820737570706c79206d696e746564000000000000000000000000000000600082015250565b7f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960008201527f73206e6f74206f776e0000000000000000000000000000000000000000000000602082015250565b7f4552433732314d657461646174613a2055524920717565727920666f72206e6f60008201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60008201527f776e6572206e6f7220617070726f766564000000000000000000000000000000602082015250565b7f746f6f206561726c790000000000000000000000000000000000000000000000600082015250565b613fc78161380b565b8114613fd257600080fd5b50565b613fde8161381d565b8114613fe957600080fd5b50565b613ff581613833565b811461400057600080fd5b50565b61400c8161387f565b811461401757600080fd5b5056fea2646970667358221220873ee854415371b1f103446789146a71d21e3c041fdc3939e50814efee99cabd64736f6c6343000804003300000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000000000000000000000000000000000000000100000000000000000000000000491d6b7d6822d5d4bc88a1264e1b47791fd8e9040000000000000000000000000000000000000000000000548378a01061fc000000000000000000000000000000000000000000000000000000000000000022b8d46179dd40ee3254e5dff531d0cea44ddf279de734635a2fa75ee4a86ebfcc43000000000000000000000000000000000000000000000000000000000000000c244c4f4e444f4e2047696674000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000044749465400000000000000000000000000000000000000000000000000000000

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

00000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000000000000000000000000000000000000000100000000000000000000000000491d6b7d6822d5d4bc88a1264e1b47791fd8e9040000000000000000000000000000000000000000000000548378a01061fc000000000000000000000000000000000000000000000000000000000000000022b8d46179dd40ee3254e5dff531d0cea44ddf279de734635a2fa75ee4a86ebfcc43000000000000000000000000000000000000000000000000000000000000000c244c4f4e444f4e2047696674000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000044749465400000000000000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : name_ (string): $LONDON Gift
Arg [1] : symbol_ (string): GIFT
Arg [2] : _payableErc20 (address): 0x491d6b7d6822d5d4bc88a1264e1b47791fd8e904
Arg [3] : _mintPrice (uint256): 1559000000000000000000
Arg [4] : _maxSupply (uint256): 8888
Arg [5] : _provenance (bytes32): 0xd46179dd40ee3254e5dff531d0cea44ddf279de734635a2fa75ee4a86ebfcc43

-----Encoded View---------------
10 Constructor Arguments found :
Arg [0] : 00000000000000000000000000000000000000000000000000000000000000c0
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000100
Arg [2] : 000000000000000000000000491d6b7d6822d5d4bc88a1264e1b47791fd8e904
Arg [3] : 0000000000000000000000000000000000000000000000548378a01061fc0000
Arg [4] : 00000000000000000000000000000000000000000000000000000000000022b8
Arg [5] : d46179dd40ee3254e5dff531d0cea44ddf279de734635a2fa75ee4a86ebfcc43
Arg [6] : 000000000000000000000000000000000000000000000000000000000000000c
Arg [7] : 244c4f4e444f4e20476966740000000000000000000000000000000000000000
Arg [8] : 0000000000000000000000000000000000000000000000000000000000000004
Arg [9] : 4749465400000000000000000000000000000000000000000000000000000000


Block Transaction Difficulty Gas Used Reward
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.

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