ETH Price: $3,313.36 (-2.87%)
Gas: 14 Gwei

Token

Roaring Roccstars (ROARROCC)
 

Overview

Max Total Supply

5,942 ROARROCC

Holders

680

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Filtered by Token Holder
romeo0707.eth
Balance
3 ROARROCC
0x6efd8cd61f79d06684a70b9b04c9281fd81b7fe7
Loading...
Loading
Loading...
Loading
Loading...
Loading

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

Contract Source Code Verified (Exact Match)

Contract Name:
RoaringRoccstars

Compiler Version
v0.8.10+commit.fc410830

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion
File 1 of 19 : IBreedingManagerContract.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

interface IBreedingManagerContract {

    function breedOwnLeaders(address ownerAddress, uint256 maleTokenId, uint256 femaleTokenId, bool hasSignature, bool instantCooldown, bytes memory signature) external;

    function breedUsingMarketplace(address ownerAddress, uint256 maleTokenId, uint256 femaleTokenId, bool hasSignature, bool instantCooldown, address renter, bool acceptorIsMaleOwner, uint256 rentalFee, uint256 expiry, bytes memory cooldownSignature, bytes memory listingSignature) external;
}

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

pragma solidity ^0.8.0;

import "@openzeppelin/contracts/token/ERC20/IERC20.sol";

interface ITokenContract is IERC20 {

    function burnFrom(address account, uint256 amount) external;
}

File 3 of 19 : RoaringRoccstars.sol
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.0;

import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Burnable.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/Address.sol";
import "@openzeppelin/contracts/utils/Counters.sol";
import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol";
import "./IBreedingManagerContract.sol";
import "./ITokenContract.sol";

/*
    ____  ____  ___    ____  _____   ________   __    _________    ____  __________  _____
   / __ \/ __ \/   |  / __ \/  _/ | / / ____/  / /   / ____/   |  / __ \/ ____/ __ \/ ___/
  / /_/ / / / / /| | / /_/ // //  |/ / / __   / /   / __/ / /| | / / / / __/ / /_/ /\__ \ 
 / _, _/ /_/ / ___ |/ _, _// // /|  / /_/ /  / /___/ /___/ ___ |/ /_/ / /___/ _, _/___/ / 
/_/ |_|\____/_/  |_/_/ |_/___/_/ |_/\____/  /_____/_____/_/  |_/_____/_____/_/ |_|/____/  
                                                                                          

I see you nerd! ⌐⊙_⊙
*/

contract RoaringRoccstars is ERC721, ERC721Enumerable, ERC721Burnable, Ownable {
    using Counters for Counters.Counter;

    using ECDSA for bytes32;

    Counters.Counter private _tokenIdCounter;
    Counters.Counter private _mintCounter;

    string public baseURI;

    ITokenContract private roarTokenContractInstance;
    IBreedingManagerContract private breedingManagerContractInstance;

    uint256 public mintRoarPrice = 600;
    uint256 public cooldownPillPrice = 300;
    uint256 public signatureMultiplier = 10;
    
    uint256 public mintPrice = 0.11 ether;

    uint256 public maxMintSupply = 5000;

    bool public saleIsActive = false;

    bool public preSaleIsActive = false;

    bool public breedingIsActive = false;

    mapping (address => uint256) private _presaleMints;

    uint256 public maxPresaleMintsPerWallet = 3;

    event CubMinted(uint256 tokenId);

    event CubBorn(uint256 tokenId, uint256 maleTokenId, uint256 femaleTokenId, bool hasSignature, bool instantCooldown);

    event CubBornViaMarketplace(uint256 tokenId, uint256 maleTokenId, uint256 femaleTokenId, bool hasSignature, bool instantCooldown, address renter, bool acceptorIsMaleOwner, uint256 rentalFee, uint256 expiry);

    constructor(string memory name, string memory symbol, address roarTokenAddress, address breedingManagerAddress) ERC721(name, symbol) {
        roarTokenContractInstance = ITokenContract(roarTokenAddress);
        breedingManagerContractInstance = IBreedingManagerContract(breedingManagerAddress);
    }

    function setStates(bool newSaleIsActive, bool newBreedingIsActive) public onlyOwner {
        saleIsActive = newSaleIsActive;
        breedingIsActive = newBreedingIsActive;
    }

    function setAddresses(address roarTokenAddress, address breedingManagerAddress) public onlyOwner {
        roarTokenContractInstance = ITokenContract(roarTokenAddress);
        breedingManagerContractInstance = IBreedingManagerContract(breedingManagerAddress);
    }

    function setPricesAndSupply(uint256 newPrice, uint256 newRoarPrice, uint256 maxCubMintSupply, uint256 newCooldownPillPrice, uint256 newSignatureMultiplier) public onlyOwner {
        mintPrice = newPrice;
        mintRoarPrice = newRoarPrice;
        maxMintSupply = maxCubMintSupply;
        cooldownPillPrice = newCooldownPillPrice;
        signatureMultiplier = newSignatureMultiplier;
    }

    function setMaxPresaleMintsPerWallet(uint256 newLimit) public onlyOwner {
        maxPresaleMintsPerWallet = newLimit;
    }

    /*
    * Pause pre-sale if active, make active if paused.
    */
    function flipPreSaleState() public onlyOwner {
        preSaleIsActive = !preSaleIsActive;
    }

    function withdraw(uint256 amount) public onlyOwner {
        Address.sendValue(payable(msg.sender), amount);
    }

    /*
    * Mint reserved NFTs for giveaways, devs, etc.
    */
    function reserveMint(uint256 reservedAmount, address mintAddress) public onlyOwner {        
        for (uint256 i = 1; i <= reservedAmount; i++) {
            _tokenIdCounter.increment();
            _safeMint(mintAddress, _tokenIdCounter.current());
            emit CubMinted(_tokenIdCounter.current());
        }
    }

    function currentMintCount() external view returns (uint256) {
        return _mintCounter.current();
    }

    /*
    * Mint Roaring Roccstars, woot!
    */
    function mintCubs(uint256 numberOfTokens) public payable {
        require(saleIsActive, "Sale not live");
        require(_mintCounter.current() + numberOfTokens <= maxMintSupply, "Max supply");
        require(mintPrice * numberOfTokens <= msg.value, "Incorrect ether");

        for(uint256 i = 0; i < numberOfTokens; i++) {
            _mintCounter.increment();
            _tokenIdCounter.increment();
            _safeMint(msg.sender, _tokenIdCounter.current());
            emit CubMinted(_tokenIdCounter.current());
        }
    }

    /*
    * Mint Roaring Roccstar NFTs during pre-sale
    */
    function presaleMint(uint256 numberOfTokens) public payable {
        require(preSaleIsActive, "Presale not live");
        require(_presaleMints[msg.sender] + numberOfTokens <= maxPresaleMintsPerWallet, "Presale limit");
        require(_mintCounter.current() + numberOfTokens <= maxMintSupply, "Max supply");
        require(mintPrice * numberOfTokens <= msg.value, "Incorrect ether");

        _presaleMints[msg.sender] += numberOfTokens;

        for(uint256 i = 0; i < numberOfTokens; i++) {
            _mintCounter.increment();
            _tokenIdCounter.increment();
            _safeMint(msg.sender, _tokenIdCounter.current());
            emit CubMinted(_tokenIdCounter.current());
        }
    }

    /*
    * Breed Roaring Leaders - both need to be owned by caller
    */
    function breedOwnLeaders(uint256 maleTokenId, uint256 femaleTokenId, bool hasSignature, bool instantCooldown, bytes memory signature) public {
        require(breedingIsActive, "Breeding not live");
        
        breedingManagerContractInstance.breedOwnLeaders(msg.sender, maleTokenId, femaleTokenId, hasSignature, instantCooldown, signature);

        roarTokenContractInstance.burnFrom(msg.sender, (mintRoarPrice + (instantCooldown ? cooldownPillPrice : 0)) * (hasSignature ? signatureMultiplier : 1) * 10 ** 18);
        
        _tokenIdCounter.increment();
        _safeMint(msg.sender, _tokenIdCounter.current());

        emit CubBorn(_tokenIdCounter.current(), maleTokenId, femaleTokenId, hasSignature, instantCooldown);
    }

    /*
    * Breed Roaring Leaders via the marketplace. One of the Leaders is owned by "renter", who is paid a fee by the caller
    */
    function breedUsingMarketplace(uint256 maleTokenId, uint256 femaleTokenId, bool hasSignature, bool instantCooldown, address renter, bool acceptorIsMaleOwner, uint256 rentalFee, uint256 expiry, bytes memory cooldownSignature, bytes memory listingSignature) public {
        require(breedingIsActive, "Breeding not live");
        
        breedingManagerContractInstance.breedUsingMarketplace(msg.sender, maleTokenId, femaleTokenId, hasSignature, instantCooldown, renter, acceptorIsMaleOwner, rentalFee, expiry, cooldownSignature, listingSignature);

        roarTokenContractInstance.burnFrom(msg.sender, (mintRoarPrice + (instantCooldown ? cooldownPillPrice : 0)) * (hasSignature ? signatureMultiplier : 1) * 10 ** 18);
        roarTokenContractInstance.transferFrom(msg.sender, renter, rentalFee * 10 ** 18);
        
        _tokenIdCounter.increment();
        _safeMint(msg.sender, _tokenIdCounter.current());

        emit CubBornViaMarketplace(_tokenIdCounter.current(), maleTokenId, femaleTokenId, hasSignature, instantCooldown, renter, acceptorIsMaleOwner, rentalFee, expiry);
    }

    function _baseURI() internal view virtual override returns (string memory) {
        return baseURI;
    }

    function setBaseURI(string memory newBaseURI) public onlyOwner {
        baseURI = newBaseURI;
    }

    function _beforeTokenTransfer(address from, address to, uint256 tokenId) internal override(ERC721, ERC721Enumerable) {
        super._beforeTokenTransfer(from, to, tokenId);
    }

    function supportsInterface(bytes4 interfaceId) public view override(ERC721, ERC721Enumerable) returns (bool) {
        return super.supportsInterface(interfaceId);
    }
}

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

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

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

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

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

File 5 of 19 : IERC20.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

File 6 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}. 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 {
                    // solhint-disable-next-line no-inline-assembly
                    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` cannot be the zero address.
     * - `to` cannot be the zero address.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _beforeTokenTransfer(address from, address to, uint256 tokenId) internal virtual { }
}

File 7 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 8 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 9 of 19 : ERC721Burnable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

File 10 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 11 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 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;
        // solhint-disable-next-line no-inline-assembly
        assembly { size := extcodesize(account) }
        return size > 0;
    }

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

        // solhint-disable-next-line avoid-low-level-calls, avoid-call-value
        (bool success, ) = recipient.call{ value: amount }("");
        require(success, "Address: unable to send value, recipient may have reverted");
    }

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

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

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

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

        // solhint-disable-next-line avoid-low-level-calls
        (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");

        // solhint-disable-next-line avoid-low-level-calls
        (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");

        // solhint-disable-next-line avoid-low-level-calls
        (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

                // solhint-disable-next-line no-inline-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) {
        this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691
        return msg.data;
    }
}

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

pragma solidity ^0.8.0;

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

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

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

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

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

pragma solidity ^0.8.0;

/**
 * @dev String operations.
 */
library Strings {
    bytes16 private constant alphabet = "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] = alphabet[value & 0xf];
            value >>= 4;
        }
        require(value == 0, "Strings: hex length insufficient");
        return string(buffer);
    }

}

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

pragma solidity ^0.8.0;

/**
 * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations.
 *
 * These functions can be used to verify that a message was signed by the holder
 * of the private keys of a given address.
 */
library ECDSA {
    /**
     * @dev Returns the address that signed a hashed message (`hash`) with
     * `signature`. This address can then be used for verification purposes.
     *
     * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:
     * this function rejects them by requiring the `s` value to be in the lower
     * half order, and the `v` value to be either 27 or 28.
     *
     * IMPORTANT: `hash` _must_ be the result of a hash operation for the
     * verification to be secure: it is possible to craft signatures that
     * recover to arbitrary addresses for non-hashed data. A safe way to ensure
     * this is by receiving a hash of the original message (which may otherwise
     * be too long), and then calling {toEthSignedMessageHash} on it.
     */
    function recover(bytes32 hash, bytes memory signature) internal pure returns (address) {
        // Divide the signature in r, s and v variables
        bytes32 r;
        bytes32 s;
        uint8 v;

        // Check the signature length
        // - case 65: r,s,v signature (standard)
        // - case 64: r,vs signature (cf https://eips.ethereum.org/EIPS/eip-2098) _Available since v4.1._
        if (signature.length == 65) {
            // ecrecover takes the signature parameters, and the only way to get them
            // currently is to use assembly.
            // solhint-disable-next-line no-inline-assembly
            assembly {
                r := mload(add(signature, 0x20))
                s := mload(add(signature, 0x40))
                v := byte(0, mload(add(signature, 0x60)))
            }
        } else if (signature.length == 64) {
            // ecrecover takes the signature parameters, and the only way to get them
            // currently is to use assembly.
            // solhint-disable-next-line no-inline-assembly
            assembly {
                let vs := mload(add(signature, 0x40))
                r := mload(add(signature, 0x20))
                s := and(vs, 0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff)
                v := add(shr(255, vs), 27)
            }
        } else {
            revert("ECDSA: invalid signature length");
        }

        return recover(hash, v, r, s);
    }

    /**
     * @dev Overload of {ECDSA-recover} that receives the `v`,
     * `r` and `s` signature fields separately.
     */
    function recover(bytes32 hash, uint8 v, bytes32 r, bytes32 s) internal pure returns (address) {
        // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature
        // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines
        // the valid range for s in (281): 0 < s < secp256k1n ÷ 2 + 1, and for v in (282): v ∈ {27, 28}. Most
        // signatures from current libraries generate a unique signature with an s-value in the lower half order.
        //
        // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value
        // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or
        // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept
        // these malleable signatures as well.
        require(uint256(s) <= 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0, "ECDSA: invalid signature 's' value");
        require(v == 27 || v == 28, "ECDSA: invalid signature 'v' value");

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

        return signer;
    }

    /**
     * @dev Returns an Ethereum Signed Message, created from a `hash`. This
     * produces hash corresponding to the one signed with the
     * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`]
     * JSON-RPC method as part of EIP-191.
     *
     * See {recover}.
     */
    function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32) {
        // 32 is the length in bytes of hash,
        // enforced by the type signature above
        return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", hash));
    }

    /**
     * @dev Returns an Ethereum Signed Typed Data, created from a
     * `domainSeparator` and a `structHash`. This produces hash corresponding
     * to the one signed with the
     * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`]
     * JSON-RPC method as part of EIP-712.
     *
     * See {recover}.
     */
    function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32) {
        return keccak256(abi.encodePacked("\x19\x01", domainSeparator, structHash));
    }
}

File 18 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 19 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);
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"symbol","type":"string"},{"internalType":"address","name":"roarTokenAddress","type":"address"},{"internalType":"address","name":"breedingManagerAddress","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"maleTokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"femaleTokenId","type":"uint256"},{"indexed":false,"internalType":"bool","name":"hasSignature","type":"bool"},{"indexed":false,"internalType":"bool","name":"instantCooldown","type":"bool"}],"name":"CubBorn","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"maleTokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"femaleTokenId","type":"uint256"},{"indexed":false,"internalType":"bool","name":"hasSignature","type":"bool"},{"indexed":false,"internalType":"bool","name":"instantCooldown","type":"bool"},{"indexed":false,"internalType":"address","name":"renter","type":"address"},{"indexed":false,"internalType":"bool","name":"acceptorIsMaleOwner","type":"bool"},{"indexed":false,"internalType":"uint256","name":"rentalFee","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"expiry","type":"uint256"}],"name":"CubBornViaMarketplace","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"CubMinted","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":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"maleTokenId","type":"uint256"},{"internalType":"uint256","name":"femaleTokenId","type":"uint256"},{"internalType":"bool","name":"hasSignature","type":"bool"},{"internalType":"bool","name":"instantCooldown","type":"bool"},{"internalType":"bytes","name":"signature","type":"bytes"}],"name":"breedOwnLeaders","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"maleTokenId","type":"uint256"},{"internalType":"uint256","name":"femaleTokenId","type":"uint256"},{"internalType":"bool","name":"hasSignature","type":"bool"},{"internalType":"bool","name":"instantCooldown","type":"bool"},{"internalType":"address","name":"renter","type":"address"},{"internalType":"bool","name":"acceptorIsMaleOwner","type":"bool"},{"internalType":"uint256","name":"rentalFee","type":"uint256"},{"internalType":"uint256","name":"expiry","type":"uint256"},{"internalType":"bytes","name":"cooldownSignature","type":"bytes"},{"internalType":"bytes","name":"listingSignature","type":"bytes"}],"name":"breedUsingMarketplace","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"breedingIsActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"cooldownPillPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"currentMintCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"flipPreSaleState","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"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":"maxMintSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxPresaleMintsPerWallet","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"numberOfTokens","type":"uint256"}],"name":"mintCubs","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"mintPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mintRoarPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"preSaleIsActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"numberOfTokens","type":"uint256"}],"name":"presaleMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"reservedAmount","type":"uint256"},{"internalType":"address","name":"mintAddress","type":"address"}],"name":"reserveMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"saleIsActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"roarTokenAddress","type":"address"},{"internalType":"address","name":"breedingManagerAddress","type":"address"}],"name":"setAddresses","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"newBaseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newLimit","type":"uint256"}],"name":"setMaxPresaleMintsPerWallet","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newPrice","type":"uint256"},{"internalType":"uint256","name":"newRoarPrice","type":"uint256"},{"internalType":"uint256","name":"maxCubMintSupply","type":"uint256"},{"internalType":"uint256","name":"newCooldownPillPrice","type":"uint256"},{"internalType":"uint256","name":"newSignatureMultiplier","type":"uint256"}],"name":"setPricesAndSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"newSaleIsActive","type":"bool"},{"internalType":"bool","name":"newBreedingIsActive","type":"bool"}],"name":"setStates","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"signatureMultiplier","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","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":"amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

608060405261025860105561012c601155600a601255670186cc6acd4b00006013556113886014556000601560006101000a81548160ff0219169083151502179055506000601560016101000a81548160ff0219169083151502179055506000601560026101000a81548160ff02191690831515021790555060036017553480156200008a57600080fd5b5060405162005d6038038062005d608339818101604052810190620000b09190620004dd565b83838160009080519060200190620000ca9291906200022b565b508060019080519060200190620000e39291906200022b565b5050506000620000f86200022360201b60201c565b905080600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508073ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35081600e60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555080600f60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050505050620005f2565b600033905090565b8280546200023990620005bc565b90600052602060002090601f0160209004810192826200025d5760008555620002a9565b82601f106200027857805160ff1916838001178555620002a9565b82800160010185558215620002a9579182015b82811115620002a85782518255916020019190600101906200028b565b5b509050620002b89190620002bc565b5090565b5b80821115620002d7576000816000905550600101620002bd565b5090565b6000604051905090565b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6200034482620002f9565b810181811067ffffffffffffffff821117156200036657620003656200030a565b5b80604052505050565b60006200037b620002db565b905062000389828262000339565b919050565b600067ffffffffffffffff821115620003ac57620003ab6200030a565b5b620003b782620002f9565b9050602081019050919050565b60005b83811015620003e4578082015181840152602081019050620003c7565b83811115620003f4576000848401525b50505050565b6000620004116200040b846200038e565b6200036f565b90508281526020810184848401111562000430576200042f620002f4565b5b6200043d848285620003c4565b509392505050565b600082601f8301126200045d576200045c620002ef565b5b81516200046f848260208601620003fa565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000620004a58262000478565b9050919050565b620004b78162000498565b8114620004c357600080fd5b50565b600081519050620004d781620004ac565b92915050565b60008060008060808587031215620004fa57620004f9620002e5565b5b600085015167ffffffffffffffff8111156200051b576200051a620002ea565b5b620005298782880162000445565b945050602085015167ffffffffffffffff8111156200054d576200054c620002ea565b5b6200055b8782880162000445565b93505060406200056e87828801620004c6565b92505060606200058187828801620004c6565b91505092959194509250565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680620005d557607f821691505b60208210811415620005ec57620005eb6200058d565b5b50919050565b61575e80620006026000396000f3fe60806040526004361061025c5760003560e01c806360b02f701161014457806390107afe116100b6578063c87b56dd1161007a578063c87b56dd146108c3578063c9b298f114610900578063e985e9c51461091c578063eb8d244414610959578063f032554914610984578063f2fde38b1461099b5761025c565b806390107afe146107f257806395d89b411461081b578063a22cb46514610846578063b88d4fde1461086f578063c285e107146108985761025c565b8063715018a611610108578063715018a61461070a5780637486ecf81461072157806375019fbd1461074a57806386a866fa146107735780638881396c1461079e5780638da5cb5b146107c75761025c565b806360b02f70146106115780636352211e1461063a5780636817c76c146106775780636c0360eb146106a257806370a08231146106cd5761025c565b80632f35e11f116101dd57806342966c68116101a157806342966c68146105105780634969776314610539578063497f7d4f146105645780634f6ccce71461058057806355f804b3146105bd578063608ce0c6146105e65761025c565b80632f35e11f1461042d5780632f745c5914610458578063300170721461049557806338392dd9146104be57806342842e0e146104e75761025c565b806309c94fff1161022457806309c94fff1461035a57806318160ddd146103855780631f0234d8146103b057806323b872dd146103db5780632e1a7d4d146104045761025c565b806301ffc9a714610261578063029bcdf21461029e57806306fdde03146102c9578063081812fc146102f4578063095ea7b314610331575b600080fd5b34801561026d57600080fd5b50610288600480360381019061028391906139a2565b6109c4565b60405161029591906139ea565b60405180910390f35b3480156102aa57600080fd5b506102b36109d6565b6040516102c09190613a1e565b60405180910390f35b3480156102d557600080fd5b506102de6109dc565b6040516102eb9190613ad2565b60405180910390f35b34801561030057600080fd5b5061031b60048036038101906103169190613b20565b610a6e565b6040516103289190613b8e565b60405180910390f35b34801561033d57600080fd5b5061035860048036038101906103539190613bd5565b610af3565b005b34801561036657600080fd5b5061036f610c0b565b60405161037c91906139ea565b60405180910390f35b34801561039157600080fd5b5061039a610c1e565b6040516103a79190613a1e565b60405180910390f35b3480156103bc57600080fd5b506103c5610c2b565b6040516103d291906139ea565b60405180910390f35b3480156103e757600080fd5b5061040260048036038101906103fd9190613c15565b610c3e565b005b34801561041057600080fd5b5061042b60048036038101906104269190613b20565b610c9e565b005b34801561043957600080fd5b50610442610d27565b60405161044f9190613a1e565b60405180910390f35b34801561046457600080fd5b5061047f600480360381019061047a9190613bd5565b610d2d565b60405161048c9190613a1e565b60405180910390f35b3480156104a157600080fd5b506104bc60048036038101906104b79190613dc9565b610dd2565b005b3480156104ca57600080fd5b506104e560048036038101906104e09190613ee0565b6110c9565b005b3480156104f357600080fd5b5061050e60048036038101906105099190613c15565b6112f3565b005b34801561051c57600080fd5b5061053760048036038101906105329190613b20565b611313565b005b34801561054557600080fd5b5061054e61136f565b60405161055b9190613a1e565b60405180910390f35b61057e60048036038101906105799190613b20565b611380565b005b34801561058c57600080fd5b506105a760048036038101906105a29190613b20565b611501565b6040516105b49190613a1e565b60405180910390f35b3480156105c957600080fd5b506105e460048036038101906105df9190614018565b611572565b005b3480156105f257600080fd5b506105fb611608565b6040516106089190613a1e565b60405180910390f35b34801561061d57600080fd5b5061063860048036038101906106339190614061565b61160e565b005b34801561064657600080fd5b50610661600480360381019061065c9190613b20565b61170d565b60405161066e9190613b8e565b60405180910390f35b34801561068357600080fd5b5061068c6117bf565b6040516106999190613a1e565b60405180910390f35b3480156106ae57600080fd5b506106b76117c5565b6040516106c49190613ad2565b60405180910390f35b3480156106d957600080fd5b506106f460048036038101906106ef91906140a1565b611853565b6040516107019190613a1e565b60405180910390f35b34801561071657600080fd5b5061071f61190b565b005b34801561072d57600080fd5b50610748600480360381019061074391906140ce565b611a48565b005b34801561075657600080fd5b50610771600480360381019061076c919061410e565b611afc565b005b34801561077f57600080fd5b50610788611ba2565b6040516107959190613a1e565b60405180910390f35b3480156107aa57600080fd5b506107c560048036038101906107c09190613b20565b611ba8565b005b3480156107d357600080fd5b506107dc611c2e565b6040516107e99190613b8e565b60405180910390f35b3480156107fe57600080fd5b5061081960048036038101906108149190614189565b611c58565b005b34801561082757600080fd5b50610830611d5a565b60405161083d9190613ad2565b60405180910390f35b34801561085257600080fd5b5061086d600480360381019061086891906141c9565b611dec565b005b34801561087b57600080fd5b5061089660048036038101906108919190614209565b611f6d565b005b3480156108a457600080fd5b506108ad611fcf565b6040516108ba9190613a1e565b60405180910390f35b3480156108cf57600080fd5b506108ea60048036038101906108e59190613b20565b611fd5565b6040516108f79190613ad2565b60405180910390f35b61091a60048036038101906109159190613b20565b61207c565b005b34801561092857600080fd5b50610943600480360381019061093e9190614189565b6122e2565b60405161095091906139ea565b60405180910390f35b34801561096557600080fd5b5061096e612376565b60405161097b91906139ea565b60405180910390f35b34801561099057600080fd5b50610999612389565b005b3480156109a757600080fd5b506109c260048036038101906109bd91906140a1565b612431565b005b60006109cf826125dd565b9050919050565b60115481565b6060600080546109eb906142bb565b80601f0160208091040260200160405190810160405280929190818152602001828054610a17906142bb565b8015610a645780601f10610a3957610100808354040283529160200191610a64565b820191906000526020600020905b815481529060010190602001808311610a4757829003601f168201915b5050505050905090565b6000610a7982612657565b610ab8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610aaf9061435f565b60405180910390fd5b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610afe8261170d565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610b6f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b66906143f1565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610b8e6126c3565b73ffffffffffffffffffffffffffffffffffffffff161480610bbd5750610bbc81610bb76126c3565b6122e2565b5b610bfc576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bf390614483565b60405180910390fd5b610c0683836126cb565b505050565b601560029054906101000a900460ff1681565b6000600880549050905090565b601560019054906101000a900460ff1681565b610c4f610c496126c3565b82612784565b610c8e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c8590614515565b60405180910390fd5b610c99838383612862565b505050565b610ca66126c3565b73ffffffffffffffffffffffffffffffffffffffff16610cc4611c2e565b73ffffffffffffffffffffffffffffffffffffffff1614610d1a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d1190614581565b60405180910390fd5b610d243382612abe565b50565b60175481565b6000610d3883611853565b8210610d79576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d7090614613565b60405180910390fd5b600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002054905092915050565b601560029054906101000a900460ff16610e21576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e189061467f565b60405180910390fd5b600f60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16634643f488338c8c8c8c8c8c8c8c8c8c6040518c63ffffffff1660e01b8152600401610e909b9a999897969594939291906146f4565b600060405180830381600087803b158015610eaa57600080fd5b505af1158015610ebe573d6000803e3d6000fd5b50505050600e60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166379cc679033670de0b6b3a76400008b610f16576001610f1a565b6012545b8b610f26576000610f2a565b6011545b601054610f3791906147dc565b610f419190614832565b610f4b9190614832565b6040518363ffffffff1660e01b8152600401610f6892919061488c565b600060405180830381600087803b158015610f8257600080fd5b505af1158015610f96573d6000803e3d6000fd5b50505050600e60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166323b872dd3388670de0b6b3a764000088610fee9190614832565b6040518463ffffffff1660e01b815260040161100c939291906148b5565b6020604051808303816000875af115801561102b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061104f9190614901565b5061105a600b612bb2565b61106d33611068600b612bc8565b612bd6565b7fedfe971995d259e6b0b864802fd726b471bc8cfab43316658173bbc68b27cbd4611098600b612bc8565b8b8b8b8b8b8b8b8b6040516110b59998979695949392919061492e565b60405180910390a150505050505050505050565b601560029054906101000a900460ff16611118576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161110f9061467f565b60405180910390fd5b600f60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16636f3f094b3387878787876040518763ffffffff1660e01b815260040161117d969594939291906149bb565b600060405180830381600087803b15801561119757600080fd5b505af11580156111ab573d6000803e3d6000fd5b50505050600e60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166379cc679033670de0b6b3a764000086611203576001611207565b6012545b86611213576000611217565b6011545b60105461122491906147dc565b61122e9190614832565b6112389190614832565b6040518363ffffffff1660e01b815260040161125592919061488c565b600060405180830381600087803b15801561126f57600080fd5b505af1158015611283573d6000803e3d6000fd5b50505050611291600b612bb2565b6112a43361129f600b612bc8565b612bd6565b7f18d486020cd142bef95bcba5430dddb784a285627994860be303a6e5af467ff86112cf600b612bc8565b868686866040516112e4959493929190614a23565b60405180910390a15050505050565b61130e83838360405180602001604052806000815250611f6d565b505050565b61132461131e6126c3565b82612784565b611363576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161135a90614ae8565b60405180910390fd5b61136c81612bf4565b50565b600061137b600c612bc8565b905090565b601560009054906101000a900460ff166113cf576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113c690614b54565b60405180910390fd5b601454816113dd600c612bc8565b6113e791906147dc565b1115611428576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161141f90614bc0565b60405180910390fd5b34816013546114379190614832565b1115611478576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161146f90614c2c565b60405180910390fd5b60005b818110156114fd5761148d600c612bb2565b611497600b612bb2565b6114aa336114a5600b612bc8565b612bd6565b7f8da0fc017a10bcf6a34185d0a1dca1bdd55ceac35b5640dd66d85a09952f9ad16114d5600b612bc8565b6040516114e29190613a1e565b60405180910390a180806114f590614c4c565b91505061147b565b5050565b600061150b610c1e565b821061154c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161154390614d07565b60405180910390fd5b600882815481106115605761155f614d27565b5b90600052602060002001549050919050565b61157a6126c3565b73ffffffffffffffffffffffffffffffffffffffff16611598611c2e565b73ffffffffffffffffffffffffffffffffffffffff16146115ee576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115e590614581565b60405180910390fd5b80600d9080519060200190611604929190613893565b5050565b60125481565b6116166126c3565b73ffffffffffffffffffffffffffffffffffffffff16611634611c2e565b73ffffffffffffffffffffffffffffffffffffffff161461168a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161168190614581565b60405180910390fd5b6000600190505b828111611708576116a2600b612bb2565b6116b5826116b0600b612bc8565b612bd6565b7f8da0fc017a10bcf6a34185d0a1dca1bdd55ceac35b5640dd66d85a09952f9ad16116e0600b612bc8565b6040516116ed9190613a1e565b60405180910390a1808061170090614c4c565b915050611691565b505050565b6000806002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156117b6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117ad90614dc8565b60405180910390fd5b80915050919050565b60135481565b600d80546117d2906142bb565b80601f01602080910402602001604051908101604052809291908181526020018280546117fe906142bb565b801561184b5780601f106118205761010080835404028352916020019161184b565b820191906000526020600020905b81548152906001019060200180831161182e57829003601f168201915b505050505081565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156118c4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118bb90614e5a565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b6119136126c3565b73ffffffffffffffffffffffffffffffffffffffff16611931611c2e565b73ffffffffffffffffffffffffffffffffffffffff1614611987576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161197e90614581565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff16600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a36000600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550565b611a506126c3565b73ffffffffffffffffffffffffffffffffffffffff16611a6e611c2e565b73ffffffffffffffffffffffffffffffffffffffff1614611ac4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611abb90614581565b60405180910390fd5b81601560006101000a81548160ff02191690831515021790555080601560026101000a81548160ff0219169083151502179055505050565b611b046126c3565b73ffffffffffffffffffffffffffffffffffffffff16611b22611c2e565b73ffffffffffffffffffffffffffffffffffffffff1614611b78576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b6f90614581565b60405180910390fd5b84601381905550836010819055508260148190555081601181905550806012819055505050505050565b60105481565b611bb06126c3565b73ffffffffffffffffffffffffffffffffffffffff16611bce611c2e565b73ffffffffffffffffffffffffffffffffffffffff1614611c24576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c1b90614581565b60405180910390fd5b8060178190555050565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b611c606126c3565b73ffffffffffffffffffffffffffffffffffffffff16611c7e611c2e565b73ffffffffffffffffffffffffffffffffffffffff1614611cd4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ccb90614581565b60405180910390fd5b81600e60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555080600f60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505050565b606060018054611d69906142bb565b80601f0160208091040260200160405190810160405280929190818152602001828054611d95906142bb565b8015611de25780601f10611db757610100808354040283529160200191611de2565b820191906000526020600020905b815481529060010190602001808311611dc557829003601f168201915b5050505050905090565b611df46126c3565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611e62576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e5990614ec6565b60405180910390fd5b8060056000611e6f6126c3565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff16611f1c6126c3565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051611f6191906139ea565b60405180910390a35050565b611f7e611f786126c3565b83612784565b611fbd576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611fb490614515565b60405180910390fd5b611fc984848484612d05565b50505050565b60145481565b6060611fe082612657565b61201f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161201690614f58565b60405180910390fd5b6000612029612d61565b905060008151116120495760405180602001604052806000815250612074565b8061205384612df3565b604051602001612064929190614fb4565b6040516020818303038152906040525b915050919050565b601560019054906101000a900460ff166120cb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120c290615024565b60405180910390fd5b60175481601660003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461211991906147dc565b111561215a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161215190615090565b60405180910390fd5b60145481612168600c612bc8565b61217291906147dc565b11156121b3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121aa90614bc0565b60405180910390fd5b34816013546121c29190614832565b1115612203576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121fa90614c2c565b60405180910390fd5b80601660003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461225291906147dc565b9250508190555060005b818110156122de5761226e600c612bb2565b612278600b612bb2565b61228b33612286600b612bc8565b612bd6565b7f8da0fc017a10bcf6a34185d0a1dca1bdd55ceac35b5640dd66d85a09952f9ad16122b6600b612bc8565b6040516122c39190613a1e565b60405180910390a180806122d690614c4c565b91505061225c565b5050565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b601560009054906101000a900460ff1681565b6123916126c3565b73ffffffffffffffffffffffffffffffffffffffff166123af611c2e565b73ffffffffffffffffffffffffffffffffffffffff1614612405576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123fc90614581565b60405180910390fd5b601560019054906101000a900460ff1615601560016101000a81548160ff021916908315150217905550565b6124396126c3565b73ffffffffffffffffffffffffffffffffffffffff16612457611c2e565b73ffffffffffffffffffffffffffffffffffffffff16146124ad576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124a490614581565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141561251d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161251490615122565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a380600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b60007f780e9d63000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480612650575061264f82612f54565b5b9050919050565b60008073ffffffffffffffffffffffffffffffffffffffff166002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b600033905090565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff1661273e8361170d565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600061278f82612657565b6127ce576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016127c5906151b4565b60405180910390fd5b60006127d98361170d565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16148061284857508373ffffffffffffffffffffffffffffffffffffffff1661283084610a6e565b73ffffffffffffffffffffffffffffffffffffffff16145b80612859575061285881856122e2565b5b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff166128828261170d565b73ffffffffffffffffffffffffffffffffffffffff16146128d8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016128cf90615246565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612948576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161293f906152d8565b60405180910390fd5b612953838383613036565b61295e6000826126cb565b6001600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546129ae91906152f8565b925050819055506001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612a0591906147dc565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b80471015612b01576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612af890615378565b60405180910390fd5b60008273ffffffffffffffffffffffffffffffffffffffff1682604051612b27906153c9565b60006040518083038185875af1925050503d8060008114612b64576040519150601f19603f3d011682016040523d82523d6000602084013e612b69565b606091505b5050905080612bad576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612ba490615450565b60405180910390fd5b505050565b6001816000016000828254019250508190555050565b600081600001549050919050565b612bf0828260405180602001604052806000815250613046565b5050565b6000612bff8261170d565b9050612c0d81600084613036565b612c186000836126cb565b6001600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612c6891906152f8565b925050819055506002600083815260200190815260200160002060006101000a81549073ffffffffffffffffffffffffffffffffffffffff021916905581600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050565b612d10848484612862565b612d1c848484846130a1565b612d5b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612d52906154e2565b60405180910390fd5b50505050565b6060600d8054612d70906142bb565b80601f0160208091040260200160405190810160405280929190818152602001828054612d9c906142bb565b8015612de95780601f10612dbe57610100808354040283529160200191612de9565b820191906000526020600020905b815481529060010190602001808311612dcc57829003601f168201915b5050505050905090565b60606000821415612e3b576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050612f4f565b600082905060005b60008214612e6d578080612e5690614c4c565b915050600a82612e669190615531565b9150612e43565b60008167ffffffffffffffff811115612e8957612e88613c9e565b5b6040519080825280601f01601f191660200182016040528015612ebb5781602001600182028036833780820191505090505b5090505b60008514612f4857600182612ed491906152f8565b9150600a85612ee39190615562565b6030612eef91906147dc565b60f81b818381518110612f0557612f04614d27565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a85612f419190615531565b9450612ebf565b8093505050505b919050565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061301f57507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b8061302f575061302e82613229565b5b9050919050565b613041838383613293565b505050565b61305083836133a7565b61305d60008484846130a1565b61309c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613093906154e2565b60405180910390fd5b505050565b60006130c28473ffffffffffffffffffffffffffffffffffffffff16613575565b1561321c578373ffffffffffffffffffffffffffffffffffffffff1663150b7a026130eb6126c3565b8786866040518563ffffffff1660e01b815260040161310d9493929190615593565b6020604051808303816000875af192505050801561314957506040513d601f19601f8201168201806040525081019061314691906155f4565b60015b6131cc573d8060008114613179576040519150601f19603f3d011682016040523d82523d6000602084013e61317e565b606091505b506000815114156131c4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016131bb906154e2565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050613221565b600190505b949350505050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b61329e838383613588565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156132e1576132dc8161358d565b613320565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161461331f5761331e83826135d6565b5b5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156133635761335e81613743565b6133a2565b8273ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16146133a1576133a08282613814565b5b5b505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415613417576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161340e9061566d565b60405180910390fd5b61342081612657565b15613460576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613457906156d9565b60405180910390fd5b61346c60008383613036565b6001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546134bc91906147dc565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050565b600080823b905060008111915050919050565b505050565b6008805490506009600083815260200190815260200160002081905550600881908060018154018082558091505060019003906000526020600020016000909190919091505550565b600060016135e384611853565b6135ed91906152f8565b90506000600760008481526020019081526020016000205490508181146136d2576000600660008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002054905080600660008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002081905550816007600083815260200190815260200160002081905550505b6007600084815260200190815260200160002060009055600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008381526020019081526020016000206000905550505050565b6000600160088054905061375791906152f8565b905060006009600084815260200190815260200160002054905060006008838154811061378757613786614d27565b5b9060005260206000200154905080600883815481106137a9576137a8614d27565b5b9060005260206000200181905550816009600083815260200190815260200160002081905550600960008581526020019081526020016000206000905560088054806137f8576137f76156f9565b5b6001900381819060005260206000200160009055905550505050565b600061381f83611853565b905081600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002081905550806007600084815260200190815260200160002081905550505050565b82805461389f906142bb565b90600052602060002090601f0160209004810192826138c15760008555613908565b82601f106138da57805160ff1916838001178555613908565b82800160010185558215613908579182015b828111156139075782518255916020019190600101906138ec565b5b5090506139159190613919565b5090565b5b8082111561393257600081600090555060010161391a565b5090565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b61397f8161394a565b811461398a57600080fd5b50565b60008135905061399c81613976565b92915050565b6000602082840312156139b8576139b7613940565b5b60006139c68482850161398d565b91505092915050565b60008115159050919050565b6139e4816139cf565b82525050565b60006020820190506139ff60008301846139db565b92915050565b6000819050919050565b613a1881613a05565b82525050565b6000602082019050613a336000830184613a0f565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b83811015613a73578082015181840152602081019050613a58565b83811115613a82576000848401525b50505050565b6000601f19601f8301169050919050565b6000613aa482613a39565b613aae8185613a44565b9350613abe818560208601613a55565b613ac781613a88565b840191505092915050565b60006020820190508181036000830152613aec8184613a99565b905092915050565b613afd81613a05565b8114613b0857600080fd5b50565b600081359050613b1a81613af4565b92915050565b600060208284031215613b3657613b35613940565b5b6000613b4484828501613b0b565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000613b7882613b4d565b9050919050565b613b8881613b6d565b82525050565b6000602082019050613ba36000830184613b7f565b92915050565b613bb281613b6d565b8114613bbd57600080fd5b50565b600081359050613bcf81613ba9565b92915050565b60008060408385031215613bec57613beb613940565b5b6000613bfa85828601613bc0565b9250506020613c0b85828601613b0b565b9150509250929050565b600080600060608486031215613c2e57613c2d613940565b5b6000613c3c86828701613bc0565b9350506020613c4d86828701613bc0565b9250506040613c5e86828701613b0b565b9150509250925092565b613c71816139cf565b8114613c7c57600080fd5b50565b600081359050613c8e81613c68565b92915050565b600080fd5b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b613cd682613a88565b810181811067ffffffffffffffff82111715613cf557613cf4613c9e565b5b80604052505050565b6000613d08613936565b9050613d148282613ccd565b919050565b600067ffffffffffffffff821115613d3457613d33613c9e565b5b613d3d82613a88565b9050602081019050919050565b82818337600083830152505050565b6000613d6c613d6784613d19565b613cfe565b905082815260208101848484011115613d8857613d87613c99565b5b613d93848285613d4a565b509392505050565b600082601f830112613db057613daf613c94565b5b8135613dc0848260208601613d59565b91505092915050565b6000806000806000806000806000806101408b8d031215613ded57613dec613940565b5b6000613dfb8d828e01613b0b565b9a50506020613e0c8d828e01613b0b565b9950506040613e1d8d828e01613c7f565b9850506060613e2e8d828e01613c7f565b9750506080613e3f8d828e01613bc0565b96505060a0613e508d828e01613c7f565b95505060c0613e618d828e01613b0b565b94505060e0613e728d828e01613b0b565b9350506101008b013567ffffffffffffffff811115613e9457613e93613945565b5b613ea08d828e01613d9b565b9250506101208b013567ffffffffffffffff811115613ec257613ec1613945565b5b613ece8d828e01613d9b565b9150509295989b9194979a5092959850565b600080600080600060a08688031215613efc57613efb613940565b5b6000613f0a88828901613b0b565b9550506020613f1b88828901613b0b565b9450506040613f2c88828901613c7f565b9350506060613f3d88828901613c7f565b925050608086013567ffffffffffffffff811115613f5e57613f5d613945565b5b613f6a88828901613d9b565b9150509295509295909350565b600067ffffffffffffffff821115613f9257613f91613c9e565b5b613f9b82613a88565b9050602081019050919050565b6000613fbb613fb684613f77565b613cfe565b905082815260208101848484011115613fd757613fd6613c99565b5b613fe2848285613d4a565b509392505050565b600082601f830112613fff57613ffe613c94565b5b813561400f848260208601613fa8565b91505092915050565b60006020828403121561402e5761402d613940565b5b600082013567ffffffffffffffff81111561404c5761404b613945565b5b61405884828501613fea565b91505092915050565b6000806040838503121561407857614077613940565b5b600061408685828601613b0b565b925050602061409785828601613bc0565b9150509250929050565b6000602082840312156140b7576140b6613940565b5b60006140c584828501613bc0565b91505092915050565b600080604083850312156140e5576140e4613940565b5b60006140f385828601613c7f565b925050602061410485828601613c7f565b9150509250929050565b600080600080600060a0868803121561412a57614129613940565b5b600061413888828901613b0b565b955050602061414988828901613b0b565b945050604061415a88828901613b0b565b935050606061416b88828901613b0b565b925050608061417c88828901613b0b565b9150509295509295909350565b600080604083850312156141a05761419f613940565b5b60006141ae85828601613bc0565b92505060206141bf85828601613bc0565b9150509250929050565b600080604083850312156141e0576141df613940565b5b60006141ee85828601613bc0565b92505060206141ff85828601613c7f565b9150509250929050565b6000806000806080858703121561422357614222613940565b5b600061423187828801613bc0565b945050602061424287828801613bc0565b935050604061425387828801613b0b565b925050606085013567ffffffffffffffff81111561427457614273613945565b5b61428087828801613d9b565b91505092959194509250565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806142d357607f821691505b602082108114156142e7576142e661428c565b5b50919050565b7f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b6000614349602c83613a44565b9150614354826142ed565b604082019050919050565b600060208201905081810360008301526143788161433c565b9050919050565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b60006143db602183613a44565b91506143e68261437f565b604082019050919050565b6000602082019050818103600083015261440a816143ce565b9050919050565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760008201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000602082015250565b600061446d603883613a44565b915061447882614411565b604082019050919050565b6000602082019050818103600083015261449c81614460565b9050919050565b7f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60008201527f776e6572206e6f7220617070726f766564000000000000000000000000000000602082015250565b60006144ff603183613a44565b915061450a826144a3565b604082019050919050565b6000602082019050818103600083015261452e816144f2565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b600061456b602083613a44565b915061457682614535565b602082019050919050565b6000602082019050818103600083015261459a8161455e565b9050919050565b7f455243373231456e756d657261626c653a206f776e657220696e646578206f7560008201527f74206f6620626f756e6473000000000000000000000000000000000000000000602082015250565b60006145fd602b83613a44565b9150614608826145a1565b604082019050919050565b6000602082019050818103600083015261462c816145f0565b9050919050565b7f4272656564696e67206e6f74206c697665000000000000000000000000000000600082015250565b6000614669601183613a44565b915061467482614633565b602082019050919050565b600060208201905081810360008301526146988161465c565b9050919050565b600081519050919050565b600082825260208201905092915050565b60006146c68261469f565b6146d081856146aa565b93506146e0818560208601613a55565b6146e981613a88565b840191505092915050565b60006101608201905061470a600083018e613b7f565b614717602083018d613a0f565b614724604083018c613a0f565b614731606083018b6139db565b61473e608083018a6139db565b61474b60a0830189613b7f565b61475860c08301886139db565b61476560e0830187613a0f565b614773610100830186613a0f565b81810361012083015261478681856146bb565b905081810361014083015261479b81846146bb565b90509c9b505050505050505050505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60006147e782613a05565b91506147f283613a05565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115614827576148266147ad565b5b828201905092915050565b600061483d82613a05565b915061484883613a05565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615614881576148806147ad565b5b828202905092915050565b60006040820190506148a16000830185613b7f565b6148ae6020830184613a0f565b9392505050565b60006060820190506148ca6000830186613b7f565b6148d76020830185613b7f565b6148e46040830184613a0f565b949350505050565b6000815190506148fb81613c68565b92915050565b60006020828403121561491757614916613940565b5b6000614925848285016148ec565b91505092915050565b600061012082019050614944600083018c613a0f565b614951602083018b613a0f565b61495e604083018a613a0f565b61496b60608301896139db565b61497860808301886139db565b61498560a0830187613b7f565b61499260c08301866139db565b61499f60e0830185613a0f565b6149ad610100830184613a0f565b9a9950505050505050505050565b600060c0820190506149d06000830189613b7f565b6149dd6020830188613a0f565b6149ea6040830187613a0f565b6149f760608301866139db565b614a0460808301856139db565b81810360a0830152614a1681846146bb565b9050979650505050505050565b600060a082019050614a386000830188613a0f565b614a456020830187613a0f565b614a526040830186613a0f565b614a5f60608301856139db565b614a6c60808301846139db565b9695505050505050565b7f4552433732314275726e61626c653a2063616c6c6572206973206e6f74206f7760008201527f6e6572206e6f7220617070726f76656400000000000000000000000000000000602082015250565b6000614ad2603083613a44565b9150614add82614a76565b604082019050919050565b60006020820190508181036000830152614b0181614ac5565b9050919050565b7f53616c65206e6f74206c69766500000000000000000000000000000000000000600082015250565b6000614b3e600d83613a44565b9150614b4982614b08565b602082019050919050565b60006020820190508181036000830152614b6d81614b31565b9050919050565b7f4d617820737570706c7900000000000000000000000000000000000000000000600082015250565b6000614baa600a83613a44565b9150614bb582614b74565b602082019050919050565b60006020820190508181036000830152614bd981614b9d565b9050919050565b7f496e636f72726563742065746865720000000000000000000000000000000000600082015250565b6000614c16600f83613a44565b9150614c2182614be0565b602082019050919050565b60006020820190508181036000830152614c4581614c09565b9050919050565b6000614c5782613a05565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415614c8a57614c896147ad565b5b600182019050919050565b7f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60008201527f7574206f6620626f756e64730000000000000000000000000000000000000000602082015250565b6000614cf1602c83613a44565b9150614cfc82614c95565b604082019050919050565b60006020820190508181036000830152614d2081614ce4565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460008201527f656e7420746f6b656e0000000000000000000000000000000000000000000000602082015250565b6000614db2602983613a44565b9150614dbd82614d56565b604082019050919050565b60006020820190508181036000830152614de181614da5565b9050919050565b7f4552433732313a2062616c616e636520717565727920666f7220746865207a6560008201527f726f206164647265737300000000000000000000000000000000000000000000602082015250565b6000614e44602a83613a44565b9150614e4f82614de8565b604082019050919050565b60006020820190508181036000830152614e7381614e37565b9050919050565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b6000614eb0601983613a44565b9150614ebb82614e7a565b602082019050919050565b60006020820190508181036000830152614edf81614ea3565b9050919050565b7f4552433732314d657461646174613a2055524920717565727920666f72206e6f60008201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000602082015250565b6000614f42602f83613a44565b9150614f4d82614ee6565b604082019050919050565b60006020820190508181036000830152614f7181614f35565b9050919050565b600081905092915050565b6000614f8e82613a39565b614f988185614f78565b9350614fa8818560208601613a55565b80840191505092915050565b6000614fc08285614f83565b9150614fcc8284614f83565b91508190509392505050565b7f50726573616c65206e6f74206c69766500000000000000000000000000000000600082015250565b600061500e601083613a44565b915061501982614fd8565b602082019050919050565b6000602082019050818103600083015261503d81615001565b9050919050565b7f50726573616c65206c696d697400000000000000000000000000000000000000600082015250565b600061507a600d83613a44565b915061508582615044565b602082019050919050565b600060208201905081810360008301526150a98161506d565b9050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b600061510c602683613a44565b9150615117826150b0565b604082019050919050565b6000602082019050818103600083015261513b816150ff565b9050919050565b7f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b600061519e602c83613a44565b91506151a982615142565b604082019050919050565b600060208201905081810360008301526151cd81615191565b9050919050565b7f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960008201527f73206e6f74206f776e0000000000000000000000000000000000000000000000602082015250565b6000615230602983613a44565b915061523b826151d4565b604082019050919050565b6000602082019050818103600083015261525f81615223565b9050919050565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b60006152c2602483613a44565b91506152cd82615266565b604082019050919050565b600060208201905081810360008301526152f1816152b5565b9050919050565b600061530382613a05565b915061530e83613a05565b925082821015615321576153206147ad565b5b828203905092915050565b7f416464726573733a20696e73756666696369656e742062616c616e6365000000600082015250565b6000615362601d83613a44565b915061536d8261532c565b602082019050919050565b6000602082019050818103600083015261539181615355565b9050919050565b600081905092915050565b50565b60006153b3600083615398565b91506153be826153a3565b600082019050919050565b60006153d4826153a6565b9150819050919050565b7f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260008201527f6563697069656e74206d61792068617665207265766572746564000000000000602082015250565b600061543a603a83613a44565b9150615445826153de565b604082019050919050565b600060208201905081810360008301526154698161542d565b9050919050565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b60006154cc603283613a44565b91506154d782615470565b604082019050919050565b600060208201905081810360008301526154fb816154bf565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b600061553c82613a05565b915061554783613a05565b92508261555757615556615502565b5b828204905092915050565b600061556d82613a05565b915061557883613a05565b92508261558857615587615502565b5b828206905092915050565b60006080820190506155a86000830187613b7f565b6155b56020830186613b7f565b6155c26040830185613a0f565b81810360608301526155d481846146bb565b905095945050505050565b6000815190506155ee81613976565b92915050565b60006020828403121561560a57615609613940565b5b6000615618848285016155df565b91505092915050565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b6000615657602083613a44565b915061566282615621565b602082019050919050565b600060208201905081810360008301526156868161564a565b9050919050565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b60006156c3601c83613a44565b91506156ce8261568d565b602082019050919050565b600060208201905081810360008301526156f2816156b6565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fdfea26469706673582212201b2e6e21320a6494987b917c7184037cac87d176964c5c3b558ccd33fb7a557b64736f6c634300080a0033000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000c0000000000000000000000000cbba83a4d3f35d294a26012ac54e9ab6627da018000000000000000000000000bd351bde09e79d82bf127cc55426fe641199608a0000000000000000000000000000000000000000000000000000000000000011526f6172696e6720526f636373746172730000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008524f4152524f4343000000000000000000000000000000000000000000000000

Deployed Bytecode

0x60806040526004361061025c5760003560e01c806360b02f701161014457806390107afe116100b6578063c87b56dd1161007a578063c87b56dd146108c3578063c9b298f114610900578063e985e9c51461091c578063eb8d244414610959578063f032554914610984578063f2fde38b1461099b5761025c565b806390107afe146107f257806395d89b411461081b578063a22cb46514610846578063b88d4fde1461086f578063c285e107146108985761025c565b8063715018a611610108578063715018a61461070a5780637486ecf81461072157806375019fbd1461074a57806386a866fa146107735780638881396c1461079e5780638da5cb5b146107c75761025c565b806360b02f70146106115780636352211e1461063a5780636817c76c146106775780636c0360eb146106a257806370a08231146106cd5761025c565b80632f35e11f116101dd57806342966c68116101a157806342966c68146105105780634969776314610539578063497f7d4f146105645780634f6ccce71461058057806355f804b3146105bd578063608ce0c6146105e65761025c565b80632f35e11f1461042d5780632f745c5914610458578063300170721461049557806338392dd9146104be57806342842e0e146104e75761025c565b806309c94fff1161022457806309c94fff1461035a57806318160ddd146103855780631f0234d8146103b057806323b872dd146103db5780632e1a7d4d146104045761025c565b806301ffc9a714610261578063029bcdf21461029e57806306fdde03146102c9578063081812fc146102f4578063095ea7b314610331575b600080fd5b34801561026d57600080fd5b50610288600480360381019061028391906139a2565b6109c4565b60405161029591906139ea565b60405180910390f35b3480156102aa57600080fd5b506102b36109d6565b6040516102c09190613a1e565b60405180910390f35b3480156102d557600080fd5b506102de6109dc565b6040516102eb9190613ad2565b60405180910390f35b34801561030057600080fd5b5061031b60048036038101906103169190613b20565b610a6e565b6040516103289190613b8e565b60405180910390f35b34801561033d57600080fd5b5061035860048036038101906103539190613bd5565b610af3565b005b34801561036657600080fd5b5061036f610c0b565b60405161037c91906139ea565b60405180910390f35b34801561039157600080fd5b5061039a610c1e565b6040516103a79190613a1e565b60405180910390f35b3480156103bc57600080fd5b506103c5610c2b565b6040516103d291906139ea565b60405180910390f35b3480156103e757600080fd5b5061040260048036038101906103fd9190613c15565b610c3e565b005b34801561041057600080fd5b5061042b60048036038101906104269190613b20565b610c9e565b005b34801561043957600080fd5b50610442610d27565b60405161044f9190613a1e565b60405180910390f35b34801561046457600080fd5b5061047f600480360381019061047a9190613bd5565b610d2d565b60405161048c9190613a1e565b60405180910390f35b3480156104a157600080fd5b506104bc60048036038101906104b79190613dc9565b610dd2565b005b3480156104ca57600080fd5b506104e560048036038101906104e09190613ee0565b6110c9565b005b3480156104f357600080fd5b5061050e60048036038101906105099190613c15565b6112f3565b005b34801561051c57600080fd5b5061053760048036038101906105329190613b20565b611313565b005b34801561054557600080fd5b5061054e61136f565b60405161055b9190613a1e565b60405180910390f35b61057e60048036038101906105799190613b20565b611380565b005b34801561058c57600080fd5b506105a760048036038101906105a29190613b20565b611501565b6040516105b49190613a1e565b60405180910390f35b3480156105c957600080fd5b506105e460048036038101906105df9190614018565b611572565b005b3480156105f257600080fd5b506105fb611608565b6040516106089190613a1e565b60405180910390f35b34801561061d57600080fd5b5061063860048036038101906106339190614061565b61160e565b005b34801561064657600080fd5b50610661600480360381019061065c9190613b20565b61170d565b60405161066e9190613b8e565b60405180910390f35b34801561068357600080fd5b5061068c6117bf565b6040516106999190613a1e565b60405180910390f35b3480156106ae57600080fd5b506106b76117c5565b6040516106c49190613ad2565b60405180910390f35b3480156106d957600080fd5b506106f460048036038101906106ef91906140a1565b611853565b6040516107019190613a1e565b60405180910390f35b34801561071657600080fd5b5061071f61190b565b005b34801561072d57600080fd5b50610748600480360381019061074391906140ce565b611a48565b005b34801561075657600080fd5b50610771600480360381019061076c919061410e565b611afc565b005b34801561077f57600080fd5b50610788611ba2565b6040516107959190613a1e565b60405180910390f35b3480156107aa57600080fd5b506107c560048036038101906107c09190613b20565b611ba8565b005b3480156107d357600080fd5b506107dc611c2e565b6040516107e99190613b8e565b60405180910390f35b3480156107fe57600080fd5b5061081960048036038101906108149190614189565b611c58565b005b34801561082757600080fd5b50610830611d5a565b60405161083d9190613ad2565b60405180910390f35b34801561085257600080fd5b5061086d600480360381019061086891906141c9565b611dec565b005b34801561087b57600080fd5b5061089660048036038101906108919190614209565b611f6d565b005b3480156108a457600080fd5b506108ad611fcf565b6040516108ba9190613a1e565b60405180910390f35b3480156108cf57600080fd5b506108ea60048036038101906108e59190613b20565b611fd5565b6040516108f79190613ad2565b60405180910390f35b61091a60048036038101906109159190613b20565b61207c565b005b34801561092857600080fd5b50610943600480360381019061093e9190614189565b6122e2565b60405161095091906139ea565b60405180910390f35b34801561096557600080fd5b5061096e612376565b60405161097b91906139ea565b60405180910390f35b34801561099057600080fd5b50610999612389565b005b3480156109a757600080fd5b506109c260048036038101906109bd91906140a1565b612431565b005b60006109cf826125dd565b9050919050565b60115481565b6060600080546109eb906142bb565b80601f0160208091040260200160405190810160405280929190818152602001828054610a17906142bb565b8015610a645780601f10610a3957610100808354040283529160200191610a64565b820191906000526020600020905b815481529060010190602001808311610a4757829003601f168201915b5050505050905090565b6000610a7982612657565b610ab8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610aaf9061435f565b60405180910390fd5b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610afe8261170d565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610b6f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b66906143f1565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610b8e6126c3565b73ffffffffffffffffffffffffffffffffffffffff161480610bbd5750610bbc81610bb76126c3565b6122e2565b5b610bfc576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bf390614483565b60405180910390fd5b610c0683836126cb565b505050565b601560029054906101000a900460ff1681565b6000600880549050905090565b601560019054906101000a900460ff1681565b610c4f610c496126c3565b82612784565b610c8e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c8590614515565b60405180910390fd5b610c99838383612862565b505050565b610ca66126c3565b73ffffffffffffffffffffffffffffffffffffffff16610cc4611c2e565b73ffffffffffffffffffffffffffffffffffffffff1614610d1a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d1190614581565b60405180910390fd5b610d243382612abe565b50565b60175481565b6000610d3883611853565b8210610d79576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d7090614613565b60405180910390fd5b600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002054905092915050565b601560029054906101000a900460ff16610e21576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e189061467f565b60405180910390fd5b600f60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16634643f488338c8c8c8c8c8c8c8c8c8c6040518c63ffffffff1660e01b8152600401610e909b9a999897969594939291906146f4565b600060405180830381600087803b158015610eaa57600080fd5b505af1158015610ebe573d6000803e3d6000fd5b50505050600e60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166379cc679033670de0b6b3a76400008b610f16576001610f1a565b6012545b8b610f26576000610f2a565b6011545b601054610f3791906147dc565b610f419190614832565b610f4b9190614832565b6040518363ffffffff1660e01b8152600401610f6892919061488c565b600060405180830381600087803b158015610f8257600080fd5b505af1158015610f96573d6000803e3d6000fd5b50505050600e60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166323b872dd3388670de0b6b3a764000088610fee9190614832565b6040518463ffffffff1660e01b815260040161100c939291906148b5565b6020604051808303816000875af115801561102b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061104f9190614901565b5061105a600b612bb2565b61106d33611068600b612bc8565b612bd6565b7fedfe971995d259e6b0b864802fd726b471bc8cfab43316658173bbc68b27cbd4611098600b612bc8565b8b8b8b8b8b8b8b8b6040516110b59998979695949392919061492e565b60405180910390a150505050505050505050565b601560029054906101000a900460ff16611118576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161110f9061467f565b60405180910390fd5b600f60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16636f3f094b3387878787876040518763ffffffff1660e01b815260040161117d969594939291906149bb565b600060405180830381600087803b15801561119757600080fd5b505af11580156111ab573d6000803e3d6000fd5b50505050600e60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166379cc679033670de0b6b3a764000086611203576001611207565b6012545b86611213576000611217565b6011545b60105461122491906147dc565b61122e9190614832565b6112389190614832565b6040518363ffffffff1660e01b815260040161125592919061488c565b600060405180830381600087803b15801561126f57600080fd5b505af1158015611283573d6000803e3d6000fd5b50505050611291600b612bb2565b6112a43361129f600b612bc8565b612bd6565b7f18d486020cd142bef95bcba5430dddb784a285627994860be303a6e5af467ff86112cf600b612bc8565b868686866040516112e4959493929190614a23565b60405180910390a15050505050565b61130e83838360405180602001604052806000815250611f6d565b505050565b61132461131e6126c3565b82612784565b611363576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161135a90614ae8565b60405180910390fd5b61136c81612bf4565b50565b600061137b600c612bc8565b905090565b601560009054906101000a900460ff166113cf576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113c690614b54565b60405180910390fd5b601454816113dd600c612bc8565b6113e791906147dc565b1115611428576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161141f90614bc0565b60405180910390fd5b34816013546114379190614832565b1115611478576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161146f90614c2c565b60405180910390fd5b60005b818110156114fd5761148d600c612bb2565b611497600b612bb2565b6114aa336114a5600b612bc8565b612bd6565b7f8da0fc017a10bcf6a34185d0a1dca1bdd55ceac35b5640dd66d85a09952f9ad16114d5600b612bc8565b6040516114e29190613a1e565b60405180910390a180806114f590614c4c565b91505061147b565b5050565b600061150b610c1e565b821061154c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161154390614d07565b60405180910390fd5b600882815481106115605761155f614d27565b5b90600052602060002001549050919050565b61157a6126c3565b73ffffffffffffffffffffffffffffffffffffffff16611598611c2e565b73ffffffffffffffffffffffffffffffffffffffff16146115ee576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115e590614581565b60405180910390fd5b80600d9080519060200190611604929190613893565b5050565b60125481565b6116166126c3565b73ffffffffffffffffffffffffffffffffffffffff16611634611c2e565b73ffffffffffffffffffffffffffffffffffffffff161461168a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161168190614581565b60405180910390fd5b6000600190505b828111611708576116a2600b612bb2565b6116b5826116b0600b612bc8565b612bd6565b7f8da0fc017a10bcf6a34185d0a1dca1bdd55ceac35b5640dd66d85a09952f9ad16116e0600b612bc8565b6040516116ed9190613a1e565b60405180910390a1808061170090614c4c565b915050611691565b505050565b6000806002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156117b6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117ad90614dc8565b60405180910390fd5b80915050919050565b60135481565b600d80546117d2906142bb565b80601f01602080910402602001604051908101604052809291908181526020018280546117fe906142bb565b801561184b5780601f106118205761010080835404028352916020019161184b565b820191906000526020600020905b81548152906001019060200180831161182e57829003601f168201915b505050505081565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156118c4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118bb90614e5a565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b6119136126c3565b73ffffffffffffffffffffffffffffffffffffffff16611931611c2e565b73ffffffffffffffffffffffffffffffffffffffff1614611987576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161197e90614581565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff16600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a36000600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550565b611a506126c3565b73ffffffffffffffffffffffffffffffffffffffff16611a6e611c2e565b73ffffffffffffffffffffffffffffffffffffffff1614611ac4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611abb90614581565b60405180910390fd5b81601560006101000a81548160ff02191690831515021790555080601560026101000a81548160ff0219169083151502179055505050565b611b046126c3565b73ffffffffffffffffffffffffffffffffffffffff16611b22611c2e565b73ffffffffffffffffffffffffffffffffffffffff1614611b78576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b6f90614581565b60405180910390fd5b84601381905550836010819055508260148190555081601181905550806012819055505050505050565b60105481565b611bb06126c3565b73ffffffffffffffffffffffffffffffffffffffff16611bce611c2e565b73ffffffffffffffffffffffffffffffffffffffff1614611c24576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c1b90614581565b60405180910390fd5b8060178190555050565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b611c606126c3565b73ffffffffffffffffffffffffffffffffffffffff16611c7e611c2e565b73ffffffffffffffffffffffffffffffffffffffff1614611cd4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ccb90614581565b60405180910390fd5b81600e60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555080600f60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505050565b606060018054611d69906142bb565b80601f0160208091040260200160405190810160405280929190818152602001828054611d95906142bb565b8015611de25780601f10611db757610100808354040283529160200191611de2565b820191906000526020600020905b815481529060010190602001808311611dc557829003601f168201915b5050505050905090565b611df46126c3565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611e62576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e5990614ec6565b60405180910390fd5b8060056000611e6f6126c3565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff16611f1c6126c3565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051611f6191906139ea565b60405180910390a35050565b611f7e611f786126c3565b83612784565b611fbd576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611fb490614515565b60405180910390fd5b611fc984848484612d05565b50505050565b60145481565b6060611fe082612657565b61201f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161201690614f58565b60405180910390fd5b6000612029612d61565b905060008151116120495760405180602001604052806000815250612074565b8061205384612df3565b604051602001612064929190614fb4565b6040516020818303038152906040525b915050919050565b601560019054906101000a900460ff166120cb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120c290615024565b60405180910390fd5b60175481601660003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461211991906147dc565b111561215a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161215190615090565b60405180910390fd5b60145481612168600c612bc8565b61217291906147dc565b11156121b3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121aa90614bc0565b60405180910390fd5b34816013546121c29190614832565b1115612203576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121fa90614c2c565b60405180910390fd5b80601660003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461225291906147dc565b9250508190555060005b818110156122de5761226e600c612bb2565b612278600b612bb2565b61228b33612286600b612bc8565b612bd6565b7f8da0fc017a10bcf6a34185d0a1dca1bdd55ceac35b5640dd66d85a09952f9ad16122b6600b612bc8565b6040516122c39190613a1e565b60405180910390a180806122d690614c4c565b91505061225c565b5050565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b601560009054906101000a900460ff1681565b6123916126c3565b73ffffffffffffffffffffffffffffffffffffffff166123af611c2e565b73ffffffffffffffffffffffffffffffffffffffff1614612405576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123fc90614581565b60405180910390fd5b601560019054906101000a900460ff1615601560016101000a81548160ff021916908315150217905550565b6124396126c3565b73ffffffffffffffffffffffffffffffffffffffff16612457611c2e565b73ffffffffffffffffffffffffffffffffffffffff16146124ad576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124a490614581565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141561251d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161251490615122565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a380600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b60007f780e9d63000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480612650575061264f82612f54565b5b9050919050565b60008073ffffffffffffffffffffffffffffffffffffffff166002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b600033905090565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff1661273e8361170d565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600061278f82612657565b6127ce576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016127c5906151b4565b60405180910390fd5b60006127d98361170d565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16148061284857508373ffffffffffffffffffffffffffffffffffffffff1661283084610a6e565b73ffffffffffffffffffffffffffffffffffffffff16145b80612859575061285881856122e2565b5b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff166128828261170d565b73ffffffffffffffffffffffffffffffffffffffff16146128d8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016128cf90615246565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612948576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161293f906152d8565b60405180910390fd5b612953838383613036565b61295e6000826126cb565b6001600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546129ae91906152f8565b925050819055506001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612a0591906147dc565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b80471015612b01576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612af890615378565b60405180910390fd5b60008273ffffffffffffffffffffffffffffffffffffffff1682604051612b27906153c9565b60006040518083038185875af1925050503d8060008114612b64576040519150601f19603f3d011682016040523d82523d6000602084013e612b69565b606091505b5050905080612bad576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612ba490615450565b60405180910390fd5b505050565b6001816000016000828254019250508190555050565b600081600001549050919050565b612bf0828260405180602001604052806000815250613046565b5050565b6000612bff8261170d565b9050612c0d81600084613036565b612c186000836126cb565b6001600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612c6891906152f8565b925050819055506002600083815260200190815260200160002060006101000a81549073ffffffffffffffffffffffffffffffffffffffff021916905581600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050565b612d10848484612862565b612d1c848484846130a1565b612d5b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612d52906154e2565b60405180910390fd5b50505050565b6060600d8054612d70906142bb565b80601f0160208091040260200160405190810160405280929190818152602001828054612d9c906142bb565b8015612de95780601f10612dbe57610100808354040283529160200191612de9565b820191906000526020600020905b815481529060010190602001808311612dcc57829003601f168201915b5050505050905090565b60606000821415612e3b576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050612f4f565b600082905060005b60008214612e6d578080612e5690614c4c565b915050600a82612e669190615531565b9150612e43565b60008167ffffffffffffffff811115612e8957612e88613c9e565b5b6040519080825280601f01601f191660200182016040528015612ebb5781602001600182028036833780820191505090505b5090505b60008514612f4857600182612ed491906152f8565b9150600a85612ee39190615562565b6030612eef91906147dc565b60f81b818381518110612f0557612f04614d27565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a85612f419190615531565b9450612ebf565b8093505050505b919050565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061301f57507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b8061302f575061302e82613229565b5b9050919050565b613041838383613293565b505050565b61305083836133a7565b61305d60008484846130a1565b61309c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613093906154e2565b60405180910390fd5b505050565b60006130c28473ffffffffffffffffffffffffffffffffffffffff16613575565b1561321c578373ffffffffffffffffffffffffffffffffffffffff1663150b7a026130eb6126c3565b8786866040518563ffffffff1660e01b815260040161310d9493929190615593565b6020604051808303816000875af192505050801561314957506040513d601f19601f8201168201806040525081019061314691906155f4565b60015b6131cc573d8060008114613179576040519150601f19603f3d011682016040523d82523d6000602084013e61317e565b606091505b506000815114156131c4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016131bb906154e2565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050613221565b600190505b949350505050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b61329e838383613588565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156132e1576132dc8161358d565b613320565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161461331f5761331e83826135d6565b5b5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156133635761335e81613743565b6133a2565b8273ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16146133a1576133a08282613814565b5b5b505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415613417576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161340e9061566d565b60405180910390fd5b61342081612657565b15613460576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613457906156d9565b60405180910390fd5b61346c60008383613036565b6001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546134bc91906147dc565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050565b600080823b905060008111915050919050565b505050565b6008805490506009600083815260200190815260200160002081905550600881908060018154018082558091505060019003906000526020600020016000909190919091505550565b600060016135e384611853565b6135ed91906152f8565b90506000600760008481526020019081526020016000205490508181146136d2576000600660008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002054905080600660008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002081905550816007600083815260200190815260200160002081905550505b6007600084815260200190815260200160002060009055600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008381526020019081526020016000206000905550505050565b6000600160088054905061375791906152f8565b905060006009600084815260200190815260200160002054905060006008838154811061378757613786614d27565b5b9060005260206000200154905080600883815481106137a9576137a8614d27565b5b9060005260206000200181905550816009600083815260200190815260200160002081905550600960008581526020019081526020016000206000905560088054806137f8576137f76156f9565b5b6001900381819060005260206000200160009055905550505050565b600061381f83611853565b905081600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002081905550806007600084815260200190815260200160002081905550505050565b82805461389f906142bb565b90600052602060002090601f0160209004810192826138c15760008555613908565b82601f106138da57805160ff1916838001178555613908565b82800160010185558215613908579182015b828111156139075782518255916020019190600101906138ec565b5b5090506139159190613919565b5090565b5b8082111561393257600081600090555060010161391a565b5090565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b61397f8161394a565b811461398a57600080fd5b50565b60008135905061399c81613976565b92915050565b6000602082840312156139b8576139b7613940565b5b60006139c68482850161398d565b91505092915050565b60008115159050919050565b6139e4816139cf565b82525050565b60006020820190506139ff60008301846139db565b92915050565b6000819050919050565b613a1881613a05565b82525050565b6000602082019050613a336000830184613a0f565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b83811015613a73578082015181840152602081019050613a58565b83811115613a82576000848401525b50505050565b6000601f19601f8301169050919050565b6000613aa482613a39565b613aae8185613a44565b9350613abe818560208601613a55565b613ac781613a88565b840191505092915050565b60006020820190508181036000830152613aec8184613a99565b905092915050565b613afd81613a05565b8114613b0857600080fd5b50565b600081359050613b1a81613af4565b92915050565b600060208284031215613b3657613b35613940565b5b6000613b4484828501613b0b565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000613b7882613b4d565b9050919050565b613b8881613b6d565b82525050565b6000602082019050613ba36000830184613b7f565b92915050565b613bb281613b6d565b8114613bbd57600080fd5b50565b600081359050613bcf81613ba9565b92915050565b60008060408385031215613bec57613beb613940565b5b6000613bfa85828601613bc0565b9250506020613c0b85828601613b0b565b9150509250929050565b600080600060608486031215613c2e57613c2d613940565b5b6000613c3c86828701613bc0565b9350506020613c4d86828701613bc0565b9250506040613c5e86828701613b0b565b9150509250925092565b613c71816139cf565b8114613c7c57600080fd5b50565b600081359050613c8e81613c68565b92915050565b600080fd5b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b613cd682613a88565b810181811067ffffffffffffffff82111715613cf557613cf4613c9e565b5b80604052505050565b6000613d08613936565b9050613d148282613ccd565b919050565b600067ffffffffffffffff821115613d3457613d33613c9e565b5b613d3d82613a88565b9050602081019050919050565b82818337600083830152505050565b6000613d6c613d6784613d19565b613cfe565b905082815260208101848484011115613d8857613d87613c99565b5b613d93848285613d4a565b509392505050565b600082601f830112613db057613daf613c94565b5b8135613dc0848260208601613d59565b91505092915050565b6000806000806000806000806000806101408b8d031215613ded57613dec613940565b5b6000613dfb8d828e01613b0b565b9a50506020613e0c8d828e01613b0b565b9950506040613e1d8d828e01613c7f565b9850506060613e2e8d828e01613c7f565b9750506080613e3f8d828e01613bc0565b96505060a0613e508d828e01613c7f565b95505060c0613e618d828e01613b0b565b94505060e0613e728d828e01613b0b565b9350506101008b013567ffffffffffffffff811115613e9457613e93613945565b5b613ea08d828e01613d9b565b9250506101208b013567ffffffffffffffff811115613ec257613ec1613945565b5b613ece8d828e01613d9b565b9150509295989b9194979a5092959850565b600080600080600060a08688031215613efc57613efb613940565b5b6000613f0a88828901613b0b565b9550506020613f1b88828901613b0b565b9450506040613f2c88828901613c7f565b9350506060613f3d88828901613c7f565b925050608086013567ffffffffffffffff811115613f5e57613f5d613945565b5b613f6a88828901613d9b565b9150509295509295909350565b600067ffffffffffffffff821115613f9257613f91613c9e565b5b613f9b82613a88565b9050602081019050919050565b6000613fbb613fb684613f77565b613cfe565b905082815260208101848484011115613fd757613fd6613c99565b5b613fe2848285613d4a565b509392505050565b600082601f830112613fff57613ffe613c94565b5b813561400f848260208601613fa8565b91505092915050565b60006020828403121561402e5761402d613940565b5b600082013567ffffffffffffffff81111561404c5761404b613945565b5b61405884828501613fea565b91505092915050565b6000806040838503121561407857614077613940565b5b600061408685828601613b0b565b925050602061409785828601613bc0565b9150509250929050565b6000602082840312156140b7576140b6613940565b5b60006140c584828501613bc0565b91505092915050565b600080604083850312156140e5576140e4613940565b5b60006140f385828601613c7f565b925050602061410485828601613c7f565b9150509250929050565b600080600080600060a0868803121561412a57614129613940565b5b600061413888828901613b0b565b955050602061414988828901613b0b565b945050604061415a88828901613b0b565b935050606061416b88828901613b0b565b925050608061417c88828901613b0b565b9150509295509295909350565b600080604083850312156141a05761419f613940565b5b60006141ae85828601613bc0565b92505060206141bf85828601613bc0565b9150509250929050565b600080604083850312156141e0576141df613940565b5b60006141ee85828601613bc0565b92505060206141ff85828601613c7f565b9150509250929050565b6000806000806080858703121561422357614222613940565b5b600061423187828801613bc0565b945050602061424287828801613bc0565b935050604061425387828801613b0b565b925050606085013567ffffffffffffffff81111561427457614273613945565b5b61428087828801613d9b565b91505092959194509250565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806142d357607f821691505b602082108114156142e7576142e661428c565b5b50919050565b7f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b6000614349602c83613a44565b9150614354826142ed565b604082019050919050565b600060208201905081810360008301526143788161433c565b9050919050565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b60006143db602183613a44565b91506143e68261437f565b604082019050919050565b6000602082019050818103600083015261440a816143ce565b9050919050565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760008201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000602082015250565b600061446d603883613a44565b915061447882614411565b604082019050919050565b6000602082019050818103600083015261449c81614460565b9050919050565b7f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60008201527f776e6572206e6f7220617070726f766564000000000000000000000000000000602082015250565b60006144ff603183613a44565b915061450a826144a3565b604082019050919050565b6000602082019050818103600083015261452e816144f2565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b600061456b602083613a44565b915061457682614535565b602082019050919050565b6000602082019050818103600083015261459a8161455e565b9050919050565b7f455243373231456e756d657261626c653a206f776e657220696e646578206f7560008201527f74206f6620626f756e6473000000000000000000000000000000000000000000602082015250565b60006145fd602b83613a44565b9150614608826145a1565b604082019050919050565b6000602082019050818103600083015261462c816145f0565b9050919050565b7f4272656564696e67206e6f74206c697665000000000000000000000000000000600082015250565b6000614669601183613a44565b915061467482614633565b602082019050919050565b600060208201905081810360008301526146988161465c565b9050919050565b600081519050919050565b600082825260208201905092915050565b60006146c68261469f565b6146d081856146aa565b93506146e0818560208601613a55565b6146e981613a88565b840191505092915050565b60006101608201905061470a600083018e613b7f565b614717602083018d613a0f565b614724604083018c613a0f565b614731606083018b6139db565b61473e608083018a6139db565b61474b60a0830189613b7f565b61475860c08301886139db565b61476560e0830187613a0f565b614773610100830186613a0f565b81810361012083015261478681856146bb565b905081810361014083015261479b81846146bb565b90509c9b505050505050505050505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60006147e782613a05565b91506147f283613a05565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115614827576148266147ad565b5b828201905092915050565b600061483d82613a05565b915061484883613a05565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615614881576148806147ad565b5b828202905092915050565b60006040820190506148a16000830185613b7f565b6148ae6020830184613a0f565b9392505050565b60006060820190506148ca6000830186613b7f565b6148d76020830185613b7f565b6148e46040830184613a0f565b949350505050565b6000815190506148fb81613c68565b92915050565b60006020828403121561491757614916613940565b5b6000614925848285016148ec565b91505092915050565b600061012082019050614944600083018c613a0f565b614951602083018b613a0f565b61495e604083018a613a0f565b61496b60608301896139db565b61497860808301886139db565b61498560a0830187613b7f565b61499260c08301866139db565b61499f60e0830185613a0f565b6149ad610100830184613a0f565b9a9950505050505050505050565b600060c0820190506149d06000830189613b7f565b6149dd6020830188613a0f565b6149ea6040830187613a0f565b6149f760608301866139db565b614a0460808301856139db565b81810360a0830152614a1681846146bb565b9050979650505050505050565b600060a082019050614a386000830188613a0f565b614a456020830187613a0f565b614a526040830186613a0f565b614a5f60608301856139db565b614a6c60808301846139db565b9695505050505050565b7f4552433732314275726e61626c653a2063616c6c6572206973206e6f74206f7760008201527f6e6572206e6f7220617070726f76656400000000000000000000000000000000602082015250565b6000614ad2603083613a44565b9150614add82614a76565b604082019050919050565b60006020820190508181036000830152614b0181614ac5565b9050919050565b7f53616c65206e6f74206c69766500000000000000000000000000000000000000600082015250565b6000614b3e600d83613a44565b9150614b4982614b08565b602082019050919050565b60006020820190508181036000830152614b6d81614b31565b9050919050565b7f4d617820737570706c7900000000000000000000000000000000000000000000600082015250565b6000614baa600a83613a44565b9150614bb582614b74565b602082019050919050565b60006020820190508181036000830152614bd981614b9d565b9050919050565b7f496e636f72726563742065746865720000000000000000000000000000000000600082015250565b6000614c16600f83613a44565b9150614c2182614be0565b602082019050919050565b60006020820190508181036000830152614c4581614c09565b9050919050565b6000614c5782613a05565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415614c8a57614c896147ad565b5b600182019050919050565b7f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60008201527f7574206f6620626f756e64730000000000000000000000000000000000000000602082015250565b6000614cf1602c83613a44565b9150614cfc82614c95565b604082019050919050565b60006020820190508181036000830152614d2081614ce4565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460008201527f656e7420746f6b656e0000000000000000000000000000000000000000000000602082015250565b6000614db2602983613a44565b9150614dbd82614d56565b604082019050919050565b60006020820190508181036000830152614de181614da5565b9050919050565b7f4552433732313a2062616c616e636520717565727920666f7220746865207a6560008201527f726f206164647265737300000000000000000000000000000000000000000000602082015250565b6000614e44602a83613a44565b9150614e4f82614de8565b604082019050919050565b60006020820190508181036000830152614e7381614e37565b9050919050565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b6000614eb0601983613a44565b9150614ebb82614e7a565b602082019050919050565b60006020820190508181036000830152614edf81614ea3565b9050919050565b7f4552433732314d657461646174613a2055524920717565727920666f72206e6f60008201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000602082015250565b6000614f42602f83613a44565b9150614f4d82614ee6565b604082019050919050565b60006020820190508181036000830152614f7181614f35565b9050919050565b600081905092915050565b6000614f8e82613a39565b614f988185614f78565b9350614fa8818560208601613a55565b80840191505092915050565b6000614fc08285614f83565b9150614fcc8284614f83565b91508190509392505050565b7f50726573616c65206e6f74206c69766500000000000000000000000000000000600082015250565b600061500e601083613a44565b915061501982614fd8565b602082019050919050565b6000602082019050818103600083015261503d81615001565b9050919050565b7f50726573616c65206c696d697400000000000000000000000000000000000000600082015250565b600061507a600d83613a44565b915061508582615044565b602082019050919050565b600060208201905081810360008301526150a98161506d565b9050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b600061510c602683613a44565b9150615117826150b0565b604082019050919050565b6000602082019050818103600083015261513b816150ff565b9050919050565b7f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b600061519e602c83613a44565b91506151a982615142565b604082019050919050565b600060208201905081810360008301526151cd81615191565b9050919050565b7f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960008201527f73206e6f74206f776e0000000000000000000000000000000000000000000000602082015250565b6000615230602983613a44565b915061523b826151d4565b604082019050919050565b6000602082019050818103600083015261525f81615223565b9050919050565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b60006152c2602483613a44565b91506152cd82615266565b604082019050919050565b600060208201905081810360008301526152f1816152b5565b9050919050565b600061530382613a05565b915061530e83613a05565b925082821015615321576153206147ad565b5b828203905092915050565b7f416464726573733a20696e73756666696369656e742062616c616e6365000000600082015250565b6000615362601d83613a44565b915061536d8261532c565b602082019050919050565b6000602082019050818103600083015261539181615355565b9050919050565b600081905092915050565b50565b60006153b3600083615398565b91506153be826153a3565b600082019050919050565b60006153d4826153a6565b9150819050919050565b7f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260008201527f6563697069656e74206d61792068617665207265766572746564000000000000602082015250565b600061543a603a83613a44565b9150615445826153de565b604082019050919050565b600060208201905081810360008301526154698161542d565b9050919050565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b60006154cc603283613a44565b91506154d782615470565b604082019050919050565b600060208201905081810360008301526154fb816154bf565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b600061553c82613a05565b915061554783613a05565b92508261555757615556615502565b5b828204905092915050565b600061556d82613a05565b915061557883613a05565b92508261558857615587615502565b5b828206905092915050565b60006080820190506155a86000830187613b7f565b6155b56020830186613b7f565b6155c26040830185613a0f565b81810360608301526155d481846146bb565b905095945050505050565b6000815190506155ee81613976565b92915050565b60006020828403121561560a57615609613940565b5b6000615618848285016155df565b91505092915050565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b6000615657602083613a44565b915061566282615621565b602082019050919050565b600060208201905081810360008301526156868161564a565b9050919050565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b60006156c3601c83613a44565b91506156ce8261568d565b602082019050919050565b600060208201905081810360008301526156f2816156b6565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fdfea26469706673582212201b2e6e21320a6494987b917c7184037cac87d176964c5c3b558ccd33fb7a557b64736f6c634300080a0033

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

000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000c0000000000000000000000000cbba83a4d3f35d294a26012ac54e9ab6627da018000000000000000000000000bd351bde09e79d82bf127cc55426fe641199608a0000000000000000000000000000000000000000000000000000000000000011526f6172696e6720526f636373746172730000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008524f4152524f4343000000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : name (string): Roaring Roccstars
Arg [1] : symbol (string): ROARROCC
Arg [2] : roarTokenAddress (address): 0xcbbA83a4d3F35D294A26012AC54e9ab6627da018
Arg [3] : breedingManagerAddress (address): 0xbd351bDE09E79D82bF127Cc55426FE641199608A

-----Encoded View---------------
8 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000080
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000c0
Arg [2] : 000000000000000000000000cbba83a4d3f35d294a26012ac54e9ab6627da018
Arg [3] : 000000000000000000000000bd351bde09e79d82bf127cc55426fe641199608a
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000011
Arg [5] : 526f6172696e6720526f63637374617273000000000000000000000000000000
Arg [6] : 0000000000000000000000000000000000000000000000000000000000000008
Arg [7] : 524f4152524f4343000000000000000000000000000000000000000000000000


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.