ETH Price: $3,390.27 (+1.17%)

GrailersDAO NFT (GRAILER)
 

Overview

TokenID

793

Total Transfers

-

Market

Onchain Market Cap

$0.00

Circulating Supply Market Cap

-
Loading...
Loading
Loading...
Loading
Loading...
Loading

OVERVIEW

Grailers is a collection of 999 NFTs representing membership in GrailersDAO, a collecting community supporting generative artists and the broader generative art ecosystem.

# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
GrailerNFT

Compiler Version
v0.8.2+commit.661d1103

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion
File 1 of 18 : GrailerNFT.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "./ERC721Tradable.sol";
import "@openzeppelin/contracts/utils/Counters.sol";

interface IGrailer {
    function ownerOf(uint256 tokenId) external returns(address);
    function safeTransferFrom(address from, address to, uint256 tokenId) external;
}

contract GrailerNFT is ERC721Tradable {
    bool public salePublicIsActive;
    bool public claimIsActive;
    bool public saleHoldersOnlyIsActive;
    uint256 public maxByMint;
    uint256 public maxSupply;
    uint256 public maxPublicSupply;
    uint256 public nextTokenId;
    uint256 public fixedPrice;
    address public daoAddress;
    string internal baseTokenURI;
    IGrailer public GrailerOG;
    
    using Counters for Counters.Counter;
    Counters.Counter private _totalSupply;
    
    constructor(
        string memory _name,
        string memory _symbol,
        address _proxyRegistryAddress
    ) ERC721Tradable(_name, _symbol, _proxyRegistryAddress) {
        maxByMint = 10;
        maxSupply = 999;
        maxPublicSupply = 969;
        nextTokenId = 821;
        fixedPrice = 2 ether;
        daoAddress = 0x63fE60e3373De8480eBe56Db5B153baB1A431E38;
        baseTokenURI = "https://www.grailers.com/api/meta/2/";
        GrailerOG = IGrailer(0x8bb186371D019a190e4Fc01584DD164Ae10063a8);
    }

    function contractURI() public pure returns (string memory) {
        return "https://www.grailers.com/api/contract/2";
    }

    function claim(uint256[] memory _tokenIds) public {
        require(claimIsActive, "Claim not active");
        for (uint256 i=0; i<_tokenIds.length; i++) {
            uint256 _tokenId = _tokenIds[i];
            require(GrailerOG.ownerOf(_tokenId) == _msgSender(), "Not grailer");
            GrailerOG.safeTransferFrom(_msgSender(), daoAddress, _tokenId);
            _safeMint(_msgSender(), _tokenId);
        }
    }

    function _mintN(address _to, uint numberOfTokens) private {
        require(numberOfTokens <= maxByMint, "Max mint exceeded");
        require(_totalSupply.current() + numberOfTokens <= maxPublicSupply, "Max reached");
        for(uint i = 0; i < numberOfTokens; i++) {
            nextTokenId = nextTokenId + i;
            _totalSupply.increment();
            _safeMint(_to, nextTokenId);
        }
    }

    function mintPublic(uint numberOfTokens) external payable {
        require(salePublicIsActive, "Sale not active");
        require(fixedPrice * numberOfTokens <= msg.value, "Eth val incorrect");
        _mintN(_msgSender(), numberOfTokens);
    }

    function mintHoldersOnly(uint numberOfTokens) external payable {
        require(saleHoldersOnlyIsActive, "Holders sale not active");
        require(this.balanceOf(_msgSender()) > 0, "Must be a holder");
        require(fixedPrice * numberOfTokens <= msg.value, "Eth val incorrect");
        _mintN(_msgSender(), numberOfTokens);
    }

    function mintReserved(uint numberOfTokens, address _to) external onlyOwner {
        _mintN(_to, numberOfTokens);
    }

    function tokenURI(uint256 _tokenId) override public view returns (string memory) {
        return string(abi.encodePacked(baseTokenURI, Strings.toString(_tokenId)));
    }

    function totalSupply() public view returns (uint256) {
        return _totalSupply.current();
    }

    function flipSalePublicStatus() external onlyOwner {
        salePublicIsActive = !salePublicIsActive;
    }

    function flipClaimStatus() external onlyOwner {
        claimIsActive = !claimIsActive;
    }

    function flipSaleHoldersOnlyStatus() external onlyOwner {
        saleHoldersOnlyIsActive = !saleHoldersOnlyIsActive;
    }

    function setDaoAddress(address _daoAddress) external onlyOwner {
        daoAddress = _daoAddress;
    }

    function setGrailerOG(address _address) external onlyOwner {
        GrailerOG = IGrailer(_address);
    }

    function setSupply(uint256 _nextTokenId, uint256 _maxPublicSupply, uint256 _maxSupply) external onlyOwner {
        require(_maxSupply >= _maxPublicSupply, "Invalid supply");
        nextTokenId = _nextTokenId;
        maxPublicSupply = _maxPublicSupply;
        maxSupply = _maxSupply;
    }

    function setBaseTokenURI(string memory _baseTokenURI) external onlyOwner {
        baseTokenURI = _baseTokenURI;
    }

    function setMaxSupply(uint256 _maxSupply) external onlyOwner {
        maxSupply = _maxSupply;
    }

    function setFixedPrice(uint256 _fixedPrice) external onlyOwner {
        fixedPrice = _fixedPrice;
    }

    function setMaxByMint(uint256 _maxByMint) external onlyOwner {
        maxByMint = _maxByMint;
    }

    function withdraw() external onlyOwner {
        uint balance = address(this).balance;
        require(balance > 0);
        _withdraw(daoAddress, balance);
    }

    function _withdraw(address _address, uint256 _amount) private {
        (bool success, ) = _address.call{value: _amount}("");
        require(success, "Tx failed");
    }

}

File 2 of 18 : ERC721Tradable.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "./common/meta-transactions/ContentMixin.sol";
import "./common/meta-transactions/NativeMetaTransaction.sol";

contract OwnableDelegateProxy {}

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

/**
 * @title ERC721Tradable
 */
abstract contract ERC721Tradable is ERC721, ContextMixin, NativeMetaTransaction, Ownable {
    address internal proxyRegistryAddress;

    constructor(
        string memory _name,
        string memory _symbol,
        address _proxyRegistryAddress
    ) ERC721(_name, _symbol) {
        proxyRegistryAddress = _proxyRegistryAddress;
        _initializeEIP712(_name);
    }

    /**
     * Override isApprovedForAll to whitelist user's OpenSea proxy accounts to enable gas-less listings.
     */
    function isApprovedForAll(address owner, address operator)
        override
        public
        view
        returns (bool)
    {
        // Whitelist OpenSea proxy contract for easy trading.
        ProxyRegistry proxyRegistry = ProxyRegistry(proxyRegistryAddress);
        if (address(proxyRegistry.proxies(owner)) == operator) {
            return true;
        }
        return super.isApprovedForAll(owner, operator);
    }

    /**
     * This is used instead of msg.sender as transactions won't be sent by the original token owner, but by OpenSea.
     */
    function _msgSender()
        internal
        override
        view
        returns (address sender)
    {
        return ContextMixin.msgSender();
    }

    function setProxyRegistryAddress(address _proxyRegistryAddress) public onlyOwner {
        proxyRegistryAddress = _proxyRegistryAddress;
    }

}

File 3 of 18 : Counters.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @title Counters
 * @author Matt Condon (@shrugs)
 * @dev Provides counters that can only be incremented, decremented or reset. This can be used e.g. to track the number
 * of elements in a mapping, issuing ERC721 ids, or counting request ids.
 *
 * Include with `using Counters for Counters.Counter;`
 */
library Counters {
    struct Counter {
        // This variable should never be directly accessed by users of the library: interactions must be restricted to
        // the library's function. As of Solidity v0.5.2, this cannot be enforced, though there is a proposal to add
        // this feature: see https://github.com/ethereum/solidity/issues/4637
        uint256 _value; // default: 0
    }

    function current(Counter storage counter) internal view returns (uint256) {
        return counter._value;
    }

    function increment(Counter storage counter) internal {
        unchecked {
            counter._value += 1;
        }
    }

    function decrement(Counter storage counter) internal {
        uint256 value = counter._value;
        require(value > 0, "Counter: decrement overflow");
        unchecked {
            counter._value = value - 1;
        }
    }

    function reset(Counter storage counter) internal {
        counter._value = 0;
    }
}

File 4 of 18 : 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.onERC721Received.selector;
            } catch (bytes memory reason) {
                if (reason.length == 0) {
                    revert("ERC721: transfer to non ERC721Receiver implementer");
                } else {
                    assembly {
                        revert(add(32, reason), mload(reason))
                    }
                }
            }
        } else {
            return true;
        }
    }

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

File 5 of 18 : 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 6 of 18 : ContentMixin.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

abstract contract ContextMixin {
    function msgSender()
        internal
        view
        returns (address payable sender)
    {
        if (msg.sender == address(this)) {
            bytes memory array = msg.data;
            uint256 index = msg.data.length;
            assembly {
                // Load the 32 bytes word from memory with the address on the lower 20 bytes, and mask those.
                sender := and(
                    mload(add(array, index)),
                    0xffffffffffffffffffffffffffffffffffffffff
                )
            }
        } else {
            sender = payable(msg.sender);
        }
        return sender;
    }
}

File 7 of 18 : NativeMetaTransaction.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import { SafeMathUpgradeable as SafeMath } from "@openzeppelin/contracts-upgradeable/utils/math/SafeMathUpgradeable.sol";
import "./EIP712Base.sol";

contract NativeMetaTransaction is EIP712Base {
    using SafeMath for uint256;
    bytes32 private constant META_TRANSACTION_TYPEHASH = keccak256(
        bytes(
            "MetaTransaction(uint256 nonce,address from,bytes functionSignature)"
        )
    );
    event MetaTransactionExecuted(
        address userAddress,
        address payable relayerAddress,
        bytes functionSignature
    );
    mapping(address => uint256) nonces;

    /*
     * Meta transaction structure.
     * No point of including value field here as if user is doing value transfer then he has the funds to pay for gas
     * He should call the desired function directly in that case.
     */
    struct MetaTransaction {
        uint256 nonce;
        address from;
        bytes functionSignature;
    }

    function executeMetaTransaction(
        address userAddress,
        bytes memory functionSignature,
        bytes32 sigR,
        bytes32 sigS,
        uint8 sigV
    ) public payable returns (bytes memory) {
        MetaTransaction memory metaTx = MetaTransaction({
            nonce: nonces[userAddress],
            from: userAddress,
            functionSignature: functionSignature
        });

        require(
            verify(userAddress, metaTx, sigR, sigS, sigV),
            "Signer and signature do not match"
        );

        // increase nonce for user (to avoid re-use)
        nonces[userAddress] = nonces[userAddress].add(1);

        emit MetaTransactionExecuted(
            userAddress,
            payable(msg.sender),
            functionSignature
        );

        // Append userAddress and relayer address at the end to extract it from calling context
        (bool success, bytes memory returnData) = address(this).call(
            abi.encodePacked(functionSignature, userAddress)
        );
        require(success, "Function call not successful");

        return returnData;
    }

    function hashMetaTransaction(MetaTransaction memory metaTx)
        internal
        pure
        returns (bytes32)
    {
        return
            keccak256(
                abi.encode(
                    META_TRANSACTION_TYPEHASH,
                    metaTx.nonce,
                    metaTx.from,
                    keccak256(metaTx.functionSignature)
                )
            );
    }

    function getNonce(address user) public view returns (uint256 nonce) {
        nonce = nonces[user];
    }

    function verify(
        address signer,
        MetaTransaction memory metaTx,
        bytes32 sigR,
        bytes32 sigS,
        uint8 sigV
    ) internal view returns (bool) {
        require(signer != address(0), "NativeMetaTransaction: INVALID_SIGNER");
        return
            signer ==
            ecrecover(
                toTypedMessageHash(hashMetaTransaction(metaTx)),
                sigV,
                sigR,
                sigS
            );
    }
}

File 8 of 18 : 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 9 of 18 : 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 10 of 18 : 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 11 of 18 : Address.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

File 12 of 18 : 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 13 of 18 : 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 14 of 18 : 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 18 : 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 18 : SafeMathUpgradeable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

// CAUTION
// This version of SafeMath should only be used with Solidity 0.8 or later,
// because it relies on the compiler's built in overflow checks.

/**
 * @dev Wrappers over Solidity's arithmetic operations.
 *
 * NOTE: `SafeMath` is no longer needed starting with Solidity 0.8. The compiler
 * now has built in overflow checking.
 */
library SafeMathUpgradeable {
    /**
     * @dev Returns the addition of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            uint256 c = a + b;
            if (c < a) return (false, 0);
            return (true, c);
        }
    }

    /**
     * @dev Returns the substraction of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b > a) return (false, 0);
            return (true, a - b);
        }
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            // Gas optimization: this is cheaper than requiring 'a' not being zero, but the
            // benefit is lost if 'b' is also tested.
            // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
            if (a == 0) return (true, 0);
            uint256 c = a * b;
            if (c / a != b) return (false, 0);
            return (true, c);
        }
    }

    /**
     * @dev Returns the division of two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a / b);
        }
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a % b);
        }
    }

    /**
     * @dev Returns the addition of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `+` operator.
     *
     * Requirements:
     *
     * - Addition cannot overflow.
     */
    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        return a + b;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b) internal pure returns (uint256) {
        return a - b;
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `*` operator.
     *
     * Requirements:
     *
     * - Multiplication cannot overflow.
     */
    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        return a * b;
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator.
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        return a / b;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting when dividing by zero.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b) internal pure returns (uint256) {
        return a % b;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {trySub}.
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b <= a, errorMessage);
            return a - b;
        }
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting with custom message on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b > 0, errorMessage);
            return a / b;
        }
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting with custom message when dividing by zero.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {tryMod}.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b > 0, errorMessage);
            return a % b;
        }
    }
}

File 17 of 18 : EIP712Base.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol";

contract EIP712Base is Initializable {
    struct EIP712Domain {
        string name;
        string version;
        address verifyingContract;
        bytes32 salt;
    }

    string constant public ERC712_VERSION = "1";

    bytes32 internal constant EIP712_DOMAIN_TYPEHASH = keccak256(
        bytes(
            "EIP712Domain(string name,string version,address verifyingContract,bytes32 salt)"
        )
    );
    bytes32 internal domainSeperator;

    // supposed to be called once while initializing.
    // one of the contracts that inherits this contract follows proxy pattern
    // so it is not possible to do this in a constructor
    function _initializeEIP712(
        string memory name
    )
        internal
        initializer
    {
        _setDomainSeperator(name);
    }

    function _setDomainSeperator(string memory name) internal {
        domainSeperator = keccak256(
            abi.encode(
                EIP712_DOMAIN_TYPEHASH,
                keccak256(bytes(name)),
                keccak256(bytes(ERC712_VERSION)),
                address(this),
                bytes32(getChainId())
            )
        );
    }

    function getDomainSeperator() public view returns (bytes32) {
        return domainSeperator;
    }

    function getChainId() public view returns (uint256) {
        uint256 id;
        assembly {
            id := chainid()
        }
        return id;
    }

    /**
     * Accept message hash and returns hash message in EIP712 compatible form
     * So that it can be used to recover signer from signature signed using EIP712 formatted data
     * https://eips.ethereum.org/EIPS/eip-712
     * "\\x19" makes the encoding deterministic
     * "\\x01" is the version byte to make it compatible to EIP-191
     */
    function toTypedMessageHash(bytes32 messageHash)
        internal
        view
        returns (bytes32)
    {
        return
            keccak256(
                abi.encodePacked("\x19\x01", getDomainSeperator(), messageHash)
            );
    }
}

File 18 of 18 : Initializable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed
 * behind a proxy. Since a proxied contract can't have a constructor, it's common to move constructor logic to an
 * external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer
 * function so it can only be called once. The {initializer} modifier provided by this contract will have this effect.
 *
 * TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as
 * possible by providing the encoded function call as the `_data` argument to {ERC1967Proxy-constructor}.
 *
 * CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure
 * that all initializers are idempotent. This is not verified automatically as constructors are by Solidity.
 */
abstract contract Initializable {
    /**
     * @dev Indicates that the contract has been initialized.
     */
    bool private _initialized;

    /**
     * @dev Indicates that the contract is in the process of being initialized.
     */
    bool private _initializing;

    /**
     * @dev Modifier to protect an initializer function from being invoked twice.
     */
    modifier initializer() {
        require(_initializing || !_initialized, "Initializable: contract is already initialized");

        bool isTopLevelCall = !_initializing;
        if (isTopLevelCall) {
            _initializing = true;
            _initialized = true;
        }

        _;

        if (isTopLevelCall) {
            _initializing = false;
        }
    }
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"_name","type":"string"},{"internalType":"string","name":"_symbol","type":"string"},{"internalType":"address","name":"_proxyRegistryAddress","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":false,"internalType":"address","name":"userAddress","type":"address"},{"indexed":false,"internalType":"address payable","name":"relayerAddress","type":"address"},{"indexed":false,"internalType":"bytes","name":"functionSignature","type":"bytes"}],"name":"MetaTransactionExecuted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"ERC712_VERSION","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"GrailerOG","outputs":[{"internalType":"contract IGrailer","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"_tokenIds","type":"uint256[]"}],"name":"claim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"claimIsActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"contractURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"daoAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"userAddress","type":"address"},{"internalType":"bytes","name":"functionSignature","type":"bytes"},{"internalType":"bytes32","name":"sigR","type":"bytes32"},{"internalType":"bytes32","name":"sigS","type":"bytes32"},{"internalType":"uint8","name":"sigV","type":"uint8"}],"name":"executeMetaTransaction","outputs":[{"internalType":"bytes","name":"","type":"bytes"}],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"fixedPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"flipClaimStatus","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"flipSaleHoldersOnlyStatus","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"flipSalePublicStatus","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getChainId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getDomainSeperator","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"}],"name":"getNonce","outputs":[{"internalType":"uint256","name":"nonce","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxByMint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxPublicSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"numberOfTokens","type":"uint256"}],"name":"mintHoldersOnly","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"numberOfTokens","type":"uint256"}],"name":"mintPublic","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"numberOfTokens","type":"uint256"},{"internalType":"address","name":"_to","type":"address"}],"name":"mintReserved","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"nextTokenId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"saleHoldersOnlyIsActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"salePublicIsActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_baseTokenURI","type":"string"}],"name":"setBaseTokenURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_daoAddress","type":"address"}],"name":"setDaoAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_fixedPrice","type":"uint256"}],"name":"setFixedPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"setGrailerOG","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_maxByMint","type":"uint256"}],"name":"setMaxByMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_maxSupply","type":"uint256"}],"name":"setMaxSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_proxyRegistryAddress","type":"address"}],"name":"setProxyRegistryAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_nextTokenId","type":"uint256"},{"internalType":"uint256","name":"_maxPublicSupply","type":"uint256"},{"internalType":"uint256","name":"_maxSupply","type":"uint256"}],"name":"setSupply","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":"_tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60806040523480156200001157600080fd5b506040516200618c3803806200618c83398181016040528101906200003791906200067c565b828282828281600090805190602001906200005492919062000543565b5080600190805190602001906200006d92919062000543565b5050506200009062000084620001fc60201b60201c565b6200021860201b60201c565b80600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550620000e283620002de60201b60201c565b505050600a600b819055506103e7600c819055506103c9600d81905550610335600e81905550671bc16d674ec80000600f819055507363fe60e3373de8480ebe56db5b153bab1a431e38601060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506040518060600160405280602481526020016200616860249139601190805190602001906200019d92919062000543565b50738bb186371d019a190e4fc01584dd164ae10063a8601260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550505050620009f4565b600062000213620003d460201b6200265a1760201c565b905090565b6000600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600960006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600660019054906101000a900460ff1680620003075750600660009054906101000a900460ff16155b62000349576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016200034090620007aa565b60405180910390fd5b6000600660019054906101000a900460ff1615905080156200039c576001600660016101000a81548160ff0219169083151502179055506001600660006101000a81548160ff0219169083151502179055505b620003ad826200048760201b60201c565b8015620003d0576000600660016101000a81548160ff0219169083151502179055505b5050565b60003073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614156200048057600080368080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f820116905080830192505050505050509050600080369050905073ffffffffffffffffffffffffffffffffffffffff81830151169250505062000484565b3390505b90565b6040518060800160405280604f815260200162006119604f91398051906020012081805190602001206040518060400160405280600181526020017f31000000000000000000000000000000000000000000000000000000000000008152508051906020012030620004fe6200053660201b60201c565b60001b604051602001620005179594939291906200074d565b6040516020818303038152906040528051906020012060078190555050565b6000804690508091505090565b8280546200055190620008b0565b90600052602060002090601f016020900481019282620005755760008555620005c1565b82601f106200059057805160ff1916838001178555620005c1565b82800160010185558215620005c1579182015b82811115620005c0578251825591602001919060010190620005a3565b5b509050620005d09190620005d4565b5090565b5b80821115620005ef576000816000905550600101620005d5565b5090565b60006200060a6200060484620007f5565b620007cc565b9050828152602081018484840111156200062357600080fd5b620006308482856200087a565b509392505050565b6000815190506200064981620009da565b92915050565b600082601f8301126200066157600080fd5b815162000673848260208601620005f3565b91505092915050565b6000806000606084860312156200069257600080fd5b600084015167ffffffffffffffff811115620006ad57600080fd5b620006bb868287016200064f565b935050602084015167ffffffffffffffff811115620006d957600080fd5b620006e7868287016200064f565b9250506040620006fa8682870162000638565b9150509250925092565b6200070f816200083c565b82525050565b620007208162000850565b82525050565b600062000735602e836200082b565b915062000742826200098b565b604082019050919050565b600060a08201905062000764600083018862000715565b62000773602083018762000715565b62000782604083018662000715565b62000791606083018562000704565b620007a0608083018462000715565b9695505050505050565b60006020820190508181036000830152620007c58162000726565b9050919050565b6000620007d8620007eb565b9050620007e68282620008e6565b919050565b6000604051905090565b600067ffffffffffffffff8211156200081357620008126200094b565b5b6200081e826200097a565b9050602081019050919050565b600082825260208201905092915050565b600062000849826200085a565b9050919050565b6000819050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60005b838110156200089a5780820151818401526020810190506200087d565b83811115620008aa576000848401525b50505050565b60006002820490506001821680620008c957607f821691505b60208210811415620008e057620008df6200091c565b5b50919050565b620008f1826200097a565b810181811067ffffffffffffffff821117156200091357620009126200094b565b5b80604052505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000601f19601f8301169050919050565b7f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160008201527f647920696e697469616c697a6564000000000000000000000000000000000000602082015250565b620009e5816200083c565b8114620009f157600080fd5b50565b6157158062000a046000396000f3fe6080604052600436106102ae5760003560e01c80636f8b44b011610175578063b455c5fe116100dc578063d5abeb0111610095578063e8a3d4851161006f578063e8a3d48514610a22578063e985e9c514610a4d578063efd0cbf914610a8a578063f2fde38b14610aa6576102ae565b8063d5abeb01146109b7578063d67140af146109e2578063e601971614610a0b576102ae565b8063b455c5fe146108ab578063b6c65d38146108d4578063b88d4fde146108ff578063b8d217f114610928578063c87b56dd14610951578063d26ea6c01461098e576102ae565b80638269de671161012e5780638269de67146107d05780638b60fe63146107e75780638da5cb5b1461080357806395d89b411461082e5780639a3cac6a14610859578063a22cb46514610882576102ae565b80636f8b44b0146106d457806370a08231146106fd578063715018a61461073a57806373c8c8831461075157806375794a3c1461077a57806381baee83146107a5576102ae565b806326a74d8e1161021957806342842e0e116101d257806342842e0e146105c6578063478f20e7146105ef5780635303f68c1461061a578063631bbbba146106455780636352211e1461066e5780636ba4c138146106ab576102ae565b806326a74d8e146104dc5780632d0335ab146105075780632db0c07c1461054457806330176e131461055b5780633408e470146105845780633ccfd60b146105af576102ae565b8063138a4e011161026b578063138a4e01146103dc57806318160ddd146104075780631efba6c21461043257806320379ee51461045d5780632131c68c1461048857806323b872dd146104b3576102ae565b806301ffc9a7146102b357806306fdde03146102f0578063081812fc1461031b578063095ea7b3146103585780630c53c51c146103815780630f7e5970146103b1575b600080fd5b3480156102bf57600080fd5b506102da60048036038101906102d59190613c37565b610acf565b6040516102e7919061455f565b60405180910390f35b3480156102fc57600080fd5b50610305610bb1565b604051610312919061465c565b60405180910390f35b34801561032757600080fd5b50610342600480360381019061033d9190613cf3565b610c43565b60405161034f9190614483565b60405180910390f35b34801561036457600080fd5b5061037f600480360381019061037a9190613bba565b610cc8565b005b61039b60048036038101906103969190613b2b565b610de0565b6040516103a8919061461f565b60405180910390f35b3480156103bd57600080fd5b506103c6611052565b6040516103d3919061465c565b60405180910390f35b3480156103e857600080fd5b506103f161108b565b6040516103fe91906149fe565b60405180910390f35b34801561041357600080fd5b5061041c611091565b60405161042991906149fe565b60405180910390f35b34801561043e57600080fd5b506104476110a2565b60405161045491906149fe565b60405180910390f35b34801561046957600080fd5b506104726110a8565b60405161047f919061457a565b60405180910390f35b34801561049457600080fd5b5061049d6110b2565b6040516104aa9190614483565b60405180910390f35b3480156104bf57600080fd5b506104da60048036038101906104d59190613a25565b6110d8565b005b3480156104e857600080fd5b506104f1611138565b6040516104fe91906149fe565b60405180910390f35b34801561051357600080fd5b5061052e60048036038101906105299190613997565b61113e565b60405161053b91906149fe565b60405180910390f35b34801561055057600080fd5b50610559611187565b005b34801561056757600080fd5b50610582600480360381019061057d9190613cb2565b61122f565b005b34801561059057600080fd5b506105996112c5565b6040516105a691906149fe565b60405180910390f35b3480156105bb57600080fd5b506105c46112d2565b005b3480156105d257600080fd5b506105ed60048036038101906105e89190613a25565b61138f565b005b3480156105fb57600080fd5b506106046113af565b604051610611919061455f565b60405180910390f35b34801561062657600080fd5b5061062f6113c2565b60405161063c919061455f565b60405180910390f35b34801561065157600080fd5b5061066c60048036038101906106679190613d45565b6113d5565b005b34801561067a57600080fd5b5061069560048036038101906106909190613cf3565b61145f565b6040516106a29190614483565b60405180910390f35b3480156106b757600080fd5b506106d260048036038101906106cd9190613bf6565b611511565b005b3480156106e057600080fd5b506106fb60048036038101906106f69190613cf3565b6117b5565b005b34801561070957600080fd5b50610724600480360381019061071f9190613997565b61183b565b60405161073191906149fe565b60405180910390f35b34801561074657600080fd5b5061074f6118f3565b005b34801561075d57600080fd5b5061077860048036038101906107739190613cf3565b61197b565b005b34801561078657600080fd5b5061078f611a01565b60405161079c91906149fe565b60405180910390f35b3480156107b157600080fd5b506107ba611a07565b6040516107c79190614641565b60405180910390f35b3480156107dc57600080fd5b506107e5611a2d565b005b61080160048036038101906107fc9190613cf3565b611ad5565b005b34801561080f57600080fd5b50610818611c5a565b6040516108259190614483565b60405180910390f35b34801561083a57600080fd5b50610843611c84565b604051610850919061465c565b60405180910390f35b34801561086557600080fd5b50610880600480360381019061087b9190613997565b611d16565b005b34801561088e57600080fd5b506108a960048036038101906108a49190613aef565b611dd6565b005b3480156108b757600080fd5b506108d260048036038101906108cd9190613cf3565b611f57565b005b3480156108e057600080fd5b506108e9611fdd565b6040516108f6919061455f565b60405180910390f35b34801561090b57600080fd5b5061092660048036038101906109219190613a74565b611ff0565b005b34801561093457600080fd5b5061094f600480360381019061094a9190613d81565b612052565b005b34801561095d57600080fd5b5061097860048036038101906109739190613cf3565b61212b565b604051610985919061465c565b60405180910390f35b34801561099a57600080fd5b506109b560048036038101906109b09190613997565b61215f565b005b3480156109c357600080fd5b506109cc61221f565b6040516109d991906149fe565b60405180910390f35b3480156109ee57600080fd5b50610a096004803603810190610a049190613997565b612225565b005b348015610a1757600080fd5b50610a206122e5565b005b348015610a2e57600080fd5b50610a3761238d565b604051610a44919061465c565b60405180910390f35b348015610a5957600080fd5b50610a746004803603810190610a6f91906139e9565b6123ad565b604051610a81919061455f565b60405180910390f35b610aa46004803603810190610a9f9190613cf3565b6124af565b005b348015610ab257600080fd5b50610acd6004803603810190610ac89190613997565b612562565b005b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480610b9a57507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610baa5750610ba98261270b565b5b9050919050565b606060008054610bc090614d59565b80601f0160208091040260200160405190810160405280929190818152602001828054610bec90614d59565b8015610c395780601f10610c0e57610100808354040283529160200191610c39565b820191906000526020600020905b815481529060010190602001808311610c1c57829003601f168201915b5050505050905090565b6000610c4e82612775565b610c8d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c849061487e565b60405180910390fd5b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610cd38261145f565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610d44576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d3b9061493e565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610d636127e1565b73ffffffffffffffffffffffffffffffffffffffff161480610d925750610d9181610d8c6127e1565b6123ad565b5b610dd1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610dc8906147de565b60405180910390fd5b610ddb83836127f0565b505050565b606060006040518060600160405280600860008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205481526020018873ffffffffffffffffffffffffffffffffffffffff168152602001878152509050610e6387828787876128a9565b610ea2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e999061491e565b60405180910390fd5b610ef56001600860008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546129b290919063ffffffff16565b600860008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055507f5845892132946850460bff5a0083f71031bc5bf9aadcd40f1de79423eac9b10b873388604051610f6b9392919061449e565b60405180910390a16000803073ffffffffffffffffffffffffffffffffffffffff16888a604051602001610fa09291906143eb565b604051602081830303815290604052604051610fbc91906143d4565b6000604051808303816000865af19150503d8060008114610ff9576040519150601f19603f3d011682016040523d82523d6000602084013e610ffe565b606091505b509150915081611043576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161103a906146be565b60405180910390fd5b80935050505095945050505050565b6040518060400160405280600181526020017f310000000000000000000000000000000000000000000000000000000000000081525081565b600b5481565b600061109d60136129c8565b905090565b600f5481565b6000600754905090565b601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6110e96110e36127e1565b826129d6565b611128576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161111f9061497e565b60405180910390fd5b611133838383612ab4565b505050565b600d5481565b6000600860008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b61118f6127e1565b73ffffffffffffffffffffffffffffffffffffffff166111ad611c5a565b73ffffffffffffffffffffffffffffffffffffffff1614611203576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111fa906148de565b60405180910390fd5b600a60159054906101000a900460ff1615600a60156101000a81548160ff021916908315150217905550565b6112376127e1565b73ffffffffffffffffffffffffffffffffffffffff16611255611c5a565b73ffffffffffffffffffffffffffffffffffffffff16146112ab576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112a2906148de565b60405180910390fd5b80601190805190602001906112c19291906136bc565b5050565b6000804690508091505090565b6112da6127e1565b73ffffffffffffffffffffffffffffffffffffffff166112f8611c5a565b73ffffffffffffffffffffffffffffffffffffffff161461134e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611345906148de565b60405180910390fd5b60004790506000811161136057600080fd5b61138c601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1682612d10565b50565b6113aa83838360405180602001604052806000815250611ff0565b505050565b600a60169054906101000a900460ff1681565b600a60159054906101000a900460ff1681565b6113dd6127e1565b73ffffffffffffffffffffffffffffffffffffffff166113fb611c5a565b73ffffffffffffffffffffffffffffffffffffffff1614611451576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611448906148de565b60405180910390fd5b61145b8183612dc1565b5050565b6000806002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611508576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114ff9061481e565b60405180910390fd5b80915050919050565b600a60159054906101000a900460ff16611560576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611557906149be565b60405180910390fd5b60005b81518110156117b15760008282815181106115a7577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602002602001015190506115b96127e1565b73ffffffffffffffffffffffffffffffffffffffff16601260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16636352211e836040518263ffffffff1660e01b815260040161162a91906149fe565b602060405180830381600087803b15801561164457600080fd5b505af1158015611658573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061167c91906139c0565b73ffffffffffffffffffffffffffffffffffffffff16146116d2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116c99061489e565b60405180910390fd5b601260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166342842e0e6117186127e1565b601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16846040518463ffffffff1660e01b815260040161175a939291906144dc565b600060405180830381600087803b15801561177457600080fd5b505af1158015611788573d6000803e3d6000fd5b5050505061179d6117976127e1565b82612eac565b5080806117a990614dbc565b915050611563565b5050565b6117bd6127e1565b73ffffffffffffffffffffffffffffffffffffffff166117db611c5a565b73ffffffffffffffffffffffffffffffffffffffff1614611831576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611828906148de565b60405180910390fd5b80600c8190555050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156118ac576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118a3906147fe565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b6118fb6127e1565b73ffffffffffffffffffffffffffffffffffffffff16611919611c5a565b73ffffffffffffffffffffffffffffffffffffffff161461196f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611966906148de565b60405180910390fd5b6119796000612eca565b565b6119836127e1565b73ffffffffffffffffffffffffffffffffffffffff166119a1611c5a565b73ffffffffffffffffffffffffffffffffffffffff16146119f7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119ee906148de565b60405180910390fd5b80600f8190555050565b600e5481565b601260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b611a356127e1565b73ffffffffffffffffffffffffffffffffffffffff16611a53611c5a565b73ffffffffffffffffffffffffffffffffffffffff1614611aa9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611aa0906148de565b60405180910390fd5b600a60169054906101000a900460ff1615600a60166101000a81548160ff021916908315150217905550565b600a60169054906101000a900460ff16611b24576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b1b9061499e565b60405180910390fd5b60003073ffffffffffffffffffffffffffffffffffffffff166370a08231611b4a6127e1565b6040518263ffffffff1660e01b8152600401611b669190614483565b60206040518083038186803b158015611b7e57600080fd5b505afa158015611b92573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611bb69190613d1c565b11611bf6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611bed9061479e565b60405180910390fd5b3481600f54611c059190614bb6565b1115611c46576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c3d9061495e565b60405180910390fd5b611c57611c516127e1565b82612dc1565b50565b6000600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b606060018054611c9390614d59565b80601f0160208091040260200160405190810160405280929190818152602001828054611cbf90614d59565b8015611d0c5780601f10611ce157610100808354040283529160200191611d0c565b820191906000526020600020905b815481529060010190602001808311611cef57829003601f168201915b5050505050905090565b611d1e6127e1565b73ffffffffffffffffffffffffffffffffffffffff16611d3c611c5a565b73ffffffffffffffffffffffffffffffffffffffff1614611d92576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d89906148de565b60405180910390fd5b80601060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b611dde6127e1565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611e4c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e439061473e565b60405180910390fd5b8060056000611e596127e1565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff16611f066127e1565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051611f4b919061455f565b60405180910390a35050565b611f5f6127e1565b73ffffffffffffffffffffffffffffffffffffffff16611f7d611c5a565b73ffffffffffffffffffffffffffffffffffffffff1614611fd3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611fca906148de565b60405180910390fd5b80600b8190555050565b600a60149054906101000a900460ff1681565b612001611ffb6127e1565b836129d6565b612040576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120379061497e565b60405180910390fd5b61204c84848484612f90565b50505050565b61205a6127e1565b73ffffffffffffffffffffffffffffffffffffffff16612078611c5a565b73ffffffffffffffffffffffffffffffffffffffff16146120ce576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120c5906148de565b60405180910390fd5b81811015612111576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612108906149de565b60405180910390fd5b82600e8190555081600d8190555080600c81905550505050565b6060601161213883612fec565b604051602001612149929190614413565b6040516020818303038152906040529050919050565b6121676127e1565b73ffffffffffffffffffffffffffffffffffffffff16612185611c5a565b73ffffffffffffffffffffffffffffffffffffffff16146121db576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121d2906148de565b60405180910390fd5b80600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b600c5481565b61222d6127e1565b73ffffffffffffffffffffffffffffffffffffffff1661224b611c5a565b73ffffffffffffffffffffffffffffffffffffffff16146122a1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612298906148de565b60405180910390fd5b80601260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6122ed6127e1565b73ffffffffffffffffffffffffffffffffffffffff1661230b611c5a565b73ffffffffffffffffffffffffffffffffffffffff1614612361576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612358906148de565b60405180910390fd5b600a60149054906101000a900460ff1615600a60146101000a81548160ff021916908315150217905550565b60606040518060600160405280602781526020016156b960279139905090565b600080600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690508273ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1663c4552791866040518263ffffffff1660e01b81526004016124259190614483565b60206040518083038186803b15801561243d57600080fd5b505afa158015612451573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906124759190613c89565b73ffffffffffffffffffffffffffffffffffffffff16141561249b5760019150506124a9565b6124a58484613199565b9150505b92915050565b600a60149054906101000a900460ff166124fe576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124f59061477e565b60405180910390fd5b3481600f5461250d9190614bb6565b111561254e576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016125459061495e565b60405180910390fd5b61255f6125596127e1565b82612dc1565b50565b61256a6127e1565b73ffffffffffffffffffffffffffffffffffffffff16612588611c5a565b73ffffffffffffffffffffffffffffffffffffffff16146125de576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016125d5906148de565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141561264e576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016126459061469e565b60405180910390fd5b61265781612eca565b50565b60003073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141561270457600080368080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f820116905080830192505050505050509050600080369050905073ffffffffffffffffffffffffffffffffffffffff818301511692505050612708565b3390505b90565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b60008073ffffffffffffffffffffffffffffffffffffffff166002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b60006127eb61265a565b905090565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff166128638361145f565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60008073ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff16141561291a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612911906147be565b60405180910390fd5b600161292d6129288761322d565b613295565b8386866040516000815260200160405260405161294d94939291906145da565b6020604051602081039080840390855afa15801561296f573d6000803e3d6000fd5b5050506020604051035173ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff1614905095945050505050565b600081836129c09190614b2f565b905092915050565b600081600001549050919050565b60006129e182612775565b612a20576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a179061475e565b60405180910390fd5b6000612a2b8361145f565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161480612a9a57508373ffffffffffffffffffffffffffffffffffffffff16612a8284610c43565b73ffffffffffffffffffffffffffffffffffffffff16145b80612aab5750612aaa81856123ad565b5b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff16612ad48261145f565b73ffffffffffffffffffffffffffffffffffffffff1614612b2a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612b21906148fe565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612b9a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612b919061471e565b60405180910390fd5b612ba58383836132ce565b612bb06000826127f0565b6001600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612c009190614c10565b925050819055506001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612c579190614b2f565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b60008273ffffffffffffffffffffffffffffffffffffffff1682604051612d369061446e565b60006040518083038185875af1925050503d8060008114612d73576040519150601f19603f3d011682016040523d82523d6000602084013e612d78565b606091505b5050905080612dbc576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612db39061483e565b60405180910390fd5b505050565b600b54811115612e06576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612dfd906146fe565b60405180910390fd5b600d5481612e1460136129c8565b612e1e9190614b2f565b1115612e5f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612e56906148be565b60405180910390fd5b60005b81811015612ea75780600e54612e789190614b2f565b600e81905550612e8860136132d3565b612e9483600e54612eac565b8080612e9f90614dbc565b915050612e62565b505050565b612ec68282604051806020016040528060008152506132e9565b5050565b6000600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600960006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b612f9b848484612ab4565b612fa784848484613344565b612fe6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612fdd9061467e565b60405180910390fd5b50505050565b60606000821415613034576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050613194565b600082905060005b6000821461306657808061304f90614dbc565b915050600a8261305f9190614b85565b915061303c565b60008167ffffffffffffffff8111156130a8577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156130da5781602001600182028036833780820191505090505b5090505b6000851461318d576001826130f39190614c10565b9150600a856131029190614e33565b603061310e9190614b2f565b60f81b81838151811061314a577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a856131869190614b85565b94506130de565b8093505050505b919050565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b60006040518060800160405280604381526020016156766043913980519060200120826000015183602001518460400151805190602001206040516020016132789493929190614595565b604051602081830303815290604052805190602001209050919050565b600061329f6110a8565b826040516020016132b1929190614437565b604051602081830303815290604052805190602001209050919050565b505050565b6001816000016000828254019250508190555050565b6132f383836134db565b6133006000848484613344565b61333f576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016133369061467e565b60405180910390fd5b505050565b60006133658473ffffffffffffffffffffffffffffffffffffffff166136a9565b156134ce578373ffffffffffffffffffffffffffffffffffffffff1663150b7a0261338e6127e1565b8786866040518563ffffffff1660e01b81526004016133b09493929190614513565b602060405180830381600087803b1580156133ca57600080fd5b505af19250505080156133fb57506040513d601f19601f820116820180604052508101906133f89190613c60565b60015b61347e573d806000811461342b576040519150601f19603f3d011682016040523d82523d6000602084013e613430565b606091505b50600081511415613476576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161346d9061467e565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149150506134d3565b600190505b949350505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561354b576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016135429061485e565b60405180910390fd5b61355481612775565b15613594576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161358b906146de565b60405180910390fd5b6135a0600083836132ce565b6001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546135f09190614b2f565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050565b600080823b905060008111915050919050565b8280546136c890614d59565b90600052602060002090601f0160209004810192826136ea5760008555613731565b82601f1061370357805160ff1916838001178555613731565b82800160010185558215613731579182015b82811115613730578251825591602001919060010190613715565b5b50905061373e9190613742565b5090565b5b8082111561375b576000816000905550600101613743565b5090565b600061377261376d84614a3e565b614a19565b9050808382526020820190508285602086028201111561379157600080fd5b60005b858110156137c157816137a78882613958565b845260208401935060208301925050600181019050613794565b5050509392505050565b60006137de6137d984614a6a565b614a19565b9050828152602081018484840111156137f657600080fd5b613801848285614d17565b509392505050565b600061381c61381784614a9b565b614a19565b90508281526020810184848401111561383457600080fd5b61383f848285614d17565b509392505050565b600081359050613856816155d4565b92915050565b60008151905061386b816155d4565b92915050565b600082601f83011261388257600080fd5b813561389284826020860161375f565b91505092915050565b6000813590506138aa816155eb565b92915050565b6000813590506138bf81615602565b92915050565b6000813590506138d481615619565b92915050565b6000815190506138e981615619565b92915050565b600082601f83011261390057600080fd5b81356139108482602086016137cb565b91505092915050565b60008151905061392881615630565b92915050565b600082601f83011261393f57600080fd5b813561394f848260208601613809565b91505092915050565b60008135905061396781615647565b92915050565b60008151905061397c81615647565b92915050565b6000813590506139918161565e565b92915050565b6000602082840312156139a957600080fd5b60006139b784828501613847565b91505092915050565b6000602082840312156139d257600080fd5b60006139e08482850161385c565b91505092915050565b600080604083850312156139fc57600080fd5b6000613a0a85828601613847565b9250506020613a1b85828601613847565b9150509250929050565b600080600060608486031215613a3a57600080fd5b6000613a4886828701613847565b9350506020613a5986828701613847565b9250506040613a6a86828701613958565b9150509250925092565b60008060008060808587031215613a8a57600080fd5b6000613a9887828801613847565b9450506020613aa987828801613847565b9350506040613aba87828801613958565b925050606085013567ffffffffffffffff811115613ad757600080fd5b613ae3878288016138ef565b91505092959194509250565b60008060408385031215613b0257600080fd5b6000613b1085828601613847565b9250506020613b218582860161389b565b9150509250929050565b600080600080600060a08688031215613b4357600080fd5b6000613b5188828901613847565b955050602086013567ffffffffffffffff811115613b6e57600080fd5b613b7a888289016138ef565b9450506040613b8b888289016138b0565b9350506060613b9c888289016138b0565b9250506080613bad88828901613982565b9150509295509295909350565b60008060408385031215613bcd57600080fd5b6000613bdb85828601613847565b9250506020613bec85828601613958565b9150509250929050565b600060208284031215613c0857600080fd5b600082013567ffffffffffffffff811115613c2257600080fd5b613c2e84828501613871565b91505092915050565b600060208284031215613c4957600080fd5b6000613c57848285016138c5565b91505092915050565b600060208284031215613c7257600080fd5b6000613c80848285016138da565b91505092915050565b600060208284031215613c9b57600080fd5b6000613ca984828501613919565b91505092915050565b600060208284031215613cc457600080fd5b600082013567ffffffffffffffff811115613cde57600080fd5b613cea8482850161392e565b91505092915050565b600060208284031215613d0557600080fd5b6000613d1384828501613958565b91505092915050565b600060208284031215613d2e57600080fd5b6000613d3c8482850161396d565b91505092915050565b60008060408385031215613d5857600080fd5b6000613d6685828601613958565b9250506020613d7785828601613847565b9150509250929050565b600080600060608486031215613d9657600080fd5b6000613da486828701613958565b9350506020613db586828701613958565b9250506040613dc686828701613958565b9150509250925092565b613dd981614c56565b82525050565b613de881614c44565b82525050565b613dff613dfa82614c44565b614e05565b82525050565b613e0e81614c68565b82525050565b613e1d81614c74565b82525050565b613e34613e2f82614c74565b614e17565b82525050565b6000613e4582614ae1565b613e4f8185614af7565b9350613e5f818560208601614d26565b613e6881614f20565b840191505092915050565b6000613e7e82614ae1565b613e888185614b08565b9350613e98818560208601614d26565b80840191505092915050565b613ead81614cf3565b82525050565b6000613ebe82614aec565b613ec88185614b13565b9350613ed8818560208601614d26565b613ee181614f20565b840191505092915050565b6000613ef782614aec565b613f018185614b24565b9350613f11818560208601614d26565b80840191505092915050565b60008154613f2a81614d59565b613f348186614b24565b94506001821660008114613f4f5760018114613f6057613f93565b60ff19831686528186019350613f93565b613f6985614acc565b60005b83811015613f8b57815481890152600182019150602081019050613f6c565b838801955050505b50505092915050565b6000613fa9603283614b13565b9150613fb482614f3e565b604082019050919050565b6000613fcc602683614b13565b9150613fd782614f8d565b604082019050919050565b6000613fef601c83614b13565b9150613ffa82614fdc565b602082019050919050565b6000614012601c83614b13565b915061401d82615005565b602082019050919050565b6000614035600283614b24565b91506140408261502e565b600282019050919050565b6000614058601183614b13565b915061406382615057565b602082019050919050565b600061407b602483614b13565b915061408682615080565b604082019050919050565b600061409e601983614b13565b91506140a9826150cf565b602082019050919050565b60006140c1602c83614b13565b91506140cc826150f8565b604082019050919050565b60006140e4600f83614b13565b91506140ef82615147565b602082019050919050565b6000614107601083614b13565b915061411282615170565b602082019050919050565b600061412a602583614b13565b915061413582615199565b604082019050919050565b600061414d603883614b13565b9150614158826151e8565b604082019050919050565b6000614170602a83614b13565b915061417b82615237565b604082019050919050565b6000614193602983614b13565b915061419e82615286565b604082019050919050565b60006141b6600983614b13565b91506141c1826152d5565b602082019050919050565b60006141d9602083614b13565b91506141e4826152fe565b602082019050919050565b60006141fc602c83614b13565b915061420782615327565b604082019050919050565b600061421f600b83614b13565b915061422a82615376565b602082019050919050565b6000614242600b83614b13565b915061424d8261539f565b602082019050919050565b6000614265602083614b13565b9150614270826153c8565b602082019050919050565b6000614288602983614b13565b9150614293826153f1565b604082019050919050565b60006142ab602183614b13565b91506142b682615440565b604082019050919050565b60006142ce602183614b13565b91506142d98261548f565b604082019050919050565b60006142f1601183614b13565b91506142fc826154de565b602082019050919050565b6000614314600083614b08565b915061431f82615507565b600082019050919050565b6000614337603183614b13565b91506143428261550a565b604082019050919050565b600061435a601783614b13565b915061436582615559565b602082019050919050565b600061437d601083614b13565b915061438882615582565b602082019050919050565b60006143a0600e83614b13565b91506143ab826155ab565b602082019050919050565b6143bf81614cdc565b82525050565b6143ce81614ce6565b82525050565b60006143e08284613e73565b915081905092915050565b60006143f78285613e73565b91506144038284613dee565b6014820191508190509392505050565b600061441f8285613f1d565b915061442b8284613eec565b91508190509392505050565b600061444282614028565b915061444e8285613e23565b60208201915061445e8284613e23565b6020820191508190509392505050565b600061447982614307565b9150819050919050565b60006020820190506144986000830184613ddf565b92915050565b60006060820190506144b36000830186613ddf565b6144c06020830185613dd0565b81810360408301526144d28184613e3a565b9050949350505050565b60006060820190506144f16000830186613ddf565b6144fe6020830185613ddf565b61450b60408301846143b6565b949350505050565b60006080820190506145286000830187613ddf565b6145356020830186613ddf565b61454260408301856143b6565b81810360608301526145548184613e3a565b905095945050505050565b60006020820190506145746000830184613e05565b92915050565b600060208201905061458f6000830184613e14565b92915050565b60006080820190506145aa6000830187613e14565b6145b760208301866143b6565b6145c46040830185613ddf565b6145d16060830184613e14565b95945050505050565b60006080820190506145ef6000830187613e14565b6145fc60208301866143c5565b6146096040830185613e14565b6146166060830184613e14565b95945050505050565b600060208201905081810360008301526146398184613e3a565b905092915050565b60006020820190506146566000830184613ea4565b92915050565b600060208201905081810360008301526146768184613eb3565b905092915050565b6000602082019050818103600083015261469781613f9c565b9050919050565b600060208201905081810360008301526146b781613fbf565b9050919050565b600060208201905081810360008301526146d781613fe2565b9050919050565b600060208201905081810360008301526146f781614005565b9050919050565b600060208201905081810360008301526147178161404b565b9050919050565b600060208201905081810360008301526147378161406e565b9050919050565b6000602082019050818103600083015261475781614091565b9050919050565b60006020820190508181036000830152614777816140b4565b9050919050565b60006020820190508181036000830152614797816140d7565b9050919050565b600060208201905081810360008301526147b7816140fa565b9050919050565b600060208201905081810360008301526147d78161411d565b9050919050565b600060208201905081810360008301526147f781614140565b9050919050565b6000602082019050818103600083015261481781614163565b9050919050565b6000602082019050818103600083015261483781614186565b9050919050565b60006020820190508181036000830152614857816141a9565b9050919050565b60006020820190508181036000830152614877816141cc565b9050919050565b60006020820190508181036000830152614897816141ef565b9050919050565b600060208201905081810360008301526148b781614212565b9050919050565b600060208201905081810360008301526148d781614235565b9050919050565b600060208201905081810360008301526148f781614258565b9050919050565b600060208201905081810360008301526149178161427b565b9050919050565b600060208201905081810360008301526149378161429e565b9050919050565b60006020820190508181036000830152614957816142c1565b9050919050565b60006020820190508181036000830152614977816142e4565b9050919050565b600060208201905081810360008301526149978161432a565b9050919050565b600060208201905081810360008301526149b78161434d565b9050919050565b600060208201905081810360008301526149d781614370565b9050919050565b600060208201905081810360008301526149f781614393565b9050919050565b6000602082019050614a1360008301846143b6565b92915050565b6000614a23614a34565b9050614a2f8282614d8b565b919050565b6000604051905090565b600067ffffffffffffffff821115614a5957614a58614ef1565b5b602082029050602081019050919050565b600067ffffffffffffffff821115614a8557614a84614ef1565b5b614a8e82614f20565b9050602081019050919050565b600067ffffffffffffffff821115614ab657614ab5614ef1565b5b614abf82614f20565b9050602081019050919050565b60008190508160005260206000209050919050565b600081519050919050565b600081519050919050565b600082825260208201905092915050565b600081905092915050565b600082825260208201905092915050565b600081905092915050565b6000614b3a82614cdc565b9150614b4583614cdc565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115614b7a57614b79614e64565b5b828201905092915050565b6000614b9082614cdc565b9150614b9b83614cdc565b925082614bab57614baa614e93565b5b828204905092915050565b6000614bc182614cdc565b9150614bcc83614cdc565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615614c0557614c04614e64565b5b828202905092915050565b6000614c1b82614cdc565b9150614c2683614cdc565b925082821015614c3957614c38614e64565b5b828203905092915050565b6000614c4f82614cbc565b9050919050565b6000614c6182614cbc565b9050919050565b60008115159050919050565b6000819050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b6000614cb582614c44565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600060ff82169050919050565b6000614cfe82614d05565b9050919050565b6000614d1082614cbc565b9050919050565b82818337600083830152505050565b60005b83811015614d44578082015181840152602081019050614d29565b83811115614d53576000848401525b50505050565b60006002820490506001821680614d7157607f821691505b60208210811415614d8557614d84614ec2565b5b50919050565b614d9482614f20565b810181811067ffffffffffffffff82111715614db357614db2614ef1565b5b80604052505050565b6000614dc782614cdc565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415614dfa57614df9614e64565b5b600182019050919050565b6000614e1082614e21565b9050919050565b6000819050919050565b6000614e2c82614f31565b9050919050565b6000614e3e82614cdc565b9150614e4983614cdc565b925082614e5957614e58614e93565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000601f19601f8301169050919050565b60008160601b9050919050565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f46756e6374696f6e2063616c6c206e6f74207375636365737366756c00000000600082015250565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b7f1901000000000000000000000000000000000000000000000000000000000000600082015250565b7f4d6178206d696e74206578636565646564000000000000000000000000000000600082015250565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b7f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b7f53616c65206e6f74206163746976650000000000000000000000000000000000600082015250565b7f4d757374206265206120686f6c64657200000000000000000000000000000000600082015250565b7f4e61746976654d6574615472616e73616374696f6e3a20494e56414c49445f5360008201527f49474e4552000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760008201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000602082015250565b7f4552433732313a2062616c616e636520717565727920666f7220746865207a6560008201527f726f206164647265737300000000000000000000000000000000000000000000602082015250565b7f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460008201527f656e7420746f6b656e0000000000000000000000000000000000000000000000602082015250565b7f5478206661696c65640000000000000000000000000000000000000000000000600082015250565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b7f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b7f4e6f7420677261696c6572000000000000000000000000000000000000000000600082015250565b7f4d61782072656163686564000000000000000000000000000000000000000000600082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960008201527f73206e6f74206f776e0000000000000000000000000000000000000000000000602082015250565b7f5369676e657220616e64207369676e617475726520646f206e6f74206d61746360008201527f6800000000000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b7f4574682076616c20696e636f7272656374000000000000000000000000000000600082015250565b50565b7f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60008201527f776e6572206e6f7220617070726f766564000000000000000000000000000000602082015250565b7f486f6c646572732073616c65206e6f7420616374697665000000000000000000600082015250565b7f436c61696d206e6f742061637469766500000000000000000000000000000000600082015250565b7f496e76616c696420737570706c79000000000000000000000000000000000000600082015250565b6155dd81614c44565b81146155e857600080fd5b50565b6155f481614c68565b81146155ff57600080fd5b50565b61560b81614c74565b811461561657600080fd5b50565b61562281614c7e565b811461562d57600080fd5b50565b61563981614caa565b811461564457600080fd5b50565b61565081614cdc565b811461565b57600080fd5b50565b61566781614ce6565b811461567257600080fd5b5056fe4d6574615472616e73616374696f6e2875696e74323536206e6f6e63652c616464726573732066726f6d2c62797465732066756e6374696f6e5369676e61747572652968747470733a2f2f7777772e677261696c6572732e636f6d2f6170692f636f6e74726163742f32a264697066735822122050e4cd207c33a34ea31ae545e75e12f2600e08ded18cf1b332fdc4bb4f0c44fd64736f6c63430008020033454950373132446f6d61696e28737472696e67206e616d652c737472696e672076657273696f6e2c6164647265737320766572696679696e67436f6e74726163742c627974657333322073616c742968747470733a2f2f7777772e677261696c6572732e636f6d2f6170692f6d6574612f322f000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c1000000000000000000000000000000000000000000000000000000000000000f477261696c65727344414f204e465400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000007475241494c455200000000000000000000000000000000000000000000000000

Deployed Bytecode

0x6080604052600436106102ae5760003560e01c80636f8b44b011610175578063b455c5fe116100dc578063d5abeb0111610095578063e8a3d4851161006f578063e8a3d48514610a22578063e985e9c514610a4d578063efd0cbf914610a8a578063f2fde38b14610aa6576102ae565b8063d5abeb01146109b7578063d67140af146109e2578063e601971614610a0b576102ae565b8063b455c5fe146108ab578063b6c65d38146108d4578063b88d4fde146108ff578063b8d217f114610928578063c87b56dd14610951578063d26ea6c01461098e576102ae565b80638269de671161012e5780638269de67146107d05780638b60fe63146107e75780638da5cb5b1461080357806395d89b411461082e5780639a3cac6a14610859578063a22cb46514610882576102ae565b80636f8b44b0146106d457806370a08231146106fd578063715018a61461073a57806373c8c8831461075157806375794a3c1461077a57806381baee83146107a5576102ae565b806326a74d8e1161021957806342842e0e116101d257806342842e0e146105c6578063478f20e7146105ef5780635303f68c1461061a578063631bbbba146106455780636352211e1461066e5780636ba4c138146106ab576102ae565b806326a74d8e146104dc5780632d0335ab146105075780632db0c07c1461054457806330176e131461055b5780633408e470146105845780633ccfd60b146105af576102ae565b8063138a4e011161026b578063138a4e01146103dc57806318160ddd146104075780631efba6c21461043257806320379ee51461045d5780632131c68c1461048857806323b872dd146104b3576102ae565b806301ffc9a7146102b357806306fdde03146102f0578063081812fc1461031b578063095ea7b3146103585780630c53c51c146103815780630f7e5970146103b1575b600080fd5b3480156102bf57600080fd5b506102da60048036038101906102d59190613c37565b610acf565b6040516102e7919061455f565b60405180910390f35b3480156102fc57600080fd5b50610305610bb1565b604051610312919061465c565b60405180910390f35b34801561032757600080fd5b50610342600480360381019061033d9190613cf3565b610c43565b60405161034f9190614483565b60405180910390f35b34801561036457600080fd5b5061037f600480360381019061037a9190613bba565b610cc8565b005b61039b60048036038101906103969190613b2b565b610de0565b6040516103a8919061461f565b60405180910390f35b3480156103bd57600080fd5b506103c6611052565b6040516103d3919061465c565b60405180910390f35b3480156103e857600080fd5b506103f161108b565b6040516103fe91906149fe565b60405180910390f35b34801561041357600080fd5b5061041c611091565b60405161042991906149fe565b60405180910390f35b34801561043e57600080fd5b506104476110a2565b60405161045491906149fe565b60405180910390f35b34801561046957600080fd5b506104726110a8565b60405161047f919061457a565b60405180910390f35b34801561049457600080fd5b5061049d6110b2565b6040516104aa9190614483565b60405180910390f35b3480156104bf57600080fd5b506104da60048036038101906104d59190613a25565b6110d8565b005b3480156104e857600080fd5b506104f1611138565b6040516104fe91906149fe565b60405180910390f35b34801561051357600080fd5b5061052e60048036038101906105299190613997565b61113e565b60405161053b91906149fe565b60405180910390f35b34801561055057600080fd5b50610559611187565b005b34801561056757600080fd5b50610582600480360381019061057d9190613cb2565b61122f565b005b34801561059057600080fd5b506105996112c5565b6040516105a691906149fe565b60405180910390f35b3480156105bb57600080fd5b506105c46112d2565b005b3480156105d257600080fd5b506105ed60048036038101906105e89190613a25565b61138f565b005b3480156105fb57600080fd5b506106046113af565b604051610611919061455f565b60405180910390f35b34801561062657600080fd5b5061062f6113c2565b60405161063c919061455f565b60405180910390f35b34801561065157600080fd5b5061066c60048036038101906106679190613d45565b6113d5565b005b34801561067a57600080fd5b5061069560048036038101906106909190613cf3565b61145f565b6040516106a29190614483565b60405180910390f35b3480156106b757600080fd5b506106d260048036038101906106cd9190613bf6565b611511565b005b3480156106e057600080fd5b506106fb60048036038101906106f69190613cf3565b6117b5565b005b34801561070957600080fd5b50610724600480360381019061071f9190613997565b61183b565b60405161073191906149fe565b60405180910390f35b34801561074657600080fd5b5061074f6118f3565b005b34801561075d57600080fd5b5061077860048036038101906107739190613cf3565b61197b565b005b34801561078657600080fd5b5061078f611a01565b60405161079c91906149fe565b60405180910390f35b3480156107b157600080fd5b506107ba611a07565b6040516107c79190614641565b60405180910390f35b3480156107dc57600080fd5b506107e5611a2d565b005b61080160048036038101906107fc9190613cf3565b611ad5565b005b34801561080f57600080fd5b50610818611c5a565b6040516108259190614483565b60405180910390f35b34801561083a57600080fd5b50610843611c84565b604051610850919061465c565b60405180910390f35b34801561086557600080fd5b50610880600480360381019061087b9190613997565b611d16565b005b34801561088e57600080fd5b506108a960048036038101906108a49190613aef565b611dd6565b005b3480156108b757600080fd5b506108d260048036038101906108cd9190613cf3565b611f57565b005b3480156108e057600080fd5b506108e9611fdd565b6040516108f6919061455f565b60405180910390f35b34801561090b57600080fd5b5061092660048036038101906109219190613a74565b611ff0565b005b34801561093457600080fd5b5061094f600480360381019061094a9190613d81565b612052565b005b34801561095d57600080fd5b5061097860048036038101906109739190613cf3565b61212b565b604051610985919061465c565b60405180910390f35b34801561099a57600080fd5b506109b560048036038101906109b09190613997565b61215f565b005b3480156109c357600080fd5b506109cc61221f565b6040516109d991906149fe565b60405180910390f35b3480156109ee57600080fd5b50610a096004803603810190610a049190613997565b612225565b005b348015610a1757600080fd5b50610a206122e5565b005b348015610a2e57600080fd5b50610a3761238d565b604051610a44919061465c565b60405180910390f35b348015610a5957600080fd5b50610a746004803603810190610a6f91906139e9565b6123ad565b604051610a81919061455f565b60405180910390f35b610aa46004803603810190610a9f9190613cf3565b6124af565b005b348015610ab257600080fd5b50610acd6004803603810190610ac89190613997565b612562565b005b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480610b9a57507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610baa5750610ba98261270b565b5b9050919050565b606060008054610bc090614d59565b80601f0160208091040260200160405190810160405280929190818152602001828054610bec90614d59565b8015610c395780601f10610c0e57610100808354040283529160200191610c39565b820191906000526020600020905b815481529060010190602001808311610c1c57829003601f168201915b5050505050905090565b6000610c4e82612775565b610c8d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c849061487e565b60405180910390fd5b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610cd38261145f565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610d44576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d3b9061493e565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610d636127e1565b73ffffffffffffffffffffffffffffffffffffffff161480610d925750610d9181610d8c6127e1565b6123ad565b5b610dd1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610dc8906147de565b60405180910390fd5b610ddb83836127f0565b505050565b606060006040518060600160405280600860008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205481526020018873ffffffffffffffffffffffffffffffffffffffff168152602001878152509050610e6387828787876128a9565b610ea2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e999061491e565b60405180910390fd5b610ef56001600860008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546129b290919063ffffffff16565b600860008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055507f5845892132946850460bff5a0083f71031bc5bf9aadcd40f1de79423eac9b10b873388604051610f6b9392919061449e565b60405180910390a16000803073ffffffffffffffffffffffffffffffffffffffff16888a604051602001610fa09291906143eb565b604051602081830303815290604052604051610fbc91906143d4565b6000604051808303816000865af19150503d8060008114610ff9576040519150601f19603f3d011682016040523d82523d6000602084013e610ffe565b606091505b509150915081611043576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161103a906146be565b60405180910390fd5b80935050505095945050505050565b6040518060400160405280600181526020017f310000000000000000000000000000000000000000000000000000000000000081525081565b600b5481565b600061109d60136129c8565b905090565b600f5481565b6000600754905090565b601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6110e96110e36127e1565b826129d6565b611128576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161111f9061497e565b60405180910390fd5b611133838383612ab4565b505050565b600d5481565b6000600860008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b61118f6127e1565b73ffffffffffffffffffffffffffffffffffffffff166111ad611c5a565b73ffffffffffffffffffffffffffffffffffffffff1614611203576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111fa906148de565b60405180910390fd5b600a60159054906101000a900460ff1615600a60156101000a81548160ff021916908315150217905550565b6112376127e1565b73ffffffffffffffffffffffffffffffffffffffff16611255611c5a565b73ffffffffffffffffffffffffffffffffffffffff16146112ab576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112a2906148de565b60405180910390fd5b80601190805190602001906112c19291906136bc565b5050565b6000804690508091505090565b6112da6127e1565b73ffffffffffffffffffffffffffffffffffffffff166112f8611c5a565b73ffffffffffffffffffffffffffffffffffffffff161461134e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611345906148de565b60405180910390fd5b60004790506000811161136057600080fd5b61138c601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1682612d10565b50565b6113aa83838360405180602001604052806000815250611ff0565b505050565b600a60169054906101000a900460ff1681565b600a60159054906101000a900460ff1681565b6113dd6127e1565b73ffffffffffffffffffffffffffffffffffffffff166113fb611c5a565b73ffffffffffffffffffffffffffffffffffffffff1614611451576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611448906148de565b60405180910390fd5b61145b8183612dc1565b5050565b6000806002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611508576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114ff9061481e565b60405180910390fd5b80915050919050565b600a60159054906101000a900460ff16611560576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611557906149be565b60405180910390fd5b60005b81518110156117b15760008282815181106115a7577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602002602001015190506115b96127e1565b73ffffffffffffffffffffffffffffffffffffffff16601260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16636352211e836040518263ffffffff1660e01b815260040161162a91906149fe565b602060405180830381600087803b15801561164457600080fd5b505af1158015611658573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061167c91906139c0565b73ffffffffffffffffffffffffffffffffffffffff16146116d2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116c99061489e565b60405180910390fd5b601260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166342842e0e6117186127e1565b601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16846040518463ffffffff1660e01b815260040161175a939291906144dc565b600060405180830381600087803b15801561177457600080fd5b505af1158015611788573d6000803e3d6000fd5b5050505061179d6117976127e1565b82612eac565b5080806117a990614dbc565b915050611563565b5050565b6117bd6127e1565b73ffffffffffffffffffffffffffffffffffffffff166117db611c5a565b73ffffffffffffffffffffffffffffffffffffffff1614611831576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611828906148de565b60405180910390fd5b80600c8190555050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156118ac576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118a3906147fe565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b6118fb6127e1565b73ffffffffffffffffffffffffffffffffffffffff16611919611c5a565b73ffffffffffffffffffffffffffffffffffffffff161461196f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611966906148de565b60405180910390fd5b6119796000612eca565b565b6119836127e1565b73ffffffffffffffffffffffffffffffffffffffff166119a1611c5a565b73ffffffffffffffffffffffffffffffffffffffff16146119f7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119ee906148de565b60405180910390fd5b80600f8190555050565b600e5481565b601260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b611a356127e1565b73ffffffffffffffffffffffffffffffffffffffff16611a53611c5a565b73ffffffffffffffffffffffffffffffffffffffff1614611aa9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611aa0906148de565b60405180910390fd5b600a60169054906101000a900460ff1615600a60166101000a81548160ff021916908315150217905550565b600a60169054906101000a900460ff16611b24576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b1b9061499e565b60405180910390fd5b60003073ffffffffffffffffffffffffffffffffffffffff166370a08231611b4a6127e1565b6040518263ffffffff1660e01b8152600401611b669190614483565b60206040518083038186803b158015611b7e57600080fd5b505afa158015611b92573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611bb69190613d1c565b11611bf6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611bed9061479e565b60405180910390fd5b3481600f54611c059190614bb6565b1115611c46576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c3d9061495e565b60405180910390fd5b611c57611c516127e1565b82612dc1565b50565b6000600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b606060018054611c9390614d59565b80601f0160208091040260200160405190810160405280929190818152602001828054611cbf90614d59565b8015611d0c5780601f10611ce157610100808354040283529160200191611d0c565b820191906000526020600020905b815481529060010190602001808311611cef57829003601f168201915b5050505050905090565b611d1e6127e1565b73ffffffffffffffffffffffffffffffffffffffff16611d3c611c5a565b73ffffffffffffffffffffffffffffffffffffffff1614611d92576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d89906148de565b60405180910390fd5b80601060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b611dde6127e1565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611e4c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e439061473e565b60405180910390fd5b8060056000611e596127e1565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff16611f066127e1565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051611f4b919061455f565b60405180910390a35050565b611f5f6127e1565b73ffffffffffffffffffffffffffffffffffffffff16611f7d611c5a565b73ffffffffffffffffffffffffffffffffffffffff1614611fd3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611fca906148de565b60405180910390fd5b80600b8190555050565b600a60149054906101000a900460ff1681565b612001611ffb6127e1565b836129d6565b612040576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120379061497e565b60405180910390fd5b61204c84848484612f90565b50505050565b61205a6127e1565b73ffffffffffffffffffffffffffffffffffffffff16612078611c5a565b73ffffffffffffffffffffffffffffffffffffffff16146120ce576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120c5906148de565b60405180910390fd5b81811015612111576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612108906149de565b60405180910390fd5b82600e8190555081600d8190555080600c81905550505050565b6060601161213883612fec565b604051602001612149929190614413565b6040516020818303038152906040529050919050565b6121676127e1565b73ffffffffffffffffffffffffffffffffffffffff16612185611c5a565b73ffffffffffffffffffffffffffffffffffffffff16146121db576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121d2906148de565b60405180910390fd5b80600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b600c5481565b61222d6127e1565b73ffffffffffffffffffffffffffffffffffffffff1661224b611c5a565b73ffffffffffffffffffffffffffffffffffffffff16146122a1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612298906148de565b60405180910390fd5b80601260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6122ed6127e1565b73ffffffffffffffffffffffffffffffffffffffff1661230b611c5a565b73ffffffffffffffffffffffffffffffffffffffff1614612361576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612358906148de565b60405180910390fd5b600a60149054906101000a900460ff1615600a60146101000a81548160ff021916908315150217905550565b60606040518060600160405280602781526020016156b960279139905090565b600080600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690508273ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1663c4552791866040518263ffffffff1660e01b81526004016124259190614483565b60206040518083038186803b15801561243d57600080fd5b505afa158015612451573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906124759190613c89565b73ffffffffffffffffffffffffffffffffffffffff16141561249b5760019150506124a9565b6124a58484613199565b9150505b92915050565b600a60149054906101000a900460ff166124fe576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124f59061477e565b60405180910390fd5b3481600f5461250d9190614bb6565b111561254e576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016125459061495e565b60405180910390fd5b61255f6125596127e1565b82612dc1565b50565b61256a6127e1565b73ffffffffffffffffffffffffffffffffffffffff16612588611c5a565b73ffffffffffffffffffffffffffffffffffffffff16146125de576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016125d5906148de565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141561264e576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016126459061469e565b60405180910390fd5b61265781612eca565b50565b60003073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141561270457600080368080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f820116905080830192505050505050509050600080369050905073ffffffffffffffffffffffffffffffffffffffff818301511692505050612708565b3390505b90565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b60008073ffffffffffffffffffffffffffffffffffffffff166002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b60006127eb61265a565b905090565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff166128638361145f565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60008073ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff16141561291a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612911906147be565b60405180910390fd5b600161292d6129288761322d565b613295565b8386866040516000815260200160405260405161294d94939291906145da565b6020604051602081039080840390855afa15801561296f573d6000803e3d6000fd5b5050506020604051035173ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff1614905095945050505050565b600081836129c09190614b2f565b905092915050565b600081600001549050919050565b60006129e182612775565b612a20576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a179061475e565b60405180910390fd5b6000612a2b8361145f565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161480612a9a57508373ffffffffffffffffffffffffffffffffffffffff16612a8284610c43565b73ffffffffffffffffffffffffffffffffffffffff16145b80612aab5750612aaa81856123ad565b5b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff16612ad48261145f565b73ffffffffffffffffffffffffffffffffffffffff1614612b2a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612b21906148fe565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612b9a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612b919061471e565b60405180910390fd5b612ba58383836132ce565b612bb06000826127f0565b6001600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612c009190614c10565b925050819055506001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612c579190614b2f565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b60008273ffffffffffffffffffffffffffffffffffffffff1682604051612d369061446e565b60006040518083038185875af1925050503d8060008114612d73576040519150601f19603f3d011682016040523d82523d6000602084013e612d78565b606091505b5050905080612dbc576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612db39061483e565b60405180910390fd5b505050565b600b54811115612e06576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612dfd906146fe565b60405180910390fd5b600d5481612e1460136129c8565b612e1e9190614b2f565b1115612e5f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612e56906148be565b60405180910390fd5b60005b81811015612ea75780600e54612e789190614b2f565b600e81905550612e8860136132d3565b612e9483600e54612eac565b8080612e9f90614dbc565b915050612e62565b505050565b612ec68282604051806020016040528060008152506132e9565b5050565b6000600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600960006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b612f9b848484612ab4565b612fa784848484613344565b612fe6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612fdd9061467e565b60405180910390fd5b50505050565b60606000821415613034576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050613194565b600082905060005b6000821461306657808061304f90614dbc565b915050600a8261305f9190614b85565b915061303c565b60008167ffffffffffffffff8111156130a8577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156130da5781602001600182028036833780820191505090505b5090505b6000851461318d576001826130f39190614c10565b9150600a856131029190614e33565b603061310e9190614b2f565b60f81b81838151811061314a577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a856131869190614b85565b94506130de565b8093505050505b919050565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b60006040518060800160405280604381526020016156766043913980519060200120826000015183602001518460400151805190602001206040516020016132789493929190614595565b604051602081830303815290604052805190602001209050919050565b600061329f6110a8565b826040516020016132b1929190614437565b604051602081830303815290604052805190602001209050919050565b505050565b6001816000016000828254019250508190555050565b6132f383836134db565b6133006000848484613344565b61333f576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016133369061467e565b60405180910390fd5b505050565b60006133658473ffffffffffffffffffffffffffffffffffffffff166136a9565b156134ce578373ffffffffffffffffffffffffffffffffffffffff1663150b7a0261338e6127e1565b8786866040518563ffffffff1660e01b81526004016133b09493929190614513565b602060405180830381600087803b1580156133ca57600080fd5b505af19250505080156133fb57506040513d601f19601f820116820180604052508101906133f89190613c60565b60015b61347e573d806000811461342b576040519150601f19603f3d011682016040523d82523d6000602084013e613430565b606091505b50600081511415613476576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161346d9061467e565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149150506134d3565b600190505b949350505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561354b576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016135429061485e565b60405180910390fd5b61355481612775565b15613594576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161358b906146de565b60405180910390fd5b6135a0600083836132ce565b6001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546135f09190614b2f565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050565b600080823b905060008111915050919050565b8280546136c890614d59565b90600052602060002090601f0160209004810192826136ea5760008555613731565b82601f1061370357805160ff1916838001178555613731565b82800160010185558215613731579182015b82811115613730578251825591602001919060010190613715565b5b50905061373e9190613742565b5090565b5b8082111561375b576000816000905550600101613743565b5090565b600061377261376d84614a3e565b614a19565b9050808382526020820190508285602086028201111561379157600080fd5b60005b858110156137c157816137a78882613958565b845260208401935060208301925050600181019050613794565b5050509392505050565b60006137de6137d984614a6a565b614a19565b9050828152602081018484840111156137f657600080fd5b613801848285614d17565b509392505050565b600061381c61381784614a9b565b614a19565b90508281526020810184848401111561383457600080fd5b61383f848285614d17565b509392505050565b600081359050613856816155d4565b92915050565b60008151905061386b816155d4565b92915050565b600082601f83011261388257600080fd5b813561389284826020860161375f565b91505092915050565b6000813590506138aa816155eb565b92915050565b6000813590506138bf81615602565b92915050565b6000813590506138d481615619565b92915050565b6000815190506138e981615619565b92915050565b600082601f83011261390057600080fd5b81356139108482602086016137cb565b91505092915050565b60008151905061392881615630565b92915050565b600082601f83011261393f57600080fd5b813561394f848260208601613809565b91505092915050565b60008135905061396781615647565b92915050565b60008151905061397c81615647565b92915050565b6000813590506139918161565e565b92915050565b6000602082840312156139a957600080fd5b60006139b784828501613847565b91505092915050565b6000602082840312156139d257600080fd5b60006139e08482850161385c565b91505092915050565b600080604083850312156139fc57600080fd5b6000613a0a85828601613847565b9250506020613a1b85828601613847565b9150509250929050565b600080600060608486031215613a3a57600080fd5b6000613a4886828701613847565b9350506020613a5986828701613847565b9250506040613a6a86828701613958565b9150509250925092565b60008060008060808587031215613a8a57600080fd5b6000613a9887828801613847565b9450506020613aa987828801613847565b9350506040613aba87828801613958565b925050606085013567ffffffffffffffff811115613ad757600080fd5b613ae3878288016138ef565b91505092959194509250565b60008060408385031215613b0257600080fd5b6000613b1085828601613847565b9250506020613b218582860161389b565b9150509250929050565b600080600080600060a08688031215613b4357600080fd5b6000613b5188828901613847565b955050602086013567ffffffffffffffff811115613b6e57600080fd5b613b7a888289016138ef565b9450506040613b8b888289016138b0565b9350506060613b9c888289016138b0565b9250506080613bad88828901613982565b9150509295509295909350565b60008060408385031215613bcd57600080fd5b6000613bdb85828601613847565b9250506020613bec85828601613958565b9150509250929050565b600060208284031215613c0857600080fd5b600082013567ffffffffffffffff811115613c2257600080fd5b613c2e84828501613871565b91505092915050565b600060208284031215613c4957600080fd5b6000613c57848285016138c5565b91505092915050565b600060208284031215613c7257600080fd5b6000613c80848285016138da565b91505092915050565b600060208284031215613c9b57600080fd5b6000613ca984828501613919565b91505092915050565b600060208284031215613cc457600080fd5b600082013567ffffffffffffffff811115613cde57600080fd5b613cea8482850161392e565b91505092915050565b600060208284031215613d0557600080fd5b6000613d1384828501613958565b91505092915050565b600060208284031215613d2e57600080fd5b6000613d3c8482850161396d565b91505092915050565b60008060408385031215613d5857600080fd5b6000613d6685828601613958565b9250506020613d7785828601613847565b9150509250929050565b600080600060608486031215613d9657600080fd5b6000613da486828701613958565b9350506020613db586828701613958565b9250506040613dc686828701613958565b9150509250925092565b613dd981614c56565b82525050565b613de881614c44565b82525050565b613dff613dfa82614c44565b614e05565b82525050565b613e0e81614c68565b82525050565b613e1d81614c74565b82525050565b613e34613e2f82614c74565b614e17565b82525050565b6000613e4582614ae1565b613e4f8185614af7565b9350613e5f818560208601614d26565b613e6881614f20565b840191505092915050565b6000613e7e82614ae1565b613e888185614b08565b9350613e98818560208601614d26565b80840191505092915050565b613ead81614cf3565b82525050565b6000613ebe82614aec565b613ec88185614b13565b9350613ed8818560208601614d26565b613ee181614f20565b840191505092915050565b6000613ef782614aec565b613f018185614b24565b9350613f11818560208601614d26565b80840191505092915050565b60008154613f2a81614d59565b613f348186614b24565b94506001821660008114613f4f5760018114613f6057613f93565b60ff19831686528186019350613f93565b613f6985614acc565b60005b83811015613f8b57815481890152600182019150602081019050613f6c565b838801955050505b50505092915050565b6000613fa9603283614b13565b9150613fb482614f3e565b604082019050919050565b6000613fcc602683614b13565b9150613fd782614f8d565b604082019050919050565b6000613fef601c83614b13565b9150613ffa82614fdc565b602082019050919050565b6000614012601c83614b13565b915061401d82615005565b602082019050919050565b6000614035600283614b24565b91506140408261502e565b600282019050919050565b6000614058601183614b13565b915061406382615057565b602082019050919050565b600061407b602483614b13565b915061408682615080565b604082019050919050565b600061409e601983614b13565b91506140a9826150cf565b602082019050919050565b60006140c1602c83614b13565b91506140cc826150f8565b604082019050919050565b60006140e4600f83614b13565b91506140ef82615147565b602082019050919050565b6000614107601083614b13565b915061411282615170565b602082019050919050565b600061412a602583614b13565b915061413582615199565b604082019050919050565b600061414d603883614b13565b9150614158826151e8565b604082019050919050565b6000614170602a83614b13565b915061417b82615237565b604082019050919050565b6000614193602983614b13565b915061419e82615286565b604082019050919050565b60006141b6600983614b13565b91506141c1826152d5565b602082019050919050565b60006141d9602083614b13565b91506141e4826152fe565b602082019050919050565b60006141fc602c83614b13565b915061420782615327565b604082019050919050565b600061421f600b83614b13565b915061422a82615376565b602082019050919050565b6000614242600b83614b13565b915061424d8261539f565b602082019050919050565b6000614265602083614b13565b9150614270826153c8565b602082019050919050565b6000614288602983614b13565b9150614293826153f1565b604082019050919050565b60006142ab602183614b13565b91506142b682615440565b604082019050919050565b60006142ce602183614b13565b91506142d98261548f565b604082019050919050565b60006142f1601183614b13565b91506142fc826154de565b602082019050919050565b6000614314600083614b08565b915061431f82615507565b600082019050919050565b6000614337603183614b13565b91506143428261550a565b604082019050919050565b600061435a601783614b13565b915061436582615559565b602082019050919050565b600061437d601083614b13565b915061438882615582565b602082019050919050565b60006143a0600e83614b13565b91506143ab826155ab565b602082019050919050565b6143bf81614cdc565b82525050565b6143ce81614ce6565b82525050565b60006143e08284613e73565b915081905092915050565b60006143f78285613e73565b91506144038284613dee565b6014820191508190509392505050565b600061441f8285613f1d565b915061442b8284613eec565b91508190509392505050565b600061444282614028565b915061444e8285613e23565b60208201915061445e8284613e23565b6020820191508190509392505050565b600061447982614307565b9150819050919050565b60006020820190506144986000830184613ddf565b92915050565b60006060820190506144b36000830186613ddf565b6144c06020830185613dd0565b81810360408301526144d28184613e3a565b9050949350505050565b60006060820190506144f16000830186613ddf565b6144fe6020830185613ddf565b61450b60408301846143b6565b949350505050565b60006080820190506145286000830187613ddf565b6145356020830186613ddf565b61454260408301856143b6565b81810360608301526145548184613e3a565b905095945050505050565b60006020820190506145746000830184613e05565b92915050565b600060208201905061458f6000830184613e14565b92915050565b60006080820190506145aa6000830187613e14565b6145b760208301866143b6565b6145c46040830185613ddf565b6145d16060830184613e14565b95945050505050565b60006080820190506145ef6000830187613e14565b6145fc60208301866143c5565b6146096040830185613e14565b6146166060830184613e14565b95945050505050565b600060208201905081810360008301526146398184613e3a565b905092915050565b60006020820190506146566000830184613ea4565b92915050565b600060208201905081810360008301526146768184613eb3565b905092915050565b6000602082019050818103600083015261469781613f9c565b9050919050565b600060208201905081810360008301526146b781613fbf565b9050919050565b600060208201905081810360008301526146d781613fe2565b9050919050565b600060208201905081810360008301526146f781614005565b9050919050565b600060208201905081810360008301526147178161404b565b9050919050565b600060208201905081810360008301526147378161406e565b9050919050565b6000602082019050818103600083015261475781614091565b9050919050565b60006020820190508181036000830152614777816140b4565b9050919050565b60006020820190508181036000830152614797816140d7565b9050919050565b600060208201905081810360008301526147b7816140fa565b9050919050565b600060208201905081810360008301526147d78161411d565b9050919050565b600060208201905081810360008301526147f781614140565b9050919050565b6000602082019050818103600083015261481781614163565b9050919050565b6000602082019050818103600083015261483781614186565b9050919050565b60006020820190508181036000830152614857816141a9565b9050919050565b60006020820190508181036000830152614877816141cc565b9050919050565b60006020820190508181036000830152614897816141ef565b9050919050565b600060208201905081810360008301526148b781614212565b9050919050565b600060208201905081810360008301526148d781614235565b9050919050565b600060208201905081810360008301526148f781614258565b9050919050565b600060208201905081810360008301526149178161427b565b9050919050565b600060208201905081810360008301526149378161429e565b9050919050565b60006020820190508181036000830152614957816142c1565b9050919050565b60006020820190508181036000830152614977816142e4565b9050919050565b600060208201905081810360008301526149978161432a565b9050919050565b600060208201905081810360008301526149b78161434d565b9050919050565b600060208201905081810360008301526149d781614370565b9050919050565b600060208201905081810360008301526149f781614393565b9050919050565b6000602082019050614a1360008301846143b6565b92915050565b6000614a23614a34565b9050614a2f8282614d8b565b919050565b6000604051905090565b600067ffffffffffffffff821115614a5957614a58614ef1565b5b602082029050602081019050919050565b600067ffffffffffffffff821115614a8557614a84614ef1565b5b614a8e82614f20565b9050602081019050919050565b600067ffffffffffffffff821115614ab657614ab5614ef1565b5b614abf82614f20565b9050602081019050919050565b60008190508160005260206000209050919050565b600081519050919050565b600081519050919050565b600082825260208201905092915050565b600081905092915050565b600082825260208201905092915050565b600081905092915050565b6000614b3a82614cdc565b9150614b4583614cdc565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115614b7a57614b79614e64565b5b828201905092915050565b6000614b9082614cdc565b9150614b9b83614cdc565b925082614bab57614baa614e93565b5b828204905092915050565b6000614bc182614cdc565b9150614bcc83614cdc565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615614c0557614c04614e64565b5b828202905092915050565b6000614c1b82614cdc565b9150614c2683614cdc565b925082821015614c3957614c38614e64565b5b828203905092915050565b6000614c4f82614cbc565b9050919050565b6000614c6182614cbc565b9050919050565b60008115159050919050565b6000819050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b6000614cb582614c44565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600060ff82169050919050565b6000614cfe82614d05565b9050919050565b6000614d1082614cbc565b9050919050565b82818337600083830152505050565b60005b83811015614d44578082015181840152602081019050614d29565b83811115614d53576000848401525b50505050565b60006002820490506001821680614d7157607f821691505b60208210811415614d8557614d84614ec2565b5b50919050565b614d9482614f20565b810181811067ffffffffffffffff82111715614db357614db2614ef1565b5b80604052505050565b6000614dc782614cdc565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415614dfa57614df9614e64565b5b600182019050919050565b6000614e1082614e21565b9050919050565b6000819050919050565b6000614e2c82614f31565b9050919050565b6000614e3e82614cdc565b9150614e4983614cdc565b925082614e5957614e58614e93565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000601f19601f8301169050919050565b60008160601b9050919050565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f46756e6374696f6e2063616c6c206e6f74207375636365737366756c00000000600082015250565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b7f1901000000000000000000000000000000000000000000000000000000000000600082015250565b7f4d6178206d696e74206578636565646564000000000000000000000000000000600082015250565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b7f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b7f53616c65206e6f74206163746976650000000000000000000000000000000000600082015250565b7f4d757374206265206120686f6c64657200000000000000000000000000000000600082015250565b7f4e61746976654d6574615472616e73616374696f6e3a20494e56414c49445f5360008201527f49474e4552000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760008201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000602082015250565b7f4552433732313a2062616c616e636520717565727920666f7220746865207a6560008201527f726f206164647265737300000000000000000000000000000000000000000000602082015250565b7f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460008201527f656e7420746f6b656e0000000000000000000000000000000000000000000000602082015250565b7f5478206661696c65640000000000000000000000000000000000000000000000600082015250565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b7f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b7f4e6f7420677261696c6572000000000000000000000000000000000000000000600082015250565b7f4d61782072656163686564000000000000000000000000000000000000000000600082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960008201527f73206e6f74206f776e0000000000000000000000000000000000000000000000602082015250565b7f5369676e657220616e64207369676e617475726520646f206e6f74206d61746360008201527f6800000000000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b7f4574682076616c20696e636f7272656374000000000000000000000000000000600082015250565b50565b7f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60008201527f776e6572206e6f7220617070726f766564000000000000000000000000000000602082015250565b7f486f6c646572732073616c65206e6f7420616374697665000000000000000000600082015250565b7f436c61696d206e6f742061637469766500000000000000000000000000000000600082015250565b7f496e76616c696420737570706c79000000000000000000000000000000000000600082015250565b6155dd81614c44565b81146155e857600080fd5b50565b6155f481614c68565b81146155ff57600080fd5b50565b61560b81614c74565b811461561657600080fd5b50565b61562281614c7e565b811461562d57600080fd5b50565b61563981614caa565b811461564457600080fd5b50565b61565081614cdc565b811461565b57600080fd5b50565b61566781614ce6565b811461567257600080fd5b5056fe4d6574615472616e73616374696f6e2875696e74323536206e6f6e63652c616464726573732066726f6d2c62797465732066756e6374696f6e5369676e61747572652968747470733a2f2f7777772e677261696c6572732e636f6d2f6170692f636f6e74726163742f32a264697066735822122050e4cd207c33a34ea31ae545e75e12f2600e08ded18cf1b332fdc4bb4f0c44fd64736f6c63430008020033

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

000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c1000000000000000000000000000000000000000000000000000000000000000f477261696c65727344414f204e465400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000007475241494c455200000000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : _name (string): GrailersDAO NFT
Arg [1] : _symbol (string): GRAILER
Arg [2] : _proxyRegistryAddress (address): 0xa5409ec958C83C3f309868babACA7c86DCB077c1

-----Encoded View---------------
7 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000060
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000a0
Arg [2] : 000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c1
Arg [3] : 000000000000000000000000000000000000000000000000000000000000000f
Arg [4] : 477261696c65727344414f204e46540000000000000000000000000000000000
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000007
Arg [6] : 475241494c455200000000000000000000000000000000000000000000000000


Loading...
Loading
Loading...
Loading
[ 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.