ETH Price: $3,166.27 (+2.76%)

Token

Loot Map (LMAP)
 

Overview

Max Total Supply

615 LMAP

Holders

216

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Filtered by Token Holder
barbarianeagle.eth
Balance
1 LMAP
0xbaa32387bd55553ec806622d524b12bbb8242a19
Loading...
Loading
Loading...
Loading
Loading...
Loading

OVERVIEW

Loot Maps combine the worlds of [Maps Project](https://opensea.io/collection/mapsproject) and [Loot](https://opensea.io/collection/lootproject) to create randomised locations mapped to the Loot items that were discovered there. These NFT's can serve as the building blocks to deep stories and lore.

# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
LootMap

Compiler Version
v0.8.4+commit.c7e474f2

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion
File 1 of 15 : LootMap.sol
//SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;

import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@openzeppelin/contracts/access/Ownable.sol";

import "base64-sol/base64.sol";
import "@openzeppelin/contracts/utils/Strings.sol";

interface MapInterface {
    function ownerOf(uint256 tokenId) external view returns (address owner);

    function getWaypointCount(uint256 tokenId) external view returns (uint256);

    function getWaypointCoord(uint256 tokenId, uint256 waypointIndex)
        external
        view
        returns (uint256[2] memory);

    function getWaypointName(uint256 tokenId, uint256 waypointIndex)
        external
        view
        returns (string memory);
}

interface LootInterface {
    function ownerOf(uint256 tokenId) external view returns (address owner);

    function getChest(uint256 tokenId) external view returns (string memory);

    function getFoot(uint256 tokenId) external view returns (string memory);

    function getHand(uint256 tokenId) external view returns (string memory);

    function getHead(uint256 tokenId) external view returns (string memory);

    function getNeck(uint256 tokenId) external view returns (string memory);

    function getRing(uint256 tokenId) external view returns (string memory);

    function getWaist(uint256 tokenId) external view returns (string memory);

    function getWeapon(uint256 tokenId) external view returns (string memory);
}

contract LootMap is ERC721Enumerable, ReentrancyGuard, Ownable {
    MapInterface immutable mapContract;
    LootInterface immutable lootContract;
    uint256[2] private mapTokenIdsAllocation = [1, 10_000];
    uint256[2] private lootTokenIdsAllocation = [10_001, 18_000];

    constructor(MapInterface mapAddress, LootInterface lootAddress)
        ERC721("Loot Map", "LMAP")
    {
        mapContract = mapAddress;
        lootContract = lootAddress;
    }

    /// @notice Pseudo random number generator based on input
    /// @dev Not really random
    /// @param input The seed value
    function _random(string memory input) internal pure returns (uint256) {
        return uint256(keccak256(abi.encodePacked(input)));
    }

    /// @notice Gets a random value from a min and max range
    /// @dev a 2 value array the left is min and right is max
    /// @param tokenId a parameter just like in doxygen (must be followed by parameter name)
    /// @param rangeTuple a tuple with left value as min number and right as max
    function randomFromRange(uint256 tokenId, uint256[2] memory rangeTuple)
        internal
        pure
        returns (uint256)
    {
        uint256 rand = _random(
            string(abi.encodePacked(Strings.toString(tokenId)))
        );

        return (rand % (rangeTuple[1] - rangeTuple[0])) + rangeTuple[0];
    }

    function getRandomLootItem(uint256 lootTokenId, uint256 index)
        internal
        view
        returns (string memory)
    {
        try lootContract.ownerOf(lootTokenId) {
            if (index == 0) {
                return lootContract.getChest(lootTokenId);
            } else if (index == 1) {
                return lootContract.getFoot(lootTokenId);
            } else if (index == 2) {
                return lootContract.getHand(lootTokenId);
            } else if (index == 3) {
                return lootContract.getHead(lootTokenId);
            } else if (index == 4) {
                return lootContract.getNeck(lootTokenId);
            } else if (index == 5) {
                return lootContract.getRing(lootTokenId);
            } else if (index == 6) {
                return lootContract.getWaist(lootTokenId);
            }
            return lootContract.getWeapon(lootTokenId);
        } catch {
            return "??????????";
        }
    }

    function getMapTokenId(uint256 tokenId)
        public
        view
        returns (uint256 mapTokenId)
    {
        require(_exists(tokenId), "Token ID is invalid");

        if (
            tokenId >= mapTokenIdsAllocation[0] &&
            tokenId <= mapTokenIdsAllocation[1]
        ) {
            return tokenId;
        }
        uint256 chosenMapTokenId = randomFromRange(
            tokenId,
            mapTokenIdsAllocation
        );
        return chosenMapTokenId;
    }

    function getLootTokenId(uint256 tokenId)
        public
        view
        returns (uint256 lootTokenId)
    {
        require(_exists(tokenId), "Token ID is invalid");

        if (
            tokenId >= lootTokenIdsAllocation[0] &&
            tokenId <= lootTokenIdsAllocation[1]
        ) {
            return tokenId - 10_000;
        }
        uint256 chosenLootTokenId = randomFromRange(
            tokenId,
            [uint256(1), uint256(8_000)]
        );
        return chosenLootTokenId;
    }

    function getWaypointCoord(uint256 tokenId)
        public
        view
        returns (uint256[2] memory coords)
    {
        require(_exists(tokenId), "Token ID is invalid");
        uint256 chosenMapTokenId = getMapTokenId(tokenId);

        uint256[2] memory chosenWaypointCoord;
        try mapContract.getWaypointCount(chosenMapTokenId) returns (
            uint256 resultWaypointsCount
        ) {
            uint256 chosenWaypointIndex = randomFromRange(
                chosenMapTokenId,
                [1, resultWaypointsCount - 1]
            );
            chosenWaypointCoord = mapContract.getWaypointCoord(
                chosenMapTokenId,
                chosenWaypointIndex
            );
        } catch {
            chosenWaypointCoord = [uint256(129), uint256(129)];
        }

        return chosenWaypointCoord;
    }

    function getWaypointName(uint256 tokenId)
        public
        view
        returns (string memory)
    {
        require(_exists(tokenId), "Token ID is invalid");
        uint256 chosenMapTokenId = getMapTokenId(tokenId);

        string memory chosenWaypointName;
        try mapContract.getWaypointCount(chosenMapTokenId) returns (
            uint256 resultWaypointsCount
        ) {
            uint256 chosenWaypointIndex = randomFromRange(
                chosenMapTokenId,
                [1, resultWaypointsCount - 1]
            );
            chosenWaypointName = mapContract.getWaypointName(
                chosenMapTokenId,
                chosenWaypointIndex
            );
        } catch {
            chosenWaypointName = "??????????";
        }

        return chosenWaypointName;
    }

    function getLootItem(uint256 tokenId) public view returns (string memory) {
        require(_exists(tokenId), "Token ID is invalid");
        uint256 chosenLootTokenId = getLootTokenId(tokenId);

        uint256 chosenLootItemIndex = randomFromRange(
            chosenLootTokenId,
            [uint256(0), uint256(7)]
        );

        return getRandomLootItem(chosenLootTokenId, chosenLootItemIndex);
    }

    function claimLootMapsAsMapHolder(uint256[] memory mapTokenIds)
        public
        nonReentrant
    {
        for (uint256 index = 0; index < mapTokenIds.length; index++) {
            uint256 mapTokenId = mapTokenIds[index];
            require(
                mapContract.ownerOf(mapTokenId) == _msgSender(),
                "Sender does not own 1 or more Map Token Ids provided"
            );

            _safeMint(_msgSender(), mapTokenId);
        }
    }

    function claimLootMapsAsLootHolder(uint256[] memory lootTokenIds)
        public
        nonReentrant
    {
        for (uint256 index = 0; index < lootTokenIds.length; index++) {
            uint256 lootTokenId = lootTokenIds[index];
            require(
                lootContract.ownerOf(lootTokenId) == _msgSender(),
                "Sender does not own 1 or more Loot Token Ids provided"
            );

            _safeMint(_msgSender(), lootTokenId + 10_000);
        }
    }

    /// @notice Constructs the tokenURI, separated out from the public function as its a big function.
    /// @dev Generates the json data URI and svg data URI that ends up sent when someone requests the tokenURI
    /// @param tokenId the tokenId
    function _constructTokenURI(uint256 tokenId)
        internal
        view
        returns (string memory)
    {
        string memory mapName = string(
            abi.encodePacked("Loot Map #", Strings.toString(tokenId))
        );

        string memory name = getWaypointName(tokenId);
        string memory waypointNameSVG = string(
            abi.encodePacked(
                '<text dominant-baseline="middle" text-anchor="middle" fill="white" x="50%" y="150px">',
                name,
                "</text>"
            )
        );

        string memory lootItem = getLootItem(tokenId);
        string memory lootItemSVG = string(
            abi.encodePacked(
                '<text dominant-baseline="middle" text-anchor="middle" fill="white" x="50%" y="110px">',
                lootItem,
                "</text>"
            )
        );

        uint256[2] memory waypointCoord = getWaypointCoord(tokenId);
        string memory waypointCoordSVG;
        if (waypointCoord[0] == 129) {
            waypointCoordSVG = string(abi.encodePacked(""));
        } else {
            waypointCoordSVG = string(
                abi.encodePacked(
                    '<circle fill="white" cx="',
                    Strings.toString(waypointCoord[0]),
                    '" cy="',
                    Strings.toString(waypointCoord[1]),
                    '" r="4"/>'
                )
            );
        }

        bytes memory svg = abi.encodePacked(
            '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 400" preserveAspectRatio="xMidYMid meet" style="font:16px serif"><rect width="400" height="400" fill="black" />',
            lootItemSVG,
            '<text dominant-baseline="middle" text-anchor="middle" fill="white" x="50%" y="130px">discovered at</text>',
            waypointNameSVG,
            '<g transform="translate(133, 260)">',
            '<rect transform="translate(-3, -3)" width="134" height="134" fill="none" stroke="white" stroke-width="2"/>',
            '<line x1="0" x2="50" y1="0" y2="50" />',
            '<line x1="50" y2="50" />',
            waypointCoordSVG,
            "</g>",
            "</svg>"
        );

        bytes memory image = abi.encodePacked(
            "data:image/svg+xml;base64,",
            Base64.encode(bytes(svg))
        );

        return
            string(
                abi.encodePacked(
                    "data:application/json;base64,",
                    Base64.encode(
                        bytes(
                            abi.encodePacked(
                                '{"name":"',
                                mapName,
                                '", "image":"',
                                image,
                                '", "description": "Loot Maps are randomly generated locations taken from the Map Project combined with randomly selected Loot items from the Loot Project, use them however you wish."}'
                            )
                        )
                    )
                )
            );
    }

    /// @notice Returns the json data associated with this token ID
    /// @param tokenId the token ID
    function tokenURI(uint256 tokenId)
        public
        view
        virtual
        override
        returns (string memory)
    {
        require(
            _exists(tokenId),
            "ERC721Metadata: URI query for nonexistent token"
        );
        return string(_constructTokenURI(tokenId));
    }
}

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^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() {
        _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;
    }
}

File 4 of 15 : Ownable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

/// @title Base64
/// @author Brecht Devos - <[email protected]>
/// @notice Provides a function for encoding some bytes in base64
library Base64 {
    string internal constant TABLE = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/';

    function encode(bytes memory data) internal pure returns (string memory) {
        if (data.length == 0) return '';
        
        // load the table into memory
        string memory table = TABLE;

        // multiply by 4/3 rounded up
        uint256 encodedLen = 4 * ((data.length + 2) / 3);

        // add some extra buffer at the end required for the writing
        string memory result = new string(encodedLen + 32);

        assembly {
            // set the actual output length
            mstore(result, encodedLen)
            
            // prepare the lookup table
            let tablePtr := add(table, 1)
            
            // input ptr
            let dataPtr := data
            let endPtr := add(dataPtr, mload(data))
            
            // result ptr, jump over length
            let resultPtr := add(result, 32)
            
            // run over the input, 3 bytes at a time
            for {} lt(dataPtr, endPtr) {}
            {
               dataPtr := add(dataPtr, 3)
               
               // read 3 bytes
               let input := mload(dataPtr)
               
               // write 4 characters
               mstore(resultPtr, shl(248, mload(add(tablePtr, and(shr(18, input), 0x3F)))))
               resultPtr := add(resultPtr, 1)
               mstore(resultPtr, shl(248, mload(add(tablePtr, and(shr(12, input), 0x3F)))))
               resultPtr := add(resultPtr, 1)
               mstore(resultPtr, shl(248, mload(add(tablePtr, and(shr( 6, input), 0x3F)))))
               resultPtr := add(resultPtr, 1)
               mstore(resultPtr, shl(248, mload(add(tablePtr, and(        input,  0x3F)))))
               resultPtr := add(resultPtr, 1)
            }
            
            // padding with '='
            switch mod(mload(data), 3)
            case 1 { mstore(sub(resultPtr, 2), shl(240, 0x3d3d)) }
            case 2 { mstore(sub(resultPtr, 1), shl(248, 0x3d)) }
        }
        
        return result;
    }
}

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

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

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

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

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

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

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

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

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

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

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

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

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

    /**
     * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each
     * token will be the concatenation of the `baseURI` and the `tokenId`. Empty
     * by default, can be overriden in child contracts.
     */
    function _baseURI() internal view virtual returns (string memory) {
        return "";
    }

    /**
     * @dev See {IERC721-approve}.
     */
    function approve(address to, uint256 tokenId) public virtual override {
        address owner = ERC721.ownerOf(tokenId);
        require(to != owner, "ERC721: approval to current owner");

        require(
            _msgSender() == owner || isApprovedForAll(owner, _msgSender()),
            "ERC721: approve caller is not owner nor approved for all"
        );

        _approve(to, tokenId);
    }

    /**
     * @dev See {IERC721-getApproved}.
     */
    function getApproved(uint256 tokenId) public view virtual override returns (address) {
        require(_exists(tokenId), "ERC721: approved query for nonexistent token");

        return _tokenApprovals[tokenId];
    }

    /**
     * @dev See {IERC721-setApprovalForAll}.
     */
    function setApprovalForAll(address operator, bool approved) public virtual override {
        require(operator != _msgSender(), "ERC721: approve to caller");

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

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

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

        _transfer(from, to, tokenId);
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        _beforeTokenTransfer(from, to, tokenId);

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

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

        emit Transfer(from, to, tokenId);
    }

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

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

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

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

pragma solidity ^0.8.0;

import "../IERC721.sol";

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

pragma solidity ^0.8.0;

import "../IERC721.sol";

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

File 14 of 15 : ERC165.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "./IERC165.sol";

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

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

pragma solidity ^0.8.0;

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

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"contract MapInterface","name":"mapAddress","type":"address"},{"internalType":"contract LootInterface","name":"lootAddress","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"lootTokenIds","type":"uint256[]"}],"name":"claimLootMapsAsLootHolder","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"mapTokenIds","type":"uint256[]"}],"name":"claimLootMapsAsMapHolder","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getLootItem","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getLootTokenId","outputs":[{"internalType":"uint256","name":"lootTokenId","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getMapTokenId","outputs":[{"internalType":"uint256","name":"mapTokenId","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getWaypointCoord","outputs":[{"internalType":"uint256[2]","name":"coords","type":"uint256[2]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getWaypointName","outputs":[{"internalType":"string","name":"","type":"string"}],"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":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"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":"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":"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"}]

60c06040526040518060400160405280600161ffff16815260200161271061ffff16815250600c90600262000036929190620002aa565b50604051806040016040528061271161ffff16815260200161465061ffff16815250600e9060026200006a929190620002aa565b503480156200007857600080fd5b50604051620062f2380380620062f283398181016040528101906200009e9190620003d3565b6040518060400160405280600881526020017f4c6f6f74204d61700000000000000000000000000000000000000000000000008152506040518060400160405280600481526020017f4c4d415000000000000000000000000000000000000000000000000000000000815250816000908051906020019062000122929190620002f5565b5080600190805190602001906200013b929190620002f5565b5050506001600a81905550620001666200015a620001dc60201b60201c565b620001e460201b60201c565b8173ffffffffffffffffffffffffffffffffffffffff1660808173ffffffffffffffffffffffffffffffffffffffff1660601b815250508073ffffffffffffffffffffffffffffffffffffffff1660a08173ffffffffffffffffffffffffffffffffffffffff1660601b81525050505062000509565b600033905090565b6000600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600b60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b8260028101928215620002e2579160200282015b82811115620002e1578251829061ffff16905591602001919060010190620002be565b5b509050620002f1919062000386565b5090565b828054620003039062000470565b90600052602060002090601f01602090048101928262000327576000855562000373565b82601f106200034257805160ff191683800117855562000373565b8280016001018555821562000373579182015b828111156200037257825182559160200191906001019062000355565b5b50905062000382919062000386565b5090565b5b80821115620003a157600081600090555060010162000387565b5090565b600081519050620003b681620004d5565b92915050565b600081519050620003cd81620004ef565b92915050565b60008060408385031215620003e757600080fd5b6000620003f785828601620003bc565b92505060206200040a85828601620003a5565b9150509250929050565b6000620004218262000450565b9050919050565b6000620004358262000414565b9050919050565b6000620004498262000414565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600060028204905060018216806200048957607f821691505b60208210811415620004a0576200049f620004a6565b5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b620004e08162000428565b8114620004ec57600080fd5b50565b620004fa816200043c565b81146200050657600080fd5b50565b60805160601c60a05160601c615d62620005906000396000818161069e01528181611e9701528181611f840152818161204201528181612100015281816121be0152818161227c0152818161233a015281816123f801526124ad015260008181610b9701528181610ca9015281816113300152818161142301526118920152615d626000f3fe608060405234801561001057600080fd5b506004361061018e5760003560e01c80634f6ccce7116100de57806395d89b4111610097578063c87b56dd11610071578063c87b56dd146104cd578063d41ff434146104fd578063e985e9c514610519578063f2fde38b146105495761018e565b806395d89b4114610477578063a22cb46514610495578063b88d4fde146104b15761018e565b80634f6ccce71461038f5780636352211e146103bf57806370a08231146103ef578063715018a61461041f5780637a872538146104295780638da5cb5b146104595761018e565b80630cac679c1161014b57806323b872dd1161012557806323b872dd146102f7578063288b8b0f146103135780632f745c591461034357806342842e0e146103735761018e565b80630cac679c146102795780631569983c146102a957806318160ddd146102d95761018e565b806301ffc9a7146101935780630609f2a9146101c357806306fdde03146101df578063081812fc146101fd578063095ea7b31461022d57806309d5520314610249575b600080fd5b6101ad60048036038101906101a89190613d5f565b610565565b6040516101ba9190614825565b60405180910390f35b6101dd60048036038101906101d89190613d1e565b6105df565b005b6101e76107d9565b6040516101f49190614840565b60405180910390f35b61021760048036038101906102129190613df2565b61086b565b60405161022491906147a3565b60405180910390f35b61024760048036038101906102429190613cb9565b6108f0565b005b610263600480360381019061025e9190613df2565b610a08565b6040516102709190614b22565b60405180910390f35b610293600480360381019061028e9190613df2565b610b3c565b6040516102a09190614840565b60405180910390f35b6102c360048036038101906102be9190613df2565b610d65565b6040516102d09190614840565b60405180910390f35b6102e1610df3565b6040516102ee9190614b22565b60405180910390f35b610311600480360381019061030c9190613bb3565b610e00565b005b61032d60048036038101906103289190613df2565b610e60565b60405161033a9190614b22565b60405180910390f35b61035d60048036038101906103589190613cb9565b610f7b565b60405161036a9190614b22565b60405180910390f35b61038d60048036038101906103889190613bb3565b611020565b005b6103a960048036038101906103a49190613df2565b611040565b6040516103b69190614b22565b60405180910390f35b6103d960048036038101906103d49190613df2565b6110d7565b6040516103e691906147a3565b60405180910390f35b61040960048036038101906104049190613b25565b611189565b6040516104169190614b22565b60405180910390f35b610427611241565b005b610443600480360381019061043e9190613df2565b6112c9565b604051610450919061480a565b60405180910390f35b6104616114da565b60405161046e91906147a3565b60405180910390f35b61047f611504565b60405161048c9190614840565b60405180910390f35b6104af60048036038101906104aa9190613c7d565b611596565b005b6104cb60048036038101906104c69190613c02565b611717565b005b6104e760048036038101906104e29190613df2565b611779565b6040516104f49190614840565b60405180910390f35b61051760048036038101906105129190613d1e565b6117d3565b005b610533600480360381019061052e9190613b77565b6119c0565b6040516105409190614825565b60405180910390f35b610563600480360381019061055e9190613b25565b611a54565b005b60007f780e9d63000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806105d857506105d782611b4c565b5b9050919050565b6002600a541415610625576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161061c90614b02565b60405180910390fd5b6002600a8190555060005b81518110156107cd576000828281518110610674577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200260200101519050610686611c2e565b73ffffffffffffffffffffffffffffffffffffffff167f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16636352211e836040518263ffffffff1660e01b81526004016106f59190614b22565b60206040518083038186803b15801561070d57600080fd5b505afa158015610721573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107459190613b4e565b73ffffffffffffffffffffffffffffffffffffffff161461079b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161079290614ae2565b60405180910390fd5b6107b96107a6611c2e565b612710836107b49190614cba565b611c36565b5080806107c590614ee8565b915050610630565b506001600a8190555050565b6060600080546107e890614e85565b80601f016020809104026020016040519081016040528092919081815260200182805461081490614e85565b80156108615780601f1061083657610100808354040283529160200191610861565b820191906000526020600020905b81548152906001019060200180831161084457829003601f168201915b5050505050905090565b600061087682611c54565b6108b5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108ac906149c2565b60405180910390fd5b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b60006108fb826110d7565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16141561096c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161096390614a62565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff1661098b611c2e565b73ffffffffffffffffffffffffffffffffffffffff1614806109ba57506109b9816109b4611c2e565b6119c0565b5b6109f9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109f090614942565b60405180910390fd5b610a038383611cc0565b505050565b6000610a1382611c54565b610a52576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a4990614a22565b60405180910390fd5b600c600060028110610a8d577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b01548210158015610ada5750600c600160028110610ad4577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b01548211155b15610ae757819050610b37565b6000610b3083600c600280602002604051908101604052809291908260028015610b26576020028201915b815481526020019060010190808311610b12575b5050505050611d79565b9050809150505b919050565b6060610b4782611c54565b610b86576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b7d90614a22565b60405180910390fd5b6000610b9183610a08565b905060607f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663ce2d3fee836040518263ffffffff1660e01b8152600401610bee9190614b22565b60206040518083038186803b158015610c0657600080fd5b505afa925050508015610c3757506040513d601f19601f82011682018060405250810190610c349190613e1b565b60015b610c78576040518060400160405280600a81526020017f3f3f3f3f3f3f3f3f3f3f000000000000000000000000000000000000000000008152509050610d5b565b6000610ca584604051806040016040528060018152602001600186610c9d9190614d9b565b815250611d79565b90507f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166288625c85836040518363ffffffff1660e01b8152600401610d01929190614b3d565b60006040518083038186803b158015610d1957600080fd5b505afa158015610d2d573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f82011682018060405250810190610d569190613db1565b925050505b8092505050919050565b6060610d7082611c54565b610daf576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610da690614a22565b60405180910390fd5b6000610dba83610e60565b90506000610dde826040518060400160405280600081526020016007815250611d79565b9050610dea8282611e93565b92505050919050565b6000600880549050905090565b610e11610e0b611c2e565b82612562565b610e50576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e4790614aa2565b60405180910390fd5b610e5b838383612640565b505050565b6000610e6b82611c54565b610eaa576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ea190614a22565b60405180910390fd5b600e600060028110610ee5577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b01548210158015610f325750600e600160028110610f2c577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b01548211155b15610f4c5761271082610f459190614d9b565b9050610f76565b6000610f6f83604051806040016040528060018152602001611f40815250611d79565b9050809150505b919050565b6000610f8683611189565b8210610fc7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fbe90614862565b60405180910390fd5b600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002054905092915050565b61103b83838360405180602001604052806000815250611717565b505050565b600061104a610df3565b821061108b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161108290614ac2565b60405180910390fd5b600882815481106110c5577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b90600052602060002001549050919050565b6000806002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611180576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161117790614982565b60405180910390fd5b80915050919050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156111fa576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111f190614962565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b611249611c2e565b73ffffffffffffffffffffffffffffffffffffffff166112676114da565b73ffffffffffffffffffffffffffffffffffffffff16146112bd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112b4906149e2565b60405180910390fd5b6112c7600061289c565b565b6112d1613880565b6112da82611c54565b611319576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161131090614a22565b60405180910390fd5b600061132483610a08565b905061132e613880565b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663ce2d3fee836040518263ffffffff1660e01b81526004016113879190614b22565b60206040518083038186803b15801561139f57600080fd5b505afa9250505080156113d057506040513d601f19601f820116820180604052508101906113cd9190613e1b565b60015b6113f257604051806040016040528060818152602001608181525090506114d0565b600061141f846040518060400160405280600181526020016001866114179190614d9b565b815250611d79565b90507f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663d98d4c5585836040518363ffffffff1660e01b815260040161147c929190614b3d565b604080518083038186803b15801561149357600080fd5b505afa1580156114a7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114cb9190613cf5565b925050505b8092505050919050565b6000600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60606001805461151390614e85565b80601f016020809104026020016040519081016040528092919081815260200182805461153f90614e85565b801561158c5780601f106115615761010080835404028352916020019161158c565b820191906000526020600020905b81548152906001019060200180831161156f57829003601f168201915b5050505050905090565b61159e611c2e565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561160c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161160390614902565b60405180910390fd5b8060056000611619611c2e565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff166116c6611c2e565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405161170b9190614825565b60405180910390a35050565b611728611722611c2e565b83612562565b611767576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161175e90614aa2565b60405180910390fd5b61177384848484612962565b50505050565b606061178482611c54565b6117c3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117ba90614a42565b60405180910390fd5b6117cc826129be565b9050919050565b6002600a541415611819576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161181090614b02565b60405180910390fd5b6002600a8190555060005b81518110156119b4576000828281518110611868577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020026020010151905061187a611c2e565b73ffffffffffffffffffffffffffffffffffffffff167f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16636352211e836040518263ffffffff1660e01b81526004016118e99190614b22565b60206040518083038186803b15801561190157600080fd5b505afa158015611915573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119399190613b4e565b73ffffffffffffffffffffffffffffffffffffffff161461198f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161198690614a82565b60405180910390fd5b6119a061199a611c2e565b82611c36565b5080806119ac90614ee8565b915050611824565b506001600a8190555050565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b611a5c611c2e565b73ffffffffffffffffffffffffffffffffffffffff16611a7a6114da565b73ffffffffffffffffffffffffffffffffffffffff1614611ad0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ac7906149e2565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611b40576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b37906148a2565b60405180910390fd5b611b498161289c565b50565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480611c1757507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80611c275750611c2682612c27565b5b9050919050565b600033905090565b611c50828260405180602001604052806000815250612c91565b5050565b60008073ffffffffffffffffffffffffffffffffffffffff166002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16611d33836110d7565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600080611dac611d8885612cec565b604051602001611d9891906145a4565b604051602081830303815290604052612e99565b905082600060028110611de8577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602002015183600060028110611e27577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602002015184600160028110611e66577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020020151611e759190614d9b565b82611e809190614f31565b611e8a9190614cba565b91505092915050565b60607f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16636352211e846040518263ffffffff1660e01b8152600401611eee9190614b22565b60206040518083038186803b158015611f0657600080fd5b505afa925050508015611f3757506040513d601f19601f82011682018060405250810190611f349190613b4e565b60015b611f78576040518060400160405280600a81526020017f3f3f3f3f3f3f3f3f3f3f00000000000000000000000000000000000000000000815250905061255c565b506000821415612037577f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663ef68075a846040518263ffffffff1660e01b8152600401611fdb9190614b22565b60006040518083038186803b158015611ff357600080fd5b505afa158015612007573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f820116820180604052508101906120309190613db1565b905061255c565b60018214156120f5577f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16630e99990d846040518263ffffffff1660e01b81526004016120999190614b22565b60006040518083038186803b1580156120b157600080fd5b505afa1580156120c5573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f820116820180604052508101906120ee9190613db1565b905061255c565b60028214156121b3577f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663d47f269e846040518263ffffffff1660e01b81526004016121579190614b22565b60006040518083038186803b15801561216f57600080fd5b505afa158015612183573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f820116820180604052508101906121ac9190613db1565b905061255c565b6003821415612271577f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16639720c969846040518263ffffffff1660e01b81526004016122159190614b22565b60006040518083038186803b15801561222d57600080fd5b505afa158015612241573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f8201168201806040525081019061226a9190613db1565b905061255c565b600482141561232f577f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166367209aa8846040518263ffffffff1660e01b81526004016122d39190614b22565b60006040518083038186803b1580156122eb57600080fd5b505afa1580156122ff573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f820116820180604052508101906123289190613db1565b905061255c565b60058214156123ed577f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663c08a5dd5846040518263ffffffff1660e01b81526004016123919190614b22565b60006040518083038186803b1580156123a957600080fd5b505afa1580156123bd573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f820116820180604052508101906123e69190613db1565b905061255c565b60068214156124ab577f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16639bdc1b69846040518263ffffffff1660e01b815260040161244f9190614b22565b60006040518083038186803b15801561246757600080fd5b505afa15801561247b573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f820116820180604052508101906124a49190613db1565b905061255c565b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16639e41b73f846040518263ffffffff1660e01b81526004016125049190614b22565b60006040518083038186803b15801561251c57600080fd5b505afa158015612530573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f820116820180604052508101906125599190613db1565b90505b92915050565b600061256d82611c54565b6125ac576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016125a390614922565b60405180910390fd5b60006125b7836110d7565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16148061262657508373ffffffffffffffffffffffffffffffffffffffff1661260e8461086b565b73ffffffffffffffffffffffffffffffffffffffff16145b80612637575061263681856119c0565b5b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff16612660826110d7565b73ffffffffffffffffffffffffffffffffffffffff16146126b6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016126ad90614a02565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612726576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161271d906148e2565b60405180910390fd5b612731838383612ecc565b61273c600082611cc0565b6001600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461278c9190614d9b565b925050819055506001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546127e39190614cba565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b6000600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600b60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b61296d848484612640565b61297984848484612fe0565b6129b8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016129af90614882565b60405180910390fd5b50505050565b606060006129cb83612cec565b6040516020016129db919061475f565b604051602081830303815290604052905060006129f784610b3c565b9050600081604051602001612a0c9190614672565b60405160208183030381529060405290506000612a2886610d65565b9050600081604051602001612a3d9190614600565b60405160208183030381529060405290506000612a59886112c9565b90506060608182600060028110612a99577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200201511415612ac957604051602001612ab39061474a565b6040516020818303038152906040529050612b7a565b612b1082600060028110612b06577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020020151612cec565b612b5783600160028110612b4d577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020020151612cec565b604051602001612b6892919061462d565b60405160208183030381529060405290505b6000838683604051602001612b919392919061469f565b60405160208183030381529060405290506000612bad82613177565b604051602001612bbd9190614781565b6040516020818303038152906040529050612bf88982604051602001612be49291906145bb565b604051602081830303815290604052613177565b604051602001612c089190614728565b6040516020818303038152906040529950505050505050505050919050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b612c9b8383613322565b612ca86000848484612fe0565b612ce7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612cde90614882565b60405180910390fd5b505050565b60606000821415612d34576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050612e94565b600082905060005b60008214612d66578080612d4f90614ee8565b915050600a82612d5f9190614d10565b9150612d3c565b60008167ffffffffffffffff811115612da8577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015612dda5781602001600182028036833780820191505090505b5090505b60008514612e8d57600182612df39190614d9b565b9150600a85612e029190614f31565b6030612e0e9190614cba565b60f81b818381518110612e4a577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a85612e869190614d10565b9450612dde565b8093505050505b919050565b600081604051602001612eac91906145a4565b6040516020818303038152906040528051906020012060001c9050919050565b612ed78383836134f0565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415612f1a57612f15816134f5565b612f59565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614612f5857612f57838261353e565b5b5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612f9c57612f97816136ab565b612fdb565b8273ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614612fda57612fd982826137ee565b5b5b505050565b60006130018473ffffffffffffffffffffffffffffffffffffffff1661386d565b1561316a578373ffffffffffffffffffffffffffffffffffffffff1663150b7a0261302a611c2e565b8786866040518563ffffffff1660e01b815260040161304c94939291906147be565b602060405180830381600087803b15801561306657600080fd5b505af192505050801561309757506040513d601f19601f820116820180604052508101906130949190613d88565b60015b61311a573d80600081146130c7576040519150601f19603f3d011682016040523d82523d6000602084013e6130cc565b606091505b50600081511415613112576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161310990614882565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161491505061316f565b600190505b949350505050565b606060008251141561319a5760405180602001604052806000815250905061331d565b6000604051806060016040528060408152602001615ced60409139905060006003600285516131c99190614cba565b6131d39190614d10565b60046131df9190614d41565b905060006020826131f09190614cba565b67ffffffffffffffff81111561322f577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156132615781602001600182028036833780820191505090505b509050818152600183018586518101602084015b818310156132dc576003830192508251603f8160121c1685015160f81b8252600182019150603f81600c1c1685015160f81b8252600182019150603f8160061c1685015160f81b8252600182019150603f811685015160f81b825260018201915050613275565b6003895106600181146132f6576002811461330657613311565b613d3d60f01b6002830352613311565b603d60f81b60018303525b50505050508093505050505b919050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415613392576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613389906149a2565b60405180910390fd5b61339b81611c54565b156133db576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016133d2906148c2565b60405180910390fd5b6133e760008383612ecc565b6001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546134379190614cba565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050565b505050565b6008805490506009600083815260200190815260200160002081905550600881908060018154018082558091505060019003906000526020600020016000909190919091505550565b6000600161354b84611189565b6135559190614d9b565b905060006007600084815260200190815260200160002054905081811461363a576000600660008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002054905080600660008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002081905550816007600083815260200190815260200160002081905550505b6007600084815260200190815260200160002060009055600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008381526020019081526020016000206000905550505050565b600060016008805490506136bf9190614d9b565b9050600060096000848152602001908152602001600020549050600060088381548110613715577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b90600052602060002001549050806008838154811061375d577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9060005260206000200181905550816009600083815260200190815260200160002081905550600960008581526020019081526020016000206000905560088054806137d2577f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b6001900381819060005260206000200160009055905550505050565b60006137f983611189565b905081600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002081905550806007600084815260200190815260200160002081905550505050565b600080823b905060008111915050919050565b6040518060400160405280600290602082028036833780820191505090505090565b60006138b56138b084614b8b565b614b66565b905080828560208602820111156138cb57600080fd5b60005b858110156138fb57816138e18882613b10565b8452602084019350602083019250506001810190506138ce565b5050509392505050565b600061391861391384614bb1565b614b66565b9050808382526020820190508285602086028201111561393757600080fd5b60005b85811015613967578161394d8882613afb565b84526020840193506020830192505060018101905061393a565b5050509392505050565b600061398461397f84614bdd565b614b66565b90508281526020810184848401111561399c57600080fd5b6139a7848285614e43565b509392505050565b60006139c26139bd84614c0e565b614b66565b9050828152602081018484840111156139da57600080fd5b6139e5848285614e52565b509392505050565b6000813590506139fc81615c90565b92915050565b600081519050613a1181615c90565b92915050565b600082601f830112613a2857600080fd5b6002613a358482856138a2565b91505092915050565b600082601f830112613a4f57600080fd5b8135613a5f848260208601613905565b91505092915050565b600081359050613a7781615ca7565b92915050565b600081359050613a8c81615cbe565b92915050565b600081519050613aa181615cbe565b92915050565b600082601f830112613ab857600080fd5b8135613ac8848260208601613971565b91505092915050565b600082601f830112613ae257600080fd5b8151613af28482602086016139af565b91505092915050565b600081359050613b0a81615cd5565b92915050565b600081519050613b1f81615cd5565b92915050565b600060208284031215613b3757600080fd5b6000613b45848285016139ed565b91505092915050565b600060208284031215613b6057600080fd5b6000613b6e84828501613a02565b91505092915050565b60008060408385031215613b8a57600080fd5b6000613b98858286016139ed565b9250506020613ba9858286016139ed565b9150509250929050565b600080600060608486031215613bc857600080fd5b6000613bd6868287016139ed565b9350506020613be7868287016139ed565b9250506040613bf886828701613afb565b9150509250925092565b60008060008060808587031215613c1857600080fd5b6000613c26878288016139ed565b9450506020613c37878288016139ed565b9350506040613c4887828801613afb565b925050606085013567ffffffffffffffff811115613c6557600080fd5b613c7187828801613aa7565b91505092959194509250565b60008060408385031215613c9057600080fd5b6000613c9e858286016139ed565b9250506020613caf85828601613a68565b9150509250929050565b60008060408385031215613ccc57600080fd5b6000613cda858286016139ed565b9250506020613ceb85828601613afb565b9150509250929050565b600060408284031215613d0757600080fd5b6000613d1584828501613a17565b91505092915050565b600060208284031215613d3057600080fd5b600082013567ffffffffffffffff811115613d4a57600080fd5b613d5684828501613a3e565b91505092915050565b600060208284031215613d7157600080fd5b6000613d7f84828501613a7d565b91505092915050565b600060208284031215613d9a57600080fd5b6000613da884828501613a92565b91505092915050565b600060208284031215613dc357600080fd5b600082015167ffffffffffffffff811115613ddd57600080fd5b613de984828501613ad1565b91505092915050565b600060208284031215613e0457600080fd5b6000613e1284828501613afb565b91505092915050565b600060208284031215613e2d57600080fd5b6000613e3b84828501613b10565b91505092915050565b6000613e508383614586565b60208301905092915050565b613e6581614dcf565b82525050565b613e7481614c49565b613e7e8184614c77565b9250613e8982614c3f565b8060005b83811015613eba578151613ea18782613e44565b9650613eac83614c6a565b925050600181019050613e8d565b505050505050565b613ecb81614de1565b82525050565b6000613edc82614c54565b613ee68185614c82565b9350613ef6818560208601614e52565b613eff8161501e565b840191505092915050565b6000613f1582614c54565b613f1f8185614c93565b9350613f2f818560208601614e52565b80840191505092915050565b6000613f4682614c5f565b613f508185614c9e565b9350613f60818560208601614e52565b613f698161501e565b840191505092915050565b6000613f7f82614c5f565b613f898185614caf565b9350613f99818560208601614e52565b80840191505092915050565b6000613fb2600683614caf565b9150613fbd8261502f565b600682019050919050565b6000613fd5600983614caf565b9150613fe082615058565b600982019050919050565b6000613ff8602b83614c9e565b915061400382615081565b604082019050919050565b600061401b603283614c9e565b9150614026826150d0565b604082019050919050565b600061403e602683614c9e565b91506140498261511f565b604082019050919050565b6000614061605583614caf565b915061406c8261516e565b605582019050919050565b6000614084601c83614c9e565b915061408f826151e3565b602082019050919050565b60006140a7601983614caf565b91506140b28261520c565b601982019050919050565b60006140ca602483614c9e565b91506140d582615235565b604082019050919050565b60006140ed601983614c9e565b91506140f882615284565b602082019050919050565b6000614110605583614caf565b915061411b826152ad565b605582019050919050565b6000614133602c83614c9e565b915061413e82615322565b604082019050919050565b6000614156603883614c9e565b915061416182615371565b604082019050919050565b600061417960b783614caf565b9150614184826153c0565b60b782019050919050565b600061419c602a83614c9e565b91506141a7826154a7565b604082019050919050565b60006141bf602983614c9e565b91506141ca826154f6565b604082019050919050565b60006141e2600c83614caf565b91506141ed82615545565b600c82019050919050565b6000614205600783614caf565b91506142108261556e565b600782019050919050565b6000614228606a83614caf565b915061423382615597565b606a82019050919050565b600061424b602083614c9e565b915061425682615632565b602082019050919050565b600061426e600983614caf565b91506142798261565b565b600982019050919050565b6000614291602383614caf565b915061429c82615684565b602382019050919050565b60006142b4601883614caf565b91506142bf826156d3565b601882019050919050565b60006142d7602c83614c9e565b91506142e2826156fc565b604082019050919050565b60006142fa602083614c9e565b91506143058261574b565b602082019050919050565b600061431d602983614c9e565b915061432882615774565b604082019050919050565b6000614340601383614c9e565b915061434b826157c3565b602082019050919050565b6000614363602f83614c9e565b915061436e826157ec565b604082019050919050565b6000614386600483614caf565b91506143918261583b565b600482019050919050565b60006143a9602183614c9e565b91506143b482615864565b604082019050919050565b60006143cc60a883614caf565b91506143d7826158b3565b60a882019050919050565b60006143ef603483614c9e565b91506143fa8261599a565b604082019050919050565b6000614412601d83614caf565b915061441d826159e9565b601d82019050919050565b6000614435600083614caf565b915061444082615a12565b600082019050919050565b6000614458602683614caf565b915061446382615a15565b602682019050919050565b600061447b603183614c9e565b915061448682615a64565b604082019050919050565b600061449e602c83614c9e565b91506144a982615ab3565b604082019050919050565b60006144c1600a83614caf565b91506144cc82615b02565b600a82019050919050565b60006144e4606983614caf565b91506144ef82615b2b565b606982019050919050565b6000614507603583614c9e565b915061451282615bc6565b604082019050919050565b600061452a601f83614c9e565b915061453582615c15565b602082019050919050565b600061454d600683614caf565b915061455882615c3e565b600682019050919050565b6000614570601a83614caf565b915061457b82615c67565b601a82019050919050565b61458f81614e39565b82525050565b61459e81614e39565b82525050565b60006145b08284613f74565b915081905092915050565b60006145c682613fc8565b91506145d28285613f74565b91506145dd826141d5565b91506145e98284613f0a565b91506145f48261416c565b91508190509392505050565b600061460b82614054565b91506146178284613f74565b9150614622826141f8565b915081905092915050565b60006146388261409a565b91506146448285613f74565b915061464f82613fa5565b915061465b8284613f74565b915061466682614261565b91508190509392505050565b600061467d82614103565b91506146898284613f74565b9150614694826141f8565b915081905092915050565b60006146aa826143bf565b91506146b68286613f74565b91506146c1826144d7565b91506146cd8285613f74565b91506146d882614284565b91506146e38261421b565b91506146ee8261444b565b91506146f9826142a7565b91506147058284613f74565b915061471082614379565b915061471b82614540565b9150819050949350505050565b600061473382614405565b915061473f8284613f74565b915081905092915050565b600061475582614428565b9150819050919050565b600061476a826144b4565b91506147768284613f74565b915081905092915050565b600061478c82614563565b91506147988284613f74565b915081905092915050565b60006020820190506147b86000830184613e5c565b92915050565b60006080820190506147d36000830187613e5c565b6147e06020830186613e5c565b6147ed6040830185614595565b81810360608301526147ff8184613ed1565b905095945050505050565b600060408201905061481f6000830184613e6b565b92915050565b600060208201905061483a6000830184613ec2565b92915050565b6000602082019050818103600083015261485a8184613f3b565b905092915050565b6000602082019050818103600083015261487b81613feb565b9050919050565b6000602082019050818103600083015261489b8161400e565b9050919050565b600060208201905081810360008301526148bb81614031565b9050919050565b600060208201905081810360008301526148db81614077565b9050919050565b600060208201905081810360008301526148fb816140bd565b9050919050565b6000602082019050818103600083015261491b816140e0565b9050919050565b6000602082019050818103600083015261493b81614126565b9050919050565b6000602082019050818103600083015261495b81614149565b9050919050565b6000602082019050818103600083015261497b8161418f565b9050919050565b6000602082019050818103600083015261499b816141b2565b9050919050565b600060208201905081810360008301526149bb8161423e565b9050919050565b600060208201905081810360008301526149db816142ca565b9050919050565b600060208201905081810360008301526149fb816142ed565b9050919050565b60006020820190508181036000830152614a1b81614310565b9050919050565b60006020820190508181036000830152614a3b81614333565b9050919050565b60006020820190508181036000830152614a5b81614356565b9050919050565b60006020820190508181036000830152614a7b8161439c565b9050919050565b60006020820190508181036000830152614a9b816143e2565b9050919050565b60006020820190508181036000830152614abb8161446e565b9050919050565b60006020820190508181036000830152614adb81614491565b9050919050565b60006020820190508181036000830152614afb816144fa565b9050919050565b60006020820190508181036000830152614b1b8161451d565b9050919050565b6000602082019050614b376000830184614595565b92915050565b6000604082019050614b526000830185614595565b614b5f6020830184614595565b9392505050565b6000614b70614b81565b9050614b7c8282614eb7565b919050565b6000604051905090565b600067ffffffffffffffff821115614ba657614ba5614fef565b5b602082029050919050565b600067ffffffffffffffff821115614bcc57614bcb614fef565b5b602082029050602081019050919050565b600067ffffffffffffffff821115614bf857614bf7614fef565b5b614c018261501e565b9050602081019050919050565b600067ffffffffffffffff821115614c2957614c28614fef565b5b614c328261501e565b9050602081019050919050565b6000819050919050565b600060029050919050565b600081519050919050565b600081519050919050565b6000602082019050919050565b600081905092915050565b600082825260208201905092915050565b600081905092915050565b600082825260208201905092915050565b600081905092915050565b6000614cc582614e39565b9150614cd083614e39565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115614d0557614d04614f62565b5b828201905092915050565b6000614d1b82614e39565b9150614d2683614e39565b925082614d3657614d35614f91565b5b828204905092915050565b6000614d4c82614e39565b9150614d5783614e39565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615614d9057614d8f614f62565b5b828202905092915050565b6000614da682614e39565b9150614db183614e39565b925082821015614dc457614dc3614f62565b5b828203905092915050565b6000614dda82614e19565b9050919050565b60008115159050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b82818337600083830152505050565b60005b83811015614e70578082015181840152602081019050614e55565b83811115614e7f576000848401525b50505050565b60006002820490506001821680614e9d57607f821691505b60208210811415614eb157614eb0614fc0565b5b50919050565b614ec08261501e565b810181811067ffffffffffffffff82111715614edf57614ede614fef565b5b80604052505050565b6000614ef382614e39565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415614f2657614f25614f62565b5b600182019050919050565b6000614f3c82614e39565b9150614f4783614e39565b925082614f5757614f56614f91565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000601f19601f8301169050919050565b7f222063793d220000000000000000000000000000000000000000000000000000600082015250565b7f7b226e616d65223a220000000000000000000000000000000000000000000000600082015250565b7f455243373231456e756d657261626c653a206f776e657220696e646578206f7560008201527f74206f6620626f756e6473000000000000000000000000000000000000000000602082015250565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f3c7465787420646f6d696e616e742d626173656c696e653d226d6964646c652260008201527f20746578742d616e63686f723d226d6964646c65222066696c6c3d227768697460208201527f652220783d223530252220793d223131307078223e0000000000000000000000604082015250565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b7f3c636972636c652066696c6c3d227768697465222063783d2200000000000000600082015250565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b7f3c7465787420646f6d696e616e742d626173656c696e653d226d6964646c652260008201527f20746578742d616e63686f723d226d6964646c65222066696c6c3d227768697460208201527f652220783d223530252220793d223135307078223e0000000000000000000000604082015250565b7f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760008201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000602082015250565b7f222c20226465736372697074696f6e223a20224c6f6f74204d6170732061726560008201527f2072616e646f6d6c792067656e657261746564206c6f636174696f6e7320746160208201527f6b656e2066726f6d20746865204d61702050726f6a65637420636f6d62696e6560408201527f6420776974682072616e646f6d6c792073656c6563746564204c6f6f7420697460608201527f656d732066726f6d20746865204c6f6f742050726f6a6563742c20757365207460808201527f68656d20686f776576657220796f7520776973682e227d00000000000000000060a082015250565b7f4552433732313a2062616c616e636520717565727920666f7220746865207a6560008201527f726f206164647265737300000000000000000000000000000000000000000000602082015250565b7f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460008201527f656e7420746f6b656e0000000000000000000000000000000000000000000000602082015250565b7f222c2022696d616765223a220000000000000000000000000000000000000000600082015250565b7f3c2f746578743e00000000000000000000000000000000000000000000000000600082015250565b7f3c72656374207472616e73666f726d3d227472616e736c617465282d332c202d60008201527f3329222077696474683d2231333422206865696768743d22313334222066696c60208201527f6c3d226e6f6e6522207374726f6b653d22776869746522207374726f6b652d7760408201527f696474683d2232222f3e00000000000000000000000000000000000000000000606082015250565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b7f2220723d2234222f3e0000000000000000000000000000000000000000000000600082015250565b7f3c67207472616e73666f726d3d227472616e736c617465283133332c2032363060008201527f29223e0000000000000000000000000000000000000000000000000000000000602082015250565b7f3c6c696e652078313d223530222079323d22353022202f3e0000000000000000600082015250565b7f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960008201527f73206e6f74206f776e0000000000000000000000000000000000000000000000602082015250565b7f546f6b656e20494420697320696e76616c696400000000000000000000000000600082015250565b7f4552433732314d657461646174613a2055524920717565727920666f72206e6f60008201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000602082015250565b7f3c2f673e00000000000000000000000000000000000000000000000000000000600082015250565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b7f3c73766720786d6c6e733d22687474703a2f2f7777772e77332e6f72672f323060008201527f30302f737667222076696577426f783d2230203020343030203430302220707260208201527f657365727665417370656374526174696f3d22784d6964594d6964206d65657460408201527f22207374796c653d22666f6e743a31367078207365726966223e3c726563742060608201527f77696474683d2234303022206865696768743d22343030222066696c6c3d226260808201527f6c61636b22202f3e00000000000000000000000000000000000000000000000060a082015250565b7f53656e64657220646f6573206e6f74206f776e2031206f72206d6f7265204d6160008201527f7020546f6b656e204964732070726f7669646564000000000000000000000000602082015250565b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c000000600082015250565b50565b7f3c6c696e652078313d2230222078323d223530222079313d2230222079323d2260008201527f353022202f3e0000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60008201527f776e6572206e6f7220617070726f766564000000000000000000000000000000602082015250565b7f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60008201527f7574206f6620626f756e64730000000000000000000000000000000000000000602082015250565b7f4c6f6f74204d6170202300000000000000000000000000000000000000000000600082015250565b7f3c7465787420646f6d696e616e742d626173656c696e653d226d6964646c652260008201527f20746578742d616e63686f723d226d6964646c65222066696c6c3d227768697460208201527f652220783d223530252220793d223133307078223e646973636f76657265642060408201527f61743c2f746578743e0000000000000000000000000000000000000000000000606082015250565b7f53656e64657220646f6573206e6f74206f776e2031206f72206d6f7265204c6f60008201527f6f7420546f6b656e204964732070726f76696465640000000000000000000000602082015250565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b7f3c2f7376673e0000000000000000000000000000000000000000000000000000600082015250565b7f646174613a696d6167652f7376672b786d6c3b6261736536342c000000000000600082015250565b615c9981614dcf565b8114615ca457600080fd5b50565b615cb081614de1565b8114615cbb57600080fd5b50565b615cc781614ded565b8114615cd257600080fd5b50565b615cde81614e39565b8114615ce957600080fd5b5056fe4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2fa2646970667358221220d5880dd5b7cb491b991a689d45ee6b74749e7d8054eab268b4666b931f1643dc64736f6c63430008040033000000000000000000000000511372b44231a31527025a3d273c1dc0a83d77af000000000000000000000000ff9c1b15b16263c61d017ee9f65c50e4ae0113d7

Deployed Bytecode

0x608060405234801561001057600080fd5b506004361061018e5760003560e01c80634f6ccce7116100de57806395d89b4111610097578063c87b56dd11610071578063c87b56dd146104cd578063d41ff434146104fd578063e985e9c514610519578063f2fde38b146105495761018e565b806395d89b4114610477578063a22cb46514610495578063b88d4fde146104b15761018e565b80634f6ccce71461038f5780636352211e146103bf57806370a08231146103ef578063715018a61461041f5780637a872538146104295780638da5cb5b146104595761018e565b80630cac679c1161014b57806323b872dd1161012557806323b872dd146102f7578063288b8b0f146103135780632f745c591461034357806342842e0e146103735761018e565b80630cac679c146102795780631569983c146102a957806318160ddd146102d95761018e565b806301ffc9a7146101935780630609f2a9146101c357806306fdde03146101df578063081812fc146101fd578063095ea7b31461022d57806309d5520314610249575b600080fd5b6101ad60048036038101906101a89190613d5f565b610565565b6040516101ba9190614825565b60405180910390f35b6101dd60048036038101906101d89190613d1e565b6105df565b005b6101e76107d9565b6040516101f49190614840565b60405180910390f35b61021760048036038101906102129190613df2565b61086b565b60405161022491906147a3565b60405180910390f35b61024760048036038101906102429190613cb9565b6108f0565b005b610263600480360381019061025e9190613df2565b610a08565b6040516102709190614b22565b60405180910390f35b610293600480360381019061028e9190613df2565b610b3c565b6040516102a09190614840565b60405180910390f35b6102c360048036038101906102be9190613df2565b610d65565b6040516102d09190614840565b60405180910390f35b6102e1610df3565b6040516102ee9190614b22565b60405180910390f35b610311600480360381019061030c9190613bb3565b610e00565b005b61032d60048036038101906103289190613df2565b610e60565b60405161033a9190614b22565b60405180910390f35b61035d60048036038101906103589190613cb9565b610f7b565b60405161036a9190614b22565b60405180910390f35b61038d60048036038101906103889190613bb3565b611020565b005b6103a960048036038101906103a49190613df2565b611040565b6040516103b69190614b22565b60405180910390f35b6103d960048036038101906103d49190613df2565b6110d7565b6040516103e691906147a3565b60405180910390f35b61040960048036038101906104049190613b25565b611189565b6040516104169190614b22565b60405180910390f35b610427611241565b005b610443600480360381019061043e9190613df2565b6112c9565b604051610450919061480a565b60405180910390f35b6104616114da565b60405161046e91906147a3565b60405180910390f35b61047f611504565b60405161048c9190614840565b60405180910390f35b6104af60048036038101906104aa9190613c7d565b611596565b005b6104cb60048036038101906104c69190613c02565b611717565b005b6104e760048036038101906104e29190613df2565b611779565b6040516104f49190614840565b60405180910390f35b61051760048036038101906105129190613d1e565b6117d3565b005b610533600480360381019061052e9190613b77565b6119c0565b6040516105409190614825565b60405180910390f35b610563600480360381019061055e9190613b25565b611a54565b005b60007f780e9d63000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806105d857506105d782611b4c565b5b9050919050565b6002600a541415610625576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161061c90614b02565b60405180910390fd5b6002600a8190555060005b81518110156107cd576000828281518110610674577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200260200101519050610686611c2e565b73ffffffffffffffffffffffffffffffffffffffff167f000000000000000000000000ff9c1b15b16263c61d017ee9f65c50e4ae0113d773ffffffffffffffffffffffffffffffffffffffff16636352211e836040518263ffffffff1660e01b81526004016106f59190614b22565b60206040518083038186803b15801561070d57600080fd5b505afa158015610721573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107459190613b4e565b73ffffffffffffffffffffffffffffffffffffffff161461079b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161079290614ae2565b60405180910390fd5b6107b96107a6611c2e565b612710836107b49190614cba565b611c36565b5080806107c590614ee8565b915050610630565b506001600a8190555050565b6060600080546107e890614e85565b80601f016020809104026020016040519081016040528092919081815260200182805461081490614e85565b80156108615780601f1061083657610100808354040283529160200191610861565b820191906000526020600020905b81548152906001019060200180831161084457829003601f168201915b5050505050905090565b600061087682611c54565b6108b5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108ac906149c2565b60405180910390fd5b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b60006108fb826110d7565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16141561096c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161096390614a62565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff1661098b611c2e565b73ffffffffffffffffffffffffffffffffffffffff1614806109ba57506109b9816109b4611c2e565b6119c0565b5b6109f9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109f090614942565b60405180910390fd5b610a038383611cc0565b505050565b6000610a1382611c54565b610a52576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a4990614a22565b60405180910390fd5b600c600060028110610a8d577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b01548210158015610ada5750600c600160028110610ad4577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b01548211155b15610ae757819050610b37565b6000610b3083600c600280602002604051908101604052809291908260028015610b26576020028201915b815481526020019060010190808311610b12575b5050505050611d79565b9050809150505b919050565b6060610b4782611c54565b610b86576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b7d90614a22565b60405180910390fd5b6000610b9183610a08565b905060607f000000000000000000000000511372b44231a31527025a3d273c1dc0a83d77af73ffffffffffffffffffffffffffffffffffffffff1663ce2d3fee836040518263ffffffff1660e01b8152600401610bee9190614b22565b60206040518083038186803b158015610c0657600080fd5b505afa925050508015610c3757506040513d601f19601f82011682018060405250810190610c349190613e1b565b60015b610c78576040518060400160405280600a81526020017f3f3f3f3f3f3f3f3f3f3f000000000000000000000000000000000000000000008152509050610d5b565b6000610ca584604051806040016040528060018152602001600186610c9d9190614d9b565b815250611d79565b90507f000000000000000000000000511372b44231a31527025a3d273c1dc0a83d77af73ffffffffffffffffffffffffffffffffffffffff166288625c85836040518363ffffffff1660e01b8152600401610d01929190614b3d565b60006040518083038186803b158015610d1957600080fd5b505afa158015610d2d573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f82011682018060405250810190610d569190613db1565b925050505b8092505050919050565b6060610d7082611c54565b610daf576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610da690614a22565b60405180910390fd5b6000610dba83610e60565b90506000610dde826040518060400160405280600081526020016007815250611d79565b9050610dea8282611e93565b92505050919050565b6000600880549050905090565b610e11610e0b611c2e565b82612562565b610e50576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e4790614aa2565b60405180910390fd5b610e5b838383612640565b505050565b6000610e6b82611c54565b610eaa576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ea190614a22565b60405180910390fd5b600e600060028110610ee5577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b01548210158015610f325750600e600160028110610f2c577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b01548211155b15610f4c5761271082610f459190614d9b565b9050610f76565b6000610f6f83604051806040016040528060018152602001611f40815250611d79565b9050809150505b919050565b6000610f8683611189565b8210610fc7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fbe90614862565b60405180910390fd5b600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002054905092915050565b61103b83838360405180602001604052806000815250611717565b505050565b600061104a610df3565b821061108b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161108290614ac2565b60405180910390fd5b600882815481106110c5577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b90600052602060002001549050919050565b6000806002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611180576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161117790614982565b60405180910390fd5b80915050919050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156111fa576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111f190614962565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b611249611c2e565b73ffffffffffffffffffffffffffffffffffffffff166112676114da565b73ffffffffffffffffffffffffffffffffffffffff16146112bd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112b4906149e2565b60405180910390fd5b6112c7600061289c565b565b6112d1613880565b6112da82611c54565b611319576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161131090614a22565b60405180910390fd5b600061132483610a08565b905061132e613880565b7f000000000000000000000000511372b44231a31527025a3d273c1dc0a83d77af73ffffffffffffffffffffffffffffffffffffffff1663ce2d3fee836040518263ffffffff1660e01b81526004016113879190614b22565b60206040518083038186803b15801561139f57600080fd5b505afa9250505080156113d057506040513d601f19601f820116820180604052508101906113cd9190613e1b565b60015b6113f257604051806040016040528060818152602001608181525090506114d0565b600061141f846040518060400160405280600181526020016001866114179190614d9b565b815250611d79565b90507f000000000000000000000000511372b44231a31527025a3d273c1dc0a83d77af73ffffffffffffffffffffffffffffffffffffffff1663d98d4c5585836040518363ffffffff1660e01b815260040161147c929190614b3d565b604080518083038186803b15801561149357600080fd5b505afa1580156114a7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114cb9190613cf5565b925050505b8092505050919050565b6000600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60606001805461151390614e85565b80601f016020809104026020016040519081016040528092919081815260200182805461153f90614e85565b801561158c5780601f106115615761010080835404028352916020019161158c565b820191906000526020600020905b81548152906001019060200180831161156f57829003601f168201915b5050505050905090565b61159e611c2e565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561160c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161160390614902565b60405180910390fd5b8060056000611619611c2e565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff166116c6611c2e565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405161170b9190614825565b60405180910390a35050565b611728611722611c2e565b83612562565b611767576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161175e90614aa2565b60405180910390fd5b61177384848484612962565b50505050565b606061178482611c54565b6117c3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117ba90614a42565b60405180910390fd5b6117cc826129be565b9050919050565b6002600a541415611819576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161181090614b02565b60405180910390fd5b6002600a8190555060005b81518110156119b4576000828281518110611868577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020026020010151905061187a611c2e565b73ffffffffffffffffffffffffffffffffffffffff167f000000000000000000000000511372b44231a31527025a3d273c1dc0a83d77af73ffffffffffffffffffffffffffffffffffffffff16636352211e836040518263ffffffff1660e01b81526004016118e99190614b22565b60206040518083038186803b15801561190157600080fd5b505afa158015611915573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119399190613b4e565b73ffffffffffffffffffffffffffffffffffffffff161461198f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161198690614a82565b60405180910390fd5b6119a061199a611c2e565b82611c36565b5080806119ac90614ee8565b915050611824565b506001600a8190555050565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b611a5c611c2e565b73ffffffffffffffffffffffffffffffffffffffff16611a7a6114da565b73ffffffffffffffffffffffffffffffffffffffff1614611ad0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ac7906149e2565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611b40576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b37906148a2565b60405180910390fd5b611b498161289c565b50565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480611c1757507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80611c275750611c2682612c27565b5b9050919050565b600033905090565b611c50828260405180602001604052806000815250612c91565b5050565b60008073ffffffffffffffffffffffffffffffffffffffff166002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16611d33836110d7565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600080611dac611d8885612cec565b604051602001611d9891906145a4565b604051602081830303815290604052612e99565b905082600060028110611de8577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602002015183600060028110611e27577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602002015184600160028110611e66577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020020151611e759190614d9b565b82611e809190614f31565b611e8a9190614cba565b91505092915050565b60607f000000000000000000000000ff9c1b15b16263c61d017ee9f65c50e4ae0113d773ffffffffffffffffffffffffffffffffffffffff16636352211e846040518263ffffffff1660e01b8152600401611eee9190614b22565b60206040518083038186803b158015611f0657600080fd5b505afa925050508015611f3757506040513d601f19601f82011682018060405250810190611f349190613b4e565b60015b611f78576040518060400160405280600a81526020017f3f3f3f3f3f3f3f3f3f3f00000000000000000000000000000000000000000000815250905061255c565b506000821415612037577f000000000000000000000000ff9c1b15b16263c61d017ee9f65c50e4ae0113d773ffffffffffffffffffffffffffffffffffffffff1663ef68075a846040518263ffffffff1660e01b8152600401611fdb9190614b22565b60006040518083038186803b158015611ff357600080fd5b505afa158015612007573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f820116820180604052508101906120309190613db1565b905061255c565b60018214156120f5577f000000000000000000000000ff9c1b15b16263c61d017ee9f65c50e4ae0113d773ffffffffffffffffffffffffffffffffffffffff16630e99990d846040518263ffffffff1660e01b81526004016120999190614b22565b60006040518083038186803b1580156120b157600080fd5b505afa1580156120c5573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f820116820180604052508101906120ee9190613db1565b905061255c565b60028214156121b3577f000000000000000000000000ff9c1b15b16263c61d017ee9f65c50e4ae0113d773ffffffffffffffffffffffffffffffffffffffff1663d47f269e846040518263ffffffff1660e01b81526004016121579190614b22565b60006040518083038186803b15801561216f57600080fd5b505afa158015612183573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f820116820180604052508101906121ac9190613db1565b905061255c565b6003821415612271577f000000000000000000000000ff9c1b15b16263c61d017ee9f65c50e4ae0113d773ffffffffffffffffffffffffffffffffffffffff16639720c969846040518263ffffffff1660e01b81526004016122159190614b22565b60006040518083038186803b15801561222d57600080fd5b505afa158015612241573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f8201168201806040525081019061226a9190613db1565b905061255c565b600482141561232f577f000000000000000000000000ff9c1b15b16263c61d017ee9f65c50e4ae0113d773ffffffffffffffffffffffffffffffffffffffff166367209aa8846040518263ffffffff1660e01b81526004016122d39190614b22565b60006040518083038186803b1580156122eb57600080fd5b505afa1580156122ff573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f820116820180604052508101906123289190613db1565b905061255c565b60058214156123ed577f000000000000000000000000ff9c1b15b16263c61d017ee9f65c50e4ae0113d773ffffffffffffffffffffffffffffffffffffffff1663c08a5dd5846040518263ffffffff1660e01b81526004016123919190614b22565b60006040518083038186803b1580156123a957600080fd5b505afa1580156123bd573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f820116820180604052508101906123e69190613db1565b905061255c565b60068214156124ab577f000000000000000000000000ff9c1b15b16263c61d017ee9f65c50e4ae0113d773ffffffffffffffffffffffffffffffffffffffff16639bdc1b69846040518263ffffffff1660e01b815260040161244f9190614b22565b60006040518083038186803b15801561246757600080fd5b505afa15801561247b573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f820116820180604052508101906124a49190613db1565b905061255c565b7f000000000000000000000000ff9c1b15b16263c61d017ee9f65c50e4ae0113d773ffffffffffffffffffffffffffffffffffffffff16639e41b73f846040518263ffffffff1660e01b81526004016125049190614b22565b60006040518083038186803b15801561251c57600080fd5b505afa158015612530573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f820116820180604052508101906125599190613db1565b90505b92915050565b600061256d82611c54565b6125ac576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016125a390614922565b60405180910390fd5b60006125b7836110d7565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16148061262657508373ffffffffffffffffffffffffffffffffffffffff1661260e8461086b565b73ffffffffffffffffffffffffffffffffffffffff16145b80612637575061263681856119c0565b5b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff16612660826110d7565b73ffffffffffffffffffffffffffffffffffffffff16146126b6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016126ad90614a02565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612726576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161271d906148e2565b60405180910390fd5b612731838383612ecc565b61273c600082611cc0565b6001600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461278c9190614d9b565b925050819055506001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546127e39190614cba565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b6000600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600b60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b61296d848484612640565b61297984848484612fe0565b6129b8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016129af90614882565b60405180910390fd5b50505050565b606060006129cb83612cec565b6040516020016129db919061475f565b604051602081830303815290604052905060006129f784610b3c565b9050600081604051602001612a0c9190614672565b60405160208183030381529060405290506000612a2886610d65565b9050600081604051602001612a3d9190614600565b60405160208183030381529060405290506000612a59886112c9565b90506060608182600060028110612a99577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200201511415612ac957604051602001612ab39061474a565b6040516020818303038152906040529050612b7a565b612b1082600060028110612b06577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020020151612cec565b612b5783600160028110612b4d577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020020151612cec565b604051602001612b6892919061462d565b60405160208183030381529060405290505b6000838683604051602001612b919392919061469f565b60405160208183030381529060405290506000612bad82613177565b604051602001612bbd9190614781565b6040516020818303038152906040529050612bf88982604051602001612be49291906145bb565b604051602081830303815290604052613177565b604051602001612c089190614728565b6040516020818303038152906040529950505050505050505050919050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b612c9b8383613322565b612ca86000848484612fe0565b612ce7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612cde90614882565b60405180910390fd5b505050565b60606000821415612d34576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050612e94565b600082905060005b60008214612d66578080612d4f90614ee8565b915050600a82612d5f9190614d10565b9150612d3c565b60008167ffffffffffffffff811115612da8577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015612dda5781602001600182028036833780820191505090505b5090505b60008514612e8d57600182612df39190614d9b565b9150600a85612e029190614f31565b6030612e0e9190614cba565b60f81b818381518110612e4a577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a85612e869190614d10565b9450612dde565b8093505050505b919050565b600081604051602001612eac91906145a4565b6040516020818303038152906040528051906020012060001c9050919050565b612ed78383836134f0565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415612f1a57612f15816134f5565b612f59565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614612f5857612f57838261353e565b5b5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612f9c57612f97816136ab565b612fdb565b8273ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614612fda57612fd982826137ee565b5b5b505050565b60006130018473ffffffffffffffffffffffffffffffffffffffff1661386d565b1561316a578373ffffffffffffffffffffffffffffffffffffffff1663150b7a0261302a611c2e565b8786866040518563ffffffff1660e01b815260040161304c94939291906147be565b602060405180830381600087803b15801561306657600080fd5b505af192505050801561309757506040513d601f19601f820116820180604052508101906130949190613d88565b60015b61311a573d80600081146130c7576040519150601f19603f3d011682016040523d82523d6000602084013e6130cc565b606091505b50600081511415613112576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161310990614882565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161491505061316f565b600190505b949350505050565b606060008251141561319a5760405180602001604052806000815250905061331d565b6000604051806060016040528060408152602001615ced60409139905060006003600285516131c99190614cba565b6131d39190614d10565b60046131df9190614d41565b905060006020826131f09190614cba565b67ffffffffffffffff81111561322f577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156132615781602001600182028036833780820191505090505b509050818152600183018586518101602084015b818310156132dc576003830192508251603f8160121c1685015160f81b8252600182019150603f81600c1c1685015160f81b8252600182019150603f8160061c1685015160f81b8252600182019150603f811685015160f81b825260018201915050613275565b6003895106600181146132f6576002811461330657613311565b613d3d60f01b6002830352613311565b603d60f81b60018303525b50505050508093505050505b919050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415613392576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613389906149a2565b60405180910390fd5b61339b81611c54565b156133db576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016133d2906148c2565b60405180910390fd5b6133e760008383612ecc565b6001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546134379190614cba565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050565b505050565b6008805490506009600083815260200190815260200160002081905550600881908060018154018082558091505060019003906000526020600020016000909190919091505550565b6000600161354b84611189565b6135559190614d9b565b905060006007600084815260200190815260200160002054905081811461363a576000600660008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002054905080600660008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002081905550816007600083815260200190815260200160002081905550505b6007600084815260200190815260200160002060009055600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008381526020019081526020016000206000905550505050565b600060016008805490506136bf9190614d9b565b9050600060096000848152602001908152602001600020549050600060088381548110613715577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b90600052602060002001549050806008838154811061375d577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9060005260206000200181905550816009600083815260200190815260200160002081905550600960008581526020019081526020016000206000905560088054806137d2577f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b6001900381819060005260206000200160009055905550505050565b60006137f983611189565b905081600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002081905550806007600084815260200190815260200160002081905550505050565b600080823b905060008111915050919050565b6040518060400160405280600290602082028036833780820191505090505090565b60006138b56138b084614b8b565b614b66565b905080828560208602820111156138cb57600080fd5b60005b858110156138fb57816138e18882613b10565b8452602084019350602083019250506001810190506138ce565b5050509392505050565b600061391861391384614bb1565b614b66565b9050808382526020820190508285602086028201111561393757600080fd5b60005b85811015613967578161394d8882613afb565b84526020840193506020830192505060018101905061393a565b5050509392505050565b600061398461397f84614bdd565b614b66565b90508281526020810184848401111561399c57600080fd5b6139a7848285614e43565b509392505050565b60006139c26139bd84614c0e565b614b66565b9050828152602081018484840111156139da57600080fd5b6139e5848285614e52565b509392505050565b6000813590506139fc81615c90565b92915050565b600081519050613a1181615c90565b92915050565b600082601f830112613a2857600080fd5b6002613a358482856138a2565b91505092915050565b600082601f830112613a4f57600080fd5b8135613a5f848260208601613905565b91505092915050565b600081359050613a7781615ca7565b92915050565b600081359050613a8c81615cbe565b92915050565b600081519050613aa181615cbe565b92915050565b600082601f830112613ab857600080fd5b8135613ac8848260208601613971565b91505092915050565b600082601f830112613ae257600080fd5b8151613af28482602086016139af565b91505092915050565b600081359050613b0a81615cd5565b92915050565b600081519050613b1f81615cd5565b92915050565b600060208284031215613b3757600080fd5b6000613b45848285016139ed565b91505092915050565b600060208284031215613b6057600080fd5b6000613b6e84828501613a02565b91505092915050565b60008060408385031215613b8a57600080fd5b6000613b98858286016139ed565b9250506020613ba9858286016139ed565b9150509250929050565b600080600060608486031215613bc857600080fd5b6000613bd6868287016139ed565b9350506020613be7868287016139ed565b9250506040613bf886828701613afb565b9150509250925092565b60008060008060808587031215613c1857600080fd5b6000613c26878288016139ed565b9450506020613c37878288016139ed565b9350506040613c4887828801613afb565b925050606085013567ffffffffffffffff811115613c6557600080fd5b613c7187828801613aa7565b91505092959194509250565b60008060408385031215613c9057600080fd5b6000613c9e858286016139ed565b9250506020613caf85828601613a68565b9150509250929050565b60008060408385031215613ccc57600080fd5b6000613cda858286016139ed565b9250506020613ceb85828601613afb565b9150509250929050565b600060408284031215613d0757600080fd5b6000613d1584828501613a17565b91505092915050565b600060208284031215613d3057600080fd5b600082013567ffffffffffffffff811115613d4a57600080fd5b613d5684828501613a3e565b91505092915050565b600060208284031215613d7157600080fd5b6000613d7f84828501613a7d565b91505092915050565b600060208284031215613d9a57600080fd5b6000613da884828501613a92565b91505092915050565b600060208284031215613dc357600080fd5b600082015167ffffffffffffffff811115613ddd57600080fd5b613de984828501613ad1565b91505092915050565b600060208284031215613e0457600080fd5b6000613e1284828501613afb565b91505092915050565b600060208284031215613e2d57600080fd5b6000613e3b84828501613b10565b91505092915050565b6000613e508383614586565b60208301905092915050565b613e6581614dcf565b82525050565b613e7481614c49565b613e7e8184614c77565b9250613e8982614c3f565b8060005b83811015613eba578151613ea18782613e44565b9650613eac83614c6a565b925050600181019050613e8d565b505050505050565b613ecb81614de1565b82525050565b6000613edc82614c54565b613ee68185614c82565b9350613ef6818560208601614e52565b613eff8161501e565b840191505092915050565b6000613f1582614c54565b613f1f8185614c93565b9350613f2f818560208601614e52565b80840191505092915050565b6000613f4682614c5f565b613f508185614c9e565b9350613f60818560208601614e52565b613f698161501e565b840191505092915050565b6000613f7f82614c5f565b613f898185614caf565b9350613f99818560208601614e52565b80840191505092915050565b6000613fb2600683614caf565b9150613fbd8261502f565b600682019050919050565b6000613fd5600983614caf565b9150613fe082615058565b600982019050919050565b6000613ff8602b83614c9e565b915061400382615081565b604082019050919050565b600061401b603283614c9e565b9150614026826150d0565b604082019050919050565b600061403e602683614c9e565b91506140498261511f565b604082019050919050565b6000614061605583614caf565b915061406c8261516e565b605582019050919050565b6000614084601c83614c9e565b915061408f826151e3565b602082019050919050565b60006140a7601983614caf565b91506140b28261520c565b601982019050919050565b60006140ca602483614c9e565b91506140d582615235565b604082019050919050565b60006140ed601983614c9e565b91506140f882615284565b602082019050919050565b6000614110605583614caf565b915061411b826152ad565b605582019050919050565b6000614133602c83614c9e565b915061413e82615322565b604082019050919050565b6000614156603883614c9e565b915061416182615371565b604082019050919050565b600061417960b783614caf565b9150614184826153c0565b60b782019050919050565b600061419c602a83614c9e565b91506141a7826154a7565b604082019050919050565b60006141bf602983614c9e565b91506141ca826154f6565b604082019050919050565b60006141e2600c83614caf565b91506141ed82615545565b600c82019050919050565b6000614205600783614caf565b91506142108261556e565b600782019050919050565b6000614228606a83614caf565b915061423382615597565b606a82019050919050565b600061424b602083614c9e565b915061425682615632565b602082019050919050565b600061426e600983614caf565b91506142798261565b565b600982019050919050565b6000614291602383614caf565b915061429c82615684565b602382019050919050565b60006142b4601883614caf565b91506142bf826156d3565b601882019050919050565b60006142d7602c83614c9e565b91506142e2826156fc565b604082019050919050565b60006142fa602083614c9e565b91506143058261574b565b602082019050919050565b600061431d602983614c9e565b915061432882615774565b604082019050919050565b6000614340601383614c9e565b915061434b826157c3565b602082019050919050565b6000614363602f83614c9e565b915061436e826157ec565b604082019050919050565b6000614386600483614caf565b91506143918261583b565b600482019050919050565b60006143a9602183614c9e565b91506143b482615864565b604082019050919050565b60006143cc60a883614caf565b91506143d7826158b3565b60a882019050919050565b60006143ef603483614c9e565b91506143fa8261599a565b604082019050919050565b6000614412601d83614caf565b915061441d826159e9565b601d82019050919050565b6000614435600083614caf565b915061444082615a12565b600082019050919050565b6000614458602683614caf565b915061446382615a15565b602682019050919050565b600061447b603183614c9e565b915061448682615a64565b604082019050919050565b600061449e602c83614c9e565b91506144a982615ab3565b604082019050919050565b60006144c1600a83614caf565b91506144cc82615b02565b600a82019050919050565b60006144e4606983614caf565b91506144ef82615b2b565b606982019050919050565b6000614507603583614c9e565b915061451282615bc6565b604082019050919050565b600061452a601f83614c9e565b915061453582615c15565b602082019050919050565b600061454d600683614caf565b915061455882615c3e565b600682019050919050565b6000614570601a83614caf565b915061457b82615c67565b601a82019050919050565b61458f81614e39565b82525050565b61459e81614e39565b82525050565b60006145b08284613f74565b915081905092915050565b60006145c682613fc8565b91506145d28285613f74565b91506145dd826141d5565b91506145e98284613f0a565b91506145f48261416c565b91508190509392505050565b600061460b82614054565b91506146178284613f74565b9150614622826141f8565b915081905092915050565b60006146388261409a565b91506146448285613f74565b915061464f82613fa5565b915061465b8284613f74565b915061466682614261565b91508190509392505050565b600061467d82614103565b91506146898284613f74565b9150614694826141f8565b915081905092915050565b60006146aa826143bf565b91506146b68286613f74565b91506146c1826144d7565b91506146cd8285613f74565b91506146d882614284565b91506146e38261421b565b91506146ee8261444b565b91506146f9826142a7565b91506147058284613f74565b915061471082614379565b915061471b82614540565b9150819050949350505050565b600061473382614405565b915061473f8284613f74565b915081905092915050565b600061475582614428565b9150819050919050565b600061476a826144b4565b91506147768284613f74565b915081905092915050565b600061478c82614563565b91506147988284613f74565b915081905092915050565b60006020820190506147b86000830184613e5c565b92915050565b60006080820190506147d36000830187613e5c565b6147e06020830186613e5c565b6147ed6040830185614595565b81810360608301526147ff8184613ed1565b905095945050505050565b600060408201905061481f6000830184613e6b565b92915050565b600060208201905061483a6000830184613ec2565b92915050565b6000602082019050818103600083015261485a8184613f3b565b905092915050565b6000602082019050818103600083015261487b81613feb565b9050919050565b6000602082019050818103600083015261489b8161400e565b9050919050565b600060208201905081810360008301526148bb81614031565b9050919050565b600060208201905081810360008301526148db81614077565b9050919050565b600060208201905081810360008301526148fb816140bd565b9050919050565b6000602082019050818103600083015261491b816140e0565b9050919050565b6000602082019050818103600083015261493b81614126565b9050919050565b6000602082019050818103600083015261495b81614149565b9050919050565b6000602082019050818103600083015261497b8161418f565b9050919050565b6000602082019050818103600083015261499b816141b2565b9050919050565b600060208201905081810360008301526149bb8161423e565b9050919050565b600060208201905081810360008301526149db816142ca565b9050919050565b600060208201905081810360008301526149fb816142ed565b9050919050565b60006020820190508181036000830152614a1b81614310565b9050919050565b60006020820190508181036000830152614a3b81614333565b9050919050565b60006020820190508181036000830152614a5b81614356565b9050919050565b60006020820190508181036000830152614a7b8161439c565b9050919050565b60006020820190508181036000830152614a9b816143e2565b9050919050565b60006020820190508181036000830152614abb8161446e565b9050919050565b60006020820190508181036000830152614adb81614491565b9050919050565b60006020820190508181036000830152614afb816144fa565b9050919050565b60006020820190508181036000830152614b1b8161451d565b9050919050565b6000602082019050614b376000830184614595565b92915050565b6000604082019050614b526000830185614595565b614b5f6020830184614595565b9392505050565b6000614b70614b81565b9050614b7c8282614eb7565b919050565b6000604051905090565b600067ffffffffffffffff821115614ba657614ba5614fef565b5b602082029050919050565b600067ffffffffffffffff821115614bcc57614bcb614fef565b5b602082029050602081019050919050565b600067ffffffffffffffff821115614bf857614bf7614fef565b5b614c018261501e565b9050602081019050919050565b600067ffffffffffffffff821115614c2957614c28614fef565b5b614c328261501e565b9050602081019050919050565b6000819050919050565b600060029050919050565b600081519050919050565b600081519050919050565b6000602082019050919050565b600081905092915050565b600082825260208201905092915050565b600081905092915050565b600082825260208201905092915050565b600081905092915050565b6000614cc582614e39565b9150614cd083614e39565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115614d0557614d04614f62565b5b828201905092915050565b6000614d1b82614e39565b9150614d2683614e39565b925082614d3657614d35614f91565b5b828204905092915050565b6000614d4c82614e39565b9150614d5783614e39565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615614d9057614d8f614f62565b5b828202905092915050565b6000614da682614e39565b9150614db183614e39565b925082821015614dc457614dc3614f62565b5b828203905092915050565b6000614dda82614e19565b9050919050565b60008115159050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b82818337600083830152505050565b60005b83811015614e70578082015181840152602081019050614e55565b83811115614e7f576000848401525b50505050565b60006002820490506001821680614e9d57607f821691505b60208210811415614eb157614eb0614fc0565b5b50919050565b614ec08261501e565b810181811067ffffffffffffffff82111715614edf57614ede614fef565b5b80604052505050565b6000614ef382614e39565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415614f2657614f25614f62565b5b600182019050919050565b6000614f3c82614e39565b9150614f4783614e39565b925082614f5757614f56614f91565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000601f19601f8301169050919050565b7f222063793d220000000000000000000000000000000000000000000000000000600082015250565b7f7b226e616d65223a220000000000000000000000000000000000000000000000600082015250565b7f455243373231456e756d657261626c653a206f776e657220696e646578206f7560008201527f74206f6620626f756e6473000000000000000000000000000000000000000000602082015250565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f3c7465787420646f6d696e616e742d626173656c696e653d226d6964646c652260008201527f20746578742d616e63686f723d226d6964646c65222066696c6c3d227768697460208201527f652220783d223530252220793d223131307078223e0000000000000000000000604082015250565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b7f3c636972636c652066696c6c3d227768697465222063783d2200000000000000600082015250565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b7f3c7465787420646f6d696e616e742d626173656c696e653d226d6964646c652260008201527f20746578742d616e63686f723d226d6964646c65222066696c6c3d227768697460208201527f652220783d223530252220793d223135307078223e0000000000000000000000604082015250565b7f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760008201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000602082015250565b7f222c20226465736372697074696f6e223a20224c6f6f74204d6170732061726560008201527f2072616e646f6d6c792067656e657261746564206c6f636174696f6e7320746160208201527f6b656e2066726f6d20746865204d61702050726f6a65637420636f6d62696e6560408201527f6420776974682072616e646f6d6c792073656c6563746564204c6f6f7420697460608201527f656d732066726f6d20746865204c6f6f742050726f6a6563742c20757365207460808201527f68656d20686f776576657220796f7520776973682e227d00000000000000000060a082015250565b7f4552433732313a2062616c616e636520717565727920666f7220746865207a6560008201527f726f206164647265737300000000000000000000000000000000000000000000602082015250565b7f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460008201527f656e7420746f6b656e0000000000000000000000000000000000000000000000602082015250565b7f222c2022696d616765223a220000000000000000000000000000000000000000600082015250565b7f3c2f746578743e00000000000000000000000000000000000000000000000000600082015250565b7f3c72656374207472616e73666f726d3d227472616e736c617465282d332c202d60008201527f3329222077696474683d2231333422206865696768743d22313334222066696c60208201527f6c3d226e6f6e6522207374726f6b653d22776869746522207374726f6b652d7760408201527f696474683d2232222f3e00000000000000000000000000000000000000000000606082015250565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b7f2220723d2234222f3e0000000000000000000000000000000000000000000000600082015250565b7f3c67207472616e73666f726d3d227472616e736c617465283133332c2032363060008201527f29223e0000000000000000000000000000000000000000000000000000000000602082015250565b7f3c6c696e652078313d223530222079323d22353022202f3e0000000000000000600082015250565b7f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960008201527f73206e6f74206f776e0000000000000000000000000000000000000000000000602082015250565b7f546f6b656e20494420697320696e76616c696400000000000000000000000000600082015250565b7f4552433732314d657461646174613a2055524920717565727920666f72206e6f60008201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000602082015250565b7f3c2f673e00000000000000000000000000000000000000000000000000000000600082015250565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b7f3c73766720786d6c6e733d22687474703a2f2f7777772e77332e6f72672f323060008201527f30302f737667222076696577426f783d2230203020343030203430302220707260208201527f657365727665417370656374526174696f3d22784d6964594d6964206d65657460408201527f22207374796c653d22666f6e743a31367078207365726966223e3c726563742060608201527f77696474683d2234303022206865696768743d22343030222066696c6c3d226260808201527f6c61636b22202f3e00000000000000000000000000000000000000000000000060a082015250565b7f53656e64657220646f6573206e6f74206f776e2031206f72206d6f7265204d6160008201527f7020546f6b656e204964732070726f7669646564000000000000000000000000602082015250565b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c000000600082015250565b50565b7f3c6c696e652078313d2230222078323d223530222079313d2230222079323d2260008201527f353022202f3e0000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60008201527f776e6572206e6f7220617070726f766564000000000000000000000000000000602082015250565b7f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60008201527f7574206f6620626f756e64730000000000000000000000000000000000000000602082015250565b7f4c6f6f74204d6170202300000000000000000000000000000000000000000000600082015250565b7f3c7465787420646f6d696e616e742d626173656c696e653d226d6964646c652260008201527f20746578742d616e63686f723d226d6964646c65222066696c6c3d227768697460208201527f652220783d223530252220793d223133307078223e646973636f76657265642060408201527f61743c2f746578743e0000000000000000000000000000000000000000000000606082015250565b7f53656e64657220646f6573206e6f74206f776e2031206f72206d6f7265204c6f60008201527f6f7420546f6b656e204964732070726f76696465640000000000000000000000602082015250565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b7f3c2f7376673e0000000000000000000000000000000000000000000000000000600082015250565b7f646174613a696d6167652f7376672b786d6c3b6261736536342c000000000000600082015250565b615c9981614dcf565b8114615ca457600080fd5b50565b615cb081614de1565b8114615cbb57600080fd5b50565b615cc781614ded565b8114615cd257600080fd5b50565b615cde81614e39565b8114615ce957600080fd5b5056fe4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2fa2646970667358221220d5880dd5b7cb491b991a689d45ee6b74749e7d8054eab268b4666b931f1643dc64736f6c63430008040033

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

000000000000000000000000511372b44231a31527025a3d273c1dc0a83d77af000000000000000000000000ff9c1b15b16263c61d017ee9f65c50e4ae0113d7

-----Decoded View---------------
Arg [0] : mapAddress (address): 0x511372B44231a31527025a3D273C1dc0a83D77aF
Arg [1] : lootAddress (address): 0xFF9C1b15B16263C61d017ee9F65C50e4AE0113D7

-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 000000000000000000000000511372b44231a31527025a3d273c1dc0a83d77af
Arg [1] : 000000000000000000000000ff9c1b15b16263c61d017ee9f65c50e4ae0113d7


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.