ETH Price: $2,887.82 (+7.33%)
 

Overview

Max Total Supply

723 ASGD

Holders

546

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Balance
1 ASGD
0x95f4B329E61e7158e19E0a157753f748ab0025C8
Loading...
Loading
Loading...
Loading
Loading...
Loading

Click here to update the token information / general information
# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
AstragladeUpgrade

Compiler Version
v0.8.0+commit.c7dfd78e

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MIT license
File 1 of 19 : AstragladeUpgrade.sol
//SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

import '@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol';
import '@openzeppelin/contracts/token/ERC721/extensions/ERC721Burnable.sol';
import '@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol';

import '@openzeppelin/contracts/utils/cryptography/ECDSA.sol';
import '@openzeppelin/contracts/utils/Strings.sol';

import '../ERC721Ownable.sol';
import '../ERC2981/IERC2981Royalties.sol';
import './IOldMetaHolder.sol';

/// @title AstragladeUpgrade
/// @author Simon Fremaux (@dievardump)
contract AstragladeUpgrade is
    IERC2981Royalties,
    ERC721Ownable,
    IERC721Receiver
{
    using ECDSA for bytes32;
    using Strings for uint256;

    // emitted when an Astraglade has been upgrade
    event AstragladeUpgraded(address indexed operator, uint256 indexed tokenId);

    // emitted when a token owner asks for a metadata update (image or signature)
    // because of rendering error
    event RequestUpdate(address indexed operator, uint256 indexed tokenId);

    struct MintingOrder {
        address to;
        uint256 expiration;
        uint256 seed;
        string signature;
        string imageHash;
    }

    struct AstragladeMeta {
        uint256 seed;
        string signature;
        string imageHash;
    }

    // start at the old contract last token Id minted
    uint256 public lastTokenId = 84;

    // signer that signs minting orders
    address public mintSigner;

    // how long before an order expires
    uint256 public expiration;

    // old astraglade contract to allow upgrade to new token
    address public oldAstragladeContract;

    // contract that holds metadata of previous contract Astraglades
    address public oldMetaHolder;

    // contract operator next to the owner
    address public contractOperator =
        address(0xD1edDfcc4596CC8bD0bd7495beaB9B979fc50336);

    // max supply
    uint256 constant MAX_SUPPLY = 5555;

    // price
    uint256 constant PRICE = 0.0888 ether;

    // project base render URI
    string private _baseRenderURI;

    // project description
    string internal _description;

    // list of Astraglades
    mapping(uint256 => AstragladeMeta) internal _astraglades;

    // saves if a minting order was already used or not
    mapping(bytes32 => uint256) public messageToTokenId;

    // request updates
    mapping(uint256 => bool) public requestUpdates;

    // remaining giveaways
    uint256 public remainingGiveaways = 100;

    // user giveaways
    mapping(address => uint8) public giveaways;

    // Petri already redeemed
    mapping(uint256 => bool) public petriRedeemed;

    address public artBlocks;

    address[3] public feeRecipients = [
        0xe4657aF058E3f844919c3ee713DF09c3F2949447,
        0xb275E5aa8011eA32506a91449B190213224aEc1e,
        0xdAC81C3642b520584eD0E743729F238D1c350E62
    ];

    modifier onlyOperator() {
        require(isOperator(msg.sender), 'Not operator.');
        _;
    }

    function isOperator(address operator) public view returns (bool) {
        return owner() == operator || contractOperator == operator;
    }

    /// @notice constructor
    /// @param name_ name of the contract (see ERC721)
    /// @param symbol_ symbol of the contract (see ERC721)
    /// @param contractURI_ The contract URI (containing its metadata) - can be empty ""
    /// @param openseaProxyRegistry_ OpenSea's proxy registry to allow gas-less listings - can be address(0)
    /// @param mintSigner_ Address of the wallet used to sign minting orders
    /// @param owner_ Address to whom transfer ownership (can be address(0), then owner is deployer)
    constructor(
        string memory name_,
        string memory symbol_,
        string memory contractURI_,
        address openseaProxyRegistry_,
        address mintSigner_,
        address owner_,
        address oldAstragladeContract_,
        address oldMetaHolder_,
        address artBlocks_
    )
        ERC721Ownable(
            name_,
            symbol_,
            contractURI_,
            openseaProxyRegistry_,
            owner_
        )
    {
        mintSigner = mintSigner_;
        oldAstragladeContract = oldAstragladeContract_;
        oldMetaHolder = oldMetaHolder_;
        artBlocks = artBlocks_;
    }

    /// @notice Mint one token using a minting order
    /// @dev mintingSignature must be a signature that matches `mintSigner` for `mintingOrder`
    /// @param mintingOrder the minting order
    /// @param mintingSignature signature for the mintingOrder
    /// @param petriId petri id to redeem if owner and not already redeemed the free AG
    function mint(
        MintingOrder memory mintingOrder,
        bytes memory mintingSignature,
        uint256 petriId
    ) external payable {
        bytes32 message = hashMintingOrder(mintingOrder)
            .toEthSignedMessageHash();

        address sender = msg.sender;

        require(
            message.recover(mintingSignature) == mintSigner,
            'Wrong minting order signature.'
        );

        require(
            mintingOrder.expiration >= block.timestamp,
            'Minting order expired.'
        );

        require(
            mintingOrder.to == sender,
            'Minting order for another address.'
        );

        require(mintingOrder.seed != 0, 'Seed can not be 0');

        require(messageToTokenId[message] == 0, 'Token already minted.');

        uint256 tokenId = lastTokenId + 1;

        require(tokenId <= MAX_SUPPLY, 'Max supply already reached.');

        uint256 mintingCost = PRICE;

        // For Each Petri (https://artblocks.io/project/67/) created by Fabin on artblocks.io
        // the owner can claim a free Astraglade
        // After a Petri was used, it CAN NOT be used again to claim another Astraglade
        if (petriId >= 67000000 && petriId < 67000200) {
            require(
                // petri was not redeemed already
                petriRedeemed[petriId] == false &&
                    // msg.sender is Petri owner
                    ERC721(artBlocks).ownerOf(petriId) == sender,
                'Petri already redeemed or not owner'
            );

            petriRedeemed[petriId] = true;
            mintingCost = 0;
        } else if (giveaways[sender] > 0) {
            // if the user has some free mints
            giveaways[sender]--;
            mintingCost = 0;
        }

        require(
            msg.value == mintingCost || isOperator(sender),
            'Incorrect value.'
        );

        lastTokenId = tokenId;

        messageToTokenId[message] = tokenId;

        _astraglades[tokenId] = AstragladeMeta({
            seed: mintingOrder.seed,
            signature: mintingOrder.signature,
            imageHash: mintingOrder.imageHash
        });

        _safeMint(mintingOrder.to, tokenId, '');
    }

    /// @inheritdoc	ERC165
    function supportsInterface(bytes4 interfaceId)
        public
        view
        virtual
        override
        returns (bool)
    {
        return
            ERC721Enumerable.supportsInterface(interfaceId) ||
            interfaceId == type(IERC2981Royalties).interfaceId;
    }

    /// @notice Helper to get the price
    /// @return the price to mint
    function getPrice() external pure returns (uint256) {
        return PRICE;
    }

    /// @notice tokenURI override that returns a data:json application
    /// @inheritdoc	ERC721
    function tokenURI(uint256 tokenId)
        public
        view
        override
        returns (string memory)
    {
        AstragladeMeta memory astraglade = getAstraglade(tokenId);

        string memory astraType;
        if (tokenId <= 10) {
            astraType = 'Universa';
        } else if (tokenId <= 100) {
            astraType = 'Galactica';
        } else if (tokenId <= 1000) {
            astraType = 'Nebula';
        } else if (tokenId <= 2500) {
            astraType = 'Meteora';
        } else if (tokenId <= 5554) {
            astraType = 'Solaris';
        } else {
            astraType = 'Quanta';
        }

        return
            string(
                abi.encodePacked(
                    'data:application/json;utf8,{"name":"Astraglade - ',
                    tokenId.toString(),
                    ' - ',
                    astraType,
                    '","license":"CC BY-SA 4.0","description":"',
                    getDescription(),
                    '","created_by":"Fabin Rasheed","twitter":"@astraglade","image":"ipfs://ipfs/',
                    astraglade.imageHash,
                    '","seed":"',
                    astraglade.seed.toString(),
                    '","signature":"',
                    astraglade.signature,
                    '","animation_url":"',
                    renderTokenURI(tokenId),
                    '"}'
                )
            );
    }

    /// @notice function that returns a string that can be used to render the current token
    /// @param tokenId tokenId
    /// @return the URI to render token
    function renderTokenURI(uint256 tokenId)
        public
        view
        returns (string memory)
    {
        AstragladeMeta memory astraglade = getAstraglade(tokenId);
        return
            string(
                abi.encodePacked(
                    getBaseRenderURI(),
                    '?seed=',
                    astraglade.seed.toString(),
                    '&signature=',
                    astraglade.signature
                )
            );
    }

    /// @notice Returns Metadata for Astraglade id
    /// @param tokenId the tokenId we want metadata for
    function getAstraglade(uint256 tokenId)
        public
        view
        returns (AstragladeMeta memory astraglade)
    {
        require(_exists(tokenId), 'Astraglade: nonexistent token');

        // if the metadata are in this contract
        if (_astraglades[tokenId].seed != 0) {
            astraglade = _astraglades[tokenId];
        } else {
            // or in the old one
            (
                uint256 seed,
                string memory signature,
                string memory imageHash
            ) = IOldMetaHolder(oldMetaHolder).get(tokenId);
            astraglade.seed = seed;
            astraglade.signature = signature;
            astraglade.imageHash = imageHash;
        }
    }

    /// @notice helper to get the description
    function getDescription() public view returns (string memory) {
        if (bytes(_description).length == 0) {
            return
                'Astraglade is an interactive, generative, 3D collectible project. Astraglades are collected through a unique social collection mechanism. Each version of Astraglade can be signed with a signature which will remain in the artwork forever.';
        }

        return _description;
    }

    /// @notice helper to set the description
    /// @param newDescription the new description
    function setDescription(string memory newDescription)
        external
        onlyOperator
    {
        _description = newDescription;
    }

    /// @notice helper to get the base expiration time
    function getExpiration() public view returns (uint256) {
        if (expiration == 0) {
            return 15 * 60;
        }

        return expiration;
    }

    /// @notice helper to set the expiration
    /// @param newExpiration the new expiration
    function setExpiration(uint256 newExpiration) external onlyOperator {
        expiration = newExpiration;
    }

    /// @notice helper to get the baseRenderURI
    function getBaseRenderURI() public view returns (string memory) {
        if (bytes(_baseRenderURI).length == 0) {
            return 'ipfs://ipfs/QmP85DSrtLAxSBnct9iUr7qNca43F3E4vuG6Jv5aoTh9w7';
        }

        return _baseRenderURI;
    }

    /// @notice helper to set the baseRenderURI
    /// @param newRenderURI the new renderURI
    function setBaseRenderURI(string memory newRenderURI)
        external
        onlyOperator
    {
        _baseRenderURI = newRenderURI;
    }

    /// @notice Helper to do giveaways - there can only be `remainingGiveaways` giveaways given all together
    /// @param winner the giveaway winner
    /// @param count how many we giveaway to recipient
    function giveaway(address winner, uint8 count) external onlyOperator {
        require(remainingGiveaways >= count, 'Giveaway limit reached');
        remainingGiveaways -= count;
        giveaways[winner] += count;
    }

    /// @dev Receive, for royalties
    receive() external payable {}

    /// @dev Owner withdraw balance function
    function withdraw() external onlyOperator {
        address[3] memory feeRecipients_ = feeRecipients;

        uint256 balance_ = address(this).balance;
        payable(address(feeRecipients_[0])).transfer((balance_ * 30) / 100);
        payable(address(feeRecipients_[1])).transfer((balance_ * 35) / 100);
        payable(address(feeRecipients_[2])).transfer(address(this).balance);
    }

    /// @notice helper to set the fee recipient at `index`
    /// @param newFeeRecipient the new address
    /// @param index the index to edit
    function setFeeRecipient(address newFeeRecipient, uint8 index)
        external
        onlyOperator
    {
        require(index < feeRecipients.length, 'Index too high.');
        require(newFeeRecipient != address(0), 'Invalid address.');

        feeRecipients[index] = newFeeRecipient;
    }

    /// @notice 10% royalties going to this contract
    /// @inheritdoc	IERC2981Royalties
    function royaltyInfo(uint256, uint256 value)
        external
        view
        override
        returns (address receiver, uint256 royaltyAmount)
    {
        receiver = address(this);
        royaltyAmount = (value * 1000) / 10000;
    }

    /// @notice Hash the Minting Order so it can be signed by the signer
    /// @param mintingOrder the minting order
    /// @return the hash to sign
    function hashMintingOrder(MintingOrder memory mintingOrder)
        public
        pure
        returns (bytes32)
    {
        return keccak256(abi.encode(mintingOrder));
    }

    /// @notice Helper for the owner to change current minting signer
    /// @dev needs to be owner
    /// @param mintSigner_ new signer
    function setMintingSigner(address mintSigner_) external onlyOperator {
        require(mintSigner_ != address(0), 'Invalid Signer address.');
        mintSigner = mintSigner_;
    }

    /// @notice Helper for an operator to change the current operator address
    /// @param newOperator the new operator
    function setContractOperator(address newOperator) external onlyOperator {
        contractOperator = newOperator;
    }

    /// @notice Helper for the owner to change the oldMetaHolder
    /// @dev needs to be owner
    /// @param oldMetaHolder_ new oldMetaHolder address
    function setOldMetaHolder(address oldMetaHolder_) external onlyOperator {
        require(oldMetaHolder_ != address(0), 'Invalid Contract address.');
        oldMetaHolder = oldMetaHolder_;
    }

    /// @notice Helpers that returns the MintingOrder plus the message to sign
    /// @param to the address of the creator
    /// @param seed the seed
    /// @param signature the signature
    /// @param imageHash image hash
    /// @return mintingOrder and message to hash
    function createMintingOrder(
        address to,
        uint256 seed,
        string memory signature,
        string memory imageHash
    )
        external
        view
        returns (MintingOrder memory mintingOrder, bytes32 message)
    {
        mintingOrder = MintingOrder({
            to: to,
            expiration: block.timestamp + getExpiration(),
            seed: seed,
            signature: signature,
            imageHash: imageHash
        });

        message = hashMintingOrder(mintingOrder);
    }

    /// @notice returns a tokenId from an mintingOrder, used to know if already minted
    /// @param mintingOrder the minting order to check
    /// @return an integer. 0 if not minted, else the tokenId
    function tokenIdFromOrder(MintingOrder memory mintingOrder)
        external
        view
        returns (uint256)
    {
        bytes32 message = hashMintingOrder(mintingOrder)
            .toEthSignedMessageHash();
        return messageToTokenId[message];
    }

    /// @notice Allows an owner to request a metadata update.
    ///         Because Astraglade are generated from a backend it can happen that a bug
    ///         blocks the generation of the image OR that a signature with special characters stops the
    ///         token from working.
    ///         This method allows a user to ask for regeneration of the image / signature update
    ///         A contract operator can then update imageHash and / or signature
    /// @param tokenId the tokenId to update
    function requestMetaUpdate(uint256 tokenId) external {
        require(ownerOf(tokenId) == msg.sender, 'Not token owner.');
        requestUpdates[tokenId] = true;
        emit RequestUpdate(msg.sender, tokenId);
    }

    /// @notice Allows an operator of this contract to update a tokenId metadata (signature or image hash)
    ///         after it was requested by its owner.
    ///         This is only used in the case the generation of the Preview image did fail
    ///         in some way or if the signature has special characters that stops the token from working
    /// @param tokenId the tokenId to update
    /// @param newImageHash the new imageHash (can be empty)
    /// @param newSignature the new signature (can be empty)
    function updateMeta(
        uint256 tokenId,
        string memory newImageHash,
        string memory newSignature
    ) external onlyOperator {
        require(
            requestUpdates[tokenId] == true,
            'No update request for token.'
        );
        requestUpdates[tokenId] = false;

        // get the current Astraglade data
        // for ids 1-82 it can come from oldMetaHolder
        AstragladeMeta memory astraglade = getAstraglade(tokenId);
        if (bytes(newImageHash).length > 0) {
            astraglade.imageHash = newImageHash;
        }

        if (bytes(newSignature).length > 0) {
            astraglade.signature = newSignature;
        }

        // save the new state
        _astraglades[tokenId] = astraglade;
    }

    /// @notice function used to allow upgrade of old contract Astraglade to this one.
    /// @inheritdoc	IERC721Receiver
    function onERC721Received(
        address,
        address from,
        uint256 tokenId,
        bytes calldata
    ) external override returns (bytes4) {
        require(msg.sender == oldAstragladeContract, 'Only old Astraglades.');
        // mint tokenId to from
        _mint(from, tokenId);

        // burn old tokenId
        ERC721Burnable(msg.sender).burn(tokenId);

        emit AstragladeUpgraded(from, tokenId);

        return 0x150b7a02;
    }
}

File 2 of 19 : Ownable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor() {
        _setOwner(_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 {
        _setOwner(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");
        _setOwner(newOwner);
    }

    function _setOwner(address newOwner) private {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

File 3 of 19 : ERC721.sol
// SPDX-License-Identifier: MIT

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 {
        require(operator != _msgSender(), "ERC721: approve to caller");

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

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

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

        _transfer(from, to, tokenId);
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        _beforeTokenTransfer(from, to, tokenId);

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

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

        emit Transfer(from, to, tokenId);
    }

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

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

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

File 4 of 19 : IERC721.sol
// SPDX-License-Identifier: MIT

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 5 of 19 : IERC721Receiver.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

File 6 of 19 : ERC721Burnable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

/**
 * @title ERC721 Burnable Token
 * @dev ERC721 Token that can be irreversibly burned (destroyed).
 */
abstract contract ERC721Burnable is Context, ERC721 {
    /**
     * @dev Burns `tokenId`. See {ERC721-_burn}.
     *
     * Requirements:
     *
     * - The caller must own `tokenId` or be an approved operator.
     */
    function burn(uint256 tokenId) public virtual {
        //solhint-disable-next-line max-line-length
        require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721Burnable: caller is not owner nor approved");
        _burn(tokenId);
    }
}

File 7 of 19 : ERC721Enumerable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

    /**
     * @dev 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` cannot be the zero address.
     * - `to` cannot be the zero address.
     *
     * 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 override {
        super._beforeTokenTransfer(from, to, tokenId);

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

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

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

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

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

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

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

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

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

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

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

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

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

File 8 of 19 : IERC721Enumerable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../IERC721.sol";

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

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

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

File 9 of 19 : IERC721Metadata.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../IERC721.sol";

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

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

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

File 10 of 19 : Address.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize, which returns 0 for contracts in
        // construction, since the code is only stored at the end of the
        // constructor execution.

        uint256 size;
        assembly {
            size := extcodesize(account)
        }
        return size > 0;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

    function _verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) private 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 11 of 19 : Context.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

File 12 of 19 : Strings.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

File 13 of 19 : ECDSA.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @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 {
    /**
     * @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.
     *
     * 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]
     */
    function recover(bytes32 hash, bytes memory signature) internal pure returns (address) {
        // 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 recover(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 recover(hash, r, vs);
        } else {
            revert("ECDSA: invalid signature length");
        }
    }

    /**
     * @dev Overload of {ECDSA-recover} 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.2._
     */
    function recover(
        bytes32 hash,
        bytes32 r,
        bytes32 vs
    ) internal pure returns (address) {
        bytes32 s;
        uint8 v;
        assembly {
            s := and(vs, 0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff)
            v := add(shr(255, vs), 27)
        }
        return recover(hash, v, r, s);
    }

    /**
     * @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) {
        // 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 (281): 0 < s < secp256k1n ÷ 2 + 1, and for v in (282): 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.
        require(
            uint256(s) <= 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0,
            "ECDSA: invalid signature 's' value"
        );
        require(v == 27 || v == 28, "ECDSA: invalid signature 'v' value");

        // If the signature is valid (and not malleable), return the signer address
        address signer = ecrecover(hash, v, r, s);
        require(signer != address(0), "ECDSA: invalid signature");

        return signer;
    }

    /**
     * @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 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 14 of 19 : ERC165.sol
// SPDX-License-Identifier: MIT

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

pragma solidity ^0.8.0;

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

File 16 of 19 : IERC2981Royalties.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

/// @title IERC2981Royalties
/// @dev Interface for the ERC2981 - Token Royalty standard
interface IERC2981Royalties {
    /// @notice Called with the sale price to determine how much royalty
    //          is owed and to whom.
    /// @param _tokenId - the NFT asset queried for royalty information
    /// @param _value - the sale price of the NFT asset specified by _tokenId
    /// @return _receiver - address of who should be sent the royalty payment
    /// @return _royaltyAmount - the royalty payment amount for value sale price
    function royaltyInfo(uint256 _tokenId, uint256 _value)
        external
        view
        returns (address _receiver, uint256 _royaltyAmount);
}

File 17 of 19 : ERC721Ownable.sol
//SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

import '@openzeppelin/contracts/access/Ownable.sol';
import '@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol';

import './OpenSea/BaseOpenSea.sol';

/// @title ERC721Ownable
/// @author Simon Fremaux (@dievardump)
contract ERC721Ownable is Ownable, ERC721Enumerable, BaseOpenSea {
    /// @notice constructor
    /// @param name_ name of the contract (see ERC721)
    /// @param symbol_ symbol of the contract (see ERC721)
    /// @param contractURI_ The contract URI (containing its metadata) - can be empty ""
    /// @param openseaProxyRegistry_ OpenSea's proxy registry to allow gas-less listings - can be address(0)
    /// @param owner_ Address to whom transfer ownership (can be address(0), then owner is deployer)
    constructor(
        string memory name_,
        string memory symbol_,
        string memory contractURI_,
        address openseaProxyRegistry_,
        address owner_
    ) ERC721(name_, symbol_) {
        // set contract uri if present
        if (bytes(contractURI_).length > 0) {
            _setContractURI(contractURI_);
        }

        // set OpenSea proxyRegistry for gas-less trading if present
        if (address(0) != openseaProxyRegistry_) {
            _setOpenSeaRegistry(openseaProxyRegistry_);
        }

        // transferOwnership if needed
        if (address(0) != owner_) {
            transferOwnership(owner_);
        }
    }

    /// @notice Allows to burn a tokenId
    /// @dev Burns `tokenId`. See {ERC721-_burn}.  The caller must own `tokenId` or be an approved operator.
    /// @param tokenId the tokenId to burn
    function burn(uint256 tokenId) public virtual {
        require(
            _isApprovedOrOwner(_msgSender(), tokenId),
            'ERC721Burnable: caller is not owner nor approved'
        );
        _burn(tokenId);
    }

    /// @notice Allows gas-less trading on OpenSea by safelisting the Proxy of the user
    /// @dev Override isApprovedForAll to check first if current operator is owner's OpenSea proxy
    /// @inheritdoc	ERC721
    function isApprovedForAll(address owner, address operator)
        public
        view
        override
        returns (bool)
    {
        // allows gas less trading on OpenSea
        if (isOwnersOpenSeaProxy(owner, operator)) {
            return true;
        }

        return super.isApprovedForAll(owner, operator);
    }

    /// @notice Helper for the owner of the contract to set the new contract URI
    /// @dev needs to be owner
    /// @param contractURI_ new contract URI
    function setContractURI(string memory contractURI_) external onlyOwner {
        _setContractURI(contractURI_);
    }
}

File 18 of 19 : BaseOpenSea.sol
//SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

/// @title OpenSea contract helper that defines a few things
/// @author Simon Fremaux (@dievardump)
/// @dev This is a contract used to add OpenSea's support
contract BaseOpenSea {
    string private _contractURI;
    ProxyRegistry private _proxyRegistry;

    /// @notice Returns the contract URI function. Used on OpenSea to get details
    //          about a contract (owner, royalties etc...)
    function contractURI() public view returns (string memory) {
        return _contractURI;
    }

    /// @notice Helper for OpenSea gas-less trading
    /// @dev Allows to check if `operator` is owner's OpenSea proxy
    /// @param owner the owner we check for
    /// @param operator the operator (proxy) we check for
    function isOwnersOpenSeaProxy(address owner, address operator)
        public
        view
        returns (bool)
    {
        ProxyRegistry proxyRegistry = _proxyRegistry;
        return
            // we have a proxy registry address
            address(proxyRegistry) != address(0) &&
            // current operator is owner's proxy address
            address(proxyRegistry.proxies(owner)) == operator;
    }

    /// @dev Internal function to set the _contractURI
    /// @param contractURI_ the new contract uri
    function _setContractURI(string memory contractURI_) internal {
        _contractURI = contractURI_;
    }

    /// @dev Internal function to set the _proxyRegistry
    /// @param proxyRegistryAddress the new proxy registry address
    function _setOpenSeaRegistry(address proxyRegistryAddress) internal {
        _proxyRegistry = ProxyRegistry(proxyRegistryAddress);
    }
}

contract OwnableDelegateProxy {}

contract ProxyRegistry {
    mapping(address => OwnableDelegateProxy) public proxies;
}

File 19 of 19 : IOldMetaHolder.sol
//SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

/// @title IOldMetaHolder
/// @author Simon Fremaux (@dievardump)
interface IOldMetaHolder {
    function get(uint256 tokenId)
        external
        pure
        returns (
            uint256,
            string memory,
            string memory
        );
}

Settings
{
  "evmVersion": "istanbul",
  "libraries": {},
  "metadata": {
    "bytecodeHash": "ipfs",
    "useLiteralContent": true
  },
  "optimizer": {
    "enabled": true,
    "runs": 200
  },
  "remappings": [],
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "abi"
      ]
    }
  }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"name_","type":"string"},{"internalType":"string","name":"symbol_","type":"string"},{"internalType":"string","name":"contractURI_","type":"string"},{"internalType":"address","name":"openseaProxyRegistry_","type":"address"},{"internalType":"address","name":"mintSigner_","type":"address"},{"internalType":"address","name":"owner_","type":"address"},{"internalType":"address","name":"oldAstragladeContract_","type":"address"},{"internalType":"address","name":"oldMetaHolder_","type":"address"},{"internalType":"address","name":"artBlocks_","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":"operator","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"AstragladeUpgraded","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":"operator","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"RequestUpdate","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"artBlocks","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"contractOperator","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"contractURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"seed","type":"uint256"},{"internalType":"string","name":"signature","type":"string"},{"internalType":"string","name":"imageHash","type":"string"}],"name":"createMintingOrder","outputs":[{"components":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"expiration","type":"uint256"},{"internalType":"uint256","name":"seed","type":"uint256"},{"internalType":"string","name":"signature","type":"string"},{"internalType":"string","name":"imageHash","type":"string"}],"internalType":"struct AstragladeUpgrade.MintingOrder","name":"mintingOrder","type":"tuple"},{"internalType":"bytes32","name":"message","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"expiration","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"feeRecipients","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getAstraglade","outputs":[{"components":[{"internalType":"uint256","name":"seed","type":"uint256"},{"internalType":"string","name":"signature","type":"string"},{"internalType":"string","name":"imageHash","type":"string"}],"internalType":"struct AstragladeUpgrade.AstragladeMeta","name":"astraglade","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getBaseRenderURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getDescription","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getExpiration","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address","name":"winner","type":"address"},{"internalType":"uint8","name":"count","type":"uint8"}],"name":"giveaway","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"giveaways","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"components":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"expiration","type":"uint256"},{"internalType":"uint256","name":"seed","type":"uint256"},{"internalType":"string","name":"signature","type":"string"},{"internalType":"string","name":"imageHash","type":"string"}],"internalType":"struct AstragladeUpgrade.MintingOrder","name":"mintingOrder","type":"tuple"}],"name":"hashMintingOrder","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"}],"name":"isOperator","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isOwnersOpenSeaProxy","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lastTokenId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"name":"messageToTokenId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"components":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"expiration","type":"uint256"},{"internalType":"uint256","name":"seed","type":"uint256"},{"internalType":"string","name":"signature","type":"string"},{"internalType":"string","name":"imageHash","type":"string"}],"internalType":"struct AstragladeUpgrade.MintingOrder","name":"mintingOrder","type":"tuple"},{"internalType":"bytes","name":"mintingSignature","type":"bytes"},{"internalType":"uint256","name":"petriId","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"mintSigner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"oldAstragladeContract","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"oldMetaHolder","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"from","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"","type":"bytes"}],"name":"onERC721Received","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"petriRedeemed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"remainingGiveaways","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"renderTokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"requestMetaUpdate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"requestUpdates","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint256","name":"royaltyAmount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"newRenderURI","type":"string"}],"name":"setBaseRenderURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOperator","type":"address"}],"name":"setContractOperator","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"contractURI_","type":"string"}],"name":"setContractURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"newDescription","type":"string"}],"name":"setDescription","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newExpiration","type":"uint256"}],"name":"setExpiration","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newFeeRecipient","type":"address"},{"internalType":"uint8","name":"index","type":"uint8"}],"name":"setFeeRecipient","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"mintSigner_","type":"address"}],"name":"setMintingSigner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"oldMetaHolder_","type":"address"}],"name":"setOldMetaHolder","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"components":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"expiration","type":"uint256"},{"internalType":"uint256","name":"seed","type":"uint256"},{"internalType":"string","name":"signature","type":"string"},{"internalType":"string","name":"imageHash","type":"string"}],"internalType":"struct AstragladeUpgrade.MintingOrder","name":"mintingOrder","type":"tuple"}],"name":"tokenIdFromOrder","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"string","name":"newImageHash","type":"string"},{"internalType":"string","name":"newSignature","type":"string"}],"name":"updateMeta","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]

6054600d55601280546001600160a01b03191673d1eddfcc4596cc8bd0bd7495beab9b979fc50336179055606460185560e060405273e4657af058e3f844919c3ee713df09c3f2949447608090815273b275e5aa8011ea32506a91449b190213224aec1e60a05273dac81c3642b520584ed0e743729f238d1c350e6260c0526200008e90601c906003620002d5565b503480156200009c57600080fd5b5060405162004bf238038062004bf2833981016040819052620000bf916200048e565b88888888878484620000da620000d4620001b1565b620001b5565b8151620000ef90600190602085019062000332565b5080516200010590600290602084019062000332565b505083511590506200011c576200011c8362000205565b6001600160a01b03821615620001375762000137826200021e565b6001600160a01b038116156200015257620001528162000240565b5050600e80546001600160a01b03199081166001600160a01b039a8b1617909155601080548216978a1697909717909655505060118054851693871693909317909255601b80549093169416939093179055506200065a945050505050565b3390565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b80516200021a90600b90602084019062000332565b5050565b600c80546001600160a01b0319166001600160a01b0392909216919091179055565b6200024a620001b1565b6001600160a01b03166200025d620002c6565b6001600160a01b0316146200028f5760405162461bcd60e51b81526004016200028690620005d2565b60405180910390fd5b6001600160a01b038116620002b85760405162461bcd60e51b815260040162000286906200058c565b620002c381620001b5565b50565b6000546001600160a01b031690565b826003810192821562000320579160200282015b828111156200032057825182546001600160a01b0319166001600160a01b03909116178255602090920191600190910190620002e9565b506200032e929150620003af565b5090565b828054620003409062000607565b90600052602060002090601f01602090048101928262000364576000855562000320565b82601f106200037f57805160ff191683800117855562000320565b8280016001018555821562000320579182015b828111156200032057825182559160200191906001019062000392565b5b808211156200032e5760008155600101620003b0565b80516001600160a01b0381168114620003de57600080fd5b919050565b600082601f830112620003f4578081fd5b81516001600160401b038082111562000411576200041162000644565b6040516020601f8401601f191682018101838111838210171562000439576200043962000644565b604052838252858401810187101562000450578485fd5b8492505b8383101562000473578583018101518284018201529182019162000454565b838311156200048457848185840101525b5095945050505050565b60008060008060008060008060006101208a8c031215620004ad578485fd5b89516001600160401b0380821115620004c4578687fd5b620004d28d838e01620003e3565b9a5060208c0151915080821115620004e8578687fd5b620004f68d838e01620003e3565b995060408c01519150808211156200050c578687fd5b506200051b8c828d01620003e3565b9750506200052c60608b01620003c6565b95506200053c60808b01620003c6565b94506200054c60a08b01620003c6565b93506200055c60c08b01620003c6565b92506200056c60e08b01620003c6565b91506200057d6101008b01620003c6565b90509295985092959850929598565b60208082526026908201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160408201526564647265737360d01b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6002810460018216806200061c57607f821691505b602082108114156200063e57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052604160045260246000fd5b614588806200066a6000396000f3fe60806040526004361061039b5760003560e01c806370a08231116101dc578063a24ffbd411610102578063c97f31bb116100a0578063e985e9c51161006f578063e985e9c514610a61578063f17af48d14610a81578063f2fde38b14610a96578063f84ddf0b14610ab6576103a2565b8063c97f31bb146109ec578063d517711c14610a0c578063dac4658014610a2c578063e8a3d48514610a4c576103a2565b8063b240cba3116100dc578063b240cba31461095f578063b55b97b61461098c578063b88d4fde146109ac578063c87b56dd146109cc576103a2565b8063a24ffbd4146108ff578063a5f602901461091f578063af66be3f1461093f576103a2565b80638f94ad281161017a578063986d9d8611610149578063986d9d861461089557806398d5fdca146108b55780639b561135146108ca578063a22cb465146108df576103a2565b80638f94ad281461082b57806390c3f38f14610840578063938e3d7b1461086057806395d89b4114610880576103a2565b8063814116f8116101b6578063814116f8146107c15780638bdb7519146107e15780638cd1d9d6146108015780638da5cb5b14610816576103a2565b806370a0823114610777578063715018a61461079757806371c69123146107ac576103a2565b80632a55205a116102c15780634f6ccce71161025f5780635760e50d1161022e5780635760e50d146106f75780636102de98146107175780636352211e146107375780636d70f7ae14610757576103a2565b80634f6ccce714610682578063515a20ba146106a257806351fe9eff146106c2578063568fb73c146106e2576103a2565b80633ef2c42a1161029b5780633ef2c42a1461060d57806342842e0e1461062d57806342966c681461064d5780634665096d1461066d576103a2565b80632a55205a146105aa5780632f745c59146105d85780633ccfd60b146105f8576103a2565b806319ac88491161033957806323b872dd1161030857806323b872dd1461051a57806324b1e5671461053a578063253b3dae14610567578063286f82f914610595576103a2565b806319ac8849146104b057806319f4a642146104d05780631a092541146104e55780631f22d2fe146104fa576103a2565b8063095ea7b311610375578063095ea7b31461042c578063150b7a021461044e57806318160ddd1461047b57806318e006351461049d576103a2565b806301ffc9a7146103a757806306fdde03146103dd578063081812fc146103ff576103a2565b366103a257005b600080fd5b3480156103b357600080fd5b506103c76103c236600461326e565b610acb565b6040516103d491906137dc565b60405180910390f35b3480156103e957600080fd5b506103f2610af9565b6040516103d49190613823565b34801561040b57600080fd5b5061041f61041a366004613256565b610b8c565b6040516103d4919061377c565b34801561043857600080fd5b5061044c610447366004613188565b610bd8565b005b34801561045a57600080fd5b5061046e610469366004613053565b610c70565b6040516103d4919061380e565b34801561048757600080fd5b50610490610d44565b6040516103d491906137e7565b61044c6104ab36600461330c565b610d4a565b3480156104bc57600080fd5b5061044c6104cb366004613256565b6110b9565b3480156104dc57600080fd5b5061041f61112f565b3480156104f157600080fd5b506103f261113e565b34801561050657600080fd5b506103f2610515366004613256565b611183565b34801561052657600080fd5b5061044c610535366004613013565b6111d1565b34801561054657600080fd5b5061055a610555366004612fa3565b611209565b6040516103d49190614224565b34801561057357600080fd5b506105876105823660046131b3565b61121e565b6040516103d4929190614202565b3480156105a157600080fd5b5061049061127f565b3480156105b657600080fd5b506105ca6105c5366004613440565b61129c565b6040516103d49291906137c3565b3480156105e457600080fd5b506104906105f3366004613188565b6112c1565b34801561060457600080fd5b5061044c611316565b34801561061957600080fd5b5061044c610628366004613224565b611465565b34801561063957600080fd5b5061044c610648366004613013565b61151b565b34801561065957600080fd5b5061044c610668366004613256565b611536565b34801561067957600080fd5b50610490611569565b34801561068e57600080fd5b5061049061069d366004613256565b61156f565b3480156106ae57600080fd5b5061044c6106bd366004613256565b6115ca565b3480156106ce57600080fd5b5061041f6106dd366004613256565b6115f4565b3480156106ee57600080fd5b50610490611614565b34801561070357600080fd5b506104906107123660046132d9565b61161a565b34801561072357600080fd5b506103c7610732366004612fdb565b61164a565b34801561074357600080fd5b5061041f610752366004613256565b6116fc565b34801561076357600080fd5b506103c7610772366004612fa3565b611731565b34801561078357600080fd5b50610490610792366004612fa3565b61176a565b3480156107a357600080fd5b5061044c6117ae565b3480156107b857600080fd5b5061041f6117f9565b3480156107cd57600080fd5b506104906107dc3660046132d9565b611808565b3480156107ed57600080fd5b5061044c6107fc3660046132a6565b61182d565b34801561080d57600080fd5b506103f2611869565b34801561082257600080fd5b5061041f6118ad565b34801561083757600080fd5b5061041f6118bc565b34801561084c57600080fd5b5061044c61085b3660046132a6565b6118cb565b34801561086c57600080fd5b5061044c61087b3660046132a6565b611903565b34801561088c57600080fd5b506103f261194b565b3480156108a157600080fd5b506103c76108b0366004613256565b61195a565b3480156108c157600080fd5b5061049061196f565b3480156108d657600080fd5b5061041f61197b565b3480156108eb57600080fd5b5061044c6108fa366004613157565b61198a565b34801561090b57600080fd5b5061044c61091a366004613224565b611a58565b34801561092b57600080fd5b5061044c61093a366004612fa3565b611b03565b34801561094b57600080fd5b5061044c61095a366004612fa3565b611b70565b34801561096b57600080fd5b5061097f61097a366004613256565b611bb7565b6040516103d491906141ac565b34801561099857600080fd5b5061044c6109a7366004612fa3565b611de9565b3480156109b857600080fd5b5061044c6109c73660046130ed565b611e56565b3480156109d857600080fd5b506103f26109e7366004613256565b611e95565b3480156109f857600080fd5b50610490610a07366004613256565b612004565b348015610a1857600080fd5b506103c7610a27366004613256565b612016565b348015610a3857600080fd5b5061044c610a47366004613376565b61202b565b348015610a5857600080fd5b506103f261210d565b348015610a6d57600080fd5b506103c7610a7c366004612fdb565b61211c565b348015610a8d57600080fd5b5061041f612146565b348015610aa257600080fd5b5061044c610ab1366004612fa3565b612155565b348015610ac257600080fd5b506104906121c3565b6000610ad6826121c9565b80610af157506001600160e01b0319821663152a902d60e11b145b90505b919050565b606060018054610b0890614354565b80601f0160208091040260200160405190810160405280929190818152602001828054610b3490614354565b8015610b815780601f10610b5657610100808354040283529160200191610b81565b820191906000526020600020905b815481529060010190602001808311610b6457829003601f168201915b505050505090505b90565b6000610b97826121ee565b610bbc5760405162461bcd60e51b8152600401610bb390613e7b565b60405180910390fd5b506000908152600560205260409020546001600160a01b031690565b6000610be3826116fc565b9050806001600160a01b0316836001600160a01b03161415610c175760405162461bcd60e51b8152600401610bb390613fa6565b806001600160a01b0316610c2961220b565b6001600160a01b03161480610c455750610c4581610a7c61220b565b610c615760405162461bcd60e51b8152600401610bb390613c52565b610c6b838361220f565b505050565b6010546000906001600160a01b03163314610c9d5760405162461bcd60e51b8152600401610bb390613ac2565b610ca7858561227d565b604051630852cd8d60e31b815233906342966c6890610cca9087906004016137e7565b600060405180830381600087803b158015610ce457600080fd5b505af1158015610cf8573d6000803e3d6000fd5b50506040518692506001600160a01b03881691507fc449db8b3871aad01803a63de94503b9e79638c818be9793985182837b84f6df90600090a350630a85bd0160e11b95945050505050565b60095490565b6000610d5d610d588561161a565b61235c565b600e5490915033906001600160a01b0316610d78838661236f565b6001600160a01b031614610d9e5760405162461bcd60e51b8152600401610bb3906140ab565b4285602001511015610dc25760405162461bcd60e51b8152600401610bb390613ba9565b806001600160a01b031685600001516001600160a01b031614610df75760405162461bcd60e51b8152600401610bb390613c10565b6040850151610e185760405162461bcd60e51b8152600401610bb390613da2565b60008281526016602052604090205415610e445760405162461bcd60e51b8152600401610bb3906138fe565b6000600d546001610e559190614284565b90506115b3811115610e795760405162461bcd60e51b8152600401610bb390613e44565b67013b7b21280e00006303fe56c08510801590610e9957506303fe578885105b15610f80576000858152601a602052604090205460ff16158015610f455750601b546040516331a9108f60e11b81526001600160a01b03808616921690636352211e90610eea9089906004016137e7565b60206040518083038186803b158015610f0257600080fd5b505afa158015610f16573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f3a9190612fbf565b6001600160a01b0316145b610f615760405162461bcd60e51b8152600401610bb3906140e2565b506000848152601a60205260408120805460ff19166001179055610fe6565b6001600160a01b03831660009081526019602052604090205460ff1615610fe6576001600160a01b0383166000908152601960205260408120805460ff1691610fc883614337565b91906101000a81548160ff021916908360ff16021790555050600090505b80341480610ff85750610ff883611731565b6110145760405162461bcd60e51b8152600401610bb390613ec7565b600d82905560008481526016602090815260408083208590558051606080820183528b83015182528b015181840190815260808c01518284015286855260158452919093208351815590518051919261107592600185019290910190612d64565b5060408201518051611091916002840191602090910190612d64565b505087516040805160208101909152600081526110b0925084906123e3565b50505050505050565b336110c3826116fc565b6001600160a01b0316146110e95760405162461bcd60e51b8152600401610bb39061386d565b600081815260176020526040808220805460ff1916600117905551829133917f19d11266b07f1c57d596b198caaa0f13e372464ea024dcd0ee51c806be1ab0729190a350565b6010546001600160a01b031681565b60606014805461114d90614354565b151590506111765760405180610120016040528060ed815260200161446660ed91399050610b89565b60148054610b0890614354565b6060600061119083611bb7565b905061119a611869565b81516111a590612416565b6020808401516040516111ba9493920161355b565b604051602081830303815290604052915050919050565b6111e26111dc61220b565b82612531565b6111fe5760405162461bcd60e51b8152600401610bb39061400e565b610c6b8383836125ae565b60196020526000908152604090205460ff1681565b611226612de8565b60006040518060a00160405280876001600160a01b0316815260200161124a61127f565b6112549042614284565b81526020018681526020018581526020018481525091506112748261161a565b905094509492505050565b6000600f54600014156112955750610384610b89565b50600f5490565b3060006127106112ae846103e86142d5565b6112b891906142c1565b90509250929050565b60006112cc8361176a565b82106112ea5760405162461bcd60e51b8152600401610bb39061392d565b506001600160a01b03821660009081526007602090815260408083208484529091529020545b92915050565b61131f33611731565b61133b5760405162461bcd60e51b8152600401610bb390613fe7565b604080516060810191829052600091601c9060039082845b81546001600160a01b031681526001909101906020018083116113535750939450479350849250600091506113859050565b60200201516001600160a01b03166108fc60646113a384601e6142d5565b6113ad91906142c1565b6040518115909202916000818181858888f193505050501580156113d5573d6000803e3d6000fd5b5060208201516001600160a01b03166108fc60646113f48460236142d5565b6113fe91906142c1565b6040518115909202916000818181858888f19350505050158015611426573d6000803e3d6000fd5b5081600260200201516040516001600160a01b03909116904780156108fc02916000818181858888f19350505050158015610c6b573d6000803e3d6000fd5b61146e33611731565b61148a5760405162461bcd60e51b8152600401610bb390613fe7565b60038160ff16106114ad5760405162461bcd60e51b8152600401610bb390613d79565b6001600160a01b0382166114d35760405162461bcd60e51b8152600401610bb390613b7f565b81601c8260ff16600381106114f857634e487b7160e01b600052603260045260246000fd5b0180546001600160a01b0319166001600160a01b03929092169190911790555050565b610c6b83838360405180602001604052806000815250611e56565b6115416111dc61220b565b61155d5760405162461bcd60e51b8152600401610bb390614125565b611566816126db565b50565b600f5481565b6000611579610d44565b82106115975760405162461bcd60e51b8152600401610bb39061405f565b600982815481106115b857634e487b7160e01b600052603260045260246000fd5b90600052602060002001549050919050565b6115d333611731565b6115ef5760405162461bcd60e51b8152600401610bb390613fe7565b600f55565b601c816003811061160457600080fd5b01546001600160a01b0316905081565b60185481565b60008160405160200161162d91906141ef565b604051602081830303815290604052805190602001209050919050565b600c546000906001600160a01b031680158015906116f45750826001600160a01b0316816001600160a01b031663c4552791866040518263ffffffff1660e01b8152600401611699919061377c565b60206040518083038186803b1580156116b157600080fd5b505afa1580156116c5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116e99190612fbf565b6001600160a01b0316145b949350505050565b6000818152600360205260408120546001600160a01b031680610af15760405162461bcd60e51b8152600401610bb390613cf9565b6000816001600160a01b03166117456118ad565b6001600160a01b03161480610af15750506012546001600160a01b0391821691161490565b60006001600160a01b0382166117925760405162461bcd60e51b8152600401610bb390613caf565b506001600160a01b031660009081526004602052604090205490565b6117b661220b565b6001600160a01b03166117c76118ad565b6001600160a01b0316146117ed5760405162461bcd60e51b8152600401610bb390613ef1565b6117f76000612782565b565b6011546001600160a01b031681565b600080611817610d588461161a565b6000908152601660205260409020549392505050565b61183633611731565b6118525760405162461bcd60e51b8152600401610bb390613fe7565b8051611865906013906020840190612d64565b5050565b60606013805461187890614354565b151590506118a0576040518060600160405280603a815260200161442c603a91399050610b89565b60138054610b0890614354565b6000546001600160a01b031690565b601b546001600160a01b031681565b6118d433611731565b6118f05760405162461bcd60e51b8152600401610bb390613fe7565b8051611865906014906020840190612d64565b61190b61220b565b6001600160a01b031661191c6118ad565b6001600160a01b0316146119425760405162461bcd60e51b8152600401610bb390613ef1565b611566816127d2565b606060028054610b0890614354565b60176020526000908152604090205460ff1681565b67013b7b21280e000090565b6012546001600160a01b031681565b61199261220b565b6001600160a01b0316826001600160a01b031614156119c35760405162461bcd60e51b8152600401610bb390613a8b565b80600660006119d061220b565b6001600160a01b03908116825260208083019390935260409182016000908120918716808252919093529120805460ff191692151592909217909155611a1461220b565b6001600160a01b03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051611a4c91906137dc565b60405180910390a35050565b611a6133611731565b611a7d5760405162461bcd60e51b8152600401610bb390613fe7565b8060ff166018541015611aa25760405162461bcd60e51b8152600401610bb390613897565b8060ff1660186000828254611ab791906142f4565b90915550506001600160a01b03821660009081526019602052604081208054839290611ae790849060ff1661429c565b92506101000a81548160ff021916908360ff1602179055505050565b611b0c33611731565b611b285760405162461bcd60e51b8152600401610bb390613fe7565b6001600160a01b038116611b4e5760405162461bcd60e51b8152600401610bb390613bd9565b600e80546001600160a01b0319166001600160a01b0392909216919091179055565b611b7933611731565b611b955760405162461bcd60e51b8152600401610bb390613fe7565b601280546001600160a01b0319166001600160a01b0392909216919091179055565b611bbf612e20565b611bc8826121ee565b611be45760405162461bcd60e51b8152600401610bb390613f26565b60008281526015602052604090205415611d4b576015600083815260200190815260200160002060405180606001604052908160008201548152602001600182018054611c3090614354565b80601f0160208091040260200160405190810160405280929190818152602001828054611c5c90614354565b8015611ca95780601f10611c7e57610100808354040283529160200191611ca9565b820191906000526020600020905b815481529060010190602001808311611c8c57829003601f168201915b50505050508152602001600282018054611cc290614354565b80601f0160208091040260200160405190810160405280929190818152602001828054611cee90614354565b8015611d3b5780601f10611d1057610100808354040283529160200191611d3b565b820191906000526020600020905b815481529060010190602001808311611d1e57829003601f168201915b5050505050815250509050610af4565b601154604051634a83e9cd60e11b8152600091829182916001600160a01b031690639507d39a90611d809088906004016137e7565b60006040518083038186803b158015611d9857600080fd5b505afa158015611dac573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052611dd491908101906133e0565b91865260208601526040850152505050919050565b611df233611731565b611e0e5760405162461bcd60e51b8152600401610bb390613fe7565b6001600160a01b038116611e345760405162461bcd60e51b8152600401610bb390613d42565b601180546001600160a01b0319166001600160a01b0392909216919091179055565b611e67611e6161220b565b83612531565b611e835760405162461bcd60e51b8152600401610bb39061400e565b611e8f848484846127e5565b50505050565b60606000611ea283611bb7565b90506060600a8411611ed35750604080518082019091526008815267556e69766572736160c01b6020820152611fa6565b60648411611f01575060408051808201909152600981526847616c61637469636160b81b6020820152611fa6565b6103e88411611f2d57506040805180820190915260068152654e6562756c6160d01b6020820152611fa6565b6109c48411611f5a57506040805180820190915260078152664d6574656f726160c81b6020820152611fa6565b6115b28411611f875750604080518082019091526007815266536f6c6172697360c81b6020820152611fa6565b506040805180820190915260068152655175616e746160d01b60208201525b611faf84612416565b81611fb861113e565b60408501518551611fc890612416565b8660200151611fd68a611183565b604051602001611fec97969594939291906135fa565b60405160208183030381529060405292505050919050565b60166020526000908152604090205481565b601a6020526000908152604090205460ff1681565b61203433611731565b6120505760405162461bcd60e51b8152600401610bb390613fe7565b60008381526017602052604090205460ff1615156001146120835760405162461bcd60e51b8152600401610bb390614175565b6000838152601760205260408120805460ff191690556120a284611bb7565b8351909150156120b457604081018390525b8151156120c357602081018290525b60008481526015602090815260409091208251815581830151805184936120f1926001850192910190612d64565b50604082015180516110b0916002840191602090910190612d64565b6060600b8054610b0890614354565b6000612128838361164a565b1561213557506001611310565b61213f8383612818565b9392505050565b600e546001600160a01b031681565b61215d61220b565b6001600160a01b031661216e6118ad565b6001600160a01b0316146121945760405162461bcd60e51b8152600401610bb390613ef1565b6001600160a01b0381166121ba5760405162461bcd60e51b8152600401610bb3906139ca565b61156681612782565b600d5481565b60006001600160e01b0319821663780e9d6360e01b1480610af15750610af182612846565b6000908152600360205260409020546001600160a01b0316151590565b3390565b600081815260056020526040902080546001600160a01b0319166001600160a01b0384169081179091558190612244826116fc565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6001600160a01b0382166122a35760405162461bcd60e51b8152600401610bb390613e0f565b6122ac816121ee565b156122c95760405162461bcd60e51b8152600401610bb390613a10565b6122d560008383612886565b6001600160a01b03821660009081526004602052604081208054600192906122fe908490614284565b909155505060008181526003602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b60008160405160200161162d91906135c9565b60008151604114156123a35760208201516040830151606084015160001a6123998682858561290f565b9350505050611310565b8151604014156123cb57602082015160408301516123c2858383612a05565b92505050611310565b60405162461bcd60e51b8152600401610bb3906138c7565b6123ed838361227d565b6123fa6000848484612a2f565b610c6b5760405162461bcd60e51b8152600401610bb390613978565b60608161243b57506040805180820190915260018152600360fc1b6020820152610af4565b8160005b8115612465578061244f8161438f565b915061245e9050600a836142c1565b915061243f565b60008167ffffffffffffffff81111561248e57634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156124b8576020820181803683370190505b5090505b84156116f4576124cd6001836142f4565b91506124da600a866143aa565b6124e5906030614284565b60f81b81838151811061250857634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a90535061252a600a866142c1565b94506124bc565b600061253c826121ee565b6125585760405162461bcd60e51b8152600401610bb390613b33565b6000612563836116fc565b9050806001600160a01b0316846001600160a01b0316148061259e5750836001600160a01b031661259384610b8c565b6001600160a01b0316145b806116f457506116f4818561211c565b826001600160a01b03166125c1826116fc565b6001600160a01b0316146125e75760405162461bcd60e51b8152600401610bb390613f5d565b6001600160a01b03821661260d5760405162461bcd60e51b8152600401610bb390613a47565b612618838383612886565b61262360008261220f565b6001600160a01b038316600090815260046020526040812080546001929061264c9084906142f4565b90915550506001600160a01b038216600090815260046020526040812080546001929061267a908490614284565b909155505060008181526003602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b60006126e6826116fc565b90506126f481600084612886565b6126ff60008361220f565b6001600160a01b03811660009081526004602052604081208054600192906127289084906142f4565b909155505060008281526003602052604080822080546001600160a01b0319169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b805161186590600b906020840190612d64565b6127f08484846125ae565b6127fc84848484612a2f565b611e8f5760405162461bcd60e51b8152600401610bb390613978565b6001600160a01b03918216600090815260066020908152604080832093909416825291909152205460ff1690565b60006001600160e01b031982166380ac58cd60e01b148061287757506001600160e01b03198216635b5e139f60e01b145b80610af15750610af182612b47565b612891838383610c6b565b6001600160a01b0383166128ad576128a881612b60565b6128d0565b816001600160a01b0316836001600160a01b0316146128d0576128d08382612ba4565b6001600160a01b0382166128ec576128e781612c41565b610c6b565b826001600160a01b0316826001600160a01b031614610c6b57610c6b8282612d1a565b60007f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08211156129515760405162461bcd60e51b8152600401610bb390613af1565b8360ff16601b148061296657508360ff16601c145b6129825760405162461bcd60e51b8152600401610bb390613dcd565b6000600186868686604051600081526020016040526040516129a794939291906137f0565b6020604051602081039080840390855afa1580156129c9573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381166129fc5760405162461bcd60e51b8152600401610bb390613836565b95945050505050565b60006001600160ff1b03821660ff83901c601b01612a258682878561290f565b9695505050505050565b6000612a43846001600160a01b0316612d5e565b15612b3f57836001600160a01b031663150b7a02612a5f61220b565b8786866040518563ffffffff1660e01b8152600401612a819493929190613790565b602060405180830381600087803b158015612a9b57600080fd5b505af1925050508015612acb575060408051601f3d908101601f19168201909252612ac89181019061328a565b60015b612b25573d808015612af9576040519150601f19603f3d011682016040523d82523d6000602084013e612afe565b606091505b508051612b1d5760405162461bcd60e51b8152600401610bb390613978565b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506116f4565b5060016116f4565b6001600160e01b031981166301ffc9a760e01b14919050565b600980546000838152600a60205260408120829055600182018355919091527f6e1540171b6c0c960b71a7020d9f60077f6af931a8bbf590da0223dacf75c7af0155565b60006001612bb18461176a565b612bbb91906142f4565b600083815260086020526040902054909150808214612c0e576001600160a01b03841660009081526007602090815260408083208584528252808320548484528184208190558352600890915290208190555b5060009182526008602090815260408084208490556001600160a01b039094168352600781528383209183525290812055565b600954600090612c53906001906142f4565b6000838152600a602052604081205460098054939450909284908110612c8957634e487b7160e01b600052603260045260246000fd5b906000526020600020015490508060098381548110612cb857634e487b7160e01b600052603260045260246000fd5b6000918252602080832090910192909255828152600a90915260408082208490558582528120556009805480612cfe57634e487b7160e01b600052603160045260246000fd5b6001900381819060005260206000200160009055905550505050565b6000612d258361176a565b6001600160a01b039093166000908152600760209081526040808320868452825280832085905593825260089052919091209190915550565b3b151590565b828054612d7090614354565b90600052602060002090601f016020900481019282612d925760008555612dd8565b82601f10612dab57805160ff1916838001178555612dd8565b82800160010185558215612dd8579182015b82811115612dd8578251825591602001919060010190612dbd565b50612de4929150612e41565b5090565b6040518060a0016040528060006001600160a01b03168152602001600081526020016000815260200160608152602001606081525090565b60405180606001604052806000815260200160608152602001606081525090565b5b80821115612de45760008155600101612e42565b8035610af481614400565b600082601f830112612e71578081fd5b8135612e84612e7f8261425c565b614232565b818152846020838601011115612e98578283fd5b816020850160208301379081016020019190915292915050565b600082601f830112612ec2578081fd5b8151612ed0612e7f8261425c565b818152846020838601011115612ee4578283fd5b6116f482602083016020870161430b565b600060a08284031215612f06578081fd5b60405160a0810167ffffffffffffffff8282108183111715612f2a57612f2a6143ea565b81604052829350612f3a85612e56565b835260208501356020840152604085013560408401526060850135915080821115612f6457600080fd5b612f7086838701612e61565b60608401526080850135915080821115612f8957600080fd5b50612f9685828601612e61565b6080830152505092915050565b600060208284031215612fb4578081fd5b813561213f81614400565b600060208284031215612fd0578081fd5b815161213f81614400565b60008060408385031215612fed578081fd5b8235612ff881614400565b9150602083013561300881614400565b809150509250929050565b600080600060608486031215613027578081fd5b833561303281614400565b9250602084013561304281614400565b929592945050506040919091013590565b60008060008060006080868803121561306a578081fd5b853561307581614400565b9450602086013561308581614400565b935060408601359250606086013567ffffffffffffffff808211156130a8578283fd5b818801915088601f8301126130bb578283fd5b8135818111156130c9578384fd5b8960208285010111156130da578384fd5b9699959850939650602001949392505050565b60008060008060808587031215613102578384fd5b843561310d81614400565b9350602085013561311d81614400565b925060408501359150606085013567ffffffffffffffff81111561313f578182fd5b61314b87828801612e61565b91505092959194509250565b60008060408385031215613169578182fd5b823561317481614400565b915060208301358015158114613008578182fd5b6000806040838503121561319a578182fd5b82356131a581614400565b946020939093013593505050565b600080600080608085870312156131c8578182fd5b84356131d381614400565b935060208501359250604085013567ffffffffffffffff808211156131f6578384fd5b61320288838901612e61565b93506060870135915080821115613217578283fd5b5061314b87828801612e61565b60008060408385031215613236578182fd5b823561324181614400565b9150602083013560ff81168114613008578182fd5b600060208284031215613267578081fd5b5035919050565b60006020828403121561327f578081fd5b813561213f81614415565b60006020828403121561329b578081fd5b815161213f81614415565b6000602082840312156132b7578081fd5b813567ffffffffffffffff8111156132cd578182fd5b6116f484828501612e61565b6000602082840312156132ea578081fd5b813567ffffffffffffffff811115613300578182fd5b6116f484828501612ef5565b600080600060608486031215613320578081fd5b833567ffffffffffffffff80821115613337578283fd5b61334387838801612ef5565b94506020860135915080821115613358578283fd5b5061336586828701612e61565b925050604084013590509250925092565b60008060006060848603121561338a578081fd5b83359250602084013567ffffffffffffffff808211156133a8578283fd5b6133b487838801612e61565b935060408601359150808211156133c9578283fd5b506133d686828701612e61565b9150509250925092565b6000806000606084860312156133f4578081fd5b83519250602084015167ffffffffffffffff80821115613412578283fd5b61341e87838801612eb2565b93506040860151915080821115613433578283fd5b506133d686828701612eb2565b60008060408385031215613452578182fd5b50508035926020909101359150565b6000815180845261347981602086016020860161430b565b601f01601f19169290920160200192915050565b6000815161349f81856020860161430b565b9290920192915050565b6911161139b2b2b2111d1160b11b8152600a0190565b7211161130b734b6b0ba34b7b72fbab936111d1160691b815260130190565b61227d60f01b815260020190565b6e11161139b4b3b730ba3ab932911d1160891b8152600f0190565b600060018060a01b0382511683526020820151602084015260408201516040840152606082015160a0606085015261354260a0850182613461565b9050608083015184820360808601526129fc8282613461565b6000845161356d81846020890161430b565b653f736565643d60d01b908301908152845161359081600684016020890161430b565b6a267369676e61747572653d60a81b6006929091019182015283516135bc81601184016020880161430b565b0160110195945050505050565b7f19457468657265756d205369676e6564204d6573736167653a0a3332000000008152601c810191909152603c0190565b60007f646174613a6170706c69636174696f6e2f6a736f6e3b757466382c7b226e616d825270032911d1120b9ba3930b3b630b23290169607d1b6020830152885161364c816031850160208d0161430b565b6201016960ed1b603191840191820152885161366f816034840160208d0161430b565b7f222c226c6963656e7365223a2243432042592d534120342e30222c226465736360349290910191820152693934b83a34b7b7111d1160b11b605482015287516136c081605e840160208c0161430b565b7f222c22637265617465645f6279223a22466162696e2052617368656564222c22605e92909101918201527f74776974746572223a22406173747261676c616465222c22696d616765223a22607e8201526b697066733a2f2f697066732f60a01b609e82015261376e61376961376361375e61375861375361374d61374860aa89018f61348d565b6134a9565b8c61348d565b6134ec565b8961348d565b6134bf565b8661348d565b6134de565b9a9950505050505050505050565b6001600160a01b0391909116815260200190565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090612a2590830184613461565b6001600160a01b03929092168252602082015260400190565b901515815260200190565b90815260200190565b93845260ff9290921660208401526040830152606082015260800190565b6001600160e01b031991909116815260200190565b60006020825261213f6020830184613461565b60208082526018908201527f45434453413a20696e76616c6964207369676e61747572650000000000000000604082015260600190565b60208082526010908201526f2737ba103a37b5b2b71037bbb732b91760811b604082015260600190565b60208082526016908201527511da5d99585dd85e481b1a5b5a5d081c995858da195960521b604082015260600190565b6020808252601f908201527f45434453413a20696e76616c6964207369676e6174757265206c656e67746800604082015260600190565b6020808252601590820152742a37b5b2b71030b63932b0b23c9036b4b73a32b21760591b604082015260600190565b6020808252602b908201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560408201526a74206f6620626f756e647360a81b606082015260800190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b60208082526026908201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160408201526564647265737360d01b606082015260800190565b6020808252601c908201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604082015260600190565b60208082526024908201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646040820152637265737360e01b606082015260800190565b60208082526019908201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604082015260600190565b60208082526015908201527427b7363c9037b6321020b9ba3930b3b630b232b99760591b604082015260600190565b60208082526022908201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604082015261756560f01b606082015260800190565b6020808252602c908201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860408201526b34b9ba32b73a103a37b5b2b760a11b606082015260800190565b60208082526010908201526f24b73b30b634b21030b2323932b9b99760811b604082015260600190565b60208082526016908201527526b4b73a34b7339037b93232b91032bc3834b932b21760511b604082015260600190565b60208082526017908201527f496e76616c6964205369676e657220616464726573732e000000000000000000604082015260600190565b60208082526022908201527f4d696e74696e67206f7264657220666f7220616e6f7468657220616464726573604082015261399760f11b606082015260800190565b60208082526038908201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760408201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000606082015260800190565b6020808252602a908201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604082015269726f206164647265737360b01b606082015260800190565b60208082526029908201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460408201526832b73a103a37b5b2b760b91b606082015260800190565b60208082526019908201527f496e76616c696420436f6e747261637420616464726573732e00000000000000604082015260600190565b6020808252600f908201526e24b73232bc103a37b7903434b3b41760891b604082015260600190565b6020808252601190820152700536565642063616e206e6f74206265203607c1b604082015260600190565b60208082526022908201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604082015261756560f01b606082015260800190565b6020808252818101527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604082015260600190565b6020808252601b908201527f4d617820737570706c7920616c726561647920726561636865642e0000000000604082015260600190565b6020808252602c908201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860408201526b34b9ba32b73a103a37b5b2b760a11b606082015260800190565b60208082526010908201526f24b731b7b93932b1ba103b30b63ab29760811b604082015260600190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6020808252601d908201527f4173747261676c6164653a206e6f6e6578697374656e7420746f6b656e000000604082015260600190565b60208082526029908201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960408201526839903737ba1037bbb760b91b606082015260800190565b60208082526021908201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656040820152603960f91b606082015260800190565b6020808252600d908201526c2737ba1037b832b930ba37b91760991b604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b6020808252602c908201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60408201526b7574206f6620626f756e647360a01b606082015260800190565b6020808252601e908201527f57726f6e67206d696e74696e67206f72646572207369676e61747572652e0000604082015260600190565b60208082526023908201527f506574726920616c72656164792072656465656d6564206f72206e6f74206f776040820152623732b960e91b606082015260800190565b60208082526030908201527f4552433732314275726e61626c653a2063616c6c6572206973206e6f74206f7760408201526f1b995c881b9bdc88185c1c1c9bdd995960821b606082015260800190565b6020808252601c908201527f4e6f20757064617465207265717565737420666f7220746f6b656e2e00000000604082015260600190565b600060208252825160208301526020830151606060408401526141d26080840182613461565b90506040840151601f198483030160608501526129fc8282613461565b60006020825261213f6020830184613507565b6000604082526142156040830185613507565b90508260208301529392505050565b60ff91909116815260200190565b60405181810167ffffffffffffffff81118282101715614254576142546143ea565b604052919050565b600067ffffffffffffffff821115614276576142766143ea565b50601f01601f191660200190565b60008219821115614297576142976143be565b500190565b600060ff821660ff84168060ff038211156142b9576142b96143be565b019392505050565b6000826142d0576142d06143d4565b500490565b60008160001904831182151516156142ef576142ef6143be565b500290565b600082821015614306576143066143be565b500390565b60005b8381101561432657818101518382015260200161430e565b83811115611e8f5750506000910152565b600060ff82168061434a5761434a6143be565b6000190192915050565b60028104600182168061436857607f821691505b6020821081141561438957634e487b7160e01b600052602260045260246000fd5b50919050565b60006000198214156143a3576143a36143be565b5060010190565b6000826143b9576143b96143d4565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b038116811461156657600080fd5b6001600160e01b03198116811461156657600080fdfe697066733a2f2f697066732f516d503835445372744c417853426e63743969557237714e6361343346334534767547364a7635616f54683977374173747261676c61646520697320616e20696e7465726163746976652c2067656e657261746976652c20334420636f6c6c65637469626c652070726f6a6563742e204173747261676c616465732061726520636f6c6c6563746564207468726f756768206120756e6971756520736f6369616c20636f6c6c656374696f6e206d656368616e69736d2e20456163682076657273696f6e206f66204173747261676c6164652063616e206265207369676e656420776974682061207369676e61747572652077686963682077696c6c2072656d61696e20696e2074686520617274776f726b20666f72657665722ea2646970667358221220947093ecd3f117093244f6a4cc703449383bc5a940a3a95762ec84edff9be0b364736f6c634300080000330000000000000000000000000000000000000000000000000000000000000120000000000000000000000000000000000000000000000000000000000000016000000000000000000000000000000000000000000000000000000000000001a0000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c1000000000000000000000000181f8d7ac9bfcda272fc07419f1593874f0724cb000000000000000000000000f2a841f4025159e5a845de3172384a7bca00ddde000000000000000000000000fb823ef60e00f8b151dbc2907bcf0a8f6647670200000000000000000000000015cac8ce4cb4f0a634bc20ac3bc6a405e06ea0ad000000000000000000000000a7d8d9ef8d8ce8992df33d8b8cf4aebabd5bd270000000000000000000000000000000000000000000000000000000000000000a4173747261676c6164650000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000044153474400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003a697066733a2f2f697066732f516d526d3170785a65426937316952616a4c626333706167374d5679656b61434d53574c63436f426a3775553668000000000000

Deployed Bytecode

0x60806040526004361061039b5760003560e01c806370a08231116101dc578063a24ffbd411610102578063c97f31bb116100a0578063e985e9c51161006f578063e985e9c514610a61578063f17af48d14610a81578063f2fde38b14610a96578063f84ddf0b14610ab6576103a2565b8063c97f31bb146109ec578063d517711c14610a0c578063dac4658014610a2c578063e8a3d48514610a4c576103a2565b8063b240cba3116100dc578063b240cba31461095f578063b55b97b61461098c578063b88d4fde146109ac578063c87b56dd146109cc576103a2565b8063a24ffbd4146108ff578063a5f602901461091f578063af66be3f1461093f576103a2565b80638f94ad281161017a578063986d9d8611610149578063986d9d861461089557806398d5fdca146108b55780639b561135146108ca578063a22cb465146108df576103a2565b80638f94ad281461082b57806390c3f38f14610840578063938e3d7b1461086057806395d89b4114610880576103a2565b8063814116f8116101b6578063814116f8146107c15780638bdb7519146107e15780638cd1d9d6146108015780638da5cb5b14610816576103a2565b806370a0823114610777578063715018a61461079757806371c69123146107ac576103a2565b80632a55205a116102c15780634f6ccce71161025f5780635760e50d1161022e5780635760e50d146106f75780636102de98146107175780636352211e146107375780636d70f7ae14610757576103a2565b80634f6ccce714610682578063515a20ba146106a257806351fe9eff146106c2578063568fb73c146106e2576103a2565b80633ef2c42a1161029b5780633ef2c42a1461060d57806342842e0e1461062d57806342966c681461064d5780634665096d1461066d576103a2565b80632a55205a146105aa5780632f745c59146105d85780633ccfd60b146105f8576103a2565b806319ac88491161033957806323b872dd1161030857806323b872dd1461051a57806324b1e5671461053a578063253b3dae14610567578063286f82f914610595576103a2565b806319ac8849146104b057806319f4a642146104d05780631a092541146104e55780631f22d2fe146104fa576103a2565b8063095ea7b311610375578063095ea7b31461042c578063150b7a021461044e57806318160ddd1461047b57806318e006351461049d576103a2565b806301ffc9a7146103a757806306fdde03146103dd578063081812fc146103ff576103a2565b366103a257005b600080fd5b3480156103b357600080fd5b506103c76103c236600461326e565b610acb565b6040516103d491906137dc565b60405180910390f35b3480156103e957600080fd5b506103f2610af9565b6040516103d49190613823565b34801561040b57600080fd5b5061041f61041a366004613256565b610b8c565b6040516103d4919061377c565b34801561043857600080fd5b5061044c610447366004613188565b610bd8565b005b34801561045a57600080fd5b5061046e610469366004613053565b610c70565b6040516103d4919061380e565b34801561048757600080fd5b50610490610d44565b6040516103d491906137e7565b61044c6104ab36600461330c565b610d4a565b3480156104bc57600080fd5b5061044c6104cb366004613256565b6110b9565b3480156104dc57600080fd5b5061041f61112f565b3480156104f157600080fd5b506103f261113e565b34801561050657600080fd5b506103f2610515366004613256565b611183565b34801561052657600080fd5b5061044c610535366004613013565b6111d1565b34801561054657600080fd5b5061055a610555366004612fa3565b611209565b6040516103d49190614224565b34801561057357600080fd5b506105876105823660046131b3565b61121e565b6040516103d4929190614202565b3480156105a157600080fd5b5061049061127f565b3480156105b657600080fd5b506105ca6105c5366004613440565b61129c565b6040516103d49291906137c3565b3480156105e457600080fd5b506104906105f3366004613188565b6112c1565b34801561060457600080fd5b5061044c611316565b34801561061957600080fd5b5061044c610628366004613224565b611465565b34801561063957600080fd5b5061044c610648366004613013565b61151b565b34801561065957600080fd5b5061044c610668366004613256565b611536565b34801561067957600080fd5b50610490611569565b34801561068e57600080fd5b5061049061069d366004613256565b61156f565b3480156106ae57600080fd5b5061044c6106bd366004613256565b6115ca565b3480156106ce57600080fd5b5061041f6106dd366004613256565b6115f4565b3480156106ee57600080fd5b50610490611614565b34801561070357600080fd5b506104906107123660046132d9565b61161a565b34801561072357600080fd5b506103c7610732366004612fdb565b61164a565b34801561074357600080fd5b5061041f610752366004613256565b6116fc565b34801561076357600080fd5b506103c7610772366004612fa3565b611731565b34801561078357600080fd5b50610490610792366004612fa3565b61176a565b3480156107a357600080fd5b5061044c6117ae565b3480156107b857600080fd5b5061041f6117f9565b3480156107cd57600080fd5b506104906107dc3660046132d9565b611808565b3480156107ed57600080fd5b5061044c6107fc3660046132a6565b61182d565b34801561080d57600080fd5b506103f2611869565b34801561082257600080fd5b5061041f6118ad565b34801561083757600080fd5b5061041f6118bc565b34801561084c57600080fd5b5061044c61085b3660046132a6565b6118cb565b34801561086c57600080fd5b5061044c61087b3660046132a6565b611903565b34801561088c57600080fd5b506103f261194b565b3480156108a157600080fd5b506103c76108b0366004613256565b61195a565b3480156108c157600080fd5b5061049061196f565b3480156108d657600080fd5b5061041f61197b565b3480156108eb57600080fd5b5061044c6108fa366004613157565b61198a565b34801561090b57600080fd5b5061044c61091a366004613224565b611a58565b34801561092b57600080fd5b5061044c61093a366004612fa3565b611b03565b34801561094b57600080fd5b5061044c61095a366004612fa3565b611b70565b34801561096b57600080fd5b5061097f61097a366004613256565b611bb7565b6040516103d491906141ac565b34801561099857600080fd5b5061044c6109a7366004612fa3565b611de9565b3480156109b857600080fd5b5061044c6109c73660046130ed565b611e56565b3480156109d857600080fd5b506103f26109e7366004613256565b611e95565b3480156109f857600080fd5b50610490610a07366004613256565b612004565b348015610a1857600080fd5b506103c7610a27366004613256565b612016565b348015610a3857600080fd5b5061044c610a47366004613376565b61202b565b348015610a5857600080fd5b506103f261210d565b348015610a6d57600080fd5b506103c7610a7c366004612fdb565b61211c565b348015610a8d57600080fd5b5061041f612146565b348015610aa257600080fd5b5061044c610ab1366004612fa3565b612155565b348015610ac257600080fd5b506104906121c3565b6000610ad6826121c9565b80610af157506001600160e01b0319821663152a902d60e11b145b90505b919050565b606060018054610b0890614354565b80601f0160208091040260200160405190810160405280929190818152602001828054610b3490614354565b8015610b815780601f10610b5657610100808354040283529160200191610b81565b820191906000526020600020905b815481529060010190602001808311610b6457829003601f168201915b505050505090505b90565b6000610b97826121ee565b610bbc5760405162461bcd60e51b8152600401610bb390613e7b565b60405180910390fd5b506000908152600560205260409020546001600160a01b031690565b6000610be3826116fc565b9050806001600160a01b0316836001600160a01b03161415610c175760405162461bcd60e51b8152600401610bb390613fa6565b806001600160a01b0316610c2961220b565b6001600160a01b03161480610c455750610c4581610a7c61220b565b610c615760405162461bcd60e51b8152600401610bb390613c52565b610c6b838361220f565b505050565b6010546000906001600160a01b03163314610c9d5760405162461bcd60e51b8152600401610bb390613ac2565b610ca7858561227d565b604051630852cd8d60e31b815233906342966c6890610cca9087906004016137e7565b600060405180830381600087803b158015610ce457600080fd5b505af1158015610cf8573d6000803e3d6000fd5b50506040518692506001600160a01b03881691507fc449db8b3871aad01803a63de94503b9e79638c818be9793985182837b84f6df90600090a350630a85bd0160e11b95945050505050565b60095490565b6000610d5d610d588561161a565b61235c565b600e5490915033906001600160a01b0316610d78838661236f565b6001600160a01b031614610d9e5760405162461bcd60e51b8152600401610bb3906140ab565b4285602001511015610dc25760405162461bcd60e51b8152600401610bb390613ba9565b806001600160a01b031685600001516001600160a01b031614610df75760405162461bcd60e51b8152600401610bb390613c10565b6040850151610e185760405162461bcd60e51b8152600401610bb390613da2565b60008281526016602052604090205415610e445760405162461bcd60e51b8152600401610bb3906138fe565b6000600d546001610e559190614284565b90506115b3811115610e795760405162461bcd60e51b8152600401610bb390613e44565b67013b7b21280e00006303fe56c08510801590610e9957506303fe578885105b15610f80576000858152601a602052604090205460ff16158015610f455750601b546040516331a9108f60e11b81526001600160a01b03808616921690636352211e90610eea9089906004016137e7565b60206040518083038186803b158015610f0257600080fd5b505afa158015610f16573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f3a9190612fbf565b6001600160a01b0316145b610f615760405162461bcd60e51b8152600401610bb3906140e2565b506000848152601a60205260408120805460ff19166001179055610fe6565b6001600160a01b03831660009081526019602052604090205460ff1615610fe6576001600160a01b0383166000908152601960205260408120805460ff1691610fc883614337565b91906101000a81548160ff021916908360ff16021790555050600090505b80341480610ff85750610ff883611731565b6110145760405162461bcd60e51b8152600401610bb390613ec7565b600d82905560008481526016602090815260408083208590558051606080820183528b83015182528b015181840190815260808c01518284015286855260158452919093208351815590518051919261107592600185019290910190612d64565b5060408201518051611091916002840191602090910190612d64565b505087516040805160208101909152600081526110b0925084906123e3565b50505050505050565b336110c3826116fc565b6001600160a01b0316146110e95760405162461bcd60e51b8152600401610bb39061386d565b600081815260176020526040808220805460ff1916600117905551829133917f19d11266b07f1c57d596b198caaa0f13e372464ea024dcd0ee51c806be1ab0729190a350565b6010546001600160a01b031681565b60606014805461114d90614354565b151590506111765760405180610120016040528060ed815260200161446660ed91399050610b89565b60148054610b0890614354565b6060600061119083611bb7565b905061119a611869565b81516111a590612416565b6020808401516040516111ba9493920161355b565b604051602081830303815290604052915050919050565b6111e26111dc61220b565b82612531565b6111fe5760405162461bcd60e51b8152600401610bb39061400e565b610c6b8383836125ae565b60196020526000908152604090205460ff1681565b611226612de8565b60006040518060a00160405280876001600160a01b0316815260200161124a61127f565b6112549042614284565b81526020018681526020018581526020018481525091506112748261161a565b905094509492505050565b6000600f54600014156112955750610384610b89565b50600f5490565b3060006127106112ae846103e86142d5565b6112b891906142c1565b90509250929050565b60006112cc8361176a565b82106112ea5760405162461bcd60e51b8152600401610bb39061392d565b506001600160a01b03821660009081526007602090815260408083208484529091529020545b92915050565b61131f33611731565b61133b5760405162461bcd60e51b8152600401610bb390613fe7565b604080516060810191829052600091601c9060039082845b81546001600160a01b031681526001909101906020018083116113535750939450479350849250600091506113859050565b60200201516001600160a01b03166108fc60646113a384601e6142d5565b6113ad91906142c1565b6040518115909202916000818181858888f193505050501580156113d5573d6000803e3d6000fd5b5060208201516001600160a01b03166108fc60646113f48460236142d5565b6113fe91906142c1565b6040518115909202916000818181858888f19350505050158015611426573d6000803e3d6000fd5b5081600260200201516040516001600160a01b03909116904780156108fc02916000818181858888f19350505050158015610c6b573d6000803e3d6000fd5b61146e33611731565b61148a5760405162461bcd60e51b8152600401610bb390613fe7565b60038160ff16106114ad5760405162461bcd60e51b8152600401610bb390613d79565b6001600160a01b0382166114d35760405162461bcd60e51b8152600401610bb390613b7f565b81601c8260ff16600381106114f857634e487b7160e01b600052603260045260246000fd5b0180546001600160a01b0319166001600160a01b03929092169190911790555050565b610c6b83838360405180602001604052806000815250611e56565b6115416111dc61220b565b61155d5760405162461bcd60e51b8152600401610bb390614125565b611566816126db565b50565b600f5481565b6000611579610d44565b82106115975760405162461bcd60e51b8152600401610bb39061405f565b600982815481106115b857634e487b7160e01b600052603260045260246000fd5b90600052602060002001549050919050565b6115d333611731565b6115ef5760405162461bcd60e51b8152600401610bb390613fe7565b600f55565b601c816003811061160457600080fd5b01546001600160a01b0316905081565b60185481565b60008160405160200161162d91906141ef565b604051602081830303815290604052805190602001209050919050565b600c546000906001600160a01b031680158015906116f45750826001600160a01b0316816001600160a01b031663c4552791866040518263ffffffff1660e01b8152600401611699919061377c565b60206040518083038186803b1580156116b157600080fd5b505afa1580156116c5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116e99190612fbf565b6001600160a01b0316145b949350505050565b6000818152600360205260408120546001600160a01b031680610af15760405162461bcd60e51b8152600401610bb390613cf9565b6000816001600160a01b03166117456118ad565b6001600160a01b03161480610af15750506012546001600160a01b0391821691161490565b60006001600160a01b0382166117925760405162461bcd60e51b8152600401610bb390613caf565b506001600160a01b031660009081526004602052604090205490565b6117b661220b565b6001600160a01b03166117c76118ad565b6001600160a01b0316146117ed5760405162461bcd60e51b8152600401610bb390613ef1565b6117f76000612782565b565b6011546001600160a01b031681565b600080611817610d588461161a565b6000908152601660205260409020549392505050565b61183633611731565b6118525760405162461bcd60e51b8152600401610bb390613fe7565b8051611865906013906020840190612d64565b5050565b60606013805461187890614354565b151590506118a0576040518060600160405280603a815260200161442c603a91399050610b89565b60138054610b0890614354565b6000546001600160a01b031690565b601b546001600160a01b031681565b6118d433611731565b6118f05760405162461bcd60e51b8152600401610bb390613fe7565b8051611865906014906020840190612d64565b61190b61220b565b6001600160a01b031661191c6118ad565b6001600160a01b0316146119425760405162461bcd60e51b8152600401610bb390613ef1565b611566816127d2565b606060028054610b0890614354565b60176020526000908152604090205460ff1681565b67013b7b21280e000090565b6012546001600160a01b031681565b61199261220b565b6001600160a01b0316826001600160a01b031614156119c35760405162461bcd60e51b8152600401610bb390613a8b565b80600660006119d061220b565b6001600160a01b03908116825260208083019390935260409182016000908120918716808252919093529120805460ff191692151592909217909155611a1461220b565b6001600160a01b03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051611a4c91906137dc565b60405180910390a35050565b611a6133611731565b611a7d5760405162461bcd60e51b8152600401610bb390613fe7565b8060ff166018541015611aa25760405162461bcd60e51b8152600401610bb390613897565b8060ff1660186000828254611ab791906142f4565b90915550506001600160a01b03821660009081526019602052604081208054839290611ae790849060ff1661429c565b92506101000a81548160ff021916908360ff1602179055505050565b611b0c33611731565b611b285760405162461bcd60e51b8152600401610bb390613fe7565b6001600160a01b038116611b4e5760405162461bcd60e51b8152600401610bb390613bd9565b600e80546001600160a01b0319166001600160a01b0392909216919091179055565b611b7933611731565b611b955760405162461bcd60e51b8152600401610bb390613fe7565b601280546001600160a01b0319166001600160a01b0392909216919091179055565b611bbf612e20565b611bc8826121ee565b611be45760405162461bcd60e51b8152600401610bb390613f26565b60008281526015602052604090205415611d4b576015600083815260200190815260200160002060405180606001604052908160008201548152602001600182018054611c3090614354565b80601f0160208091040260200160405190810160405280929190818152602001828054611c5c90614354565b8015611ca95780601f10611c7e57610100808354040283529160200191611ca9565b820191906000526020600020905b815481529060010190602001808311611c8c57829003601f168201915b50505050508152602001600282018054611cc290614354565b80601f0160208091040260200160405190810160405280929190818152602001828054611cee90614354565b8015611d3b5780601f10611d1057610100808354040283529160200191611d3b565b820191906000526020600020905b815481529060010190602001808311611d1e57829003601f168201915b5050505050815250509050610af4565b601154604051634a83e9cd60e11b8152600091829182916001600160a01b031690639507d39a90611d809088906004016137e7565b60006040518083038186803b158015611d9857600080fd5b505afa158015611dac573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052611dd491908101906133e0565b91865260208601526040850152505050919050565b611df233611731565b611e0e5760405162461bcd60e51b8152600401610bb390613fe7565b6001600160a01b038116611e345760405162461bcd60e51b8152600401610bb390613d42565b601180546001600160a01b0319166001600160a01b0392909216919091179055565b611e67611e6161220b565b83612531565b611e835760405162461bcd60e51b8152600401610bb39061400e565b611e8f848484846127e5565b50505050565b60606000611ea283611bb7565b90506060600a8411611ed35750604080518082019091526008815267556e69766572736160c01b6020820152611fa6565b60648411611f01575060408051808201909152600981526847616c61637469636160b81b6020820152611fa6565b6103e88411611f2d57506040805180820190915260068152654e6562756c6160d01b6020820152611fa6565b6109c48411611f5a57506040805180820190915260078152664d6574656f726160c81b6020820152611fa6565b6115b28411611f875750604080518082019091526007815266536f6c6172697360c81b6020820152611fa6565b506040805180820190915260068152655175616e746160d01b60208201525b611faf84612416565b81611fb861113e565b60408501518551611fc890612416565b8660200151611fd68a611183565b604051602001611fec97969594939291906135fa565b60405160208183030381529060405292505050919050565b60166020526000908152604090205481565b601a6020526000908152604090205460ff1681565b61203433611731565b6120505760405162461bcd60e51b8152600401610bb390613fe7565b60008381526017602052604090205460ff1615156001146120835760405162461bcd60e51b8152600401610bb390614175565b6000838152601760205260408120805460ff191690556120a284611bb7565b8351909150156120b457604081018390525b8151156120c357602081018290525b60008481526015602090815260409091208251815581830151805184936120f1926001850192910190612d64565b50604082015180516110b0916002840191602090910190612d64565b6060600b8054610b0890614354565b6000612128838361164a565b1561213557506001611310565b61213f8383612818565b9392505050565b600e546001600160a01b031681565b61215d61220b565b6001600160a01b031661216e6118ad565b6001600160a01b0316146121945760405162461bcd60e51b8152600401610bb390613ef1565b6001600160a01b0381166121ba5760405162461bcd60e51b8152600401610bb3906139ca565b61156681612782565b600d5481565b60006001600160e01b0319821663780e9d6360e01b1480610af15750610af182612846565b6000908152600360205260409020546001600160a01b0316151590565b3390565b600081815260056020526040902080546001600160a01b0319166001600160a01b0384169081179091558190612244826116fc565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6001600160a01b0382166122a35760405162461bcd60e51b8152600401610bb390613e0f565b6122ac816121ee565b156122c95760405162461bcd60e51b8152600401610bb390613a10565b6122d560008383612886565b6001600160a01b03821660009081526004602052604081208054600192906122fe908490614284565b909155505060008181526003602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b60008160405160200161162d91906135c9565b60008151604114156123a35760208201516040830151606084015160001a6123998682858561290f565b9350505050611310565b8151604014156123cb57602082015160408301516123c2858383612a05565b92505050611310565b60405162461bcd60e51b8152600401610bb3906138c7565b6123ed838361227d565b6123fa6000848484612a2f565b610c6b5760405162461bcd60e51b8152600401610bb390613978565b60608161243b57506040805180820190915260018152600360fc1b6020820152610af4565b8160005b8115612465578061244f8161438f565b915061245e9050600a836142c1565b915061243f565b60008167ffffffffffffffff81111561248e57634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156124b8576020820181803683370190505b5090505b84156116f4576124cd6001836142f4565b91506124da600a866143aa565b6124e5906030614284565b60f81b81838151811061250857634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a90535061252a600a866142c1565b94506124bc565b600061253c826121ee565b6125585760405162461bcd60e51b8152600401610bb390613b33565b6000612563836116fc565b9050806001600160a01b0316846001600160a01b0316148061259e5750836001600160a01b031661259384610b8c565b6001600160a01b0316145b806116f457506116f4818561211c565b826001600160a01b03166125c1826116fc565b6001600160a01b0316146125e75760405162461bcd60e51b8152600401610bb390613f5d565b6001600160a01b03821661260d5760405162461bcd60e51b8152600401610bb390613a47565b612618838383612886565b61262360008261220f565b6001600160a01b038316600090815260046020526040812080546001929061264c9084906142f4565b90915550506001600160a01b038216600090815260046020526040812080546001929061267a908490614284565b909155505060008181526003602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b60006126e6826116fc565b90506126f481600084612886565b6126ff60008361220f565b6001600160a01b03811660009081526004602052604081208054600192906127289084906142f4565b909155505060008281526003602052604080822080546001600160a01b0319169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b805161186590600b906020840190612d64565b6127f08484846125ae565b6127fc84848484612a2f565b611e8f5760405162461bcd60e51b8152600401610bb390613978565b6001600160a01b03918216600090815260066020908152604080832093909416825291909152205460ff1690565b60006001600160e01b031982166380ac58cd60e01b148061287757506001600160e01b03198216635b5e139f60e01b145b80610af15750610af182612b47565b612891838383610c6b565b6001600160a01b0383166128ad576128a881612b60565b6128d0565b816001600160a01b0316836001600160a01b0316146128d0576128d08382612ba4565b6001600160a01b0382166128ec576128e781612c41565b610c6b565b826001600160a01b0316826001600160a01b031614610c6b57610c6b8282612d1a565b60007f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08211156129515760405162461bcd60e51b8152600401610bb390613af1565b8360ff16601b148061296657508360ff16601c145b6129825760405162461bcd60e51b8152600401610bb390613dcd565b6000600186868686604051600081526020016040526040516129a794939291906137f0565b6020604051602081039080840390855afa1580156129c9573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381166129fc5760405162461bcd60e51b8152600401610bb390613836565b95945050505050565b60006001600160ff1b03821660ff83901c601b01612a258682878561290f565b9695505050505050565b6000612a43846001600160a01b0316612d5e565b15612b3f57836001600160a01b031663150b7a02612a5f61220b565b8786866040518563ffffffff1660e01b8152600401612a819493929190613790565b602060405180830381600087803b158015612a9b57600080fd5b505af1925050508015612acb575060408051601f3d908101601f19168201909252612ac89181019061328a565b60015b612b25573d808015612af9576040519150601f19603f3d011682016040523d82523d6000602084013e612afe565b606091505b508051612b1d5760405162461bcd60e51b8152600401610bb390613978565b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506116f4565b5060016116f4565b6001600160e01b031981166301ffc9a760e01b14919050565b600980546000838152600a60205260408120829055600182018355919091527f6e1540171b6c0c960b71a7020d9f60077f6af931a8bbf590da0223dacf75c7af0155565b60006001612bb18461176a565b612bbb91906142f4565b600083815260086020526040902054909150808214612c0e576001600160a01b03841660009081526007602090815260408083208584528252808320548484528184208190558352600890915290208190555b5060009182526008602090815260408084208490556001600160a01b039094168352600781528383209183525290812055565b600954600090612c53906001906142f4565b6000838152600a602052604081205460098054939450909284908110612c8957634e487b7160e01b600052603260045260246000fd5b906000526020600020015490508060098381548110612cb857634e487b7160e01b600052603260045260246000fd5b6000918252602080832090910192909255828152600a90915260408082208490558582528120556009805480612cfe57634e487b7160e01b600052603160045260246000fd5b6001900381819060005260206000200160009055905550505050565b6000612d258361176a565b6001600160a01b039093166000908152600760209081526040808320868452825280832085905593825260089052919091209190915550565b3b151590565b828054612d7090614354565b90600052602060002090601f016020900481019282612d925760008555612dd8565b82601f10612dab57805160ff1916838001178555612dd8565b82800160010185558215612dd8579182015b82811115612dd8578251825591602001919060010190612dbd565b50612de4929150612e41565b5090565b6040518060a0016040528060006001600160a01b03168152602001600081526020016000815260200160608152602001606081525090565b60405180606001604052806000815260200160608152602001606081525090565b5b80821115612de45760008155600101612e42565b8035610af481614400565b600082601f830112612e71578081fd5b8135612e84612e7f8261425c565b614232565b818152846020838601011115612e98578283fd5b816020850160208301379081016020019190915292915050565b600082601f830112612ec2578081fd5b8151612ed0612e7f8261425c565b818152846020838601011115612ee4578283fd5b6116f482602083016020870161430b565b600060a08284031215612f06578081fd5b60405160a0810167ffffffffffffffff8282108183111715612f2a57612f2a6143ea565b81604052829350612f3a85612e56565b835260208501356020840152604085013560408401526060850135915080821115612f6457600080fd5b612f7086838701612e61565b60608401526080850135915080821115612f8957600080fd5b50612f9685828601612e61565b6080830152505092915050565b600060208284031215612fb4578081fd5b813561213f81614400565b600060208284031215612fd0578081fd5b815161213f81614400565b60008060408385031215612fed578081fd5b8235612ff881614400565b9150602083013561300881614400565b809150509250929050565b600080600060608486031215613027578081fd5b833561303281614400565b9250602084013561304281614400565b929592945050506040919091013590565b60008060008060006080868803121561306a578081fd5b853561307581614400565b9450602086013561308581614400565b935060408601359250606086013567ffffffffffffffff808211156130a8578283fd5b818801915088601f8301126130bb578283fd5b8135818111156130c9578384fd5b8960208285010111156130da578384fd5b9699959850939650602001949392505050565b60008060008060808587031215613102578384fd5b843561310d81614400565b9350602085013561311d81614400565b925060408501359150606085013567ffffffffffffffff81111561313f578182fd5b61314b87828801612e61565b91505092959194509250565b60008060408385031215613169578182fd5b823561317481614400565b915060208301358015158114613008578182fd5b6000806040838503121561319a578182fd5b82356131a581614400565b946020939093013593505050565b600080600080608085870312156131c8578182fd5b84356131d381614400565b935060208501359250604085013567ffffffffffffffff808211156131f6578384fd5b61320288838901612e61565b93506060870135915080821115613217578283fd5b5061314b87828801612e61565b60008060408385031215613236578182fd5b823561324181614400565b9150602083013560ff81168114613008578182fd5b600060208284031215613267578081fd5b5035919050565b60006020828403121561327f578081fd5b813561213f81614415565b60006020828403121561329b578081fd5b815161213f81614415565b6000602082840312156132b7578081fd5b813567ffffffffffffffff8111156132cd578182fd5b6116f484828501612e61565b6000602082840312156132ea578081fd5b813567ffffffffffffffff811115613300578182fd5b6116f484828501612ef5565b600080600060608486031215613320578081fd5b833567ffffffffffffffff80821115613337578283fd5b61334387838801612ef5565b94506020860135915080821115613358578283fd5b5061336586828701612e61565b925050604084013590509250925092565b60008060006060848603121561338a578081fd5b83359250602084013567ffffffffffffffff808211156133a8578283fd5b6133b487838801612e61565b935060408601359150808211156133c9578283fd5b506133d686828701612e61565b9150509250925092565b6000806000606084860312156133f4578081fd5b83519250602084015167ffffffffffffffff80821115613412578283fd5b61341e87838801612eb2565b93506040860151915080821115613433578283fd5b506133d686828701612eb2565b60008060408385031215613452578182fd5b50508035926020909101359150565b6000815180845261347981602086016020860161430b565b601f01601f19169290920160200192915050565b6000815161349f81856020860161430b565b9290920192915050565b6911161139b2b2b2111d1160b11b8152600a0190565b7211161130b734b6b0ba34b7b72fbab936111d1160691b815260130190565b61227d60f01b815260020190565b6e11161139b4b3b730ba3ab932911d1160891b8152600f0190565b600060018060a01b0382511683526020820151602084015260408201516040840152606082015160a0606085015261354260a0850182613461565b9050608083015184820360808601526129fc8282613461565b6000845161356d81846020890161430b565b653f736565643d60d01b908301908152845161359081600684016020890161430b565b6a267369676e61747572653d60a81b6006929091019182015283516135bc81601184016020880161430b565b0160110195945050505050565b7f19457468657265756d205369676e6564204d6573736167653a0a3332000000008152601c810191909152603c0190565b60007f646174613a6170706c69636174696f6e2f6a736f6e3b757466382c7b226e616d825270032911d1120b9ba3930b3b630b23290169607d1b6020830152885161364c816031850160208d0161430b565b6201016960ed1b603191840191820152885161366f816034840160208d0161430b565b7f222c226c6963656e7365223a2243432042592d534120342e30222c226465736360349290910191820152693934b83a34b7b7111d1160b11b605482015287516136c081605e840160208c0161430b565b7f222c22637265617465645f6279223a22466162696e2052617368656564222c22605e92909101918201527f74776974746572223a22406173747261676c616465222c22696d616765223a22607e8201526b697066733a2f2f697066732f60a01b609e82015261376e61376961376361375e61375861375361374d61374860aa89018f61348d565b6134a9565b8c61348d565b6134ec565b8961348d565b6134bf565b8661348d565b6134de565b9a9950505050505050505050565b6001600160a01b0391909116815260200190565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090612a2590830184613461565b6001600160a01b03929092168252602082015260400190565b901515815260200190565b90815260200190565b93845260ff9290921660208401526040830152606082015260800190565b6001600160e01b031991909116815260200190565b60006020825261213f6020830184613461565b60208082526018908201527f45434453413a20696e76616c6964207369676e61747572650000000000000000604082015260600190565b60208082526010908201526f2737ba103a37b5b2b71037bbb732b91760811b604082015260600190565b60208082526016908201527511da5d99585dd85e481b1a5b5a5d081c995858da195960521b604082015260600190565b6020808252601f908201527f45434453413a20696e76616c6964207369676e6174757265206c656e67746800604082015260600190565b6020808252601590820152742a37b5b2b71030b63932b0b23c9036b4b73a32b21760591b604082015260600190565b6020808252602b908201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560408201526a74206f6620626f756e647360a81b606082015260800190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b60208082526026908201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160408201526564647265737360d01b606082015260800190565b6020808252601c908201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604082015260600190565b60208082526024908201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646040820152637265737360e01b606082015260800190565b60208082526019908201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604082015260600190565b60208082526015908201527427b7363c9037b6321020b9ba3930b3b630b232b99760591b604082015260600190565b60208082526022908201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604082015261756560f01b606082015260800190565b6020808252602c908201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860408201526b34b9ba32b73a103a37b5b2b760a11b606082015260800190565b60208082526010908201526f24b73b30b634b21030b2323932b9b99760811b604082015260600190565b60208082526016908201527526b4b73a34b7339037b93232b91032bc3834b932b21760511b604082015260600190565b60208082526017908201527f496e76616c6964205369676e657220616464726573732e000000000000000000604082015260600190565b60208082526022908201527f4d696e74696e67206f7264657220666f7220616e6f7468657220616464726573604082015261399760f11b606082015260800190565b60208082526038908201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760408201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000606082015260800190565b6020808252602a908201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604082015269726f206164647265737360b01b606082015260800190565b60208082526029908201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460408201526832b73a103a37b5b2b760b91b606082015260800190565b60208082526019908201527f496e76616c696420436f6e747261637420616464726573732e00000000000000604082015260600190565b6020808252600f908201526e24b73232bc103a37b7903434b3b41760891b604082015260600190565b6020808252601190820152700536565642063616e206e6f74206265203607c1b604082015260600190565b60208082526022908201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604082015261756560f01b606082015260800190565b6020808252818101527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604082015260600190565b6020808252601b908201527f4d617820737570706c7920616c726561647920726561636865642e0000000000604082015260600190565b6020808252602c908201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860408201526b34b9ba32b73a103a37b5b2b760a11b606082015260800190565b60208082526010908201526f24b731b7b93932b1ba103b30b63ab29760811b604082015260600190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6020808252601d908201527f4173747261676c6164653a206e6f6e6578697374656e7420746f6b656e000000604082015260600190565b60208082526029908201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960408201526839903737ba1037bbb760b91b606082015260800190565b60208082526021908201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656040820152603960f91b606082015260800190565b6020808252600d908201526c2737ba1037b832b930ba37b91760991b604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b6020808252602c908201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60408201526b7574206f6620626f756e647360a01b606082015260800190565b6020808252601e908201527f57726f6e67206d696e74696e67206f72646572207369676e61747572652e0000604082015260600190565b60208082526023908201527f506574726920616c72656164792072656465656d6564206f72206e6f74206f776040820152623732b960e91b606082015260800190565b60208082526030908201527f4552433732314275726e61626c653a2063616c6c6572206973206e6f74206f7760408201526f1b995c881b9bdc88185c1c1c9bdd995960821b606082015260800190565b6020808252601c908201527f4e6f20757064617465207265717565737420666f7220746f6b656e2e00000000604082015260600190565b600060208252825160208301526020830151606060408401526141d26080840182613461565b90506040840151601f198483030160608501526129fc8282613461565b60006020825261213f6020830184613507565b6000604082526142156040830185613507565b90508260208301529392505050565b60ff91909116815260200190565b60405181810167ffffffffffffffff81118282101715614254576142546143ea565b604052919050565b600067ffffffffffffffff821115614276576142766143ea565b50601f01601f191660200190565b60008219821115614297576142976143be565b500190565b600060ff821660ff84168060ff038211156142b9576142b96143be565b019392505050565b6000826142d0576142d06143d4565b500490565b60008160001904831182151516156142ef576142ef6143be565b500290565b600082821015614306576143066143be565b500390565b60005b8381101561432657818101518382015260200161430e565b83811115611e8f5750506000910152565b600060ff82168061434a5761434a6143be565b6000190192915050565b60028104600182168061436857607f821691505b6020821081141561438957634e487b7160e01b600052602260045260246000fd5b50919050565b60006000198214156143a3576143a36143be565b5060010190565b6000826143b9576143b96143d4565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b038116811461156657600080fd5b6001600160e01b03198116811461156657600080fdfe697066733a2f2f697066732f516d503835445372744c417853426e63743969557237714e6361343346334534767547364a7635616f54683977374173747261676c61646520697320616e20696e7465726163746976652c2067656e657261746976652c20334420636f6c6c65637469626c652070726f6a6563742e204173747261676c616465732061726520636f6c6c6563746564207468726f756768206120756e6971756520736f6369616c20636f6c6c656374696f6e206d656368616e69736d2e20456163682076657273696f6e206f66204173747261676c6164652063616e206265207369676e656420776974682061207369676e61747572652077686963682077696c6c2072656d61696e20696e2074686520617274776f726b20666f72657665722ea2646970667358221220947093ecd3f117093244f6a4cc703449383bc5a940a3a95762ec84edff9be0b364736f6c63430008000033

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

0000000000000000000000000000000000000000000000000000000000000120000000000000000000000000000000000000000000000000000000000000016000000000000000000000000000000000000000000000000000000000000001a0000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c1000000000000000000000000181f8d7ac9bfcda272fc07419f1593874f0724cb000000000000000000000000f2a841f4025159e5a845de3172384a7bca00ddde000000000000000000000000fb823ef60e00f8b151dbc2907bcf0a8f6647670200000000000000000000000015cac8ce4cb4f0a634bc20ac3bc6a405e06ea0ad000000000000000000000000a7d8d9ef8d8ce8992df33d8b8cf4aebabd5bd270000000000000000000000000000000000000000000000000000000000000000a4173747261676c6164650000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000044153474400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003a697066733a2f2f697066732f516d526d3170785a65426937316952616a4c626333706167374d5679656b61434d53574c63436f426a3775553668000000000000

-----Decoded View---------------
Arg [0] : name_ (string): Astraglade
Arg [1] : symbol_ (string): ASGD
Arg [2] : contractURI_ (string): ipfs://ipfs/QmRm1pxZeBi71iRajLbc3pag7MVyekaCMSWLcCoBj7uU6h
Arg [3] : openseaProxyRegistry_ (address): 0xa5409ec958C83C3f309868babACA7c86DCB077c1
Arg [4] : mintSigner_ (address): 0x181F8d7ac9bFcDa272fC07419F1593874F0724Cb
Arg [5] : owner_ (address): 0xF2A841F4025159e5a845de3172384A7bCa00dDdE
Arg [6] : oldAstragladeContract_ (address): 0xFB823Ef60e00f8b151Dbc2907bcf0A8f66476702
Arg [7] : oldMetaHolder_ (address): 0x15caC8Ce4cb4f0a634BC20Ac3bc6a405E06Ea0Ad
Arg [8] : artBlocks_ (address): 0xa7d8d9ef8D8Ce8992Df33D8b8CF4Aebabd5bD270

-----Encoded View---------------
16 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000120
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000160
Arg [2] : 00000000000000000000000000000000000000000000000000000000000001a0
Arg [3] : 000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c1
Arg [4] : 000000000000000000000000181f8d7ac9bfcda272fc07419f1593874f0724cb
Arg [5] : 000000000000000000000000f2a841f4025159e5a845de3172384a7bca00ddde
Arg [6] : 000000000000000000000000fb823ef60e00f8b151dbc2907bcf0a8f66476702
Arg [7] : 00000000000000000000000015cac8ce4cb4f0a634bc20ac3bc6a405e06ea0ad
Arg [8] : 000000000000000000000000a7d8d9ef8d8ce8992df33d8b8cf4aebabd5bd270
Arg [9] : 000000000000000000000000000000000000000000000000000000000000000a
Arg [10] : 4173747261676c61646500000000000000000000000000000000000000000000
Arg [11] : 0000000000000000000000000000000000000000000000000000000000000004
Arg [12] : 4153474400000000000000000000000000000000000000000000000000000000
Arg [13] : 000000000000000000000000000000000000000000000000000000000000003a
Arg [14] : 697066733a2f2f697066732f516d526d3170785a65426937316952616a4c6263
Arg [15] : 33706167374d5679656b61434d53574c63436f426a3775553668000000000000


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.