ETH Price: $3,357.77 (-3.38%)

Token

RebelsInDisguise (RBLS)
 

Overview

Max Total Supply

5,065 RBLS

Holders

1,555

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Filtered by Token Holder
2-0-6.eth
Balance
10 RBLS
0x28d97add070d26e55c5e4a5f863f1f5fee7621df
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:
RebelsInDisguise

Compiler Version
v0.8.7+commit.e28d00a7

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion
File 1 of 16 : 721v2.sol
// SPDX-License-Identifier: MIT
// Creator: twitter.com/runo_dev

/* 
8888888b.          888               888               d8b               8888888b.  d8b                            d8b                   
888   Y88b         888               888               Y8P               888  "Y88b Y8P                            Y8P                   
888    888         888               888                                 888    888                                                      
888   d88P .d88b.  88888b.   .d88b.  888 .d8888b       888 88888b.       888    888 888 .d8888b   .d88b.  888  888 888 .d8888b   .d88b.  
8888888P" d8P  Y8b 888 "88b d8P  Y8b 888 88K           888 888 "88b      888    888 888 88K      d88P"88b 888  888 888 88K      d8P  Y8b 
888 T88b  88888888 888  888 88888888 888 "Y8888b.      888 888  888      888    888 888 "Y8888b. 888  888 888  888 888 "Y8888b. 88888888 
888  T88b Y8b.     888 d88P Y8b.     888      X88      888 888  888      888  .d88P 888      X88 Y88b 888 Y88b 888 888      X88 Y8b.     
888   T88b "Y8888  88888P"   "Y8888  888  88888P'      888 888  888      8888888P"  888  88888P'  "Y88888  "Y88888 888  88888P'  "Y8888  
                                                                                                      888                                
                                                                                                 Y8b d88P                                
                                                                                                  "Y88P"                                 
*/

// Rebels in Disguise - ERC-721 based NFT contract

pragma solidity ^0.8.7;

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

error FunctionLocked();
error SaleNotStarted();
error InsufficientPayment();
error AmountExceedsSupply();
error InvalidQuantity();
error AmountExceedsTransactionLimit();
error RequestedSupplyShouldExceedsCurrentSupply();
error RequestedSupplyShouldNotExceedsCurrentMaxSupply();
error OnlyExternallyOwnedAccountsAllowed();
error OnlyExternallyCoinContractAllowed();
error AddressCanNotBeZeroAddress();

interface RebelsInDisguiseOld {
    function tokenURI(uint256 tokenId) external view returns (string memory);
    function totalSupply() external view returns (uint256);
    function balanceOf(address account) external view returns (uint256);
    function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256);
    function tokenByIndex(uint256 index) external view returns (uint256);
    function tokensOfOwner(address account) external view returns (uint256[] memory);
    function ownerOf(uint256 tokenId) external view returns (address);
}

interface RebelsInDisguiseCoin {
    function totalSupply() external view returns (uint256);
}

contract RebelsInDisguise is ERC721, ERC721Enumerable, ERC721URIStorage, Ownable, ReentrancyGuard {
    using Counters for Counters.Counter;

    uint256 public MAX_SUPPLY = 5555;
    uint256 private constant MAX_MINTS_PER_TX = 10;

    address private _creator1 = 0xd228c59148a3428B845b572d88E7ec77839cf474;
    address private _creator2 = 0xdBdFdB5a3c50BE2481cC021828b6815B46d2f2f8;
    address private _creator3 = 0x13205830f2bf6f1197D057f145454CE99A955A6d;
    address private _creator4 = 0xE2BFf72848B50e2385E63c23681695e990eC42cb;
    address private _creator5 = 0x3F838Fb407b750655632088bDf1D0430F53AC8F3;
    address private _creator6 = 0xCdC82eE2cbC9168e7DA4CD3EeF49705C5610839b;
    address private _creator7 = 0x35364A2B2c2DC73bEdF16e7fBCd29D2dA27E04D4;
    address private _creator8 = 0xDf82600D2fA71B2Cb9406EEF582114b395729d23;
    address private _creator9 = 0x9D35BaDbC2300003B5CF077262e7Ef389a89e981;
    bool private _lock = false;
    bool private _saleStatus = false;
    uint256 private _salePrice = 0.055 ether;
    string private _baseUri = "http://api.rebelsindisguise.co/rebels/";

    Counters.Counter private _reedemCounter;
    Counters.Counter private _tokenIdCounter;
    RebelsInDisguiseOld private _ridOldContract;
    RebelsInDisguiseCoin private _ridCoinContract;

    constructor(address ridCoinAddress, address ridOldAddress) ERC721("RebelsInDisguise", "RBLS") {
        _ridCoinContract = RebelsInDisguiseCoin(ridCoinAddress);
        _ridOldContract = RebelsInDisguiseOld(ridOldAddress);
    }

    //views
    function isSaleActive() public view returns (bool) {
        return _saleStatus;
    }

    function getPrice() public view returns (uint256) {
        return _salePrice;
    }

    function getRidOldContractAddress() public view returns (address) {
        return address(_ridOldContract);
    }

    function getRidCoinContractAddress() public view returns (address) {
        return address(_ridCoinContract);
    }

    function getReedemableSupply() public view returns (uint256) {
        return _ridCoinContract.totalSupply() - _ridOldContract.totalSupply() - _reedemCounter.current();
    }

    function mintTransfer(address account, uint256 quantity) external onlyECC {
        if (quantity == 0) revert InvalidQuantity();
        if (quantity > getReedemableSupply()) revert AmountExceedsSupply();
        for (uint256 index = 0; index < quantity; index++) {
            _tokenIdCounter.increment();
            _reedemCounter.increment();
            _safeMint(account, totalSupply());
        }
    }

    function publicMint(uint256 quantity) external payable nonReentrant onlyEOA {
        if (_lock) revert FunctionLocked();
        if (quantity == 0) revert InvalidQuantity();
        if (!isSaleActive()) revert SaleNotStarted();
        if (totalSupply() + quantity > MAX_SUPPLY - getReedemableSupply())
            revert AmountExceedsSupply();
        if (getPrice() * quantity > msg.value) revert InsufficientPayment();
        if (quantity > MAX_MINTS_PER_TX) revert AmountExceedsTransactionLimit();

        for (uint256 index = 0; index < quantity; index++) {
            _tokenIdCounter.increment();
            _safeMint(msg.sender, totalSupply());
        }
    }

    function tokensOfAccount(address account) external view returns (uint256[] memory) {
        uint256 tokenCount = balanceOf(account);
        if (tokenCount == 0) return new uint256[](0);
        else {
            uint256[] memory result = new uint256[](tokenCount);
            for (uint256 index = 0; index < tokenCount; index++) {
                result[index] = tokenOfOwnerByIndex(account, index);
            }
            return result;
        }
    }

    // owner fns
    function setRIDOldContract(address newAddress) external onlyOwner {
        if (_lock) revert FunctionLocked();
        if (newAddress == address(0)) revert AddressCanNotBeZeroAddress();
        _ridOldContract = RebelsInDisguiseOld(newAddress);
    }

    function setRIDCoinAddr(address newAddress) external onlyOwner {
        if (_lock) revert FunctionLocked();
        if (newAddress == address(0)) revert AddressCanNotBeZeroAddress();
        _ridCoinContract = RebelsInDisguiseCoin(newAddress);
    }

    function ownerMint(uint256 quantity) external onlyOwner {
        if (_lock) revert FunctionLocked();
        if (quantity == 0) revert InvalidQuantity();
        if (totalSupply() + quantity > MAX_SUPPLY - getReedemableSupply()) revert AmountExceedsSupply();

        for (uint256 index = 0; index < quantity; index++) {
            _tokenIdCounter.increment();
            _safeMint(msg.sender, totalSupply());
        }
    }

    function toggleSaleStatus() external onlyOwner {
        _saleStatus = !_saleStatus;
    }

    function setBaseUri(string memory newUri) external onlyOwner {
        if (_lock) revert FunctionLocked();
        _baseUri = newUri;
    }

    function lock() external onlyOwner {
        _lock = true;
    }

    function setMaxSupply(uint256 supply) external onlyOwner {
        if (_lock) revert FunctionLocked();
        if (MAX_SUPPLY <= supply) revert RequestedSupplyShouldNotExceedsCurrentMaxSupply();
        if (totalSupply() + getReedemableSupply() > supply) revert RequestedSupplyShouldExceedsCurrentSupply();
        MAX_SUPPLY = supply;
    }

    function withdrawAll() external onlyOwner {
        uint256 amountToCreator1 = (address(this).balance * 150) / 1000; // 15%
        uint256 amountToCreator2 = (address(this).balance * 125) / 1000; // 12.5%
        uint256 amountToCreator4 = (address(this).balance * 50) / 1000; // 5%
        uint256 amountToCreator5 = (address(this).balance * 125) / 1000; // 12.5%
        uint256 amountToCreator6 = (address(this).balance * 125) / 1000; // 12.5%
        uint256 amountToCreator7 = (address(this).balance * 125) / 1000; // 12.5%
        uint256 amountToCreator8 = (address(this).balance * 125) / 1000; // 12.5%
        uint256 amountToCreator9 = (address(this).balance * 125) / 1000; // 12.5%

        withdraw(_creator1, amountToCreator1);
        withdraw(_creator2, amountToCreator2);
        withdraw(_creator4, amountToCreator4);
        withdraw(_creator5, amountToCreator5);
        withdraw(_creator6, amountToCreator6);
        withdraw(_creator7, amountToCreator7);
        withdraw(_creator8, amountToCreator8);
        withdraw(_creator9, amountToCreator9);

        uint256 amountToCreator3 = address(this).balance; // ~5%
        withdraw(_creator3, amountToCreator3);
    }

    // internals
    function withdraw(address account, uint256 amount) internal {
        (bool os, ) = payable(account).call{value: amount}("");
        require(os, "Failed to send ether");
    }

    // overrides
    function _baseURI() internal view override returns (string memory) {
        return _baseUri;
    }

    function totalSupply() public view override returns (uint256) {
        return _ridOldContract.totalSupply() + _tokenIdCounter.current();
    }

    function tokenURI(uint256 tokenId) public view override(ERC721, ERC721URIStorage) returns (string memory) {
        if (_ridOldContract.totalSupply() >= tokenId) {
            return _ridOldContract.tokenURI(tokenId);
        }
        return super.tokenURI(tokenId);
    }

    function balanceOf(address owner) public view override(ERC721) returns (uint256) {
        require(owner != address(0), "ERC721: balance query for the zero address");
        return super.balanceOf(owner) + _ridOldContract.balanceOf(owner);
    }

    function tokenOfOwnerByIndex(address owner, uint256 index) public view override returns (uint256) {
        require(index < balanceOf(owner), "ERC721Enumerable: owner index out of bounds");
        uint256 balanceForOld = _ridOldContract.balanceOf(owner);
        if (balanceForOld > 0 && index < balanceForOld) {
            return _ridOldContract.tokenOfOwnerByIndex(owner, index);
        }
        return super.tokenOfOwnerByIndex(owner, index - balanceForOld);
    }

    function tokenByIndex(uint256 index) public view override returns (uint256) {
        require(index < totalSupply(), "ERC721Enumerable: global index out of bounds");
        uint256 totalSupplyOfOld = _ridOldContract.totalSupply();
        if (totalSupplyOfOld > 0 && index < totalSupplyOfOld) {
            return _ridOldContract.tokenByIndex(index);
        }
        return super.tokenByIndex(index - totalSupplyOfOld);
    }

    function ownerOf(uint256 tokenId) public view override(ERC721) returns (address) {
        if (tokenId <= _ridOldContract.totalSupply()) {
            return _ridOldContract.ownerOf(tokenId);
        }
        return super.ownerOf(tokenId);
    }

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

    function _burn(uint256 tokenId) internal override(ERC721, ERC721URIStorage) {
        super._burn(tokenId);
    }

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

    // modifiers
    modifier onlyEOA() {
        if (tx.origin != msg.sender)
            revert OnlyExternallyOwnedAccountsAllowed();
        _;
    }

    modifier onlyECC() {
        if (msg.sender != getRidCoinContractAddress())
            revert OnlyExternallyCoinContractAllowed();
        _;
    }
}

File 2 of 16 : ERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC721/ERC721.sol)

pragma solidity ^0.8.0;

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

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

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        _approve(to, tokenId);
    }

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

        return _tokenApprovals[tokenId];
    }

    /**
     * @dev See {IERC721-setApprovalForAll}.
     */
    function setApprovalForAll(address operator, bool approved) public virtual override {
        _setApprovalForAll(_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);

        _afterTokenTransfer(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);

        _afterTokenTransfer(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 from incorrect owner");
        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);

        _afterTokenTransfer(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 Approve `operator` to operate on all of `owner` tokens
     *
     * Emits a {ApprovalForAll} event.
     */
    function _setApprovalForAll(
        address owner,
        address operator,
        bool approved
    ) internal virtual {
        require(owner != operator, "ERC721: approve to caller");
        _operatorApprovals[owner][operator] = approved;
        emit ApprovalForAll(owner, operator, approved);
    }

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

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

    /**
     * @dev Hook that is called after any transfer of tokens. This includes
     * minting and burning.
     *
     * Calling conditions:
     *
     * - when `from` and `to` are both non-zero.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _afterTokenTransfer(
        address from,
        address to,
        uint256 tokenId
    ) internal virtual {}
}

File 3 of 16 : ERC721Enumerable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/ERC721Enumerable.sol)

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 4 of 16 : ERC721URIStorage.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/ERC721URIStorage.sol)

pragma solidity ^0.8.0;

import "../ERC721.sol";

/**
 * @dev ERC721 token with storage based token URI management.
 */
abstract contract ERC721URIStorage is ERC721 {
    using Strings for uint256;

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

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

        string memory _tokenURI = _tokenURIs[tokenId];
        string memory base = _baseURI();

        // If there is no base URI, return the token URI.
        if (bytes(base).length == 0) {
            return _tokenURI;
        }
        // If both are set, concatenate the baseURI and tokenURI (via abi.encodePacked).
        if (bytes(_tokenURI).length > 0) {
            return string(abi.encodePacked(base, _tokenURI));
        }

        return super.tokenURI(tokenId);
    }

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

    /**
     * @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 override {
        super._burn(tokenId);

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

File 5 of 16 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol)

pragma solidity ^0.8.0;

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

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

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

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

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

        _;

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

File 6 of 16 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (access/Ownable.sol)

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() {
        _transferOwnership(_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 {
        _transferOwnership(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");
        _transferOwnership(newOwner);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Internal function without access restriction.
     */
    function _transferOwnership(address newOwner) internal virtual {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

File 7 of 16 : Counters.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Counters.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

File 8 of 16 : IERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

File 9 of 16 : IERC721Receiver.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721Receiver.sol)

pragma solidity ^0.8.0;

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

File 10 of 16 : IERC721Metadata.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol)

pragma solidity ^0.8.0;

import "../IERC721.sol";

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

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

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

File 11 of 16 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol)

pragma solidity ^0.8.1;

/**
 * @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
     * ====
     *
     * [IMPORTANT]
     * ====
     * You shouldn't rely on `isContract` to protect against flash loan attacks!
     *
     * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets
     * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract
     * constructor.
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize/address.code.length, which returns 0
        // for contracts in construction, since the code is only stored at the end
        // of the constructor execution.

        return account.code.length > 0;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

File 12 of 16 : Context.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)

pragma solidity ^0.8.0;

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

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

File 13 of 16 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Strings.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

File 14 of 16 : ERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol)

pragma solidity ^0.8.0;

import "./IERC165.sol";

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

File 15 of 16 : IERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)

pragma solidity ^0.8.0;

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

File 16 of 16 : IERC721Enumerable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC721/extensions/IERC721Enumerable.sol)

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

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

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"ridCoinAddress","type":"address"},{"internalType":"address","name":"ridOldAddress","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"AddressCanNotBeZeroAddress","type":"error"},{"inputs":[],"name":"AmountExceedsSupply","type":"error"},{"inputs":[],"name":"AmountExceedsTransactionLimit","type":"error"},{"inputs":[],"name":"FunctionLocked","type":"error"},{"inputs":[],"name":"InsufficientPayment","type":"error"},{"inputs":[],"name":"InvalidQuantity","type":"error"},{"inputs":[],"name":"OnlyExternallyCoinContractAllowed","type":"error"},{"inputs":[],"name":"OnlyExternallyOwnedAccountsAllowed","type":"error"},{"inputs":[],"name":"RequestedSupplyShouldExceedsCurrentSupply","type":"error"},{"inputs":[],"name":"RequestedSupplyShouldNotExceedsCurrentMaxSupply","type":"error"},{"inputs":[],"name":"SaleNotStarted","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"MAX_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getReedemableSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getRidCoinContractAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getRidOldContractAddress","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":"isSaleActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lock","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"mintTransfer","outputs":[],"stateMutability":"nonpayable","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":"quantity","type":"uint256"}],"name":"ownerMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"publicMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"newUri","type":"string"}],"name":"setBaseUri","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"supply","type":"uint256"}],"name":"setMaxSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newAddress","type":"address"}],"name":"setRIDCoinAddr","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newAddress","type":"address"}],"name":"setRIDOldContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"toggleSaleStatus","outputs":[],"stateMutability":"nonpayable","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":[{"internalType":"address","name":"account","type":"address"}],"name":"tokensOfAccount","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawAll","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60806040526115b3600d5573d228c59148a3428b845b572d88e7ec77839cf474600e60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555073dbdfdb5a3c50be2481cc021828b6815b46d2f2f8600f60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507313205830f2bf6f1197d057f145454ce99a955a6d601060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555073e2bff72848b50e2385e63c23681695e990ec42cb601160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550733f838fb407b750655632088bdf1d0430f53ac8f3601260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555073cdc82ee2cbc9168e7da4cd3eef49705c5610839b601360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507335364a2b2c2dc73bedf16e7fbcd29d2da27e04d4601460006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555073df82600d2fa71b2cb9406eef582114b395729d23601560006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550739d35badbc2300003b5cf077262e7ef389a89e981601660006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506000601660146101000a81548160ff0219169083151502179055506000601660156101000a81548160ff02191690831515021790555066c3663566a5800060175560405180606001604052806026815260200162006197602691396018908051906020019062000379929190620005cd565b503480156200038757600080fd5b50604051620061bd380380620061bd8339818101604052810190620003ad919062000694565b6040518060400160405280601081526020017f526562656c73496e4469736775697365000000000000000000000000000000008152506040518060400160405280600481526020017f52424c5300000000000000000000000000000000000000000000000000000000815250816000908051906020019062000431929190620005cd565b5080600190805190602001906200044a929190620005cd565b5050506200046d62000461620004ff60201b60201c565b6200050760201b60201c565b6001600c8190555081601c60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555080601b60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550505062000793565b600033905090565b6000600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600b60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b828054620005db906200070f565b90600052602060002090601f016020900481019282620005ff57600085556200064b565b82601f106200061a57805160ff19168380011785556200064b565b828001600101855582156200064b579182015b828111156200064a5782518255916020019190600101906200062d565b5b5090506200065a91906200065e565b5090565b5b80821115620006795760008160009055506001016200065f565b5090565b6000815190506200068e8162000779565b92915050565b60008060408385031215620006ae57620006ad62000774565b5b6000620006be858286016200067d565b9250506020620006d1858286016200067d565b9150509250929050565b6000620006e882620006ef565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600060028204905060018216806200072857607f821691505b602082108114156200073f576200073e62000745565b5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600080fd5b6200078481620006db565b81146200079057600080fd5b50565b6159f480620007a36000396000f3fe60806040526004361061020f5760003560e01c8063853828b611610118578063c349c93e116100a0578063deafaae51161006f578063deafaae51461077c578063e985e9c5146107a5578063f19e75d4146107e2578063f2fde38b1461080b578063f83d08ba146108345761020f565b8063c349c93e146106c2578063c4bedac6146106eb578063c87b56dd14610714578063d268e5a6146107515761020f565b806398d5fdca116100e757806398d5fdca146105f1578063a0bcfc7f1461061c578063a22cb46514610645578063b88d4fde1461066e578063c20b6904146106975761020f565b8063853828b614610547578063864829a91461055e5780638da5cb5b1461059b57806395d89b41146105c65761020f565b806332cb6b0c1161019b5780636352211e1161016a5780636352211e146104625780636f8b44b01461049f57806370a08231146104c8578063715018a6146105055780637f90b2751461051c5761020f565b806332cb6b0c146103a657806342842e0e146103d15780634f6ccce7146103fa578063564566a8146104375761020f565b8063095ea7b3116101e2578063095ea7b3146102d057806318160ddd146102f957806323b872dd146103245780632db115441461034d5780632f745c59146103695761020f565b806301ffc9a714610214578063049c5c491461025157806306fdde0314610268578063081812fc14610293575b600080fd5b34801561022057600080fd5b5061023b60048036038101906102369190614553565b61084b565b6040516102489190614bdb565b60405180910390f35b34801561025d57600080fd5b5061026661085d565b005b34801561027457600080fd5b5061027d610905565b60405161028a9190614bf6565b60405180910390f35b34801561029f57600080fd5b506102ba60048036038101906102b5919061463f565b610997565b6040516102c79190614b29565b60405180910390f35b3480156102dc57600080fd5b506102f760048036038101906102f29190614513565b610a1c565b005b34801561030557600080fd5b5061030e610b34565b60405161031b9190614eb8565b60405180910390f35b34801561033057600080fd5b5061034b600480360381019061034691906143fd565b610bef565b005b6103676004803603810190610362919061463f565b610c4f565b005b34801561037557600080fd5b50610390600480360381019061038b9190614513565b610eee565b60405161039d9190614eb8565b60405180910390f35b3480156103b257600080fd5b506103bb6110d1565b6040516103c89190614eb8565b60405180910390f35b3480156103dd57600080fd5b506103f860048036038101906103f391906143fd565b6110d7565b005b34801561040657600080fd5b50610421600480360381019061041c919061463f565b6110f7565b60405161042e9190614eb8565b60405180910390f35b34801561044357600080fd5b5061044c6112ca565b6040516104599190614bdb565b60405180910390f35b34801561046e57600080fd5b506104896004803603810190610484919061463f565b6112e1565b6040516104969190614b29565b60405180910390f35b3480156104ab57600080fd5b506104c660048036038101906104c1919061463f565b61144c565b005b3480156104d457600080fd5b506104ef60048036038101906104ea9190614363565b6115a7565b6040516104fc9190614eb8565b60405180910390f35b34801561051157600080fd5b5061051a6116dd565b005b34801561052857600080fd5b50610531611765565b60405161053e9190614b29565b60405180910390f35b34801561055357600080fd5b5061055c61178f565b005b34801561056a57600080fd5b5061058560048036038101906105809190614363565b611a97565b6040516105929190614bb9565b60405180910390f35b3480156105a757600080fd5b506105b0611ba1565b6040516105bd9190614b29565b60405180910390f35b3480156105d257600080fd5b506105db611bcb565b6040516105e89190614bf6565b60405180910390f35b3480156105fd57600080fd5b50610606611c5d565b6040516106139190614eb8565b60405180910390f35b34801561062857600080fd5b50610643600480360381019061063e91906145ad565b611c67565b005b34801561065157600080fd5b5061066c600480360381019061066791906144d3565b611d44565b005b34801561067a57600080fd5b5061069560048036038101906106909190614450565b611d5a565b005b3480156106a357600080fd5b506106ac611dbc565b6040516106b99190614b29565b60405180910390f35b3480156106ce57600080fd5b506106e960048036038101906106e49190614513565b611de6565b005b3480156106f757600080fd5b50610712600480360381019061070d9190614363565b611f16565b005b34801561072057600080fd5b5061073b6004803603810190610736919061463f565b612084565b6040516107489190614bf6565b60405180910390f35b34801561075d57600080fd5b506107666121f4565b6040516107739190614eb8565b60405180910390f35b34801561078857600080fd5b506107a3600480360381019061079e9190614363565b612359565b005b3480156107b157600080fd5b506107cc60048036038101906107c791906143bd565b6124c7565b6040516107d99190614bdb565b60405180910390f35b3480156107ee57600080fd5b506108096004803603810190610804919061463f565b61255b565b005b34801561081757600080fd5b50610832600480360381019061082d9190614363565b6126f6565b005b34801561084057600080fd5b506108496127ee565b005b600061085682612887565b9050919050565b610865612901565b73ffffffffffffffffffffffffffffffffffffffff16610883611ba1565b73ffffffffffffffffffffffffffffffffffffffff16146108d9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108d090614dd8565b60405180910390fd5b601660159054906101000a900460ff1615601660156101000a81548160ff021916908315150217905550565b606060008054610914906151ac565b80601f0160208091040260200160405190810160405280929190818152602001828054610940906151ac565b801561098d5780601f106109625761010080835404028352916020019161098d565b820191906000526020600020905b81548152906001019060200180831161097057829003601f168201915b5050505050905090565b60006109a282612909565b6109e1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109d890614db8565b60405180910390fd5b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610a2782612975565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610a98576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a8f90614e38565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610ab7612901565b73ffffffffffffffffffffffffffffffffffffffff161480610ae65750610ae581610ae0612901565b6124c7565b5b610b25576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b1c90614d18565b60405180910390fd5b610b2f8383612a27565b505050565b6000610b40601a612ae0565b601b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166318160ddd6040518163ffffffff1660e01b815260040160206040518083038186803b158015610ba857600080fd5b505afa158015610bbc573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610be0919061466c565b610bea9190614fe1565b905090565b610c00610bfa612901565b82612aee565b610c3f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c3690614e58565b60405180910390fd5b610c4a838383612bcc565b505050565b6002600c541415610c95576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c8c90614e98565b60405180910390fd5b6002600c819055503373ffffffffffffffffffffffffffffffffffffffff163273ffffffffffffffffffffffffffffffffffffffff1614610d02576040517faa7b081500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b601660149054906101000a900460ff1615610d49576040517f8bf9b99f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000811415610d84576040517f524f409b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610d8c6112ca565b610dc2576040517f2d0a346e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610dca6121f4565b600d54610dd791906150c2565b81610de0610b34565b610dea9190614fe1565b1115610e22576040517fda7cdff700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b3481610e2c611c5d565b610e369190615068565b1115610e6e576040517fcd1c886700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600a811115610ea9576040517f8ba1cb6700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60005b81811015610ee257610ebe601a612e33565b610ecf33610eca610b34565b612e49565b8080610eda9061520f565b915050610eac565b506001600c8190555050565b6000610ef9836115a7565b8210610f3a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f3190614c18565b60405180910390fd5b6000601b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231856040518263ffffffff1660e01b8152600401610f979190614b29565b60206040518083038186803b158015610faf57600080fd5b505afa158015610fc3573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610fe7919061466c565b9050600081118015610ff857508083105b156110b257601b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16632f745c5985856040518363ffffffff1660e01b815260040161105a929190614b90565b60206040518083038186803b15801561107257600080fd5b505afa158015611086573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110aa919061466c565b9150506110cb565b6110c78482856110c291906150c2565b612e67565b9150505b92915050565b600d5481565b6110f283838360405180602001604052806000815250611d5a565b505050565b6000611101610b34565b8210611142576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161113990614e78565b60405180910390fd5b6000601b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166318160ddd6040518163ffffffff1660e01b815260040160206040518083038186803b1580156111ac57600080fd5b505afa1580156111c0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111e4919061466c565b90506000811180156111f557508083105b156112ad57601b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16634f6ccce7846040518263ffffffff1660e01b81526004016112559190614eb8565b60206040518083038186803b15801561126d57600080fd5b505afa158015611281573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112a5919061466c565b9150506112c5565b6112c181846112bc91906150c2565b612f0c565b9150505b919050565b6000601660159054906101000a900460ff16905090565b6000601b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166318160ddd6040518163ffffffff1660e01b815260040160206040518083038186803b15801561134b57600080fd5b505afa15801561135f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611383919061466c565b821161143b57601b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16636352211e836040518263ffffffff1660e01b81526004016113e49190614eb8565b60206040518083038186803b1580156113fc57600080fd5b505afa158015611410573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114349190614390565b9050611447565b61144482612975565b90505b919050565b611454612901565b73ffffffffffffffffffffffffffffffffffffffff16611472611ba1565b73ffffffffffffffffffffffffffffffffffffffff16146114c8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114bf90614dd8565b60405180910390fd5b601660149054906101000a900460ff161561150f576040517f8bf9b99f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80600d541161154a576040517fcd2e5f1f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b806115536121f4565b61155b610b34565b6115659190614fe1565b111561159d576040517f466fb7ea00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80600d8190555050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611618576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161160f90614d38565b60405180910390fd5b601b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231836040518263ffffffff1660e01b81526004016116739190614b29565b60206040518083038186803b15801561168b57600080fd5b505afa15801561169f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116c3919061466c565b6116cc83612f7d565b6116d69190614fe1565b9050919050565b6116e5612901565b73ffffffffffffffffffffffffffffffffffffffff16611703611ba1565b73ffffffffffffffffffffffffffffffffffffffff1614611759576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161175090614dd8565b60405180910390fd5b6117636000613035565b565b6000601c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b611797612901565b73ffffffffffffffffffffffffffffffffffffffff166117b5611ba1565b73ffffffffffffffffffffffffffffffffffffffff161461180b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161180290614dd8565b60405180910390fd5b60006103e860964761181d9190615068565b6118279190615037565b905060006103e8607d4761183b9190615068565b6118459190615037565b905060006103e86032476118599190615068565b6118639190615037565b905060006103e8607d476118779190615068565b6118819190615037565b905060006103e8607d476118959190615068565b61189f9190615037565b905060006103e8607d476118b39190615068565b6118bd9190615037565b905060006103e8607d476118d19190615068565b6118db9190615037565b905060006103e8607d476118ef9190615068565b6118f99190615037565b9050611927600e60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16896130fb565b611953600f60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16886130fb565b61197f601160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16876130fb565b6119ab601260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16866130fb565b6119d7601360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16856130fb565b611a03601460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16846130fb565b611a2f601560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16836130fb565b611a5b601660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16826130fb565b6000479050611a8c601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16826130fb565b505050505050505050565b60606000611aa4836115a7565b90506000811415611b0157600067ffffffffffffffff811115611aca57611ac9615374565b5b604051908082528060200260200182016040528015611af85781602001602082028036833780820191505090505b50915050611b9c565b60008167ffffffffffffffff811115611b1d57611b1c615374565b5b604051908082528060200260200182016040528015611b4b5781602001602082028036833780820191505090505b50905060005b82811015611b9557611b638582610eee565b828281518110611b7657611b75615345565b5b6020026020010181815250508080611b8d9061520f565b915050611b51565b5080925050505b919050565b6000600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b606060018054611bda906151ac565b80601f0160208091040260200160405190810160405280929190818152602001828054611c06906151ac565b8015611c535780601f10611c2857610100808354040283529160200191611c53565b820191906000526020600020905b815481529060010190602001808311611c3657829003601f168201915b5050505050905090565b6000601754905090565b611c6f612901565b73ffffffffffffffffffffffffffffffffffffffff16611c8d611ba1565b73ffffffffffffffffffffffffffffffffffffffff1614611ce3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611cda90614dd8565b60405180910390fd5b601660149054906101000a900460ff1615611d2a576040517f8bf9b99f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8060189080519060200190611d409291906140dd565b5050565b611d56611d4f612901565b83836131ac565b5050565b611d6b611d65612901565b83612aee565b611daa576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611da190614e58565b60405180910390fd5b611db684848484613319565b50505050565b6000601b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b611dee611765565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614611e52576040517fdcb9a46d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000811415611e8d576040517f524f409b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b611e956121f4565b811115611ece576040517fda7cdff700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60005b81811015611f1157611ee3601a612e33565b611eed6019612e33565b611efe83611ef9610b34565b612e49565b8080611f099061520f565b915050611ed1565b505050565b611f1e612901565b73ffffffffffffffffffffffffffffffffffffffff16611f3c611ba1565b73ffffffffffffffffffffffffffffffffffffffff1614611f92576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f8990614dd8565b60405180910390fd5b601660149054906101000a900460ff1615611fd9576040517f8bf9b99f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415612040576040517fb0f75c3100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80601b60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b606081601b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166318160ddd6040518163ffffffff1660e01b815260040160206040518083038186803b1580156120ef57600080fd5b505afa158015612103573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612127919061466c565b106121e357601b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663c87b56dd836040518263ffffffff1660e01b81526004016121879190614eb8565b60006040518083038186803b15801561219f57600080fd5b505afa1580156121b3573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f820116820180604052508101906121dc91906145f6565b90506121ef565b6121ec82613375565b90505b919050565b60006122006019612ae0565b601b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166318160ddd6040518163ffffffff1660e01b815260040160206040518083038186803b15801561226857600080fd5b505afa15801561227c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906122a0919061466c565b601c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166318160ddd6040518163ffffffff1660e01b815260040160206040518083038186803b15801561230857600080fd5b505afa15801561231c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612340919061466c565b61234a91906150c2565b61235491906150c2565b905090565b612361612901565b73ffffffffffffffffffffffffffffffffffffffff1661237f611ba1565b73ffffffffffffffffffffffffffffffffffffffff16146123d5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123cc90614dd8565b60405180910390fd5b601660149054906101000a900460ff161561241c576040517f8bf9b99f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415612483576040517fb0f75c3100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80601c60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b612563612901565b73ffffffffffffffffffffffffffffffffffffffff16612581611ba1565b73ffffffffffffffffffffffffffffffffffffffff16146125d7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016125ce90614dd8565b60405180910390fd5b601660149054906101000a900460ff161561261e576040517f8bf9b99f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000811415612659576040517f524f409b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6126616121f4565b600d5461266e91906150c2565b81612677610b34565b6126819190614fe1565b11156126b9576040517fda7cdff700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60005b818110156126f2576126ce601a612e33565b6126df336126da610b34565b612e49565b80806126ea9061520f565b9150506126bc565b5050565b6126fe612901565b73ffffffffffffffffffffffffffffffffffffffff1661271c611ba1565b73ffffffffffffffffffffffffffffffffffffffff1614612772576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161276990614dd8565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156127e2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016127d990614c58565b60405180910390fd5b6127eb81613035565b50565b6127f6612901565b73ffffffffffffffffffffffffffffffffffffffff16612814611ba1565b73ffffffffffffffffffffffffffffffffffffffff161461286a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161286190614dd8565b60405180910390fd5b6001601660146101000a81548160ff021916908315150217905550565b60007f780e9d63000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806128fa57506128f9826134c7565b5b9050919050565b600033905090565b60008073ffffffffffffffffffffffffffffffffffffffff166002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b6000806002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415612a1e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a1590614d58565b60405180910390fd5b80915050919050565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16612a9a83612975565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600081600001549050919050565b6000612af982612909565b612b38576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612b2f90614cf8565b60405180910390fd5b6000612b4383612975565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161480612bb257508373ffffffffffffffffffffffffffffffffffffffff16612b9a84610997565b73ffffffffffffffffffffffffffffffffffffffff16145b80612bc35750612bc281856124c7565b5b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff16612bec82612975565b73ffffffffffffffffffffffffffffffffffffffff1614612c42576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612c3990614c78565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612cb2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612ca990614cb8565b60405180910390fd5b612cbd8383836135a9565b612cc8600082612a27565b6001600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612d1891906150c2565b925050819055506001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612d6f9190614fe1565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4612e2e8383836135b9565b505050565b6001816000016000828254019250508190555050565b612e638282604051806020016040528060008152506135be565b5050565b6000612e7283612f7d565b8210612eb3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612eaa90614c18565b60405180910390fd5b600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002054905092915050565b6000612f16613619565b8210612f57576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612f4e90614e78565b60405180910390fd5b60088281548110612f6b57612f6a615345565b5b90600052602060002001549050919050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612fee576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612fe590614d38565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b6000600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600b60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b60008273ffffffffffffffffffffffffffffffffffffffff168260405161312190614b14565b60006040518083038185875af1925050503d806000811461315e576040519150601f19603f3d011682016040523d82523d6000602084013e613163565b606091505b50509050806131a7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161319e90614df8565b60405180910390fd5b505050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16141561321b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161321290614cd8565b60405180910390fd5b80600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405161330c9190614bdb565b60405180910390a3505050565b613324848484612bcc565b61333084848484613626565b61336f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161336690614c38565b60405180910390fd5b50505050565b606061338082612909565b6133bf576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016133b690614d98565b60405180910390fd5b6000600a600084815260200190815260200160002080546133df906151ac565b80601f016020809104026020016040519081016040528092919081815260200182805461340b906151ac565b80156134585780601f1061342d57610100808354040283529160200191613458565b820191906000526020600020905b81548152906001019060200180831161343b57829003601f168201915b5050505050905060006134696137bd565b905060008151141561347f5781925050506134c2565b6000825111156134b457808260405160200161349c929190614af0565b604051602081830303815290604052925050506134c2565b6134bd8461384f565b925050505b919050565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061359257507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806135a257506135a1826138f6565b5b9050919050565b6135b4838383613960565b505050565b505050565b6135c88383613a74565b6135d56000848484613626565b613614576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161360b90614c38565b60405180910390fd5b505050565b6000600880549050905090565b60006136478473ffffffffffffffffffffffffffffffffffffffff16613c4e565b156137b0578373ffffffffffffffffffffffffffffffffffffffff1663150b7a02613670612901565b8786866040518563ffffffff1660e01b81526004016136929493929190614b44565b602060405180830381600087803b1580156136ac57600080fd5b505af19250505080156136dd57506040513d601f19601f820116820180604052508101906136da9190614580565b60015b613760573d806000811461370d576040519150601f19603f3d011682016040523d82523d6000602084013e613712565b606091505b50600081511415613758576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161374f90614c38565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149150506137b5565b600190505b949350505050565b6060601880546137cc906151ac565b80601f01602080910402602001604051908101604052809291908181526020018280546137f8906151ac565b80156138455780601f1061381a57610100808354040283529160200191613845565b820191906000526020600020905b81548152906001019060200180831161382857829003601f168201915b5050505050905090565b606061385a82612909565b613899576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161389090614e18565b60405180910390fd5b60006138a36137bd565b905060008151116138c357604051806020016040528060008152506138ee565b806138cd84613c71565b6040516020016138de929190614af0565b6040516020818303038152906040525b915050919050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b61396b838383613dd2565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156139ae576139a981613dd7565b6139ed565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16146139ec576139eb8382613e20565b5b5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415613a3057613a2b81613f8d565b613a6f565b8273ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614613a6e57613a6d828261405e565b5b5b505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415613ae4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613adb90614d78565b60405180910390fd5b613aed81612909565b15613b2d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613b2490614c98565b60405180910390fd5b613b39600083836135a9565b6001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254613b899190614fe1565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4613c4a600083836135b9565b5050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b60606000821415613cb9576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050613dcd565b600082905060005b60008214613ceb578080613cd49061520f565b915050600a82613ce49190615037565b9150613cc1565b60008167ffffffffffffffff811115613d0757613d06615374565b5b6040519080825280601f01601f191660200182016040528015613d395781602001600182028036833780820191505090505b5090505b60008514613dc657600182613d5291906150c2565b9150600a85613d619190615258565b6030613d6d9190614fe1565b60f81b818381518110613d8357613d82615345565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a85613dbf9190615037565b9450613d3d565b8093505050505b919050565b505050565b6008805490506009600083815260200190815260200160002081905550600881908060018154018082558091505060019003906000526020600020016000909190919091505550565b60006001613e2d84612f7d565b613e3791906150c2565b9050600060076000848152602001908152602001600020549050818114613f1c576000600660008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002054905080600660008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002081905550816007600083815260200190815260200160002081905550505b6007600084815260200190815260200160002060009055600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008381526020019081526020016000206000905550505050565b60006001600880549050613fa191906150c2565b9050600060096000848152602001908152602001600020549050600060088381548110613fd157613fd0615345565b5b906000526020600020015490508060088381548110613ff357613ff2615345565b5b90600052602060002001819055508160096000838152602001908152602001600020819055506009600085815260200190815260200160002060009055600880548061404257614041615316565b5b6001900381819060005260206000200160009055905550505050565b600061406983612f7d565b905081600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002081905550806007600084815260200190815260200160002081905550505050565b8280546140e9906151ac565b90600052602060002090601f01602090048101928261410b5760008555614152565b82601f1061412457805160ff1916838001178555614152565b82800160010185558215614152579182015b82811115614151578251825591602001919060010190614136565b5b50905061415f9190614163565b5090565b5b8082111561417c576000816000905550600101614164565b5090565b600061419361418e84614ef8565b614ed3565b9050828152602081018484840111156141af576141ae6153a8565b5b6141ba84828561516a565b509392505050565b60006141d56141d084614f29565b614ed3565b9050828152602081018484840111156141f1576141f06153a8565b5b6141fc84828561516a565b509392505050565b600061421761421284614f29565b614ed3565b905082815260208101848484011115614233576142326153a8565b5b61423e848285615179565b509392505050565b60008135905061425581615962565b92915050565b60008151905061426a81615962565b92915050565b60008135905061427f81615979565b92915050565b60008135905061429481615990565b92915050565b6000815190506142a981615990565b92915050565b600082601f8301126142c4576142c36153a3565b5b81356142d4848260208601614180565b91505092915050565b600082601f8301126142f2576142f16153a3565b5b81356143028482602086016141c2565b91505092915050565b600082601f8301126143205761431f6153a3565b5b8151614330848260208601614204565b91505092915050565b600081359050614348816159a7565b92915050565b60008151905061435d816159a7565b92915050565b600060208284031215614379576143786153b2565b5b600061438784828501614246565b91505092915050565b6000602082840312156143a6576143a56153b2565b5b60006143b48482850161425b565b91505092915050565b600080604083850312156143d4576143d36153b2565b5b60006143e285828601614246565b92505060206143f385828601614246565b9150509250929050565b600080600060608486031215614416576144156153b2565b5b600061442486828701614246565b935050602061443586828701614246565b925050604061444686828701614339565b9150509250925092565b6000806000806080858703121561446a576144696153b2565b5b600061447887828801614246565b945050602061448987828801614246565b935050604061449a87828801614339565b925050606085013567ffffffffffffffff8111156144bb576144ba6153ad565b5b6144c7878288016142af565b91505092959194509250565b600080604083850312156144ea576144e96153b2565b5b60006144f885828601614246565b925050602061450985828601614270565b9150509250929050565b6000806040838503121561452a576145296153b2565b5b600061453885828601614246565b925050602061454985828601614339565b9150509250929050565b600060208284031215614569576145686153b2565b5b600061457784828501614285565b91505092915050565b600060208284031215614596576145956153b2565b5b60006145a48482850161429a565b91505092915050565b6000602082840312156145c3576145c26153b2565b5b600082013567ffffffffffffffff8111156145e1576145e06153ad565b5b6145ed848285016142dd565b91505092915050565b60006020828403121561460c5761460b6153b2565b5b600082015167ffffffffffffffff81111561462a576146296153ad565b5b6146368482850161430b565b91505092915050565b600060208284031215614655576146546153b2565b5b600061466384828501614339565b91505092915050565b600060208284031215614682576146816153b2565b5b60006146908482850161434e565b91505092915050565b60006146a58383614ad2565b60208301905092915050565b6146ba816150f6565b82525050565b60006146cb82614f6a565b6146d58185614f98565b93506146e083614f5a565b8060005b838110156147115781516146f88882614699565b975061470383614f8b565b9250506001810190506146e4565b5085935050505092915050565b61472781615108565b82525050565b600061473882614f75565b6147428185614fa9565b9350614752818560208601615179565b61475b816153b7565b840191505092915050565b600061477182614f80565b61477b8185614fc5565b935061478b818560208601615179565b614794816153b7565b840191505092915050565b60006147aa82614f80565b6147b48185614fd6565b93506147c4818560208601615179565b80840191505092915050565b60006147dd602b83614fc5565b91506147e8826153c8565b604082019050919050565b6000614800603283614fc5565b915061480b82615417565b604082019050919050565b6000614823602683614fc5565b915061482e82615466565b604082019050919050565b6000614846602583614fc5565b9150614851826154b5565b604082019050919050565b6000614869601c83614fc5565b915061487482615504565b602082019050919050565b600061488c602483614fc5565b91506148978261552d565b604082019050919050565b60006148af601983614fc5565b91506148ba8261557c565b602082019050919050565b60006148d2602c83614fc5565b91506148dd826155a5565b604082019050919050565b60006148f5603883614fc5565b9150614900826155f4565b604082019050919050565b6000614918602a83614fc5565b915061492382615643565b604082019050919050565b600061493b602983614fc5565b915061494682615692565b604082019050919050565b600061495e602083614fc5565b9150614969826156e1565b602082019050919050565b6000614981603183614fc5565b915061498c8261570a565b604082019050919050565b60006149a4602c83614fc5565b91506149af82615759565b604082019050919050565b60006149c7602083614fc5565b91506149d2826157a8565b602082019050919050565b60006149ea601483614fc5565b91506149f5826157d1565b602082019050919050565b6000614a0d602f83614fc5565b9150614a18826157fa565b604082019050919050565b6000614a30602183614fc5565b9150614a3b82615849565b604082019050919050565b6000614a53600083614fba565b9150614a5e82615898565b600082019050919050565b6000614a76603183614fc5565b9150614a818261589b565b604082019050919050565b6000614a99602c83614fc5565b9150614aa4826158ea565b604082019050919050565b6000614abc601f83614fc5565b9150614ac782615939565b602082019050919050565b614adb81615160565b82525050565b614aea81615160565b82525050565b6000614afc828561479f565b9150614b08828461479f565b91508190509392505050565b6000614b1f82614a46565b9150819050919050565b6000602082019050614b3e60008301846146b1565b92915050565b6000608082019050614b5960008301876146b1565b614b6660208301866146b1565b614b736040830185614ae1565b8181036060830152614b85818461472d565b905095945050505050565b6000604082019050614ba560008301856146b1565b614bb26020830184614ae1565b9392505050565b60006020820190508181036000830152614bd381846146c0565b905092915050565b6000602082019050614bf0600083018461471e565b92915050565b60006020820190508181036000830152614c108184614766565b905092915050565b60006020820190508181036000830152614c31816147d0565b9050919050565b60006020820190508181036000830152614c51816147f3565b9050919050565b60006020820190508181036000830152614c7181614816565b9050919050565b60006020820190508181036000830152614c9181614839565b9050919050565b60006020820190508181036000830152614cb18161485c565b9050919050565b60006020820190508181036000830152614cd18161487f565b9050919050565b60006020820190508181036000830152614cf1816148a2565b9050919050565b60006020820190508181036000830152614d11816148c5565b9050919050565b60006020820190508181036000830152614d31816148e8565b9050919050565b60006020820190508181036000830152614d518161490b565b9050919050565b60006020820190508181036000830152614d718161492e565b9050919050565b60006020820190508181036000830152614d9181614951565b9050919050565b60006020820190508181036000830152614db181614974565b9050919050565b60006020820190508181036000830152614dd181614997565b9050919050565b60006020820190508181036000830152614df1816149ba565b9050919050565b60006020820190508181036000830152614e11816149dd565b9050919050565b60006020820190508181036000830152614e3181614a00565b9050919050565b60006020820190508181036000830152614e5181614a23565b9050919050565b60006020820190508181036000830152614e7181614a69565b9050919050565b60006020820190508181036000830152614e9181614a8c565b9050919050565b60006020820190508181036000830152614eb181614aaf565b9050919050565b6000602082019050614ecd6000830184614ae1565b92915050565b6000614edd614eee565b9050614ee982826151de565b919050565b6000604051905090565b600067ffffffffffffffff821115614f1357614f12615374565b5b614f1c826153b7565b9050602081019050919050565b600067ffffffffffffffff821115614f4457614f43615374565b5b614f4d826153b7565b9050602081019050919050565b6000819050602082019050919050565b600081519050919050565b600081519050919050565b600081519050919050565b6000602082019050919050565b600082825260208201905092915050565b600082825260208201905092915050565b600081905092915050565b600082825260208201905092915050565b600081905092915050565b6000614fec82615160565b9150614ff783615160565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0382111561502c5761502b615289565b5b828201905092915050565b600061504282615160565b915061504d83615160565b92508261505d5761505c6152b8565b5b828204905092915050565b600061507382615160565b915061507e83615160565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156150b7576150b6615289565b5b828202905092915050565b60006150cd82615160565b91506150d883615160565b9250828210156150eb576150ea615289565b5b828203905092915050565b600061510182615140565b9050919050565b60008115159050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b82818337600083830152505050565b60005b8381101561519757808201518184015260208101905061517c565b838111156151a6576000848401525b50505050565b600060028204905060018216806151c457607f821691505b602082108114156151d8576151d76152e7565b5b50919050565b6151e7826153b7565b810181811067ffffffffffffffff8211171561520657615205615374565b5b80604052505050565b600061521a82615160565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82141561524d5761524c615289565b5b600182019050919050565b600061526382615160565b915061526e83615160565b92508261527e5761527d6152b8565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f455243373231456e756d657261626c653a206f776e657220696e646578206f7560008201527f74206f6620626f756e6473000000000000000000000000000000000000000000602082015250565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a207472616e736665722066726f6d20696e636f72726563742060008201527f6f776e6572000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b7f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760008201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000602082015250565b7f4552433732313a2062616c616e636520717565727920666f7220746865207a6560008201527f726f206164647265737300000000000000000000000000000000000000000000602082015250565b7f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460008201527f656e7420746f6b656e0000000000000000000000000000000000000000000000602082015250565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b7f45524337323155524953746f726167653a2055524920717565727920666f722060008201527f6e6f6e6578697374656e7420746f6b656e000000000000000000000000000000602082015250565b7f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f4661696c656420746f2073656e64206574686572000000000000000000000000600082015250565b7f4552433732314d657461646174613a2055524920717565727920666f72206e6f60008201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b50565b7f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60008201527f776e6572206e6f7220617070726f766564000000000000000000000000000000602082015250565b7f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60008201527f7574206f6620626f756e64730000000000000000000000000000000000000000602082015250565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b61596b816150f6565b811461597657600080fd5b50565b61598281615108565b811461598d57600080fd5b50565b61599981615114565b81146159a457600080fd5b50565b6159b081615160565b81146159bb57600080fd5b5056fea2646970667358221220a1d21f478d46ff57f469f62d1d260b1d41e9cdab091185579906e58234e5d0b564736f6c63430008070033687474703a2f2f6170692e726562656c73696e64697367756973652e636f2f726562656c732f0000000000000000000000000f667b08e583631f50df85537dc567ab90433b080000000000000000000000001ca1f5dc13f3204088993df413c81561dce72cfc

Deployed Bytecode

0x60806040526004361061020f5760003560e01c8063853828b611610118578063c349c93e116100a0578063deafaae51161006f578063deafaae51461077c578063e985e9c5146107a5578063f19e75d4146107e2578063f2fde38b1461080b578063f83d08ba146108345761020f565b8063c349c93e146106c2578063c4bedac6146106eb578063c87b56dd14610714578063d268e5a6146107515761020f565b806398d5fdca116100e757806398d5fdca146105f1578063a0bcfc7f1461061c578063a22cb46514610645578063b88d4fde1461066e578063c20b6904146106975761020f565b8063853828b614610547578063864829a91461055e5780638da5cb5b1461059b57806395d89b41146105c65761020f565b806332cb6b0c1161019b5780636352211e1161016a5780636352211e146104625780636f8b44b01461049f57806370a08231146104c8578063715018a6146105055780637f90b2751461051c5761020f565b806332cb6b0c146103a657806342842e0e146103d15780634f6ccce7146103fa578063564566a8146104375761020f565b8063095ea7b3116101e2578063095ea7b3146102d057806318160ddd146102f957806323b872dd146103245780632db115441461034d5780632f745c59146103695761020f565b806301ffc9a714610214578063049c5c491461025157806306fdde0314610268578063081812fc14610293575b600080fd5b34801561022057600080fd5b5061023b60048036038101906102369190614553565b61084b565b6040516102489190614bdb565b60405180910390f35b34801561025d57600080fd5b5061026661085d565b005b34801561027457600080fd5b5061027d610905565b60405161028a9190614bf6565b60405180910390f35b34801561029f57600080fd5b506102ba60048036038101906102b5919061463f565b610997565b6040516102c79190614b29565b60405180910390f35b3480156102dc57600080fd5b506102f760048036038101906102f29190614513565b610a1c565b005b34801561030557600080fd5b5061030e610b34565b60405161031b9190614eb8565b60405180910390f35b34801561033057600080fd5b5061034b600480360381019061034691906143fd565b610bef565b005b6103676004803603810190610362919061463f565b610c4f565b005b34801561037557600080fd5b50610390600480360381019061038b9190614513565b610eee565b60405161039d9190614eb8565b60405180910390f35b3480156103b257600080fd5b506103bb6110d1565b6040516103c89190614eb8565b60405180910390f35b3480156103dd57600080fd5b506103f860048036038101906103f391906143fd565b6110d7565b005b34801561040657600080fd5b50610421600480360381019061041c919061463f565b6110f7565b60405161042e9190614eb8565b60405180910390f35b34801561044357600080fd5b5061044c6112ca565b6040516104599190614bdb565b60405180910390f35b34801561046e57600080fd5b506104896004803603810190610484919061463f565b6112e1565b6040516104969190614b29565b60405180910390f35b3480156104ab57600080fd5b506104c660048036038101906104c1919061463f565b61144c565b005b3480156104d457600080fd5b506104ef60048036038101906104ea9190614363565b6115a7565b6040516104fc9190614eb8565b60405180910390f35b34801561051157600080fd5b5061051a6116dd565b005b34801561052857600080fd5b50610531611765565b60405161053e9190614b29565b60405180910390f35b34801561055357600080fd5b5061055c61178f565b005b34801561056a57600080fd5b5061058560048036038101906105809190614363565b611a97565b6040516105929190614bb9565b60405180910390f35b3480156105a757600080fd5b506105b0611ba1565b6040516105bd9190614b29565b60405180910390f35b3480156105d257600080fd5b506105db611bcb565b6040516105e89190614bf6565b60405180910390f35b3480156105fd57600080fd5b50610606611c5d565b6040516106139190614eb8565b60405180910390f35b34801561062857600080fd5b50610643600480360381019061063e91906145ad565b611c67565b005b34801561065157600080fd5b5061066c600480360381019061066791906144d3565b611d44565b005b34801561067a57600080fd5b5061069560048036038101906106909190614450565b611d5a565b005b3480156106a357600080fd5b506106ac611dbc565b6040516106b99190614b29565b60405180910390f35b3480156106ce57600080fd5b506106e960048036038101906106e49190614513565b611de6565b005b3480156106f757600080fd5b50610712600480360381019061070d9190614363565b611f16565b005b34801561072057600080fd5b5061073b6004803603810190610736919061463f565b612084565b6040516107489190614bf6565b60405180910390f35b34801561075d57600080fd5b506107666121f4565b6040516107739190614eb8565b60405180910390f35b34801561078857600080fd5b506107a3600480360381019061079e9190614363565b612359565b005b3480156107b157600080fd5b506107cc60048036038101906107c791906143bd565b6124c7565b6040516107d99190614bdb565b60405180910390f35b3480156107ee57600080fd5b506108096004803603810190610804919061463f565b61255b565b005b34801561081757600080fd5b50610832600480360381019061082d9190614363565b6126f6565b005b34801561084057600080fd5b506108496127ee565b005b600061085682612887565b9050919050565b610865612901565b73ffffffffffffffffffffffffffffffffffffffff16610883611ba1565b73ffffffffffffffffffffffffffffffffffffffff16146108d9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108d090614dd8565b60405180910390fd5b601660159054906101000a900460ff1615601660156101000a81548160ff021916908315150217905550565b606060008054610914906151ac565b80601f0160208091040260200160405190810160405280929190818152602001828054610940906151ac565b801561098d5780601f106109625761010080835404028352916020019161098d565b820191906000526020600020905b81548152906001019060200180831161097057829003601f168201915b5050505050905090565b60006109a282612909565b6109e1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109d890614db8565b60405180910390fd5b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610a2782612975565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610a98576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a8f90614e38565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610ab7612901565b73ffffffffffffffffffffffffffffffffffffffff161480610ae65750610ae581610ae0612901565b6124c7565b5b610b25576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b1c90614d18565b60405180910390fd5b610b2f8383612a27565b505050565b6000610b40601a612ae0565b601b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166318160ddd6040518163ffffffff1660e01b815260040160206040518083038186803b158015610ba857600080fd5b505afa158015610bbc573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610be0919061466c565b610bea9190614fe1565b905090565b610c00610bfa612901565b82612aee565b610c3f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c3690614e58565b60405180910390fd5b610c4a838383612bcc565b505050565b6002600c541415610c95576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c8c90614e98565b60405180910390fd5b6002600c819055503373ffffffffffffffffffffffffffffffffffffffff163273ffffffffffffffffffffffffffffffffffffffff1614610d02576040517faa7b081500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b601660149054906101000a900460ff1615610d49576040517f8bf9b99f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000811415610d84576040517f524f409b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610d8c6112ca565b610dc2576040517f2d0a346e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610dca6121f4565b600d54610dd791906150c2565b81610de0610b34565b610dea9190614fe1565b1115610e22576040517fda7cdff700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b3481610e2c611c5d565b610e369190615068565b1115610e6e576040517fcd1c886700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600a811115610ea9576040517f8ba1cb6700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60005b81811015610ee257610ebe601a612e33565b610ecf33610eca610b34565b612e49565b8080610eda9061520f565b915050610eac565b506001600c8190555050565b6000610ef9836115a7565b8210610f3a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f3190614c18565b60405180910390fd5b6000601b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231856040518263ffffffff1660e01b8152600401610f979190614b29565b60206040518083038186803b158015610faf57600080fd5b505afa158015610fc3573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610fe7919061466c565b9050600081118015610ff857508083105b156110b257601b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16632f745c5985856040518363ffffffff1660e01b815260040161105a929190614b90565b60206040518083038186803b15801561107257600080fd5b505afa158015611086573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110aa919061466c565b9150506110cb565b6110c78482856110c291906150c2565b612e67565b9150505b92915050565b600d5481565b6110f283838360405180602001604052806000815250611d5a565b505050565b6000611101610b34565b8210611142576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161113990614e78565b60405180910390fd5b6000601b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166318160ddd6040518163ffffffff1660e01b815260040160206040518083038186803b1580156111ac57600080fd5b505afa1580156111c0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111e4919061466c565b90506000811180156111f557508083105b156112ad57601b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16634f6ccce7846040518263ffffffff1660e01b81526004016112559190614eb8565b60206040518083038186803b15801561126d57600080fd5b505afa158015611281573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112a5919061466c565b9150506112c5565b6112c181846112bc91906150c2565b612f0c565b9150505b919050565b6000601660159054906101000a900460ff16905090565b6000601b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166318160ddd6040518163ffffffff1660e01b815260040160206040518083038186803b15801561134b57600080fd5b505afa15801561135f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611383919061466c565b821161143b57601b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16636352211e836040518263ffffffff1660e01b81526004016113e49190614eb8565b60206040518083038186803b1580156113fc57600080fd5b505afa158015611410573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114349190614390565b9050611447565b61144482612975565b90505b919050565b611454612901565b73ffffffffffffffffffffffffffffffffffffffff16611472611ba1565b73ffffffffffffffffffffffffffffffffffffffff16146114c8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114bf90614dd8565b60405180910390fd5b601660149054906101000a900460ff161561150f576040517f8bf9b99f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80600d541161154a576040517fcd2e5f1f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b806115536121f4565b61155b610b34565b6115659190614fe1565b111561159d576040517f466fb7ea00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80600d8190555050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611618576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161160f90614d38565b60405180910390fd5b601b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231836040518263ffffffff1660e01b81526004016116739190614b29565b60206040518083038186803b15801561168b57600080fd5b505afa15801561169f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116c3919061466c565b6116cc83612f7d565b6116d69190614fe1565b9050919050565b6116e5612901565b73ffffffffffffffffffffffffffffffffffffffff16611703611ba1565b73ffffffffffffffffffffffffffffffffffffffff1614611759576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161175090614dd8565b60405180910390fd5b6117636000613035565b565b6000601c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b611797612901565b73ffffffffffffffffffffffffffffffffffffffff166117b5611ba1565b73ffffffffffffffffffffffffffffffffffffffff161461180b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161180290614dd8565b60405180910390fd5b60006103e860964761181d9190615068565b6118279190615037565b905060006103e8607d4761183b9190615068565b6118459190615037565b905060006103e86032476118599190615068565b6118639190615037565b905060006103e8607d476118779190615068565b6118819190615037565b905060006103e8607d476118959190615068565b61189f9190615037565b905060006103e8607d476118b39190615068565b6118bd9190615037565b905060006103e8607d476118d19190615068565b6118db9190615037565b905060006103e8607d476118ef9190615068565b6118f99190615037565b9050611927600e60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16896130fb565b611953600f60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16886130fb565b61197f601160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16876130fb565b6119ab601260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16866130fb565b6119d7601360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16856130fb565b611a03601460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16846130fb565b611a2f601560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16836130fb565b611a5b601660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16826130fb565b6000479050611a8c601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16826130fb565b505050505050505050565b60606000611aa4836115a7565b90506000811415611b0157600067ffffffffffffffff811115611aca57611ac9615374565b5b604051908082528060200260200182016040528015611af85781602001602082028036833780820191505090505b50915050611b9c565b60008167ffffffffffffffff811115611b1d57611b1c615374565b5b604051908082528060200260200182016040528015611b4b5781602001602082028036833780820191505090505b50905060005b82811015611b9557611b638582610eee565b828281518110611b7657611b75615345565b5b6020026020010181815250508080611b8d9061520f565b915050611b51565b5080925050505b919050565b6000600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b606060018054611bda906151ac565b80601f0160208091040260200160405190810160405280929190818152602001828054611c06906151ac565b8015611c535780601f10611c2857610100808354040283529160200191611c53565b820191906000526020600020905b815481529060010190602001808311611c3657829003601f168201915b5050505050905090565b6000601754905090565b611c6f612901565b73ffffffffffffffffffffffffffffffffffffffff16611c8d611ba1565b73ffffffffffffffffffffffffffffffffffffffff1614611ce3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611cda90614dd8565b60405180910390fd5b601660149054906101000a900460ff1615611d2a576040517f8bf9b99f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8060189080519060200190611d409291906140dd565b5050565b611d56611d4f612901565b83836131ac565b5050565b611d6b611d65612901565b83612aee565b611daa576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611da190614e58565b60405180910390fd5b611db684848484613319565b50505050565b6000601b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b611dee611765565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614611e52576040517fdcb9a46d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000811415611e8d576040517f524f409b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b611e956121f4565b811115611ece576040517fda7cdff700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60005b81811015611f1157611ee3601a612e33565b611eed6019612e33565b611efe83611ef9610b34565b612e49565b8080611f099061520f565b915050611ed1565b505050565b611f1e612901565b73ffffffffffffffffffffffffffffffffffffffff16611f3c611ba1565b73ffffffffffffffffffffffffffffffffffffffff1614611f92576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f8990614dd8565b60405180910390fd5b601660149054906101000a900460ff1615611fd9576040517f8bf9b99f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415612040576040517fb0f75c3100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80601b60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b606081601b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166318160ddd6040518163ffffffff1660e01b815260040160206040518083038186803b1580156120ef57600080fd5b505afa158015612103573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612127919061466c565b106121e357601b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663c87b56dd836040518263ffffffff1660e01b81526004016121879190614eb8565b60006040518083038186803b15801561219f57600080fd5b505afa1580156121b3573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f820116820180604052508101906121dc91906145f6565b90506121ef565b6121ec82613375565b90505b919050565b60006122006019612ae0565b601b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166318160ddd6040518163ffffffff1660e01b815260040160206040518083038186803b15801561226857600080fd5b505afa15801561227c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906122a0919061466c565b601c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166318160ddd6040518163ffffffff1660e01b815260040160206040518083038186803b15801561230857600080fd5b505afa15801561231c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612340919061466c565b61234a91906150c2565b61235491906150c2565b905090565b612361612901565b73ffffffffffffffffffffffffffffffffffffffff1661237f611ba1565b73ffffffffffffffffffffffffffffffffffffffff16146123d5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123cc90614dd8565b60405180910390fd5b601660149054906101000a900460ff161561241c576040517f8bf9b99f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415612483576040517fb0f75c3100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80601c60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b612563612901565b73ffffffffffffffffffffffffffffffffffffffff16612581611ba1565b73ffffffffffffffffffffffffffffffffffffffff16146125d7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016125ce90614dd8565b60405180910390fd5b601660149054906101000a900460ff161561261e576040517f8bf9b99f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000811415612659576040517f524f409b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6126616121f4565b600d5461266e91906150c2565b81612677610b34565b6126819190614fe1565b11156126b9576040517fda7cdff700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60005b818110156126f2576126ce601a612e33565b6126df336126da610b34565b612e49565b80806126ea9061520f565b9150506126bc565b5050565b6126fe612901565b73ffffffffffffffffffffffffffffffffffffffff1661271c611ba1565b73ffffffffffffffffffffffffffffffffffffffff1614612772576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161276990614dd8565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156127e2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016127d990614c58565b60405180910390fd5b6127eb81613035565b50565b6127f6612901565b73ffffffffffffffffffffffffffffffffffffffff16612814611ba1565b73ffffffffffffffffffffffffffffffffffffffff161461286a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161286190614dd8565b60405180910390fd5b6001601660146101000a81548160ff021916908315150217905550565b60007f780e9d63000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806128fa57506128f9826134c7565b5b9050919050565b600033905090565b60008073ffffffffffffffffffffffffffffffffffffffff166002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b6000806002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415612a1e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a1590614d58565b60405180910390fd5b80915050919050565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16612a9a83612975565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600081600001549050919050565b6000612af982612909565b612b38576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612b2f90614cf8565b60405180910390fd5b6000612b4383612975565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161480612bb257508373ffffffffffffffffffffffffffffffffffffffff16612b9a84610997565b73ffffffffffffffffffffffffffffffffffffffff16145b80612bc35750612bc281856124c7565b5b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff16612bec82612975565b73ffffffffffffffffffffffffffffffffffffffff1614612c42576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612c3990614c78565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612cb2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612ca990614cb8565b60405180910390fd5b612cbd8383836135a9565b612cc8600082612a27565b6001600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612d1891906150c2565b925050819055506001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612d6f9190614fe1565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4612e2e8383836135b9565b505050565b6001816000016000828254019250508190555050565b612e638282604051806020016040528060008152506135be565b5050565b6000612e7283612f7d565b8210612eb3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612eaa90614c18565b60405180910390fd5b600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002054905092915050565b6000612f16613619565b8210612f57576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612f4e90614e78565b60405180910390fd5b60088281548110612f6b57612f6a615345565b5b90600052602060002001549050919050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612fee576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612fe590614d38565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b6000600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600b60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b60008273ffffffffffffffffffffffffffffffffffffffff168260405161312190614b14565b60006040518083038185875af1925050503d806000811461315e576040519150601f19603f3d011682016040523d82523d6000602084013e613163565b606091505b50509050806131a7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161319e90614df8565b60405180910390fd5b505050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16141561321b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161321290614cd8565b60405180910390fd5b80600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405161330c9190614bdb565b60405180910390a3505050565b613324848484612bcc565b61333084848484613626565b61336f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161336690614c38565b60405180910390fd5b50505050565b606061338082612909565b6133bf576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016133b690614d98565b60405180910390fd5b6000600a600084815260200190815260200160002080546133df906151ac565b80601f016020809104026020016040519081016040528092919081815260200182805461340b906151ac565b80156134585780601f1061342d57610100808354040283529160200191613458565b820191906000526020600020905b81548152906001019060200180831161343b57829003601f168201915b5050505050905060006134696137bd565b905060008151141561347f5781925050506134c2565b6000825111156134b457808260405160200161349c929190614af0565b604051602081830303815290604052925050506134c2565b6134bd8461384f565b925050505b919050565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061359257507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806135a257506135a1826138f6565b5b9050919050565b6135b4838383613960565b505050565b505050565b6135c88383613a74565b6135d56000848484613626565b613614576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161360b90614c38565b60405180910390fd5b505050565b6000600880549050905090565b60006136478473ffffffffffffffffffffffffffffffffffffffff16613c4e565b156137b0578373ffffffffffffffffffffffffffffffffffffffff1663150b7a02613670612901565b8786866040518563ffffffff1660e01b81526004016136929493929190614b44565b602060405180830381600087803b1580156136ac57600080fd5b505af19250505080156136dd57506040513d601f19601f820116820180604052508101906136da9190614580565b60015b613760573d806000811461370d576040519150601f19603f3d011682016040523d82523d6000602084013e613712565b606091505b50600081511415613758576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161374f90614c38565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149150506137b5565b600190505b949350505050565b6060601880546137cc906151ac565b80601f01602080910402602001604051908101604052809291908181526020018280546137f8906151ac565b80156138455780601f1061381a57610100808354040283529160200191613845565b820191906000526020600020905b81548152906001019060200180831161382857829003601f168201915b5050505050905090565b606061385a82612909565b613899576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161389090614e18565b60405180910390fd5b60006138a36137bd565b905060008151116138c357604051806020016040528060008152506138ee565b806138cd84613c71565b6040516020016138de929190614af0565b6040516020818303038152906040525b915050919050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b61396b838383613dd2565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156139ae576139a981613dd7565b6139ed565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16146139ec576139eb8382613e20565b5b5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415613a3057613a2b81613f8d565b613a6f565b8273ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614613a6e57613a6d828261405e565b5b5b505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415613ae4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613adb90614d78565b60405180910390fd5b613aed81612909565b15613b2d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613b2490614c98565b60405180910390fd5b613b39600083836135a9565b6001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254613b899190614fe1565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4613c4a600083836135b9565b5050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b60606000821415613cb9576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050613dcd565b600082905060005b60008214613ceb578080613cd49061520f565b915050600a82613ce49190615037565b9150613cc1565b60008167ffffffffffffffff811115613d0757613d06615374565b5b6040519080825280601f01601f191660200182016040528015613d395781602001600182028036833780820191505090505b5090505b60008514613dc657600182613d5291906150c2565b9150600a85613d619190615258565b6030613d6d9190614fe1565b60f81b818381518110613d8357613d82615345565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a85613dbf9190615037565b9450613d3d565b8093505050505b919050565b505050565b6008805490506009600083815260200190815260200160002081905550600881908060018154018082558091505060019003906000526020600020016000909190919091505550565b60006001613e2d84612f7d565b613e3791906150c2565b9050600060076000848152602001908152602001600020549050818114613f1c576000600660008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002054905080600660008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002081905550816007600083815260200190815260200160002081905550505b6007600084815260200190815260200160002060009055600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008381526020019081526020016000206000905550505050565b60006001600880549050613fa191906150c2565b9050600060096000848152602001908152602001600020549050600060088381548110613fd157613fd0615345565b5b906000526020600020015490508060088381548110613ff357613ff2615345565b5b90600052602060002001819055508160096000838152602001908152602001600020819055506009600085815260200190815260200160002060009055600880548061404257614041615316565b5b6001900381819060005260206000200160009055905550505050565b600061406983612f7d565b905081600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002081905550806007600084815260200190815260200160002081905550505050565b8280546140e9906151ac565b90600052602060002090601f01602090048101928261410b5760008555614152565b82601f1061412457805160ff1916838001178555614152565b82800160010185558215614152579182015b82811115614151578251825591602001919060010190614136565b5b50905061415f9190614163565b5090565b5b8082111561417c576000816000905550600101614164565b5090565b600061419361418e84614ef8565b614ed3565b9050828152602081018484840111156141af576141ae6153a8565b5b6141ba84828561516a565b509392505050565b60006141d56141d084614f29565b614ed3565b9050828152602081018484840111156141f1576141f06153a8565b5b6141fc84828561516a565b509392505050565b600061421761421284614f29565b614ed3565b905082815260208101848484011115614233576142326153a8565b5b61423e848285615179565b509392505050565b60008135905061425581615962565b92915050565b60008151905061426a81615962565b92915050565b60008135905061427f81615979565b92915050565b60008135905061429481615990565b92915050565b6000815190506142a981615990565b92915050565b600082601f8301126142c4576142c36153a3565b5b81356142d4848260208601614180565b91505092915050565b600082601f8301126142f2576142f16153a3565b5b81356143028482602086016141c2565b91505092915050565b600082601f8301126143205761431f6153a3565b5b8151614330848260208601614204565b91505092915050565b600081359050614348816159a7565b92915050565b60008151905061435d816159a7565b92915050565b600060208284031215614379576143786153b2565b5b600061438784828501614246565b91505092915050565b6000602082840312156143a6576143a56153b2565b5b60006143b48482850161425b565b91505092915050565b600080604083850312156143d4576143d36153b2565b5b60006143e285828601614246565b92505060206143f385828601614246565b9150509250929050565b600080600060608486031215614416576144156153b2565b5b600061442486828701614246565b935050602061443586828701614246565b925050604061444686828701614339565b9150509250925092565b6000806000806080858703121561446a576144696153b2565b5b600061447887828801614246565b945050602061448987828801614246565b935050604061449a87828801614339565b925050606085013567ffffffffffffffff8111156144bb576144ba6153ad565b5b6144c7878288016142af565b91505092959194509250565b600080604083850312156144ea576144e96153b2565b5b60006144f885828601614246565b925050602061450985828601614270565b9150509250929050565b6000806040838503121561452a576145296153b2565b5b600061453885828601614246565b925050602061454985828601614339565b9150509250929050565b600060208284031215614569576145686153b2565b5b600061457784828501614285565b91505092915050565b600060208284031215614596576145956153b2565b5b60006145a48482850161429a565b91505092915050565b6000602082840312156145c3576145c26153b2565b5b600082013567ffffffffffffffff8111156145e1576145e06153ad565b5b6145ed848285016142dd565b91505092915050565b60006020828403121561460c5761460b6153b2565b5b600082015167ffffffffffffffff81111561462a576146296153ad565b5b6146368482850161430b565b91505092915050565b600060208284031215614655576146546153b2565b5b600061466384828501614339565b91505092915050565b600060208284031215614682576146816153b2565b5b60006146908482850161434e565b91505092915050565b60006146a58383614ad2565b60208301905092915050565b6146ba816150f6565b82525050565b60006146cb82614f6a565b6146d58185614f98565b93506146e083614f5a565b8060005b838110156147115781516146f88882614699565b975061470383614f8b565b9250506001810190506146e4565b5085935050505092915050565b61472781615108565b82525050565b600061473882614f75565b6147428185614fa9565b9350614752818560208601615179565b61475b816153b7565b840191505092915050565b600061477182614f80565b61477b8185614fc5565b935061478b818560208601615179565b614794816153b7565b840191505092915050565b60006147aa82614f80565b6147b48185614fd6565b93506147c4818560208601615179565b80840191505092915050565b60006147dd602b83614fc5565b91506147e8826153c8565b604082019050919050565b6000614800603283614fc5565b915061480b82615417565b604082019050919050565b6000614823602683614fc5565b915061482e82615466565b604082019050919050565b6000614846602583614fc5565b9150614851826154b5565b604082019050919050565b6000614869601c83614fc5565b915061487482615504565b602082019050919050565b600061488c602483614fc5565b91506148978261552d565b604082019050919050565b60006148af601983614fc5565b91506148ba8261557c565b602082019050919050565b60006148d2602c83614fc5565b91506148dd826155a5565b604082019050919050565b60006148f5603883614fc5565b9150614900826155f4565b604082019050919050565b6000614918602a83614fc5565b915061492382615643565b604082019050919050565b600061493b602983614fc5565b915061494682615692565b604082019050919050565b600061495e602083614fc5565b9150614969826156e1565b602082019050919050565b6000614981603183614fc5565b915061498c8261570a565b604082019050919050565b60006149a4602c83614fc5565b91506149af82615759565b604082019050919050565b60006149c7602083614fc5565b91506149d2826157a8565b602082019050919050565b60006149ea601483614fc5565b91506149f5826157d1565b602082019050919050565b6000614a0d602f83614fc5565b9150614a18826157fa565b604082019050919050565b6000614a30602183614fc5565b9150614a3b82615849565b604082019050919050565b6000614a53600083614fba565b9150614a5e82615898565b600082019050919050565b6000614a76603183614fc5565b9150614a818261589b565b604082019050919050565b6000614a99602c83614fc5565b9150614aa4826158ea565b604082019050919050565b6000614abc601f83614fc5565b9150614ac782615939565b602082019050919050565b614adb81615160565b82525050565b614aea81615160565b82525050565b6000614afc828561479f565b9150614b08828461479f565b91508190509392505050565b6000614b1f82614a46565b9150819050919050565b6000602082019050614b3e60008301846146b1565b92915050565b6000608082019050614b5960008301876146b1565b614b6660208301866146b1565b614b736040830185614ae1565b8181036060830152614b85818461472d565b905095945050505050565b6000604082019050614ba560008301856146b1565b614bb26020830184614ae1565b9392505050565b60006020820190508181036000830152614bd381846146c0565b905092915050565b6000602082019050614bf0600083018461471e565b92915050565b60006020820190508181036000830152614c108184614766565b905092915050565b60006020820190508181036000830152614c31816147d0565b9050919050565b60006020820190508181036000830152614c51816147f3565b9050919050565b60006020820190508181036000830152614c7181614816565b9050919050565b60006020820190508181036000830152614c9181614839565b9050919050565b60006020820190508181036000830152614cb18161485c565b9050919050565b60006020820190508181036000830152614cd18161487f565b9050919050565b60006020820190508181036000830152614cf1816148a2565b9050919050565b60006020820190508181036000830152614d11816148c5565b9050919050565b60006020820190508181036000830152614d31816148e8565b9050919050565b60006020820190508181036000830152614d518161490b565b9050919050565b60006020820190508181036000830152614d718161492e565b9050919050565b60006020820190508181036000830152614d9181614951565b9050919050565b60006020820190508181036000830152614db181614974565b9050919050565b60006020820190508181036000830152614dd181614997565b9050919050565b60006020820190508181036000830152614df1816149ba565b9050919050565b60006020820190508181036000830152614e11816149dd565b9050919050565b60006020820190508181036000830152614e3181614a00565b9050919050565b60006020820190508181036000830152614e5181614a23565b9050919050565b60006020820190508181036000830152614e7181614a69565b9050919050565b60006020820190508181036000830152614e9181614a8c565b9050919050565b60006020820190508181036000830152614eb181614aaf565b9050919050565b6000602082019050614ecd6000830184614ae1565b92915050565b6000614edd614eee565b9050614ee982826151de565b919050565b6000604051905090565b600067ffffffffffffffff821115614f1357614f12615374565b5b614f1c826153b7565b9050602081019050919050565b600067ffffffffffffffff821115614f4457614f43615374565b5b614f4d826153b7565b9050602081019050919050565b6000819050602082019050919050565b600081519050919050565b600081519050919050565b600081519050919050565b6000602082019050919050565b600082825260208201905092915050565b600082825260208201905092915050565b600081905092915050565b600082825260208201905092915050565b600081905092915050565b6000614fec82615160565b9150614ff783615160565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0382111561502c5761502b615289565b5b828201905092915050565b600061504282615160565b915061504d83615160565b92508261505d5761505c6152b8565b5b828204905092915050565b600061507382615160565b915061507e83615160565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156150b7576150b6615289565b5b828202905092915050565b60006150cd82615160565b91506150d883615160565b9250828210156150eb576150ea615289565b5b828203905092915050565b600061510182615140565b9050919050565b60008115159050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b82818337600083830152505050565b60005b8381101561519757808201518184015260208101905061517c565b838111156151a6576000848401525b50505050565b600060028204905060018216806151c457607f821691505b602082108114156151d8576151d76152e7565b5b50919050565b6151e7826153b7565b810181811067ffffffffffffffff8211171561520657615205615374565b5b80604052505050565b600061521a82615160565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82141561524d5761524c615289565b5b600182019050919050565b600061526382615160565b915061526e83615160565b92508261527e5761527d6152b8565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f455243373231456e756d657261626c653a206f776e657220696e646578206f7560008201527f74206f6620626f756e6473000000000000000000000000000000000000000000602082015250565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a207472616e736665722066726f6d20696e636f72726563742060008201527f6f776e6572000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b7f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760008201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000602082015250565b7f4552433732313a2062616c616e636520717565727920666f7220746865207a6560008201527f726f206164647265737300000000000000000000000000000000000000000000602082015250565b7f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460008201527f656e7420746f6b656e0000000000000000000000000000000000000000000000602082015250565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b7f45524337323155524953746f726167653a2055524920717565727920666f722060008201527f6e6f6e6578697374656e7420746f6b656e000000000000000000000000000000602082015250565b7f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f4661696c656420746f2073656e64206574686572000000000000000000000000600082015250565b7f4552433732314d657461646174613a2055524920717565727920666f72206e6f60008201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b50565b7f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60008201527f776e6572206e6f7220617070726f766564000000000000000000000000000000602082015250565b7f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60008201527f7574206f6620626f756e64730000000000000000000000000000000000000000602082015250565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b61596b816150f6565b811461597657600080fd5b50565b61598281615108565b811461598d57600080fd5b50565b61599981615114565b81146159a457600080fd5b50565b6159b081615160565b81146159bb57600080fd5b5056fea2646970667358221220a1d21f478d46ff57f469f62d1d260b1d41e9cdab091185579906e58234e5d0b564736f6c63430008070033

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

0000000000000000000000000f667b08e583631f50df85537dc567ab90433b080000000000000000000000001ca1f5dc13f3204088993df413c81561dce72cfc

-----Decoded View---------------
Arg [0] : ridCoinAddress (address): 0x0f667b08e583631f50DF85537dC567ab90433b08
Arg [1] : ridOldAddress (address): 0x1ca1f5DC13f3204088993df413C81561dce72cfc

-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 0000000000000000000000000f667b08e583631f50df85537dc567ab90433b08
Arg [1] : 0000000000000000000000001ca1f5dc13f3204088993df413c81561dce72cfc


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.