ETH Price: $3,171.68 (-8.04%)
Gas: 3 Gwei

Token

Lootchadores (LOOTCHA)
 

Overview

Max Total Supply

12 LOOTCHA

Holders

7

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Filtered by Token Holder
myfuckingwallet.eth
Balance
2 LOOTCHA
0x0eFb322A9b425A6b319059C1cCeB1dA03C328720
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:
Lootchadores

Compiler Version
v0.8.0+commit.c7dfd78e

Optimization Enabled:
Yes with 200 runs

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

pragma solidity >=0.8.0;

import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/finance/PaymentSplitter.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";
import "@openzeppelin/contracts/utils/introspection/ERC165Storage.sol";
import "@openzeppelin/contracts/utils/Strings.sol";

import {IAbilities} from "../Interfaces/IAbilities.sol";
import {ILuchadores} from "../Interfaces/ILuchadores.sol";
import {ILuchaNames} from "../Interfaces/ILuchaNames.sol";

import {Base64} from "../Base64.sol";
import {strings} from "../StringUtils.sol";


contract Lootchadores is ERC721Enumerable, Ownable, ERC165Storage, PaymentSplitter {
    using strings for *;
    using Strings for string;
    using Strings for uint256;

    struct AbilityStats {
        uint8 stars;
        uint8 charisma;
        uint8 constitution;
        uint8 dexterity;
        uint8 intelligence;
        uint8 strength;
        uint8 wisdom;
        uint256 tokenId;
    }

    mapping(uint256 => AbilityStats) internal luchaAbilites;

    bytes4 private constant _INTERFACE_ID_ERC2981 = 0xc155531d;

    uint256 public constant MINT_PRICE = 0.03 ether;
    uint256 public constant ROYALTY_AMOUNT = 9;

    address public LUCHADORES_ADDRESS;
    address public LUCHADORES_NAME_ADDRESS;
    address public ABILITY_SCORES_ADDRESS;

    constructor(
        address luchaAddress,
        address luchaNamesAddress,
        address abilityAddress,
        address[] memory _payees,
        uint256[] memory _shares
    )
    payable
    PaymentSplitter(_payees, _shares)
    ERC721("Lootchadores", "LOOTCHA") {
        _registerInterface(_INTERFACE_ID_ERC2981);
        LUCHADORES_ADDRESS = luchaAddress;
        LUCHADORES_NAME_ADDRESS = luchaNamesAddress;
        ABILITY_SCORES_ADDRESS = abilityAddress;
    }

    function mintWithLucha(uint256 luchadoreId,uint256 abilityScoreId) public payable {
        require(msg.value == MINT_PRICE, "L:mWL:402");
        require(msg.sender == ILuchadores(LUCHADORES_ADDRESS).ownerOf(luchadoreId), "L:mWL:403");
        require(msg.sender == IAbilities(ABILITY_SCORES_ADDRESS).ownerOf(abilityScoreId), "L:mWL:403");

        persistStats(luchadoreId, abilityScoreId);

        _mint(msg.sender, luchadoreId);
    }

    function persistStats(uint256 tokenId, uint256 abilityId) internal {
        uint8 charisma = extractValue(IAbilities(ABILITY_SCORES_ADDRESS).getCharisma(abilityId));
        uint8 constitution = extractValue(IAbilities(ABILITY_SCORES_ADDRESS).getConstitution(abilityId));
        uint8 dexterity = extractValue(IAbilities(ABILITY_SCORES_ADDRESS).getDexterity(abilityId));
        uint8 intelligence = extractValue(IAbilities(ABILITY_SCORES_ADDRESS).getIntelligence(abilityId));
        uint8 strength = extractValue(IAbilities(ABILITY_SCORES_ADDRESS).getStrength(abilityId));
        uint8 wisdom = extractValue(IAbilities(ABILITY_SCORES_ADDRESS).getWisdom(abilityId));

        uint8 stars = uint8((charisma + constitution + dexterity + intelligence + strength + wisdom) / 20);

        luchaAbilites[tokenId] = AbilityStats({
            charisma: charisma,
            constitution: constitution,
            dexterity: dexterity,
            intelligence: intelligence,
            strength: strength,
            wisdom: wisdom,
            tokenId: abilityId,
            stars: stars
        });
    }

    /* solhint-disable quotes */

    function tokenURI(uint256 tokenId) public view override returns (string memory) {
        require(_exists(tokenId), "L:tU:404");
        return
            string(
                abi.encodePacked(
                    "data:application/json;base64,",
                    Base64.encode(
                        bytes(
                            abi.encodePacked(
                                '{"name":"',
                                getName(tokenId),
                                '", "image": "',
                                svgBase64Data(tokenId),
                                '", ',
                                tokenProperties(tokenId),
                                '"}}'
                            )
                        )
                    )
                )
            );
    }

    function tokenProperties(uint256 tokenId) internal view returns (bytes memory) {
        AbilityStats memory stats = luchaAbilites[tokenId];

        return abi.encodePacked(
            '"properties": { "Charisma": "',
            uint256(stats.charisma).toString(),
            '", "Constitution": "',
            uint256(stats.constitution).toString(),
            '", "Dexterity": "',
            uint256(stats.dexterity).toString(),
            '", "Intelligence": "',
            uint256(stats.intelligence).toString(),
            '", "Strength": "',
            uint256(stats.strength).toString(),
            '", "Wisdom": "',
            uint256(stats.wisdom).toString()
        );
    }

    function svgBase64Data(uint256 tokenId) public view returns (string memory) {
        require(_exists(tokenId), "L:sb64D:404");

        return string(
            abi.encodePacked(
                'data:image/svg+xml;base64,',
                Base64.encode(svgRaw(tokenId))
            )
        );
    }

    function svgRaw(uint256 tokenId) public view returns (bytes memory) {
        require(_exists(tokenId), "L:sR:404");
        return
            abi.encodePacked(
                '<svg viewBox="0 0 640 890" xmlns="http://www.w3.org/2000/svg"><rect x="16" y="16" width="608" height="858" style="fill: rgb(253, 227, 36); stroke-width: 4px; stroke:#FD6F21;"/>',
                '<rect x="16" y="16" width="607" height="604" style="fill: rgb(216, 216, 216); stroke-width: 4px; stroke:#FD6F21"/><svg x="30" y="30" width="580" height="580">',
                ILuchadores(LUCHADORES_ADDRESS).imageData(tokenId),
                '</svg><line style="stroke-width: 2px; stroke:#FD6F21;" x1="48" x2="248" y1="650" y2="650"/>',
                renderStars(tokenId),
                '<line style="stroke-width: 2px; stroke:#FD6F21;" x1="392" x2="592" y1="650" y2="650"/>',
                renderName(getName(tokenId)),
                renderAttributes(tokenId),
                "</svg>"
            );
    }

    function getName(uint256 tokenId) internal view returns (string memory) {
        string memory name = ILuchaNames(LUCHADORES_NAME_ADDRESS).getName(LUCHADORES_ADDRESS, tokenId);
        return bytes(name).length == 0 ? string(abi.encodePacked("Lootchadore #", tokenId.toString())) : name;
    }

    function renderStar(bool filled, uint256 x) internal pure returns (bytes memory) {
        return
            abi.encodePacked(
                '<path transform="translate(',
                x.toString(),
                ',636) scale(0.5)" fill="',
                filled ? "#009ADE" : "none",
                '" stroke-width="2" stroke="#009ADE" d="m25,1 6,17h18l-14,11 5,17-15-10-15,10 5-17-14-11h18z"/>'
            );
    }

    function renderStars(uint256 tokenId) internal view returns (bytes memory) {
        AbilityStats memory stats = luchaAbilites[tokenId];
        uint8 starRating = stats.stars;

        return
            abi.encodePacked(
                renderStar(starRating >= 1, 248),
                renderStar(starRating >= 2, 278),
                renderStar(starRating >= 3, 308),
                renderStar(starRating >= 4, 338),
                renderStar(starRating >= 5, 368)
            );
    }

    function renderName(string memory name) internal pure returns (bytes memory) {
        return
            abi.encodePacked(
                '<text text-anchor="middle" width="600" style="fill: #FD6F21; font-family: \'Georgia\'; font-size: 36px; font-weight: 600;" x="320" y="720">',
                name,
                "</text>"
            );
    }

    function renderAttributes(uint256 _tokenId) internal view returns (bytes memory) {
        AbilityStats memory stats = luchaAbilites[_tokenId];
        return
            abi.encodePacked(
                renderAttribute(stats.charisma, " CHA", 128, 780),
                renderAttribute(stats.constitution, " CON", 320, 780),
                renderAttribute(stats.dexterity, " DEX", 512, 780),
                renderAttribute(stats.intelligence, " INT", 128, 830),
                renderAttribute(stats.strength, " STR", 320, 830),
                renderAttribute(stats.wisdom, " WIS", 512, 830)
            );
    }

    function renderAttribute(
        uint256 value,
        string memory label,
        uint256 x,
        uint256 y
    ) internal pure returns (bytes memory) {
        return
            abi.encodePacked(
                '<text text-anchor="middle" x="',
                x.toString(),
                '" y="',
                y.toString(),
                '" style="fill: #009ADE; font-size: 24px; font-weight: 600; font-family: \'Helvetica\'">',
                uint256(value).toString(),
                label,
                "</text>"
            );
    }

    function extractValue(string memory ability) internal pure returns (uint8) {
        strings.slice memory value = ability.toSlice();
        value.split(" ".toSlice());
        return uint8(safeParseInt(value.toString(), 0));
    }

    function safeParseInt(string memory _a, uint _b) internal pure returns (uint _parsedInt) {
        bytes memory bresult = bytes(_a);
        uint mint = 0;
        bool decimals = false;
        for (uint i = 0; i < bresult.length; i++) {
            if ((uint(uint8(bresult[i])) >= 48) && (uint(uint8(bresult[i])) <= 57)) {
                if (decimals) {
                   if (_b == 0) break;
                    else _b--;
                }
                mint *= 10;
                mint += uint(uint8(bresult[i])) - 48;
            } else if (uint(uint8(bresult[i])) == 46) {
                require(!decimals, 'More than one decimal encountered in string!');
                decimals = true;
            } else {
                revert("Non-numeral character encountered in string!");
            }
        }
        if (_b > 0) {
            mint *= 10 ** _b;
        }
        return mint;
    }


    function royaltyInfo(
        uint256 tokenId,
        uint256 value,
        bytes calldata _data
    ) external view returns (address _receiver, uint256 royaltyAmount) {
        royaltyAmount = (value * ROYALTY_AMOUNT) / 100;

        return (owner(), royaltyAmount);
    }

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

File 2 of 21 : Ownable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

File 3 of 21 : PaymentSplitter.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../utils/Address.sol";
import "../utils/Context.sol";
import "../utils/math/SafeMath.sol";

/**
 * @title PaymentSplitter
 * @dev This contract allows to split Ether payments among a group of accounts. The sender does not need to be aware
 * that the Ether will be split in this way, since it is handled transparently by the contract.
 *
 * The split can be in equal parts or in any other arbitrary proportion. The way this is specified is by assigning each
 * account to a number of shares. Of all the Ether that this contract receives, each account will then be able to claim
 * an amount proportional to the percentage of total shares they were assigned.
 *
 * `PaymentSplitter` follows a _pull payment_ model. This means that payments are not automatically forwarded to the
 * accounts but kept in this contract, and the actual transfer is triggered as a separate step by calling the {release}
 * function.
 */
contract PaymentSplitter is Context {
    event PayeeAdded(address account, uint256 shares);
    event PaymentReleased(address to, uint256 amount);
    event PaymentReceived(address from, uint256 amount);

    uint256 private _totalShares;
    uint256 private _totalReleased;

    mapping(address => uint256) private _shares;
    mapping(address => uint256) private _released;
    address[] private _payees;

    /**
     * @dev Creates an instance of `PaymentSplitter` where each account in `payees` is assigned the number of shares at
     * the matching position in the `shares` array.
     *
     * All addresses in `payees` must be non-zero. Both arrays must have the same non-zero length, and there must be no
     * duplicates in `payees`.
     */
    constructor(address[] memory payees, uint256[] memory shares_) payable {
        require(payees.length == shares_.length, "PaymentSplitter: payees and shares length mismatch");
        require(payees.length > 0, "PaymentSplitter: no payees");

        for (uint256 i = 0; i < payees.length; i++) {
            _addPayee(payees[i], shares_[i]);
        }
    }

    /**
     * @dev The Ether received will be logged with {PaymentReceived} events. Note that these events are not fully
     * reliable: it's possible for a contract to receive Ether without triggering this function. This only affects the
     * reliability of the events, and not the actual splitting of Ether.
     *
     * To learn more about this see the Solidity documentation for
     * https://solidity.readthedocs.io/en/latest/contracts.html#fallback-function[fallback
     * functions].
     */
    receive() external payable virtual {
        emit PaymentReceived(_msgSender(), msg.value);
    }

    /**
     * @dev Getter for the total shares held by payees.
     */
    function totalShares() public view returns (uint256) {
        return _totalShares;
    }

    /**
     * @dev Getter for the total amount of Ether already released.
     */
    function totalReleased() public view returns (uint256) {
        return _totalReleased;
    }

    /**
     * @dev Getter for the amount of shares held by an account.
     */
    function shares(address account) public view returns (uint256) {
        return _shares[account];
    }

    /**
     * @dev Getter for the amount of Ether already released to a payee.
     */
    function released(address account) public view returns (uint256) {
        return _released[account];
    }

    /**
     * @dev Getter for the address of the payee number `index`.
     */
    function payee(uint256 index) public view returns (address) {
        return _payees[index];
    }

    /**
     * @dev Triggers a transfer to `account` of the amount of Ether they are owed, according to their percentage of the
     * total shares and their previous withdrawals.
     */
    function release(address payable account) public virtual {
        require(_shares[account] > 0, "PaymentSplitter: account has no shares");

        uint256 totalReceived = address(this).balance + _totalReleased;
        uint256 payment = (totalReceived * _shares[account]) / _totalShares - _released[account];

        require(payment != 0, "PaymentSplitter: account is not due payment");

        _released[account] = _released[account] + payment;
        _totalReleased = _totalReleased + payment;

        Address.sendValue(account, payment);
        emit PaymentReleased(account, payment);
    }

    /**
     * @dev Add a new payee to the contract.
     * @param account The address of the payee to add.
     * @param shares_ The number of shares owned by the payee.
     */
    function _addPayee(address account, uint256 shares_) private {
        require(account != address(0), "PaymentSplitter: account is the zero address");
        require(shares_ > 0, "PaymentSplitter: shares are 0");
        require(_shares[account] == 0, "PaymentSplitter: account already has shares");

        _payees.push(account);
        _shares[account] = shares_;
        _totalShares = _totalShares + shares_;
        emit PayeeAdded(account, shares_);
    }
}

File 4 of 21 : ERC721Enumerable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

File 5 of 21 : ERC165Storage.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "./ERC165.sol";

/**
 * @dev Storage based implementation of the {IERC165} interface.
 *
 * Contracts may inherit from this and call {_registerInterface} to declare
 * their support of an interface.
 */
abstract contract ERC165Storage is ERC165 {
    /**
     * @dev Mapping of interface ids to whether or not it's supported.
     */
    mapping(bytes4 => bool) private _supportedInterfaces;

    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
        return super.supportsInterface(interfaceId) || _supportedInterfaces[interfaceId];
    }

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

File 7 of 21 : IAbilities.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.8.0;

import "@openzeppelin/contracts/token/ERC721/IERC721.sol";

interface IAbilities is IERC721 {
    function getCharisma(uint256 _tokenId) external view returns (string memory);
    function getConstitution(uint256 _tokenId) external view returns (string memory);
    function getDexterity(uint256 _tokenId) external view returns (string memory);
    function getIntelligence(uint256 _tokenId) external view returns (string memory);
    function getStrength(uint256 _tokenId) external view returns (string memory);
    function getWisdom(uint256 _tokenId) external view returns (string memory);
}

File 8 of 21 : ILuchadores.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.8.0;

import "@openzeppelin/contracts/token/ERC721/IERC721.sol";

interface ILuchadores is IERC721 {
    function imageData(uint256 _tokenId) external view returns (string memory);
}

File 9 of 21 : ILuchaNames.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.8.0;

interface ILuchaNames {
    function getName(address luchaAddress, uint256 _tokenId) external view returns (string memory);
}

File 10 of 21 : Base64.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.8.0;

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

    /// @notice Encodes some bytes to the base64 representation
    function encode(bytes memory data) internal pure returns (string memory) {
        uint256 len = data.length;
        if (len == 0) return "";

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

        // Add some extra buffer at the end
        bytes memory result = new bytes(encodedLen + 32);

        bytes memory table = TABLE;

        assembly {
            let tablePtr := add(table, 1)
            let resultPtr := add(result, 32)

            for {
                let i := 0
            } lt(i, len) {

            } {
                i := add(i, 3)
                let input := and(mload(add(data, i)), 0xffffff)

                let out := mload(add(tablePtr, and(shr(18, input), 0x3F)))
                out := shl(8, out)
                out := add(out, and(mload(add(tablePtr, and(shr(12, input), 0x3F))), 0xFF))
                out := shl(8, out)
                out := add(out, and(mload(add(tablePtr, and(shr(6, input), 0x3F))), 0xFF))
                out := shl(8, out)
                out := add(out, and(mload(add(tablePtr, and(input, 0x3F))), 0xFF))
                out := shl(224, out)

                mstore(resultPtr, out)

                resultPtr := add(resultPtr, 4)
            }

            switch mod(len, 3)
            case 1 {
                mstore(sub(resultPtr, 2), shl(240, 0x3d3d))
            }
            case 2 {
                mstore(sub(resultPtr, 1), shl(248, 0x3d))
            }

            mstore(result, encodedLen)
        }

        return string(result);
    }
}

File 11 of 21 : StringUtils.sol
/*
 * @title String & slice utility library for Solidity contracts.
 * @author Nick Johnson <[email protected]>
 *
 * @dev Functionality in this library is largely implemented using an
 *      abstraction called a 'slice'. A slice represents a part of a string -
 *      anything from the entire string to a single character, or even no
 *      characters at all (a 0-length slice). Since a slice only has to specify
 *      an offset and a length, copying and manipulating slices is a lot less
 *      expensive than copying and manipulating the strings they reference.
 *
 *      To further reduce gas costs, most functions on slice that need to return
 *      a slice modify the original one instead of allocating a new one; for
 *      instance, `s.split(".")` will return the text up to the first '.',
 *      modifying s to only contain the remainder of the string after the '.'.
 *      In situations where you do not want to modify the original slice, you
 *      can make a copy first with `.copy()`, for example:
 *      `s.copy().split(".")`. Try and avoid using this idiom in loops; since
 *      Solidity has no memory management, it will result in allocating many
 *      short-lived slices that are later discarded.
 *
 *      Functions that return two slices come in two versions: a non-allocating
 *      version that takes the second slice as an argument, modifying it in
 *      place, and an allocating version that allocates and returns the second
 *      slice; see `nextRune` for example.
 *
 *      Functions that have to copy string data will return strings rather than
 *      slices; these can be cast back to slices for further processing if
 *      required.
 *
 *      For convenience, some functions are provided with non-modifying
 *      variants that create a new slice and return both; for instance,
 *      `s.splitNew('.')` leaves s unmodified, and returns two values
 *      corresponding to the left and right parts of the string.
 */

pragma solidity >=0.8.0;

library strings {
    struct slice {
        uint _len;
        uint _ptr;
    }

    function memcpy(uint dest, uint src, uint len) private pure {
        // Copy word-length chunks while possible
        for(; len >= 32; len -= 32) {
            assembly {
                mstore(dest, mload(src))
            }
            dest += 32;
            src += 32;
        }

        // Copy remaining bytes
        uint mask = 256 ** (32 - len) - 1;
        assembly {
            let srcpart := and(mload(src), not(mask))
            let destpart := and(mload(dest), mask)
            mstore(dest, or(destpart, srcpart))
        }
    }

    /*
     * @dev Returns a slice containing the entire string.
     * @param self The string to make a slice from.
     * @return A newly allocated slice containing the entire string.
     */
    function toSlice(string memory self) internal pure returns (slice memory) {
        uint ptr;
        assembly {
            ptr := add(self, 0x20)
        }
        return slice(bytes(self).length, ptr);
    }

    /*
     * @dev Returns the length of a null-terminated bytes32 string.
     * @param self The value to find the length of.
     * @return The length of the string, from 0 to 32.
     */
    function len(bytes32 self) internal pure returns (uint) {
        uint ret;
        if (self == 0)
            return 0;
        if (uint(self) & 0xffffffffffffffffffffffffffffffff == 0) {
            ret += 16;
            self = bytes32(uint(self) / 0x100000000000000000000000000000000);
        }
        if (uint(self) & 0xffffffffffffffff == 0) {
            ret += 8;
            self = bytes32(uint(self) / 0x10000000000000000);
        }
        if (uint(self) & 0xffffffff == 0) {
            ret += 4;
            self = bytes32(uint(self) / 0x100000000);
        }
        if (uint(self) & 0xffff == 0) {
            ret += 2;
            self = bytes32(uint(self) / 0x10000);
        }
        if (uint(self) & 0xff == 0) {
            ret += 1;
        }
        return 32 - ret;
    }

    /*
     * @dev Returns a slice containing the entire bytes32, interpreted as a
     *      null-terminated utf-8 string.
     * @param self The bytes32 value to convert to a slice.
     * @return A new slice containing the value of the input argument up to the
     *         first null.
     */
    function toSliceB32(bytes32 self) internal pure returns (slice memory ret) {
        // Allocate space for `self` in memory, copy it there, and point ret at it
        assembly {
            let ptr := mload(0x40)
            mstore(0x40, add(ptr, 0x20))
            mstore(ptr, self)
            mstore(add(ret, 0x20), ptr)
        }
        ret._len = len(self);
    }

    /*
     * @dev Returns a new slice containing the same data as the current slice.
     * @param self The slice to copy.
     * @return A new slice containing the same data as `self`.
     */
    function copy(slice memory self) internal pure returns (slice memory) {
        return slice(self._len, self._ptr);
    }

    /*
     * @dev Copies a slice to a new string.
     * @param self The slice to copy.
     * @return A newly allocated string containing the slice's text.
     */
    function toString(slice memory self) internal pure returns (string memory) {
        string memory ret = new string(self._len);
        uint retptr;
        assembly { retptr := add(ret, 32) }

        memcpy(retptr, self._ptr, self._len);
        return ret;
    }

    /*
     * @dev Returns the length in runes of the slice. Note that this operation
     *      takes time proportional to the length of the slice; avoid using it
     *      in loops, and call `slice.empty()` if you only need to know whether
     *      the slice is empty or not.
     * @param self The slice to operate on.
     * @return The length of the slice in runes.
     */
    function len(slice memory self) internal pure returns (uint l) {
        // Starting at ptr-31 means the LSB will be the byte we care about
        uint ptr = self._ptr - 31;
        uint end = ptr + self._len;
        for (l = 0; ptr < end; l++) {
            uint8 b;
            assembly { b := and(mload(ptr), 0xFF) }
            if (b < 0x80) {
                ptr += 1;
            } else if(b < 0xE0) {
                ptr += 2;
            } else if(b < 0xF0) {
                ptr += 3;
            } else if(b < 0xF8) {
                ptr += 4;
            } else if(b < 0xFC) {
                ptr += 5;
            } else {
                ptr += 6;
            }
        }
    }

    /*
     * @dev Returns true if the slice is empty (has a length of 0).
     * @param self The slice to operate on.
     * @return True if the slice is empty, False otherwise.
     */
    function empty(slice memory self) internal pure returns (bool) {
        return self._len == 0;
    }

    /*
     * @dev Returns a positive number if `other` comes lexicographically after
     *      `self`, a negative number if it comes before, or zero if the
     *      contents of the two slices are equal. Comparison is done per-rune,
     *      on unicode codepoints.
     * @param self The first slice to compare.
     * @param other The second slice to compare.
     * @return The result of the comparison.
     */
    function compare(slice memory self, slice memory other) internal pure returns (int) {
        uint shortest = self._len;
        if (other._len < self._len)
            shortest = other._len;

        uint selfptr = self._ptr;
        uint otherptr = other._ptr;
        for (uint idx = 0; idx < shortest; idx += 32) {
            int a;
            int b;
            assembly {
                a := mload(selfptr)
                b := mload(otherptr)
            }
            if (a != b) {
                // Mask out irrelevant bytes and check again
                int256 mask = int256(-1); // 0xffff...
                if(shortest < 32) {
                  mask = int256(~(2 ** (8 * (32 - shortest + idx)) - 1));
                }
                int256 diff = (a & mask) - (b & mask);
                if (diff != 0)
                    return int(diff);
            }
            selfptr += 32;
            otherptr += 32;
        }
        return int(self._len) - int(other._len);
    }

    /*
     * @dev Returns true if the two slices contain the same text.
     * @param self The first slice to compare.
     * @param self The second slice to compare.
     * @return True if the slices are equal, false otherwise.
     */
    function equals(slice memory self, slice memory other) internal pure returns (bool) {
        return compare(self, other) == 0;
    }

    /*
     * @dev Extracts the first rune in the slice into `rune`, advancing the
     *      slice to point to the next rune and returning `self`.
     * @param self The slice to operate on.
     * @param rune The slice that will contain the first rune.
     * @return `rune`.
     */
    function nextRune(slice memory self, slice memory rune) internal pure returns (slice memory) {
        rune._ptr = self._ptr;

        if (self._len == 0) {
            rune._len = 0;
            return rune;
        }

        uint l;
        uint b;
        // Load the first byte of the rune into the LSBs of b
        assembly { b := and(mload(sub(mload(add(self, 32)), 31)), 0xFF) }
        if (b < 0x80) {
            l = 1;
        } else if(b < 0xE0) {
            l = 2;
        } else if(b < 0xF0) {
            l = 3;
        } else {
            l = 4;
        }

        // Check for truncated codepoints
        if (l > self._len) {
            rune._len = self._len;
            self._ptr += self._len;
            self._len = 0;
            return rune;
        }

        self._ptr += l;
        self._len -= l;
        rune._len = l;
        return rune;
    }

    /*
     * @dev Returns the first rune in the slice, advancing the slice to point
     *      to the next rune.
     * @param self The slice to operate on.
     * @return A slice containing only the first rune from `self`.
     */
    function nextRune(slice memory self) internal pure returns (slice memory ret) {
        nextRune(self, ret);
    }

    /*
     * @dev Returns the number of the first codepoint in the slice.
     * @param self The slice to operate on.
     * @return The number of the first codepoint in the slice.
     */
    function ord(slice memory self) internal pure returns (uint ret) {
        if (self._len == 0) {
            return 0;
        }

        uint word;
        uint length;
        uint divisor = 2 ** 248;

        // Load the rune into the MSBs of b
        assembly { word:= mload(mload(add(self, 32))) }
        uint b = word / divisor;
        if (b < 0x80) {
            ret = b;
            length = 1;
        } else if(b < 0xE0) {
            ret = b & 0x1F;
            length = 2;
        } else if(b < 0xF0) {
            ret = b & 0x0F;
            length = 3;
        } else {
            ret = b & 0x07;
            length = 4;
        }

        // Check for truncated codepoints
        if (length > self._len) {
            return 0;
        }

        for (uint i = 1; i < length; i++) {
            divisor = divisor / 256;
            b = (word / divisor) & 0xFF;
            if (b & 0xC0 != 0x80) {
                // Invalid UTF-8 sequence
                return 0;
            }
            ret = (ret * 64) | (b & 0x3F);
        }

        return ret;
    }

    /*
     * @dev Returns the keccak-256 hash of the slice.
     * @param self The slice to hash.
     * @return The hash of the slice.
     */
    function keccak(slice memory self) internal pure returns (bytes32 ret) {
        assembly {
            ret := keccak256(mload(add(self, 32)), mload(self))
        }
    }

    /*
     * @dev Returns true if `self` starts with `needle`.
     * @param self The slice to operate on.
     * @param needle The slice to search for.
     * @return True if the slice starts with the provided text, false otherwise.
     */
    function startsWith(slice memory self, slice memory needle) internal pure returns (bool) {
        if (self._len < needle._len) {
            return false;
        }

        if (self._ptr == needle._ptr) {
            return true;
        }

        bool equal;
        assembly {
            let length := mload(needle)
            let selfptr := mload(add(self, 0x20))
            let needleptr := mload(add(needle, 0x20))
            equal := eq(keccak256(selfptr, length), keccak256(needleptr, length))
        }
        return equal;
    }

    /*
     * @dev If `self` starts with `needle`, `needle` is removed from the
     *      beginning of `self`. Otherwise, `self` is unmodified.
     * @param self The slice to operate on.
     * @param needle The slice to search for.
     * @return `self`
     */
    function beyond(slice memory self, slice memory needle) internal pure returns (slice memory) {
        if (self._len < needle._len) {
            return self;
        }

        bool equal = true;
        if (self._ptr != needle._ptr) {
            assembly {
                let length := mload(needle)
                let selfptr := mload(add(self, 0x20))
                let needleptr := mload(add(needle, 0x20))
                equal := eq(keccak256(selfptr, length), keccak256(needleptr, length))
            }
        }

        if (equal) {
            self._len -= needle._len;
            self._ptr += needle._len;
        }

        return self;
    }

    /*
     * @dev Returns true if the slice ends with `needle`.
     * @param self The slice to operate on.
     * @param needle The slice to search for.
     * @return True if the slice starts with the provided text, false otherwise.
     */
    function endsWith(slice memory self, slice memory needle) internal pure returns (bool) {
        if (self._len < needle._len) {
            return false;
        }

        uint selfptr = self._ptr + self._len - needle._len;

        if (selfptr == needle._ptr) {
            return true;
        }

        bool equal;
        assembly {
            let length := mload(needle)
            let needleptr := mload(add(needle, 0x20))
            equal := eq(keccak256(selfptr, length), keccak256(needleptr, length))
        }

        return equal;
    }

    /*
     * @dev If `self` ends with `needle`, `needle` is removed from the
     *      end of `self`. Otherwise, `self` is unmodified.
     * @param self The slice to operate on.
     * @param needle The slice to search for.
     * @return `self`
     */
    function until(slice memory self, slice memory needle) internal pure returns (slice memory) {
        if (self._len < needle._len) {
            return self;
        }

        uint selfptr = self._ptr + self._len - needle._len;
        bool equal = true;
        if (selfptr != needle._ptr) {
            assembly {
                let length := mload(needle)
                let needleptr := mload(add(needle, 0x20))
                equal := eq(keccak256(selfptr, length), keccak256(needleptr, length))
            }
        }

        if (equal) {
            self._len -= needle._len;
        }

        return self;
    }

    // Returns the memory address of the first byte of the first occurrence of
    // `needle` in `self`, or the first byte after `self` if not found.
    function findPtr(uint selflen, uint selfptr, uint needlelen, uint needleptr) private pure returns (uint) {
        uint ptr = selfptr;
        uint idx;

        if (needlelen <= selflen) {
            if (needlelen <= 32) {
                bytes32 mask = bytes32(~(2 ** (8 * (32 - needlelen)) - 1));

                bytes32 needledata;
                assembly { needledata := and(mload(needleptr), mask) }

                uint end = selfptr + selflen - needlelen;
                bytes32 ptrdata;
                assembly { ptrdata := and(mload(ptr), mask) }

                while (ptrdata != needledata) {
                    if (ptr >= end)
                        return selfptr + selflen;
                    ptr++;
                    assembly { ptrdata := and(mload(ptr), mask) }
                }
                return ptr;
            } else {
                // For long needles, use hashing
                bytes32 hash;
                assembly { hash := keccak256(needleptr, needlelen) }

                for (idx = 0; idx <= selflen - needlelen; idx++) {
                    bytes32 testHash;
                    assembly { testHash := keccak256(ptr, needlelen) }
                    if (hash == testHash)
                        return ptr;
                    ptr += 1;
                }
            }
        }
        return selfptr + selflen;
    }

    // Returns the memory address of the first byte after the last occurrence of
    // `needle` in `self`, or the address of `self` if not found.
    function rfindPtr(uint selflen, uint selfptr, uint needlelen, uint needleptr) private pure returns (uint) {
        uint ptr;

        if (needlelen <= selflen) {
            if (needlelen <= 32) {
                bytes32 mask = bytes32(~(2 ** (8 * (32 - needlelen)) - 1));

                bytes32 needledata;
                assembly { needledata := and(mload(needleptr), mask) }

                ptr = selfptr + selflen - needlelen;
                bytes32 ptrdata;
                assembly { ptrdata := and(mload(ptr), mask) }

                while (ptrdata != needledata) {
                    if (ptr <= selfptr)
                        return selfptr;
                    ptr--;
                    assembly { ptrdata := and(mload(ptr), mask) }
                }
                return ptr + needlelen;
            } else {
                // For long needles, use hashing
                bytes32 hash;
                assembly { hash := keccak256(needleptr, needlelen) }
                ptr = selfptr + (selflen - needlelen);
                while (ptr >= selfptr) {
                    bytes32 testHash;
                    assembly { testHash := keccak256(ptr, needlelen) }
                    if (hash == testHash)
                        return ptr + needlelen;
                    ptr -= 1;
                }
            }
        }
        return selfptr;
    }

    /*
     * @dev Modifies `self` to contain everything from the first occurrence of
     *      `needle` to the end of the slice. `self` is set to the empty slice
     *      if `needle` is not found.
     * @param self The slice to search and modify.
     * @param needle The text to search for.
     * @return `self`.
     */
    function find(slice memory self, slice memory needle) internal pure returns (slice memory) {
        uint ptr = findPtr(self._len, self._ptr, needle._len, needle._ptr);
        self._len -= ptr - self._ptr;
        self._ptr = ptr;
        return self;
    }

    /*
     * @dev Modifies `self` to contain the part of the string from the start of
     *      `self` to the end of the first occurrence of `needle`. If `needle`
     *      is not found, `self` is set to the empty slice.
     * @param self The slice to search and modify.
     * @param needle The text to search for.
     * @return `self`.
     */
    function rfind(slice memory self, slice memory needle) internal pure returns (slice memory) {
        uint ptr = rfindPtr(self._len, self._ptr, needle._len, needle._ptr);
        self._len = ptr - self._ptr;
        return self;
    }

    /*
     * @dev Splits the slice, setting `self` to everything after the first
     *      occurrence of `needle`, and `token` to everything before it. If
     *      `needle` does not occur in `self`, `self` is set to the empty slice,
     *      and `token` is set to the entirety of `self`.
     * @param self The slice to split.
     * @param needle The text to search for in `self`.
     * @param token An output parameter to which the first token is written.
     * @return `token`.
     */
    function split(slice memory self, slice memory needle, slice memory token) internal pure returns (slice memory) {
        uint ptr = findPtr(self._len, self._ptr, needle._len, needle._ptr);
        token._ptr = self._ptr;
        token._len = ptr - self._ptr;
        if (ptr == self._ptr + self._len) {
            // Not found
            self._len = 0;
        } else {
            self._len -= token._len + needle._len;
            self._ptr = ptr + needle._len;
        }
        return token;
    }

    /*
     * @dev Splits the slice, setting `self` to everything after the first
     *      occurrence of `needle`, and returning everything before it. If
     *      `needle` does not occur in `self`, `self` is set to the empty slice,
     *      and the entirety of `self` is returned.
     * @param self The slice to split.
     * @param needle The text to search for in `self`.
     * @return The part of `self` up to the first occurrence of `delim`.
     */
    function split(slice memory self, slice memory needle) internal pure returns (slice memory token) {
        split(self, needle, token);
    }

    /*
     * @dev Splits the slice, setting `self` to everything before the last
     *      occurrence of `needle`, and `token` to everything after it. If
     *      `needle` does not occur in `self`, `self` is set to the empty slice,
     *      and `token` is set to the entirety of `self`.
     * @param self The slice to split.
     * @param needle The text to search for in `self`.
     * @param token An output parameter to which the first token is written.
     * @return `token`.
     */
    function rsplit(slice memory self, slice memory needle, slice memory token) internal pure returns (slice memory) {
        uint ptr = rfindPtr(self._len, self._ptr, needle._len, needle._ptr);
        token._ptr = ptr;
        token._len = self._len - (ptr - self._ptr);
        if (ptr == self._ptr) {
            // Not found
            self._len = 0;
        } else {
            self._len -= token._len + needle._len;
        }
        return token;
    }

    /*
     * @dev Splits the slice, setting `self` to everything before the last
     *      occurrence of `needle`, and returning everything after it. If
     *      `needle` does not occur in `self`, `self` is set to the empty slice,
     *      and the entirety of `self` is returned.
     * @param self The slice to split.
     * @param needle The text to search for in `self`.
     * @return The part of `self` after the last occurrence of `delim`.
     */
    function rsplit(slice memory self, slice memory needle) internal pure returns (slice memory token) {
        rsplit(self, needle, token);
    }

    /*
     * @dev Counts the number of nonoverlapping occurrences of `needle` in `self`.
     * @param self The slice to search.
     * @param needle The text to search for in `self`.
     * @return The number of occurrences of `needle` found in `self`.
     */
    function count(slice memory self, slice memory needle) internal pure returns (uint cnt) {
        uint ptr = findPtr(self._len, self._ptr, needle._len, needle._ptr) + needle._len;
        while (ptr <= self._ptr + self._len) {
            cnt++;
            ptr = findPtr(self._len - (ptr - self._ptr), ptr, needle._len, needle._ptr) + needle._len;
        }
    }

    /*
     * @dev Returns True if `self` contains `needle`.
     * @param self The slice to search.
     * @param needle The text to search for in `self`.
     * @return True if `needle` is found in `self`, false otherwise.
     */
    function contains(slice memory self, slice memory needle) internal pure returns (bool) {
        return rfindPtr(self._len, self._ptr, needle._len, needle._ptr) != self._ptr;
    }

    /*
     * @dev Returns a newly allocated string containing the concatenation of
     *      `self` and `other`.
     * @param self The first slice to concatenate.
     * @param other The second slice to concatenate.
     * @return The concatenation of the two strings.
     */
    function concat(slice memory self, slice memory other) internal pure returns (string memory) {
        string memory ret = new string(self._len + other._len);
        uint retptr;
        assembly { retptr := add(ret, 32) }
        memcpy(retptr, self._ptr, self._len);
        memcpy(retptr + self._len, other._ptr, other._len);
        return ret;
    }

    /*
     * @dev Joins an array of slices, using `self` as a delimiter, returning a
     *      newly allocated string.
     * @param self The delimiter to use.
     * @param parts A list of slices to join.
     * @return A newly allocated string containing all the slices in `parts`,
     *         joined with `self`.
     */
    function join(slice memory self, slice[] memory parts) internal pure returns (string memory) {
        if (parts.length == 0)
            return "";

        uint length = self._len * (parts.length - 1);
        for(uint i = 0; i < parts.length; i++)
            length += parts[i]._len;

        string memory ret = new string(length);
        uint retptr;
        assembly { retptr := add(ret, 32) }

        for(uint i = 0; i < parts.length; i++) {
            memcpy(retptr, parts[i]._ptr, parts[i]._len);
            retptr += parts[i]._len;
            if (i < parts.length - 1) {
                memcpy(retptr, self._ptr, self._len);
                retptr += self._len;
            }
        }

        return ret;
    }
}

File 12 of 21 : Context.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

File 14 of 21 : SafeMath.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

// CAUTION
// This version of SafeMath should only be used with Solidity 0.8 or later,
// because it relies on the compiler's built in overflow checks.

/**
 * @dev Wrappers over Solidity's arithmetic operations.
 *
 * NOTE: `SafeMath` is no longer needed starting with Solidity 0.8. The compiler
 * now has built in overflow checking.
 */
library SafeMath {
    /**
     * @dev Returns the addition of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            uint256 c = a + b;
            if (c < a) return (false, 0);
            return (true, c);
        }
    }

    /**
     * @dev Returns the substraction of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b > a) return (false, 0);
            return (true, a - b);
        }
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            // Gas optimization: this is cheaper than requiring 'a' not being zero, but the
            // benefit is lost if 'b' is also tested.
            // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
            if (a == 0) return (true, 0);
            uint256 c = a * b;
            if (c / a != b) return (false, 0);
            return (true, c);
        }
    }

    /**
     * @dev Returns the division of two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a / b);
        }
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a % b);
        }
    }

    /**
     * @dev Returns the addition of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `+` operator.
     *
     * Requirements:
     *
     * - Addition cannot overflow.
     */
    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        return a + b;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b) internal pure returns (uint256) {
        return a - b;
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `*` operator.
     *
     * Requirements:
     *
     * - Multiplication cannot overflow.
     */
    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        return a * b;
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator.
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        return a / b;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting when dividing by zero.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b) internal pure returns (uint256) {
        return a % b;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {trySub}.
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b <= a, errorMessage);
            return a - b;
        }
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting with custom message on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b > 0, errorMessage);
            return a / b;
        }
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting with custom message when dividing by zero.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {tryMod}.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b > 0, errorMessage);
            return a % b;
        }
    }
}

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

pragma solidity ^0.8.0;

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

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

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        _approve(to, tokenId);
    }

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

        return _tokenApprovals[tokenId];
    }

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

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

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

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

        _transfer(from, to, tokenId);
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        _beforeTokenTransfer(from, to, tokenId);

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

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

        emit Transfer(from, to, tokenId);
    }

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

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

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

File 16 of 21 : IERC721Enumerable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../IERC721.sol";

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

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

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

File 17 of 21 : IERC721.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

File 18 of 21 : IERC721Receiver.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

pragma solidity ^0.8.0;

import "../IERC721.sol";

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

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

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

File 20 of 21 : ERC165.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "./IERC165.sol";

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

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

pragma solidity ^0.8.0;

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

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"luchaAddress","type":"address"},{"internalType":"address","name":"luchaNamesAddress","type":"address"},{"internalType":"address","name":"abilityAddress","type":"address"},{"internalType":"address[]","name":"_payees","type":"address[]"},{"internalType":"uint256[]","name":"_shares","type":"uint256[]"}],"stateMutability":"payable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"uint256","name":"shares","type":"uint256"}],"name":"PayeeAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"from","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"PaymentReceived","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"PaymentReleased","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":"ABILITY_SCORES_ADDRESS","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"LUCHADORES_ADDRESS","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"LUCHADORES_NAME_ADDRESS","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MINT_PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ROYALTY_AMOUNT","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":[{"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":[{"internalType":"uint256","name":"luchadoreId","type":"uint256"},{"internalType":"uint256","name":"abilityScoreId","type":"uint256"}],"name":"mintWithLucha","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"payee","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address payable","name":"account","type":"address"}],"name":"release","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"released","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"_receiver","type":"address"},{"internalType":"uint256","name":"royaltyAmount","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":"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":"address","name":"account","type":"address"}],"name":"shares","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"svgBase64Data","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"svgRaw","outputs":[{"internalType":"bytes","name":"","type":"bytes"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalReleased","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalShares","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"},{"stateMutability":"payable","type":"receive"}]

6080604052604051620049e4380380620049e48339810160408190526200002691620004f2565b604080518082018252600c81526b4c6f6f74636861646f72657360a01b6020808301918252835180850190945260078452664c4f4f5443484160c81b908401528151859385939290916200007d91600091620003bb565b50805162000093906001906020840190620003bb565b505050620000b0620000aa620001e160201b60201c565b620001e5565b8051825114620000dd5760405162461bcd60e51b8152600401620000d49062000695565b60405180910390fd5b6000825111620001015760405162461bcd60e51b8152600401620000d49062000732565b60005b82518110156200018557620001708382815181106200013357634e487b7160e01b600052603260045260246000fd5b60200260200101518383815181106200015c57634e487b7160e01b600052603260045260246000fd5b60200260200101516200023760201b60201c565b806200017c816200084a565b91505062000104565b506200019c915063c155531d60e01b905062000369565b5050601280546001600160a01b039485166001600160a01b03199182161790915560138054938516938216939093179092556014805491909316911617905562000894565b3390565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b038216620002605760405162461bcd60e51b8152600401620000d49062000612565b60008111620002835760405162461bcd60e51b8152600401620000d49062000769565b6001600160a01b0382166000908152600e602052604090205415620002bc5760405162461bcd60e51b8152600401620000d490620006e7565b60108054600181019091557f1b6847dc741a1b0cd08d278845f9d819d87b734759afb55fe2de5cb82a9ae6720180546001600160a01b0319166001600160a01b0384169081179091556000908152600e60205260409020819055600c5462000326908290620007f2565b600c556040517f40c340f65e17194d14ddddb073d3c9f888e3cb52b5aae0c6c7706b4fbc905fac906200035d9084908490620005f9565b60405180910390a15050565b6001600160e01b03198082161415620003965760405162461bcd60e51b8152600401620000d4906200065e565b6001600160e01b0319166000908152600b60205260409020805460ff19166001179055565b828054620003c9906200080d565b90600052602060002090601f016020900481019282620003ed576000855562000438565b82601f106200040857805160ff191683800117855562000438565b8280016001018555821562000438579182015b82811115620004385782518255916020019190600101906200041b565b50620004469291506200044a565b5090565b5b808211156200044657600081556001016200044b565b80516001600160a01b03811681146200047957600080fd5b919050565b600082601f8301126200048f578081fd5b81516020620004a8620004a283620007cc565b620007a0565b8281528181019085830183850287018401881015620004c5578586fd5b855b85811015620004e557815184529284019290840190600101620004c7565b5090979650505050505050565b600080600080600060a086880312156200050a578081fd5b620005158662000461565b945060206200052681880162000461565b9450620005366040880162000461565b60608801519094506001600160401b038082111562000553578384fd5b818901915089601f83011262000567578384fd5b815162000578620004a282620007cc565b81815284810190848601868402860187018e101562000595578788fd5b8795505b83861015620005c257620005ad8162000461565b83526001959095019491860191860162000599565b5060808c01519097509450505080831115620005dc578384fd5b5050620005ec888289016200047e565b9150509295509295909350565b6001600160a01b03929092168252602082015260400190565b6020808252602c908201527f5061796d656e7453706c69747465723a206163636f756e74206973207468652060408201526b7a65726f206164647265737360a01b606082015260800190565b6020808252601c908201527f4552433136353a20696e76616c696420696e7465726661636520696400000000604082015260600190565b60208082526032908201527f5061796d656e7453706c69747465723a2070617965657320616e6420736861726040820152710cae640d8cadccee8d040dad2e6dac2e8c6d60731b606082015260800190565b6020808252602b908201527f5061796d656e7453706c69747465723a206163636f756e7420616c726561647960408201526a206861732073686172657360a81b606082015260800190565b6020808252601a908201527f5061796d656e7453706c69747465723a206e6f20706179656573000000000000604082015260600190565b6020808252601d908201527f5061796d656e7453706c69747465723a20736861726573206172652030000000604082015260600190565b6040518181016001600160401b0381118282101715620007c457620007c46200087e565b604052919050565b60006001600160401b03821115620007e857620007e86200087e565b5060209081020190565b6000821982111562000808576200080862000868565b500190565b6002810460018216806200082257607f821691505b602082108114156200084457634e487b7160e01b600052602260045260246000fd5b50919050565b600060001982141562000861576200086162000868565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fd5b61414080620008a46000396000f3fe6080604052600436106101fd5760003560e01c8063715018a61161010d578063b88d4fde116100a0578063c87b56dd1161006f578063c87b56dd146105b0578063ce7c2ac2146105d0578063e33b7de3146105f0578063e985e9c514610605578063f2fde38b1461062557610244565b8063b88d4fde14610538578063ba2be3d514610558578063c002d23d1461056d578063c155531d1461058257610244565b806395d89b41116100dc57806395d89b41146104ce5780639852595c146104e3578063a22cb46514610503578063b2c751721461052357610244565b8063715018a61461046f5780638b83209b146104845780638da5cb5b146104a457806392d40871146104b957610244565b80633a98ef39116101905780635dacc7bc1161015f5780635dacc7bc146103dc5780636352211e146103fc578063666ae02c1461041c57806367ae5d981461042f57806370a082311461044f57610244565b80633a98ef391461037257806342842e0e14610387578063439d0066146103a75780634f6ccce7146103bc57610244565b806318160ddd116101cc57806318160ddd146102f0578063191655871461031257806323b872dd146103325780632f745c591461035257610244565b806301ffc9a71461024957806306fdde031461027f578063081812fc146102a1578063095ea7b3146102ce57610244565b36610244577f6ef95f06320e7a25a04a175ca677b7052bdd97131872c2192525a629f51be77061022b610645565b3460405161023a92919061361d565b60405180910390a1005b600080fd5b34801561025557600080fd5b50610269610264366004612b22565b610649565b6040516102769190613669565b60405180910390f35b34801561028b57600080fd5b5061029461066b565b6040516102769190613674565b3480156102ad57600080fd5b506102c16102bc366004612bcd565b6106fd565b6040516102769190613609565b3480156102da57600080fd5b506102ee6102e9366004612af7565b610749565b005b3480156102fc57600080fd5b506103056107e1565b6040516102769190613da1565b34801561031e57600080fd5b506102ee61032d36600461296f565b6107e7565b34801561033e57600080fd5b506102ee61034d3660046129df565b61092c565b34801561035e57600080fd5b5061030561036d366004612af7565b610964565b34801561037e57600080fd5b506103056109b6565b34801561039357600080fd5b506102ee6103a23660046129df565b6109bc565b3480156103b357600080fd5b506102c16109d7565b3480156103c857600080fd5b506103056103d7366004612bcd565b6109e6565b3480156103e857600080fd5b506102946103f7366004612bcd565b610a41565b34801561040857600080fd5b506102c1610417366004612bcd565b610a9f565b6102ee61042a366004612be5565b610ad4565b34801561043b57600080fd5b5061029461044a366004612bcd565b610c72565b34801561045b57600080fd5b5061030561046a36600461296f565b610d53565b34801561047b57600080fd5b506102ee610d97565b34801561049057600080fd5b506102c161049f366004612bcd565b610de2565b3480156104b057600080fd5b506102c1610e20565b3480156104c557600080fd5b506102c1610e2f565b3480156104da57600080fd5b50610294610e3e565b3480156104ef57600080fd5b506103056104fe36600461296f565b610e4d565b34801561050f57600080fd5b506102ee61051e366004612ac6565b610e68565b34801561052f57600080fd5b50610305610f36565b34801561054457600080fd5b506102ee610553366004612a1f565b610f3b565b34801561056457600080fd5b506102c1610f7a565b34801561057957600080fd5b50610305610f89565b34801561058e57600080fd5b506105a261059d366004612c06565b610f94565b60405161027692919061361d565b3480156105bc57600080fd5b506102946105cb366004612bcd565b610fc4565b3480156105dc57600080fd5b506103056105eb36600461296f565b61103f565b3480156105fc57600080fd5b5061030561105a565b34801561061157600080fd5b506102696106203660046129a7565b611060565b34801561063157600080fd5b506102ee61064036600461296f565b61108e565b3390565b6000610654826110ff565b80610663575061066382611124565b90505b919050565b60606000805461067a90613ff3565b80601f01602080910402602001604051908101604052809291908181526020018280546106a690613ff3565b80156106f35780601f106106c8576101008083540402835291602001916106f3565b820191906000526020600020905b8154815290600101906020018083116106d657829003601f168201915b5050505050905090565b600061070882611155565b61072d5760405162461bcd60e51b815260040161072490613b8a565b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b600061075482610a9f565b9050806001600160a01b0316836001600160a01b031614156107885760405162461bcd60e51b815260040161072490613c77565b806001600160a01b031661079a610645565b6001600160a01b031614806107b657506107b681610620610645565b6107d25760405162461bcd60e51b815260040161072490613a65565b6107dc8383611172565b505050565b60085490565b6001600160a01b0381166000908152600e602052604090205461081c5760405162461bcd60e51b8152600401610724906137e5565b6000600d544761082c9190613dfc565b6001600160a01b0383166000908152600f6020908152604080832054600c54600e9093529083205493945091926108639085613f7a565b61086d9190613e39565b6108779190613f99565b9050806108965760405162461bcd60e51b8152600401610724906139f5565b6001600160a01b0383166000908152600f60205260409020546108ba908290613dfc565b6001600160a01b0384166000908152600f6020526040902055600d546108e1908290613dfc565b600d556108ee83826111e0565b7fdf20fd1e76bc69d672e4814fafb2c449bba3a5369d8359adf9e05e6fde87b056838260405161091f92919061361d565b60405180910390a1505050565b61093d610937610645565b8261127c565b6109595760405162461bcd60e51b815260040161072490613cb8565b6107dc838383611301565b600061096f83610d53565b821061098d5760405162461bcd60e51b8152600401610724906136a9565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b600c5490565b6107dc83838360405180602001604052806000815250610f3b565b6012546001600160a01b031681565b60006109f06107e1565b8210610a0e5760405162461bcd60e51b815260040161072490613d09565b60088281548110610a2f57634e487b7160e01b600052603260045260246000fd5b90600052602060002001549050919050565b6060610a4c82611155565b610a685760405162461bcd60e51b815260040161072490613a40565b610a79610a7483610c72565b61142e565b604051602001610a8991906135c4565b6040516020818303038152906040529050919050565b6000818152600260205260408120546001600160a01b0316806106635760405162461bcd60e51b815260040161072490613b0c565b666a94d74f4300003414610afa5760405162461bcd60e51b815260040161072490613c54565b6012546040516331a9108f60e11b81526001600160a01b0390911690636352211e90610b2a908590600401613da1565b60206040518083038186803b158015610b4257600080fd5b505afa158015610b56573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b7a919061298b565b6001600160a01b0316336001600160a01b031614610baa5760405162461bcd60e51b8152600401610724906138a6565b6014546040516331a9108f60e11b81526001600160a01b0390911690636352211e90610bda908490600401613da1565b60206040518083038186803b158015610bf257600080fd5b505afa158015610c06573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c2a919061298b565b6001600160a01b0316336001600160a01b031614610c5a5760405162461bcd60e51b8152600401610724906138a6565b610c6482826115a2565b610c6e338361189f565b5050565b6060610c7d82611155565b610c995760405162461bcd60e51b8152600401610724906137c3565b60125460405163061ba2f160e01b81526001600160a01b039091169063061ba2f190610cc9908590600401613da1565b60006040518083038186803b158015610ce157600080fd5b505afa158015610cf5573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610d1d9190810190612b5a565b610d268361197e565b610d37610d3285611a91565b611b61565b610d4085611b74565b604051602001610a89949392919061323d565b60006001600160a01b038216610d7b5760405162461bcd60e51b815260040161072490613ac2565b506001600160a01b031660009081526003602052604090205490565b610d9f610645565b6001600160a01b0316610db0610e20565b6001600160a01b031614610dd65760405162461bcd60e51b815260040161072490613bd6565b610de06000611d3d565b565b600060108281548110610e0557634e487b7160e01b600052603260045260246000fd5b6000918252602090912001546001600160a01b031692915050565b600a546001600160a01b031690565b6014546001600160a01b031681565b60606001805461067a90613ff3565b6001600160a01b03166000908152600f602052604090205490565b610e70610645565b6001600160a01b0316826001600160a01b03161415610ea15760405162461bcd60e51b81526004016107249061386f565b8060056000610eae610645565b6001600160a01b03908116825260208083019390935260409182016000908120918716808252919093529120805460ff191692151592909217909155610ef2610645565b6001600160a01b03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051610f2a9190613669565b60405180910390a35050565b600981565b610f4c610f46610645565b8361127c565b610f685760405162461bcd60e51b815260040161072490613cb8565b610f7484848484611d8f565b50505050565b6013546001600160a01b031681565b666a94d74f43000081565b6000806064610fa4600987613f7a565b610fae9190613e39565b9050610fb8610e20565b91505b94509492505050565b6060610fcf82611155565b610feb5760405162461bcd60e51b815260040161072490613687565b61102f610ff783611a91565b61100084610a41565b61100985611dc2565b60405160200161101b93929190612ec2565b60405160208183030381529060405261142e565b604051602001610a89919061341e565b6001600160a01b03166000908152600e602052604090205490565b600d5490565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b611096610645565b6001600160a01b03166110a7610e20565b6001600160a01b0316146110cd5760405162461bcd60e51b815260040161072490613bd6565b6001600160a01b0381166110f35760405162461bcd60e51b815260040161072490613746565b6110fc81611d3d565b50565b60006001600160e01b0319821663780e9d6360e01b1480610663575061066382611eb8565b600061112f826110ff565b806106635750506001600160e01b0319166000908152600b602052604090205460ff1690565b6000908152600260205260409020546001600160a01b0316151590565b600081815260046020526040902080546001600160a01b0319166001600160a01b03841690811790915581906111a782610a9f565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b804710156112005760405162461bcd60e51b815260040161072490613972565b6000826001600160a01b03168260405161121990613463565b60006040518083038185875af1925050503d8060008114611256576040519150601f19603f3d011682016040523d82523d6000602084013e61125b565b606091505b50509050806107dc5760405162461bcd60e51b815260040161072490613915565b600061128782611155565b6112a35760405162461bcd60e51b8152600401610724906139a9565b60006112ae83610a9f565b9050806001600160a01b0316846001600160a01b031614806112e95750836001600160a01b03166112de846106fd565b6001600160a01b0316145b806112f957506112f98185611060565b949350505050565b826001600160a01b031661131482610a9f565b6001600160a01b03161461133a5760405162461bcd60e51b815260040161072490613c0b565b6001600160a01b0382166113605760405162461bcd60e51b81526004016107249061382b565b61136b838383611ef8565b611376600082611172565b6001600160a01b038316600090815260036020526040812080546001929061139f908490613f99565b90915550506001600160a01b03821660009081526003602052604081208054600192906113cd908490613dfc565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b80516060908061144e575050604080516020810190915260008152610666565b6000600361145d836002613dfc565b6114679190613e39565b611472906004613f7a565b90506000611481826020613dfc565b67ffffffffffffffff8111156114a757634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156114d1576020820181803683370190505b50905060006040518060600160405280604081526020016140cb604091399050600181016020830160005b8681101561155d576003818a01810151603f601282901c8116860151600c83901c8216870151600684901c831688015192909316870151600891821b60ff94851601821b92841692909201901b91160160e01b8352600490920191016114fc565b506003860660018114611577576002811461158857611594565b613d3d60f01b600119830152611594565b603d60f81b6000198301525b505050918152949350505050565b601454604051632df78d3160e01b8152600091611632916001600160a01b0390911690632df78d31906115d9908690600401613da1565b60006040518083038186803b1580156115f157600080fd5b505afa158015611605573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261162d9190810190612b5a565b611f81565b60145460405163f3a4aba960e01b815291925060009161166a916001600160a01b03169063f3a4aba9906115d9908790600401613da1565b60145460405163e15f225560e01b81529192506000916116a2916001600160a01b03169063e15f2255906115d9908890600401613da1565b60145460405163baa5b27f60e01b81529192506000916116da916001600160a01b03169063baa5b27f906115d9908990600401613da1565b60145460405163729fded360e11b8152919250600091611712916001600160a01b03169063e53fbda6906115d9908a90600401613da1565b60145460405163183ccee360e11b815291925060009161174a916001600160a01b0316906330799dc6906115d9908b90600401613da1565b9050600060148284868861175e8b8d613e14565b6117689190613e14565b6117729190613e14565b61177c9190613e14565b6117869190613e14565b6117909190613e4d565b60408051610100808201835260ff93841682529983166020808301918252998416828401908152988416606083019081529784166080830190815296841660a0830190815295841660c0830190815260e083019c8d5260009d8e526011909a5291909b209a518b5491519751965195519451985160ff199092169083161761ff0019169682169098029590951762ff0000191662010000948616949094029390931763ff00000019166301000000928516929092029190911764ff000000001916640100000000918416919091021765ff00000000001916600160281b938316939093029290921766ff0000000000001916600160301b93909116929092029190911783555051600190910155565b6001600160a01b0382166118c55760405162461bcd60e51b815260040161072490613b55565b6118ce81611155565b156118eb5760405162461bcd60e51b81526004016107249061378c565b6118f760008383611ef8565b6001600160a01b0382166000908152600360205260408120805460019290611920908490613dfc565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b60008181526011602090815260409182902082516101008082018552825460ff808216808552928204811695840195909552620100008104851695830195909552630100000085048416606083810191909152640100000000860485166080840152600160281b8604851660a0840152600160301b90950490931660c082015260019182015460e08201529190611a199082101560f8611fcf565b611a2c60028360ff161015610116611fcf565b611a3f60038460ff161015610134611fcf565b611a5260048560ff161015610152611fcf565b611a6560058660ff161015610170611fcf565b604051602001611a79959493929190612dd8565b60405160208183030381529060405292505050919050565b60135460125460405163e1090cff60e01b81526060926000926001600160a01b039182169263e1090cff92611acc921690879060040161361d565b60006040518083038186803b158015611ae457600080fd5b505afa158015611af8573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052611b209190810190612b5a565b90508051600014611b315780611b5a565b611b3a8361204a565b604051602001611b4a919061358f565b6040516020818303038152906040525b9392505050565b606081604051602001610a899190613163565b60008181526011602090815260409182902082516101008082018552825460ff8082168452918104821683860181905262010000820483168488015263010000008204831660608581019190915264010000000083048416608080870191909152600160281b8404851660a0870152600160301b90930490931660c085015260019094015460e0840152855180870190965260048652632043484160e01b94860194909452939092611c2a92919061030c612165565b611c5d826040015160ff16604051806040016040528060048152602001631021a7a760e11b81525061014061030c612165565b611c90836060015160ff1660405180604001604052806004815260200163040888ab60e31b81525061020061030c612165565b611cc2846080015160ff16604051806040016040528060048152602001630812539560e21b815250608061033e612165565b611cf58560a0015160ff16604051806040016040528060048152602001631029aa2960e11b81525061014061033e612165565b611d288660c0015160ff16604051806040016040528060048152602001632057495360e01b81525061020061033e612165565b604051602001611b4a96959493929190612e43565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b611d9a848484611301565b611da6848484846121af565b610f745760405162461bcd60e51b8152600401610724906136f4565b60008181526011602090815260409182902082516101008082018552825460ff80821684529181048216948301859052620100008104821695830195909552630100000085048116606083810191909152640100000000860482166080840152600160281b8604821660a0840152600160301b9095041660c082015260019091015460e082015290611e539061204a565b611e63826040015160ff1661204a565b611e73836060015160ff1661204a565b611e83846080015160ff1661204a565b611e938560a0015160ff1661204a565b611ea38660c0015160ff1661204a565b604051602001611b4a96959493929190613466565b60006001600160e01b031982166380ac58cd60e01b1480611ee957506001600160e01b03198216635b5e139f60e01b145b806106635750610663826122c7565b611f038383836107dc565b6001600160a01b038316611f1f57611f1a816122e0565b611f42565b816001600160a01b0316836001600160a01b031614611f4257611f428382612324565b6001600160a01b038216611f5e57611f59816123c1565b6107dc565b826001600160a01b0316826001600160a01b0316146107dc576107dc828261249a565b600080611f8d836124de565b9050611fbb611fb4604051806040016040528060018152602001600160fd1b8152506124de565b8290612503565b50611b5a611fc88261251d565b6000612594565b6060611fda8261204a565b8361200157604051806040016040528060048152602001636e6f6e6560e01b815250612022565b604051806040016040528060078152602001662330303941444560c81b8152505b604051602001612033929190612f55565b604051602081830303815290604052905092915050565b60608161206f57506040805180820190915260018152600360fc1b6020820152610666565b8160005b811561209957806120838161402e565b91506120929050600a83613e39565b9150612073565b60008167ffffffffffffffff8111156120c257634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156120ec576020820181803683370190505b5090505b84156112f957612101600183613f99565b915061210e600a86614049565b612119906030613dfc565b60f81b81838151811061213c57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a90535061215e600a86613e39565b94506120f0565b60606121708361204a565b6121798361204a565b6121828761204a565b86604051602001612196949392919061304c565b6040516020818303038152906040529050949350505050565b60006121c3846001600160a01b0316612723565b156122bf57836001600160a01b031663150b7a026121df610645565b8786866040518563ffffffff1660e01b81526004016122019493929190613636565b602060405180830381600087803b15801561221b57600080fd5b505af192505050801561224b575060408051601f3d908101601f1916820190925261224891810190612b3e565b60015b6122a5573d808015612279576040519150601f19603f3d011682016040523d82523d6000602084013e61227e565b606091505b50805161229d5760405162461bcd60e51b8152600401610724906136f4565b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506112f9565b5060016112f9565b6001600160e01b031981166301ffc9a760e01b14919050565b600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b6000600161233184610d53565b61233b9190613f99565b60008381526007602052604090205490915080821461238e576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b6008546000906123d390600190613f99565b6000838152600960205260408120546008805493945090928490811061240957634e487b7160e01b600052603260045260246000fd5b90600052602060002001549050806008838154811061243857634e487b7160e01b600052603260045260246000fd5b600091825260208083209091019290925582815260099091526040808220849055858252812055600880548061247e57634e487b7160e01b600052603160045260246000fd5b6001900381819060005260206000200160009055905550505050565b60006124a583610d53565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b6124e6612955565b506040805180820190915281518152602082810190820152919050565b61250b612955565b612516838383612729565b5092915050565b60606000826000015167ffffffffffffffff81111561254c57634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015612576576020820181803683370190505b509050600060208201905061251681856020015186600001516127c9565b6000828180805b83518110156126fb5760308482815181106125c657634e487b7160e01b600052603260045260246000fd5b016020015160f81c10801590612604575060398482815181106125f957634e487b7160e01b600052603260045260246000fd5b016020015160f81c11155b156126795781156126275785612619576126fb565b8561262381613fdc565b9650505b612632600a84613f7a565b9250603084828151811061265657634e487b7160e01b600052603260045260246000fd5b0160200151612668919060f81c613f99565b6126729084613dfc565b92506126e9565b83818151811061269957634e487b7160e01b600052603260045260246000fd5b60209101015160f81c602e14156126d15781156126c85760405162461bcd60e51b815260040161072490613d55565b600191506126e9565b60405162461bcd60e51b8152600401610724906138c9565b806126f38161402e565b91505061259b565b50841561271a5761270d85600a613eac565b6127179083613f7a565b91505b50949350505050565b3b151590565b612731612955565b600061274f856000015186602001518660000151876020015161283a565b60208087018051918601919091525190915061276b9082613f99565b83528451602086015161277e9190613dfc565b81141561278e57600085526127c0565b8351835161279c9190613dfc565b855186906127ab908390613f99565b90525083516127ba9082613dfc565b60208601525b50909392505050565b6020811061280157815183526127e0602084613dfc565b92506127ed602083613dfc565b91506127fa602082613f99565b90506127c9565b60006001612810836020613f99565b61281c90610100613eac565b6128269190613f99565b925184518416931916929092179092525050565b6000838186851161294057602085116128ee576000600161285c876020613f99565b612867906008613f7a565b612872906002613eac565b61287c9190613f99565b85519019915081166000876128918b8b613dfc565b61289b9190613f99565b855190915083165b8281146128e0578186106128c8576128bb8b8b613dfc565b96505050505050506112f9565b856128d28161402e565b9650508386511690506128a3565b8596505050505050506112f9565b508383206000905b6129008689613f99565b821161293e578583208181141561291d57839450505050506112f9565b612928600185613dfc565b93505081806129369061402e565b9250506128f6565b505b61294a8787613dfc565b979650505050505050565b604051806040016040528060008152602001600081525090565b600060208284031215612980578081fd5b8135611b5a8161409f565b60006020828403121561299c578081fd5b8151611b5a8161409f565b600080604083850312156129b9578081fd5b82356129c48161409f565b915060208301356129d48161409f565b809150509250929050565b6000806000606084860312156129f3578081fd5b83356129fe8161409f565b92506020840135612a0e8161409f565b929592945050506040919091013590565b60008060008060808587031215612a34578081fd5b8435612a3f8161409f565b93506020850135612a4f8161409f565b925060408501359150606085013567ffffffffffffffff811115612a71578182fd5b8501601f81018713612a81578182fd5b8035612a94612a8f82613dd4565b613daa565b818152886020838501011115612aa8578384fd5b81602084016020830137908101602001929092525092959194509250565b60008060408385031215612ad8578182fd5b8235612ae38161409f565b9150602083013580151581146129d4578182fd5b60008060408385031215612b09578182fd5b8235612b148161409f565b946020939093013593505050565b600060208284031215612b33578081fd5b8135611b5a816140b4565b600060208284031215612b4f578081fd5b8151611b5a816140b4565b600060208284031215612b6b578081fd5b815167ffffffffffffffff811115612b81578182fd5b8201601f81018413612b91578182fd5b8051612b9f612a8f82613dd4565b818152856020838501011115612bb3578384fd5b612bc4826020830160208601613fb0565b95945050505050565b600060208284031215612bde578081fd5b5035919050565b60008060408385031215612bf7578182fd5b50508035926020909101359150565b60008060008060608587031215612c1b578182fd5b8435935060208501359250604085013567ffffffffffffffff80821115612c40578384fd5b818701915087601f830112612c53578384fd5b813581811115612c61578485fd5b886020828501011115612c72578485fd5b95989497505060200194505050565b60008151808452612c99816020860160208601613fb0565b601f01601f19169290920160200192915050565b60008151612cbf818560208601613fb0565b9290920192915050565b7f3c6c696e65207374796c653d227374726f6b652d77696474683a203270783b2081527f7374726f6b653a234644364632313b222078313d22333932222078323d2235396020820152751911103c989e911b1a9811103c991e911b1a9811179f60511b604082015260560190565b6d111610112bb4b9b237b6911d101160911b8152600e0190565b7f3c2f7376673e3c6c696e65207374796c653d227374726f6b652d77696474683a81527f203270783b207374726f6b653a234644364632313b222078313d22343822207860208201527f323d22323438222079313d22363530222079323d22363530222f3e00000000006040820152605b0190565b651e17b9bb339f60d11b815260060190565b60008651612dea818460208b01613fb0565b865190830190612dfe818360208b01613fb0565b8651910190612e11818360208a01613fb0565b8551910190612e24818360208901613fb0565b8451910190612e37818360208801613fb0565b01979650505050505050565b600087516020612e568285838d01613fb0565b885191840191612e698184848d01613fb0565b8851920191612e7b8184848c01613fb0565b8751920191612e8d8184848b01613fb0565b8651920191612e9f8184848a01613fb0565b8551920191612eb18184848901613fb0565b919091019998505050505050505050565b683d913730b6b2911d1160b91b81528351600090612ee7816009850160208901613fb0565b6c1116101134b6b0b3b2911d101160991b6009918401918201528451612f14816016840160208901613fb0565b6201116160ed1b601692909101918201528351612f38816019840160208801613fb0565b62227d7d60e81b60199290910191820152601c0195945050505050565b60007f3c70617468207472616e73666f726d3d227472616e736c61746528000000000082528351612f8d81601b850160208801613fb0565b7f2c36333629207363616c6528302e3529222066696c6c3d220000000000000000601b918401918201528351612fca816033840160208801613fb0565b7f22207374726f6b652d77696474683d223222207374726f6b653d222330303941603392909101918201527f44452220643d226d32352c3120362c31376831386c2d31342c313120352c313760538201527f2d31352d31302d31352c313020352d31372d31342d31316831387a222f3e00006073820152609101949350505050565b60007f3c7465787420746578742d616e63686f723d226d6964646c652220783d2200008252855161308481601e850160208a01613fb0565b6411103c9e9160d91b601e9184019182015285516130a9816023840160208a01613fb0565b7f22207374796c653d2266696c6c3a20233030394144453b20666f6e742d73697a602392909101918201527f653a20323470783b20666f6e742d7765696768743a203630303b20666f6e742d6043820152743330b6b4b63c9d1013a432b63b32ba34b1b093911f60591b6063820152845161312b816078840160208901613fb0565b8451910190613141816078840160208801613fb0565b661e17ba32bc3a1f60c91b60789290910191820152607f019695505050505050565b60007f3c7465787420746578742d616e63686f723d226d6964646c652220776964746882527f3d2236303022207374796c653d2266696c6c3a20234644364632313b20666f6e60208301527f742d66616d696c793a202747656f72676961273b20666f6e742d73697a653a2060408301527f333670783b20666f6e742d7765696768743a203630303b2220783d2233323022606083015268103c9e911b9918111f60b91b6080830152825161321f816089850160208701613fb0565b661e17ba32bc3a1f60c91b6089939091019283015250609001919050565b7f3c7376672076696577426f783d2230203020363430203839302220786d6c6e7381527f3d22687474703a2f2f7777772e77332e6f72672f323030302f737667223e3c7260208201527f65637420783d2231362220793d223136222077696474683d223630382220686560408201527f696768743d2238353822207374796c653d2266696c6c3a20726762283235332c60608201527f203232372c203336293b207374726f6b652d77696474683a203470783b20737460808201526f3937b5b29d11a3221b2319189d91179f60811b60a08201527f3c7265637420783d2231362220793d223136222077696474683d22363037222060b08201527f6865696768743d2236303422207374796c653d2266696c6c3a2072676228323160d08201527f362c203231362c20323136293b207374726f6b652d77696474683a203470783b60f08201527f207374726f6b653a23464436463231222f3e3c73766720783d2233302220793d6101108201527f223330222077696474683d2235383022206865696768743d22353830223e0000610130820152600061341461340f6134096134036133fe6133f86133f361014e89018d612cad565b612d51565b8a612cad565b612cc9565b87612cad565b85612cad565b612dc6565b9695505050505050565b60007f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c0000008252825161345681601d850160208701613fb0565b91909101601d0192915050565b90565b60007f2270726f70657274696573223a207b20224368617269736d61223a20220000008252875161349e81601d850160208c01613fb0565b731116101121b7b739ba34ba3aba34b7b7111d101160611b601d9184019182015287516134d2816031840160208c01613fb0565b70111610112232bc3a32b934ba3c911d101160791b603192909101918201528651613504816042840160208b01613fb0565b731116101124b73a32b63634b3b2b731b2911d101160611b604292909101918201528551613539816056840160208a01613fb0565b6f1116101129ba3932b733ba34111d101160811b60569290910191820152845161356a816066840160208901613fb0565b61358161357b606683850101612d37565b86612cad565b9a9950505050505050505050565b60006c4c6f6f74636861646f7265202360981b825282516135b781600d850160208701613fb0565b91909101600d0192915050565b60007f646174613a696d6167652f7376672b786d6c3b6261736536342c000000000000825282516135fc81601a850160208701613fb0565b91909101601a0192915050565b6001600160a01b0391909116815260200190565b6001600160a01b03929092168252602082015260400190565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061341490830184612c81565b901515815260200190565b600060208252611b5a6020830184612c81565b602080825260089082015267130e9d154e8d0c0d60c21b604082015260600190565b6020808252602b908201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560408201526a74206f6620626f756e647360a81b606082015260800190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b60208082526026908201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160408201526564647265737360d01b606082015260800190565b6020808252601c908201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604082015260600190565b602080825260089082015267130e9cd48e8d0c0d60c21b604082015260600190565b60208082526026908201527f5061796d656e7453706c69747465723a206163636f756e7420686173206e6f2060408201526573686172657360d01b606082015260800190565b60208082526024908201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646040820152637265737360e01b606082015260800190565b60208082526019908201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604082015260600190565b6020808252600990820152684c3a6d574c3a34303360b81b604082015260600190565b6020808252602c908201527f4e6f6e2d6e756d6572616c2063686172616374657220656e636f756e7465726560408201526b6420696e20737472696e672160a01b606082015260800190565b6020808252603a908201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260408201527f6563697069656e74206d61792068617665207265766572746564000000000000606082015260800190565b6020808252601d908201527f416464726573733a20696e73756666696369656e742062616c616e6365000000604082015260600190565b6020808252602c908201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860408201526b34b9ba32b73a103a37b5b2b760a11b606082015260800190565b6020808252602b908201527f5061796d656e7453706c69747465723a206163636f756e74206973206e6f742060408201526a191d59481c185e5b595b9d60aa1b606082015260800190565b6020808252600b908201526a130e9cd88d8d110e8d0c0d60aa1b604082015260600190565b60208082526038908201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760408201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000606082015260800190565b6020808252602a908201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604082015269726f206164647265737360b01b606082015260800190565b60208082526029908201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460408201526832b73a103a37b5b2b760b91b606082015260800190565b6020808252818101527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604082015260600190565b6020808252602c908201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860408201526b34b9ba32b73a103a37b5b2b760a11b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526029908201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960408201526839903737ba1037bbb760b91b606082015260800190565b602080825260099082015268261d36aba61d1a181960b91b604082015260600190565b60208082526021908201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656040820152603960f91b606082015260800190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b6020808252602c908201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60408201526b7574206f6620626f756e647360a01b606082015260800190565b6020808252602c908201527f4d6f7265207468616e206f6e6520646563696d616c20656e636f756e7465726560408201526b6420696e20737472696e672160a01b606082015260800190565b90815260200190565b60405181810167ffffffffffffffff81118282101715613dcc57613dcc614089565b604052919050565b600067ffffffffffffffff821115613dee57613dee614089565b50601f01601f191660200190565b60008219821115613e0f57613e0f61405d565b500190565b600060ff821660ff84168060ff03821115613e3157613e3161405d565b019392505050565b600082613e4857613e48614073565b500490565b600060ff831680613e6057613e60614073565b8060ff84160491505092915050565b80825b6001808611613e815750610fbb565b818704821115613e9357613e9361405d565b80861615613ea057918102915b9490941c938002613e72565b6000611b5a6000198484600082613ec557506001611b5a565b81613ed257506000611b5a565b8160018114613ee85760028114613ef257613f1f565b6001915050611b5a565b60ff841115613f0357613f0361405d565b6001841b915084821115613f1957613f1961405d565b50611b5a565b5060208310610133831016604e8410600b8410161715613f52575081810a83811115613f4d57613f4d61405d565b611b5a565b613f5f8484846001613e6f565b808604821115613f7157613f7161405d565b02949350505050565b6000816000190483118215151615613f9457613f9461405d565b500290565b600082821015613fab57613fab61405d565b500390565b60005b83811015613fcb578181015183820152602001613fb3565b83811115610f745750506000910152565b600081613feb57613feb61405d565b506000190190565b60028104600182168061400757607f821691505b6020821081141561402857634e487b7160e01b600052602260045260246000fd5b50919050565b60006000198214156140425761404261405d565b5060010190565b60008261405857614058614073565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b03811681146110fc57600080fd5b6001600160e01b0319811681146110fc57600080fdfe4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2fa2646970667358221220c79680c3f3122b1c1aa8b01ecd20834994a6a834b1041efdd69249f1299f326f64736f6c634300080000330000000000000000000000008b4616926705fb61e9c4eeac07cd946a5d4b0760000000000000000000000000741f506e38cea4e001f770eb14f6ec9b468d989900000000000000000000000042a87e04f87a038774fb39c0a61681e7e859937b00000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000002000000000000000000000000c102f76973f4890cab1b5d1ed26f3623381983af0000000000000000000000008b4616926705fb61e9c4eeac07cd946a5d4b0760000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000002

Deployed Bytecode

0x6080604052600436106101fd5760003560e01c8063715018a61161010d578063b88d4fde116100a0578063c87b56dd1161006f578063c87b56dd146105b0578063ce7c2ac2146105d0578063e33b7de3146105f0578063e985e9c514610605578063f2fde38b1461062557610244565b8063b88d4fde14610538578063ba2be3d514610558578063c002d23d1461056d578063c155531d1461058257610244565b806395d89b41116100dc57806395d89b41146104ce5780639852595c146104e3578063a22cb46514610503578063b2c751721461052357610244565b8063715018a61461046f5780638b83209b146104845780638da5cb5b146104a457806392d40871146104b957610244565b80633a98ef39116101905780635dacc7bc1161015f5780635dacc7bc146103dc5780636352211e146103fc578063666ae02c1461041c57806367ae5d981461042f57806370a082311461044f57610244565b80633a98ef391461037257806342842e0e14610387578063439d0066146103a75780634f6ccce7146103bc57610244565b806318160ddd116101cc57806318160ddd146102f0578063191655871461031257806323b872dd146103325780632f745c591461035257610244565b806301ffc9a71461024957806306fdde031461027f578063081812fc146102a1578063095ea7b3146102ce57610244565b36610244577f6ef95f06320e7a25a04a175ca677b7052bdd97131872c2192525a629f51be77061022b610645565b3460405161023a92919061361d565b60405180910390a1005b600080fd5b34801561025557600080fd5b50610269610264366004612b22565b610649565b6040516102769190613669565b60405180910390f35b34801561028b57600080fd5b5061029461066b565b6040516102769190613674565b3480156102ad57600080fd5b506102c16102bc366004612bcd565b6106fd565b6040516102769190613609565b3480156102da57600080fd5b506102ee6102e9366004612af7565b610749565b005b3480156102fc57600080fd5b506103056107e1565b6040516102769190613da1565b34801561031e57600080fd5b506102ee61032d36600461296f565b6107e7565b34801561033e57600080fd5b506102ee61034d3660046129df565b61092c565b34801561035e57600080fd5b5061030561036d366004612af7565b610964565b34801561037e57600080fd5b506103056109b6565b34801561039357600080fd5b506102ee6103a23660046129df565b6109bc565b3480156103b357600080fd5b506102c16109d7565b3480156103c857600080fd5b506103056103d7366004612bcd565b6109e6565b3480156103e857600080fd5b506102946103f7366004612bcd565b610a41565b34801561040857600080fd5b506102c1610417366004612bcd565b610a9f565b6102ee61042a366004612be5565b610ad4565b34801561043b57600080fd5b5061029461044a366004612bcd565b610c72565b34801561045b57600080fd5b5061030561046a36600461296f565b610d53565b34801561047b57600080fd5b506102ee610d97565b34801561049057600080fd5b506102c161049f366004612bcd565b610de2565b3480156104b057600080fd5b506102c1610e20565b3480156104c557600080fd5b506102c1610e2f565b3480156104da57600080fd5b50610294610e3e565b3480156104ef57600080fd5b506103056104fe36600461296f565b610e4d565b34801561050f57600080fd5b506102ee61051e366004612ac6565b610e68565b34801561052f57600080fd5b50610305610f36565b34801561054457600080fd5b506102ee610553366004612a1f565b610f3b565b34801561056457600080fd5b506102c1610f7a565b34801561057957600080fd5b50610305610f89565b34801561058e57600080fd5b506105a261059d366004612c06565b610f94565b60405161027692919061361d565b3480156105bc57600080fd5b506102946105cb366004612bcd565b610fc4565b3480156105dc57600080fd5b506103056105eb36600461296f565b61103f565b3480156105fc57600080fd5b5061030561105a565b34801561061157600080fd5b506102696106203660046129a7565b611060565b34801561063157600080fd5b506102ee61064036600461296f565b61108e565b3390565b6000610654826110ff565b80610663575061066382611124565b90505b919050565b60606000805461067a90613ff3565b80601f01602080910402602001604051908101604052809291908181526020018280546106a690613ff3565b80156106f35780601f106106c8576101008083540402835291602001916106f3565b820191906000526020600020905b8154815290600101906020018083116106d657829003601f168201915b5050505050905090565b600061070882611155565b61072d5760405162461bcd60e51b815260040161072490613b8a565b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b600061075482610a9f565b9050806001600160a01b0316836001600160a01b031614156107885760405162461bcd60e51b815260040161072490613c77565b806001600160a01b031661079a610645565b6001600160a01b031614806107b657506107b681610620610645565b6107d25760405162461bcd60e51b815260040161072490613a65565b6107dc8383611172565b505050565b60085490565b6001600160a01b0381166000908152600e602052604090205461081c5760405162461bcd60e51b8152600401610724906137e5565b6000600d544761082c9190613dfc565b6001600160a01b0383166000908152600f6020908152604080832054600c54600e9093529083205493945091926108639085613f7a565b61086d9190613e39565b6108779190613f99565b9050806108965760405162461bcd60e51b8152600401610724906139f5565b6001600160a01b0383166000908152600f60205260409020546108ba908290613dfc565b6001600160a01b0384166000908152600f6020526040902055600d546108e1908290613dfc565b600d556108ee83826111e0565b7fdf20fd1e76bc69d672e4814fafb2c449bba3a5369d8359adf9e05e6fde87b056838260405161091f92919061361d565b60405180910390a1505050565b61093d610937610645565b8261127c565b6109595760405162461bcd60e51b815260040161072490613cb8565b6107dc838383611301565b600061096f83610d53565b821061098d5760405162461bcd60e51b8152600401610724906136a9565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b600c5490565b6107dc83838360405180602001604052806000815250610f3b565b6012546001600160a01b031681565b60006109f06107e1565b8210610a0e5760405162461bcd60e51b815260040161072490613d09565b60088281548110610a2f57634e487b7160e01b600052603260045260246000fd5b90600052602060002001549050919050565b6060610a4c82611155565b610a685760405162461bcd60e51b815260040161072490613a40565b610a79610a7483610c72565b61142e565b604051602001610a8991906135c4565b6040516020818303038152906040529050919050565b6000818152600260205260408120546001600160a01b0316806106635760405162461bcd60e51b815260040161072490613b0c565b666a94d74f4300003414610afa5760405162461bcd60e51b815260040161072490613c54565b6012546040516331a9108f60e11b81526001600160a01b0390911690636352211e90610b2a908590600401613da1565b60206040518083038186803b158015610b4257600080fd5b505afa158015610b56573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b7a919061298b565b6001600160a01b0316336001600160a01b031614610baa5760405162461bcd60e51b8152600401610724906138a6565b6014546040516331a9108f60e11b81526001600160a01b0390911690636352211e90610bda908490600401613da1565b60206040518083038186803b158015610bf257600080fd5b505afa158015610c06573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c2a919061298b565b6001600160a01b0316336001600160a01b031614610c5a5760405162461bcd60e51b8152600401610724906138a6565b610c6482826115a2565b610c6e338361189f565b5050565b6060610c7d82611155565b610c995760405162461bcd60e51b8152600401610724906137c3565b60125460405163061ba2f160e01b81526001600160a01b039091169063061ba2f190610cc9908590600401613da1565b60006040518083038186803b158015610ce157600080fd5b505afa158015610cf5573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610d1d9190810190612b5a565b610d268361197e565b610d37610d3285611a91565b611b61565b610d4085611b74565b604051602001610a89949392919061323d565b60006001600160a01b038216610d7b5760405162461bcd60e51b815260040161072490613ac2565b506001600160a01b031660009081526003602052604090205490565b610d9f610645565b6001600160a01b0316610db0610e20565b6001600160a01b031614610dd65760405162461bcd60e51b815260040161072490613bd6565b610de06000611d3d565b565b600060108281548110610e0557634e487b7160e01b600052603260045260246000fd5b6000918252602090912001546001600160a01b031692915050565b600a546001600160a01b031690565b6014546001600160a01b031681565b60606001805461067a90613ff3565b6001600160a01b03166000908152600f602052604090205490565b610e70610645565b6001600160a01b0316826001600160a01b03161415610ea15760405162461bcd60e51b81526004016107249061386f565b8060056000610eae610645565b6001600160a01b03908116825260208083019390935260409182016000908120918716808252919093529120805460ff191692151592909217909155610ef2610645565b6001600160a01b03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051610f2a9190613669565b60405180910390a35050565b600981565b610f4c610f46610645565b8361127c565b610f685760405162461bcd60e51b815260040161072490613cb8565b610f7484848484611d8f565b50505050565b6013546001600160a01b031681565b666a94d74f43000081565b6000806064610fa4600987613f7a565b610fae9190613e39565b9050610fb8610e20565b91505b94509492505050565b6060610fcf82611155565b610feb5760405162461bcd60e51b815260040161072490613687565b61102f610ff783611a91565b61100084610a41565b61100985611dc2565b60405160200161101b93929190612ec2565b60405160208183030381529060405261142e565b604051602001610a89919061341e565b6001600160a01b03166000908152600e602052604090205490565b600d5490565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b611096610645565b6001600160a01b03166110a7610e20565b6001600160a01b0316146110cd5760405162461bcd60e51b815260040161072490613bd6565b6001600160a01b0381166110f35760405162461bcd60e51b815260040161072490613746565b6110fc81611d3d565b50565b60006001600160e01b0319821663780e9d6360e01b1480610663575061066382611eb8565b600061112f826110ff565b806106635750506001600160e01b0319166000908152600b602052604090205460ff1690565b6000908152600260205260409020546001600160a01b0316151590565b600081815260046020526040902080546001600160a01b0319166001600160a01b03841690811790915581906111a782610a9f565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b804710156112005760405162461bcd60e51b815260040161072490613972565b6000826001600160a01b03168260405161121990613463565b60006040518083038185875af1925050503d8060008114611256576040519150601f19603f3d011682016040523d82523d6000602084013e61125b565b606091505b50509050806107dc5760405162461bcd60e51b815260040161072490613915565b600061128782611155565b6112a35760405162461bcd60e51b8152600401610724906139a9565b60006112ae83610a9f565b9050806001600160a01b0316846001600160a01b031614806112e95750836001600160a01b03166112de846106fd565b6001600160a01b0316145b806112f957506112f98185611060565b949350505050565b826001600160a01b031661131482610a9f565b6001600160a01b03161461133a5760405162461bcd60e51b815260040161072490613c0b565b6001600160a01b0382166113605760405162461bcd60e51b81526004016107249061382b565b61136b838383611ef8565b611376600082611172565b6001600160a01b038316600090815260036020526040812080546001929061139f908490613f99565b90915550506001600160a01b03821660009081526003602052604081208054600192906113cd908490613dfc565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b80516060908061144e575050604080516020810190915260008152610666565b6000600361145d836002613dfc565b6114679190613e39565b611472906004613f7a565b90506000611481826020613dfc565b67ffffffffffffffff8111156114a757634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156114d1576020820181803683370190505b50905060006040518060600160405280604081526020016140cb604091399050600181016020830160005b8681101561155d576003818a01810151603f601282901c8116860151600c83901c8216870151600684901c831688015192909316870151600891821b60ff94851601821b92841692909201901b91160160e01b8352600490920191016114fc565b506003860660018114611577576002811461158857611594565b613d3d60f01b600119830152611594565b603d60f81b6000198301525b505050918152949350505050565b601454604051632df78d3160e01b8152600091611632916001600160a01b0390911690632df78d31906115d9908690600401613da1565b60006040518083038186803b1580156115f157600080fd5b505afa158015611605573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261162d9190810190612b5a565b611f81565b60145460405163f3a4aba960e01b815291925060009161166a916001600160a01b03169063f3a4aba9906115d9908790600401613da1565b60145460405163e15f225560e01b81529192506000916116a2916001600160a01b03169063e15f2255906115d9908890600401613da1565b60145460405163baa5b27f60e01b81529192506000916116da916001600160a01b03169063baa5b27f906115d9908990600401613da1565b60145460405163729fded360e11b8152919250600091611712916001600160a01b03169063e53fbda6906115d9908a90600401613da1565b60145460405163183ccee360e11b815291925060009161174a916001600160a01b0316906330799dc6906115d9908b90600401613da1565b9050600060148284868861175e8b8d613e14565b6117689190613e14565b6117729190613e14565b61177c9190613e14565b6117869190613e14565b6117909190613e4d565b60408051610100808201835260ff93841682529983166020808301918252998416828401908152988416606083019081529784166080830190815296841660a0830190815295841660c0830190815260e083019c8d5260009d8e526011909a5291909b209a518b5491519751965195519451985160ff199092169083161761ff0019169682169098029590951762ff0000191662010000948616949094029390931763ff00000019166301000000928516929092029190911764ff000000001916640100000000918416919091021765ff00000000001916600160281b938316939093029290921766ff0000000000001916600160301b93909116929092029190911783555051600190910155565b6001600160a01b0382166118c55760405162461bcd60e51b815260040161072490613b55565b6118ce81611155565b156118eb5760405162461bcd60e51b81526004016107249061378c565b6118f760008383611ef8565b6001600160a01b0382166000908152600360205260408120805460019290611920908490613dfc565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b60008181526011602090815260409182902082516101008082018552825460ff808216808552928204811695840195909552620100008104851695830195909552630100000085048416606083810191909152640100000000860485166080840152600160281b8604851660a0840152600160301b90950490931660c082015260019182015460e08201529190611a199082101560f8611fcf565b611a2c60028360ff161015610116611fcf565b611a3f60038460ff161015610134611fcf565b611a5260048560ff161015610152611fcf565b611a6560058660ff161015610170611fcf565b604051602001611a79959493929190612dd8565b60405160208183030381529060405292505050919050565b60135460125460405163e1090cff60e01b81526060926000926001600160a01b039182169263e1090cff92611acc921690879060040161361d565b60006040518083038186803b158015611ae457600080fd5b505afa158015611af8573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052611b209190810190612b5a565b90508051600014611b315780611b5a565b611b3a8361204a565b604051602001611b4a919061358f565b6040516020818303038152906040525b9392505050565b606081604051602001610a899190613163565b60008181526011602090815260409182902082516101008082018552825460ff8082168452918104821683860181905262010000820483168488015263010000008204831660608581019190915264010000000083048416608080870191909152600160281b8404851660a0870152600160301b90930490931660c085015260019094015460e0840152855180870190965260048652632043484160e01b94860194909452939092611c2a92919061030c612165565b611c5d826040015160ff16604051806040016040528060048152602001631021a7a760e11b81525061014061030c612165565b611c90836060015160ff1660405180604001604052806004815260200163040888ab60e31b81525061020061030c612165565b611cc2846080015160ff16604051806040016040528060048152602001630812539560e21b815250608061033e612165565b611cf58560a0015160ff16604051806040016040528060048152602001631029aa2960e11b81525061014061033e612165565b611d288660c0015160ff16604051806040016040528060048152602001632057495360e01b81525061020061033e612165565b604051602001611b4a96959493929190612e43565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b611d9a848484611301565b611da6848484846121af565b610f745760405162461bcd60e51b8152600401610724906136f4565b60008181526011602090815260409182902082516101008082018552825460ff80821684529181048216948301859052620100008104821695830195909552630100000085048116606083810191909152640100000000860482166080840152600160281b8604821660a0840152600160301b9095041660c082015260019091015460e082015290611e539061204a565b611e63826040015160ff1661204a565b611e73836060015160ff1661204a565b611e83846080015160ff1661204a565b611e938560a0015160ff1661204a565b611ea38660c0015160ff1661204a565b604051602001611b4a96959493929190613466565b60006001600160e01b031982166380ac58cd60e01b1480611ee957506001600160e01b03198216635b5e139f60e01b145b806106635750610663826122c7565b611f038383836107dc565b6001600160a01b038316611f1f57611f1a816122e0565b611f42565b816001600160a01b0316836001600160a01b031614611f4257611f428382612324565b6001600160a01b038216611f5e57611f59816123c1565b6107dc565b826001600160a01b0316826001600160a01b0316146107dc576107dc828261249a565b600080611f8d836124de565b9050611fbb611fb4604051806040016040528060018152602001600160fd1b8152506124de565b8290612503565b50611b5a611fc88261251d565b6000612594565b6060611fda8261204a565b8361200157604051806040016040528060048152602001636e6f6e6560e01b815250612022565b604051806040016040528060078152602001662330303941444560c81b8152505b604051602001612033929190612f55565b604051602081830303815290604052905092915050565b60608161206f57506040805180820190915260018152600360fc1b6020820152610666565b8160005b811561209957806120838161402e565b91506120929050600a83613e39565b9150612073565b60008167ffffffffffffffff8111156120c257634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156120ec576020820181803683370190505b5090505b84156112f957612101600183613f99565b915061210e600a86614049565b612119906030613dfc565b60f81b81838151811061213c57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a90535061215e600a86613e39565b94506120f0565b60606121708361204a565b6121798361204a565b6121828761204a565b86604051602001612196949392919061304c565b6040516020818303038152906040529050949350505050565b60006121c3846001600160a01b0316612723565b156122bf57836001600160a01b031663150b7a026121df610645565b8786866040518563ffffffff1660e01b81526004016122019493929190613636565b602060405180830381600087803b15801561221b57600080fd5b505af192505050801561224b575060408051601f3d908101601f1916820190925261224891810190612b3e565b60015b6122a5573d808015612279576040519150601f19603f3d011682016040523d82523d6000602084013e61227e565b606091505b50805161229d5760405162461bcd60e51b8152600401610724906136f4565b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506112f9565b5060016112f9565b6001600160e01b031981166301ffc9a760e01b14919050565b600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b6000600161233184610d53565b61233b9190613f99565b60008381526007602052604090205490915080821461238e576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b6008546000906123d390600190613f99565b6000838152600960205260408120546008805493945090928490811061240957634e487b7160e01b600052603260045260246000fd5b90600052602060002001549050806008838154811061243857634e487b7160e01b600052603260045260246000fd5b600091825260208083209091019290925582815260099091526040808220849055858252812055600880548061247e57634e487b7160e01b600052603160045260246000fd5b6001900381819060005260206000200160009055905550505050565b60006124a583610d53565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b6124e6612955565b506040805180820190915281518152602082810190820152919050565b61250b612955565b612516838383612729565b5092915050565b60606000826000015167ffffffffffffffff81111561254c57634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015612576576020820181803683370190505b509050600060208201905061251681856020015186600001516127c9565b6000828180805b83518110156126fb5760308482815181106125c657634e487b7160e01b600052603260045260246000fd5b016020015160f81c10801590612604575060398482815181106125f957634e487b7160e01b600052603260045260246000fd5b016020015160f81c11155b156126795781156126275785612619576126fb565b8561262381613fdc565b9650505b612632600a84613f7a565b9250603084828151811061265657634e487b7160e01b600052603260045260246000fd5b0160200151612668919060f81c613f99565b6126729084613dfc565b92506126e9565b83818151811061269957634e487b7160e01b600052603260045260246000fd5b60209101015160f81c602e14156126d15781156126c85760405162461bcd60e51b815260040161072490613d55565b600191506126e9565b60405162461bcd60e51b8152600401610724906138c9565b806126f38161402e565b91505061259b565b50841561271a5761270d85600a613eac565b6127179083613f7a565b91505b50949350505050565b3b151590565b612731612955565b600061274f856000015186602001518660000151876020015161283a565b60208087018051918601919091525190915061276b9082613f99565b83528451602086015161277e9190613dfc565b81141561278e57600085526127c0565b8351835161279c9190613dfc565b855186906127ab908390613f99565b90525083516127ba9082613dfc565b60208601525b50909392505050565b6020811061280157815183526127e0602084613dfc565b92506127ed602083613dfc565b91506127fa602082613f99565b90506127c9565b60006001612810836020613f99565b61281c90610100613eac565b6128269190613f99565b925184518416931916929092179092525050565b6000838186851161294057602085116128ee576000600161285c876020613f99565b612867906008613f7a565b612872906002613eac565b61287c9190613f99565b85519019915081166000876128918b8b613dfc565b61289b9190613f99565b855190915083165b8281146128e0578186106128c8576128bb8b8b613dfc565b96505050505050506112f9565b856128d28161402e565b9650508386511690506128a3565b8596505050505050506112f9565b508383206000905b6129008689613f99565b821161293e578583208181141561291d57839450505050506112f9565b612928600185613dfc565b93505081806129369061402e565b9250506128f6565b505b61294a8787613dfc565b979650505050505050565b604051806040016040528060008152602001600081525090565b600060208284031215612980578081fd5b8135611b5a8161409f565b60006020828403121561299c578081fd5b8151611b5a8161409f565b600080604083850312156129b9578081fd5b82356129c48161409f565b915060208301356129d48161409f565b809150509250929050565b6000806000606084860312156129f3578081fd5b83356129fe8161409f565b92506020840135612a0e8161409f565b929592945050506040919091013590565b60008060008060808587031215612a34578081fd5b8435612a3f8161409f565b93506020850135612a4f8161409f565b925060408501359150606085013567ffffffffffffffff811115612a71578182fd5b8501601f81018713612a81578182fd5b8035612a94612a8f82613dd4565b613daa565b818152886020838501011115612aa8578384fd5b81602084016020830137908101602001929092525092959194509250565b60008060408385031215612ad8578182fd5b8235612ae38161409f565b9150602083013580151581146129d4578182fd5b60008060408385031215612b09578182fd5b8235612b148161409f565b946020939093013593505050565b600060208284031215612b33578081fd5b8135611b5a816140b4565b600060208284031215612b4f578081fd5b8151611b5a816140b4565b600060208284031215612b6b578081fd5b815167ffffffffffffffff811115612b81578182fd5b8201601f81018413612b91578182fd5b8051612b9f612a8f82613dd4565b818152856020838501011115612bb3578384fd5b612bc4826020830160208601613fb0565b95945050505050565b600060208284031215612bde578081fd5b5035919050565b60008060408385031215612bf7578182fd5b50508035926020909101359150565b60008060008060608587031215612c1b578182fd5b8435935060208501359250604085013567ffffffffffffffff80821115612c40578384fd5b818701915087601f830112612c53578384fd5b813581811115612c61578485fd5b886020828501011115612c72578485fd5b95989497505060200194505050565b60008151808452612c99816020860160208601613fb0565b601f01601f19169290920160200192915050565b60008151612cbf818560208601613fb0565b9290920192915050565b7f3c6c696e65207374796c653d227374726f6b652d77696474683a203270783b2081527f7374726f6b653a234644364632313b222078313d22333932222078323d2235396020820152751911103c989e911b1a9811103c991e911b1a9811179f60511b604082015260560190565b6d111610112bb4b9b237b6911d101160911b8152600e0190565b7f3c2f7376673e3c6c696e65207374796c653d227374726f6b652d77696474683a81527f203270783b207374726f6b653a234644364632313b222078313d22343822207860208201527f323d22323438222079313d22363530222079323d22363530222f3e00000000006040820152605b0190565b651e17b9bb339f60d11b815260060190565b60008651612dea818460208b01613fb0565b865190830190612dfe818360208b01613fb0565b8651910190612e11818360208a01613fb0565b8551910190612e24818360208901613fb0565b8451910190612e37818360208801613fb0565b01979650505050505050565b600087516020612e568285838d01613fb0565b885191840191612e698184848d01613fb0565b8851920191612e7b8184848c01613fb0565b8751920191612e8d8184848b01613fb0565b8651920191612e9f8184848a01613fb0565b8551920191612eb18184848901613fb0565b919091019998505050505050505050565b683d913730b6b2911d1160b91b81528351600090612ee7816009850160208901613fb0565b6c1116101134b6b0b3b2911d101160991b6009918401918201528451612f14816016840160208901613fb0565b6201116160ed1b601692909101918201528351612f38816019840160208801613fb0565b62227d7d60e81b60199290910191820152601c0195945050505050565b60007f3c70617468207472616e73666f726d3d227472616e736c61746528000000000082528351612f8d81601b850160208801613fb0565b7f2c36333629207363616c6528302e3529222066696c6c3d220000000000000000601b918401918201528351612fca816033840160208801613fb0565b7f22207374726f6b652d77696474683d223222207374726f6b653d222330303941603392909101918201527f44452220643d226d32352c3120362c31376831386c2d31342c313120352c313760538201527f2d31352d31302d31352c313020352d31372d31342d31316831387a222f3e00006073820152609101949350505050565b60007f3c7465787420746578742d616e63686f723d226d6964646c652220783d2200008252855161308481601e850160208a01613fb0565b6411103c9e9160d91b601e9184019182015285516130a9816023840160208a01613fb0565b7f22207374796c653d2266696c6c3a20233030394144453b20666f6e742d73697a602392909101918201527f653a20323470783b20666f6e742d7765696768743a203630303b20666f6e742d6043820152743330b6b4b63c9d1013a432b63b32ba34b1b093911f60591b6063820152845161312b816078840160208901613fb0565b8451910190613141816078840160208801613fb0565b661e17ba32bc3a1f60c91b60789290910191820152607f019695505050505050565b60007f3c7465787420746578742d616e63686f723d226d6964646c652220776964746882527f3d2236303022207374796c653d2266696c6c3a20234644364632313b20666f6e60208301527f742d66616d696c793a202747656f72676961273b20666f6e742d73697a653a2060408301527f333670783b20666f6e742d7765696768743a203630303b2220783d2233323022606083015268103c9e911b9918111f60b91b6080830152825161321f816089850160208701613fb0565b661e17ba32bc3a1f60c91b6089939091019283015250609001919050565b7f3c7376672076696577426f783d2230203020363430203839302220786d6c6e7381527f3d22687474703a2f2f7777772e77332e6f72672f323030302f737667223e3c7260208201527f65637420783d2231362220793d223136222077696474683d223630382220686560408201527f696768743d2238353822207374796c653d2266696c6c3a20726762283235332c60608201527f203232372c203336293b207374726f6b652d77696474683a203470783b20737460808201526f3937b5b29d11a3221b2319189d91179f60811b60a08201527f3c7265637420783d2231362220793d223136222077696474683d22363037222060b08201527f6865696768743d2236303422207374796c653d2266696c6c3a2072676228323160d08201527f362c203231362c20323136293b207374726f6b652d77696474683a203470783b60f08201527f207374726f6b653a23464436463231222f3e3c73766720783d2233302220793d6101108201527f223330222077696474683d2235383022206865696768743d22353830223e0000610130820152600061341461340f6134096134036133fe6133f86133f361014e89018d612cad565b612d51565b8a612cad565b612cc9565b87612cad565b85612cad565b612dc6565b9695505050505050565b60007f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c0000008252825161345681601d850160208701613fb0565b91909101601d0192915050565b90565b60007f2270726f70657274696573223a207b20224368617269736d61223a20220000008252875161349e81601d850160208c01613fb0565b731116101121b7b739ba34ba3aba34b7b7111d101160611b601d9184019182015287516134d2816031840160208c01613fb0565b70111610112232bc3a32b934ba3c911d101160791b603192909101918201528651613504816042840160208b01613fb0565b731116101124b73a32b63634b3b2b731b2911d101160611b604292909101918201528551613539816056840160208a01613fb0565b6f1116101129ba3932b733ba34111d101160811b60569290910191820152845161356a816066840160208901613fb0565b61358161357b606683850101612d37565b86612cad565b9a9950505050505050505050565b60006c4c6f6f74636861646f7265202360981b825282516135b781600d850160208701613fb0565b91909101600d0192915050565b60007f646174613a696d6167652f7376672b786d6c3b6261736536342c000000000000825282516135fc81601a850160208701613fb0565b91909101601a0192915050565b6001600160a01b0391909116815260200190565b6001600160a01b03929092168252602082015260400190565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061341490830184612c81565b901515815260200190565b600060208252611b5a6020830184612c81565b602080825260089082015267130e9d154e8d0c0d60c21b604082015260600190565b6020808252602b908201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560408201526a74206f6620626f756e647360a81b606082015260800190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b60208082526026908201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160408201526564647265737360d01b606082015260800190565b6020808252601c908201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604082015260600190565b602080825260089082015267130e9cd48e8d0c0d60c21b604082015260600190565b60208082526026908201527f5061796d656e7453706c69747465723a206163636f756e7420686173206e6f2060408201526573686172657360d01b606082015260800190565b60208082526024908201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646040820152637265737360e01b606082015260800190565b60208082526019908201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604082015260600190565b6020808252600990820152684c3a6d574c3a34303360b81b604082015260600190565b6020808252602c908201527f4e6f6e2d6e756d6572616c2063686172616374657220656e636f756e7465726560408201526b6420696e20737472696e672160a01b606082015260800190565b6020808252603a908201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260408201527f6563697069656e74206d61792068617665207265766572746564000000000000606082015260800190565b6020808252601d908201527f416464726573733a20696e73756666696369656e742062616c616e6365000000604082015260600190565b6020808252602c908201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860408201526b34b9ba32b73a103a37b5b2b760a11b606082015260800190565b6020808252602b908201527f5061796d656e7453706c69747465723a206163636f756e74206973206e6f742060408201526a191d59481c185e5b595b9d60aa1b606082015260800190565b6020808252600b908201526a130e9cd88d8d110e8d0c0d60aa1b604082015260600190565b60208082526038908201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760408201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000606082015260800190565b6020808252602a908201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604082015269726f206164647265737360b01b606082015260800190565b60208082526029908201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460408201526832b73a103a37b5b2b760b91b606082015260800190565b6020808252818101527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604082015260600190565b6020808252602c908201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860408201526b34b9ba32b73a103a37b5b2b760a11b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526029908201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960408201526839903737ba1037bbb760b91b606082015260800190565b602080825260099082015268261d36aba61d1a181960b91b604082015260600190565b60208082526021908201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656040820152603960f91b606082015260800190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b6020808252602c908201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60408201526b7574206f6620626f756e647360a01b606082015260800190565b6020808252602c908201527f4d6f7265207468616e206f6e6520646563696d616c20656e636f756e7465726560408201526b6420696e20737472696e672160a01b606082015260800190565b90815260200190565b60405181810167ffffffffffffffff81118282101715613dcc57613dcc614089565b604052919050565b600067ffffffffffffffff821115613dee57613dee614089565b50601f01601f191660200190565b60008219821115613e0f57613e0f61405d565b500190565b600060ff821660ff84168060ff03821115613e3157613e3161405d565b019392505050565b600082613e4857613e48614073565b500490565b600060ff831680613e6057613e60614073565b8060ff84160491505092915050565b80825b6001808611613e815750610fbb565b818704821115613e9357613e9361405d565b80861615613ea057918102915b9490941c938002613e72565b6000611b5a6000198484600082613ec557506001611b5a565b81613ed257506000611b5a565b8160018114613ee85760028114613ef257613f1f565b6001915050611b5a565b60ff841115613f0357613f0361405d565b6001841b915084821115613f1957613f1961405d565b50611b5a565b5060208310610133831016604e8410600b8410161715613f52575081810a83811115613f4d57613f4d61405d565b611b5a565b613f5f8484846001613e6f565b808604821115613f7157613f7161405d565b02949350505050565b6000816000190483118215151615613f9457613f9461405d565b500290565b600082821015613fab57613fab61405d565b500390565b60005b83811015613fcb578181015183820152602001613fb3565b83811115610f745750506000910152565b600081613feb57613feb61405d565b506000190190565b60028104600182168061400757607f821691505b6020821081141561402857634e487b7160e01b600052602260045260246000fd5b50919050565b60006000198214156140425761404261405d565b5060010190565b60008261405857614058614073565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b03811681146110fc57600080fd5b6001600160e01b0319811681146110fc57600080fdfe4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2fa2646970667358221220c79680c3f3122b1c1aa8b01ecd20834994a6a834b1041efdd69249f1299f326f64736f6c63430008000033

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

0000000000000000000000008b4616926705fb61e9c4eeac07cd946a5d4b0760000000000000000000000000741f506e38cea4e001f770eb14f6ec9b468d989900000000000000000000000042a87e04f87a038774fb39c0a61681e7e859937b00000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000002000000000000000000000000c102f76973f4890cab1b5d1ed26f3623381983af0000000000000000000000008b4616926705fb61e9c4eeac07cd946a5d4b0760000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000002

-----Decoded View---------------
Arg [0] : luchaAddress (address): 0x8b4616926705Fb61E9C4eeAc07cd946a5D4b0760
Arg [1] : luchaNamesAddress (address): 0x741f506e38ceA4e001f770eB14F6eC9B468D9899
Arg [2] : abilityAddress (address): 0x42A87e04f87A038774fb39c0A61681e7e859937b
Arg [3] : _payees (address[]): 0xc102f76973f4890cAB1b5d1ed26F3623381983aF,0x8b4616926705Fb61E9C4eeAc07cd946a5D4b0760
Arg [4] : _shares (uint256[]): 1,2

-----Encoded View---------------
11 Constructor Arguments found :
Arg [0] : 0000000000000000000000008b4616926705fb61e9c4eeac07cd946a5d4b0760
Arg [1] : 000000000000000000000000741f506e38cea4e001f770eb14f6ec9b468d9899
Arg [2] : 00000000000000000000000042a87e04f87a038774fb39c0a61681e7e859937b
Arg [3] : 00000000000000000000000000000000000000000000000000000000000000a0
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000100
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000002
Arg [6] : 000000000000000000000000c102f76973f4890cab1b5d1ed26f3623381983af
Arg [7] : 0000000000000000000000008b4616926705fb61e9c4eeac07cd946a5d4b0760
Arg [8] : 0000000000000000000000000000000000000000000000000000000000000002
Arg [9] : 0000000000000000000000000000000000000000000000000000000000000001
Arg [10] : 0000000000000000000000000000000000000000000000000000000000000002


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.