ETH Price: $2,908.76 (-10.25%)
Gas: 19 Gwei

Token

DaVinci By AML (DVNCI)
 

Overview

Max Total Supply

0 DVNCI

Holders

878

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Filtered by Token Holder
andypoon.eth
Balance
1 DVNCI
0x530B6FeBCF60Dd3B342A7Af981765Cbe56Dc1ffC
Loading...
Loading
Loading...
Loading
Loading...
Loading

OVERVIEW

Mutate your NFTs with AI and create surreal AI-art NFTs. Mint a Davinci Pass first to access and create with Davinci.

# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
DaVinci

Compiler Version
v0.8.4+commit.c7e474f2

Optimization Enabled:
Yes with 200 runs

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

//░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
//░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
//░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
//░░░░░╔═══╦═══╦╗░░╔╦══╦═╗░╔╦═══╦══╗░░░░░░
//░░░█░╚╗╔╗║╔═╗║╚╗╔╝╠╣╠╣║╚╗║║╔═╗╠╣╠╝░░░░░░
//░░░░░░║║║║║░║╠╗║║╔╝║║║╔╗╚╝║║░╚╝║║░░░░░░░
//░░░░░░║║║║╚═╝║║╚╝║░║║║║╚╗║║║░╔╗║║░░░░░░░
//░░░░░╔╝╚╝║╔═╗║╚╗╔╝╔╣╠╣║░║║║╚═╝╠╣╠╗░░░░░░
//░░░░░╚═══╩╝░╚╝░╚╝░╚══╩╝░╚═╩═══╩══╝░░░░░░
//░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
//░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
//░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░


pragma solidity ^0.8.0;

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

contract DaVinci is ERC721, Ownable {
  // Max Total Supply
  uint256 public constant MAX_SUPPLY = 1333;
  // Purchase price
  uint256 public constant SALE_PRICE = 0.07 ether; // 0.07 ether
  //Token counter
  uint256 public tokenCounter;
  // Max mintable
  uint256 public maxMintable = 15;

  bool public preSaleActive;
  bool public saleActive;
  bool public locked;

  // Alien Genesys Tokens
  address public agAddress = 0xc7DcAeb8270b049CAa75afdD879d8eAC28406C36;
  address private _signer;
  string private _baseURIExtended;

  mapping(uint256 => bool) public usedAGTokens;
  mapping(uint256 => bool) public usedNonces;
  mapping(string => bool) private usedReq;

  
  mapping(uint256 => string) public tokenIdToReq;
  mapping(address => uint ) public walletMint;

  uint256 private remainingGiveAway = 50;

  // External functions
  constructor(
    string memory __uri,
    address __signer
  ) ERC721("DaVinci By AML", "DVNCI") {
    _baseURIExtended = __uri;
    _signer = __signer;
  }

function claim(
    string memory _reqId,
    uint256 _nonce,
    bytes calldata signature
  ) external returns (uint256 newId) {
    newId = tokenCounter+1;
    require(!usedNonces[_nonce], "Signature expired");
    require(newId <= MAX_SUPPLY, "Mint finished");
    verifySignature(_nonce, _reqId, signature);
    tokenIdToReq[newId] = _reqId;
    remainingGiveAway--;
    usedNonces[_nonce] = true;
    _safeMint(msg.sender, newId);
    tokenCounter = newId;
  }

function agMinter(
    uint256 _tokenId,
    string memory _reqId,
    bytes calldata signature
  ) external returns(uint256 newId) {
    newId = tokenCounter+1;
    IERC721 ag = IERC721(agAddress);
    require(ag.ownerOf(_tokenId) == msg.sender, "Invalid owner");
    require(!usedAGTokens[_tokenId], "Only 1 mint per AG token");
    require(preSaleActive || saleActive, "Sale must be active");
    require(newId <= MAX_SUPPLY, "Mint finished");
    verifySignature( _reqId,0, signature);
    usedAGTokens[_tokenId] = true;
    tokenIdToReq[newId] = _reqId;
    _safeMint(msg.sender, newId);
    tokenCounter = newId;
  }

function preSaleMint(
    string memory _reqId,
    uint256 _nonce,
    bytes calldata signature
  ) external payable returns (uint256 newId) {
    newId = tokenCounter + 1;
    require(preSaleActive, "Sale must be active");
    require(!usedNonces[_nonce], "Signature expired");
    require(newId <= MAX_SUPPLY, "Mint finished");
    require(msg.value >= SALE_PRICE, "Incorrect value send");
    verifySignature( _reqId, _nonce, signature);
    tokenIdToReq[newId] = _reqId;
    _safeMint(msg.sender, newId);
    tokenCounter = newId;
    usedNonces[_nonce]=true;
    walletMint[msg.sender]++;
  }

  function publicMint(
    string memory _reqId,
    bytes calldata signature
  ) external payable returns (uint256 newId) {
    newId = tokenCounter + 1;
    require(saleActive, "Sale must be active");
    require(newId <= MAX_SUPPLY, "Mint finished");
    require(msg.value >= SALE_PRICE, "Incorrect value send");
    require(walletMint[msg.sender] < maxMintable, "Wallet limit reached");
    verifySignature(_reqId, 0, signature);
    tokenIdToReq[newId] = _reqId;
    _safeMint(msg.sender, newId);
    tokenCounter = newId;
    walletMint[msg.sender]++;
  }

//Verification for signature
  function verifySignature(
    string memory _reqId,
    uint256 _nonce,
    bytes calldata sig
  ) internal {
    if(_nonce != 0){
        bytes32 _msg = keccak256(
            abi.encodePacked(msg.sender,_reqId, _nonce));
        require(ECDSA.recover(_msg, sig) == _signer, "Invalid Signature");
    }
    else{
        bytes32 _msg = keccak256(
            abi.encodePacked(msg.sender,_reqId));
        require(ECDSA.recover(_msg, sig) == _signer, "Invalid Signature");
    }
    require(!usedReq[_reqId], "Used Signature");
    usedReq[_reqId]=true;
  }

  function verifySignature(
    uint256 _nonce,
    string memory _reqId,
    bytes calldata sig
  ) internal {
        bytes32 hash = keccak256(
      abi.encodePacked(_nonce, _reqId, msg.sender)
    );
    require(ECDSA.recover(hash, sig) == _signer, "Invalid Signature");
    require(!usedReq[_reqId], "Used Signature");
    usedReq[_reqId] = true;
  }

  // Control Functions
  function closeNonce(uint256 _nonce) external onlyOwner {
    usedNonces[_nonce] = true;
  }

  function toggleSale() external onlyOwner {
    saleActive = !saleActive;
  }

  function togglePreSale() external onlyOwner {
    preSaleActive = !preSaleActive;
  }

  function setSigner(address __signer) external onlyOwner {
    _signer = __signer;
  }

  function setBaseURI(string memory __baseURI) external onlyOwner {
    require(!locked, "locked...");
    _baseURIExtended = __baseURI;
  }

  function withdrawAll(address payable receiver) external onlyOwner {
    uint256 balance = address(this).balance;
    receiver.transfer(balance);
  }

  // And for the eternity ...
  function lockMetadata() external onlyOwner {
    locked = true;
  }

  //View Functions
  function _baseURI() internal view override returns (string memory) {
    return _baseURIExtended;
  }

  receive() external payable {}
}

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

File 3 of 12 : ECDSA.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/cryptography/ECDSA.sol)

pragma solidity ^0.8.0;

import "../Strings.sol";

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

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

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

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

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

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

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

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

        return (signer, RecoverError.NoError);
    }

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        _transfer(from, to, tokenId);
    }

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

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

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

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

    /**
     * @dev Returns whether `spender` is allowed to manage `tokenId`.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) {
        require(_exists(tokenId), "ERC721: operator query for nonexistent token");
        address owner = ERC721.ownerOf(tokenId);
        return (spender == owner || 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 Approve `operator` to operate on all of `owner` tokens
     *
     * Emits a {ApprovalForAll} event.
     */
    function _setApprovalForAll(
        address owner,
        address operator,
        bool approved
    ) internal virtual {
        require(owner != operator, "ERC721: approve to caller");
        _operatorApprovals[owner][operator] = approved;
        emit ApprovalForAll(owner, operator, approved);
    }

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

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

File 5 of 12 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Strings.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

pragma solidity ^0.8.0;

import "./IERC165.sol";

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

File 7 of 12 : Context.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)

pragma solidity ^0.8.0;

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

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

File 8 of 12 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Address.sol)

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 9 of 12 : IERC721Metadata.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol)

pragma solidity ^0.8.0;

import "../IERC721.sol";

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

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

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

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

pragma solidity ^0.8.0;

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"__uri","type":"string"},{"internalType":"address","name":"__signer","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"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":[],"name":"MAX_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"SALE_PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"agAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"string","name":"_reqId","type":"string"},{"internalType":"bytes","name":"signature","type":"bytes"}],"name":"agMinter","outputs":[{"internalType":"uint256","name":"newId","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"_reqId","type":"string"},{"internalType":"uint256","name":"_nonce","type":"uint256"},{"internalType":"bytes","name":"signature","type":"bytes"}],"name":"claim","outputs":[{"internalType":"uint256","name":"newId","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_nonce","type":"uint256"}],"name":"closeNonce","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lockMetadata","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"locked","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxMintable","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":"preSaleActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"_reqId","type":"string"},{"internalType":"uint256","name":"_nonce","type":"uint256"},{"internalType":"bytes","name":"signature","type":"bytes"}],"name":"preSaleMint","outputs":[{"internalType":"uint256","name":"newId","type":"uint256"}],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"string","name":"_reqId","type":"string"},{"internalType":"bytes","name":"signature","type":"bytes"}],"name":"publicMint","outputs":[{"internalType":"uint256","name":"newId","type":"uint256"}],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"saleActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"__baseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"__signer","type":"address"}],"name":"setSigner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"togglePreSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"toggleSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"tokenCounter","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"tokenIdToReq","outputs":[{"internalType":"string","name":"","type":"string"}],"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":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"usedAGTokens","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"usedNonces","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"walletMint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address payable","name":"receiver","type":"address"}],"name":"withdrawAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]

6080604052600f600855600980546301000000600160b81b03191676c7dcaeb8270b049caa75afdd879d8eac28406c3600000017905560326011553480156200004757600080fd5b506040516200313f3803806200313f8339810160408190526200006a9162000246565b604080518082018252600e81526d1118559a5b98da48109e4810535360921b60208083019182528351808501909452600584526444564e434960d81b908401528151919291620000bd9160009162000183565b508051620000d390600190602084019062000183565b505050620000f0620000ea6200012d60201b60201c565b62000131565b81516200010590600b90602085019062000183565b50600a80546001600160a01b0319166001600160a01b03929092169190911790555062000384565b3390565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b828054620001919062000331565b90600052602060002090601f016020900481019282620001b5576000855562000200565b82601f10620001d057805160ff191683800117855562000200565b8280016001018555821562000200579182015b8281111562000200578251825591602001919060010190620001e3565b506200020e92915062000212565b5090565b5b808211156200020e576000815560010162000213565b80516001600160a01b03811681146200024157600080fd5b919050565b6000806040838503121562000259578182fd5b82516001600160401b038082111562000270578384fd5b818501915085601f83011262000284578384fd5b8151818111156200029957620002996200036e565b604051601f8201601f19908116603f01168101908382118183101715620002c457620002c46200036e565b81604052828152602093508884848701011115620002e0578687fd5b8691505b82821015620003035784820184015181830185015290830190620002e4565b828211156200031457868484830101525b95506200032691505085820162000229565b925050509250929050565b600181811c908216806200034657607f821691505b602082108114156200036857634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052604160045260246000fd5b612dab80620003946000396000f3fe6080604052600436106102345760003560e01c806370869cda1161012e578063a22cb465116100ab578063cf3090121161006f578063cf30901214610680578063d082e381146106a0578063e985e9c5146106b6578063f2fde38b146106ff578063fa09e6301461071f57600080fd5b8063a22cb465146105eb578063b7ad95da1461060b578063b88d4fde1461062b578063c87b56dd1461064b578063ca3cb5221461066b57600080fd5b806381553691116100f2578063815536911461056957806384494708146105895780638da5cb5b146105a357806395d89b41146105c1578063989bdbb6146105d657600080fd5b806370869cda146104dd57806370a0823114610504578063715018a6146105245780637d8966e4146105395780637f205a741461054e57600080fd5b806336387a90116101bc57806355f804b31161018057806355f804b31461042e5780636352211e1461044e5780636717e41c1461046e57806368428a1b1461049e5780636c19e783146104bd57600080fd5b806336387a901461038b578063410d00f0146103ab57806342842e0e146103cb57806342f5d95d146103eb5780634a76a73b146103fe57600080fd5b80631056ae31116102035780631056ae31146102f15780632154dc391461032c57806323b872dd14610342578063275f0bd31461036257806332cb6b0c1461037557600080fd5b806301ffc9a71461024057806306fdde0314610275578063081812fc14610297578063095ea7b3146102cf57600080fd5b3661023b57005b600080fd5b34801561024c57600080fd5b5061026061025b366004612795565b61073f565b60405190151581526020015b60405180910390f35b34801561028157600080fd5b5061028a610791565b60405161026c9190612aae565b3480156102a357600080fd5b506102b76102b23660046128d3565b610823565b6040516001600160a01b03909116815260200161026c565b3480156102db57600080fd5b506102ef6102ea36600461276a565b6108bd565b005b3480156102fd57600080fd5b5061031e61030c36600461260c565b60106020526000908152604090205481565b60405190815260200161026c565b34801561033857600080fd5b5061031e60085481565b34801561034e57600080fd5b506102ef61035d36600461267c565b6109d3565b61031e610370366004612866565b610a04565b34801561038157600080fd5b5061031e61053581565b34801561039757600080fd5b5061031e6103a63660046128eb565b610b77565b3480156103b757600080fd5b506102ef6103c63660046128d3565b610d65565b3480156103d757600080fd5b506102ef6103e636600461267c565b610daa565b61031e6103f9366004612800565b610dc5565b34801561040a57600080fd5b506102606104193660046128d3565b600c6020526000908152604090205460ff1681565b34801561043a57600080fd5b506102ef6104493660046127cd565b610f2a565b34801561045a57600080fd5b506102b76104693660046128d3565b610fb0565b34801561047a57600080fd5b506102606104893660046128d3565b600d6020526000908152604090205460ff1681565b3480156104aa57600080fd5b5060095461026090610100900460ff1681565b3480156104c957600080fd5b506102ef6104d836600461260c565b611027565b3480156104e957600080fd5b506009546102b790630100000090046001600160a01b031681565b34801561051057600080fd5b5061031e61051f36600461260c565b611073565b34801561053057600080fd5b506102ef6110fa565b34801561054557600080fd5b506102ef611130565b34801561055a57600080fd5b5061031e66f8b0a10e47000081565b34801561057557600080fd5b5061031e610584366004612866565b611177565b34801561059557600080fd5b506009546102609060ff1681565b3480156105af57600080fd5b506006546001600160a01b03166102b7565b3480156105cd57600080fd5b5061028a611271565b3480156105e257600080fd5b506102ef611280565b3480156105f757600080fd5b506102ef610606366004612739565b6112bd565b34801561061757600080fd5b5061028a6106263660046128d3565b6112c8565b34801561063757600080fd5b506102ef6106463660046126bc565b611362565b34801561065757600080fd5b5061028a6106663660046128d3565b61139a565b34801561067757600080fd5b506102ef611475565b34801561068c57600080fd5b506009546102609062010000900460ff1681565b3480156106ac57600080fd5b5061031e60075481565b3480156106c257600080fd5b506102606106d1366004612644565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b34801561070b57600080fd5b506102ef61071a36600461260c565b6114b3565b34801561072b57600080fd5b506102ef61073a36600461260c565b61154e565b60006001600160e01b031982166380ac58cd60e01b148061077057506001600160e01b03198216635b5e139f60e01b145b8061078b57506301ffc9a760e01b6001600160e01b03198316145b92915050565b6060600080546107a090612c9e565b80601f01602080910402602001604051908101604052809291908181526020018280546107cc90612c9e565b80156108195780601f106107ee57610100808354040283529160200191610819565b820191906000526020600020905b8154815290600101906020018083116107fc57829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b03166108a15760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b60006108c882610fb0565b9050806001600160a01b0316836001600160a01b031614156109365760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610898565b336001600160a01b0382161480610952575061095281336106d1565b6109c45760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610898565b6109ce83836115b0565b505050565b6109dd338261161e565b6109f95760405162461bcd60e51b815260040161089890612bc7565b6109ce838383611715565b60006007546001610a159190612c18565b60095490915060ff16610a3a5760405162461bcd60e51b815260040161089890612ac1565b6000848152600d602052604090205460ff1615610a8d5760405162461bcd60e51b815260206004820152601160248201527014da59db985d1d5c9948195e1c1a5c9959607a1b6044820152606401610898565b610535811115610aaf5760405162461bcd60e51b815260040161089890612ba0565b66f8b0a10e470000341015610afd5760405162461bcd60e51b8152602060048201526014602482015273125b98dbdc9c9958dd081d985b1d59481cd95b9960621b6044820152606401610898565b610b09858585856118b5565b6000818152600f602090815260409091208651610b289288019061249e565b50610b333382611a9a565b60078190556000848152600d60209081526040808320805460ff1916600117905533835260109091528120805491610b6a83612cd9565b9190505550949350505050565b60006007546001610b889190612c18565b6009546040516331a9108f60e11b815260048101889052919250630100000090046001600160a01b03169033908290636352211e9060240160206040518083038186803b158015610bd857600080fd5b505afa158015610bec573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c109190612628565b6001600160a01b031614610c565760405162461bcd60e51b815260206004820152600d60248201526c24b73b30b634b21037bbb732b960991b6044820152606401610898565b6000868152600c602052604090205460ff1615610cb55760405162461bcd60e51b815260206004820152601860248201527f4f6e6c792031206d696e742070657220414720746f6b656e00000000000000006044820152606401610898565b60095460ff1680610ccd5750600954610100900460ff165b610ce95760405162461bcd60e51b815260040161089890612ac1565b610535821115610d0b5760405162461bcd60e51b815260040161089890612ba0565b610d1885600086866118b5565b6000868152600c60209081526040808320805460ff19166001179055848352600f82529091208651610d4c9288019061249e565b50610d573383611a9a565b506007819055949350505050565b6006546001600160a01b03163314610d8f5760405162461bcd60e51b815260040161089890612b6b565b6000908152600d60205260409020805460ff19166001179055565b6109ce83838360405180602001604052806000815250611362565b60006007546001610dd69190612c18565b600954909150610100900460ff16610e005760405162461bcd60e51b815260040161089890612ac1565b610535811115610e225760405162461bcd60e51b815260040161089890612ba0565b66f8b0a10e470000341015610e705760405162461bcd60e51b8152602060048201526014602482015273125b98dbdc9c9958dd081d985b1d59481cd95b9960621b6044820152606401610898565b6008543360009081526010602052604090205410610ec75760405162461bcd60e51b815260206004820152601460248201527315d85b1b195d081b1a5b5a5d081c995858da195960621b6044820152606401610898565b610ed484600085856118b5565b6000818152600f602090815260409091208551610ef39287019061249e565b50610efe3382611a9a565b6007819055336000908152601060205260408120805491610f1e83612cd9565b91905055509392505050565b6006546001600160a01b03163314610f545760405162461bcd60e51b815260040161089890612b6b565b60095462010000900460ff1615610f995760405162461bcd60e51b81526020600482015260096024820152683637b1b5b2b217171760b91b6044820152606401610898565b8051610fac90600b90602084019061249e565b5050565b6000818152600260205260408120546001600160a01b03168061078b5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610898565b6006546001600160a01b031633146110515760405162461bcd60e51b815260040161089890612b6b565b600a80546001600160a01b0319166001600160a01b0392909216919091179055565b60006001600160a01b0382166110de5760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610898565b506001600160a01b031660009081526003602052604090205490565b6006546001600160a01b031633146111245760405162461bcd60e51b815260040161089890612b6b565b61112e6000611ab4565b565b6006546001600160a01b0316331461115a5760405162461bcd60e51b815260040161089890612b6b565b6009805461ff001981166101009182900460ff1615909102179055565b600060075460016111889190612c18565b6000858152600d602052604090205490915060ff16156111de5760405162461bcd60e51b815260206004820152601160248201527014da59db985d1d5c9948195e1c1a5c9959607a1b6044820152606401610898565b6105358111156112005760405162461bcd60e51b815260040161089890612ba0565b61120c84868585611b06565b6000818152600f60209081526040909120865161122b9288019061249e565b506011805490600061123c83612c87565b90915550506000848152600d60205260409020805460ff191660011790556112643382611a9a565b6007819055949350505050565b6060600180546107a090612c9e565b6006546001600160a01b031633146112aa5760405162461bcd60e51b815260040161089890612b6b565b6009805462ff0000191662010000179055565b610fac338383611c40565b600f60205260009081526040902080546112e190612c9e565b80601f016020809104026020016040519081016040528092919081815260200182805461130d90612c9e565b801561135a5780601f1061132f5761010080835404028352916020019161135a565b820191906000526020600020905b81548152906001019060200180831161133d57829003601f168201915b505050505081565b61136c338361161e565b6113885760405162461bcd60e51b815260040161089890612bc7565b61139484848484611d0f565b50505050565b6000818152600260205260409020546060906001600160a01b03166114195760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401610898565b6000611423611d42565b90506000815111611443576040518060200160405280600081525061146e565b8061144d84611d51565b60405160200161145e9291906129fe565b6040516020818303038152906040525b9392505050565b6006546001600160a01b0316331461149f5760405162461bcd60e51b815260040161089890612b6b565b6009805460ff19811660ff90911615179055565b6006546001600160a01b031633146114dd5760405162461bcd60e51b815260040161089890612b6b565b6001600160a01b0381166115425760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610898565b61154b81611ab4565b50565b6006546001600160a01b031633146115785760405162461bcd60e51b815260040161089890612b6b565b60405147906001600160a01b0383169082156108fc029083906000818181858888f193505050501580156109ce573d6000803e3d6000fd5b600081815260046020526040902080546001600160a01b0319166001600160a01b03841690811790915581906115e582610fb0565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152600260205260408120546001600160a01b03166116975760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610898565b60006116a283610fb0565b9050806001600160a01b0316846001600160a01b031614806116dd5750836001600160a01b03166116d284610823565b6001600160a01b0316145b8061170d57506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b031661172882610fb0565b6001600160a01b0316146117905760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b6064820152608401610898565b6001600160a01b0382166117f25760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610898565b6117fd6000826115b0565b6001600160a01b0383166000908152600360205260408120805460019290611826908490612c44565b90915550506001600160a01b0382166000908152600360205260408120805460019290611854908490612c18565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b82156119615760003385856040516020016118d2939291906129a3565b60408051601f198184030181528282528051602091820120600a54601f870183900483028501830190935285845293506001600160a01b0390911691611935918491908790879081908401838280828437600092019190915250611e6b92505050565b6001600160a01b03161461195b5760405162461bcd60e51b815260040161089890612b40565b50611a01565b6000338560405160200161197692919061296b565b60408051601f198184030181528282528051602091820120600a54601f870183900483028501830190935285845293506001600160a01b03909116916119d9918491908790879081908401838280828437600092019190915250611e6b92505050565b6001600160a01b0316146119ff5760405162461bcd60e51b815260040161089890612b40565b505b600e84604051611a1191906129e2565b9081526040519081900360200190205460ff1615611a625760405162461bcd60e51b815260206004820152600e60248201526d55736564205369676e617475726560901b6044820152606401610898565b6001600e85604051611a7491906129e2565b908152604051908190036020019020805491151560ff1990921691909117905550505050565b610fac828260405180602001604052806000815250611e8f565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6000848433604051602001611b1d93929190612a2d565b60408051601f198184030181528282528051602091820120600a54601f870183900483028501830190935285845293506001600160a01b0390911691611b80918491908790879081908401838280828437600092019190915250611e6b92505050565b6001600160a01b031614611ba65760405162461bcd60e51b815260040161089890612b40565b600e84604051611bb691906129e2565b9081526040519081900360200190205460ff1615611c075760405162461bcd60e51b815260206004820152600e60248201526d55736564205369676e617475726560901b6044820152606401610898565b6001600e85604051611c1991906129e2565b908152604051908190036020019020805491151560ff199092169190911790555050505050565b816001600160a01b0316836001600160a01b03161415611ca25760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610898565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b611d1a848484611715565b611d2684848484611ec2565b6113945760405162461bcd60e51b815260040161089890612aee565b6060600b80546107a090612c9e565b606081611d755750506040805180820190915260018152600360fc1b602082015290565b8160005b8115611d9f5780611d8981612cd9565b9150611d989050600a83612c30565b9150611d79565b60008167ffffffffffffffff811115611dc857634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015611df2576020820181803683370190505b5090505b841561170d57611e07600183612c44565b9150611e14600a86612cf4565b611e1f906030612c18565b60f81b818381518110611e4257634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350611e64600a86612c30565b9450611df6565b6000806000611e7a8585611fcf565b91509150611e878161203f565b509392505050565b611e998383612240565b611ea66000848484611ec2565b6109ce5760405162461bcd60e51b815260040161089890612aee565b60006001600160a01b0384163b15611fc457604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290611f06903390899088908890600401612a71565b602060405180830381600087803b158015611f2057600080fd5b505af1925050508015611f50575060408051601f3d908101601f19168201909252611f4d918101906127b1565b60015b611faa573d808015611f7e576040519150601f19603f3d011682016040523d82523d6000602084013e611f83565b606091505b508051611fa25760405162461bcd60e51b815260040161089890612aee565b805181602001fd5b6001600160e01b031916630a85bd0160e11b14905061170d565b506001949350505050565b6000808251604114156120065760208301516040840151606085015160001a611ffa87828585612382565b94509450505050612038565b825160401415612030576020830151604084015161202586838361246f565b935093505050612038565b506000905060025b9250929050565b600081600481111561206157634e487b7160e01b600052602160045260246000fd5b141561206a5750565b600181600481111561208c57634e487b7160e01b600052602160045260246000fd5b14156120da5760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610898565b60028160048111156120fc57634e487b7160e01b600052602160045260246000fd5b141561214a5760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610898565b600381600481111561216c57634e487b7160e01b600052602160045260246000fd5b14156121c55760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b6064820152608401610898565b60048160048111156121e757634e487b7160e01b600052602160045260246000fd5b141561154b5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b6064820152608401610898565b6001600160a01b0382166122965760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610898565b6000818152600260205260409020546001600160a01b0316156122fb5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610898565b6001600160a01b0382166000908152600360205260408120805460019290612324908490612c18565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08311156123b95750600090506003612466565b8460ff16601b141580156123d157508460ff16601c14155b156123e25750600090506004612466565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015612436573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b03811661245f57600060019250925050612466565b9150600090505b94509492505050565b6000806001600160ff1b03831660ff84901c601b0161249087828885612382565b935093505050935093915050565b8280546124aa90612c9e565b90600052602060002090601f0160209004810192826124cc5760008555612512565b82601f106124e557805160ff1916838001178555612512565b82800160010185558215612512579182015b828111156125125782518255916020019190600101906124f7565b5061251e929150612522565b5090565b5b8082111561251e5760008155600101612523565b600067ffffffffffffffff8084111561255257612552612d34565b604051601f8501601f19908116603f0116810190828211818310171561257a5761257a612d34565b8160405280935085815286868601111561259357600080fd5b858560208301376000602087830101525050509392505050565b60008083601f8401126125be578182fd5b50813567ffffffffffffffff8111156125d5578182fd5b60208301915083602082850101111561203857600080fd5b600082601f8301126125fd578081fd5b61146e83833560208501612537565b60006020828403121561261d578081fd5b813561146e81612d4a565b600060208284031215612639578081fd5b815161146e81612d4a565b60008060408385031215612656578081fd5b823561266181612d4a565b9150602083013561267181612d4a565b809150509250929050565b600080600060608486031215612690578081fd5b833561269b81612d4a565b925060208401356126ab81612d4a565b929592945050506040919091013590565b600080600080608085870312156126d1578081fd5b84356126dc81612d4a565b935060208501356126ec81612d4a565b925060408501359150606085013567ffffffffffffffff81111561270e578182fd5b8501601f8101871361271e578182fd5b61272d87823560208401612537565b91505092959194509250565b6000806040838503121561274b578182fd5b823561275681612d4a565b915060208301358015158114612671578182fd5b6000806040838503121561277c578182fd5b823561278781612d4a565b946020939093013593505050565b6000602082840312156127a6578081fd5b813561146e81612d5f565b6000602082840312156127c2578081fd5b815161146e81612d5f565b6000602082840312156127de578081fd5b813567ffffffffffffffff8111156127f4578182fd5b61170d848285016125ed565b600080600060408486031215612814578283fd5b833567ffffffffffffffff8082111561282b578485fd5b612837878388016125ed565b9450602086013591508082111561284c578384fd5b50612859868287016125ad565b9497909650939450505050565b6000806000806060858703121561287b578182fd5b843567ffffffffffffffff80821115612892578384fd5b61289e888389016125ed565b95506020870135945060408701359150808211156128ba578384fd5b506128c7878288016125ad565b95989497509550505050565b6000602082840312156128e4578081fd5b5035919050565b60008060008060608587031215612900578182fd5b84359350602085013567ffffffffffffffff8082111561291e578384fd5b61292a888389016125ed565b945060408701359150808211156128ba578384fd5b60008151808452612957816020860160208601612c5b565b601f01601f19169290920160200192915050565b6bffffffffffffffffffffffff198360601b16815260008251612995816014850160208701612c5b565b919091016014019392505050565b6bffffffffffffffffffffffff198460601b168152600083516129cd816014850160208801612c5b565b60149201918201929092526034019392505050565b600082516129f4818460208701612c5b565b9190910192915050565b60008351612a10818460208801612c5b565b835190830190612a24818360208801612c5b565b01949350505050565b83815260008351612a45816020850160208801612c5b565b60609390931b6bffffffffffffffffffffffff1916602092909301918201929092526034019392505050565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090612aa49083018461293f565b9695505050505050565b60208152600061146e602083018461293f565b60208082526013908201527253616c65206d7573742062652061637469766560681b604082015260600190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b602080825260119082015270496e76616c6964205369676e617475726560781b604082015260600190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6020808252600d908201526c135a5b9d08199a5b9a5cda1959609a1b604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b60008219821115612c2b57612c2b612d08565b500190565b600082612c3f57612c3f612d1e565b500490565b600082821015612c5657612c56612d08565b500390565b60005b83811015612c76578181015183820152602001612c5e565b838111156113945750506000910152565b600081612c9657612c96612d08565b506000190190565b600181811c90821680612cb257607f821691505b60208210811415612cd357634e487b7160e01b600052602260045260246000fd5b50919050565b6000600019821415612ced57612ced612d08565b5060010190565b600082612d0357612d03612d1e565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b038116811461154b57600080fd5b6001600160e01b03198116811461154b57600080fdfea26469706673582212205afb0352fc8802bfe1f7fe664b304e883c5743a61d22c780b2a6227c84ff57d264736f6c634300080400330000000000000000000000000000000000000000000000000000000000000040000000000000000000000000d9a151b9375a5e65f5e9895f6113a327a02420f8000000000000000000000000000000000000000000000000000000000000004168747470733a2f2f73332e616d617a6f6e6177732e636f6d2f646176696e63692e75732d656173742d312e61696d616b65726c6162732e636f6d2f746f6b656e2f00000000000000000000000000000000000000000000000000000000000000

Deployed Bytecode

0x6080604052600436106102345760003560e01c806370869cda1161012e578063a22cb465116100ab578063cf3090121161006f578063cf30901214610680578063d082e381146106a0578063e985e9c5146106b6578063f2fde38b146106ff578063fa09e6301461071f57600080fd5b8063a22cb465146105eb578063b7ad95da1461060b578063b88d4fde1461062b578063c87b56dd1461064b578063ca3cb5221461066b57600080fd5b806381553691116100f2578063815536911461056957806384494708146105895780638da5cb5b146105a357806395d89b41146105c1578063989bdbb6146105d657600080fd5b806370869cda146104dd57806370a0823114610504578063715018a6146105245780637d8966e4146105395780637f205a741461054e57600080fd5b806336387a90116101bc57806355f804b31161018057806355f804b31461042e5780636352211e1461044e5780636717e41c1461046e57806368428a1b1461049e5780636c19e783146104bd57600080fd5b806336387a901461038b578063410d00f0146103ab57806342842e0e146103cb57806342f5d95d146103eb5780634a76a73b146103fe57600080fd5b80631056ae31116102035780631056ae31146102f15780632154dc391461032c57806323b872dd14610342578063275f0bd31461036257806332cb6b0c1461037557600080fd5b806301ffc9a71461024057806306fdde0314610275578063081812fc14610297578063095ea7b3146102cf57600080fd5b3661023b57005b600080fd5b34801561024c57600080fd5b5061026061025b366004612795565b61073f565b60405190151581526020015b60405180910390f35b34801561028157600080fd5b5061028a610791565b60405161026c9190612aae565b3480156102a357600080fd5b506102b76102b23660046128d3565b610823565b6040516001600160a01b03909116815260200161026c565b3480156102db57600080fd5b506102ef6102ea36600461276a565b6108bd565b005b3480156102fd57600080fd5b5061031e61030c36600461260c565b60106020526000908152604090205481565b60405190815260200161026c565b34801561033857600080fd5b5061031e60085481565b34801561034e57600080fd5b506102ef61035d36600461267c565b6109d3565b61031e610370366004612866565b610a04565b34801561038157600080fd5b5061031e61053581565b34801561039757600080fd5b5061031e6103a63660046128eb565b610b77565b3480156103b757600080fd5b506102ef6103c63660046128d3565b610d65565b3480156103d757600080fd5b506102ef6103e636600461267c565b610daa565b61031e6103f9366004612800565b610dc5565b34801561040a57600080fd5b506102606104193660046128d3565b600c6020526000908152604090205460ff1681565b34801561043a57600080fd5b506102ef6104493660046127cd565b610f2a565b34801561045a57600080fd5b506102b76104693660046128d3565b610fb0565b34801561047a57600080fd5b506102606104893660046128d3565b600d6020526000908152604090205460ff1681565b3480156104aa57600080fd5b5060095461026090610100900460ff1681565b3480156104c957600080fd5b506102ef6104d836600461260c565b611027565b3480156104e957600080fd5b506009546102b790630100000090046001600160a01b031681565b34801561051057600080fd5b5061031e61051f36600461260c565b611073565b34801561053057600080fd5b506102ef6110fa565b34801561054557600080fd5b506102ef611130565b34801561055a57600080fd5b5061031e66f8b0a10e47000081565b34801561057557600080fd5b5061031e610584366004612866565b611177565b34801561059557600080fd5b506009546102609060ff1681565b3480156105af57600080fd5b506006546001600160a01b03166102b7565b3480156105cd57600080fd5b5061028a611271565b3480156105e257600080fd5b506102ef611280565b3480156105f757600080fd5b506102ef610606366004612739565b6112bd565b34801561061757600080fd5b5061028a6106263660046128d3565b6112c8565b34801561063757600080fd5b506102ef6106463660046126bc565b611362565b34801561065757600080fd5b5061028a6106663660046128d3565b61139a565b34801561067757600080fd5b506102ef611475565b34801561068c57600080fd5b506009546102609062010000900460ff1681565b3480156106ac57600080fd5b5061031e60075481565b3480156106c257600080fd5b506102606106d1366004612644565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b34801561070b57600080fd5b506102ef61071a36600461260c565b6114b3565b34801561072b57600080fd5b506102ef61073a36600461260c565b61154e565b60006001600160e01b031982166380ac58cd60e01b148061077057506001600160e01b03198216635b5e139f60e01b145b8061078b57506301ffc9a760e01b6001600160e01b03198316145b92915050565b6060600080546107a090612c9e565b80601f01602080910402602001604051908101604052809291908181526020018280546107cc90612c9e565b80156108195780601f106107ee57610100808354040283529160200191610819565b820191906000526020600020905b8154815290600101906020018083116107fc57829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b03166108a15760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b60006108c882610fb0565b9050806001600160a01b0316836001600160a01b031614156109365760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610898565b336001600160a01b0382161480610952575061095281336106d1565b6109c45760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610898565b6109ce83836115b0565b505050565b6109dd338261161e565b6109f95760405162461bcd60e51b815260040161089890612bc7565b6109ce838383611715565b60006007546001610a159190612c18565b60095490915060ff16610a3a5760405162461bcd60e51b815260040161089890612ac1565b6000848152600d602052604090205460ff1615610a8d5760405162461bcd60e51b815260206004820152601160248201527014da59db985d1d5c9948195e1c1a5c9959607a1b6044820152606401610898565b610535811115610aaf5760405162461bcd60e51b815260040161089890612ba0565b66f8b0a10e470000341015610afd5760405162461bcd60e51b8152602060048201526014602482015273125b98dbdc9c9958dd081d985b1d59481cd95b9960621b6044820152606401610898565b610b09858585856118b5565b6000818152600f602090815260409091208651610b289288019061249e565b50610b333382611a9a565b60078190556000848152600d60209081526040808320805460ff1916600117905533835260109091528120805491610b6a83612cd9565b9190505550949350505050565b60006007546001610b889190612c18565b6009546040516331a9108f60e11b815260048101889052919250630100000090046001600160a01b03169033908290636352211e9060240160206040518083038186803b158015610bd857600080fd5b505afa158015610bec573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c109190612628565b6001600160a01b031614610c565760405162461bcd60e51b815260206004820152600d60248201526c24b73b30b634b21037bbb732b960991b6044820152606401610898565b6000868152600c602052604090205460ff1615610cb55760405162461bcd60e51b815260206004820152601860248201527f4f6e6c792031206d696e742070657220414720746f6b656e00000000000000006044820152606401610898565b60095460ff1680610ccd5750600954610100900460ff165b610ce95760405162461bcd60e51b815260040161089890612ac1565b610535821115610d0b5760405162461bcd60e51b815260040161089890612ba0565b610d1885600086866118b5565b6000868152600c60209081526040808320805460ff19166001179055848352600f82529091208651610d4c9288019061249e565b50610d573383611a9a565b506007819055949350505050565b6006546001600160a01b03163314610d8f5760405162461bcd60e51b815260040161089890612b6b565b6000908152600d60205260409020805460ff19166001179055565b6109ce83838360405180602001604052806000815250611362565b60006007546001610dd69190612c18565b600954909150610100900460ff16610e005760405162461bcd60e51b815260040161089890612ac1565b610535811115610e225760405162461bcd60e51b815260040161089890612ba0565b66f8b0a10e470000341015610e705760405162461bcd60e51b8152602060048201526014602482015273125b98dbdc9c9958dd081d985b1d59481cd95b9960621b6044820152606401610898565b6008543360009081526010602052604090205410610ec75760405162461bcd60e51b815260206004820152601460248201527315d85b1b195d081b1a5b5a5d081c995858da195960621b6044820152606401610898565b610ed484600085856118b5565b6000818152600f602090815260409091208551610ef39287019061249e565b50610efe3382611a9a565b6007819055336000908152601060205260408120805491610f1e83612cd9565b91905055509392505050565b6006546001600160a01b03163314610f545760405162461bcd60e51b815260040161089890612b6b565b60095462010000900460ff1615610f995760405162461bcd60e51b81526020600482015260096024820152683637b1b5b2b217171760b91b6044820152606401610898565b8051610fac90600b90602084019061249e565b5050565b6000818152600260205260408120546001600160a01b03168061078b5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610898565b6006546001600160a01b031633146110515760405162461bcd60e51b815260040161089890612b6b565b600a80546001600160a01b0319166001600160a01b0392909216919091179055565b60006001600160a01b0382166110de5760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610898565b506001600160a01b031660009081526003602052604090205490565b6006546001600160a01b031633146111245760405162461bcd60e51b815260040161089890612b6b565b61112e6000611ab4565b565b6006546001600160a01b0316331461115a5760405162461bcd60e51b815260040161089890612b6b565b6009805461ff001981166101009182900460ff1615909102179055565b600060075460016111889190612c18565b6000858152600d602052604090205490915060ff16156111de5760405162461bcd60e51b815260206004820152601160248201527014da59db985d1d5c9948195e1c1a5c9959607a1b6044820152606401610898565b6105358111156112005760405162461bcd60e51b815260040161089890612ba0565b61120c84868585611b06565b6000818152600f60209081526040909120865161122b9288019061249e565b506011805490600061123c83612c87565b90915550506000848152600d60205260409020805460ff191660011790556112643382611a9a565b6007819055949350505050565b6060600180546107a090612c9e565b6006546001600160a01b031633146112aa5760405162461bcd60e51b815260040161089890612b6b565b6009805462ff0000191662010000179055565b610fac338383611c40565b600f60205260009081526040902080546112e190612c9e565b80601f016020809104026020016040519081016040528092919081815260200182805461130d90612c9e565b801561135a5780601f1061132f5761010080835404028352916020019161135a565b820191906000526020600020905b81548152906001019060200180831161133d57829003601f168201915b505050505081565b61136c338361161e565b6113885760405162461bcd60e51b815260040161089890612bc7565b61139484848484611d0f565b50505050565b6000818152600260205260409020546060906001600160a01b03166114195760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401610898565b6000611423611d42565b90506000815111611443576040518060200160405280600081525061146e565b8061144d84611d51565b60405160200161145e9291906129fe565b6040516020818303038152906040525b9392505050565b6006546001600160a01b0316331461149f5760405162461bcd60e51b815260040161089890612b6b565b6009805460ff19811660ff90911615179055565b6006546001600160a01b031633146114dd5760405162461bcd60e51b815260040161089890612b6b565b6001600160a01b0381166115425760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610898565b61154b81611ab4565b50565b6006546001600160a01b031633146115785760405162461bcd60e51b815260040161089890612b6b565b60405147906001600160a01b0383169082156108fc029083906000818181858888f193505050501580156109ce573d6000803e3d6000fd5b600081815260046020526040902080546001600160a01b0319166001600160a01b03841690811790915581906115e582610fb0565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152600260205260408120546001600160a01b03166116975760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610898565b60006116a283610fb0565b9050806001600160a01b0316846001600160a01b031614806116dd5750836001600160a01b03166116d284610823565b6001600160a01b0316145b8061170d57506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b031661172882610fb0565b6001600160a01b0316146117905760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b6064820152608401610898565b6001600160a01b0382166117f25760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610898565b6117fd6000826115b0565b6001600160a01b0383166000908152600360205260408120805460019290611826908490612c44565b90915550506001600160a01b0382166000908152600360205260408120805460019290611854908490612c18565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b82156119615760003385856040516020016118d2939291906129a3565b60408051601f198184030181528282528051602091820120600a54601f870183900483028501830190935285845293506001600160a01b0390911691611935918491908790879081908401838280828437600092019190915250611e6b92505050565b6001600160a01b03161461195b5760405162461bcd60e51b815260040161089890612b40565b50611a01565b6000338560405160200161197692919061296b565b60408051601f198184030181528282528051602091820120600a54601f870183900483028501830190935285845293506001600160a01b03909116916119d9918491908790879081908401838280828437600092019190915250611e6b92505050565b6001600160a01b0316146119ff5760405162461bcd60e51b815260040161089890612b40565b505b600e84604051611a1191906129e2565b9081526040519081900360200190205460ff1615611a625760405162461bcd60e51b815260206004820152600e60248201526d55736564205369676e617475726560901b6044820152606401610898565b6001600e85604051611a7491906129e2565b908152604051908190036020019020805491151560ff1990921691909117905550505050565b610fac828260405180602001604052806000815250611e8f565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6000848433604051602001611b1d93929190612a2d565b60408051601f198184030181528282528051602091820120600a54601f870183900483028501830190935285845293506001600160a01b0390911691611b80918491908790879081908401838280828437600092019190915250611e6b92505050565b6001600160a01b031614611ba65760405162461bcd60e51b815260040161089890612b40565b600e84604051611bb691906129e2565b9081526040519081900360200190205460ff1615611c075760405162461bcd60e51b815260206004820152600e60248201526d55736564205369676e617475726560901b6044820152606401610898565b6001600e85604051611c1991906129e2565b908152604051908190036020019020805491151560ff199092169190911790555050505050565b816001600160a01b0316836001600160a01b03161415611ca25760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610898565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b611d1a848484611715565b611d2684848484611ec2565b6113945760405162461bcd60e51b815260040161089890612aee565b6060600b80546107a090612c9e565b606081611d755750506040805180820190915260018152600360fc1b602082015290565b8160005b8115611d9f5780611d8981612cd9565b9150611d989050600a83612c30565b9150611d79565b60008167ffffffffffffffff811115611dc857634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015611df2576020820181803683370190505b5090505b841561170d57611e07600183612c44565b9150611e14600a86612cf4565b611e1f906030612c18565b60f81b818381518110611e4257634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350611e64600a86612c30565b9450611df6565b6000806000611e7a8585611fcf565b91509150611e878161203f565b509392505050565b611e998383612240565b611ea66000848484611ec2565b6109ce5760405162461bcd60e51b815260040161089890612aee565b60006001600160a01b0384163b15611fc457604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290611f06903390899088908890600401612a71565b602060405180830381600087803b158015611f2057600080fd5b505af1925050508015611f50575060408051601f3d908101601f19168201909252611f4d918101906127b1565b60015b611faa573d808015611f7e576040519150601f19603f3d011682016040523d82523d6000602084013e611f83565b606091505b508051611fa25760405162461bcd60e51b815260040161089890612aee565b805181602001fd5b6001600160e01b031916630a85bd0160e11b14905061170d565b506001949350505050565b6000808251604114156120065760208301516040840151606085015160001a611ffa87828585612382565b94509450505050612038565b825160401415612030576020830151604084015161202586838361246f565b935093505050612038565b506000905060025b9250929050565b600081600481111561206157634e487b7160e01b600052602160045260246000fd5b141561206a5750565b600181600481111561208c57634e487b7160e01b600052602160045260246000fd5b14156120da5760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610898565b60028160048111156120fc57634e487b7160e01b600052602160045260246000fd5b141561214a5760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610898565b600381600481111561216c57634e487b7160e01b600052602160045260246000fd5b14156121c55760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b6064820152608401610898565b60048160048111156121e757634e487b7160e01b600052602160045260246000fd5b141561154b5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b6064820152608401610898565b6001600160a01b0382166122965760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610898565b6000818152600260205260409020546001600160a01b0316156122fb5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610898565b6001600160a01b0382166000908152600360205260408120805460019290612324908490612c18565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08311156123b95750600090506003612466565b8460ff16601b141580156123d157508460ff16601c14155b156123e25750600090506004612466565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015612436573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b03811661245f57600060019250925050612466565b9150600090505b94509492505050565b6000806001600160ff1b03831660ff84901c601b0161249087828885612382565b935093505050935093915050565b8280546124aa90612c9e565b90600052602060002090601f0160209004810192826124cc5760008555612512565b82601f106124e557805160ff1916838001178555612512565b82800160010185558215612512579182015b828111156125125782518255916020019190600101906124f7565b5061251e929150612522565b5090565b5b8082111561251e5760008155600101612523565b600067ffffffffffffffff8084111561255257612552612d34565b604051601f8501601f19908116603f0116810190828211818310171561257a5761257a612d34565b8160405280935085815286868601111561259357600080fd5b858560208301376000602087830101525050509392505050565b60008083601f8401126125be578182fd5b50813567ffffffffffffffff8111156125d5578182fd5b60208301915083602082850101111561203857600080fd5b600082601f8301126125fd578081fd5b61146e83833560208501612537565b60006020828403121561261d578081fd5b813561146e81612d4a565b600060208284031215612639578081fd5b815161146e81612d4a565b60008060408385031215612656578081fd5b823561266181612d4a565b9150602083013561267181612d4a565b809150509250929050565b600080600060608486031215612690578081fd5b833561269b81612d4a565b925060208401356126ab81612d4a565b929592945050506040919091013590565b600080600080608085870312156126d1578081fd5b84356126dc81612d4a565b935060208501356126ec81612d4a565b925060408501359150606085013567ffffffffffffffff81111561270e578182fd5b8501601f8101871361271e578182fd5b61272d87823560208401612537565b91505092959194509250565b6000806040838503121561274b578182fd5b823561275681612d4a565b915060208301358015158114612671578182fd5b6000806040838503121561277c578182fd5b823561278781612d4a565b946020939093013593505050565b6000602082840312156127a6578081fd5b813561146e81612d5f565b6000602082840312156127c2578081fd5b815161146e81612d5f565b6000602082840312156127de578081fd5b813567ffffffffffffffff8111156127f4578182fd5b61170d848285016125ed565b600080600060408486031215612814578283fd5b833567ffffffffffffffff8082111561282b578485fd5b612837878388016125ed565b9450602086013591508082111561284c578384fd5b50612859868287016125ad565b9497909650939450505050565b6000806000806060858703121561287b578182fd5b843567ffffffffffffffff80821115612892578384fd5b61289e888389016125ed565b95506020870135945060408701359150808211156128ba578384fd5b506128c7878288016125ad565b95989497509550505050565b6000602082840312156128e4578081fd5b5035919050565b60008060008060608587031215612900578182fd5b84359350602085013567ffffffffffffffff8082111561291e578384fd5b61292a888389016125ed565b945060408701359150808211156128ba578384fd5b60008151808452612957816020860160208601612c5b565b601f01601f19169290920160200192915050565b6bffffffffffffffffffffffff198360601b16815260008251612995816014850160208701612c5b565b919091016014019392505050565b6bffffffffffffffffffffffff198460601b168152600083516129cd816014850160208801612c5b565b60149201918201929092526034019392505050565b600082516129f4818460208701612c5b565b9190910192915050565b60008351612a10818460208801612c5b565b835190830190612a24818360208801612c5b565b01949350505050565b83815260008351612a45816020850160208801612c5b565b60609390931b6bffffffffffffffffffffffff1916602092909301918201929092526034019392505050565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090612aa49083018461293f565b9695505050505050565b60208152600061146e602083018461293f565b60208082526013908201527253616c65206d7573742062652061637469766560681b604082015260600190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b602080825260119082015270496e76616c6964205369676e617475726560781b604082015260600190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6020808252600d908201526c135a5b9d08199a5b9a5cda1959609a1b604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b60008219821115612c2b57612c2b612d08565b500190565b600082612c3f57612c3f612d1e565b500490565b600082821015612c5657612c56612d08565b500390565b60005b83811015612c76578181015183820152602001612c5e565b838111156113945750506000910152565b600081612c9657612c96612d08565b506000190190565b600181811c90821680612cb257607f821691505b60208210811415612cd357634e487b7160e01b600052602260045260246000fd5b50919050565b6000600019821415612ced57612ced612d08565b5060010190565b600082612d0357612d03612d1e565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b038116811461154b57600080fd5b6001600160e01b03198116811461154b57600080fdfea26469706673582212205afb0352fc8802bfe1f7fe664b304e883c5743a61d22c780b2a6227c84ff57d264736f6c63430008040033

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

0000000000000000000000000000000000000000000000000000000000000040000000000000000000000000d9a151b9375a5e65f5e9895f6113a327a02420f8000000000000000000000000000000000000000000000000000000000000004168747470733a2f2f73332e616d617a6f6e6177732e636f6d2f646176696e63692e75732d656173742d312e61696d616b65726c6162732e636f6d2f746f6b656e2f00000000000000000000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : __uri (string): https://s3.amazonaws.com/davinci.us-east-1.aimakerlabs.com/token/
Arg [1] : __signer (address): 0xD9A151b9375A5E65F5e9895f6113A327A02420F8

-----Encoded View---------------
6 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000040
Arg [1] : 000000000000000000000000d9a151b9375a5e65f5e9895f6113a327a02420f8
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000041
Arg [3] : 68747470733a2f2f73332e616d617a6f6e6177732e636f6d2f646176696e6369
Arg [4] : 2e75732d656173742d312e61696d616b65726c6162732e636f6d2f746f6b656e
Arg [5] : 2f00000000000000000000000000000000000000000000000000000000000000


Loading...
Loading
Loading...
Loading
[ Download: CSV Export  ]
[ Download: CSV Export  ]

A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.