Contract 0xc73e1237a5a9ba5b0f790b6580f32d04a727dc19

Contract Overview

Rarity: 0xc73...c19 Community Mod
Balance:
0 FTM

FTM Value:
$0.00

Token:
Txn Hash Method
Block
From
To
Value [Txn Fee]
0x29bb55ef1eb0baf46e45d09e13ffcd5bfda93c0fb6f04a805fd7b4d6eaf86e91Set Approval For...203553652021-10-28 13:17:071 hr 15 mins ago0x6067517d3861b29e0bfa856e84ece1bd6f8188fd IN  Rarity: 0xc73...c19 Community Mod0 FTM0.009461853328
0x74d9e53f686494c7de814bb038f7d8c5a772b8e1ad857102c1345adab3d4d80fSet Approval For...203550072021-10-28 13:11:521 hr 20 mins ago0xe6e8c65292dbf18429951086bd94f295b0a87346 IN  Rarity: 0xc73...c19 Community Mod0 FTM0.009139953287
0x54df5331f0f318b1002b8492e54e7e3b856f8f6bb37cc349257fa371e8d67205Claim203547312021-10-28 13:08:071 hr 24 mins ago0xe6e8c65292dbf18429951086bd94f295b0a87346 IN  Rarity: 0xc73...c19 Community Mod0 FTM0.059887589895
0xdb10a18d3305d6af92da0b17730418b84241eacdc093e8817007a5ca29049b66Claim203538822021-10-28 12:55:561 hr 36 mins ago0xe03b31ad42ba89977c4559a9243d70bd443b26f3 IN  Rarity: 0xc73...c19 Community Mod0 FTM0.1446175
0x0489ff154f4035c5eb1cc89c688eb905479226aca83c0aad479c5015f6f57ceeClaim203526202021-10-28 12:37:131 hr 55 mins ago0xe03b31ad42ba89977c4559a9243d70bd443b26f3 IN  Rarity: 0xc73...c19 Community Mod0 FTM0.049288942883
0x3f21e63d1b90ffba57ecb3f14419616ecbeab876a8ff18f9685f04b28cb2e5d2Claim203519682021-10-28 12:25:482 hrs 6 mins ago0xe03b31ad42ba89977c4559a9243d70bd443b26f3 IN  Rarity: 0xc73...c19 Community Mod0 FTM0.045253174417
0x211af38fa7dcd7798c74ed3896c30d7b592b0406a41e861b72bb026b9cc8f1ecClaim203392852021-10-28 9:19:065 hrs 13 mins ago0xe03b31ad42ba89977c4559a9243d70bd443b26f3 IN  Rarity: 0xc73...c19 Community Mod0 FTM0.059252421363
0x268f358e1872df5f1f4840b4489a8b5a1238c94de9eaa105ac318b2b50841859Claim203388182021-10-28 9:12:235 hrs 20 mins ago0xe03b31ad42ba89977c4559a9243d70bd443b26f3 IN  Rarity: 0xc73...c19 Community Mod0 FTM0.049811965509
0x49ad7bf08431050a485c5112e7cc6cb7d81390fe01e5c3cfc537816ef6667e8bClaim203385762021-10-28 9:08:355 hrs 24 mins ago0x58d96903e1e8866442888011da7d63b7ee022fc5 IN  Rarity: 0xc73...c19 Community Mod0 FTM0.06539744988
0x98c80ba7b65a178943c8d665c7460e356b68a8f45827810eb763b3f10bebd261Claim203381032021-10-28 9:01:375 hrs 31 mins ago0xe03b31ad42ba89977c4559a9243d70bd443b26f3 IN  Rarity: 0xc73...c19 Community Mod0 FTM0.10973271287
0x70f311e29b0175425b024f343f773df4e7d3248914266479a6e5c6d75a5da9e5Claim203378962021-10-28 8:58:495 hrs 33 mins ago0xe03b31ad42ba89977c4559a9243d70bd443b26f3 IN  Rarity: 0xc73...c19 Community Mod0 FTM0.10414531787
0xb5e95fabeddb4026e4154fcbff86e414a98e1b863e931e1ab47a91d20155a2a5Claim203373232021-10-28 8:49:425 hrs 42 mins ago0xe03b31ad42ba89977c4559a9243d70bd443b26f3 IN  Rarity: 0xc73...c19 Community Mod0 FTM0.059655011819
0x58213fe34de77c31f1d8c0ccc0068de79b55527fafb387aad42aca881de64e39Claim203371822021-10-28 8:47:485 hrs 44 mins ago0xe03b31ad42ba89977c4559a9243d70bd443b26f3 IN  Rarity: 0xc73...c19 Community Mod0 FTM0.059557561606
0xd274d15d0ad397a167216b3f40e4d9b5b012112b42480ce544ec1bce40a0eb02Claim203370092021-10-28 8:45:405 hrs 46 mins ago0xe03b31ad42ba89977c4559a9243d70bd443b26f3 IN  Rarity: 0xc73...c19 Community Mod0 FTM0.059831292934
0x2579ee57a5b14d26256ad6e1a1d4c7c8b971c9f59da8690f0cb800850b62acc3Claim203366592021-10-28 8:40:525 hrs 51 mins ago0xe03b31ad42ba89977c4559a9243d70bd443b26f3 IN  Rarity: 0xc73...c19 Community Mod0 FTM0.060631430662
0x1a567c6bb631fcaeb667c754862b88e0df42e147703e4f0b268a2d1b490a0562Claim203352502021-10-28 8:19:236 hrs 13 mins ago0xe03b31ad42ba89977c4559a9243d70bd443b26f3 IN  Rarity: 0xc73...c19 Community Mod0 FTM0.049991158481
0x9e899d5f08f995b903c758e7f7990f18734ab17718f56d501ac47c3f7ce7f162Claim203351112021-10-28 8:17:336 hrs 15 mins ago0xe03b31ad42ba89977c4559a9243d70bd443b26f3 IN  Rarity: 0xc73...c19 Community Mod0 FTM0.049632772536
0xa98cfe8cb9842811c2eb9288acf160916439a4cb9343aa902be78efc3623cea2Claim203347782021-10-28 8:12:026 hrs 20 mins ago0xe03b31ad42ba89977c4559a9243d70bd443b26f3 IN  Rarity: 0xc73...c19 Community Mod0 FTM0.0899574
0x4d056594fa7fa262d073bda6a8d1607966217d48d13cec3bd851cd9ca39eb608Claim203334852021-10-28 7:50:546 hrs 41 mins ago0xe03b31ad42ba89977c4559a9243d70bd443b26f3 IN  Rarity: 0xc73...c19 Community Mod0 FTM0.10973271287
0xddef1255ed8386135bd6cf6eb189a5ce50d7b5f1158f3cb9508da19a96f97b04Claim203333842021-10-28 7:49:006 hrs 43 mins ago0xe03b31ad42ba89977c4559a9243d70bd443b26f3 IN  Rarity: 0xc73...c19 Community Mod0 FTM0.046067169324
0xab3c47488ab610527a9a437d9139e2231ef827fbb42c25168e40b03a2561ebdaClaim203332952021-10-28 7:47:346 hrs 45 mins ago0xe03b31ad42ba89977c4559a9243d70bd443b26f3 IN  Rarity: 0xc73...c19 Community Mod0 FTM0.045206850173
0x1c74b255a01eeb1a290658ce69149363acaecbe8fda7c95a699749bf5cf175a9Claim203331742021-10-28 7:45:186 hrs 47 mins ago0xe03b31ad42ba89977c4559a9243d70bd443b26f3 IN  Rarity: 0xc73...c19 Community Mod0 FTM0.046366452992
0x050d55ace36011043ef7985e55448de437800a32987aba9a9488379900218c55Claim203331722021-10-28 7:45:176 hrs 47 mins ago0xe03b31ad42ba89977c4559a9243d70bd443b26f3 IN  Rarity: 0xc73...c19 Community Mod0 FTM0.108535892861
0x99f13581b8fd41c1dd11bc7f810223cbf77d7ee039b5f63d978f4be80d9248baClaim203329422021-10-28 7:41:296 hrs 51 mins ago0xe03b31ad42ba89977c4559a9243d70bd443b26f3 IN  Rarity: 0xc73...c19 Community Mod0 FTM0.046610683932
0x3a23f956ac4593958c92074c471fb359e84dec762d4440bc257cd1749f6bfb58Claim203323922021-10-28 7:32:167 hrs ago0xe03b31ad42ba89977c4559a9243d70bd443b26f3 IN  Rarity: 0xc73...c19 Community Mod0 FTM0.048392978019
[ Download CSV Export 
Latest 2 internal transactions
Parent Txn Hash Block From To Value
0xcefe8601fc406ec40309d4b2568fd71d0d9a9f788da7be8d8710de18b2dde186169497382021-09-12 16:11:0845 days 22 hrs ago 0xe0de4653230031acaf61fd63ef2ec56ea5e8e91a Rarity: 0xc73...c19 Community Mod1 FTM
0x2e76976259bb75c5926ed866edf2a46be1d717ac336c85bea6fe717fc9a0decb169170842021-09-12 0:27:4146 days 14 hrs ago 0x84b5ff746e1c952dbf509fd3643f41a9fd98f7bc  Contract Creation0 FTM
[ Download CSV Export 
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
rarity_names

Compiler Version
v0.8.7+commit.e28d00a7

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MIT license

Contract Source Code (Solidity)

/**
 *Submitted for verification at FtmScan.com on 2021-09-12
*/

// SPDX-License-Identifier: MIT

pragma solidity 0.8.7;



// Part: Address

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

// Part: Base64

/// [MIT License]
/// @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);
    }
}

// Part: Context

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

// Part: IERC165

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

// Part: IERC721Receiver

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

// Part: Strings

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

// Part: rarity_gold

interface rarity_gold {
    function transferFrom(uint executor, uint from, uint to, uint amount) external returns (bool);
}

// Part: rarity_manifested

interface rarity_manifested {
    function getApproved(uint) external view returns (address);
    function ownerOf(uint) external view returns (address);
    function level(uint) external view returns (uint);
    function class(uint) external view returns (uint);
    function classes(uint id) external pure returns (string memory);
}

// Part: ERC165

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

// Part: IERC721

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

// Part: IERC721Enumerable

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

// Part: IERC721Metadata

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

// Part: ERC721

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

// Part: ERC721Enumerable

/**
 * @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: rarity_names.sol

contract rarity_names is ERC721Enumerable {
    uint private next_name = 1;

    rarity_manifested constant _rm = rarity_manifested(0xce761D788DF608BD21bdd59d6f4B54b2e27F25Bb);
    rarity_gold constant _gold = rarity_gold(0x2069B76Afe6b734Fb65D1d099E7ec64ee9CC76B2);

    uint public immutable NAME_AUTHORITY = 1672924;
    uint public immutable KEEPER = 1672965;
    uint public immutable NAME_GOLD_PRICE = 200e18;

    mapping(uint => string) public names;  // token => name
    mapping(uint => uint) public summoner_to_name_id; // summoner => token
    mapping(uint => uint) public name_id_to_summoner; // token => summoner
    mapping(string => bool) private _is_name_claimed;

    event NameClaimed(address indexed owner, uint indexed summoner, string name, uint name_id);
    event NameUpdated(uint indexed name_id, string old_name, string new_name);
    event NameAssigned(uint indexed name_id, uint indexed previous_summoner, uint indexed new_summoner);

    constructor() ERC721("Rarity Names", "names") {
    }

    function _isApprovedOrOwner(uint _summoner) internal view returns (bool) {
        return _rm.getApproved(_summoner) == msg.sender || _rm.ownerOf(_summoner) == msg.sender;
    }

    function summoner_name(uint summoner) public view returns (string memory name){
        name = names[summoner_to_name_id[summoner]];
    }

    function is_name_claimed(string memory name) external view returns(bool is_claimed) {
        is_claimed = _is_name_claimed[to_lower(name)];
    }

    // @dev Claim a name for a summoner. Summoner must hold the required gold.
    function claim(string memory name, uint summoner) public returns (uint name_id){
        require(_isApprovedOrOwner(summoner), '!owner');
        require(validate_name(name), 'invalid name');
        string memory lower_name = to_lower(name);
        require(!_is_name_claimed[lower_name], 'name taken');
        _gold.transferFrom(NAME_AUTHORITY, summoner, KEEPER, NAME_GOLD_PRICE);
        _mint(msg.sender, next_name);
        name_id = next_name;
        next_name++;
        names[name_id] = name;
        _is_name_claimed[lower_name] = true;
        assign_name(name_id, summoner);
        emit NameClaimed(msg.sender, summoner, name, name_id);
    }

    // @dev Move a name to a (new) summoner
    function assign_name(uint name_id, uint to) public {
        require(to > 0, "sorry summoner 0");
        require(_isApprovedOrOwner(msg.sender, name_id), "!owner or approved name");
        require(_isApprovedOrOwner(to), "!owner or approved to");
        require(summoner_to_name_id[to] == 0, "to already named");
        uint from = name_id_to_summoner[name_id];
        if (from > 0) {
            summoner_to_name_id[from] = 0;
        }
        summoner_to_name_id[to] = name_id;
        name_id_to_summoner[name_id] = to;
        emit NameAssigned(name_id, from, to);
    }

    // @dev Unlink a name from a summoner without transferring it.
    //      Use move_name to reassign the name.
    function clear_summoner_name(uint summoner) public {
        uint name_id = summoner_to_name_id[summoner];
        require(_isApprovedOrOwner(summoner) || _isApprovedOrOwner(msg.sender, name_id), "!owner or approved");
        summoner_to_name_id[summoner] = 0;
        name_id_to_summoner[name_id] = 0;
        emit NameAssigned(name_id, summoner, 0);
    }

    // @dev Change the capitalization (as it is unique).
    //      Can't change the name.
    function update_capitalization(uint name_id, string memory new_name) public {
        require(_isApprovedOrOwner(msg.sender, name_id), "!owner or approved name");
        require(validate_name(new_name), 'invalid name');
        string memory name = names[name_id];
        require(keccak256(abi.encodePacked(to_lower(name))) == keccak256(abi.encodePacked(to_lower(new_name))), 'name different');
        names[name_id] = new_name;
        emit NameUpdated(name_id, name, new_name);
    }

    // @dev Check if the name string is valid (Alphanumeric and spaces without leading or trailing space)
    function validate_name(string memory str) public pure returns (bool){
        bytes memory b = bytes(str);
        if(b.length < 1) return false;
        if(b.length > 25) return false; // Cannot be longer than 25 characters
        if(b[0] == 0x20) return false; // Leading space
        if (b[b.length - 1] == 0x20) return false; // Trailing space

        bytes1 last_char = b[0];

        for(uint i; i<b.length; i++){
            bytes1 char = b[i];

            if (char == 0x20 && last_char == 0x20) return false; // Cannot contain continous spaces

            if(
                !(char >= 0x30 && char <= 0x39) && //9-0
                !(char >= 0x41 && char <= 0x5A) && //A-Z
                !(char >= 0x61 && char <= 0x7A) && //a-z
                !(char == 0x20) //space
            )
                return false;

            last_char = char;
        }

        return true;
    }

    // @dev Converts the string to lowercase
    function to_lower(string memory str) public pure returns (string memory){
        bytes memory b_str = bytes(str);
        bytes memory b_lower = new bytes(b_str.length);
        for (uint i = 0; i < b_str.length; i++) {
            // Uppercase character
            if ((uint8(b_str[i]) >= 65) && (uint8(b_str[i]) <= 90)) {
                b_lower[i] = bytes1(uint8(b_str[i]) + 32);
            } else {
                b_lower[i] = b_str[i];
            }
        }
        return string(b_lower);
    }

    function tokenURI(uint name_id) public override view returns (string memory output) {
        uint summoner = name_id_to_summoner[name_id];
        output = '<svg xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="xMinYMin meet" viewBox="0 0 350 350"><style>.base { fill: white; font-family: serif; font-size: 14px; }</style><rect width="100%" height="100%" fill="black" /><text x="10" y="20" class="base">';
        if (summoner > 0) {
            output = string(abi.encodePacked(output, "Level ", toString(_rm.level(summoner)), ' ', _rm.classes(_rm.class(summoner)), '</text><text x="10" y="40" class="base">'));
        }
        output = string(abi.encodePacked(output, names[name_id], '</text></svg>'));
        output = string(abi.encodePacked('data:application/json;base64,', Base64.encode(bytes(string(abi.encodePacked('{"name": "', names[name_id], '", "description": "Rarity ERC721 names for summoners.", "image": "data:image/svg+xml;base64,', Base64.encode(bytes(output)), '"}'))))));
    }

    function toString(int value) internal pure returns (string memory) {
        string memory _string = '';
        if (value < 0) {
            _string = '-';
            value = value * -1;
        }
        return string(abi.encodePacked(_string, toString(uint(value))));
    }

    function toString(uint256 value) internal pure returns (string memory) {
    // Inspired by OraclizeAPI's implementation - MIT license
    // 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);
    }

}

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"name_id","type":"uint256"},{"indexed":true,"internalType":"uint256","name":"previous_summoner","type":"uint256"},{"indexed":true,"internalType":"uint256","name":"new_summoner","type":"uint256"}],"name":"NameAssigned","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"uint256","name":"summoner","type":"uint256"},{"indexed":false,"internalType":"string","name":"name","type":"string"},{"indexed":false,"internalType":"uint256","name":"name_id","type":"uint256"}],"name":"NameClaimed","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"name_id","type":"uint256"},{"indexed":false,"internalType":"string","name":"old_name","type":"string"},{"indexed":false,"internalType":"string","name":"new_name","type":"string"}],"name":"NameUpdated","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":"KEEPER","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"NAME_AUTHORITY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"NAME_GOLD_PRICE","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":"uint256","name":"name_id","type":"uint256"},{"internalType":"uint256","name":"to","type":"uint256"}],"name":"assign_name","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":"string","name":"name","type":"string"},{"internalType":"uint256","name":"summoner","type":"uint256"}],"name":"claim","outputs":[{"internalType":"uint256","name":"name_id","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"summoner","type":"uint256"}],"name":"clear_summoner_name","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"name","type":"string"}],"name":"is_name_claimed","outputs":[{"internalType":"bool","name":"is_claimed","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"name_id_to_summoner","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"names","outputs":[{"internalType":"string","name":"","type":"string"}],"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":"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":"uint256","name":"summoner","type":"uint256"}],"name":"summoner_name","outputs":[{"internalType":"string","name":"name","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"summoner_to_name_id","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"str","type":"string"}],"name":"to_lower","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"pure","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":"name_id","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"output","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"name_id","type":"uint256"},{"internalType":"string","name":"new_name","type":"string"}],"name":"update_capitalization","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"str","type":"string"}],"name":"validate_name","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"pure","type":"function"}]

60e06040526001600a55621986dc6080526219870560a052680ad78ebc5ac620000060c0523480156200003157600080fd5b50604080518082018252600c81526b526172697479204e616d657360a01b6020808301918252835180850190945260058452646e616d657360d81b9084015281519192916200008391600091620000a2565b50805162000099906001906020840190620000a2565b50505062000185565b828054620000b09062000148565b90600052602060002090601f016020900481019282620000d457600085556200011f565b82601f10620000ef57805160ff19168380011785556200011f565b828001600101855582156200011f579182015b828111156200011f57825182559160200191906001019062000102565b506200012d92915062000131565b5090565b5b808211156200012d576000815560010162000132565b600181811c908216806200015d57607f821691505b602082108114156200017f57634e487b7160e01b600052602260045260246000fd5b50919050565b60805160a05160c05161310c620001ca600039600081816102bf01526117f40152600081816103ab01526117ce01526000818161045f01526117a1015261310c6000f3fe608060405234801561001057600080fd5b50600436106101da5760003560e01c8063530a6e9a11610104578063a22cb465116100a2578063d4e6b57911610071578063d4e6b57914610434578063e64d2fb414610447578063e969e84d1461045a578063e985e9c51461048157600080fd5b8063a22cb465146103e8578063a3c16990146103fb578063b88d4fde1461040e578063c87b56dd1461042157600080fd5b80637d73456a116100de5780637d73456a14610386578063862a179e146103a657806395d89b41146103cd5780639a2ccd9b146103d557600080fd5b8063530a6e9a146103405780636352211e1461036057806370a082311461037357600080fd5b806323b872dd1161017c5780633103168b1161014b5780633103168b146102f457806342842e0e146103075780634622ab031461031a5780634f6ccce71461032d57600080fd5b806323b872dd1461029457806328ca5e16146102a75780632e86c9fb146102ba5780632f745c59146102e157600080fd5b8063095ea7b3116101b8578063095ea7b31461024757806312d39b411461025c57806318160ddd1461026f5780631a06682b1461028157600080fd5b806301ffc9a7146101df57806306fdde0314610207578063081812fc1461021c575b600080fd5b6101f26101ed3660046127ba565b6104bd565b60405190151581526020015b60405180910390f35b61020f6104e8565b6040516101fe9190612c7c565b61022f61022a3660046128e5565b61057a565b6040516001600160a01b0390911681526020016101fe565b61025a610255366004612771565b610614565b005b61020f61026a3660046128e5565b61072a565b6008545b6040519081526020016101fe565b6101f261028f3660046127f4565b6107d9565b61025a6102a2366004612682565b61080c565b61025a6102b536600461295e565b61083d565b6102737f000000000000000000000000000000000000000000000000000000000000000081565b6102736102ef366004612771565b6109e2565b61020f6103023660046127f4565b610a78565b61025a610315366004612682565b610bdb565b61020f6103283660046128e5565b610bf6565b61027361033b3660046128e5565b610c90565b61027361034e3660046128e5565b600c6020526000908152604090205481565b61022f61036e3660046128e5565b610d23565b61027361038136600461260f565b610d9a565b6102736103943660046128e5565b600d6020526000908152604090205481565b6102737f000000000000000000000000000000000000000000000000000000000000000081565b61020f610e21565b61025a6103e33660046128e5565b610e30565b61025a6103f6366004612743565b610ee9565b6101f26104093660046127f4565b610fae565b61025a61041c3660046126c3565b6111bd565b61020f61042f3660046128e5565b6111f5565b61025a610442366004612917565b61147c565b6102736104553660046128a0565b6116a4565b6102737f000000000000000000000000000000000000000000000000000000000000000081565b6101f261048f366004612649565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b60006001600160e01b0319821663780e9d6360e01b14806104e257506104e282611955565b92915050565b6060600080546104f790612e85565b80601f016020809104026020016040519081016040528092919081815260200182805461052390612e85565b80156105705780601f1061054557610100808354040283529160200191610570565b820191906000526020600020905b81548152906001019060200180831161055357829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b03166105f85760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b600061061f82610d23565b9050806001600160a01b0316836001600160a01b0316141561068d5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b60648201526084016105ef565b336001600160a01b03821614806106a957506106a9813361048f565b61071b5760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c000000000000000060648201526084016105ef565b61072583836119a5565b505050565b6000818152600c60209081526040808320548352600b909152902080546060919061075490612e85565b80601f016020809104026020016040519081016040528092919081815260200182805461078090612e85565b80156107cd5780601f106107a2576101008083540402835291602001916107cd565b820191906000526020600020905b8154815290600101906020018083116107b057829003601f168201915b50505050509050919050565b6000600e6107e683610a78565b6040516107f39190612a46565b9081526040519081900360200190205460ff1692915050565b6108163382611a13565b6108325760405162461bcd60e51b81526004016105ef90612d28565b610725838383611b0a565b600081116108805760405162461bcd60e51b815260206004820152601060248201526f0736f7272792073756d6d6f6e657220360841b60448201526064016105ef565b61088a3383611a13565b6108d05760405162461bcd60e51b8152602060048201526017602482015276216f776e6572206f7220617070726f766564206e616d6560481b60448201526064016105ef565b6108d981611cb5565b61091d5760405162461bcd60e51b8152602060048201526015602482015274216f776e6572206f7220617070726f76656420746f60581b60448201526064016105ef565b6000818152600c60205260409020541561096c5760405162461bcd60e51b815260206004820152601060248201526f1d1bc8185b1c9958591e481b985b595960821b60448201526064016105ef565b6000828152600d60205260409020548015610991576000818152600c60205260408120555b6000828152600c60209081526040808320869055858352600d909152808220849055518391839186917ffb3444e697907b7f9f215d555db229939eedfa321aa8a44fb32b6c8cd3a818ce91a4505050565b60006109ed83610d9a565b8210610a4f5760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b60648201526084016105ef565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b606060008290506000815167ffffffffffffffff811115610a9b57610a9b612f47565b6040519080825280601f01601f191660200182016040528015610ac5576020820181803683370190505b50905060005b8251811015610bd3576041838281518110610ae857610ae8612f31565b016020015160f81c10801590610b185750605a838281518110610b0d57610b0d612f31565b016020015160f81c11155b15610b7a57828181518110610b2f57610b2f612f31565b602001015160f81c60f81b60f81c6020610b499190612dea565b60f81b828281518110610b5e57610b5e612f31565b60200101906001600160f81b031916908160001a905350610bc1565b828181518110610b8c57610b8c612f31565b602001015160f81c60f81b828281518110610ba957610ba9612f31565b60200101906001600160f81b031916908160001a9053505b80610bcb81612ec0565b915050610acb565b509392505050565b610725838383604051806020016040528060008152506111bd565b600b6020526000908152604090208054610c0f90612e85565b80601f0160208091040260200160405190810160405280929190818152602001828054610c3b90612e85565b8015610c885780601f10610c5d57610100808354040283529160200191610c88565b820191906000526020600020905b815481529060010190602001808311610c6b57829003601f168201915b505050505081565b6000610c9b60085490565b8210610cfe5760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b60648201526084016105ef565b60088281548110610d1157610d11612f31565b90600052602060002001549050919050565b6000818152600260205260408120546001600160a01b0316806104e25760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b60648201526084016105ef565b60006001600160a01b038216610e055760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b60648201526084016105ef565b506001600160a01b031660009081526003602052604090205490565b6060600180546104f790612e85565b6000818152600c6020526040902054610e4882611cb5565b80610e585750610e583382611a13565b610e995760405162461bcd60e51b8152602060048201526012602482015271085bdddb995c881bdc88185c1c1c9bdd995960721b60448201526064016105ef565b6000828152600c60209081526040808320839055838352600d90915280822082905551839083907ffb3444e697907b7f9f215d555db229939eedfa321aa8a44fb32b6c8cd3a818ce908490a45050565b6001600160a01b038216331415610f425760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c65720000000000000060448201526064016105ef565b3360008181526005602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b600080829050600181511015610fc75750600092915050565b601981511115610fda5750600092915050565b80600081518110610fed57610fed612f31565b6020910101516001600160f81b031916600160fd1b14156110115750600092915050565b80600182516110209190612e42565b8151811061103057611030612f31565b6020910101516001600160f81b031916600160fd1b14156110545750600092915050565b60008160008151811061106957611069612f31565b01602001516001600160f81b031916905060005b82518110156111b257600083828151811061109a5761109a612f31565b01602001516001600160f81b0319169050600160fd1b811480156110cb5750600160fd1b6001600160f81b03198416145b156110dc5750600095945050505050565b600360fc1b6001600160f81b03198216108015906111085750603960f81b6001600160f81b0319821611155b15801561113e5750604160f81b6001600160f81b031982161080159061113c5750602d60f91b6001600160f81b0319821611155b155b80156111735750606160f81b6001600160f81b03198216108015906111715750603d60f91b6001600160f81b0319821611155b155b801561118d5750600160fd1b6001600160f81b0319821614155b1561119e5750600095945050505050565b9150806111aa81612ec0565b91505061107d565b506001949350505050565b6111c73383611a13565b6111e35760405162461bcd60e51b81526004016105ef90612d28565b6111ef84848484611de2565b50505050565b60606000600d600084815260200190815260200160002054905060405180610120016040528060fd8152602001612f9a60fd9139915080156113e0576040516302e2c6f960e11b81526004810182905282906112bf9073ce761d788df608bd21bdd59d6f4b54b2e27f25bb906305c58df29060240160206040518083038186803b15801561128257600080fd5b505afa158015611296573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112ba91906128fe565b611e15565b604051630d84ea7d60e21b81526004810184905273ce761d788df608bd21bdd59d6f4b54b2e27f25bb9063817dbe9f908290633613a9f49060240160206040518083038186803b15801561131257600080fd5b505afa158015611326573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061134a91906128fe565b6040518263ffffffff1660e01b815260040161136891815260200190565b60006040518083038186803b15801561138057600080fd5b505afa158015611394573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526113bc9190810190612829565b6040516020016113ce93929190612a9f565b60405160208183030381529060405291505b81600b6000858152602001908152602001600020604051602001611405929190612a62565b60408051601f198184030181529181526000858152600b602052209092506114559061143084611f13565b604051602001611441929190612b3e565b604051602081830303815290604052611f13565b6040516020016114659190612bfa565b604051602081830303815290604052915050919050565b6114863383611a13565b6114cc5760405162461bcd60e51b8152602060048201526017602482015276216f776e6572206f7220617070726f766564206e616d6560481b60448201526064016105ef565b6114d581610fae565b6115105760405162461bcd60e51b815260206004820152600c60248201526b696e76616c6964206e616d6560a01b60448201526064016105ef565b6000828152600b60205260408120805461152990612e85565b80601f016020809104026020016040519081016040528092919081815260200182805461155590612e85565b80156115a25780601f10611577576101008083540402835291602001916115a2565b820191906000526020600020905b81548152906001019060200180831161158557829003601f168201915b505050505090506115b282610a78565b6040516020016115c29190612a46565b604051602081830303815290604052805190602001206115e182610a78565b6040516020016115f19190612a46565b60405160208183030381529060405280519060200120146116455760405162461bcd60e51b815260206004820152600e60248201526d1b985b5948191a5999995c995b9d60921b60448201526064016105ef565b6000838152600b60209081526040909120835161166492850190612511565b50827f8eff5208043d31f23e348dc06be3a80821505e5b3e0002e9fa1185f5d47eac598284604051611697929190612c8f565b60405180910390a2505050565b60006116af82611cb5565b6116e45760405162461bcd60e51b815260206004820152600660248201526510b7bbb732b960d11b60448201526064016105ef565b6116ed83610fae565b6117285760405162461bcd60e51b815260206004820152600c60248201526b696e76616c6964206e616d6560a01b60448201526064016105ef565b600061173384610a78565b9050600e816040516117459190612a46565b9081526040519081900360200190205460ff16156117925760405162461bcd60e51b815260206004820152600a6024820152693730b6b2903a30b5b2b760b11b60448201526064016105ef565b604051638856f77960e01b81527f00000000000000000000000000000000000000000000000000000000000000006004820152602481018490527f000000000000000000000000000000000000000000000000000000000000000060448201527f00000000000000000000000000000000000000000000000000000000000000006064820152732069b76afe6b734fb65d1d099e7ec64ee9cc76b290638856f77990608401602060405180830381600087803b15801561185157600080fd5b505af1158015611865573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611889919061279d565b5061189633600a54612079565b600a80549250829060006118a983612ec0565b90915550506000828152600b6020908152604090912085516118cd92870190612511565b506001600e826040516118e09190612a46565b908152604051908190036020019020805491151560ff1990921691909117905561190a828461083d565b82336001600160a01b03167fd1145b6ff50bddbce9e12a4f8dbab17951d4b1ad1c5d654019932bb3b3961daf8685604051611946929190612cb4565b60405180910390a35092915050565b60006001600160e01b031982166380ac58cd60e01b148061198657506001600160e01b03198216635b5e139f60e01b145b806104e257506301ffc9a760e01b6001600160e01b03198316146104e2565b600081815260046020526040902080546001600160a01b0319166001600160a01b03841690811790915581906119da82610d23565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152600260205260408120546001600160a01b0316611a8c5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084016105ef565b6000611a9783610d23565b9050806001600160a01b0316846001600160a01b03161480611ad25750836001600160a01b0316611ac78461057a565b6001600160a01b0316145b80611b0257506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b0316611b1d82610d23565b6001600160a01b031614611b855760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b60648201526084016105ef565b6001600160a01b038216611be75760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b60648201526084016105ef565b611bf28383836121c7565b611bfd6000826119a5565b6001600160a01b0383166000908152600360205260408120805460019290611c26908490612e42565b90915550506001600160a01b0382166000908152600360205260408120805460019290611c54908490612dd2565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b60405163020604bf60e21b815260048101829052600090339073ce761d788df608bd21bdd59d6f4b54b2e27f25bb9063081812fc9060240160206040518083038186803b158015611d0557600080fd5b505afa158015611d19573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611d3d919061262c565b6001600160a01b031614806104e257506040516331a9108f60e11b815260048101839052339073ce761d788df608bd21bdd59d6f4b54b2e27f25bb90636352211e9060240160206040518083038186803b158015611d9a57600080fd5b505afa158015611dae573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611dd2919061262c565b6001600160a01b03161492915050565b611ded848484611b0a565b611df98484848461227f565b6111ef5760405162461bcd60e51b81526004016105ef90612cd6565b606081611e395750506040805180820190915260018152600360fc1b602082015290565b8160005b8115611e635780611e4d81612ec0565b9150611e5c9050600a83612e0f565b9150611e3d565b60008167ffffffffffffffff811115611e7e57611e7e612f47565b6040519080825280601f01601f191660200182016040528015611ea8576020820181803683370190505b5090505b8415611b0257611ebd600183612e42565b9150611eca600a86612edb565b611ed5906030612dd2565b60f81b818381518110611eea57611eea612f31565b60200101906001600160f81b031916908160001a905350611f0c600a86612e0f565b9450611eac565b805160609080611f33575050604080516020810190915260008152919050565b60006003611f42836002612dd2565b611f4c9190612e0f565b611f57906004612e23565b90506000611f66826020612dd2565b67ffffffffffffffff811115611f7e57611f7e612f47565b6040519080825280601f01601f191660200182016040528015611fa8576020820181803683370190505b5090506000604051806060016040528060408152602001613097604091399050600181016020830160005b86811015612034576003818a01810151603f601282901c8116860151600c83901c8216870151600684901c831688015192909316870151600891821b60ff94851601821b92841692909201901b91160160e01b835260049092019101611fd3565b50600386066001811461204e576002811461205f5761206b565b613d3d60f01b60011983015261206b565b603d60f81b6000198301525b505050918152949350505050565b6001600160a01b0382166120cf5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f206164647265737360448201526064016105ef565b6000818152600260205260409020546001600160a01b0316156121345760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000060448201526064016105ef565b612140600083836121c7565b6001600160a01b0382166000908152600360205260408120805460019290612169908490612dd2565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6001600160a01b0383166122225761221d81600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b612245565b816001600160a01b0316836001600160a01b031614612245576122458382612381565b6001600160a01b03821661225c576107258161241e565b826001600160a01b0316826001600160a01b0316146107255761072582826124cd565b60006001600160a01b0384163b156111b257604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906122c3903390899088908890600401612c3f565b602060405180830381600087803b1580156122dd57600080fd5b505af192505050801561230d575060408051601f3d908101601f1916820190925261230a918101906127d7565b60015b612367573d80801561233b576040519150601f19603f3d011682016040523d82523d6000602084013e612340565b606091505b50805161235f5760405162461bcd60e51b81526004016105ef90612cd6565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611b02565b6000600161238e84610d9a565b6123989190612e42565b6000838152600760205260409020549091508082146123eb576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b60085460009061243090600190612e42565b6000838152600960205260408120546008805493945090928490811061245857612458612f31565b90600052602060002001549050806008838154811061247957612479612f31565b60009182526020808320909101929092558281526009909152604080822084905585825281205560088054806124b1576124b1612f1b565b6001900381819060005260206000200160009055905550505050565b60006124d883610d9a565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b82805461251d90612e85565b90600052602060002090601f01602090048101928261253f5760008555612585565b82601f1061255857805160ff1916838001178555612585565b82800160010185558215612585579182015b8281111561258557825182559160200191906001019061256a565b50612591929150612595565b5090565b5b808211156125915760008155600101612596565b60006125bd6125b884612daa565b612d79565b90508281528383830111156125d157600080fd5b828260208301376000602084830101529392505050565b600082601f8301126125f957600080fd5b612608838335602085016125aa565b9392505050565b60006020828403121561262157600080fd5b813561260881612f5d565b60006020828403121561263e57600080fd5b815161260881612f5d565b6000806040838503121561265c57600080fd5b823561266781612f5d565b9150602083013561267781612f5d565b809150509250929050565b60008060006060848603121561269757600080fd5b83356126a281612f5d565b925060208401356126b281612f5d565b929592945050506040919091013590565b600080600080608085870312156126d957600080fd5b84356126e481612f5d565b935060208501356126f481612f5d565b925060408501359150606085013567ffffffffffffffff81111561271757600080fd5b8501601f8101871361272857600080fd5b612737878235602084016125aa565b91505092959194509250565b6000806040838503121561275657600080fd5b823561276181612f5d565b9150602083013561267781612f75565b6000806040838503121561278457600080fd5b823561278f81612f5d565b946020939093013593505050565b6000602082840312156127af57600080fd5b815161260881612f75565b6000602082840312156127cc57600080fd5b813561260881612f83565b6000602082840312156127e957600080fd5b815161260881612f83565b60006020828403121561280657600080fd5b813567ffffffffffffffff81111561281d57600080fd5b611b02848285016125e8565b60006020828403121561283b57600080fd5b815167ffffffffffffffff81111561285257600080fd5b8201601f8101841361286357600080fd5b80516128716125b882612daa565b81815285602083850101111561288657600080fd5b612897826020830160208601612e59565b95945050505050565b600080604083850312156128b357600080fd5b823567ffffffffffffffff8111156128ca57600080fd5b6128d6858286016125e8565b95602094909401359450505050565b6000602082840312156128f757600080fd5b5035919050565b60006020828403121561291057600080fd5b5051919050565b6000806040838503121561292a57600080fd5b82359150602083013567ffffffffffffffff81111561294857600080fd5b612954858286016125e8565b9150509250929050565b6000806040838503121561297157600080fd5b50508035926020909101359150565b60008151808452612998816020860160208601612e59565b601f01601f19169290920160200192915050565b8054600090600181811c90808316806129c657607f831692505b60208084108214156129e857634e487b7160e01b600052602260045260246000fd5b8180156129fc5760018114612a0d57612a3a565b60ff19861689528489019650612a3a565b60008881526020902060005b86811015612a325781548b820152908501908301612a19565b505084890196505b50505050505092915050565b60008251612a58818460208701612e59565b9190910192915050565b60008351612a74818460208801612e59565b612a80818401856129ac565b6c1e17ba32bc3a1f1e17b9bb339f60991b8152600d0195945050505050565b60008451612ab1818460208901612e59565b6502632bb32b6160d51b9083019081528451612ad4816006840160208901612e59565b600160fd1b600692909101918201528351612af6816007840160208801612e59565b7f3c2f746578743e3c7465787420783d2231302220793d2234302220636c61737360079290910191820152671e913130b9b2911f60c11b6027820152602f0195945050505050565b693d913730b6b2911d101160b11b81526000612b5d600a8301856129ac565b7f222c20226465736372697074696f6e223a20225261726974792045524337323181527f206e616d657320666f722073756d6d6f6e6572732e222c2022696d616765223a60208201527f2022646174613a696d6167652f7376672b786d6c3b6261736536342c0000000060408201528351612bdf81605c840160208801612e59565b61227d60f01b605c9290910191820152605e01949350505050565b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c000000815260008251612c3281601d850160208701612e59565b91909101601d0192915050565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090612c7290830184612980565b9695505050505050565b6020815260006126086020830184612980565b604081526000612ca26040830185612980565b82810360208401526128978185612980565b604081526000612cc76040830185612980565b90508260208301529392505050565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b604051601f8201601f1916810167ffffffffffffffff81118282101715612da257612da2612f47565b604052919050565b600067ffffffffffffffff821115612dc457612dc4612f47565b50601f01601f191660200190565b60008219821115612de557612de5612eef565b500190565b600060ff821660ff84168060ff03821115612e0757612e07612eef565b019392505050565b600082612e1e57612e1e612f05565b500490565b6000816000190483118215151615612e3d57612e3d612eef565b500290565b600082821015612e5457612e54612eef565b500390565b60005b83811015612e74578181015183820152602001612e5c565b838111156111ef5750506000910152565b600181811c90821680612e9957607f821691505b60208210811415612eba57634e487b7160e01b600052602260045260246000fd5b50919050565b6000600019821415612ed457612ed4612eef565b5060010190565b600082612eea57612eea612f05565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052603160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b0381168114612f7257600080fd5b50565b8015158114612f7257600080fd5b6001600160e01b031981168114612f7257600080fdfe3c73766720786d6c6e733d22687474703a2f2f7777772e77332e6f72672f323030302f73766722207072657365727665417370656374526174696f3d22784d696e594d696e206d656574222076696577426f783d223020302033353020333530223e3c7374796c653e2e62617365207b2066696c6c3a2077686974653b20666f6e742d66616d696c793a2073657269663b20666f6e742d73697a653a20313470783b207d3c2f7374796c653e3c726563742077696474683d223130302522206865696768743d2231303025222066696c6c3d22626c61636b22202f3e3c7465787420783d2231302220793d2232302220636c6173733d2262617365223e4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2fa2646970667358221220472b45472cf583d6068e3960bce57605be74f08fec78f298116b29170125b0e164736f6c63430008070033

Block Transaction Gas Used Reward
Age Block Fee Address BC Fee Address Voting Power Jailed Incoming
Validator ID :
0 FTM

Amount Staked
0

Amount Delegated
0

Staking Total
0

Staking Start Epoch
0

Staking Start Time
0

Proof of Importance
0

Origination Score
0

Validation Score
0

Active
0

Online
0

Downtime
0 s
Address Amount claimed Rewards Created On Epoch Created On
Block Uncle Number Difficulty Gas Used Reward
Loading
Loading
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.