ETH Price: $3,566.56 (-1.26%)

Token

ERC-20: Pleasant Goat and Big Big Wolf - Fantastic... (Pleasant Goat and Big Big Wolf - Fantastic Weslie)
 

Overview

Max Total Supply

1,000 Pleasant Goat and Big Big Wolf - Fantastic Weslie

Holders

343

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Filtered by Token Holder
lota.eth
Balance
2 Pleasant Goat and Big Big Wolf - Fantastic Weslie
0x66666666f6d4eef3bf30a60dde1bf50ce056e87f
Loading...
Loading
Loading...
Loading
Loading...
Loading

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

Similar Match Source Code
This contract matches the deployed Bytecode of the Source Code for Contract 0x3d3E6706...4D74dB07B
The constructor portion of the code might be different and could alter the actual behaviour of the contract

Contract Name:
ArtaNFT

Compiler Version
v0.6.6+commit.6c089d02

Optimization Enabled:
Yes with 200 runs

Other Settings:
istanbul EvmVersion, None license
File 1 of 8 : ArtaNFT.sol
import "./Vendor.sol";
import "./IsAdmin.sol";
import "./IArtaNFTFactory.sol";

pragma solidity ^0.6.6;
pragma experimental ABIEncoderV2;

contract ArtaNFT is ERC721Pausable, IsAdmin, Ownable {
    string _name;
    string _symbol;

    uint256 public nextTokenId = 1;
    uint256 public maxMintLimit;
    address public feeERC20Address;
    address payable public mintFeeAddr;
    uint256 public mintFeeAmount;
    IArtaNFTFactory public factory;
    string public defaultTokenURI;
    bool public isOpen;

    IERC20 public quoteErc20;
    mapping(uint256 => address payable) public tokenCreators;

    constructor (
        string memory name,
        string memory symbol,
        string memory defaultTokenURI_,
        bool isOpen_,
        address coin,
        address payable feeAccount,
        uint256 feeAmount,
        uint256 _maxMintLimit
    ) public {
        _name = name;
        _symbol = symbol;
        maxMintLimit = _maxMintLimit;
        feeERC20Address = coin;
        quoteErc20 = IERC20(coin);
        mintFeeAddr = feeAccount;
        mintFeeAmount = feeAmount;
        nextTokenId = 1;
        factory = IArtaNFTFactory(_msgSender());
        if(isOpen_)
            setBaseURI(defaultTokenURI_);
        else
            defaultTokenURI = defaultTokenURI_;
    }

    receive() external payable {}

    function mint(bytes32[] memory merkleProof) public payable {
        require(
            maxMintLimit == 0 || nextTokenId <= maxMintLimit,
            "max mint limit has been reached"
        );
        uint256 whiteListPrice = factory.beforeMint(_msgSender(), merkleProof);
        uint256 feeAmount = whiteListPrice == 0 ? mintFeeAmount : whiteListPrice;

        if (feeERC20Address == address(0)) {
            require(msg.value >= feeAmount, "msg value too low");
            mintFeeAddr.transfer(feeAmount);
            _msgSender().transfer(msg.value - feeAmount);
        } else {
            if (feeAmount != 0) {
                quoteErc20 = IERC20(feeERC20Address);
                require(
                    quoteErc20.balanceOf(_msgSender()) >= feeAmount,
                    "your price is too low"
                );
                quoteErc20.transferFrom(
                    _msgSender(),
                    mintFeeAddr,
                    feeAmount
                );
            }
        }

        uint256 tokenId = nextTokenId;
        _mint(_msgSender(), tokenId);
        tokenCreators[tokenId] = _msgSender();
        nextTokenId++;
    }

    function name() public view override returns (string memory) {
        return _name;
    }

    function symbol() public view override returns (string memory) {
        return _symbol;
    }

    // override approve 
    function approve(address to, uint256 tokenId) public virtual override {
        factory.checkBlacklistMarketplaces(to);
        super.approve(to, tokenId);
    }

    // override setApprovalForAll 
    function setApprovalForAll(address operator, bool approved) public virtual override {
        factory.checkBlacklistMarketplaces(operator);
        super.setApprovalForAll(operator, approved);
    }

    function transferFrom(address from, address to, uint256 tokenId) public override {
        factory.checkBlacklistMarketplaces(from);
        super.transferFrom(from, to, tokenId);
    }

    function safeTransferFrom(address from, address to, uint256 tokenId) public override {
        factory.checkBlacklistMarketplaces(from);
        super.safeTransferFrom(from, to, tokenId);
    }

    function safeTransferFrom(address from, address to, uint256 tokenId, bytes memory data)
        public
        override
    {
        factory.checkBlacklistMarketplaces(from);
        super.safeTransferFrom(from, to, tokenId, data);
    }

    function isAdmin(address addr) external view override returns (bool){
        return factory.isAdmin(addr);
    }

    function tokenURI(uint256 tokenId) public view override returns (string memory) {
        if(!isOpen)
            return defaultTokenURI;
        return super.tokenURI(tokenId);
    }

    function setBaseURI(string memory baseUri) public onlyAdmin {
        _setBaseURI(baseUri);
        isOpen = true;
    }
    
    modifier onlyAdmin() {
        require(factory.isAdmin(_msgSender()), 'Must have admin role');
        _;
    }
}

File 2 of 8 : Address.sol
pragma solidity ^0.6.2;

/**
 * @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 in extcodesize, which returns 0 for contracts in
        // construction, since the code is only stored at the end of the
        // constructor execution.

        uint256 size;
        // solhint-disable-next-line no-inline-assembly
        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");

        // solhint-disable-next-line avoid-low-level-calls, avoid-call-value
        (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");
        return _functionCallWithValue(target, data, value, errorMessage);
    }

    function _functionCallWithValue(address target, bytes memory data, uint256 weiValue, string memory errorMessage) private returns (bytes memory) {
        require(isContract(target), "Address: call to non-contract");

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = target.call{value : weiValue}(data);
        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

                // solhint-disable-next-line no-inline-assembly
                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

File 3 of 8 : ArtaNFTFactory.sol
// File: contracts/OpenGateNFTV3.sol

pragma solidity =0.6.6;
import "./Vendor.sol";
import "./Initializable.sol";
import "./IWhiteList.sol";
import "./IArtaNFTFactory.sol";
import "./ArtaNFT.sol";

contract ArtaNFTFactory is AccessControl, Initializable, IArtaNFTFactory {
    bytes32 public constant ADMIN_ROLE = keccak256('ADMIN_ROLE');

    mapping(address => bool) nftMap;
    address[] public nfts;

    IWhiteList public whiteList;
    mapping(address => bool) public BlacklistMarketplaces;

    event Create(address indexed sender, string indexed name, address indexed nft, string symbol, address coin, address feeAcount, uint256 feeAmout);
    event SetOpen(address indexed sender, bool indexed open);
    event SetAdmin(address indexed sender, address indexed account);
    event SetCoin(address indexed sender, address indexed coin);
    event SetAccount(address indexed sender, address indexed account);
    event SetAmount(address indexed sender, uint256 indexed amount);
    
    function initialize(
        IWhiteList _whiteList
    ) public initializer {
        _setupRole(DEFAULT_ADMIN_ROLE, _msgSender());
        whiteList = _whiteList;
    }

    function deployNFT(
        string memory name,
        string memory symbol,
        string memory defaultTokenURI_,
        bool isOpen_,
        address coin,
        address payable feeAccount,
        uint256 feeAmount,
        uint256 _maxMintLimit
    ) public onlyAdmin returns (address pair) {
        return _deployNFT(            
            name,
            symbol,
            defaultTokenURI_,
            isOpen_,
            coin,
            feeAccount,
            feeAmount,
            _maxMintLimit
            );
    }

    function upgradeWhiteList(IWhiteList _whiteList) public onlyAdmin {
        whiteList = _whiteList;
    }


    function _deployNFT(
        string memory name,
        string memory symbol,
        string memory defaultTokenURI_,
        bool isOpen_,
        address coin,
        address payable feeAccount,
        uint256 feeAmount,
        uint256 _maxMintLimit
    ) private returns (address pair) {
        ArtaNFT nft = new ArtaNFT(name, symbol, defaultTokenURI_, isOpen_, coin, feeAccount, feeAmount, _maxMintLimit);
        nft.transferOwnership(_msgSender());
        pair = address(nft);
        _addNFT(pair);
        emit Create(_msgSender(), name, pair, symbol, coin, feeAccount, feeAmount);
    }

    modifier onlyAdmin() {
        require(hasRole(DEFAULT_ADMIN_ROLE, _msgSender()), 'Must have admin role');
        _;
    }

    function _addNFT(address _nft) private {
        nftMap[_nft] = true;
        nfts.push(_nft);
    }

    function setAdmin(address _address) public onlyAdmin {
        _setupRole(DEFAULT_ADMIN_ROLE, _address);
        emit SetAdmin(_msgSender(), _address);
    }

    function beforeMint(address addr, bytes32[] calldata merkleProof) external override returns (uint256) {
        address token = msg.sender;
        require(nftMap[token], 'NFT contract not found');
        bool allOpen = whiteList.getCollectionAllOpen(token);
        uint256 price = whiteList.whiteListPrice(token, addr, merkleProof);
        require(allOpen || price != 0, 'Mint not opening');
        if(price != 0)
            whiteList.addWhiteListUsedCount(token, addr);
        return price;
    }

    function setWhiteList(
        address token,
        bytes32 merkleRoot,
        string calldata merkleTreeFile,
        uint256 price,
        uint256 limit
    ) external onlyAdmin {
        whiteList.setWhiteList(token, merkleRoot, merkleTreeFile, price, limit);
    }

        function setCollectionWhiteListOpen(address token, bool open)
        external
        onlyAdmin
    {
        whiteList.setCollectionWhiteListOpen(token, open);
    }

    function setCollectionAllOpen(address token, bool open) external onlyAdmin {
        whiteList.setCollectionAllOpen(token, open);
    }

    function setBlacklistMarketplace(address[] memory markets, bool[] memory approved) public onlyAdmin {
        require(markets.length == approved.length, "Invalid Param");
        for(uint256 i=0; i<markets.length; i++) {
            BlacklistMarketplaces[markets[i]] = approved[i];
        }
    }

    function checkBlacklistMarketplaces(address addr) external override {
        require(BlacklistMarketplaces[addr] == false, "BlackList Marketplace");
    }

    function isAdmin(address addr) external view override returns (bool){
        return  addr == address(this) || hasRole(DEFAULT_ADMIN_ROLE, addr);
    }
}

File 4 of 8 : IArtaNFTFactory.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.6.6;
pragma experimental ABIEncoderV2;

interface IArtaNFTFactory {
    function beforeMint(address addr, bytes32[] calldata merkleProof) external returns (uint256);

    function checkBlacklistMarketplaces(address addr) external;

    function isAdmin(address addr) external view returns (bool);
}

File 5 of 8 : IWhiteList.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.6.6;
pragma experimental ABIEncoderV2;

struct WhiteListItem {
    uint256 price;
    uint256 usedCount;
    address addr;
    uint256 limit;
}

interface IWhiteList {

    function getCollectionAllOpen(address token) external view returns (bool);

    function getCollectionWhiteListOpen(address token)
        external
        view
        returns (bool);

    function addWhiteListUsedCount(
        address token,
        address addr
    ) external;

    function isOpen(address token, address addr, bytes32[] calldata merkleProof) external view returns (bool);

    function whiteListPrice(address token, address addr, bytes32[] calldata merkleProof) external view returns(uint256);

    function setWhiteList(
        address token,
        bytes32 merkleRoot,
        string calldata merkleTreeFile,
        uint256 price,
        uint256 limit
    ) external;
    function setCollectionWhiteListOpen(address token, bool open) external;
    function setCollectionAllOpen(address token, bool open) external;
}

File 6 of 8 : Initializable.sol
pragma solidity >=0.4.24 <0.7.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 {UpgradeableProxy-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 || _isConstructor() || !_initialized, "Initializable: contract is already initialized");

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

        _;

        if (isTopLevelCall) {
            _initializing = false;
        }
    }

    /// @dev Returns true if and only if the function is running in the constructor
    function _isConstructor() private view returns (bool) {
        // extcodesize checks the size of the code stored in an address, and
        // address returns the current address. Since the code is still not
        // deployed when running a constructor, any checks on its code size will
        // yield zero, making it an effective way to detect if a contract is
        // under construction or not.
        address self = address(this);
        uint256 cs;
        // solhint-disable-next-line no-inline-assembly
        assembly { cs := extcodesize(self) }
        return cs == 0;
    }
}

File 7 of 8 : IsAdmin.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.6.6;

interface IsAdmin {
    function isAdmin(address addr) external view returns (bool);
}

File 8 of 8 : Vendor.sol
// File: @openzeppelin/contracts/utils/EnumerableSet.sol



pragma solidity ^0.6.0;

/**
 * @dev Library for managing
 * https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive
 * types.
 *
 * Sets have the following properties:
 *
 * - Elements are added, removed, and checked for existence in constant time
 * (O(1)).
 * - Elements are enumerated in O(n). No guarantees are made on the ordering.
 *
 * ```
 * contract Example {
 *     // Add the library methods
 *     using EnumerableSet for EnumerableSet.AddressSet;
 *
 *     // Declare a set state variable
 *     EnumerableSet.AddressSet private mySet;
 * }
 * ```
 *
 * As of v3.0.0, only sets of type `address` (`AddressSet`) and `uint256`
 * (`UintSet`) are supported.
 */
library EnumerableSet {
    // To implement this library for multiple types with as little code
    // repetition as possible, we write it in terms of a generic Set type with
    // bytes32 values.
    // The Set implementation uses private functions, and user-facing
    // implementations (such as AddressSet) are just wrappers around the
    // underlying Set.
    // This means that we can only create new EnumerableSets for types that fit
    // in bytes32.

    struct Set {
        // Storage of set values
        bytes32[] _values;

        // Position of the value in the `values` array, plus 1 because index 0
        // means a value is not in the set.
        mapping(bytes32 => uint256) _indexes;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function _add(Set storage set, bytes32 value) private returns (bool) {
        if (!_contains(set, value)) {
            set._values.push(value);
            // The value is stored at length-1, but we add 1 to all indexes
            // and use 0 as a sentinel value
            set._indexes[value] = set._values.length;
            return true;
        } else {
            return false;
        }
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function _remove(Set storage set, bytes32 value) private returns (bool) {
        // We read and store the value's index to prevent multiple reads from the same storage slot
        uint256 valueIndex = set._indexes[value];

        if (valueIndex != 0) {// Equivalent to contains(set, value)
            // To delete an element from the _values array in O(1), we swap the element to delete with the last one in
            // the array, and then remove the last element (sometimes called as 'swap and pop').
            // This modifies the order of the array, as noted in {at}.

            uint256 toDeleteIndex = valueIndex - 1;
            uint256 lastIndex = set._values.length - 1;

            // When the value to delete is the last one, the swap operation is unnecessary. However, since this occurs
            // so rarely, we still do the swap anyway to avoid the gas cost of adding an 'if' statement.

            bytes32 lastvalue = set._values[lastIndex];

            // Move the last value to the index where the value to delete is
            set._values[toDeleteIndex] = lastvalue;
            // Update the index for the moved value
            set._indexes[lastvalue] = toDeleteIndex + 1;
            // All indexes are 1-based

            // Delete the slot where the moved value was stored
            set._values.pop();

            // Delete the index for the deleted slot
            delete set._indexes[value];

            return true;
        } else {
            return false;
        }
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function _contains(Set storage set, bytes32 value) private view returns (bool) {
        return set._indexes[value] != 0;
    }

    /**
     * @dev Returns the number of values on the set. O(1).
     */
    function _length(Set storage set) private view returns (uint256) {
        return set._values.length;
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function _at(Set storage set, uint256 index) private view returns (bytes32) {
        require(set._values.length > index, "EnumerableSet: index out of bounds");
        return set._values[index];
    }

    // AddressSet

    struct AddressSet {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(AddressSet storage set, address value) internal returns (bool) {
        return _add(set._inner, bytes32(uint256(value)));
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(AddressSet storage set, address value) internal returns (bool) {
        return _remove(set._inner, bytes32(uint256(value)));
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(AddressSet storage set, address value) internal view returns (bool) {
        return _contains(set._inner, bytes32(uint256(value)));
    }

    /**
     * @dev Returns the number of values in the set. O(1).
     */
    function length(AddressSet storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function at(AddressSet storage set, uint256 index) internal view returns (address) {
        return address(uint256(_at(set._inner, index)));
    }


    // UintSet

    struct UintSet {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(UintSet storage set, uint256 value) internal returns (bool) {
        return _add(set._inner, bytes32(value));
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(UintSet storage set, uint256 value) internal returns (bool) {
        return _remove(set._inner, bytes32(value));
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(UintSet storage set, uint256 value) internal view returns (bool) {
        return _contains(set._inner, bytes32(value));
    }

    /**
     * @dev Returns the number of values on the set. O(1).
     */
    function length(UintSet storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function at(UintSet storage set, uint256 index) internal view returns (uint256) {
        return uint256(_at(set._inner, index));
    }
}

import "./Address.sol";

// File: @openzeppelin/contracts/GSN/Context.sol



pragma solidity ^0.6.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 GSN 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 payable) {
        return msg.sender;
    }

    function _msgData() internal view virtual returns (bytes memory) {
        this;
        // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691
        return msg.data;
    }
}

// File: @openzeppelin/contracts/access/AccessControl.sol



pragma solidity ^0.6.0;




/**
 * @dev Contract module that allows children to implement role-based access
 * control mechanisms.
 *
 * Roles are referred to by their `bytes32` identifier. These should be exposed
 * in the external API and be unique. The best way to achieve this is by
 * using `public constant` hash digests:
 *
 * ```
 * bytes32 public constant MY_ROLE = keccak256("MY_ROLE");
 * ```
 *
 * Roles can be used to represent a set of permissions. To restrict access to a
 * function call, use {hasRole}:
 *
 * ```
 * function foo() public {
 *     require(hasRole(MY_ROLE, msg.sender));
 *     ...
 * }
 * ```
 *
 * Roles can be granted and revoked dynamically via the {grantRole} and
 * {revokeRole} functions. Each role has an associated admin role, and only
 * accounts that have a role's admin role can call {grantRole} and {revokeRole}.
 *
 * By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means
 * that only accounts with this role will be able to grant or revoke other
 * roles. More complex role relationships can be created by using
 * {_setRoleAdmin}.
 *
 * WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to
 * grant and revoke this role. Extra precautions should be taken to secure
 * accounts that have been granted it.
 */
abstract contract AccessControl is Context {
    using EnumerableSet for EnumerableSet.AddressSet;
    using Address for address;

    struct RoleData {
        EnumerableSet.AddressSet members;
        bytes32 adminRole;
    }

    mapping(bytes32 => RoleData) private _roles;

    bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00;

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

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

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

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

    /**
     * @dev Returns the number of accounts that have `role`. Can be used
     * together with {getRoleMember} to enumerate all bearers of a role.
     */
    function getRoleMemberCount(bytes32 role) public view returns (uint256) {
        return _roles[role].members.length();
    }

    /**
     * @dev Returns one of the accounts that have `role`. `index` must be a
     * value between 0 and {getRoleMemberCount}, non-inclusive.
     *
     * Role bearers are not sorted in any particular way, and their ordering may
     * change at any point.
     *
     * WARNING: When using {getRoleMember} and {getRoleMemberCount}, make sure
     * you perform all queries on the same block. See the following
     * https://forum.openzeppelin.com/t/iterating-over-elements-on-enumerableset-in-openzeppelin-contracts/2296[forum post]
     * for more information.
     */
    function getRoleMember(bytes32 role, uint256 index) public view returns (address) {
        return _roles[role].members.at(index);
    }

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

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function grantRole(bytes32 role, address account) public virtual {
        require(hasRole(_roles[role].adminRole, _msgSender()), "AccessControl: sender must be an admin to grant");

        _grantRole(role, account);
    }

    /**
     * @dev Revokes `role` from `account`.
     *
     * If `account` had been granted `role`, emits a {RoleRevoked} event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function revokeRole(bytes32 role, address account) public virtual {
        require(hasRole(_roles[role].adminRole, _msgSender()), "AccessControl: sender must be an admin to revoke");

        _revokeRole(role, account);
    }

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

        _revokeRole(role, account);
    }

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

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

    function _grantRole(bytes32 role, address account) private {
        if (_roles[role].members.add(account)) {
            emit RoleGranted(role, account, _msgSender());
        }
    }

    function _revokeRole(bytes32 role, address account) private {
        if (_roles[role].members.remove(account)) {
            emit RoleRevoked(role, account, _msgSender());
        }
    }
}

// File: @openzeppelin/contracts/introspection/IERC165.sol



pragma solidity ^0.6.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: @openzeppelin/contracts/token/ERC721/IERC721.sol



pragma solidity ^0.6.2;


/**
 * @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: @openzeppelin/contracts/token/ERC721/IERC721Metadata.sol



pragma solidity ^0.6.2;


/**
 * @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: @openzeppelin/contracts/token/ERC721/IERC721Enumerable.sol



pragma solidity ^0.6.2;


/**
 * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension
 * @dev See https://eips.ethereum.org/EIPS/eip-721
 */
interface IERC721Enumerable is IERC721 {

    /**
     * @dev Returns the total amount of tokens stored by the contract.
     */
    function totalSupply() external view returns (uint256);

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

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

// File: @openzeppelin/contracts/token/ERC721/IERC721Receiver.sol



pragma solidity ^0.6.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: @openzeppelin/contracts/introspection/ERC165.sol



pragma solidity ^0.6.0;


/**
 * @dev Implementation of the {IERC165} interface.
 *
 * Contracts may inherit from this and call {_registerInterface} to declare
 * their support of an interface.
 */
contract ERC165 is IERC165 {
    /*
     * bytes4(keccak256('supportsInterface(bytes4)')) == 0x01ffc9a7
     */
    bytes4 private constant _INTERFACE_ID_ERC165 = 0x01ffc9a7;

    /**
     * @dev Mapping of interface ids to whether or not it's supported.
     */
    mapping(bytes4 => bool) private _supportedInterfaces;

    constructor () internal {
        // Derived contracts need only register support for their own interfaces,
        // we register support for ERC165 itself here
        _registerInterface(_INTERFACE_ID_ERC165);
    }

    /**
     * @dev See {IERC165-supportsInterface}.
     *
     * Time complexity O(1), guaranteed to always use less than 30 000 gas.
     */
    function supportsInterface(bytes4 interfaceId) public view override returns (bool) {
        return _supportedInterfaces[interfaceId];
    }

    /**
     * @dev Registers the contract as an implementer of the interface defined by
     * `interfaceId`. Support of the actual ERC165 interface is automatic and
     * registering its interface id is not required.
     *
     * See {IERC165-supportsInterface}.
     *
     * Requirements:
     *
     * - `interfaceId` cannot be the ERC165 invalid interface (`0xffffffff`).
     */
    function _registerInterface(bytes4 interfaceId) internal virtual {
        require(interfaceId != 0xffffffff, "ERC165: invalid interface id");
        _supportedInterfaces[interfaceId] = true;
    }
}

// File: @openzeppelin/contracts/math/SafeMath.sol



pragma solidity ^0.6.0;

/**
 * @dev Wrappers over Solidity's arithmetic operations with added overflow
 * checks.
 *
 * Arithmetic operations in Solidity wrap on overflow. This can easily result
 * in bugs, because programmers usually assume that an overflow raises an
 * error, which is the standard behavior in high level programming languages.
 * `SafeMath` restores this intuition by reverting the transaction when an
 * operation overflows.
 *
 * Using this library instead of the unchecked operations eliminates an entire
 * class of bugs, so it's recommended to use it always.
 */
library SafeMath {
    /**
     * @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) {
        uint256 c = a + b;
        require(c >= a, "SafeMath: addition overflow");

        return c;
    }

    /**
     * @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 sub(a, b, "SafeMath: subtraction overflow");
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b <= a, errorMessage);
        uint256 c = a - b;

        return c;
    }

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

        uint256 c = a * b;
        require(c / a == b, "SafeMath: multiplication overflow");

        return c;
    }

    /**
     * @dev Returns the integer division of two unsigned integers. Reverts 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) internal pure returns (uint256) {
        return div(a, b, "SafeMath: division by zero");
    }

    /**
     * @dev Returns the integer division of two unsigned integers. Reverts 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) {
        require(b > 0, errorMessage);
        uint256 c = a / b;
        // assert(a == b * c + a % b); // There is no case in which this doesn't hold

        return c;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * Reverts 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 mod(a, b, "SafeMath: modulo by zero");
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * Reverts with custom message 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, string memory errorMessage) internal pure returns (uint256) {
        require(b != 0, errorMessage);
        return a % b;
    }
}

// File: @openzeppelin/contracts/utils/EnumerableMap.sol



pragma solidity ^0.6.0;

/**
 * @dev Library for managing an enumerable variant of Solidity's
 * https://solidity.readthedocs.io/en/latest/types.html#mapping-types[`mapping`]
 * type.
 *
 * Maps have the following properties:
 *
 * - Entries are added, removed, and checked for existence in constant time
 * (O(1)).
 * - Entries are enumerated in O(n). No guarantees are made on the ordering.
 *
 * ```
 * contract Example {
 *     // Add the library methods
 *     using EnumerableMap for EnumerableMap.UintToAddressMap;
 *
 *     // Declare a set state variable
 *     EnumerableMap.UintToAddressMap private myMap;
 * }
 * ```
 *
 * As of v3.0.0, only maps of type `uint256 -> address` (`UintToAddressMap`) are
 * supported.
 */
library EnumerableMap {
    // To implement this library for multiple types with as little code
    // repetition as possible, we write it in terms of a generic Map type with
    // bytes32 keys and values.
    // The Map implementation uses private functions, and user-facing
    // implementations (such as Uint256ToAddressMap) are just wrappers around
    // the underlying Map.
    // This means that we can only create new EnumerableMaps for types that fit
    // in bytes32.

    struct MapEntry {
        bytes32 _key;
        bytes32 _value;
    }

    struct Map {
        // Storage of map keys and values
        MapEntry[] _entries;

        // Position of the entry defined by a key in the `entries` array, plus 1
        // because index 0 means a key is not in the map.
        mapping(bytes32 => uint256) _indexes;
    }

    /**
     * @dev Adds a key-value pair to a map, or updates the value for an existing
     * key. O(1).
     *
     * Returns true if the key was added to the map, that is if it was not
     * already present.
     */
    function _set(Map storage map, bytes32 key, bytes32 value) private returns (bool) {
        // We read and store the key's index to prevent multiple reads from the same storage slot
        uint256 keyIndex = map._indexes[key];

        if (keyIndex == 0) {// Equivalent to !contains(map, key)
            map._entries.push(MapEntry({_key : key, _value : value}));
            // The entry is stored at length-1, but we add 1 to all indexes
            // and use 0 as a sentinel value
            map._indexes[key] = map._entries.length;
            return true;
        } else {
            map._entries[keyIndex - 1]._value = value;
            return false;
        }
    }

    /**
     * @dev Removes a key-value pair from a map. O(1).
     *
     * Returns true if the key was removed from the map, that is if it was present.
     */
    function _remove(Map storage map, bytes32 key) private returns (bool) {
        // We read and store the key's index to prevent multiple reads from the same storage slot
        uint256 keyIndex = map._indexes[key];

        if (keyIndex != 0) {// Equivalent to contains(map, key)
            // To delete a key-value pair from the _entries array in O(1), we swap the entry to delete with the last one
            // in the array, and then remove the last entry (sometimes called as 'swap and pop').
            // This modifies the order of the array, as noted in {at}.

            uint256 toDeleteIndex = keyIndex - 1;
            uint256 lastIndex = map._entries.length - 1;

            // When the entry to delete is the last one, the swap operation is unnecessary. However, since this occurs
            // so rarely, we still do the swap anyway to avoid the gas cost of adding an 'if' statement.

            MapEntry storage lastEntry = map._entries[lastIndex];

            // Move the last entry to the index where the entry to delete is
            map._entries[toDeleteIndex] = lastEntry;
            // Update the index for the moved entry
            map._indexes[lastEntry._key] = toDeleteIndex + 1;
            // All indexes are 1-based

            // Delete the slot where the moved entry was stored
            map._entries.pop();

            // Delete the index for the deleted slot
            delete map._indexes[key];

            return true;
        } else {
            return false;
        }
    }

    /**
     * @dev Returns true if the key is in the map. O(1).
     */
    function _contains(Map storage map, bytes32 key) private view returns (bool) {
        return map._indexes[key] != 0;
    }

    /**
     * @dev Returns the number of key-value pairs in the map. O(1).
     */
    function _length(Map storage map) private view returns (uint256) {
        return map._entries.length;
    }

    /**
     * @dev Returns the key-value pair stored at position `index` in the map. O(1).
     *
     * Note that there are no guarantees on the ordering of entries inside the
     * array, and it may change when more entries are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function _at(Map storage map, uint256 index) private view returns (bytes32, bytes32) {
        require(map._entries.length > index, "EnumerableMap: index out of bounds");

        MapEntry storage entry = map._entries[index];
        return (entry._key, entry._value);
    }

    /**
     * @dev Returns the value associated with `key`.  O(1).
     *
     * Requirements:
     *
     * - `key` must be in the map.
     */
    function _get(Map storage map, bytes32 key) private view returns (bytes32) {
        return _get(map, key, "EnumerableMap: nonexistent key");
    }

    /**
     * @dev Same as {_get}, with a custom error message when `key` is not in the map.
     */
    function _get(Map storage map, bytes32 key, string memory errorMessage) private view returns (bytes32) {
        uint256 keyIndex = map._indexes[key];
        require(keyIndex != 0, errorMessage);
        // Equivalent to contains(map, key)
        return map._entries[keyIndex - 1]._value;
        // All indexes are 1-based
    }

    // UintToAddressMap

    struct UintToAddressMap {
        Map _inner;
    }

    /**
     * @dev Adds a key-value pair to a map, or updates the value for an existing
     * key. O(1).
     *
     * Returns true if the key was added to the map, that is if it was not
     * already present.
     */
    function set(UintToAddressMap storage map, uint256 key, address value) internal returns (bool) {
        return _set(map._inner, bytes32(key), bytes32(uint256(value)));
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the key was removed from the map, that is if it was present.
     */
    function remove(UintToAddressMap storage map, uint256 key) internal returns (bool) {
        return _remove(map._inner, bytes32(key));
    }

    /**
     * @dev Returns true if the key is in the map. O(1).
     */
    function contains(UintToAddressMap storage map, uint256 key) internal view returns (bool) {
        return _contains(map._inner, bytes32(key));
    }

    /**
     * @dev Returns the number of elements in the map. O(1).
     */
    function length(UintToAddressMap storage map) internal view returns (uint256) {
        return _length(map._inner);
    }

    /**
     * @dev Returns the element stored at position `index` in the set. O(1).
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function at(UintToAddressMap storage map, uint256 index) internal view returns (uint256, address) {
        (bytes32 key, bytes32 value) = _at(map._inner, index);
        return (uint256(key), address(uint256(value)));
    }

    /**
     * @dev Returns the value associated with `key`.  O(1).
     *
     * Requirements:
     *
     * - `key` must be in the map.
     */
    function get(UintToAddressMap storage map, uint256 key) internal view returns (address) {
        return address(uint256(_get(map._inner, bytes32(key))));
    }

    /**
     * @dev Same as {get}, with a custom error message when `key` is not in the map.
     */
    function get(UintToAddressMap storage map, uint256 key, string memory errorMessage) internal view returns (address) {
        return address(uint256(_get(map._inner, bytes32(key), errorMessage)));
    }
}

// File: @openzeppelin/contracts/utils/Strings.sol



pragma solidity ^0.6.0;

/**
 * @dev String operations.
 */
library Strings {
    /**
     * @dev Converts a `uint256` to its ASCII `string` 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);
        uint256 index = digits - 1;
        temp = value;
        while (temp != 0) {
            buffer[index--] = byte(uint8(48 + temp % 10));
            temp /= 10;
        }
        return string(buffer);
    }
}

// File: @openzeppelin/contracts/token/ERC721/ERC721.sol



pragma solidity ^0.6.0;












/**
 * @title ERC721 Non-Fungible Token Standard basic implementation
 * @dev see https://eips.ethereum.org/EIPS/eip-721
 */
contract ERC721 is Context, ERC165, IERC721, IERC721Metadata, IERC721Enumerable {
    using SafeMath for uint256;
    using Address for address;
    using EnumerableSet for EnumerableSet.UintSet;
    using EnumerableMap for EnumerableMap.UintToAddressMap;
    using Strings for uint256;

    // Equals to `bytes4(keccak256("onERC721Received(address,address,uint256,bytes)"))`
    // which can be also obtained as `IERC721Receiver(0).onERC721Received.selector`
    bytes4 private constant _ERC721_RECEIVED = 0x150b7a02;

    // Mapping from holder address to their (enumerable) set of owned tokens
    mapping(address => EnumerableSet.UintSet) private _holderTokens;

    // Enumerable mapping from token ids to their owners
    EnumerableMap.UintToAddressMap private _tokenOwners;

    // 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;

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

    // Optional mapping for token URIs
    mapping(uint256 => string) private _tokenURIs;

    // Base URI
    string private _baseURI;

    /*
     *     bytes4(keccak256('balanceOf(address)')) == 0x70a08231
     *     bytes4(keccak256('ownerOf(uint256)')) == 0x6352211e
     *     bytes4(keccak256('approve(address,uint256)')) == 0x095ea7b3
     *     bytes4(keccak256('getApproved(uint256)')) == 0x081812fc
     *     bytes4(keccak256('setApprovalForAll(address,bool)')) == 0xa22cb465
     *     bytes4(keccak256('isApprovedForAll(address,address)')) == 0xe985e9c5
     *     bytes4(keccak256('transferFrom(address,address,uint256)')) == 0x23b872dd
     *     bytes4(keccak256('safeTransferFrom(address,address,uint256)')) == 0x42842e0e
     *     bytes4(keccak256('safeTransferFrom(address,address,uint256,bytes)')) == 0xb88d4fde
     *
     *     => 0x70a08231 ^ 0x6352211e ^ 0x095ea7b3 ^ 0x081812fc ^
     *        0xa22cb465 ^ 0xe985e9c5 ^ 0x23b872dd ^ 0x42842e0e ^ 0xb88d4fde == 0x80ac58cd
     */
    bytes4 private constant _INTERFACE_ID_ERC721 = 0x80ac58cd;

    /*
     *     bytes4(keccak256('name()')) == 0x06fdde03
     *     bytes4(keccak256('symbol()')) == 0x95d89b41
     *     bytes4(keccak256('tokenURI(uint256)')) == 0xc87b56dd
     *
     *     => 0x06fdde03 ^ 0x95d89b41 ^ 0xc87b56dd == 0x5b5e139f
     */
    bytes4 private constant _INTERFACE_ID_ERC721_METADATA = 0x5b5e139f;

    /*
     *     bytes4(keccak256('totalSupply()')) == 0x18160ddd
     *     bytes4(keccak256('tokenOfOwnerByIndex(address,uint256)')) == 0x2f745c59
     *     bytes4(keccak256('tokenByIndex(uint256)')) == 0x4f6ccce7
     *
     *     => 0x18160ddd ^ 0x2f745c59 ^ 0x4f6ccce7 == 0x780e9d63
     */
    bytes4 private constant _INTERFACE_ID_ERC721_ENUMERABLE = 0x780e9d63;

    constructor () public {

        // register the supported interfaces to conform to ERC721 via ERC165
        _registerInterface(_INTERFACE_ID_ERC721);
        _registerInterface(_INTERFACE_ID_ERC721_METADATA);
        _registerInterface(_INTERFACE_ID_ERC721_ENUMERABLE);
    }

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

        return _holderTokens[owner].length();
    }



    /**
     * @dev See {IERC721-ownerOf}.
     */
    function ownerOf(uint256 tokenId) public view override returns (address) {
        return _tokenOwners.get(tokenId, "ERC721: owner query for nonexistent token");
    }

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

    /**
     * @dev See {IERC721Metadata-symbol}.
     */
    function symbol() public virtual view 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 _tokenURI = _tokenURIs[tokenId];

        // If there is no base URI, return the token URI.
        if (bytes(_baseURI).length == 0) {
            return _tokenURI;
        }
        // If both are set, concatenate the baseURI and tokenURI (via abi.encodePacked).
        if (bytes(_tokenURI).length > 0) {
            return string(abi.encodePacked(_baseURI, _tokenURI));
        }
        // If there is a baseURI but no tokenURI, concatenate the tokenID to the baseURI.
        return string(abi.encodePacked(_baseURI, tokenId.toString(), ".json"));
    }

    /**
    * @dev Returns the base URI set via {_setBaseURI}. This will be
    * automatically added as a prefix in {tokenURI} to each token's URI, or
    * to the token ID if no specific URI is set for that token ID.
    */
    function baseURI() public view returns (string memory) {
        return _baseURI;
    }

    /**
     * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}.
     */
    function tokenOfOwnerByIndex(address owner, uint256 index) public view override returns (uint256) {
        return _holderTokens[owner].at(index);
    }


    /**
     * @dev See {IERC721Enumerable-totalSupply}.
     */
    function totalSupply() public view override returns (uint256) {
        // _tokenOwners are indexed by tokenIds, so .length() returns the number of tokenIds
        return _tokenOwners.length();
    }

    /**
     * @dev See {IERC721Enumerable-tokenByIndex}.
     */
    function tokenByIndex(uint256 index) public view override returns (uint256) {
        (uint256 tokenId,) = _tokenOwners.at(index);
        return tokenId;
    }

    /**
     * @dev See {IERC721-approve}.
     */
    function approve(address to, uint256 tokenId) public virtual override {
        address owner = 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 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 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 returns (bool) {
        return _tokenOwners.contains(tokenId);
    }

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

    /**
     * @dev Safely mints `tokenId` and transfers it to `to`.
     *
     * Requirements:
     d*
     * - `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);

        _holderTokens[to].add(tokenId);

        _tokenOwners.set(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 = ownerOf(tokenId);

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

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

        // Clear metadata (if any)
        if (bytes(_tokenURIs[tokenId]).length != 0) {
            delete _tokenURIs[tokenId];
        }

        _holderTokens[owner].remove(tokenId);

        _tokenOwners.remove(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(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);

        _holderTokens[from].remove(tokenId);
        _holderTokens[to].add(tokenId);

        _tokenOwners.set(tokenId, to);

        emit Transfer(from, to, tokenId);
    }

    /**
     * @dev Sets `_tokenURI` as the tokenURI of `tokenId`.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function _setTokenURI(uint256 tokenId, string memory _tokenURI) internal virtual {
        require(_exists(tokenId), "ERC721Metadata: URI set of nonexistent token");
        _tokenURIs[tokenId] = _tokenURI;
    }

    /**
     * @dev Internal function to set the base URI for all token IDs. It is
     * automatically added as a prefix to the value returned in {tokenURI},
     * or to the token ID if {tokenURI} is empty.
     */
    function _setBaseURI(string memory baseURI_) internal virtual {
        _baseURI = baseURI_;
    }

    /**
     * @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()) {
            return true;
        }
        bytes memory returndata = to.functionCall(abi.encodeWithSelector(
                IERC721Receiver(to).onERC721Received.selector,
                _msgSender(),
                from,
                tokenId,
                _data
            ), "ERC721: transfer to non ERC721Receiver implementer");
        bytes4 retval = abi.decode(returndata, (bytes4));
        return (retval == _ERC721_RECEIVED);
    }

    function _approve(address to, uint256 tokenId) private {
        _tokenApprovals[tokenId] = to;
        emit Approval(ownerOf(tokenId), to, tokenId);
    }

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

// File: @openzeppelin/contracts/utils/Pausable.sol



pragma solidity ^0.6.0;


/**
 * @dev Contract module which allows children to implement an emergency stop
 * mechanism that can be triggered by an authorized account.
 *
 * This module is used through inheritance. It will make available the
 * modifiers `whenNotPaused` and `whenPaused`, which can be applied to
 * the functions of your contract. Note that they will not be pausable by
 * simply including this module, only once the modifiers are put in place.
 */
contract Pausable is Context {
    /**
     * @dev Emitted when the pause is triggered by `account`.
     */
    event Paused(address account);

    /**
     * @dev Emitted when the pause is lifted by `account`.
     */
    event Unpaused(address account);

    bool private _paused;

    /**
     * @dev Initializes the contract in unpaused state.
     */
    constructor () internal {
        _paused = false;
    }

    /**
     * @dev Returns true if the contract is paused, and false otherwise.
     */
    function paused() public view returns (bool) {
        return _paused;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is not paused.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    modifier whenNotPaused() {
        require(!_paused, "Pausable: paused");
        _;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is paused.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    modifier whenPaused() {
        require(_paused, "Pausable: not paused");
        _;
    }

    /**
     * @dev Triggers stopped state.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    function _pause() internal virtual whenNotPaused {
        _paused = true;
        emit Paused(_msgSender());
    }

    /**
     * @dev Returns to normal state.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    function _unpause() internal virtual whenPaused {
        _paused = false;
        emit Unpaused(_msgSender());
    }
}

// File: @openzeppelin/contracts/token/ERC721/ERC721Pausable.sol



pragma solidity ^0.6.0;



/**
 * @dev ERC721 token with pausable token transfers, minting and burning.
 *
 * Useful for scenarios such as preventing trades until the end of an evaluation
 * period, or having an emergency switch for freezing all token transfers in the
 * event of a large bug.
 */
abstract contract ERC721Pausable is ERC721, Pausable {
    /**
     * @dev See {ERC721-_beforeTokenTransfer}.
     *
     * Requirements:
     *
     * - the contract must not be paused.
     */
    function _beforeTokenTransfer(address from, address to, uint256 tokenId) internal virtual override {
        super._beforeTokenTransfer(from, to, tokenId);

        require(!paused(), "ERC721Pausable: token transfer while paused");
    }
}

// File: contracts/libraries/TransferHelper.sol


pragma solidity >=0.6.0;

// helper methods for interacting with ERC20 tokens and sending ETH that do not consistently return true/false
library TransferHelper {
    //    function safeApprove(
    //        address token,
    //        address to,
    //        uint256 value
    //    ) internal {
    //        // bytes4(keccak256(bytes('approve(address,uint256)')));
    //        (bool success, bytes memory data) = token.call(abi.encodeWithSelector(0x095ea7b3, to, value));
    //        require(success && (data.length == 0 || abi.decode(data, (bool))), 'TransferHelper: APPROVE_FAILED');
    //    }

    function safeTransfer(
        address token,
        address to,
        uint256 value
    ) internal {
        // bytes4(keccak256(bytes('transfer(address,uint256)')));
        (bool success, bytes memory data) = token.call(abi.encodeWithSelector(0xa9059cbb, to, value));
        require(success && (data.length == 0 || abi.decode(data, (bool))), 'TransferHelper: TRANSFER_FAILED');
    }

    function safeTransferFrom(
        address token,
        address from,
        address to,
        uint256 value
    ) internal {
        // bytes4(keccak256(bytes('transferFrom(address,address,uint256)')));
        (bool success, bytes memory data) = token.call(abi.encodeWithSelector(0x23b872dd, from, to, value));
        require(success && (data.length == 0 || abi.decode(data, (bool))), 'TransferHelper: TRANSFER_FROM_FAILED');
    }

    //    function safeTransferETH(address to, uint256 value) internal {
    //        (bool success,) = to.call{value : value}(new bytes(0));
    //        require(success, 'TransferHelper: ETH_TRANSFER_FAILED');
    //    }
}


pragma solidity >=0.6.0;

library LibString {
    function replace(
        string memory subject,
        string memory search, 
        string memory replacement
    ) internal pure returns (string memory result) {
        assembly {
            let subjectLength := mload(subject)
            let searchLength := mload(search)
            let replacementLength := mload(replacement)

            // Store the mask for sub-word comparisons in the scratch space.
            mstore(0x00, not(0))
            mstore(0x20, 0)

            subject := add(subject, 0x20)
            search := add(search, 0x20)
            replacement := add(replacement, 0x20)
            result := add(mload(0x40), 0x20)

            let k := 0

            let subjectEnd := add(subject, subjectLength)
            if iszero(gt(searchLength, subjectLength)) {
                let subjectSearchEnd := add(sub(subjectEnd, searchLength), 1)
                for {} lt(subject, subjectSearchEnd) {} {
                    let o := and(searchLength, 31)
                    // Whether the first `searchLength % 32` bytes of 
                    // `subject` and `search` matches.
                    let l := iszero(and(xor(mload(subject), mload(search)), mload(sub(0x20, o))))
                    // Iterate through the rest of `search` and check if any word mismatch.
                    // If any mismatch is detected, `l` is set to 0.
                    for {} and(lt(o, searchLength), l) {} {
                        l := eq(mload(add(subject, o)), mload(add(search, o)))
                        o := add(o, 0x20)
                    }
                    // If `l` is one, there is a match, and we have to copy the `replacement`.
                    if l {
                        // Copy the `replacement` one word at a time.
                        for { o := 0 } lt(o, replacementLength) { o := add(o, 0x20) } {
                            mstore(add(result, add(k, o)), mload(add(replacement, o)))
                        }
                        k := add(k, replacementLength)
                        subject := add(subject, searchLength)
                    }
                    // If `l` or `searchLength` is zero.
                    if iszero(mul(l, searchLength)) {
                        mstore(add(result, k), mload(subject))
                        k := add(k, 1)
                        subject := add(subject, 1)
                    }
                }
            }

            let resultRemainder := add(result, k)
            k := add(k, sub(subjectEnd, subject))
            // Copy the rest of the string one word at a time.
            for {} lt(subject, subjectEnd) {} {    
                mstore(resultRemainder, mload(subject))
                resultRemainder := add(resultRemainder, 0x20)
                subject := add(subject, 0x20)
            }
            // Allocate memory for the length and the bytes, rounded up to a multiple of 32.
            mstore(0x40, add(result, and(add(k, 64), not(31))))
            result := sub(result, 0x20)
            mstore(result, k)
        }
    }
}

contract ERC721Holder is IERC721Receiver {

    /**
     * @dev See {IERC721Receiver-onERC721Received}.
     *
     * Always returns `IERC721Receiver.onERC721Received.selector`.
     */
    function onERC721Received(address, address, uint256, bytes memory) public virtual override returns (bytes4) {
        return this.onERC721Received.selector;
    }
}

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 () internal {
        address msgSender = _msgSender();
        _owner = msgSender;
        emit OwnershipTransferred(address(0), 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 {
        emit OwnershipTransferred(_owner, address(0));
        _owner = address(0);
    }

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

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

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

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

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

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

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

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

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

library SafeERC20 {
    using SafeMath for uint256;
    using Address for address;

    function safeTransfer(IERC20 token, address to, uint256 value) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));
    }

    function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value));
    }

    /**
     * @dev Deprecated. This function has issues similar to the ones found in
     * {IERC20-approve}, and its usage is discouraged.
     *
     * Whenever possible, use {safeIncreaseAllowance} and
     * {safeDecreaseAllowance} instead.
     */
    function safeApprove(IERC20 token, address spender, uint256 value) internal {
        // safeApprove should only be called when setting an initial allowance,
        // or when resetting it to zero. To increase and decrease it, use
        // 'safeIncreaseAllowance' and 'safeDecreaseAllowance'
        // solhint-disable-next-line max-line-length
        require((value == 0) || (token.allowance(address(this), spender) == 0),
            "SafeERC20: approve from non-zero to non-zero allowance"
        );
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value));
    }

    function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {
        uint256 newAllowance = token.allowance(address(this), spender).add(value);
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
    }

    function safeDecreaseAllowance(IERC20 token, address spender, uint256 value) internal {
        uint256 newAllowance = token.allowance(address(this), spender).sub(value, "SafeERC20: decreased allowance below zero");
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
    }

    /**
     * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
     * on the return value: the return value is optional (but if data is returned, it must not be false).
     * @param token The token targeted by the call.
     * @param data The call data (encoded using abi.encode or one of its variants).
     */
    function _callOptionalReturn(IERC20 token, bytes memory data) private {
        // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
        // we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that
        // the target address contains contract code and also asserts for success in the low-level call.

        bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed");
        if (returndata.length > 0) { // Return data is optional
            // solhint-disable-next-line max-line-length
            require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed");
        }
    }
}
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.0;

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

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

    uint256 private _status;

    constructor () internal {
        _status = _NOT_ENTERED;
    }

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

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

        _;

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

pragma solidity >=0.6.0 <0.8.0;

/**
 * @dev These functions deal with verification of Merkle trees (hash trees),
 */
library MerkleProof {
    /**
     * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree
     * defined by `root`. For this, a `proof` must be provided, containing
     * sibling hashes on the branch from the leaf to the root of the tree. Each
     * pair of leaves and each pair of pre-images are assumed to be sorted.
     */
    function verify(bytes32[] memory proof, bytes32 root, bytes32 leaf) internal pure returns (bool) {
        bytes32 computedHash = leaf;

        for (uint256 i = 0; i < proof.length; i++) {
            bytes32 proofElement = proof[i];

            if (computedHash <= proofElement) {
                // Hash(current computed hash + current element of the proof)
                computedHash = keccak256(abi.encodePacked(computedHash, proofElement));
            } else {
                // Hash(current element of the proof + current computed hash)
                computedHash = keccak256(abi.encodePacked(proofElement, computedHash));
            }
        }

        // Check if the computed hash (root) is equal to the provided root
        return computedHash == root;
    }
}

interface IOperatorFilterRegistry {
    function isOperatorAllowed(address registrant, address operator) external view returns (bool);
    function register(address registrant) external;
    function registerAndSubscribe(address registrant, address subscription) external;
    function registerAndCopyEntries(address registrant, address registrantToCopy) external;
    function unregister(address addr) external;
    function updateOperator(address registrant, address operator, bool filtered) external;
    function updateOperators(address registrant, address[] calldata operators, bool filtered) external;
    function updateCodeHash(address registrant, bytes32 codehash, bool filtered) external;
    function updateCodeHashes(address registrant, bytes32[] calldata codeHashes, bool filtered) external;
    function subscribe(address registrant, address registrantToSubscribe) external;
    function unsubscribe(address registrant, bool copyExistingEntries) external;
    function subscriptionOf(address addr) external returns (address registrant);
    function subscribers(address registrant) external returns (address[] memory);
    function subscriberAt(address registrant, uint256 index) external returns (address);
    function copyEntriesOf(address registrant, address registrantToCopy) external;
    function isOperatorFiltered(address registrant, address operator) external returns (bool);
    function isCodeHashOfFiltered(address registrant, address operatorWithCode) external returns (bool);
    function isCodeHashFiltered(address registrant, bytes32 codeHash) external returns (bool);
    function filteredOperators(address addr) external returns (address[] memory);
    function filteredCodeHashes(address addr) external returns (bytes32[] memory);
    function filteredOperatorAt(address registrant, uint256 index) external returns (address);
    function filteredCodeHashAt(address registrant, uint256 index) external returns (bytes32);
    function isRegistered(address addr) external returns (bool);
    function codeHashOf(address addr) external returns (bytes32);
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"symbol","type":"string"},{"internalType":"string","name":"defaultTokenURI_","type":"string"},{"internalType":"bool","name":"isOpen_","type":"bool"},{"internalType":"address","name":"coin","type":"address"},{"internalType":"address payable","name":"feeAccount","type":"address"},{"internalType":"uint256","name":"feeAmount","type":"uint256"},{"internalType":"uint256","name":"_maxMintLimit","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","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"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"defaultTokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"factory","outputs":[{"internalType":"contract IArtaNFTFactory","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"feeERC20Address","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"}],"name":"isAdmin","outputs":[{"internalType":"bool","name":"","type":"bool"}],"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":"isOpen","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxMintLimit","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32[]","name":"merkleProof","type":"bytes32[]"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"mintFeeAddr","outputs":[{"internalType":"address payable","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mintFeeAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"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":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"quoteErc20","outputs":[{"internalType":"contract IERC20","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":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"baseUri","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"tokenCreators","outputs":[{"internalType":"address payable","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]

60806040526001600d553480156200001657600080fd5b506040516200324038038062003240833981016040819052620000399162000504565b620000546301ffc9a760e01b6001600160e01b036200021116565b6200006f6380ac58cd60e01b6001600160e01b036200021116565b6200008a635b5e139f60e01b6001600160e01b036200021116565b620000a563780e9d6360e01b6001600160e01b036200021116565b600a805460ff191690556000620000c46001600160e01b036200026c16565b600a8054610100600160a81b0319166101006001600160a01b03841690810291909117909155604051919250906000907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a35087516200012f90600b9060208b019062000363565b5086516200014590600c9060208a019062000363565b50600e819055600f80546001600160a01b03199081166001600160a01b0387811691821790935560148054610100600160a81b0319166101009092029190911790556010805490911691851691909117905560118290556001600d55620001ab6200026c565b601280546001600160a01b0319166001600160a01b03929092169190911790558415620001ec57620001e6866001600160e01b036200027116565b62000203565b85516200020190601390602089019062000363565b505b505050505050505062000661565b6001600160e01b03198082161415620002475760405162461bcd60e51b81526004016200023e90620005f3565b60405180910390fd5b6001600160e01b0319166000908152602081905260409020805460ff19166001179055565b335b90565b6012546001600160a01b03166324d7806c620002956001600160e01b036200026c16565b6040518263ffffffff1660e01b8152600401620002b39190620005df565b60206040518083038186803b158015620002cc57600080fd5b505afa158015620002e1573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620003079190620004db565b620003265760405162461bcd60e51b81526004016200023e906200062a565b6200033a816001600160e01b036200034a16565b506014805460ff19166001179055565b80516200035f90600990602084019062000363565b5050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10620003a657805160ff1916838001178555620003d6565b82800160010185558215620003d6579182015b82811115620003d6578251825591602001919060010190620003b9565b50620003e4929150620003e8565b5090565b6200026e91905b80821115620003e45760008155600101620003ef565b80516001600160a01b03811681146200041d57600080fd5b92915050565b805180151581146200041d57600080fd5b600082601f83011262000445578081fd5b81516001600160401b03808211156200045c578283fd5b6040516020601f8401601f19168201810183811183821017156200047e578586fd5b806040525081945083825286818588010111156200049b57600080fd5b600092505b83831015620004bf5785830181015182840182015291820191620004a0565b83831115620004d15760008185840101525b5050505092915050565b600060208284031215620004ed578081fd5b81518015158114620004fd578182fd5b9392505050565b600080600080600080600080610100898b03121562000521578384fd5b88516001600160401b038082111562000538578586fd5b620005468c838d0162000434565b995060208b01519150808211156200055c578586fd5b6200056a8c838d0162000434565b985060408b015191508082111562000580578586fd5b506200058f8b828c0162000434565b965050620005a18a60608b0162000423565b9450620005b28a60808b0162000405565b9350620005c38a60a08b0162000405565b60c08a015160e0909a0151989b979a5095989497939692505050565b6001600160a01b0391909116815260200190565b6020808252601c908201527f4552433136353a20696e76616c696420696e7465726661636520696400000000604082015260600190565b60208082526014908201527f4d75737420686176652061646d696e20726f6c65000000000000000000000000604082015260600190565b612bcf80620006716000396000f3fe6080604052600436106101fd5760003560e01c806370a082311161010d578063ac4732b9116100a0578063c87b56dd1161006f578063c87b56dd14610536578063e0fd045f14610556578063e985e9c514610576578063f2fde38b14610596578063fb44da12146105b657610204565b8063ac4732b9146104d9578063b77a147b146104ee578063b88d4fde14610501578063c45a01551461052157610204565b80638da5cb5b116100dc5780638da5cb5b1461047a57806395d89b411461048f578063963bfe12146104a4578063a22cb465146104b957610204565b806370a082311461041b57806370e2f8271461043b578063715018a61461045057806375794a3c1461046557610204565b80632f745c591161019057806355f804b31161015f57806355f804b31461039c5780635c975abb146103bc5780636352211e146103d15780636a857ed2146103f15780636c0360eb1461040657610204565b80632f745c591461032757806342842e0e1461034757806347535d7b146103675780634f6ccce71461037c57610204565b8063170d542c116101cc578063170d542c146102b057806318160ddd146102c557806323b872dd146102e757806324d7806c1461030757610204565b806301ffc9a71461020957806306fdde031461023f578063081812fc14610261578063095ea7b31461028e57610204565b3661020457005b600080fd5b34801561021557600080fd5b5061022961022436600461220e565b6105cb565b6040516102369190612486565b60405180910390f35b34801561024b57600080fd5b506102546105ee565b6040516102369190612491565b34801561026d57600080fd5b5061028161027c366004612279565b610685565b60405161023691906123bb565b34801561029a57600080fd5b506102ae6102a9366004612130565b6106d1565b005b3480156102bc57600080fd5b50610281610741565b3480156102d157600080fd5b506102da610755565b6040516102369190612a86565b3480156102f357600080fd5b506102ae610302366004612051565b610766565b34801561031357600080fd5b50610229610322366004612002565b6107d8565b34801561033357600080fd5b506102da610342366004612130565b61085f565b34801561035357600080fd5b506102ae610362366004612051565b61088e565b34801561037357600080fd5b506102296108fb565b34801561038857600080fd5b506102da610397366004612279565b610904565b3480156103a857600080fd5b506102ae6103b7366004612246565b610920565b3480156103c857600080fd5b506102296109da565b3480156103dd57600080fd5b506102816103ec366004612279565b6109e3565b3480156103fd57600080fd5b50610281610a11565b34801561041257600080fd5b50610254610a20565b34801561042757600080fd5b506102da610436366004612002565b610a81565b34801561044757600080fd5b506102da610aca565b34801561045c57600080fd5b506102ae610ad0565b34801561047157600080fd5b506102da610b5f565b34801561048657600080fd5b50610281610b65565b34801561049b57600080fd5b50610254610b79565b3480156104b057600080fd5b50610254610bda565b3480156104c557600080fd5b506102ae6104d43660046120f9565b610c68565b3480156104e557600080fd5b506102da610cd4565b6102ae6104fc36600461215a565b610cda565b34801561050d57600080fd5b506102ae61051c366004612091565b611023565b34801561052d57600080fd5b50610281611097565b34801561054257600080fd5b50610254610551366004612279565b6110a6565b34801561056257600080fd5b50610281610571366004612279565b61114e565b34801561058257600080fd5b5061022961059136600461201d565b611169565b3480156105a257600080fd5b506102ae6105b1366004612002565b611197565b3480156105c257600080fd5b50610281611263565b6001600160e01b0319811660009081526020819052604090205460ff165b919050565b600b8054604080516020601f600260001961010060018816150201909516949094049384018190048102820181019092528281526060939092909183018282801561067a5780601f1061064f5761010080835404028352916020019161067a565b820191906000526020600020905b81548152906001019060200180831161065d57829003601f168201915b505050505090505b90565b600061069082611272565b6106b55760405162461bcd60e51b81526004016106ac906128a4565b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b601254604051634efe1a4b60e01b81526001600160a01b0390911690634efe1a4b906107019085906004016123bb565b600060405180830381600087803b15801561071b57600080fd5b505af115801561072f573d6000803e3d6000fd5b5050505061073d8282611285565b5050565b60145461010090046001600160a01b031681565b60006107616002611318565b905090565b601254604051634efe1a4b60e01b81526001600160a01b0390911690634efe1a4b906107969086906004016123bb565b600060405180830381600087803b1580156107b057600080fd5b505af11580156107c4573d6000803e3d6000fd5b505050506107d3838383611323565b505050565b601254604051630935e01b60e21b81526000916001600160a01b0316906324d7806c906108099085906004016123bb565b60206040518083038186803b15801561082157600080fd5b505afa158015610835573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061085991906121f2565b92915050565b6001600160a01b0382166000908152600160205260408120610887908363ffffffff61135b16565b9392505050565b601254604051634efe1a4b60e01b81526001600160a01b0390911690634efe1a4b906108be9086906004016123bb565b600060405180830381600087803b1580156108d857600080fd5b505af11580156108ec573d6000803e3d6000fd5b505050506107d3838383611367565b60145460ff1681565b60008061091860028463ffffffff61138216565b509392505050565b6012546001600160a01b03166324d7806c61093961139e565b6040518263ffffffff1660e01b815260040161095591906123bb565b60206040518083038186803b15801561096d57600080fd5b505afa158015610981573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109a591906121f2565b6109c15760405162461bcd60e51b81526004016106ac9061272d565b6109ca816113a2565b506014805460ff19166001179055565b600a5460ff1690565b600061085982604051806060016040528060298152602001612b71602991396002919063ffffffff6113b516565b6010546001600160a01b031681565b60098054604080516020601f600260001961010060018816150201909516949094049384018190048102820181019092528281526060939092909183018282801561067a5780601f1061064f5761010080835404028352916020019161067a565b60006001600160a01b038216610aa95760405162461bcd60e51b81526004016106ac906127b8565b6001600160a01b038216600090815260016020526040902061085990611318565b600e5481565b610ad861139e565b6001600160a01b0316610ae9610b65565b6001600160a01b031614610b0f5760405162461bcd60e51b81526004016106ac906128f0565b600a5460405160009161010090046001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600a8054610100600160a81b0319169055565b600d5481565b600a5461010090046001600160a01b031690565b600c8054604080516020601f600260001961010060018816150201909516949094049384018190048102820181019092528281526060939092909183018282801561067a5780601f1061064f5761010080835404028352916020019161067a565b6013805460408051602060026001851615610100026000190190941693909304601f81018490048402820184019092528181529291830182828015610c605780601f10610c3557610100808354040283529160200191610c60565b820191906000526020600020905b815481529060010190602001808311610c4357829003601f168201915b505050505081565b601254604051634efe1a4b60e01b81526001600160a01b0390911690634efe1a4b90610c989085906004016123bb565b600060405180830381600087803b158015610cb257600080fd5b505af1158015610cc6573d6000803e3d6000fd5b5050505061073d82826113ca565b60115481565b600e541580610ced5750600e54600d5411155b610d095760405162461bcd60e51b81526004016106ac906126aa565b6012546000906001600160a01b03166368dfe2f2610d2561139e565b846040518363ffffffff1660e01b8152600401610d43929190612430565b602060405180830381600087803b158015610d5d57600080fd5b505af1158015610d71573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d959190612291565b905060008115610da55781610da9565b6011545b600f549091506001600160a01b0316610e5f5780341015610ddc5760405162461bcd60e51b81526004016106ac90612802565b6010546040516001600160a01b039091169082156108fc029083906000818181858888f19350505050158015610e16573d6000803e3d6000fd5b50610e1f61139e565b6001600160a01b03166108fc8234039081150290604051600060405180830381858888f19350505050158015610e59573d6000803e3d6000fd5b50610fcd565b8015610fcd57600f5460148054610100600160a81b0319166101006001600160a01b039384168102919091179182905583929104166370a08231610ea161139e565b6040518263ffffffff1660e01b8152600401610ebd91906123bb565b60206040518083038186803b158015610ed557600080fd5b505afa158015610ee9573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f0d9190612291565b1015610f2b5760405162461bcd60e51b81526004016106ac906125c9565b60145461010090046001600160a01b03166323b872dd610f4961139e565b6010546040516001600160e01b031960e085901b168152610f7992916001600160a01b03169086906004016123cf565b602060405180830381600087803b158015610f9357600080fd5b505af1158015610fa7573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610fcb91906121f2565b505b600d54610fe1610fdb61139e565b82611498565b610fe961139e565b60009182526015602052604090912080546001600160a01b0319166001600160a01b039092169190911790555050600d8054600101905550565b601254604051634efe1a4b60e01b81526001600160a01b0390911690634efe1a4b906110539087906004016123bb565b600060405180830381600087803b15801561106d57600080fd5b505af1158015611081573d6000803e3d6000fd5b5050505061109184848484611568565b50505050565b6012546001600160a01b031681565b60145460609060ff16611145576013805460408051602060026001851615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156111395780601f1061110e57610100808354040283529160200191611139565b820191906000526020600020905b81548152906001019060200180831161111c57829003601f168201915b505050505090506105e9565b610859826115a1565b6015602052600090815260409020546001600160a01b031681565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b61119f61139e565b6001600160a01b03166111b0610b65565b6001600160a01b0316146111d65760405162461bcd60e51b81526004016106ac906128f0565b6001600160a01b0381166111fc5760405162461bcd60e51b81526004016106ac90612583565b600a546040516001600160a01b0380841692610100900416907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600a80546001600160a01b0390921661010002610100600160a81b0319909216919091179055565b600f546001600160a01b031681565b600061085960028363ffffffff6116eb16565b6000611290826109e3565b9050806001600160a01b0316836001600160a01b031614156112c45760405162461bcd60e51b81526004016106ac906129bd565b806001600160a01b03166112d661139e565b6001600160a01b031614806112f257506112f28161059161139e565b61130e5760405162461bcd60e51b81526004016106ac9061275b565b6107d383836116f7565b600061085982611765565b61133461132e61139e565b82611769565b6113505760405162461bcd60e51b81526004016106ac906129fe565b6107d38383836117e6565b60006108878383611906565b6107d383838360405180602001604052806000815250611023565b6000808080611391868661194b565b9097909650945050505050565b3390565b805161073d906009906020840190611eea565b60006113c28484846119a7565b949350505050565b6113d261139e565b6001600160a01b0316826001600160a01b031614156114035760405162461bcd60e51b81526004016106ac90612673565b806005600061141061139e565b6001600160a01b03908116825260208083019390935260409182016000908120918716808252919093529120805460ff19169215159290921790915561145461139e565b6001600160a01b03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405161148c9190612486565b60405180910390a35050565b6001600160a01b0382166114be5760405162461bcd60e51b81526004016106ac9061286f565b6114c781611272565b156114e45760405162461bcd60e51b81526004016106ac906125f8565b6114f060008383611a06565b6001600160a01b0382166000908152600160205260409020611518908263ffffffff611a3616565b5061152b6002828463ffffffff611a4216565b5060405181906001600160a01b038416906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b61157961157361139e565b83611769565b6115955760405162461bcd60e51b81526004016106ac906129fe565b61109184848484611a58565b60606115ac82611272565b6115c85760405162461bcd60e51b81526004016106ac9061296e565b60008281526008602090815260409182902080548351601f600260001961010060018616150201909316929092049182018490048402810184019094528084526060939283018282801561165d5780601f106116325761010080835404028352916020019161165d565b820191906000526020600020905b81548152906001019060200180831161164057829003601f168201915b5050600954939450505050600260001961010060018416150201909116046116865790506105e9565b8051156116b8576009816040516020016116a1929190612361565b6040516020818303038152906040529150506105e9565b60096116c384611a8b565b6040516020016116d4929190612386565b604051602081830303815290604052915050919050565b60006108878383611b66565b600081815260046020526040902080546001600160a01b0319166001600160a01b038416908117909155819061172c826109e3565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b5490565b600061177482611272565b6117905760405162461bcd60e51b81526004016106ac906126e1565b600061179b836109e3565b9050806001600160a01b0316846001600160a01b031614806117d65750836001600160a01b03166117cb84610685565b6001600160a01b0316145b806113c257506113c28185611169565b826001600160a01b03166117f9826109e3565b6001600160a01b03161461181f5760405162461bcd60e51b81526004016106ac90612925565b6001600160a01b0382166118455760405162461bcd60e51b81526004016106ac9061262f565b611850838383611a06565b61185b6000826116f7565b6001600160a01b0383166000908152600160205260409020611883908263ffffffff611b7e16565b506001600160a01b03821660009081526001602052604090206118ac908263ffffffff611a3616565b506118bf6002828463ffffffff611a4216565b5080826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b815460009082106119295760405162461bcd60e51b81526004016106ac906124a4565b82600001828154811061193857fe5b9060005260206000200154905092915050565b8154600090819083106119705760405162461bcd60e51b81526004016106ac9061282d565b600084600001848154811061198157fe5b906000526020600020906002020190508060000154816001015492509250509250929050565b600082815260018401602052604081205482816119d75760405162461bcd60e51b81526004016106ac9190612491565b508460000160018203815481106119ea57fe5b9060005260206000209060020201600101549150509392505050565b611a118383836107d3565b611a196109da565b156107d35760405162461bcd60e51b81526004016106ac906124e6565b60006108878383611b8a565b60006113c284846001600160a01b038516611bd4565b611a638484846117e6565b611a6f84848484611c6b565b6110915760405162461bcd60e51b81526004016106ac90612531565b606081611ab057506040805180820190915260018152600360fc1b60208201526105e9565b8160005b8115611ac857600101600a82049150611ab4565b60608167ffffffffffffffff81118015611ae157600080fd5b506040519080825280601f01601f191660200182016040528015611b0c576020820181803683370190505b50859350905060001982015b8315611b5d57600a840660300160f81b82828060019003935081518110611b3b57fe5b60200101906001600160f81b031916908160001a905350600a84049350611b18565b50949350505050565b60009081526001919091016020526040902054151590565b60006108878383611d50565b6000611b968383611b66565b611bcc57508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155610859565b506000610859565b600082815260018401602052604081205480611c39575050604080518082018252838152602080820184815286546001818101895560008981528481209551600290930290950191825591519082015586548684528188019092529290912055610887565b82856000016001830381548110611c4c57fe5b9060005260206000209060020201600101819055506000915050610887565b6000611c7f846001600160a01b0316611e16565b611c8b575060016113c2565b6060611d19630a85bd0160e11b611ca061139e565b888787604051602401611cb694939291906123f3565b604051602081830303815290604052906001600160e01b0319166020820180516001600160e01b038381831617835250505050604051806060016040528060328152602001612b3f603291396001600160a01b038816919063ffffffff611e1c16565b9050600081806020019051810190611d31919061222a565b6001600160e01b031916630a85bd0160e11b1492505050949350505050565b60008181526001830160205260408120548015611e0c5783546000198083019190810190600090879083908110611d8357fe5b9060005260206000200154905080876000018481548110611da057fe5b600091825260208083209091019290925582815260018981019092526040902090840190558654879080611dd057fe5b60019003818190600052602060002001600090559055866001016000878152602001908152602001600020600090556001945050505050610859565b6000915050610859565b3b151590565b60606113c284846000856060611e3185611e16565b611e4d5760405162461bcd60e51b81526004016106ac90612a4f565b60006060866001600160a01b03168587604051611e6a9190612345565b60006040518083038185875af1925050503d8060008114611ea7576040519150601f19603f3d011682016040523d82523d6000602084013e611eac565b606091505b50915091508115611ec05791506113c29050565b805115611ed05780518082602001fd5b8360405162461bcd60e51b81526004016106ac9190612491565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10611f2b57805160ff1916838001178555611f58565b82800160010185558215611f58579182015b82811115611f58578251825591602001919060010190611f3d565b50611f64929150611f68565b5090565b61068291905b80821115611f645760008155600101611f6e565b80356001600160a01b038116811461085957600080fd5b600082601f830112611fa9578081fd5b813567ffffffffffffffff811115611fbf578182fd5b611fd2601f8201601f1916602001612a8f565b9150808252836020828501011115611fe957600080fd5b8060208401602084013760009082016020015292915050565b600060208284031215612013578081fd5b6108878383611f82565b6000806040838503121561202f578081fd5b6120398484611f82565b91506120488460208501611f82565b90509250929050565b600080600060608486031215612065578081fd5b833561207081612b02565b9250602084013561208081612b02565b929592945050506040919091013590565b600080600080608085870312156120a6578081fd5b6120b08686611f82565b93506120bf8660208701611f82565b925060408501359150606085013567ffffffffffffffff8111156120e1578182fd5b6120ed87828801611f99565b91505092959194509250565b6000806040838503121561210b578182fd5b6121158484611f82565b9150602083013561212581612b1a565b809150509250929050565b60008060408385031215612142578182fd5b61214c8484611f82565b946020939093013593505050565b6000602080838503121561216c578182fd5b823567ffffffffffffffff811115612182578283fd5b80840185601f820112612193578384fd5b803591506121a86121a383612ab6565b612a8f565b82815283810190828501858502840186018910156121c4578687fd5b8693505b848410156121e65780358352600193909301929185019185016121c8565b50979650505050505050565b600060208284031215612203578081fd5b815161088781612b1a565b60006020828403121561221f578081fd5b813561088781612b28565b60006020828403121561223b578081fd5b815161088781612b28565b600060208284031215612257578081fd5b813567ffffffffffffffff81111561226d578182fd5b6113c284828501611f99565b60006020828403121561228a578081fd5b5035919050565b6000602082840312156122a2578081fd5b5051919050565b600081518084526122c1816020860160208601612ad6565b601f01601f19169290920160200192915050565b600081546001808216600081146122f3576001811461230a5761233c565b60ff198316865260028304607f168601935061233c565b600283048560005260208060002060005b838110156123345781548a82015290850190820161231b565b505050860193505b50505092915050565b60008251612357818460208701612ad6565b9190910192915050565b600061236d82856122d5565b835161237d818360208801612ad6565b01949350505050565b600061239282856122d5565b83516123a2818360208801612ad6565b64173539b7b760d91b9101908152600501949350505050565b6001600160a01b0391909116815260200190565b6001600160a01b039384168152919092166020820152604081019190915260600190565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090612426908301846122a9565b9695505050505050565b6001600160a01b038316815260406020808301829052835191830182905260009184820191906060850190845b818110156124795784518352938301939183019160010161245d565b5090979650505050505050565b901515815260200190565b60006020825261088760208301846122a9565b60208082526022908201527f456e756d657261626c655365743a20696e646578206f7574206f6620626f756e604082015261647360f01b606082015260800190565b6020808252602b908201527f4552433732315061757361626c653a20746f6b656e207472616e73666572207760408201526a1a1a5b19481c185d5cd95960aa1b606082015260800190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b60208082526026908201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160408201526564647265737360d01b606082015260800190565b602080825260159082015274796f757220707269636520697320746f6f206c6f7760581b604082015260600190565b6020808252601c908201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604082015260600190565b60208082526024908201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646040820152637265737360e01b606082015260800190565b60208082526019908201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604082015260600190565b6020808252601f908201527f6d6178206d696e74206c696d697420686173206265656e207265616368656400604082015260600190565b6020808252602c908201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860408201526b34b9ba32b73a103a37b5b2b760a11b606082015260800190565b6020808252601490820152734d75737420686176652061646d696e20726f6c6560601b604082015260600190565b60208082526038908201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760408201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000606082015260800190565b6020808252602a908201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604082015269726f206164647265737360b01b606082015260800190565b6020808252601190820152706d73672076616c756520746f6f206c6f7760781b604082015260600190565b60208082526022908201527f456e756d657261626c654d61703a20696e646578206f7574206f6620626f756e604082015261647360f01b606082015260800190565b6020808252818101527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604082015260600190565b6020808252602c908201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860408201526b34b9ba32b73a103a37b5b2b760a11b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526029908201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960408201526839903737ba1037bbb760b91b606082015260800190565b6020808252602f908201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60408201526e3732bc34b9ba32b73a103a37b5b2b760891b606082015260800190565b60208082526021908201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656040820152603960f91b606082015260800190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b6020808252601d908201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604082015260600190565b90815260200190565b60405181810167ffffffffffffffff81118282101715612aae57600080fd5b604052919050565b600067ffffffffffffffff821115612acc578081fd5b5060209081020190565b60005b83811015612af1578181015183820152602001612ad9565b838111156110915750506000910152565b6001600160a01b0381168114612b1757600080fd5b50565b8015158114612b1757600080fd5b6001600160e01b031981168114612b1757600080fdfe4552433732313a207472616e7366657220746f206e6f6e20455243373231526563656976657220696d706c656d656e7465724552433732313a206f776e657220717565727920666f72206e6f6e6578697374656e7420746f6b656ea2646970667358221220db7289ab0e4df8eba44905aca3939a6aa59220a4adf8ff4d822221864e769d2864736f6c63430006060033000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000001400000000000000000000000000000000000000000000000000000000000000180000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000004ab722623df6eda0f80f6b1f8aaa1c765c4777e500000000000000000000000000000000000000000000000002c68af0bb14000000000000000000000000000000000000000000000000000000000000000003e8000000000000000000000000000000000000000000000000000000000000001a46616e746173746963205765736c6965202d6f6666696369616c000000000000000000000000000000000000000000000000000000000000000000000000001a46616e746173746963205765736c6965202d6f6666696369616c0000000000000000000000000000000000000000000000000000000000000000000000000036697066733a2f2f516d55544d695a56746d707277373739546b7a48796b6f744d78644559665a4261504a356d6a45584533673438632f00000000000000000000

Deployed Bytecode

0x6080604052600436106101fd5760003560e01c806370a082311161010d578063ac4732b9116100a0578063c87b56dd1161006f578063c87b56dd14610536578063e0fd045f14610556578063e985e9c514610576578063f2fde38b14610596578063fb44da12146105b657610204565b8063ac4732b9146104d9578063b77a147b146104ee578063b88d4fde14610501578063c45a01551461052157610204565b80638da5cb5b116100dc5780638da5cb5b1461047a57806395d89b411461048f578063963bfe12146104a4578063a22cb465146104b957610204565b806370a082311461041b57806370e2f8271461043b578063715018a61461045057806375794a3c1461046557610204565b80632f745c591161019057806355f804b31161015f57806355f804b31461039c5780635c975abb146103bc5780636352211e146103d15780636a857ed2146103f15780636c0360eb1461040657610204565b80632f745c591461032757806342842e0e1461034757806347535d7b146103675780634f6ccce71461037c57610204565b8063170d542c116101cc578063170d542c146102b057806318160ddd146102c557806323b872dd146102e757806324d7806c1461030757610204565b806301ffc9a71461020957806306fdde031461023f578063081812fc14610261578063095ea7b31461028e57610204565b3661020457005b600080fd5b34801561021557600080fd5b5061022961022436600461220e565b6105cb565b6040516102369190612486565b60405180910390f35b34801561024b57600080fd5b506102546105ee565b6040516102369190612491565b34801561026d57600080fd5b5061028161027c366004612279565b610685565b60405161023691906123bb565b34801561029a57600080fd5b506102ae6102a9366004612130565b6106d1565b005b3480156102bc57600080fd5b50610281610741565b3480156102d157600080fd5b506102da610755565b6040516102369190612a86565b3480156102f357600080fd5b506102ae610302366004612051565b610766565b34801561031357600080fd5b50610229610322366004612002565b6107d8565b34801561033357600080fd5b506102da610342366004612130565b61085f565b34801561035357600080fd5b506102ae610362366004612051565b61088e565b34801561037357600080fd5b506102296108fb565b34801561038857600080fd5b506102da610397366004612279565b610904565b3480156103a857600080fd5b506102ae6103b7366004612246565b610920565b3480156103c857600080fd5b506102296109da565b3480156103dd57600080fd5b506102816103ec366004612279565b6109e3565b3480156103fd57600080fd5b50610281610a11565b34801561041257600080fd5b50610254610a20565b34801561042757600080fd5b506102da610436366004612002565b610a81565b34801561044757600080fd5b506102da610aca565b34801561045c57600080fd5b506102ae610ad0565b34801561047157600080fd5b506102da610b5f565b34801561048657600080fd5b50610281610b65565b34801561049b57600080fd5b50610254610b79565b3480156104b057600080fd5b50610254610bda565b3480156104c557600080fd5b506102ae6104d43660046120f9565b610c68565b3480156104e557600080fd5b506102da610cd4565b6102ae6104fc36600461215a565b610cda565b34801561050d57600080fd5b506102ae61051c366004612091565b611023565b34801561052d57600080fd5b50610281611097565b34801561054257600080fd5b50610254610551366004612279565b6110a6565b34801561056257600080fd5b50610281610571366004612279565b61114e565b34801561058257600080fd5b5061022961059136600461201d565b611169565b3480156105a257600080fd5b506102ae6105b1366004612002565b611197565b3480156105c257600080fd5b50610281611263565b6001600160e01b0319811660009081526020819052604090205460ff165b919050565b600b8054604080516020601f600260001961010060018816150201909516949094049384018190048102820181019092528281526060939092909183018282801561067a5780601f1061064f5761010080835404028352916020019161067a565b820191906000526020600020905b81548152906001019060200180831161065d57829003601f168201915b505050505090505b90565b600061069082611272565b6106b55760405162461bcd60e51b81526004016106ac906128a4565b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b601254604051634efe1a4b60e01b81526001600160a01b0390911690634efe1a4b906107019085906004016123bb565b600060405180830381600087803b15801561071b57600080fd5b505af115801561072f573d6000803e3d6000fd5b5050505061073d8282611285565b5050565b60145461010090046001600160a01b031681565b60006107616002611318565b905090565b601254604051634efe1a4b60e01b81526001600160a01b0390911690634efe1a4b906107969086906004016123bb565b600060405180830381600087803b1580156107b057600080fd5b505af11580156107c4573d6000803e3d6000fd5b505050506107d3838383611323565b505050565b601254604051630935e01b60e21b81526000916001600160a01b0316906324d7806c906108099085906004016123bb565b60206040518083038186803b15801561082157600080fd5b505afa158015610835573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061085991906121f2565b92915050565b6001600160a01b0382166000908152600160205260408120610887908363ffffffff61135b16565b9392505050565b601254604051634efe1a4b60e01b81526001600160a01b0390911690634efe1a4b906108be9086906004016123bb565b600060405180830381600087803b1580156108d857600080fd5b505af11580156108ec573d6000803e3d6000fd5b505050506107d3838383611367565b60145460ff1681565b60008061091860028463ffffffff61138216565b509392505050565b6012546001600160a01b03166324d7806c61093961139e565b6040518263ffffffff1660e01b815260040161095591906123bb565b60206040518083038186803b15801561096d57600080fd5b505afa158015610981573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109a591906121f2565b6109c15760405162461bcd60e51b81526004016106ac9061272d565b6109ca816113a2565b506014805460ff19166001179055565b600a5460ff1690565b600061085982604051806060016040528060298152602001612b71602991396002919063ffffffff6113b516565b6010546001600160a01b031681565b60098054604080516020601f600260001961010060018816150201909516949094049384018190048102820181019092528281526060939092909183018282801561067a5780601f1061064f5761010080835404028352916020019161067a565b60006001600160a01b038216610aa95760405162461bcd60e51b81526004016106ac906127b8565b6001600160a01b038216600090815260016020526040902061085990611318565b600e5481565b610ad861139e565b6001600160a01b0316610ae9610b65565b6001600160a01b031614610b0f5760405162461bcd60e51b81526004016106ac906128f0565b600a5460405160009161010090046001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600a8054610100600160a81b0319169055565b600d5481565b600a5461010090046001600160a01b031690565b600c8054604080516020601f600260001961010060018816150201909516949094049384018190048102820181019092528281526060939092909183018282801561067a5780601f1061064f5761010080835404028352916020019161067a565b6013805460408051602060026001851615610100026000190190941693909304601f81018490048402820184019092528181529291830182828015610c605780601f10610c3557610100808354040283529160200191610c60565b820191906000526020600020905b815481529060010190602001808311610c4357829003601f168201915b505050505081565b601254604051634efe1a4b60e01b81526001600160a01b0390911690634efe1a4b90610c989085906004016123bb565b600060405180830381600087803b158015610cb257600080fd5b505af1158015610cc6573d6000803e3d6000fd5b5050505061073d82826113ca565b60115481565b600e541580610ced5750600e54600d5411155b610d095760405162461bcd60e51b81526004016106ac906126aa565b6012546000906001600160a01b03166368dfe2f2610d2561139e565b846040518363ffffffff1660e01b8152600401610d43929190612430565b602060405180830381600087803b158015610d5d57600080fd5b505af1158015610d71573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d959190612291565b905060008115610da55781610da9565b6011545b600f549091506001600160a01b0316610e5f5780341015610ddc5760405162461bcd60e51b81526004016106ac90612802565b6010546040516001600160a01b039091169082156108fc029083906000818181858888f19350505050158015610e16573d6000803e3d6000fd5b50610e1f61139e565b6001600160a01b03166108fc8234039081150290604051600060405180830381858888f19350505050158015610e59573d6000803e3d6000fd5b50610fcd565b8015610fcd57600f5460148054610100600160a81b0319166101006001600160a01b039384168102919091179182905583929104166370a08231610ea161139e565b6040518263ffffffff1660e01b8152600401610ebd91906123bb565b60206040518083038186803b158015610ed557600080fd5b505afa158015610ee9573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f0d9190612291565b1015610f2b5760405162461bcd60e51b81526004016106ac906125c9565b60145461010090046001600160a01b03166323b872dd610f4961139e565b6010546040516001600160e01b031960e085901b168152610f7992916001600160a01b03169086906004016123cf565b602060405180830381600087803b158015610f9357600080fd5b505af1158015610fa7573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610fcb91906121f2565b505b600d54610fe1610fdb61139e565b82611498565b610fe961139e565b60009182526015602052604090912080546001600160a01b0319166001600160a01b039092169190911790555050600d8054600101905550565b601254604051634efe1a4b60e01b81526001600160a01b0390911690634efe1a4b906110539087906004016123bb565b600060405180830381600087803b15801561106d57600080fd5b505af1158015611081573d6000803e3d6000fd5b5050505061109184848484611568565b50505050565b6012546001600160a01b031681565b60145460609060ff16611145576013805460408051602060026001851615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156111395780601f1061110e57610100808354040283529160200191611139565b820191906000526020600020905b81548152906001019060200180831161111c57829003601f168201915b505050505090506105e9565b610859826115a1565b6015602052600090815260409020546001600160a01b031681565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b61119f61139e565b6001600160a01b03166111b0610b65565b6001600160a01b0316146111d65760405162461bcd60e51b81526004016106ac906128f0565b6001600160a01b0381166111fc5760405162461bcd60e51b81526004016106ac90612583565b600a546040516001600160a01b0380841692610100900416907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600a80546001600160a01b0390921661010002610100600160a81b0319909216919091179055565b600f546001600160a01b031681565b600061085960028363ffffffff6116eb16565b6000611290826109e3565b9050806001600160a01b0316836001600160a01b031614156112c45760405162461bcd60e51b81526004016106ac906129bd565b806001600160a01b03166112d661139e565b6001600160a01b031614806112f257506112f28161059161139e565b61130e5760405162461bcd60e51b81526004016106ac9061275b565b6107d383836116f7565b600061085982611765565b61133461132e61139e565b82611769565b6113505760405162461bcd60e51b81526004016106ac906129fe565b6107d38383836117e6565b60006108878383611906565b6107d383838360405180602001604052806000815250611023565b6000808080611391868661194b565b9097909650945050505050565b3390565b805161073d906009906020840190611eea565b60006113c28484846119a7565b949350505050565b6113d261139e565b6001600160a01b0316826001600160a01b031614156114035760405162461bcd60e51b81526004016106ac90612673565b806005600061141061139e565b6001600160a01b03908116825260208083019390935260409182016000908120918716808252919093529120805460ff19169215159290921790915561145461139e565b6001600160a01b03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405161148c9190612486565b60405180910390a35050565b6001600160a01b0382166114be5760405162461bcd60e51b81526004016106ac9061286f565b6114c781611272565b156114e45760405162461bcd60e51b81526004016106ac906125f8565b6114f060008383611a06565b6001600160a01b0382166000908152600160205260409020611518908263ffffffff611a3616565b5061152b6002828463ffffffff611a4216565b5060405181906001600160a01b038416906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b61157961157361139e565b83611769565b6115955760405162461bcd60e51b81526004016106ac906129fe565b61109184848484611a58565b60606115ac82611272565b6115c85760405162461bcd60e51b81526004016106ac9061296e565b60008281526008602090815260409182902080548351601f600260001961010060018616150201909316929092049182018490048402810184019094528084526060939283018282801561165d5780601f106116325761010080835404028352916020019161165d565b820191906000526020600020905b81548152906001019060200180831161164057829003601f168201915b5050600954939450505050600260001961010060018416150201909116046116865790506105e9565b8051156116b8576009816040516020016116a1929190612361565b6040516020818303038152906040529150506105e9565b60096116c384611a8b565b6040516020016116d4929190612386565b604051602081830303815290604052915050919050565b60006108878383611b66565b600081815260046020526040902080546001600160a01b0319166001600160a01b038416908117909155819061172c826109e3565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b5490565b600061177482611272565b6117905760405162461bcd60e51b81526004016106ac906126e1565b600061179b836109e3565b9050806001600160a01b0316846001600160a01b031614806117d65750836001600160a01b03166117cb84610685565b6001600160a01b0316145b806113c257506113c28185611169565b826001600160a01b03166117f9826109e3565b6001600160a01b03161461181f5760405162461bcd60e51b81526004016106ac90612925565b6001600160a01b0382166118455760405162461bcd60e51b81526004016106ac9061262f565b611850838383611a06565b61185b6000826116f7565b6001600160a01b0383166000908152600160205260409020611883908263ffffffff611b7e16565b506001600160a01b03821660009081526001602052604090206118ac908263ffffffff611a3616565b506118bf6002828463ffffffff611a4216565b5080826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b815460009082106119295760405162461bcd60e51b81526004016106ac906124a4565b82600001828154811061193857fe5b9060005260206000200154905092915050565b8154600090819083106119705760405162461bcd60e51b81526004016106ac9061282d565b600084600001848154811061198157fe5b906000526020600020906002020190508060000154816001015492509250509250929050565b600082815260018401602052604081205482816119d75760405162461bcd60e51b81526004016106ac9190612491565b508460000160018203815481106119ea57fe5b9060005260206000209060020201600101549150509392505050565b611a118383836107d3565b611a196109da565b156107d35760405162461bcd60e51b81526004016106ac906124e6565b60006108878383611b8a565b60006113c284846001600160a01b038516611bd4565b611a638484846117e6565b611a6f84848484611c6b565b6110915760405162461bcd60e51b81526004016106ac90612531565b606081611ab057506040805180820190915260018152600360fc1b60208201526105e9565b8160005b8115611ac857600101600a82049150611ab4565b60608167ffffffffffffffff81118015611ae157600080fd5b506040519080825280601f01601f191660200182016040528015611b0c576020820181803683370190505b50859350905060001982015b8315611b5d57600a840660300160f81b82828060019003935081518110611b3b57fe5b60200101906001600160f81b031916908160001a905350600a84049350611b18565b50949350505050565b60009081526001919091016020526040902054151590565b60006108878383611d50565b6000611b968383611b66565b611bcc57508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155610859565b506000610859565b600082815260018401602052604081205480611c39575050604080518082018252838152602080820184815286546001818101895560008981528481209551600290930290950191825591519082015586548684528188019092529290912055610887565b82856000016001830381548110611c4c57fe5b9060005260206000209060020201600101819055506000915050610887565b6000611c7f846001600160a01b0316611e16565b611c8b575060016113c2565b6060611d19630a85bd0160e11b611ca061139e565b888787604051602401611cb694939291906123f3565b604051602081830303815290604052906001600160e01b0319166020820180516001600160e01b038381831617835250505050604051806060016040528060328152602001612b3f603291396001600160a01b038816919063ffffffff611e1c16565b9050600081806020019051810190611d31919061222a565b6001600160e01b031916630a85bd0160e11b1492505050949350505050565b60008181526001830160205260408120548015611e0c5783546000198083019190810190600090879083908110611d8357fe5b9060005260206000200154905080876000018481548110611da057fe5b600091825260208083209091019290925582815260018981019092526040902090840190558654879080611dd057fe5b60019003818190600052602060002001600090559055866001016000878152602001908152602001600020600090556001945050505050610859565b6000915050610859565b3b151590565b60606113c284846000856060611e3185611e16565b611e4d5760405162461bcd60e51b81526004016106ac90612a4f565b60006060866001600160a01b03168587604051611e6a9190612345565b60006040518083038185875af1925050503d8060008114611ea7576040519150601f19603f3d011682016040523d82523d6000602084013e611eac565b606091505b50915091508115611ec05791506113c29050565b805115611ed05780518082602001fd5b8360405162461bcd60e51b81526004016106ac9190612491565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10611f2b57805160ff1916838001178555611f58565b82800160010185558215611f58579182015b82811115611f58578251825591602001919060010190611f3d565b50611f64929150611f68565b5090565b61068291905b80821115611f645760008155600101611f6e565b80356001600160a01b038116811461085957600080fd5b600082601f830112611fa9578081fd5b813567ffffffffffffffff811115611fbf578182fd5b611fd2601f8201601f1916602001612a8f565b9150808252836020828501011115611fe957600080fd5b8060208401602084013760009082016020015292915050565b600060208284031215612013578081fd5b6108878383611f82565b6000806040838503121561202f578081fd5b6120398484611f82565b91506120488460208501611f82565b90509250929050565b600080600060608486031215612065578081fd5b833561207081612b02565b9250602084013561208081612b02565b929592945050506040919091013590565b600080600080608085870312156120a6578081fd5b6120b08686611f82565b93506120bf8660208701611f82565b925060408501359150606085013567ffffffffffffffff8111156120e1578182fd5b6120ed87828801611f99565b91505092959194509250565b6000806040838503121561210b578182fd5b6121158484611f82565b9150602083013561212581612b1a565b809150509250929050565b60008060408385031215612142578182fd5b61214c8484611f82565b946020939093013593505050565b6000602080838503121561216c578182fd5b823567ffffffffffffffff811115612182578283fd5b80840185601f820112612193578384fd5b803591506121a86121a383612ab6565b612a8f565b82815283810190828501858502840186018910156121c4578687fd5b8693505b848410156121e65780358352600193909301929185019185016121c8565b50979650505050505050565b600060208284031215612203578081fd5b815161088781612b1a565b60006020828403121561221f578081fd5b813561088781612b28565b60006020828403121561223b578081fd5b815161088781612b28565b600060208284031215612257578081fd5b813567ffffffffffffffff81111561226d578182fd5b6113c284828501611f99565b60006020828403121561228a578081fd5b5035919050565b6000602082840312156122a2578081fd5b5051919050565b600081518084526122c1816020860160208601612ad6565b601f01601f19169290920160200192915050565b600081546001808216600081146122f3576001811461230a5761233c565b60ff198316865260028304607f168601935061233c565b600283048560005260208060002060005b838110156123345781548a82015290850190820161231b565b505050860193505b50505092915050565b60008251612357818460208701612ad6565b9190910192915050565b600061236d82856122d5565b835161237d818360208801612ad6565b01949350505050565b600061239282856122d5565b83516123a2818360208801612ad6565b64173539b7b760d91b9101908152600501949350505050565b6001600160a01b0391909116815260200190565b6001600160a01b039384168152919092166020820152604081019190915260600190565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090612426908301846122a9565b9695505050505050565b6001600160a01b038316815260406020808301829052835191830182905260009184820191906060850190845b818110156124795784518352938301939183019160010161245d565b5090979650505050505050565b901515815260200190565b60006020825261088760208301846122a9565b60208082526022908201527f456e756d657261626c655365743a20696e646578206f7574206f6620626f756e604082015261647360f01b606082015260800190565b6020808252602b908201527f4552433732315061757361626c653a20746f6b656e207472616e73666572207760408201526a1a1a5b19481c185d5cd95960aa1b606082015260800190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b60208082526026908201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160408201526564647265737360d01b606082015260800190565b602080825260159082015274796f757220707269636520697320746f6f206c6f7760581b604082015260600190565b6020808252601c908201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604082015260600190565b60208082526024908201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646040820152637265737360e01b606082015260800190565b60208082526019908201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604082015260600190565b6020808252601f908201527f6d6178206d696e74206c696d697420686173206265656e207265616368656400604082015260600190565b6020808252602c908201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860408201526b34b9ba32b73a103a37b5b2b760a11b606082015260800190565b6020808252601490820152734d75737420686176652061646d696e20726f6c6560601b604082015260600190565b60208082526038908201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760408201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000606082015260800190565b6020808252602a908201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604082015269726f206164647265737360b01b606082015260800190565b6020808252601190820152706d73672076616c756520746f6f206c6f7760781b604082015260600190565b60208082526022908201527f456e756d657261626c654d61703a20696e646578206f7574206f6620626f756e604082015261647360f01b606082015260800190565b6020808252818101527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604082015260600190565b6020808252602c908201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860408201526b34b9ba32b73a103a37b5b2b760a11b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526029908201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960408201526839903737ba1037bbb760b91b606082015260800190565b6020808252602f908201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60408201526e3732bc34b9ba32b73a103a37b5b2b760891b606082015260800190565b60208082526021908201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656040820152603960f91b606082015260800190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b6020808252601d908201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604082015260600190565b90815260200190565b60405181810167ffffffffffffffff81118282101715612aae57600080fd5b604052919050565b600067ffffffffffffffff821115612acc578081fd5b5060209081020190565b60005b83811015612af1578181015183820152602001612ad9565b838111156110915750506000910152565b6001600160a01b0381168114612b1757600080fd5b50565b8015158114612b1757600080fd5b6001600160e01b031981168114612b1757600080fdfe4552433732313a207472616e7366657220746f206e6f6e20455243373231526563656976657220696d706c656d656e7465724552433732313a206f776e657220717565727920666f72206e6f6e6578697374656e7420746f6b656ea2646970667358221220db7289ab0e4df8eba44905aca3939a6aa59220a4adf8ff4d822221864e769d2864736f6c63430006060033

Deployed Bytecode Sourcemap

146:4316:1:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;12:1:-1;9;2:12;25830:142:7;;5:9:-1;2:2;;;27:1;24;17:12;2:2;-1:-1;25830:142:7;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;2593:92:1;;5:9:-1;2:2;;;27:1;24;17:12;2:2;2593:92:1;;;:::i;:::-;;;;;;;;48378:213:7;;5:9:-1;2:2;;;27:1;24;17:12;2:2;-1:-1;48378:213:7;;;;;;;;:::i;:::-;;;;;;;;2823:164:1;;5:9:-1;2:2;;;27:1;24;17:12;2:2;-1:-1;2823:164:1;;;;;;;;:::i;:::-;;532:24;;5:9:-1;2:2;;;27:1;24;17:12;2:2;532:24:1;;;:::i;47417:203:7:-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;47417:203:7;;;:::i;:::-;;;;;;;;3240:188:1;;5:9:-1;2:2;;;27:1;24;17:12;2:2;-1:-1;3240:188:1;;;;;;;;:::i;3892:115::-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;-1:-1;3892:115:1;;;;;;;;:::i;47185:154:7:-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;-1:-1;47185:154:7;;;;;;;;:::i;3436:196:1:-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;-1:-1;3436:196:1;;;;;;;;:::i;505:18::-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;505:18:1;;;:::i;47697:163:7:-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;-1:-1;47697:163:7;;;;;;;;:::i;4210:123:1:-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;-1:-1;4210:123:1;;;;;;;;:::i;59391:78:7:-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;59391:78:7;;;:::i;45421:169::-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;-1:-1;45421:169:7;;;;;;;;:::i;356:34:1:-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;356:34:1;;;:::i;47012:89:7:-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;47012:89:7;;;:::i;45140:215::-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;-1:-1;45140:215:7;;;;;;;;:::i;285:27:1:-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;285:27:1;;;:::i;67887:148:7:-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;67887:148:7;;;:::i;248:30:1:-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;248:30:1;;;:::i;67236:87:7:-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;67236:87:7;;;:::i;2693:96:1:-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;2693:96:1;;;:::i;469:29::-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;469:29:1;;;:::i;3031:201::-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;-1:-1;3031:201:1;;;;;;;;:::i;397:28::-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;397:28:1;;;:::i;1384:1201::-;;;;;;;;;:::i;3640:244::-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;-1:-1;3640:244:1;;;;;;;;:::i;432:30::-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;432:30:1;;;:::i;4015:187::-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;-1:-1;4015:187:1;;;;;;;;:::i;563:56::-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;-1:-1;563:56:1;;;;;;;;:::i;49029:156:7:-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;-1:-1;49029:156:7;;;;;;;;:::i;68190:244::-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;-1:-1;68190:244:7;;;;;;;;:::i;319:30:1:-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;319:30:1;;;:::i;25830:142:7:-;-1:-1:-1;;;;;;25931:33:7;;25907:4;25931:33;;;;;;;;;;;;;25830:142;;;;:::o;2593:92:1:-;2672:5;2665:12;;;;;;;;;;;;;-1:-1:-1;;2665:12:1;;;;;;;;;;;;;;;;;;;;;;;;;;2639:13;;2665:12;;2672:5;;2665:12;;;2672:5;2665:12;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2593:92;;:::o;48378:213:7:-;48446:7;48474:16;48482:7;48474;:16::i;:::-;48466:73;;;;-1:-1:-1;;;48466:73:7;;;;;;;;;;;;;;;;;-1:-1:-1;48559:24:7;;;;:15;:24;;;;;;-1:-1:-1;;;;;48559:24:7;;48378:213::o;2823:164:1:-;2904:7;;:38;;-1:-1:-1;;;2904:38:1;;-1:-1:-1;;;;;2904:7:1;;;;-1:-1:-1;;2904:38:1;;2939:2;;2904:38;;;;;;;;;;;;;;;;;5:9:-1;2:2;;;27:1;24;17:12;2:2;2904:38:1;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;2904:38:1;;;;2953:26;2967:2;2971:7;2953:13;:26::i;:::-;2823:164;;:::o;532:24::-;;;;;;-1:-1:-1;;;;;532:24:1;;:::o;47417:203:7:-;47470:7;47591:21;:12;:19;:21::i;:::-;47584:28;;47417:203;:::o;3240:188:1:-;3332:7;;:40;;-1:-1:-1;;;3332:40:1;;-1:-1:-1;;;;;3332:7:1;;;;-1:-1:-1;;3332:40:1;;3367:4;;3332:40;;;;;;;;;;;;;;;;;5:9:-1;2:2;;;27:1;24;17:12;2:2;3332:40:1;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;3332:40:1;;;;3383:37;3402:4;3408:2;3412:7;3383:18;:37::i;:::-;3240:188;;;:::o;3892:115::-;3978:7;;:21;;-1:-1:-1;;;3978:21:1;;3955:4;;-1:-1:-1;;;;;3978:7:1;;:15;;:21;;3994:4;;3978:21;;;;;;;;;;;;;;;;5:9:-1;2:2;;;27:1;24;17:12;2:2;3978:21:1;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;3978:21:1;;;;;;;101:4:-1;97:9;90:4;84;80:15;76:31;69:5;65:43;126:6;120:4;113:20;0:138;3978:21:1;;;;;;;;;3971:28;3892:115;-1:-1:-1;;3892:115:1:o;47185:154:7:-;-1:-1:-1;;;;;47301:20:7;;47274:7;47301:20;;;-1:-1:-1;47301:20:7;;;;;:30;;47325:5;47301:23;:30::i;:::-;47294:37;47185:154;-1:-1:-1;;;47185:154:7:o;3436:196:1:-;3532:7;;:40;;-1:-1:-1;;;3532:40:1;;-1:-1:-1;;;;;3532:7:1;;;;-1:-1:-1;;3532:40:1;;3567:4;;3532:40;;;;;;;;;;;;;;;;;5:9:-1;2:2;;;27:1;24;17:12;2:2;3532:40:1;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;3532:40:1;;;;3583:41;3606:4;3612:2;3616:7;3583:22;:41::i;505:18::-;;;;;;:::o;47697:163:7:-;47764:7;;47805:22;:12;47821:5;47805:22;:15;:22;:::i;:::-;-1:-1:-1;47784:43:7;47697:163;-1:-1:-1;;;47697:163:7:o;4210:123:1:-;4385:7;;-1:-1:-1;;;;;4385:7:1;:15;4401:12;:10;:12::i;:::-;4385:29;;;;;;;;;;;;;;;;;;;;;;;;;;;;5:9:-1;2:2;;;27:1;24;17:12;2:2;4385:29:1;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;4385:29:1;;;;;;;101:4:-1;97:9;90:4;84;80:15;76:31;69:5;65:43;126:6;120:4;113:20;0:138;4385:29:1;;;;;;;;;4377:62;;;;-1:-1:-1;;;4377:62:1;;;;;;;;;4281:20:::1;4293:7;4281:11;:20::i;:::-;-1:-1:-1::0;4312:6:1::1;:13:::0;;-1:-1:-1;;4312:13:1::1;4321:4;4312:13;::::0;;4210:123::o;59391:78:7:-;59454:7;;;;59391:78;:::o;45421:169::-;45485:7;45512:70;45529:7;45512:70;;;;;;;;;;;;;;;;;:12;;:70;;:16;:70;:::i;356:34:1:-;;;-1:-1:-1;;;;;356:34:1;;:::o;47012:89:7:-;47085:8;47078:15;;;;;;;;;;;;;-1:-1:-1;;47078:15:7;;;;;;;;;;;;;;;;;;;;;;;;;;47052:13;;47078:15;;47085:8;;47078:15;;;47085:8;47078:15;;;;;;;;;;;;;;;;;;;;;;;;45140:215;45204:7;-1:-1:-1;;;;;45232:19:7;;45224:74;;;;-1:-1:-1;;;45224:74:7;;;;;;;;;-1:-1:-1;;;;;45318:20:7;;;;;;-1:-1:-1;45318:20:7;;;;;:29;;:27;:29::i;285:27:1:-;;;;:::o;67887:148:7:-;67467:12;:10;:12::i;:::-;-1:-1:-1;;;;;67456:23:7;:7;:5;:7::i;:::-;-1:-1:-1;;;;;67456:23:7;;67448:68;;;;-1:-1:-1;;;67448:68:7;;;;;;;;;67978:6:::1;::::0;67957:40:::1;::::0;67994:1:::1;::::0;67978:6:::1;::::0;::::1;-1:-1:-1::0;;;;;67978:6:7::1;::::0;67957:40:::1;::::0;67994:1;;67957:40:::1;68008:6;:19:::0;;-1:-1:-1;;;;;;68008:19:7::1;::::0;;67887:148::o;248:30:1:-;;;;:::o;67236:87:7:-;67309:6;;;;;-1:-1:-1;;;;;67309:6:7;;67236:87::o;2693:96:1:-;2774:7;2767:14;;;;;;;;;;;;;-1:-1:-1;;2767:14:1;;;;;;;;;;;;;;;;;;;;;;;;;;2741:13;;2767:14;;2774:7;;2767:14;;;2774:7;2767:14;;;;;;;;;;;;;;;;;;;;;;;;469:29;;;;;;;;;;;;;;;-1:-1:-1;;469:29:1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;3031:201::-;3126:7;;:44;;-1:-1:-1;;;3126:44:1;;-1:-1:-1;;;;;3126:7:1;;;;-1:-1:-1;;3126:44:1;;3161:8;;3126:44;;;;;;;;;;;;;;;;;5:9:-1;2:2;;;27:1;24;17:12;2:2;3126:44:1;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;3126:44:1;;;;3181:43;3205:8;3215;3181:23;:43::i;397:28::-;;;;:::o;1384:1201::-;1476:12;;:17;;:48;;;1512:12;;1497:11;;:27;;1476:48;1454:129;;;;-1:-1:-1;;;1454:129:1;;;;;;;;;1619:7;;1594:22;;-1:-1:-1;;;;;1619:7:1;:18;1638:12;:10;:12::i;:::-;1652:11;1619:45;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5:9:-1;2:2;;;27:1;24;17:12;2:2;1619:45:1;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;1619:45:1;;;;;;;101:4:-1;97:9;90:4;84;80:15;76:31;69:5;65:43;126:6;120:4;113:20;0:138;1619:45:1;;;;;;;;;1594:70;-1:-1:-1;1675:17:1;1695:19;;:52;;1733:14;1695:52;;;1717:13;;1695:52;1764:15;;1675:72;;-1:-1:-1;;;;;;1764:15:1;1760:665;;1831:9;1818;:22;;1810:52;;;;-1:-1:-1;;;1810:52:1;;;;;;;;;1877:11;;:31;;-1:-1:-1;;;;;1877:11:1;;;;:31;;;;;;;:11;:31;:11;:31;;:11;:31;;;;;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;1877:31:1;1923:12;:10;:12::i;:::-;:44;;-1:-1:-1;;;;;1923:21:1;;;;;1945:9;:21;;;1923:44;;;;;;;;;1945:21;1923;:44;;;;;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;1923:44:1;1760:665;;;2004:14;;2000:414;;2059:15;;2039:10;:36;;-1:-1:-1;;;;;;2039:36:1;-1:-1:-1;;;;;;2059:15:1;;;2039:36;;;;;;;;;;2162:9;;2124:10;;;:20;2145:12;:10;:12::i;:::-;2124:34;;;;;;;;;;;;;;;;;;;;;;;;;;;;5:9:-1;2:2;;;27:1;24;17:12;2:2;2124:34:1;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;2124:34:1;;;;;;;101:4:-1;97:9;90:4;84;80:15;76:31;69:5;65:43;126:6;120:4;113:20;0:138;2124:34:1;;;;;;;;;:47;;2094:142;;;;-1:-1:-1;;;2094:142:1;;;;;;;;;2255:10;;;;;-1:-1:-1;;;;;2255:10:1;:23;2301:12;:10;:12::i;:::-;2336:11;;2255:143;;-1:-1:-1;2255:143:1;;;-1:-1:-1;;;;;;2255:143:1;;;;;;-1:-1:-1;;;;;2336:11:1;;2370:9;;2255:143;;;;;;;;;;;;;;;;;5:9:-1;2:2;;;27:1;24;17:12;2:2;2255:143:1;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;2255:143:1;;;;;;;101:4:-1;97:9;90:4;84;80:15;76:31;69:5;65:43;126:6;120:4;113:20;0:138;2255:143:1;;;;;;;;;;2000:414;2455:11;;2477:28;2483:12;:10;:12::i;:::-;2497:7;2477:5;:28::i;:::-;2541:12;:10;:12::i;:::-;2516:22;;;;:13;:22;;;;;;:37;;-1:-1:-1;;;;;;2516:37:1;-1:-1:-1;;;;;2516:37:1;;;;;;;;;-1:-1:-1;;2564:11:1;:13;;-1:-1:-1;2564:13:1;;;-1:-1:-1;1384:1201:1:o;3640:244::-;3778:7;;:40;;-1:-1:-1;;;3778:40:1;;-1:-1:-1;;;;;3778:7:1;;;;-1:-1:-1;;3778:40:1;;3813:4;;3778:40;;;;;;;;;;;;;;;;;5:9:-1;2:2;;;27:1;24;17:12;2:2;3778:40:1;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;3778:40:1;;;;3829:47;3852:4;3858:2;3862:7;3871:4;3829:22;:47::i;:::-;3640:244;;;;:::o;432:30::-;;;-1:-1:-1;;;;;432:30:1;;:::o;4015:187::-;4110:6;;4080:13;;4110:6;;4106:47;;4138:15;4131:22;;;;;;;;;;;;;-1:-1:-1;;4131:22:1;;;;;;;;;;;;;;;;;;;;;;;;;;;4138:15;4131:22;;4138:15;4131:22;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4106:47;4171:23;4186:7;4171:14;:23::i;563:56::-;;;;;;;;;;;;-1:-1:-1;;;;;563:56:1;;:::o;49029:156:7:-;-1:-1:-1;;;;;49142:25:7;;;49118:4;49142:25;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;;;;49029:156::o;68190:244::-;67467:12;:10;:12::i;:::-;-1:-1:-1;;;;;67456:23:7;:7;:5;:7::i;:::-;-1:-1:-1;;;;;67456:23:7;;67448:68;;;;-1:-1:-1;;;67448:68:7;;;;;;;;;-1:-1:-1;;;;;68279:22:7;::::1;68271:73;;;::::0;-1:-1:-1;;;68271:73:7;;::::1;::::0;::::1;;;;;68381:6;::::0;68360:38:::1;::::0;-1:-1:-1;;;;;68360:38:7;;::::1;::::0;68381:6:::1;::::0;::::1;;::::0;68360:38:::1;::::0;;;::::1;68409:6;:17:::0;;-1:-1:-1;;;;;68409:17:7;;;::::1;;;-1:-1:-1::0;;;;;;68409:17:7;;::::1;::::0;;;::::1;::::0;;68190:244::o;319:30:1:-;;;-1:-1:-1;;;;;319:30:1;;:::o;51602:119:7:-;51659:4;51683:30;:12;51705:7;51683:30;:21;:30;:::i;47922:390::-;48003:13;48019:16;48027:7;48019;:16::i;:::-;48003:32;-1:-1:-1;;;;;;48054:11:7;;;;;;;;48046:57;;;;-1:-1:-1;;;48046:57:7;;;;;;;;;-1:-1:-1;;;;;48124:21:7;;:12;:10;:12::i;:::-;-1:-1:-1;;;;;48124:21:7;;;:62;;;48149:37;48166:5;48173:12;:10;:12::i;48149:37::-;48116:154;;;;-1:-1:-1;;;48116:154:7;;;;;;;;;48283:21;48292:2;48296:7;48283:8;:21::i;39263:123::-;39332:7;39359:19;39367:3;39359:7;:19::i;49252:305::-;49413:41;49432:12;:10;:12::i;:::-;49446:7;49413:18;:41::i;:::-;49405:103;;;;-1:-1:-1;;;49405:103:7;;;;;;;;;49521:28;49531:4;49537:2;49541:7;49521:9;:28::i;7962:137::-;8033:7;8068:22;8072:3;8084:5;8068:3;:22::i;49628:151::-;49732:39;49749:4;49755:2;49759:7;49732:39;;;;;;;;;;;;:16;:39::i;39734:227::-;39814:7;;;;39874:22;39878:3;39890:5;39874:3;:22::i;:::-;39843:53;;;;-1:-1:-1;39734:227:7;-1:-1:-1;;;;;39734:227:7:o;8759:106::-;8847:10;8759:106;:::o;56152:100::-;56225:19;;;;:8;;:19;;;;;:::i;40396:204::-;40503:7;40546:44;40551:3;40571;40577:12;40546:4;:44::i;:::-;40538:53;40396:204;-1:-1:-1;;;;40396:204:7:o;48663:295::-;48778:12;:10;:12::i;:::-;-1:-1:-1;;;;;48766:24:7;;;;;;;48758:62;;;;-1:-1:-1;;;48758:62:7;;;;;;;;;48878:8;48833:18;:32;48852:12;:10;:12::i;:::-;-1:-1:-1;;;;;48833:32:7;;;;;;;;;;;;;;;;;-1:-1:-1;48833:32:7;;;:42;;;;;;;;;;;;:53;;-1:-1:-1;;48833:53:7;;;;;;;;;;;48917:12;:10;:12::i;:::-;-1:-1:-1;;;;;48902:48:7;;48941:8;48902:48;;;;;;;;;;;;;;;48663:295;;:::o;53487:404::-;-1:-1:-1;;;;;53567:16:7;;53559:61;;;;-1:-1:-1;;;53559:61:7;;;;;;;;;53640:16;53648:7;53640;:16::i;:::-;53639:17;53631:58;;;;-1:-1:-1;;;53631:58:7;;;;;;;;;53702:45;53731:1;53735:2;53739:7;53702:20;:45::i;:::-;-1:-1:-1;;;;;53760:17:7;;;;;;-1:-1:-1;53760:17:7;;;;;:30;;53782:7;53760:21;:30::i;:::-;-1:-1:-1;53803:29:7;:12;53820:7;53829:2;53803:29;:16;:29;:::i;:::-;-1:-1:-1;53850:33:7;;53875:7;;-1:-1:-1;;;;;53850:33:7;;;53867:1;;53850:33;;53867:1;;53850:33;53487:404;;:::o;49850:285::-;49982:41;50001:12;:10;:12::i;:::-;50015:7;49982:18;:41::i;:::-;49974:103;;;;-1:-1:-1;;;49974:103:7;;;;;;;;;50088:39;50102:4;50108:2;50112:7;50121:5;50088:13;:39::i;46001:772::-;46074:13;46108:16;46116:7;46108;:16::i;:::-;46100:76;;;;-1:-1:-1;;;46100:76:7;;;;;;;;;46215:19;;;;:10;:19;;;;;;;;;46189:45;;;;;;;;;;;-1:-1:-1;;46189:45:7;;;;;;;;;;;;;;;;;;;;;;;;;;:23;;:45;;;;46215:19;46189:45;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;46316:8:7;46310:22;46189:45;;-1:-1:-1;;;;46310:22:7;-1:-1:-1;;46310:22:7;;;;;;;;;;;46306:76;;46361:9;-1:-1:-1;46354:16:7;;46306:76;46486:23;;:27;46482:112;;46561:8;46571:9;46544:37;;;;;;;;;;;;;49:4:-1;39:7;30;26:21;22:32;13:7;6:49;46544:37:7;;;46530:52;;;;;46482:112;46726:8;46736:18;:7;:16;:18::i;:::-;46709:55;;;;;;;;;;;;;49:4:-1;39:7;30;26:21;22:32;13:7;6:49;46709:55:7;;;46695:70;;;46001:772;;;:::o;39024:151::-;39108:4;39132:35;39142:3;39162;39132:9;:35::i;57449:158::-;57515:24;;;;:15;:24;;;;;:29;;-1:-1:-1;;;;;;57515:29:7;-1:-1:-1;;;;;57515:29:7;;;;;;;;:24;;57569:16;57515:24;57569:7;:16::i;:::-;57560:39;;-1:-1:-1;;;;;57560:39:7;;;;;;;;;;57449:158;;:::o;36618:110::-;36701:19;;36618:110::o;51888:333::-;51973:4;51998:16;52006:7;51998;:16::i;:::-;51990:73;;;;-1:-1:-1;;;51990:73:7;;;;;;;;;52074:13;52090:16;52098:7;52090;:16::i;:::-;52074:32;-1:-1:-1;;;;;;52125:16:7;;;;;;;;:51;;-1:-1:-1;;;;;;52145:31:7;;:20;52157:7;52145:11;:20::i;:::-;-1:-1:-1;;;;;52145:31:7;;52125:51;:87;;;;52180:32;52197:5;52204:7;52180:16;:32::i;54977:574::-;-1:-1:-1;;;;;55075:24:7;;:16;55083:7;55075;:16::i;:::-;-1:-1:-1;;;;;55075:24:7;;55067:78;;;;-1:-1:-1;;;55067:78:7;;;;;;;;;-1:-1:-1;;;;;55164:16:7;;55156:65;;;;-1:-1:-1;;;55156:65:7;;;;;;;;;55234:39;55255:4;55261:2;55265:7;55234:20;:39::i;:::-;55338:29;55355:1;55359:7;55338:8;:29::i;:::-;-1:-1:-1;;;;;55380:19:7;;;;;;-1:-1:-1;55380:19:7;;;;;:35;;55407:7;55380:26;:35::i;:::-;-1:-1:-1;;;;;;55426:17:7;;;;;;-1:-1:-1;55426:17:7;;;;;:30;;55448:7;55426:21;:30::i;:::-;-1:-1:-1;55469:29:7;:12;55486:7;55495:2;55469:29;:16;:29;:::i;:::-;-1:-1:-1;55516:27:7;;55535:7;;-1:-1:-1;;;;;55516:27:7;;;;;;;;;;;;;54977:574;;;:::o;4606:204::-;4701:18;;4673:7;;4701:26;-1:-1:-1;4693:73:7;;;;-1:-1:-1;;;4693:73:7;;;;;;;;;4784:3;:11;;4796:5;4784:18;;;;;;;;;;;;;;;;4777:25;;4606:204;;;;:::o;37093:279::-;37197:19;;37160:7;;;;37197:27;-1:-1:-1;37189:74:7;;;;-1:-1:-1;;;37189:74:7;;;;;;;;;37276:22;37301:3;:12;;37314:5;37301:19;;;;;;;;;;;;;;;;;;37276:44;;37339:5;:10;;;37351:5;:12;;;37331:33;;;;;37093:279;;;;;:::o;37795:337::-;37889:7;37928:17;;;:12;;;:17;;;;;;37979:12;37964:13;37956:36;;;;-1:-1:-1;;;37956:36:7;;;;;;;;;;;38055:3;:12;;38079:1;38068:8;:12;38055:26;;;;;;;;;;;;;;;;;;:33;;;38048:40;;;37795:337;;;;;:::o;61155:241::-;61265:45;61292:4;61298:2;61302:7;61265:26;:45::i;:::-;61332:8;:6;:8::i;:::-;61331:9;61323:65;;;;-1:-1:-1;;;61323:65:7;;;;;;;;6732:131;6799:4;6823:32;6828:3;6848:5;6823:4;:32::i;38456:176::-;38545:4;38569:55;38574:3;38594;-1:-1:-1;;;;;38608:14:7;;38569:4;:55::i;51017:272::-;51131:28;51141:4;51147:2;51151:7;51131:9;:28::i;:::-;51178:48;51201:4;51207:2;51211:7;51220:5;51178:22;:48::i;:::-;51170:111;;;;-1:-1:-1;;;51170:111:7;;;;;;;;40843:744;40899:13;41120:10;41116:53;;-1:-1:-1;41147:10:7;;;;;;;;;;;;-1:-1:-1;;;41147:10:7;;;;;;41116:53;41194:5;41179:12;41235:78;41242:9;;41235:78;;41268:8;;41299:2;41291:10;;;;41235:78;;;41323:19;41355:6;41345:17;;;5:9:-1;2:2;;;27:1;24;17:12;2:2;41345:17:7;;;;;;;;;;;;;;;;;;;;;;;;;;21:6:-1;;108:14;41345:17:7;87:42:-1;143:17;;-1:-1;41345:17:7;-1:-1:-1;41417:5:7;;-1:-1:-1;41323:39:7;-1:-1:-1;;;41389:10:7;;41433:115;41440:9;;41433:115;;41507:2;41500:4;:9;41495:2;:14;41484:27;;41466:6;41473:7;;;;;;;41466:15;;;;;;;;-1:-1:-1;;;;;;41466:45:7;;;;;;;;;:15;;;:45;-1:-1:-1;41534:2:7;41526:10;;;;41433:115;;;-1:-1:-1;41572:6:7;40843:744;-1:-1:-1;;;;40843:744:7:o;36398:125::-;36469:4;36493:17;;;:12;;;;;:17;;;;;;:22;;;36398:125::o;7039:137::-;7109:4;7133:35;7141:3;7161:5;7133:7;:35::i;1696:414::-;1759:4;1781:21;1791:3;1796:5;1781:9;:21::i;:::-;1776:327;;-1:-1:-1;27:10;;39:1;23:18;;;45:23;;1819:11:7;:23;;;;;;;;;;;;;2002:18;;1980:19;;;:12;;;:19;;;;;;:40;;;;2035:11;;1776:327;-1:-1:-1;2086:5:7;2079:12;;33887:691;33963:4;34098:17;;;:12;;;:17;;;;;;34132:13;34128:443;;-1:-1:-1;;34216:38:7;;;;;;;;;;;;;;;;;;27:10:-1;;39:1;23:18;;;45:23;;34198:12:7;:57;;;;;;;;;;;;;;;;;;;;;;;;34413:19;;34393:17;;;:12;;;:17;;;;;;;:39;34447:11;;34128:443;34527:5;34491:3;:12;;34515:1;34504:8;:12;34491:26;;;;;;;;;;;;;;;;;;:33;;:41;;;;34554:5;34547:12;;;;;56817:624;56934:4;56961:15;-1:-1:-1;;;;;56961:13:7;;;:15::i;:::-;56956:60;;-1:-1:-1;57000:4:7;56993:11;;56956:60;57026:23;57052:276;-1:-1:-1;;;57173:12:7;:10;:12::i;:::-;57204:4;57227:7;57253:5;57068:205;;;;;;;;;;;;;;;;-1:-1:-1;;26:21;;;22:32;6:49;;57068:205:7;;;49:4:-1;25:18;;;61:17;;-1:-1;;;;;182:15;-1:-1;;;;;;57068:205:7;;;179:29:-1;;;;160:49;;;57052:276:7;;;;;;;;;;;;57068:205;;57052:276;;;;;;;;-1:-1:-1;;;;;57052:15:7;;;;;:276::i;:::-;57026:302;;57339:13;57366:10;57355:32;;;;;;;;;;;;;;-1:-1:-1;;;;;;57406:26:7;-1:-1:-1;;;57406:26:7;;;-1:-1:-1;;;;;;;56817:624:7:o;2286:1556::-;2352:4;2491:19;;;:12;;;:19;;;;;;2527:15;;2523:1312;;2961:18;;-1:-1:-1;;2912:14:7;;;;2961:22;;;;-1:-1:-1;;2961:18:7;;:22;;3248;;;;;;;;;;;;;;3228:42;;3394:9;3365:3;:11;;3377:13;3365:26;;;;;;;;;;;;;;;;;;;:38;;;;3471:23;;;3513:1;3471:12;;;:23;;;;;;3497:17;;;3471:43;;3636:17;;3471:3;;3636:17;;;;;;;;;;;;;;;;;;;;;;3731:3;:12;;:19;3744:5;3731:19;;;;;;;;;;;3724:26;;;3774:4;3767:11;;;;;;;;2523:1312;3818:5;3811:12;;;;;712:420:0;1078:20;1116:8;;;712:420::o;3628:196::-;3731:12;3763:53;3786:6;3794:4;3800:1;3803:12;5135;5168:18;5179:6;5168:10;:18::i;:::-;5160:60;;;;-1:-1:-1;;;5160:60:0;;;;;;;;;5294:12;5308:23;5335:6;-1:-1:-1;;;;;5335:11:0;5355:8;5365:4;5335:35;;;;;;;;;;;;;;;;;;;;;;;;12:1:-1;19;14:27;;;;67:4;61:11;56:16;;134:4;130:9;123:4;105:16;101:27;97:43;94:1;90:51;84:4;77:65;157:16;154:1;147:27;211:16;208:1;201:4;198:1;194:12;179:49;5:228;;14:27;32:4;27:9;;5:228;;5293:77:0;;;;5385:7;5381:595;;;5416:10;-1:-1:-1;5409:17:0;;-1:-1:-1;5409:17:0;5381:595;5530:17;;:21;5526:439;;5793:10;5787:17;5854:15;5841:10;5837:2;5833:19;5826:44;5741:148;5929:20;;-1:-1:-1;;;5929:20:0;;;;5936:12;;5929:20;;;;146:4316:1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;146:4316:1;;;-1:-1:-1;146:4316:1;:::i;:::-;;;:::o;:::-;;;;;;;;;;;;;;;;;;5:130:-1;72:20;;-1:-1;;;;;38520:54;;40242:35;;40232:2;;40291:1;;40281:12;1553:440;;1654:3;1647:4;1639:6;1635:17;1631:27;1621:2;;-1:-1;;1662:12;1621:2;1709:6;1696:20;35742:18;35734:6;35731:30;35728:2;;;-1:-1;;35764:12;35728:2;1731:64;35905:4;-1:-1;;35837:9;35818:17;;35814:33;35895:15;1731:64;;;1722:73;;1815:6;1808:5;1801:21;1919:3;35905:4;1910:6;1843;1901:16;;1898:25;1895:2;;;1936:1;;1926:12;1895:2;39729:6;35905:4;1843:6;1839:17;35905:4;1877:5;1873:16;39706:30;39785:1;39767:16;;;35905:4;39767:16;39760:27;1877:5;1614:379;-1:-1;;1614:379;2730:241;;2834:2;2822:9;2813:7;2809:23;2805:32;2802:2;;;-1:-1;;2840:12;2802:2;2902:53;2947:7;2923:22;2902:53;;2978:366;;;3099:2;3087:9;3078:7;3074:23;3070:32;3067:2;;;-1:-1;;3105:12;3067:2;3167:53;3212:7;3188:22;3167:53;;;3157:63;;3275:53;3320:7;3257:2;3300:9;3296:22;3275:53;;;3265:63;;3061:283;;;;;;3351:491;;;;3489:2;3477:9;3468:7;3464:23;3460:32;3457:2;;;-1:-1;;3495:12;3457:2;85:6;72:20;97:33;124:5;97:33;;;3547:63;-1:-1;3647:2;3686:22;;72:20;97:33;72:20;97:33;;;3451:391;;3655:63;;-1:-1;;;3755:2;3794:22;;;;2519:20;;3451:391;3849:721;;;;;4013:3;4001:9;3992:7;3988:23;3984:33;3981:2;;;-1:-1;;4020:12;3981:2;4082:53;4127:7;4103:22;4082:53;;;4072:63;;4190:53;4235:7;4172:2;4215:9;4211:22;4190:53;;;4180:63;;4280:2;4323:9;4319:22;2519:20;4288:63;;4416:2;4405:9;4401:18;4388:32;4440:18;4432:6;4429:30;4426:2;;;-1:-1;;4462:12;4426:2;4492:62;4546:7;4537:6;4526:9;4522:22;4492:62;;;4482:72;;;3975:595;;;;;;;;4577:360;;;4695:2;4683:9;4674:7;4670:23;4666:32;4663:2;;;-1:-1;;4701:12;4663:2;4763:53;4808:7;4784:22;4763:53;;;4753:63;;4853:2;4893:9;4889:22;939:20;964:30;988:5;964:30;;;4861:60;;;;4657:280;;;;;;4944:366;;;5065:2;5053:9;5044:7;5040:23;5036:32;5033:2;;;-1:-1;;5071:12;5033:2;5133:53;5178:7;5154:22;5133:53;;;5123:63;5223:2;5262:22;;;;2519:20;;-1:-1;;;5027:283;5317:377;;5446:2;;5434:9;5425:7;5421:23;5417:32;5414:2;;;-1:-1;;5452:12;5414:2;5510:17;5497:31;5548:18;5540:6;5537:30;5534:2;;;-1:-1;;5570:12;5534:2;5661:6;5650:9;5646:22;277:3;270:4;262:6;258:17;254:27;244:2;;-1:-1;;285:12;244:2;332:6;319:20;305:34;;354:80;369:64;426:6;369:64;;;354:80;;;462:21;;;519:14;;;;494:17;;;608;;;599:27;;;;596:36;-1:-1;593:2;;;-1:-1;;635:12;593:2;-1:-1;661:10;;655:206;680:6;677:1;674:13;655:206;;;1208:20;;748:50;;702:1;695:9;;;;;812:14;;;;840;;655:206;;;-1:-1;5590:88;5408:286;-1:-1;;;;;;;5408:286;5701:257;;5813:2;5801:9;5792:7;5788:23;5784:32;5781:2;;;-1:-1;;5819:12;5781:2;1087:6;1081:13;1099:30;1123:5;1099:30;;5965:239;;6068:2;6056:9;6047:7;6043:23;6039:32;6036:2;;;-1:-1;;6074:12;6036:2;1357:6;1344:20;1369:32;1395:5;1369:32;;6211:261;;6325:2;6313:9;6304:7;6300:23;6296:32;6293:2;;;-1:-1;;6331:12;6293:2;1496:6;1490:13;1508:32;1534:5;1508:32;;6479:347;;6593:2;6581:9;6572:7;6568:23;6564:32;6561:2;;;-1:-1;;6599:12;6561:2;6657:17;6644:31;6695:18;6687:6;6684:30;6681:2;;;-1:-1;;6717:12;6681:2;6747:63;6802:7;6793:6;6782:9;6778:22;6747:63;;6833:241;;6937:2;6925:9;6916:7;6912:23;6908:32;6905:2;;;-1:-1;;6943:12;6905:2;-1:-1;2519:20;;6899:175;-1:-1;6899:175;7081:263;;7196:2;7184:9;7175:7;7171:23;7167:32;7164:2;;;-1:-1;;7202:12;7164:2;-1:-1;2667:13;;7158:186;-1:-1;7158:186;8896:343;;9038:5;36682:12;37226:6;37221:3;37214:19;9131:52;9176:6;37263:4;37258:3;37254:14;37263:4;9157:5;9153:16;9131:52;;;35837:9;40146:14;-1:-1;;40142:28;9195:39;;;;37263:4;9195:39;;8986:253;-1:-1;;8986:253;10699:884;;10836:5;10830:12;10870:1;;10859:9;10855:17;10883:1;10878:268;;;;11157:1;11152:425;;;;10848:729;;10878:268;-1:-1;;11083:25;;11071:38;;10956:4;10952:1;10937:17;;10933:28;11123:16;;;-1:-1;10878:268;;11152:425;11221:1;11210:9;11206:17;36519:3;-1:-1;36509:14;36551:4;;-1:-1;36538:18;-1:-1;11410:130;11424:6;11421:1;11418:13;11410:130;;;11483:14;;11470:11;;;11463:35;11517:15;;;;11439:12;;11410:130;;;-1:-1;;;11554:16;;;-1:-1;10848:729;;;;10806:777;;;;;20510:262;;9406:5;36682:12;9517:52;9562:6;9557:3;9550:4;9543:5;9539:16;9517:52;;;9581:16;;;;;20635:137;-1:-1;;20635:137;20779:421;;20970:92;21058:3;21049:6;20970:92;;;9406:5;36682:12;9517:52;9562:6;9557:3;9550:4;9543:5;9539:16;9517:52;;;9581:16;;20951:249;-1:-1;;;;20951:249;21207:688;;21499:92;21587:3;21578:6;21499:92;;;9406:5;36682:12;9517:52;9562:6;9557:3;9550:4;9543:5;9539:16;9517:52;;;-1:-1;;;9581:16;;18085:28;;;18070:1;18132:11;;;-1:-1;;;;21480:415;21902:213;-1:-1;;;;;38520:54;;;;7769:45;;22020:2;22005:18;;21991:124;22610:467;-1:-1;;;;;38520:54;;;7612:58;;38520:54;;;;22980:2;22965:18;;7612:58;23063:2;23048:18;;8847:37;;;;22800:2;22785:18;;22771:306;23084:663;-1:-1;;;;;38520:54;;;7769:45;;38520:54;;23501:2;23486:18;;7769:45;23584:2;23569:18;;8847:37;;;23320:3;23621:2;23606:18;;23599:48;;;-1:-1;;23661:76;;23305:19;;23723:6;23661:76;;;23653:84;23291:456;-1:-1;;;;;;23291:456;23754:488;-1:-1;;;;;38520:54;;7612:58;;23958:2;24084;24069:18;;;24062:48;;;36682:12;;23943:18;;;37214:19;;;-1:-1;;36371:14;;;;24084:2;37254:14;;;;-1:-1;8385:260;8410:6;8407:1;8404:13;8385:260;;;8471:13;;8847:37;;37069:14;;;;7505;;;;8432:1;8425:9;8385:260;;;-1:-1;24116:116;;23929:313;-1:-1;;;;;;;23929:313;24249:201;38202:13;;38195:21;8740:34;;24361:2;24346:18;;24332:118;24975:301;;25113:2;25134:17;25127:47;25188:78;25113:2;25102:9;25098:18;25252:6;25188:78;;25283:407;25474:2;25488:47;;;11816:2;25459:18;;;37214:19;11852:34;37254:14;;;11832:55;-1:-1;;;11907:12;;;11900:26;11945:12;;;25445:245;25697:407;25888:2;25902:47;;;12196:2;25873:18;;;37214:19;12232:34;37254:14;;;12212:55;-1:-1;;;12287:12;;;12280:35;12334:12;;;25859:245;26111:407;26302:2;26316:47;;;12585:2;26287:18;;;37214:19;12621:34;37254:14;;;12601:55;-1:-1;;;12676:12;;;12669:42;12730:12;;;26273:245;26525:407;26716:2;26730:47;;;12981:2;26701:18;;;37214:19;13017:34;37254:14;;;12997:55;-1:-1;;;13072:12;;;13065:30;13114:12;;;26687:245;26939:407;27130:2;27144:47;;;13365:2;27115:18;;;37214:19;-1:-1;;;37254:14;;;13381:44;13444:12;;;27101:245;27353:407;27544:2;27558:47;;;13695:2;27529:18;;;37214:19;13731:30;37254:14;;;13711:51;13781:12;;;27515:245;27767:407;27958:2;27972:47;;;14032:2;27943:18;;;37214:19;14068:34;37254:14;;;14048:55;-1:-1;;;14123:12;;;14116:28;14163:12;;;27929:245;28181:407;28372:2;28386:47;;;14414:2;28357:18;;;37214:19;14450:27;37254:14;;;14430:48;14497:12;;;28343:245;28595:407;28786:2;28800:47;;;14748:2;28771:18;;;37214:19;14784:33;37254:14;;;14764:54;14837:12;;;28757:245;29009:407;29200:2;29214:47;;;15088:2;29185:18;;;37214:19;15124:34;37254:14;;;15104:55;-1:-1;;;15179:12;;;15172:36;15227:12;;;29171:245;29423:407;29614:2;29628:47;;;15478:2;29599:18;;;37214:19;-1:-1;;;37254:14;;;15494:43;-1:-1;15556:12;;29585:245;29837:407;30028:2;30042:47;;;15807:2;30013:18;;;37214:19;15843:34;37254:14;;;15823:55;15912:26;15898:12;;;15891:48;15958:12;;;29999:245;30251:407;30442:2;30456:47;;;16209:2;30427:18;;;37214:19;16245:34;37254:14;;;16225:55;-1:-1;;;16300:12;;;16293:34;16346:12;;;30413:245;30665:407;30856:2;30870:47;;;16597:2;30841:18;;;37214:19;-1:-1;;;37254:14;;;16613:40;16672:12;;;30827:245;31079:407;31270:2;31284:47;;;16923:2;31255:18;;;37214:19;16959:34;37254:14;;;16939:55;-1:-1;;;17014:12;;;17007:26;17052:12;;;31241:245;31493:407;31684:2;31698:47;;;31669:18;;;37214:19;17339:34;37254:14;;;17319:55;17393:12;;;31655:245;31907:407;32098:2;32112:47;;;17644:2;32083:18;;;37214:19;17680:34;37254:14;;;17660:55;-1:-1;;;17735:12;;;17728:36;17783:12;;;32069:245;32321:407;32512:2;32526:47;;;32497:18;;;37214:19;18418:34;37254:14;;;18398:55;18472:12;;;32483:245;32735:407;32926:2;32940:47;;;18723:2;32911:18;;;37214:19;18759:34;37254:14;;;18739:55;-1:-1;;;18814:12;;;18807:33;18859:12;;;32897:245;33149:407;33340:2;33354:47;;;19110:2;33325:18;;;37214:19;19146:34;37254:14;;;19126:55;-1:-1;;;19201:12;;;19194:39;19252:12;;;33311:245;33563:407;33754:2;33768:47;;;19503:2;33739:18;;;37214:19;19539:34;37254:14;;;19519:55;-1:-1;;;19594:12;;;19587:25;19631:12;;;33725:245;33977:407;34168:2;34182:47;;;19882:2;34153:18;;;37214:19;19918:34;37254:14;;;19898:55;-1:-1;;;19973:12;;;19966:41;20026:12;;;34139:245;34391:407;34582:2;34596:47;;;20277:2;34567:18;;;37214:19;20313:31;37254:14;;;20293:52;20364:12;;;34553:245;34805:213;8847:37;;;34923:2;34908:18;;34894:124;35025:256;35087:2;35081:9;35113:17;;;35188:18;35173:34;;35209:22;;;35170:62;35167:2;;;35245:1;;35235:12;35167:2;35087;35254:22;35065:216;;-1:-1;35065:216;35288:304;;35447:18;35439:6;35436:30;35433:2;;;-1:-1;;35469:12;35433:2;-1:-1;35514:4;35502:17;;;35567:15;;35370:222;39802:268;39867:1;39874:101;39888:6;39885:1;39882:13;39874:101;;;39955:11;;;39949:18;39936:11;;;39929:39;39910:2;39903:10;39874:101;;;39990:6;39987:1;39984:13;39981:2;;;-1:-1;;39867:1;40037:16;;40030:27;39851:219;40183:117;-1:-1;;;;;38520:54;;40242:35;;40232:2;;40291:1;;40281:12;40232:2;40226:74;;40307:111;40388:5;38202:13;38195:21;40366:5;40363:32;40353:2;;40409:1;;40399:12;40549:115;-1:-1;;;;;;38368:78;;40607:34;;40597:2;;40655:1;;40645:12

Swarm Source

ipfs://db7289ab0e4df8eba44905aca3939a6aa59220a4adf8ff4d822221864e769d28
Loading...
Loading
Loading...
Loading
[ Download: CSV Export  ]
[ Download: CSV Export  ]

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