ETH Price: $3,399.98 (+1.25%)
Gas: 9 Gwei

Token

OniiChain (ONII)
 

Overview

Max Total Supply

161 ONII

Holders

32

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Balance
2 ONII
0xA4ba0b7797047a5ad64e32cb0e4147655DB619Aa
Loading...
Loading
Loading...
Loading
Loading...
Loading

OVERVIEW

-The most advanced 100% On-chain Avatars. -Randomly Generated with ChainlinkVRF.

# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
OniiChain

Compiler Version
v0.8.0+commit.c7dfd78e

Optimization Enabled:
Yes with 800 runs

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

pragma abicoder v2;

import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "./interfaces/IOniiChain.sol";
import "./interfaces/IOniiChainDescriptor.sol";
import "./chainlink/VRFConsumerBase.sol";

/// @title OniiChain NFTs
/// @notice On-chain generated NFTs
contract OniiChain is ERC721Enumerable, Ownable, IOniiChain, ReentrancyGuard, VRFConsumerBase {
    /// @dev Price for one Onii (at the beggining)
    uint256 private constant _unitPrice = 0.02 ether;

    /// @dev Increase of the price every step
    uint256 private constant _increasedPrice = 0.005 ether;

    /// @dev Number of sales to increase the price
    uint256 private constant _step = 5000;

    /// @dev Count the number of calls to the create function
    uint256 private createCall = 0;

    /// @dev The token ID onii detail
    mapping(uint256 => Detail) private _detail;

    /// @dev The address of the token descriptor contract, which handles generating token URIs.
    address private immutable _tokenDescriptor;

    /// @dev all oniis generated based on ids hash
    mapping(bytes32 => bool) private oniis;

    /// @dev Chainlink keyhash
    bytes32 internal keyHash;

    /// @dev Chainlink RNG fee
    uint256 internal fee;

    /// @dev Number received from chainlink RNG
    uint256 internal randomResult = 0;

    /// @dev Rate to request RN to chainlink
    uint256 public chainlinkRate = 20;

    constructor(address _tokenDescriptor_)
        ERC721("OniiChain", "ONII")
        VRFConsumerBase(
            0xf0d54349aDdcf704F77AE15b96510dEA15cb7952, // VRF Coordinator
            0x514910771AF9Ca656af840dff83E8264EcF986CA // LINK Token
        )
    {
        _tokenDescriptor = _tokenDescriptor_;
        keyHash = 0xAA77729D3466CA35AE8D28B3BBAC7CC36A5031EFDC430821C02BC31A238AF445;
        fee = 2 * 10**18;
    }

    // save bytecode by removing implementation of unused method
    function _baseURI() internal view virtual override returns (string memory) {}

    function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
        require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token");
        return IOniiChainDescriptor(_tokenDescriptor).tokenURI(this, tokenId);
    }

    /// @notice Create randomly an Onii
    /// @param qty The quantity to buy
    function create(uint256 qty) public payable nonReentrant {
        require(msg.value >= getUnitPrice() * qty, "Ether sent is not correct");
        createCall++;

        // Every "chainlinkRate" calls, update randomResult
        if (createCall % chainlinkRate == 0 && LINK.balanceOf(address(this)) >= fee) {
            requestRandomness(keyHash, fee);
        }

        for (uint256 i; i < qty; i++) {
            uint256 seed = (block.timestamp + randomResult) << (i + 1);
            uint256 nextTokenId = totalSupply() + 1;
            Detail memory newDetail = Detail({
                hair: IOniiChainDescriptor(_tokenDescriptor).generateHairId(nextTokenId, seed),
                eye: IOniiChainDescriptor(_tokenDescriptor).generateEyeId(nextTokenId, seed),
                eyebrow: IOniiChainDescriptor(_tokenDescriptor).generateEyebrowId(nextTokenId, seed),
                nose: IOniiChainDescriptor(_tokenDescriptor).generateNoseId(nextTokenId, seed),
                mouth: IOniiChainDescriptor(_tokenDescriptor).generateMouthId(nextTokenId, seed),
                mark: IOniiChainDescriptor(_tokenDescriptor).generateMarkId(nextTokenId, seed),
                earrings: IOniiChainDescriptor(_tokenDescriptor).generateEarringsId(nextTokenId, seed),
                accessory: IOniiChainDescriptor(_tokenDescriptor).generateAccessoryId(nextTokenId, seed),
                mask: IOniiChainDescriptor(_tokenDescriptor).generateMaskId(nextTokenId, seed),
                skin: IOniiChainDescriptor(_tokenDescriptor).generateSkinId(nextTokenId, seed),
                original: true,
                timestamp: block.timestamp,
                creator: msg.sender
            });
            newDetail.original = copyOnii(newDetail);
            _detail[nextTokenId] = newDetail;
            _safeMint(msg.sender, nextTokenId);
        }
    }

    /// @notice Get the current price of one Onii
    /// The price is progressive. Every 5000 sales, the price increases by 0.01 ether
    /// @return The Onii price
    function getUnitPrice() public view returns (uint256) {
        return ((totalSupply() / _step) * _increasedPrice) + _unitPrice;
    }

    function updateChainlinkRate(uint256 _chainlinkRate) external onlyOwner {
        require(_chainlinkRate > 0, "Must be > 0");
        chainlinkRate = _chainlinkRate;
    }

    /// @notice Send funds from sales to the team
    function withdrawAll() public payable onlyOwner {
        uint256 amount = address(this).balance;
        require(payable(0x838D23a8A17adaa6866969b86D35Ac0941C67510).send((amount * 45) / 100));
        require(payable(0x29B862E8c25e7f0fa5b2A89b65b186d18D45f54e).send((amount * 55) / 100));
    }

    /// @inheritdoc IOniiChain
    function details(uint256 tokenId) external view override returns (Detail memory detail) {
        detail = _detail[tokenId];
    }

    /// @dev Callback function used by VRF Coordinator
    function fulfillRandomness(bytes32 requestId, uint256 randomness) internal override {
        randomResult = randomness;
    }

    /// @dev Check is an onii already exists (based on details)
    /// @return False if it already exists, true if not
    function copyOnii(Detail memory detail) internal returns (bool) {
        bytes32 hash = keccak256(
            abi.encode(
                detail.hair,
                detail.eye,
                detail.eyebrow,
                detail.nose,
                detail.mouth,
                detail.mark,
                detail.earrings,
                detail.accessory,
                detail.mask,
                detail.skin
            )
        );
        if (!oniis[hash]) {
            oniis[hash] = true;
            return true;
        } else {
            return false;
        }
    }
}

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

File 4 of 19 : 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 5 of 19 : IOniiChain.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

pragma abicoder v2;

/// @title OniiChain NFTs Interface
interface IOniiChain {
    /// @notice Details about the Onii
    struct Detail {
        uint8 hair;
        uint8 eye;
        uint8 eyebrow;
        uint8 nose;
        uint8 mouth;
        uint8 mark;
        uint8 earrings;
        uint8 accessory;
        uint8 mask;
        uint8 skin;
        bool original;
        uint256 timestamp;
        address creator;
    }

    /// @notice Returns the details associated with a given token ID.
    /// @dev Throws if the token ID is not valid.
    /// @param tokenId The ID of the token that represents the Onii
    /// @return detail memory
    function details(uint256 tokenId) external view returns (Detail memory detail);
}

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

pragma abicoder v2;

import "./IOniiChain.sol";

/// @title Describes Onii via URI
interface IOniiChainDescriptor {
    /// @notice Produces the URI describing a particular Onii (token id)
    /// @dev Note this URI may be a data: URI with the JSON contents directly inlined
    /// @param oniiChain The OniiChain contract
    /// @param tokenId The ID of the token for which to produce a description
    /// @return The URI of the ERC721-compliant metadata
    function tokenURI(IOniiChain oniiChain, uint256 tokenId) external view returns (string memory);

    /// @notice Generate randomly an ID for the hair item
    /// @param tokenId the current tokenId
    /// @param seed Used for the initialization of the number generator.
    /// @return the hair item id
    function generateHairId(uint256 tokenId, uint256 seed) external view returns (uint8);

    /// @notice Generate randomly an ID for the eye item
    /// @param tokenId the current tokenId
    /// @param seed Used for the initialization of the number generator.
    /// @return the eye item id
    function generateEyeId(uint256 tokenId, uint256 seed) external view returns (uint8);

    /// @notice Generate randomly an ID for the eyebrow item
    /// @param tokenId the current tokenId
    /// @param seed Used for the initialization of the number generator.
    /// @return the eyebrow item id
    function generateEyebrowId(uint256 tokenId, uint256 seed) external view returns (uint8);

    /// @notice Generate randomly an ID for the nose item
    /// @param tokenId the current tokenId
    /// @param seed Used for the initialization of the number generator.
    /// @return the nose item id
    function generateNoseId(uint256 tokenId, uint256 seed) external view returns (uint8);

    /// @notice Generate randomly an ID for the mouth item
    /// @param tokenId the current tokenId
    /// @param seed Used for the initialization of the number generator.
    /// @return the mouth item id
    function generateMouthId(uint256 tokenId, uint256 seed) external view returns (uint8);

    /// @notice Generate randomly an ID for the mark item
    /// @param tokenId the current tokenId
    /// @param seed Used for the initialization of the number generator.
    /// @return the mark item id
    function generateMarkId(uint256 tokenId, uint256 seed) external view returns (uint8);

    /// @notice Generate randomly an ID for the earrings item
    /// @param tokenId the current tokenId
    /// @param seed Used for the initialization of the number generator.
    /// @return the earrings item id
    function generateEarringsId(uint256 tokenId, uint256 seed) external view returns (uint8);

    /// @notice Generate randomly an ID for the accessory item
    /// @param tokenId the current tokenId
    /// @param seed Used for the initialization of the number generator.
    /// @return the accessory item id
    function generateAccessoryId(uint256 tokenId, uint256 seed) external view returns (uint8);

    /// @notice Generate randomly an ID for the mask item
    /// @param tokenId the current tokenId
    /// @param seed Used for the initialization of the number generator.
    /// @return the mask item id
    function generateMaskId(uint256 tokenId, uint256 seed) external view returns (uint8);

    /// @notice Generate randomly the skin colors
    /// @param tokenId the current tokenId
    /// @param seed Used for the initialization of the number generator.
    /// @return the skin item id
    function generateSkinId(uint256 tokenId, uint256 seed) external view returns (uint8);
}

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

import "./interfaces/LinkTokenInterface.sol";

import "./VRFRequestIDBase.sol";

/** ****************************************************************************
 * @notice Interface for contracts using VRF randomness
 * *****************************************************************************
 * @dev PURPOSE
 *
 * @dev Reggie the Random Oracle (not his real job) wants to provide randomness
 * @dev to Vera the verifier in such a way that Vera can be sure he's not
 * @dev making his output up to suit himself. Reggie provides Vera a public key
 * @dev to which he knows the secret key. Each time Vera provides a seed to
 * @dev Reggie, he gives back a value which is computed completely
 * @dev deterministically from the seed and the secret key.
 *
 * @dev Reggie provides a proof by which Vera can verify that the output was
 * @dev correctly computed once Reggie tells it to her, but without that proof,
 * @dev the output is indistinguishable to her from a uniform random sample
 * @dev from the output space.
 *
 * @dev The purpose of this contract is to make it easy for unrelated contracts
 * @dev to talk to Vera the verifier about the work Reggie is doing, to provide
 * @dev simple access to a verifiable source of randomness.
 * *****************************************************************************
 * @dev USAGE
 *
 * @dev Calling contracts must inherit from VRFConsumerBase, and can
 * @dev initialize VRFConsumerBase's attributes in their constructor as
 * @dev shown:
 *
 * @dev   contract VRFConsumer {
 * @dev     constuctor(<other arguments>, address _vrfCoordinator, address _link)
 * @dev       VRFConsumerBase(_vrfCoordinator, _link) public {
 * @dev         <initialization with other arguments goes here>
 * @dev       }
 * @dev   }
 *
 * @dev The oracle will have given you an ID for the VRF keypair they have
 * @dev committed to (let's call it keyHash), and have told you the minimum LINK
 * @dev price for VRF service. Make sure your contract has sufficient LINK, and
 * @dev call requestRandomness(keyHash, fee, seed), where seed is the input you
 * @dev want to generate randomness from.
 *
 * @dev Once the VRFCoordinator has received and validated the oracle's response
 * @dev to your request, it will call your contract's fulfillRandomness method.
 *
 * @dev The randomness argument to fulfillRandomness is the actual random value
 * @dev generated from your seed.
 *
 * @dev The requestId argument is generated from the keyHash and the seed by
 * @dev makeRequestId(keyHash, seed). If your contract could have concurrent
 * @dev requests open, you can use the requestId to track which seed is
 * @dev associated with which randomness. See VRFRequestIDBase.sol for more
 * @dev details. (See "SECURITY CONSIDERATIONS" for principles to keep in mind,
 * @dev if your contract could have multiple requests in flight simultaneously.)
 *
 * @dev Colliding `requestId`s are cryptographically impossible as long as seeds
 * @dev differ. (Which is critical to making unpredictable randomness! See the
 * @dev next section.)
 *
 * *****************************************************************************
 * @dev SECURITY CONSIDERATIONS
 *
 * @dev A method with the ability to call your fulfillRandomness method directly
 * @dev could spoof a VRF response with any random value, so it's critical that
 * @dev it cannot be directly called by anything other than this base contract
 * @dev (specifically, by the VRFConsumerBase.rawFulfillRandomness method).
 *
 * @dev For your users to trust that your contract's random behavior is free
 * @dev from malicious interference, it's best if you can write it so that all
 * @dev behaviors implied by a VRF response are executed *during* your
 * @dev fulfillRandomness method. If your contract must store the response (or
 * @dev anything derived from it) and use it later, you must ensure that any
 * @dev user-significant behavior which depends on that stored value cannot be
 * @dev manipulated by a subsequent VRF request.
 *
 * @dev Similarly, both miners and the VRF oracle itself have some influence
 * @dev over the order in which VRF responses appear on the blockchain, so if
 * @dev your contract could have multiple VRF requests in flight simultaneously,
 * @dev you must ensure that the order in which the VRF responses arrive cannot
 * @dev be used to manipulate your contract's user-significant behavior.
 *
 * @dev Since the ultimate input to the VRF is mixed with the block hash of the
 * @dev block in which the request is made, user-provided seeds have no impact
 * @dev on its economic security properties. They are only included for API
 * @dev compatability with previous versions of this contract.
 *
 * @dev Since the block hash of the block which contains the requestRandomness
 * @dev call is mixed into the input to the VRF *last*, a sufficiently powerful
 * @dev miner could, in principle, fork the blockchain to evict the block
 * @dev containing the request, forcing the request to be included in a
 * @dev different block with a different hash, and therefore a different input
 * @dev to the VRF. However, such an attack would incur a substantial economic
 * @dev cost. This cost scales with the number of blocks the VRF oracle waits
 * @dev until it calls responds to a request.
 */
abstract contract VRFConsumerBase is VRFRequestIDBase {
    /**
     * @notice fulfillRandomness handles the VRF response. Your contract must
     * @notice implement it. See "SECURITY CONSIDERATIONS" above for important
     * @notice principles to keep in mind when implementing your fulfillRandomness
     * @notice method.
     *
     * @dev VRFConsumerBase expects its subcontracts to have a method with this
     * @dev signature, and will call it once it has verified the proof
     * @dev associated with the randomness. (It is triggered via a call to
     * @dev rawFulfillRandomness, below.)
     *
     * @param requestId The Id initially returned by requestRandomness
     * @param randomness the VRF output
     */
    function fulfillRandomness(bytes32 requestId, uint256 randomness) internal virtual;

    /**
     * @dev In order to keep backwards compatibility we have kept the user
     * seed field around. We remove the use of it because given that the blockhash
     * enters later, it overrides whatever randomness the used seed provides.
     * Given that it adds no security, and can easily lead to misunderstandings,
     * we have removed it from usage and can now provide a simpler API.
     */
    uint256 private constant USER_SEED_PLACEHOLDER = 0;

    /**
     * @notice requestRandomness initiates a request for VRF output given _seed
     *
     * @dev The fulfillRandomness method receives the output, once it's provided
     * @dev by the Oracle, and verified by the vrfCoordinator.
     *
     * @dev The _keyHash must already be registered with the VRFCoordinator, and
     * @dev the _fee must exceed the fee specified during registration of the
     * @dev _keyHash.
     *
     * @dev The _seed parameter is vestigial, and is kept only for API
     * @dev compatibility with older versions. It can't *hurt* to mix in some of
     * @dev your own randomness, here, but it's not necessary because the VRF
     * @dev oracle will mix the hash of the block containing your request into the
     * @dev VRF seed it ultimately uses.
     *
     * @param _keyHash ID of public key against which randomness is generated
     * @param _fee The amount of LINK to send with the request
     *
     * @return requestId unique ID for this request
     *
     * @dev The returned requestId can be used to distinguish responses to
     * @dev concurrent requests. It is passed as the first argument to
     * @dev fulfillRandomness.
     */
    function requestRandomness(bytes32 _keyHash, uint256 _fee) internal returns (bytes32 requestId) {
        LINK.transferAndCall(vrfCoordinator, _fee, abi.encode(_keyHash, USER_SEED_PLACEHOLDER));
        // This is the seed passed to VRFCoordinator. The oracle will mix this with
        // the hash of the block containing this request to obtain the seed/input
        // which is finally passed to the VRF cryptographic machinery.
        uint256 vRFSeed = makeVRFInputSeed(_keyHash, USER_SEED_PLACEHOLDER, address(this), nonces[_keyHash]);
        // nonces[_keyHash] must stay in sync with
        // VRFCoordinator.nonces[_keyHash][this], which was incremented by the above
        // successful LINK.transferAndCall (in VRFCoordinator.randomnessRequest).
        // This provides protection against the user repeating their input seed,
        // which would result in a predictable/duplicate output, if multiple such
        // requests appeared in the same block.
        nonces[_keyHash] = nonces[_keyHash] + 1;
        return makeRequestId(_keyHash, vRFSeed);
    }

    LinkTokenInterface internal immutable LINK;
    address private immutable vrfCoordinator;

    // Nonces for each VRF key from which randomness has been requested.
    //
    // Must stay in sync with VRFCoordinator[_keyHash][this]
    mapping(bytes32 => uint256) /* keyHash */ /* nonce */
        private nonces;

    /**
     * @param _vrfCoordinator address of VRFCoordinator contract
     * @param _link address of LINK token contract
     *
     * @dev https://docs.chain.link/docs/link-token-contracts
     */
    constructor(address _vrfCoordinator, address _link) {
        vrfCoordinator = _vrfCoordinator;
        LINK = LinkTokenInterface(_link);
    }

    // rawFulfillRandomness is called by VRFCoordinator when it receives a valid VRF
    // proof. rawFulfillRandomness then calls fulfillRandomness, after validating
    // the origin of the call
    function rawFulfillRandomness(bytes32 requestId, uint256 randomness) external {
        require(msg.sender == vrfCoordinator, "Only VRFCoordinator can fulfill");
        fulfillRandomness(requestId, randomness);
    }
}

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

pragma solidity ^0.8.0;

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

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

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        _approve(to, tokenId);
    }

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

        return _tokenApprovals[tokenId];
    }

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

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

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

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

        _transfer(from, to, tokenId);
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        _beforeTokenTransfer(from, to, tokenId);

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

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

        emit Transfer(from, to, tokenId);
    }

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

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

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

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

pragma solidity ^0.8.0;

import "../IERC721.sol";

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

File 11 of 19 : IERC721Receiver.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

pragma solidity ^0.8.0;

import "../IERC721.sol";

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    function _verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) private pure returns (bytes memory) {
        if (success) {
            return returndata;
        } else {
            // Look for revert reason and bubble it up if present
            if (returndata.length > 0) {
                // The easiest way to bubble the revert reason is using memory via assembly

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

File 14 of 19 : Context.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

File 16 of 19 : ERC165.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "./IERC165.sol";

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

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

pragma solidity ^0.8.0;

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

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

interface LinkTokenInterface {
    function allowance(address owner, address spender) external view returns (uint256 remaining);

    function approve(address spender, uint256 value) external returns (bool success);

    function balanceOf(address owner) external view returns (uint256 balance);

    function decimals() external view returns (uint8 decimalPlaces);

    function decreaseApproval(address spender, uint256 addedValue) external returns (bool success);

    function increaseApproval(address spender, uint256 subtractedValue) external;

    function name() external view returns (string memory tokenName);

    function symbol() external view returns (string memory tokenSymbol);

    function totalSupply() external view returns (uint256 totalTokensIssued);

    function transfer(address to, uint256 value) external returns (bool success);

    function transferAndCall(
        address to,
        uint256 value,
        bytes calldata data
    ) external returns (bool success);

    function transferFrom(
        address from,
        address to,
        uint256 value
    ) external returns (bool success);
}

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

contract VRFRequestIDBase {
    /**
     * @notice returns the seed which is actually input to the VRF coordinator
     *
     * @dev To prevent repetition of VRF output due to repetition of the
     * @dev user-supplied seed, that seed is combined in a hash with the
     * @dev user-specific nonce, and the address of the consuming contract. The
     * @dev risk of repetition is mostly mitigated by inclusion of a blockhash in
     * @dev the final seed, but the nonce does protect against repetition in
     * @dev requests which are included in a single block.
     *
     * @param _userSeed VRF seed input provided by user
     * @param _requester Address of the requesting contract
     * @param _nonce User-specific nonce at the time of the request
     */
    function makeVRFInputSeed(
        bytes32 _keyHash,
        uint256 _userSeed,
        address _requester,
        uint256 _nonce
    ) internal pure returns (uint256) {
        return uint256(keccak256(abi.encode(_keyHash, _userSeed, _requester, _nonce)));
    }

    /**
     * @notice Returns the id for this request
     * @param _keyHash The serviceAgreement ID to be used for this request
     * @param _vRFInputSeed The seed to be passed directly to the VRF
     * @return The id for this request
     *
     * @dev Note that _vRFInputSeed is not the seed passed by the consuming
     * @dev contract, but the one generated by makeVRFInputSeed
     */
    function makeRequestId(bytes32 _keyHash, uint256 _vRFInputSeed) internal pure returns (bytes32) {
        return keccak256(abi.encodePacked(_keyHash, _vRFInputSeed));
    }
}

Settings
{
  "metadata": {
    "bytecodeHash": "none"
  },
  "optimizer": {
    "enabled": true,
    "runs": 800
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "abi"
      ]
    }
  },
  "libraries": {}
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_tokenDescriptor_","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":[],"name":"chainlinkRate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"qty","type":"uint256"}],"name":"create","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"details","outputs":[{"components":[{"internalType":"uint8","name":"hair","type":"uint8"},{"internalType":"uint8","name":"eye","type":"uint8"},{"internalType":"uint8","name":"eyebrow","type":"uint8"},{"internalType":"uint8","name":"nose","type":"uint8"},{"internalType":"uint8","name":"mouth","type":"uint8"},{"internalType":"uint8","name":"mark","type":"uint8"},{"internalType":"uint8","name":"earrings","type":"uint8"},{"internalType":"uint8","name":"accessory","type":"uint8"},{"internalType":"uint8","name":"mask","type":"uint8"},{"internalType":"uint8","name":"skin","type":"uint8"},{"internalType":"bool","name":"original","type":"bool"},{"internalType":"uint256","name":"timestamp","type":"uint256"},{"internalType":"address","name":"creator","type":"address"}],"internalType":"struct IOniiChain.Detail","name":"detail","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getUnitPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"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":[{"internalType":"bytes32","name":"requestId","type":"bytes32"},{"internalType":"uint256","name":"randomness","type":"uint256"}],"name":"rawFulfillRandomness","outputs":[],"stateMutability":"nonpayable","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"},{"inputs":[{"internalType":"uint256","name":"_chainlinkRate","type":"uint256"}],"name":"updateChainlinkRate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawAll","outputs":[],"stateMutability":"payable","type":"function"}]

60e06040526000600d55600060125560146013553480156200002057600080fd5b506040516200335d3803806200335d833981016040819052620000439162000248565b604080518082018252600981526827b734b4a1b430b4b760b91b6020808301918252835180850190945260048452634f4e494960e01b90840152815173f0d54349addcf704f77ae15b96510dea15cb79529373514910771af9ca656af840dff83e8264ecf986ca93929091620000bc91600091620001a2565b508051620000d2906001906020840190620001a2565b505050620000ef620000e96200014c60201b60201c565b62000150565b6001600b556001600160601b0319606092831b811660a05290821b811660805291901b1660c0527faa77729d3466ca35ae8d28b3bbac7cc36a5031efdc430821c02bc31a238af445601055671bc16d674ec80000601155620002b5565b3390565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b828054620001b09062000278565b90600052602060002090601f016020900481019282620001d457600085556200021f565b82601f10620001ef57805160ff19168380011785556200021f565b828001600101855582156200021f579182015b828111156200021f57825182559160200191906001019062000202565b506200022d92915062000231565b5090565b5b808211156200022d576000815560010162000232565b6000602082840312156200025a578081fd5b81516001600160a01b038116811462000271578182fd5b9392505050565b6002810460018216806200028d57607f821691505b60208210811415620002af57634e487b7160e01b600052602260045260246000fd5b50919050565b60805160601c60a05160601c60c05160601c61301b6200034260003960008181610a9501528181610b2301528181610bc901528181610c6f01528181610d1501528181610dbb01528181610e6101528181610f0701528181610fad0152818161105301526116ab0152600081816114040152611ad80152600081816109780152611aa9015261301b6000f3fe6080604052600436106101a15760003560e01c806370a08231116100e157806395d89b411161008a578063b88d4fde11610064578063b88d4fde14610440578063c87b56dd14610460578063e985e9c514610480578063f2fde38b146104a0576101a1565b806395d89b41146103de578063a005ec7a146103f3578063a22cb46514610420576101a1565b8063853828b6116100bb578063853828b6146103a15780638da5cb5b146103a957806394985ddd146103be576101a1565b806370a0823114610359578063715018a614610379578063780900dc1461038e576101a1565b8063095ea7b31161014e5780632f745c59116101285780632f745c59146102d957806342842e0e146102f95780634f6ccce7146103195780636352211e14610339576101a1565b8063095ea7b31461028457806318160ddd146102a457806323b872dd146102b9576101a1565b806305f290f61161017f57806305f290f61461021357806306fdde0314610235578063081812fc14610257576101a1565b8063012a33aa146101a6578063016224e9146101d157806301ffc9a7146101e6575b600080fd5b3480156101b257600080fd5b506101bb6104c0565b6040516101c89190612e06565b60405180910390f35b3480156101dd57600080fd5b506101bb610500565b3480156101f257600080fd5b50610206610201366004612472565b610506565b6040516101c8919061263a565b34801561021f57600080fd5b5061023361022e36600461251d565b610533565b005b34801561024157600080fd5b5061024a6105a0565b6040516101c89190612682565b34801561026357600080fd5b5061027761027236600461251d565b610632565b6040516101c891906125c2565b34801561029057600080fd5b5061023361029f36600461240c565b610675565b3480156102b057600080fd5b506101bb61070d565b3480156102c557600080fd5b506102336102d43660046122f8565b610713565b3480156102e557600080fd5b506101bb6102f436600461240c565b61074b565b34801561030557600080fd5b506102336103143660046122f8565b61079d565b34801561032557600080fd5b506101bb61033436600461251d565b6107b8565b34801561034557600080fd5b5061027761035436600461251d565b610813565b34801561036557600080fd5b506101bb6103743660046122a5565b610848565b34801561038557600080fd5b5061023361088c565b61023361039c36600461251d565b6108d7565b610233611309565b3480156103b557600080fd5b506102776113ea565b3480156103ca57600080fd5b506102336103d9366004612451565b6113f9565b3480156103ea57600080fd5b5061024a61144f565b3480156103ff57600080fd5b5061041361040e36600461251d565b61145e565b6040516101c89190612d08565b34801561042c57600080fd5b5061023361043b3660046123d6565b611560565b34801561044c57600080fd5b5061023361045b366004612333565b61162e565b34801561046c57600080fd5b5061024a61047b36600461251d565b61166d565b34801561048c57600080fd5b5061020661049b3660046122c6565b611736565b3480156104ac57600080fd5b506102336104bb3660046122a5565b611764565b600066470de4df8200006611c37937e080006113886104dd61070d565b6104e79190612ece565b6104f19190612ee2565b6104fb9190612eb6565b905090565b60135481565b60006001600160e01b0319821663780e9d6360e01b148061052b575061052b826117d2565b90505b919050565b61053b611812565b6001600160a01b031661054c6113ea565b6001600160a01b03161461057b5760405162461bcd60e51b815260040161057290612a42565b60405180910390fd5b6000811161059b5760405162461bcd60e51b815260040161057290612b68565b601355565b6060600080546105af90612f44565b80601f01602080910402602001604051908101604052809291908181526020018280546105db90612f44565b80156106285780601f106105fd57610100808354040283529160200191610628565b820191906000526020600020905b81548152906001019060200180831161060b57829003601f168201915b5050505050905090565b600061063d82611816565b6106595760405162461bcd60e51b8152600401610572906129f6565b506000908152600460205260409020546001600160a01b031690565b600061068082610813565b9050806001600160a01b0316836001600160a01b031614156106b45760405162461bcd60e51b815260040161057290612b9f565b806001600160a01b03166106c6611812565b6001600160a01b031614806106e257506106e28161049b611812565b6106fe5760405162461bcd60e51b8152600401610572906128aa565b6107088383611833565b505050565b60085490565b61072461071e611812565b826118a1565b6107405760405162461bcd60e51b815260040161057290612c17565b610708838383611926565b600061075683610848565b82106107745760405162461bcd60e51b815260040161057290612695565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b6107088383836040518060200160405280600081525061162e565b60006107c261070d565b82106107e05760405162461bcd60e51b815260040161057290612c74565b6008828154811061080157634e487b7160e01b600052603260045260246000fd5b90600052602060002001549050919050565b6000818152600260205260408120546001600160a01b03168061052b5760405162461bcd60e51b815260040161057290612964565b60006001600160a01b0382166108705760405162461bcd60e51b815260040161057290612907565b506001600160a01b031660009081526003602052604090205490565b610894611812565b6001600160a01b03166108a56113ea565b6001600160a01b0316146108cb5760405162461bcd60e51b815260040161057290612a42565b6108d56000611a53565b565b6002600b5414156108fa5760405162461bcd60e51b815260040161057290612cd1565b6002600b55806109086104c0565b6109129190612ee2565b3410156109315760405162461bcd60e51b815260040161057290612be0565b600d805490600061094183612f79565b9190505550601354600d546109569190612f94565b158015610a0057506011546040516370a0823160e01b81526001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016906370a08231906109ad9030906004016125c2565b60206040518083038186803b1580156109c557600080fd5b505afa1580156109d9573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109fd9190612535565b10155b15610a1557610a13601054601154611aa5565b505b60005b81811015611300576000610a2d826001612eb6565b601254610a3a9042612eb6565b901b90506000610a4861070d565b610a53906001612eb6565b604080516101a08101918290527fff15aacb00000000000000000000000000000000000000000000000000000000909152909150600090806001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001663ff15aacb610ac986886101a486016125b4565b60206040518083038186803b158015610ae157600080fd5b505afa158015610af5573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b19919061254d565b60ff1681526020017f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316635aeae9ca85876040518363ffffffff1660e01b8152600401610b6f9291906125b4565b60206040518083038186803b158015610b8757600080fd5b505afa158015610b9b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610bbf919061254d565b60ff1681526020017f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663718bea4285876040518363ffffffff1660e01b8152600401610c159291906125b4565b60206040518083038186803b158015610c2d57600080fd5b505afa158015610c41573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c65919061254d565b60ff1681526020017f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663267adc5085876040518363ffffffff1660e01b8152600401610cbb9291906125b4565b60206040518083038186803b158015610cd357600080fd5b505afa158015610ce7573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d0b919061254d565b60ff1681526020017f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166385d0bb2685876040518363ffffffff1660e01b8152600401610d619291906125b4565b60206040518083038186803b158015610d7957600080fd5b505afa158015610d8d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610db1919061254d565b60ff1681526020017f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663881280f085876040518363ffffffff1660e01b8152600401610e079291906125b4565b60206040518083038186803b158015610e1f57600080fd5b505afa158015610e33573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e57919061254d565b60ff1681526020017f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663f77781ab85876040518363ffffffff1660e01b8152600401610ead9291906125b4565b60206040518083038186803b158015610ec557600080fd5b505afa158015610ed9573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610efd919061254d565b60ff1681526020017f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663ef02a52485876040518363ffffffff1660e01b8152600401610f539291906125b4565b60206040518083038186803b158015610f6b57600080fd5b505afa158015610f7f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610fa3919061254d565b60ff1681526020017f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663d64843d485876040518363ffffffff1660e01b8152600401610ff99291906125b4565b60206040518083038186803b15801561101157600080fd5b505afa158015611025573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611049919061254d565b60ff1681526020017f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663b687390d85876040518363ffffffff1660e01b815260040161109f9291906125b4565b60206040518083038186803b1580156110b757600080fd5b505afa1580156110cb573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110ef919061254d565b60ff1681526001602082015242604082015233606090910152905061111381611be0565b8161014001901515908115158152505080600e600084815260200190815260200160002060008201518160000160006101000a81548160ff021916908360ff16021790555060208201518160000160016101000a81548160ff021916908360ff16021790555060408201518160000160026101000a81548160ff021916908360ff16021790555060608201518160000160036101000a81548160ff021916908360ff16021790555060808201518160000160046101000a81548160ff021916908360ff16021790555060a08201518160000160056101000a81548160ff021916908360ff16021790555060c08201518160000160066101000a81548160ff021916908360ff16021790555060e08201518160000160076101000a81548160ff021916908360ff1602179055506101008201518160000160086101000a81548160ff021916908360ff1602179055506101208201518160000160096101000a81548160ff021916908360ff16021790555061014082015181600001600a6101000a81548160ff02191690831515021790555061016082015181600101556101808201518160020160006101000a8154816001600160a01b0302191690836001600160a01b031602179055509050506112ea3383611c92565b50505080806112f890612f79565b915050610a18565b50506001600b55565b611311611812565b6001600160a01b03166113226113ea565b6001600160a01b0316146113485760405162461bcd60e51b815260040161057290612a42565b4773838d23a8a17adaa6866969b86d35ac0941c675106108fc606461136e84602d612ee2565b6113789190612ece565b6040518115909202916000818181858888f1935050505061139857600080fd5b7329b862e8c25e7f0fa5b2a89b65b186d18d45f54e6108fc60646113bd846037612ee2565b6113c79190612ece565b6040518115909202916000818181858888f193505050506113e757600080fd5b50565b600a546001600160a01b031690565b336001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146114415760405162461bcd60e51b815260040161057290612b31565b61144b8282611cac565b5050565b6060600180546105af90612f44565b611466612222565b506000908152600e602090815260409182902082516101a081018452815460ff80821683526101008083048216958401959095526201000082048116958301959095526301000000810485166060830152640100000000810485166080830152650100000000008104851660a083015266010000000000008104851660c08301526701000000000000008104851660e08301526801000000000000000081048516938201939093526901000000000000000000830484166101208201526a0100000000000000000000909204909216151561014082015260018201546101608201526002909101546001600160a01b031661018082015290565b611568611812565b6001600160a01b0316826001600160a01b031614156115995760405162461bcd60e51b815260040161057290612827565b80600560006115a6611812565b6001600160a01b03908116825260208083019390935260409182016000908120918716808252919093529120805460ff1916921515929092179091556115ea611812565b6001600160a01b03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051611622919061263a565b60405180910390a35050565b61163f611639611812565b836118a1565b61165b5760405162461bcd60e51b815260040161057290612c17565b61166784848484611cb2565b50505050565b606061167882611816565b6116945760405162461bcd60e51b815260040161057290612ad4565b60405163e9dc637560e01b81526001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063e9dc6375906116e29030908690600401612669565b60006040518083038186803b1580156116fa57600080fd5b505afa15801561170e573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261052b91908101906124aa565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b61176c611812565b6001600160a01b031661177d6113ea565b6001600160a01b0316146117a35760405162461bcd60e51b815260040161057290612a42565b6001600160a01b0381166117c95760405162461bcd60e51b81526004016105729061274f565b6113e781611a53565b60006001600160e01b031982166380ac58cd60e01b148061180357506001600160e01b03198216635b5e139f60e01b145b8061052b575061052b82611ce5565b3390565b6000908152600260205260409020546001600160a01b0316151590565b600081815260046020526040902080546001600160a01b0319166001600160a01b038416908117909155819061186882610813565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60006118ac82611816565b6118c85760405162461bcd60e51b81526004016105729061285e565b60006118d383610813565b9050806001600160a01b0316846001600160a01b0316148061190e5750836001600160a01b031661190384610632565b6001600160a01b0316145b8061191e575061191e8185611736565b949350505050565b826001600160a01b031661193982610813565b6001600160a01b03161461195f5760405162461bcd60e51b815260040161057290612a77565b6001600160a01b0382166119855760405162461bcd60e51b8152600401610572906127e3565b611990838383611cfe565b61199b600082611833565b6001600160a01b03831660009081526003602052604081208054600192906119c4908490612f01565b90915550506001600160a01b03821660009081526003602052604081208054600192906119f2908490612eb6565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316634000aea07f000000000000000000000000000000000000000000000000000000000000000084866000604051602001611b0c9291906125b4565b6040516020818303038152906040526040518463ffffffff1660e01b8152600401611b3993929190612612565b602060405180830381600087803b158015611b5357600080fd5b505af1158015611b67573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611b8b9190612435565b506000838152600c6020526040812054611baa90859083903090611d87565b6000858152600c6020526040902054909150611bc7906001612eb6565b6000858152600c602052604090205561191e8482611dc1565b600080826000015183602001518460400151856060015186608001518760a001518860c001518960e001518a61010001518b6101200151604051602001611c309a99989796959493929190612e0f565b60408051601f1981840301815291815281516020928301206000818152600f90935291205490915060ff16611c82576000908152600f60205260409020805460ff19166001908117909155905061052e565b600091505061052e565b50919050565b61144b828260405180602001604052806000815250611df4565b60125550565b611cbd848484611926565b611cc984848484611e27565b6116675760405162461bcd60e51b8152600401610572906126f2565b6001600160e01b031981166301ffc9a760e01b14919050565b611d09838383610708565b6001600160a01b038316611d2557611d2081611f3f565b611d48565b816001600160a01b0316836001600160a01b031614611d4857611d488382611f83565b6001600160a01b038216611d6457611d5f81612020565b610708565b826001600160a01b0316826001600160a01b0316146107085761070882826120f9565b600084848484604051602001611da09493929190612645565b60408051601f19818403018152919052805160209091012095945050505050565b60008282604051602001611dd69291906125b4565b60405160208183030381529060405280519060200120905092915050565b611dfe838361213d565b611e0b6000848484611e27565b6107085760405162461bcd60e51b8152600401610572906126f2565b6000611e3b846001600160a01b031661221c565b15611f3757836001600160a01b031663150b7a02611e57611812565b8786866040518563ffffffff1660e01b8152600401611e7994939291906125d6565b602060405180830381600087803b158015611e9357600080fd5b505af1925050508015611ec3575060408051601f3d908101601f19168201909252611ec09181019061248e565b60015b611f1d573d808015611ef1576040519150601f19603f3d011682016040523d82523d6000602084013e611ef6565b606091505b508051611f155760405162461bcd60e51b8152600401610572906126f2565b805181602001fd5b6001600160e01b031916630a85bd0160e11b14905061191e565b50600161191e565b600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b60006001611f9084610848565b611f9a9190612f01565b600083815260076020526040902054909150808214611fed576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b60085460009061203290600190612f01565b6000838152600960205260408120546008805493945090928490811061206857634e487b7160e01b600052603260045260246000fd5b90600052602060002001549050806008838154811061209757634e487b7160e01b600052603260045260246000fd5b60009182526020808320909101929092558281526009909152604080822084905585825281205560088054806120dd57634e487b7160e01b600052603160045260246000fd5b6001900381819060005260206000200160009055905550505050565b600061210483610848565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b6001600160a01b0382166121635760405162461bcd60e51b8152600401610572906129c1565b61216c81611816565b156121895760405162461bcd60e51b8152600401610572906127ac565b61219560008383611cfe565b6001600160a01b03821660009081526003602052604081208054600192906121be908490612eb6565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b3b151590565b604080516101a081018252600080825260208201819052918101829052606081018290526080810182905260a0810182905260c0810182905260e08101829052610100810182905261012081018290526101408101829052610160810182905261018081019190915290565b80356001600160a01b038116811461052e57600080fd5b6000602082840312156122b6578081fd5b6122bf8261228e565b9392505050565b600080604083850312156122d8578081fd5b6122e18361228e565b91506122ef6020840161228e565b90509250929050565b60008060006060848603121561230c578081fd5b6123158461228e565b92506123236020850161228e565b9150604084013590509250925092565b60008060008060808587031215612348578081fd5b6123518561228e565b935061235f6020860161228e565b925060408501359150606085013567ffffffffffffffff811115612381578182fd5b8501601f81018713612391578182fd5b80356123a461239f82612e8e565b612e64565b8181528860208385010111156123b8578384fd5b81602084016020830137908101602001929092525092959194509250565b600080604083850312156123e8578182fd5b6123f18361228e565b9150602083013561240181612fea565b809150509250929050565b6000806040838503121561241e578182fd5b6124278361228e565b946020939093013593505050565b600060208284031215612446578081fd5b81516122bf81612fea565b60008060408385031215612463578182fd5b50508035926020909101359150565b600060208284031215612483578081fd5b81356122bf81612ff8565b60006020828403121561249f578081fd5b81516122bf81612ff8565b6000602082840312156124bb578081fd5b815167ffffffffffffffff8111156124d1578182fd5b8201601f810184136124e1578182fd5b80516124ef61239f82612e8e565b818152856020838501011115612503578384fd5b612514826020830160208601612f18565b95945050505050565b60006020828403121561252e578081fd5b5035919050565b600060208284031215612546578081fd5b5051919050565b60006020828403121561255e578081fd5b815160ff811681146122bf578182fd5b6001600160a01b03169052565b15159052565b60008151808452612599816020860160208601612f18565b601f01601f19169290920160200192915050565b60ff169052565b918252602082015260400190565b6001600160a01b0391909116815260200190565b60006001600160a01b038087168352808616602084015250836040830152608060608301526126086080830184612581565b9695505050505050565b60006001600160a01b0385168252836020830152606060408301526125146060830184612581565b901515815260200190565b93845260208401929092526001600160a01b03166040830152606082015260800190565b6001600160a01b03929092168252602082015260400190565b6000602082526122bf6020830184612581565b6020808252602b908201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560408201527f74206f6620626f756e6473000000000000000000000000000000000000000000606082015260800190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527f63656976657220696d706c656d656e7465720000000000000000000000000000606082015260800190565b60208082526026908201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160408201527f6464726573730000000000000000000000000000000000000000000000000000606082015260800190565b6020808252601c908201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604082015260600190565b60208082526024908201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646040820152637265737360e01b606082015260800190565b60208082526019908201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604082015260600190565b6020808252602c908201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860408201526b34b9ba32b73a103a37b5b2b760a11b606082015260800190565b60208082526038908201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760408201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000606082015260800190565b6020808252602a908201527f4552433732313a2062616c616e636520717565727920666f7220746865207a6560408201527f726f206164647265737300000000000000000000000000000000000000000000606082015260800190565b60208082526029908201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460408201527f656e7420746f6b656e0000000000000000000000000000000000000000000000606082015260800190565b6020808252818101527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604082015260600190565b6020808252602c908201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860408201526b34b9ba32b73a103a37b5b2b760a11b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526029908201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960408201527f73206e6f74206f776e0000000000000000000000000000000000000000000000606082015260800190565b6020808252602f908201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60408201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000606082015260800190565b6020808252601f908201527f4f6e6c7920565246436f6f7264696e61746f722063616e2066756c66696c6c00604082015260600190565b6020808252600b908201527f4d757374206265203e2030000000000000000000000000000000000000000000604082015260600190565b60208082526021908201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656040820152603960f91b606082015260800190565b60208082526019908201527f45746865722073656e74206973206e6f7420636f727265637400000000000000604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60408201527f776e6572206e6f7220617070726f766564000000000000000000000000000000606082015260800190565b6020808252602c908201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60408201527f7574206f6620626f756e64730000000000000000000000000000000000000000606082015260800190565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b60006101a082019050612d1c8284516125ad565b6020830151612d2e60208401826125ad565b506040830151612d4160408401826125ad565b506060830151612d5460608401826125ad565b506080830151612d6760808401826125ad565b5060a0830151612d7a60a08401826125ad565b5060c0830151612d8d60c08401826125ad565b5060e0830151612da060e08401826125ad565b5061010080840151612db4828501826125ad565b505061012080840151612dc9828501826125ad565b505061014080840151612dde8285018261257b565b5050610160838101519083015261018080840151612dfe8285018261256e565b505092915050565b90815260200190565b60ff9a8b168152988a1660208a015296891660408901529488166060880152928716608087015290861660a0860152851660c0850152841660e084015283166101008301529091166101208201526101400190565b60405181810167ffffffffffffffff81118282101715612e8657612e86612fd4565b604052919050565b600067ffffffffffffffff821115612ea857612ea8612fd4565b50601f01601f191660200190565b60008219821115612ec957612ec9612fa8565b500190565b600082612edd57612edd612fbe565b500490565b6000816000190483118215151615612efc57612efc612fa8565b500290565b600082821015612f1357612f13612fa8565b500390565b60005b83811015612f33578181015183820152602001612f1b565b838111156116675750506000910152565b600281046001821680612f5857607f821691505b60208210811415611c8c57634e487b7160e01b600052602260045260246000fd5b6000600019821415612f8d57612f8d612fa8565b5060010190565b600082612fa357612fa3612fbe565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b80151581146113e757600080fd5b6001600160e01b0319811681146113e757600080fdfea164736f6c6343000800000a000000000000000000000000bf3e7e272aea62254fad570e6bbc3d54d96d9e7e

Deployed Bytecode

0x6080604052600436106101a15760003560e01c806370a08231116100e157806395d89b411161008a578063b88d4fde11610064578063b88d4fde14610440578063c87b56dd14610460578063e985e9c514610480578063f2fde38b146104a0576101a1565b806395d89b41146103de578063a005ec7a146103f3578063a22cb46514610420576101a1565b8063853828b6116100bb578063853828b6146103a15780638da5cb5b146103a957806394985ddd146103be576101a1565b806370a0823114610359578063715018a614610379578063780900dc1461038e576101a1565b8063095ea7b31161014e5780632f745c59116101285780632f745c59146102d957806342842e0e146102f95780634f6ccce7146103195780636352211e14610339576101a1565b8063095ea7b31461028457806318160ddd146102a457806323b872dd146102b9576101a1565b806305f290f61161017f57806305f290f61461021357806306fdde0314610235578063081812fc14610257576101a1565b8063012a33aa146101a6578063016224e9146101d157806301ffc9a7146101e6575b600080fd5b3480156101b257600080fd5b506101bb6104c0565b6040516101c89190612e06565b60405180910390f35b3480156101dd57600080fd5b506101bb610500565b3480156101f257600080fd5b50610206610201366004612472565b610506565b6040516101c8919061263a565b34801561021f57600080fd5b5061023361022e36600461251d565b610533565b005b34801561024157600080fd5b5061024a6105a0565b6040516101c89190612682565b34801561026357600080fd5b5061027761027236600461251d565b610632565b6040516101c891906125c2565b34801561029057600080fd5b5061023361029f36600461240c565b610675565b3480156102b057600080fd5b506101bb61070d565b3480156102c557600080fd5b506102336102d43660046122f8565b610713565b3480156102e557600080fd5b506101bb6102f436600461240c565b61074b565b34801561030557600080fd5b506102336103143660046122f8565b61079d565b34801561032557600080fd5b506101bb61033436600461251d565b6107b8565b34801561034557600080fd5b5061027761035436600461251d565b610813565b34801561036557600080fd5b506101bb6103743660046122a5565b610848565b34801561038557600080fd5b5061023361088c565b61023361039c36600461251d565b6108d7565b610233611309565b3480156103b557600080fd5b506102776113ea565b3480156103ca57600080fd5b506102336103d9366004612451565b6113f9565b3480156103ea57600080fd5b5061024a61144f565b3480156103ff57600080fd5b5061041361040e36600461251d565b61145e565b6040516101c89190612d08565b34801561042c57600080fd5b5061023361043b3660046123d6565b611560565b34801561044c57600080fd5b5061023361045b366004612333565b61162e565b34801561046c57600080fd5b5061024a61047b36600461251d565b61166d565b34801561048c57600080fd5b5061020661049b3660046122c6565b611736565b3480156104ac57600080fd5b506102336104bb3660046122a5565b611764565b600066470de4df8200006611c37937e080006113886104dd61070d565b6104e79190612ece565b6104f19190612ee2565b6104fb9190612eb6565b905090565b60135481565b60006001600160e01b0319821663780e9d6360e01b148061052b575061052b826117d2565b90505b919050565b61053b611812565b6001600160a01b031661054c6113ea565b6001600160a01b03161461057b5760405162461bcd60e51b815260040161057290612a42565b60405180910390fd5b6000811161059b5760405162461bcd60e51b815260040161057290612b68565b601355565b6060600080546105af90612f44565b80601f01602080910402602001604051908101604052809291908181526020018280546105db90612f44565b80156106285780601f106105fd57610100808354040283529160200191610628565b820191906000526020600020905b81548152906001019060200180831161060b57829003601f168201915b5050505050905090565b600061063d82611816565b6106595760405162461bcd60e51b8152600401610572906129f6565b506000908152600460205260409020546001600160a01b031690565b600061068082610813565b9050806001600160a01b0316836001600160a01b031614156106b45760405162461bcd60e51b815260040161057290612b9f565b806001600160a01b03166106c6611812565b6001600160a01b031614806106e257506106e28161049b611812565b6106fe5760405162461bcd60e51b8152600401610572906128aa565b6107088383611833565b505050565b60085490565b61072461071e611812565b826118a1565b6107405760405162461bcd60e51b815260040161057290612c17565b610708838383611926565b600061075683610848565b82106107745760405162461bcd60e51b815260040161057290612695565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b6107088383836040518060200160405280600081525061162e565b60006107c261070d565b82106107e05760405162461bcd60e51b815260040161057290612c74565b6008828154811061080157634e487b7160e01b600052603260045260246000fd5b90600052602060002001549050919050565b6000818152600260205260408120546001600160a01b03168061052b5760405162461bcd60e51b815260040161057290612964565b60006001600160a01b0382166108705760405162461bcd60e51b815260040161057290612907565b506001600160a01b031660009081526003602052604090205490565b610894611812565b6001600160a01b03166108a56113ea565b6001600160a01b0316146108cb5760405162461bcd60e51b815260040161057290612a42565b6108d56000611a53565b565b6002600b5414156108fa5760405162461bcd60e51b815260040161057290612cd1565b6002600b55806109086104c0565b6109129190612ee2565b3410156109315760405162461bcd60e51b815260040161057290612be0565b600d805490600061094183612f79565b9190505550601354600d546109569190612f94565b158015610a0057506011546040516370a0823160e01b81526001600160a01b037f000000000000000000000000514910771af9ca656af840dff83e8264ecf986ca16906370a08231906109ad9030906004016125c2565b60206040518083038186803b1580156109c557600080fd5b505afa1580156109d9573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109fd9190612535565b10155b15610a1557610a13601054601154611aa5565b505b60005b81811015611300576000610a2d826001612eb6565b601254610a3a9042612eb6565b901b90506000610a4861070d565b610a53906001612eb6565b604080516101a08101918290527fff15aacb00000000000000000000000000000000000000000000000000000000909152909150600090806001600160a01b037f000000000000000000000000bf3e7e272aea62254fad570e6bbc3d54d96d9e7e1663ff15aacb610ac986886101a486016125b4565b60206040518083038186803b158015610ae157600080fd5b505afa158015610af5573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b19919061254d565b60ff1681526020017f000000000000000000000000bf3e7e272aea62254fad570e6bbc3d54d96d9e7e6001600160a01b0316635aeae9ca85876040518363ffffffff1660e01b8152600401610b6f9291906125b4565b60206040518083038186803b158015610b8757600080fd5b505afa158015610b9b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610bbf919061254d565b60ff1681526020017f000000000000000000000000bf3e7e272aea62254fad570e6bbc3d54d96d9e7e6001600160a01b031663718bea4285876040518363ffffffff1660e01b8152600401610c159291906125b4565b60206040518083038186803b158015610c2d57600080fd5b505afa158015610c41573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c65919061254d565b60ff1681526020017f000000000000000000000000bf3e7e272aea62254fad570e6bbc3d54d96d9e7e6001600160a01b031663267adc5085876040518363ffffffff1660e01b8152600401610cbb9291906125b4565b60206040518083038186803b158015610cd357600080fd5b505afa158015610ce7573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d0b919061254d565b60ff1681526020017f000000000000000000000000bf3e7e272aea62254fad570e6bbc3d54d96d9e7e6001600160a01b03166385d0bb2685876040518363ffffffff1660e01b8152600401610d619291906125b4565b60206040518083038186803b158015610d7957600080fd5b505afa158015610d8d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610db1919061254d565b60ff1681526020017f000000000000000000000000bf3e7e272aea62254fad570e6bbc3d54d96d9e7e6001600160a01b031663881280f085876040518363ffffffff1660e01b8152600401610e079291906125b4565b60206040518083038186803b158015610e1f57600080fd5b505afa158015610e33573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e57919061254d565b60ff1681526020017f000000000000000000000000bf3e7e272aea62254fad570e6bbc3d54d96d9e7e6001600160a01b031663f77781ab85876040518363ffffffff1660e01b8152600401610ead9291906125b4565b60206040518083038186803b158015610ec557600080fd5b505afa158015610ed9573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610efd919061254d565b60ff1681526020017f000000000000000000000000bf3e7e272aea62254fad570e6bbc3d54d96d9e7e6001600160a01b031663ef02a52485876040518363ffffffff1660e01b8152600401610f539291906125b4565b60206040518083038186803b158015610f6b57600080fd5b505afa158015610f7f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610fa3919061254d565b60ff1681526020017f000000000000000000000000bf3e7e272aea62254fad570e6bbc3d54d96d9e7e6001600160a01b031663d64843d485876040518363ffffffff1660e01b8152600401610ff99291906125b4565b60206040518083038186803b15801561101157600080fd5b505afa158015611025573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611049919061254d565b60ff1681526020017f000000000000000000000000bf3e7e272aea62254fad570e6bbc3d54d96d9e7e6001600160a01b031663b687390d85876040518363ffffffff1660e01b815260040161109f9291906125b4565b60206040518083038186803b1580156110b757600080fd5b505afa1580156110cb573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110ef919061254d565b60ff1681526001602082015242604082015233606090910152905061111381611be0565b8161014001901515908115158152505080600e600084815260200190815260200160002060008201518160000160006101000a81548160ff021916908360ff16021790555060208201518160000160016101000a81548160ff021916908360ff16021790555060408201518160000160026101000a81548160ff021916908360ff16021790555060608201518160000160036101000a81548160ff021916908360ff16021790555060808201518160000160046101000a81548160ff021916908360ff16021790555060a08201518160000160056101000a81548160ff021916908360ff16021790555060c08201518160000160066101000a81548160ff021916908360ff16021790555060e08201518160000160076101000a81548160ff021916908360ff1602179055506101008201518160000160086101000a81548160ff021916908360ff1602179055506101208201518160000160096101000a81548160ff021916908360ff16021790555061014082015181600001600a6101000a81548160ff02191690831515021790555061016082015181600101556101808201518160020160006101000a8154816001600160a01b0302191690836001600160a01b031602179055509050506112ea3383611c92565b50505080806112f890612f79565b915050610a18565b50506001600b55565b611311611812565b6001600160a01b03166113226113ea565b6001600160a01b0316146113485760405162461bcd60e51b815260040161057290612a42565b4773838d23a8a17adaa6866969b86d35ac0941c675106108fc606461136e84602d612ee2565b6113789190612ece565b6040518115909202916000818181858888f1935050505061139857600080fd5b7329b862e8c25e7f0fa5b2a89b65b186d18d45f54e6108fc60646113bd846037612ee2565b6113c79190612ece565b6040518115909202916000818181858888f193505050506113e757600080fd5b50565b600a546001600160a01b031690565b336001600160a01b037f000000000000000000000000f0d54349addcf704f77ae15b96510dea15cb795216146114415760405162461bcd60e51b815260040161057290612b31565b61144b8282611cac565b5050565b6060600180546105af90612f44565b611466612222565b506000908152600e602090815260409182902082516101a081018452815460ff80821683526101008083048216958401959095526201000082048116958301959095526301000000810485166060830152640100000000810485166080830152650100000000008104851660a083015266010000000000008104851660c08301526701000000000000008104851660e08301526801000000000000000081048516938201939093526901000000000000000000830484166101208201526a0100000000000000000000909204909216151561014082015260018201546101608201526002909101546001600160a01b031661018082015290565b611568611812565b6001600160a01b0316826001600160a01b031614156115995760405162461bcd60e51b815260040161057290612827565b80600560006115a6611812565b6001600160a01b03908116825260208083019390935260409182016000908120918716808252919093529120805460ff1916921515929092179091556115ea611812565b6001600160a01b03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051611622919061263a565b60405180910390a35050565b61163f611639611812565b836118a1565b61165b5760405162461bcd60e51b815260040161057290612c17565b61166784848484611cb2565b50505050565b606061167882611816565b6116945760405162461bcd60e51b815260040161057290612ad4565b60405163e9dc637560e01b81526001600160a01b037f000000000000000000000000bf3e7e272aea62254fad570e6bbc3d54d96d9e7e169063e9dc6375906116e29030908690600401612669565b60006040518083038186803b1580156116fa57600080fd5b505afa15801561170e573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261052b91908101906124aa565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b61176c611812565b6001600160a01b031661177d6113ea565b6001600160a01b0316146117a35760405162461bcd60e51b815260040161057290612a42565b6001600160a01b0381166117c95760405162461bcd60e51b81526004016105729061274f565b6113e781611a53565b60006001600160e01b031982166380ac58cd60e01b148061180357506001600160e01b03198216635b5e139f60e01b145b8061052b575061052b82611ce5565b3390565b6000908152600260205260409020546001600160a01b0316151590565b600081815260046020526040902080546001600160a01b0319166001600160a01b038416908117909155819061186882610813565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60006118ac82611816565b6118c85760405162461bcd60e51b81526004016105729061285e565b60006118d383610813565b9050806001600160a01b0316846001600160a01b0316148061190e5750836001600160a01b031661190384610632565b6001600160a01b0316145b8061191e575061191e8185611736565b949350505050565b826001600160a01b031661193982610813565b6001600160a01b03161461195f5760405162461bcd60e51b815260040161057290612a77565b6001600160a01b0382166119855760405162461bcd60e51b8152600401610572906127e3565b611990838383611cfe565b61199b600082611833565b6001600160a01b03831660009081526003602052604081208054600192906119c4908490612f01565b90915550506001600160a01b03821660009081526003602052604081208054600192906119f2908490612eb6565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60007f000000000000000000000000514910771af9ca656af840dff83e8264ecf986ca6001600160a01b0316634000aea07f000000000000000000000000f0d54349addcf704f77ae15b96510dea15cb795284866000604051602001611b0c9291906125b4565b6040516020818303038152906040526040518463ffffffff1660e01b8152600401611b3993929190612612565b602060405180830381600087803b158015611b5357600080fd5b505af1158015611b67573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611b8b9190612435565b506000838152600c6020526040812054611baa90859083903090611d87565b6000858152600c6020526040902054909150611bc7906001612eb6565b6000858152600c602052604090205561191e8482611dc1565b600080826000015183602001518460400151856060015186608001518760a001518860c001518960e001518a61010001518b6101200151604051602001611c309a99989796959493929190612e0f565b60408051601f1981840301815291815281516020928301206000818152600f90935291205490915060ff16611c82576000908152600f60205260409020805460ff19166001908117909155905061052e565b600091505061052e565b50919050565b61144b828260405180602001604052806000815250611df4565b60125550565b611cbd848484611926565b611cc984848484611e27565b6116675760405162461bcd60e51b8152600401610572906126f2565b6001600160e01b031981166301ffc9a760e01b14919050565b611d09838383610708565b6001600160a01b038316611d2557611d2081611f3f565b611d48565b816001600160a01b0316836001600160a01b031614611d4857611d488382611f83565b6001600160a01b038216611d6457611d5f81612020565b610708565b826001600160a01b0316826001600160a01b0316146107085761070882826120f9565b600084848484604051602001611da09493929190612645565b60408051601f19818403018152919052805160209091012095945050505050565b60008282604051602001611dd69291906125b4565b60405160208183030381529060405280519060200120905092915050565b611dfe838361213d565b611e0b6000848484611e27565b6107085760405162461bcd60e51b8152600401610572906126f2565b6000611e3b846001600160a01b031661221c565b15611f3757836001600160a01b031663150b7a02611e57611812565b8786866040518563ffffffff1660e01b8152600401611e7994939291906125d6565b602060405180830381600087803b158015611e9357600080fd5b505af1925050508015611ec3575060408051601f3d908101601f19168201909252611ec09181019061248e565b60015b611f1d573d808015611ef1576040519150601f19603f3d011682016040523d82523d6000602084013e611ef6565b606091505b508051611f155760405162461bcd60e51b8152600401610572906126f2565b805181602001fd5b6001600160e01b031916630a85bd0160e11b14905061191e565b50600161191e565b600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b60006001611f9084610848565b611f9a9190612f01565b600083815260076020526040902054909150808214611fed576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b60085460009061203290600190612f01565b6000838152600960205260408120546008805493945090928490811061206857634e487b7160e01b600052603260045260246000fd5b90600052602060002001549050806008838154811061209757634e487b7160e01b600052603260045260246000fd5b60009182526020808320909101929092558281526009909152604080822084905585825281205560088054806120dd57634e487b7160e01b600052603160045260246000fd5b6001900381819060005260206000200160009055905550505050565b600061210483610848565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b6001600160a01b0382166121635760405162461bcd60e51b8152600401610572906129c1565b61216c81611816565b156121895760405162461bcd60e51b8152600401610572906127ac565b61219560008383611cfe565b6001600160a01b03821660009081526003602052604081208054600192906121be908490612eb6565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b3b151590565b604080516101a081018252600080825260208201819052918101829052606081018290526080810182905260a0810182905260c0810182905260e08101829052610100810182905261012081018290526101408101829052610160810182905261018081019190915290565b80356001600160a01b038116811461052e57600080fd5b6000602082840312156122b6578081fd5b6122bf8261228e565b9392505050565b600080604083850312156122d8578081fd5b6122e18361228e565b91506122ef6020840161228e565b90509250929050565b60008060006060848603121561230c578081fd5b6123158461228e565b92506123236020850161228e565b9150604084013590509250925092565b60008060008060808587031215612348578081fd5b6123518561228e565b935061235f6020860161228e565b925060408501359150606085013567ffffffffffffffff811115612381578182fd5b8501601f81018713612391578182fd5b80356123a461239f82612e8e565b612e64565b8181528860208385010111156123b8578384fd5b81602084016020830137908101602001929092525092959194509250565b600080604083850312156123e8578182fd5b6123f18361228e565b9150602083013561240181612fea565b809150509250929050565b6000806040838503121561241e578182fd5b6124278361228e565b946020939093013593505050565b600060208284031215612446578081fd5b81516122bf81612fea565b60008060408385031215612463578182fd5b50508035926020909101359150565b600060208284031215612483578081fd5b81356122bf81612ff8565b60006020828403121561249f578081fd5b81516122bf81612ff8565b6000602082840312156124bb578081fd5b815167ffffffffffffffff8111156124d1578182fd5b8201601f810184136124e1578182fd5b80516124ef61239f82612e8e565b818152856020838501011115612503578384fd5b612514826020830160208601612f18565b95945050505050565b60006020828403121561252e578081fd5b5035919050565b600060208284031215612546578081fd5b5051919050565b60006020828403121561255e578081fd5b815160ff811681146122bf578182fd5b6001600160a01b03169052565b15159052565b60008151808452612599816020860160208601612f18565b601f01601f19169290920160200192915050565b60ff169052565b918252602082015260400190565b6001600160a01b0391909116815260200190565b60006001600160a01b038087168352808616602084015250836040830152608060608301526126086080830184612581565b9695505050505050565b60006001600160a01b0385168252836020830152606060408301526125146060830184612581565b901515815260200190565b93845260208401929092526001600160a01b03166040830152606082015260800190565b6001600160a01b03929092168252602082015260400190565b6000602082526122bf6020830184612581565b6020808252602b908201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560408201527f74206f6620626f756e6473000000000000000000000000000000000000000000606082015260800190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527f63656976657220696d706c656d656e7465720000000000000000000000000000606082015260800190565b60208082526026908201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160408201527f6464726573730000000000000000000000000000000000000000000000000000606082015260800190565b6020808252601c908201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604082015260600190565b60208082526024908201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646040820152637265737360e01b606082015260800190565b60208082526019908201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604082015260600190565b6020808252602c908201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860408201526b34b9ba32b73a103a37b5b2b760a11b606082015260800190565b60208082526038908201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760408201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000606082015260800190565b6020808252602a908201527f4552433732313a2062616c616e636520717565727920666f7220746865207a6560408201527f726f206164647265737300000000000000000000000000000000000000000000606082015260800190565b60208082526029908201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460408201527f656e7420746f6b656e0000000000000000000000000000000000000000000000606082015260800190565b6020808252818101527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604082015260600190565b6020808252602c908201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860408201526b34b9ba32b73a103a37b5b2b760a11b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526029908201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960408201527f73206e6f74206f776e0000000000000000000000000000000000000000000000606082015260800190565b6020808252602f908201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60408201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000606082015260800190565b6020808252601f908201527f4f6e6c7920565246436f6f7264696e61746f722063616e2066756c66696c6c00604082015260600190565b6020808252600b908201527f4d757374206265203e2030000000000000000000000000000000000000000000604082015260600190565b60208082526021908201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656040820152603960f91b606082015260800190565b60208082526019908201527f45746865722073656e74206973206e6f7420636f727265637400000000000000604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60408201527f776e6572206e6f7220617070726f766564000000000000000000000000000000606082015260800190565b6020808252602c908201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60408201527f7574206f6620626f756e64730000000000000000000000000000000000000000606082015260800190565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b60006101a082019050612d1c8284516125ad565b6020830151612d2e60208401826125ad565b506040830151612d4160408401826125ad565b506060830151612d5460608401826125ad565b506080830151612d6760808401826125ad565b5060a0830151612d7a60a08401826125ad565b5060c0830151612d8d60c08401826125ad565b5060e0830151612da060e08401826125ad565b5061010080840151612db4828501826125ad565b505061012080840151612dc9828501826125ad565b505061014080840151612dde8285018261257b565b5050610160838101519083015261018080840151612dfe8285018261256e565b505092915050565b90815260200190565b60ff9a8b168152988a1660208a015296891660408901529488166060880152928716608087015290861660a0860152851660c0850152841660e084015283166101008301529091166101208201526101400190565b60405181810167ffffffffffffffff81118282101715612e8657612e86612fd4565b604052919050565b600067ffffffffffffffff821115612ea857612ea8612fd4565b50601f01601f191660200190565b60008219821115612ec957612ec9612fa8565b500190565b600082612edd57612edd612fbe565b500490565b6000816000190483118215151615612efc57612efc612fa8565b500290565b600082821015612f1357612f13612fa8565b500390565b60005b83811015612f33578181015183820152602001612f1b565b838111156116675750506000910152565b600281046001821680612f5857607f821691505b60208210811415611c8c57634e487b7160e01b600052602260045260246000fd5b6000600019821415612f8d57612f8d612fa8565b5060010190565b600082612fa357612fa3612fbe565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b80151581146113e757600080fd5b6001600160e01b0319811681146113e757600080fdfea164736f6c6343000800000a

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

000000000000000000000000bf3e7e272aea62254fad570e6bbc3d54d96d9e7e

-----Decoded View---------------
Arg [0] : _tokenDescriptor_ (address): 0xBf3e7e272aeA62254Fad570E6BbC3d54D96D9E7E

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 000000000000000000000000bf3e7e272aea62254fad570e6bbc3d54d96d9e7e


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.