ETH Price: $3,457.54 (+1.73%)

Token

SAMURAIcryptos_MakotoKobayashi (SMCMK)
 

Overview

Max Total Supply

2,267 SMCMK

Holders

1,401

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A

Other Info

Filtered by Token Holder
butlins.eth
Balance
5 SMCMK
0x15caac6fd6517a6e1deb8a888b53299418b07454
Loading...
Loading
Loading...
Loading
Loading...
Loading

OVERVIEW

SAMURAI cryptos. New realm of entertainment begins when NFT meets anime. It starts from 7 samurai arts by 7 artists. ""SAMURAI cryptos"" is a co-creation project that challenges the creation of new Anime IP for the NFT era. [ARTIST] Makoto ...

# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
SMCSymbol

Compiler Version
v0.8.4+commit.c7e474f2

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 18 : SMCSymbol.sol
// SPDX-License-Identifier: UNLICENSED
pragma solidity 0.8.4;

import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/security/Pausable.sol";
import "@openzeppelin/contracts/access/AccessControl.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";

import "./ISMCSymbol.sol";
import "./IApprovalProxy.sol";

abstract contract SMCSymbolERC721 is
    ISMCManager,
    ERC721Enumerable,
    AccessControl,
    Pausable,
    Ownable
{
    using Address for address;
    using Strings for uint256;

    event UpdateApprovalProxy(address _newProxyContract);

    bytes32 public constant MINTER_ROLE = keccak256("MINTER_ROLE");
    ISMCSymbolDescriptor public SMCSymbolDescriptorContract;
    ISMCSymbolData public SMCSymbolDataContract;
    IApprovalProxy public approvalProxy;

    string public Respect;
    uint256 public RespectColorCode;

    string[] private codesOfArts;

    uint256[] private limit = [0, 0, 4200, 700, 10, 1, 0, 0, 0, 0];
    uint256[] private rights = [0, 0, 1, 7, 100, 5000, 0, 0, 0, 0];

    uint256[] private katanaPattern5 = [11111111];
    uint256[] private katanaPattern4;
    uint256[] private katanaPattern3 = [
        11010100,
        11010010,
        11001010,
        10101010,
        10101001,
        10100101,
        10010101
    ];
    uint256[] private katanaPattern2 = [
        10000001,
        10000010,
        10000100,
        10001000,
        10010000,
        10100000,
        11000000
    ];

    constructor(
        string memory _name,
        string memory _synbol,
        string memory _respect,
        uint256 _respectColorCode,
        uint256 _katanaPattern4,
        string[] memory _codeOfArts
    ) ERC721(_name, _synbol) {
        Respect = _respect;
        RespectColorCode = _respectColorCode;
        katanaPattern4.push(_katanaPattern4);
        codesOfArts = _codeOfArts;

        _setupRole(DEFAULT_ADMIN_ROLE, _msgSender());
        _setupRole(MINTER_ROLE, _msgSender());
    }

    function setDescriptorContract(address descriptor) public onlyOwner {
        SMCSymbolDescriptorContract = ISMCSymbolDescriptor(descriptor);
    }

    function setDataContract(address dataContract) public onlyOwner {
        SMCSymbolDataContract = ISMCSymbolData(dataContract);
    }

    function exists(uint256 tokenId) public view returns (bool) {
        return _exists(tokenId);
    }

    function mint(address to, uint256 tokenId) public onlyRole(MINTER_ROLE) {
        require(isValidTokenId(tokenId), "SMCERC721: invalid tokenId");
        _mint(to, tokenId);
    }

    function mint(address[] memory tos, uint256[] memory tokenIds) public {
        require(
            tos.length == tokenIds.length,
            "SMCERC721: mint args must be equals"
        );
        for (uint256 i; i < tos.length; i++) {
            mint(tos[i], tokenIds[i]);
        }
    }

    function mintFor(
        address to,
        uint256 tokenId,
        bytes calldata mintingBlob
    ) public {
        mint(to, tokenId);
    }

    function setApprovalProxy(address _new) public onlyOwner {
        approvalProxy = IApprovalProxy(_new);
        emit UpdateApprovalProxy(_new);
    }

    function setApprovalForAll(address _spender, bool _approved)
        public
        virtual
        override(ERC721, IERC721)
    {
        if (
            address(approvalProxy) != address(0x0) &&
            Address.isContract(_spender)
        ) {
            approvalProxy.setApprovalForAll(msg.sender, _spender, _approved);
        }
        super.setApprovalForAll(_spender, _approved);
    }

    function isApprovedForAll(address _owner, address _spender)
        public
        view
        override(ERC721, IERC721)
        returns (bool)
    {
        bool original = super.isApprovedForAll(_owner, _spender);
        if (address(approvalProxy) != address(0x0)) {
            return approvalProxy.isApprovedForAll(_owner, _spender, original);
        }
        return original;
    }

    function pause() external onlyRole(MINTER_ROLE) {
        _pause();
    }

    function unpause() external onlyRole(MINTER_ROLE) {
        _unpause();
    }

    function getTypeId(uint256 tokenId) public view returns (uint256) {
        require(isValidTokenId(tokenId), "SMCSymbol: invalid token id");
        return tokenId / 10000;
    }

    function getSerial(uint256 tokenId) public view returns (uint256) {
        require(isValidTokenId(tokenId), "SMCSymbol: invalid token id");
        return tokenId % 10000;
    }

    function getIndex(uint256 tokenId) public view returns (uint256) {
        require(isValidTokenId(tokenId), "SMCSymbol: invalid token id");
        uint256 rarityDigit = getRarityDigit(tokenId);
        uint256 offset = 0;
        for (uint256 i = limit.length - 1; i > rarityDigit; i--) {
            offset += limit[i];
        }
        return offset + getSerial(tokenId);
    }

    function getRespect() public view override returns (string memory) {
        return Respect;
    }

    function getRespectColorCode() public view override returns (uint256) {
        return RespectColorCode;
    }

    function getCodesOfArt(uint256 tokenId)
        public
        view
        override
        returns (string memory)
    {
        return pluck(tokenId, "COA", codesOfArts);
    }

    function getRarity(uint256 tokenId)
        public
        view
        override
        returns (string memory)
    {
        return SMCSymbolDataContract.Rarities()[getRarityDigit(tokenId)];
    }

    function getSamurights(uint256 tokenId)
        public
        view
        override
        returns (uint256)
    {
        return rights[getRarityDigit(tokenId)];
    }

    function getName(uint256 tokenId)
        public
        view
        override
        returns (string memory)
    {
        string memory firstName = pluck(
            tokenId,
            "FIRSTNAME",
            SMCSymbolDataContract.FirstNames()
        );
        string memory initial = pluck(
            tokenId,
            "INITIAL",
            SMCSymbolDataContract.Initials()
        );

        return string(abi.encodePacked(firstName, " ", initial));
    }

    function getNativePlace(uint256 tokenId)
        public
        view
        override
        returns (string memory)
    {
        return
            pluck(tokenId, "NATIVEPLACE", SMCSymbolDataContract.NativePlaces());
    }

    function getJapaneseZodiac(uint256 tokenId)
        public
        view
        override
        returns (string memory)
    {
        return
            pluck(tokenId, "ZODIAC", SMCSymbolDataContract.JapaneseZodiacs());
    }

    function getColorLCode(uint256) public view override returns (uint256) {
        return RespectColorCode;
    }

    function getColorL(uint256 tokenId)
        public
        view
        override
        returns (string memory)
    {
        return SMCSymbolDataContract.Colors()[getColorLCode(tokenId)];
    }

    function getColorRCode(uint256 tokenId)
        public
        view
        override
        returns (uint256)
    {
        string[] memory colors = SMCSymbolDataContract.Colors();
        string[] memory patterns = SMCSymbolDataContract.Patterns();
        uint256 rarityDigit = getRarityDigit(tokenId);
        if (rarityDigit != 2) {
            return RespectColorCode;
        }

        uint256 code = (((getSerial(tokenId) - 1) /
            getKatanaPattern(rarityDigit).length /
            (patterns.length - 1) /
            (patterns.length - 1)) % (colors.length - 2)) + 1;

        if (code == RespectColorCode) {
            return colors.length - 1;
        }
        return code;
    }

    function getColorR(uint256 tokenId)
        public
        view
        override
        returns (string memory)
    {
        string[] memory colors = SMCSymbolDataContract.Colors();
        return colors[getColorRCode(tokenId)];
    }

    function getPatternLCode(uint256 tokenId)
        public
        view
        override
        returns (uint256)
    {
        string[] memory patterns = SMCSymbolDataContract.Patterns();

        uint256 rarityDigit = getRarityDigit(tokenId);

        if (rarityDigit == 5) {
            return 10;
        }

        if (rarityDigit == 4) {
            return 10;
        }

        uint256 code = ((getSerial(tokenId) - 1) /
            getKatanaPattern(rarityDigit).length /
            (patterns.length - 1)) % (patterns.length - 1);
        return code;
    }

    function getPatternL(uint256 tokenId)
        public
        view
        override
        returns (string memory)
    {
        string[] memory patterns = SMCSymbolDataContract.Patterns();

        return patterns[getPatternLCode(tokenId)];
    }

    function getPatternRCode(uint256 tokenId)
        public
        view
        override
        returns (uint256)
    {
        string[] memory patterns = SMCSymbolDataContract.Patterns();

        uint256 rarityDigit = getRarityDigit(tokenId);

        if (rarityDigit == 5) {
            return 10;
        }

        uint256 code = ((getSerial(tokenId) - 1) /
            getKatanaPattern(rarityDigit).length) % (patterns.length - 1);
        return code;
    }

    function getPatternR(uint256 tokenId)
        public
        view
        override
        returns (string memory)
    {
        string[] memory patterns = SMCSymbolDataContract.Patterns();

        return patterns[getPatternRCode(tokenId)];
    }

    function getKatanaPattern(uint256 rarity)
        private
        view
        returns (uint256[] memory)
    {
        if (rarity == 5) {
            return katanaPattern5;
        }
        if (rarity == 4) {
            return katanaPattern4;
        }
        if (rarity == 3) {
            return katanaPattern3;
        }
        if (rarity == 2) {
            return katanaPattern2;
        }
        require(true, "invalid rarity katana");
        uint256[] memory dummy;
        return dummy;
    }

    function getActivatedKatana(uint256 tokenId)
        public
        view
        override
        returns (string memory)
    {
        return pluckKatana(tokenId, getKatanaPattern(getRarityDigit(tokenId)));
    }

    function pluckKatana(uint256 tokenId, uint256[] memory sourceArray)
        internal
        view
        returns (string memory)
    {
        uint256 code = (getSerial(tokenId) - 1) % sourceArray.length;
        uint256 katana = sourceArray[code] * RespectColorCode;
        bytes memory strBytes = bytes(katana.toString());
        bytes memory result = new bytes(7);

        // triming first digit
        for (uint256 i = 1; i < 8; i++) {
            result[i - 1] = strBytes[i];
        }
        return string(result);
    }

    function tokenURI(uint256 tokenId)
        public
        view
        override
        returns (string memory)
    {
        require(isValidTokenId(tokenId), "SMCSymbol: invalid tokenId");
        return
            ISMCSymbolDescriptor(SMCSymbolDescriptorContract).tokenURI(
                this,
                tokenId
            );
    }

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

    function _beforeTokenTransfer(
        address from,
        address to,
        uint256 tokenId
    ) internal override {
        super._beforeTokenTransfer(from, to, tokenId);
        require(!paused(), "ERC721Pausable: token transfer while paused");
    }

    function getRarityDigit(uint256 tokenId)
        public
        view
        override
        returns (uint256)
    {
        require(isValidTokenId(tokenId), "SMCSymbol: invalid tokenId");
        return tokenId / 10000000;
    }

    function isValidTokenId(uint256 tokenId) internal view returns (bool) {
        uint256 r = tokenId / 10000000;
        if (r > 9) {
            return false;
        }

        uint256 l = limit[r];
        uint256 serial = tokenId % 10000;

        if (serial == 0) {
            return false;
        }

        if (serial > l) {
            return false;
        }

        return true;
    }

    function pluck(
        uint256 tokenId,
        string memory keyPrefix,
        string[] memory sourceArray
    ) internal view returns (string memory) {
        uint256 rand = random(keyPrefix, tokenId);
        string memory output = sourceArray[rand % sourceArray.length];
        return output;
    }

    function random(string memory prefix, uint256 tokenId)
        internal
        view
        returns (uint256)
    {
        return random(string(abi.encodePacked(prefix, tokenId.toString())));
    }

    function random(string memory input) internal view returns (uint256) {
        return
            uint256(
                keccak256(abi.encodePacked(RespectColorCode.toString(), input))
            );
    }
}

contract SMCSymbol is SMCSymbolERC721 {
    constructor(
        string memory _name,
        string memory _synbol,
        string memory _respect,
        uint256 _respectColorCode,
        uint256 _katanaPattern4,
        string[] memory _codeOfArts
    )
        SMCSymbolERC721(
            _name,
            _synbol,
            _respect,
            _respectColorCode,
            _katanaPattern4,
            _codeOfArts
        )
    {}
}

File 2 of 18 : 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 18 : Pausable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

/**
 * @dev Contract module which allows children to implement an emergency stop
 * mechanism that can be triggered by an authorized account.
 *
 * This module is used through inheritance. It will make available the
 * modifiers `whenNotPaused` and `whenPaused`, which can be applied to
 * the functions of your contract. Note that they will not be pausable by
 * simply including this module, only once the modifiers are put in place.
 */
abstract contract Pausable is Context {
    /**
     * @dev Emitted when the pause is triggered by `account`.
     */
    event Paused(address account);

    /**
     * @dev Emitted when the pause is lifted by `account`.
     */
    event Unpaused(address account);

    bool private _paused;

    /**
     * @dev Initializes the contract in unpaused state.
     */
    constructor() {
        _paused = false;
    }

    /**
     * @dev Returns true if the contract is paused, and false otherwise.
     */
    function paused() public view virtual returns (bool) {
        return _paused;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is not paused.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    modifier whenNotPaused() {
        require(!paused(), "Pausable: paused");
        _;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is paused.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    modifier whenPaused() {
        require(paused(), "Pausable: not paused");
        _;
    }

    /**
     * @dev Triggers stopped state.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    function _pause() internal virtual whenNotPaused {
        _paused = true;
        emit Paused(_msgSender());
    }

    /**
     * @dev Returns to normal state.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    function _unpause() internal virtual whenPaused {
        _paused = false;
        emit Unpaused(_msgSender());
    }
}

File 4 of 18 : AccessControl.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "./IAccessControl.sol";
import "../utils/Context.sol";
import "../utils/Strings.sol";
import "../utils/introspection/ERC165.sol";

/**
 * @dev Contract module that allows children to implement role-based access
 * control mechanisms. This is a lightweight version that doesn't allow enumerating role
 * members except through off-chain means by accessing the contract event logs. Some
 * applications may benefit from on-chain enumerability, for those cases see
 * {AccessControlEnumerable}.
 *
 * Roles are referred to by their `bytes32` identifier. These should be exposed
 * in the external API and be unique. The best way to achieve this is by
 * using `public constant` hash digests:
 *
 * ```
 * bytes32 public constant MY_ROLE = keccak256("MY_ROLE");
 * ```
 *
 * Roles can be used to represent a set of permissions. To restrict access to a
 * function call, use {hasRole}:
 *
 * ```
 * function foo() public {
 *     require(hasRole(MY_ROLE, msg.sender));
 *     ...
 * }
 * ```
 *
 * Roles can be granted and revoked dynamically via the {grantRole} and
 * {revokeRole} functions. Each role has an associated admin role, and only
 * accounts that have a role's admin role can call {grantRole} and {revokeRole}.
 *
 * By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means
 * that only accounts with this role will be able to grant or revoke other
 * roles. More complex role relationships can be created by using
 * {_setRoleAdmin}.
 *
 * WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to
 * grant and revoke this role. Extra precautions should be taken to secure
 * accounts that have been granted it.
 */
abstract contract AccessControl is Context, IAccessControl, ERC165 {
    struct RoleData {
        mapping(address => bool) members;
        bytes32 adminRole;
    }

    mapping(bytes32 => RoleData) private _roles;

    bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00;

    /**
     * @dev Modifier that checks that an account has a specific role. Reverts
     * with a standardized message including the required role.
     *
     * The format of the revert reason is given by the following regular expression:
     *
     *  /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/
     *
     * _Available since v4.1._
     */
    modifier onlyRole(bytes32 role) {
        _checkRole(role, _msgSender());
        _;
    }

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

    /**
     * @dev Returns `true` if `account` has been granted `role`.
     */
    function hasRole(bytes32 role, address account) public view override returns (bool) {
        return _roles[role].members[account];
    }

    /**
     * @dev Revert with a standard message if `account` is missing `role`.
     *
     * The format of the revert reason is given by the following regular expression:
     *
     *  /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/
     */
    function _checkRole(bytes32 role, address account) internal view {
        if (!hasRole(role, account)) {
            revert(
                string(
                    abi.encodePacked(
                        "AccessControl: account ",
                        Strings.toHexString(uint160(account), 20),
                        " is missing role ",
                        Strings.toHexString(uint256(role), 32)
                    )
                )
            );
        }
    }

    /**
     * @dev Returns the admin role that controls `role`. See {grantRole} and
     * {revokeRole}.
     *
     * To change a role's admin, use {_setRoleAdmin}.
     */
    function getRoleAdmin(bytes32 role) public view override returns (bytes32) {
        return _roles[role].adminRole;
    }

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function grantRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) {
        _grantRole(role, account);
    }

    /**
     * @dev Revokes `role` from `account`.
     *
     * If `account` had been granted `role`, emits a {RoleRevoked} event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function revokeRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) {
        _revokeRole(role, account);
    }

    /**
     * @dev Revokes `role` from the calling account.
     *
     * Roles are often managed via {grantRole} and {revokeRole}: this function's
     * purpose is to provide a mechanism for accounts to lose their privileges
     * if they are compromised (such as when a trusted device is misplaced).
     *
     * If the calling account had been granted `role`, emits a {RoleRevoked}
     * event.
     *
     * Requirements:
     *
     * - the caller must be `account`.
     */
    function renounceRole(bytes32 role, address account) public virtual override {
        require(account == _msgSender(), "AccessControl: can only renounce roles for self");

        _revokeRole(role, account);
    }

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event. Note that unlike {grantRole}, this function doesn't perform any
     * checks on the calling account.
     *
     * [WARNING]
     * ====
     * This function should only be called from the constructor when setting
     * up the initial roles for the system.
     *
     * Using this function in any other way is effectively circumventing the admin
     * system imposed by {AccessControl}.
     * ====
     */
    function _setupRole(bytes32 role, address account) internal virtual {
        _grantRole(role, account);
    }

    /**
     * @dev Sets `adminRole` as ``role``'s admin role.
     *
     * Emits a {RoleAdminChanged} event.
     */
    function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal virtual {
        bytes32 previousAdminRole = getRoleAdmin(role);
        _roles[role].adminRole = adminRole;
        emit RoleAdminChanged(role, previousAdminRole, adminRole);
    }

    function _grantRole(bytes32 role, address account) private {
        if (!hasRole(role, account)) {
            _roles[role].members[account] = true;
            emit RoleGranted(role, account, _msgSender());
        }
    }

    function _revokeRole(bytes32 role, address account) private {
        if (hasRole(role, account)) {
            _roles[role].members[account] = false;
            emit RoleRevoked(role, account, _msgSender());
        }
    }
}

File 5 of 18 : 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 6 of 18 : ISMCSymbol.sol
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.0;

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

interface ISMCSymbolDescriptor {
    function tokenURI(ISMCManager manager, uint256 tokenId)
        external
        view
        returns (string memory);
}

interface ISMCSymbolData {
    function JapaneseZodiacs() external view returns (string[] memory);

    function Initials() external view returns (string[] memory);

    function Rarities() external view returns (string[] memory);

    function FirstNames() external view returns (string[] memory);

    function NativePlaces() external view returns (string[] memory);

    function Colors() external view returns (string[] memory);

    function Patterns() external view returns (string[] memory);
}

interface ISMCManager is IERC721 {
    function getRespect() external view returns (string memory);

    function getRespectColorCode() external view returns (uint256);

    function getCodesOfArt(uint256 tokenId)
        external
        view
        returns (string memory);

    function getRarity(uint256 tokenId) external view returns (string memory);

    function getRarityDigit(uint256 tokenId) external view returns (uint256);

    function getSamurights(uint256 tokenId) external view returns (uint256);

    function getName(uint256 tokenId) external view returns (string memory);

    function getNativePlace(uint256 tokenId)
        external
        view
        returns (string memory);

    function getJapaneseZodiac(uint256 tokenId)
        external
        view
        returns (string memory);

    function getColorLCode(uint256 tokenId) external view returns (uint256);

    function getColorL(uint256 tokenId) external view returns (string memory);

    function getColorRCode(uint256 tokenId) external view returns (uint256);

    function getColorR(uint256 tokenId) external view returns (string memory);

    function getPatternLCode(uint256 tokenId) external view returns (uint256);

    function getPatternL(uint256 tokenId) external view returns (string memory);

    function getPatternRCode(uint256 tokenId) external view returns (uint256);

    function getPatternR(uint256 tokenId) external view returns (string memory);

    function getActivatedKatana(uint256 tokenId)
        external
        view
        returns (string memory);
}

File 7 of 18 : IApprovalProxy.sol
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.0;

interface IApprovalProxy {
    function setApprovalForAll(
        address _owner,
        address _spender,
        bool _approved
    ) external;

    function isApprovedForAll(
        address _owner,
        address _spender,
        bool _original
    ) external view returns (bool);
}

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

pragma solidity ^0.8.0;

/**
 * @dev External interface of AccessControl declared to support ERC165 detection.
 */
interface IAccessControl {
    /**
     * @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole`
     *
     * `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite
     * {RoleAdminChanged} not being emitted signaling this.
     *
     * _Available since v3.1._
     */
    event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole);

    /**
     * @dev Emitted when `account` is granted `role`.
     *
     * `sender` is the account that originated the contract call, an admin role
     * bearer except when using {AccessControl-_setupRole}.
     */
    event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender);

    /**
     * @dev Emitted when `account` is revoked `role`.
     *
     * `sender` is the account that originated the contract call:
     *   - if using `revokeRole`, it is the admin role bearer
     *   - if using `renounceRole`, it is the role bearer (i.e. `account`)
     */
    event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender);

    /**
     * @dev Returns `true` if `account` has been granted `role`.
     */
    function hasRole(bytes32 role, address account) external view returns (bool);

    /**
     * @dev Returns the admin role that controls `role`. See {grantRole} and
     * {revokeRole}.
     *
     * To change a role's admin, use {AccessControl-_setRoleAdmin}.
     */
    function getRoleAdmin(bytes32 role) external view returns (bytes32);

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function grantRole(bytes32 role, address account) external;

    /**
     * @dev Revokes `role` from `account`.
     *
     * If `account` had been granted `role`, emits a {RoleRevoked} event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function revokeRole(bytes32 role, address account) external;

    /**
     * @dev Revokes `role` from the calling account.
     *
     * Roles are often managed via {grantRole} and {revokeRole}: this function's
     * purpose is to provide a mechanism for accounts to lose their privileges
     * if they are compromised (such as when a trusted device is misplaced).
     *
     * If the calling account had been granted `role`, emits a {RoleRevoked}
     * event.
     *
     * Requirements:
     *
     * - the caller must be `account`.
     */
    function renounceRole(bytes32 role, address account) external;
}

File 10 of 18 : 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 11 of 18 : 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 12 of 18 : IERC165.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

File 13 of 18 : 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 14 of 18 : 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 15 of 18 : 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 16 of 18 : 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 17 of 18 : 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 18 of 18 : 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);
            }
        }
    }
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"_name","type":"string"},{"internalType":"string","name":"_synbol","type":"string"},{"internalType":"string","name":"_respect","type":"string"},{"internalType":"uint256","name":"_respectColorCode","type":"uint256"},{"internalType":"uint256","name":"_katanaPattern4","type":"uint256"},{"internalType":"string[]","name":"_codeOfArts","type":"string[]"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"previousAdminRole","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"newAdminRole","type":"bytes32"}],"name":"RoleAdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleRevoked","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"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"_newProxyContract","type":"address"}],"name":"UpdateApprovalProxy","type":"event"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MINTER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"Respect","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"RespectColorCode","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"SMCSymbolDataContract","outputs":[{"internalType":"contract ISMCSymbolData","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"SMCSymbolDescriptorContract","outputs":[{"internalType":"contract ISMCSymbolDescriptor","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"approvalProxy","outputs":[{"internalType":"contract IApprovalProxy","name":"","type":"address"}],"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":"exists","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getActivatedKatana","outputs":[{"internalType":"string","name":"","type":"string"}],"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":"uint256","name":"tokenId","type":"uint256"}],"name":"getCodesOfArt","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getColorL","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"getColorLCode","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getColorR","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getColorRCode","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getJapaneseZodiac","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getName","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getNativePlace","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getPatternL","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getPatternLCode","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getPatternR","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getPatternRCode","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getRarity","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getRarityDigit","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getRespect","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getRespectColorCode","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getSamurights","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getSerial","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getTypeId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"},{"internalType":"address","name":"_spender","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"tos","type":"address[]"},{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"mintingBlob","type":"bytes"}],"name":"mintFor","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_spender","type":"address"},{"internalType":"bool","name":"_approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_new","type":"address"}],"name":"setApprovalProxy","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"dataContract","type":"address"}],"name":"setDataContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"descriptor","type":"address"}],"name":"setDescriptorContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"}]

6101c06040526000608081815260a082905261106860c0526102bc60e052600a6101008190526001610120526101408390526101608390526101808390526101a092909252620000539160129190620003cb565b506040805161014081018252600080825260208201819052600192820192909252600760608201526064608082015261138860a082015260c0810182905260e081018290526101008101829052610120810191909152620000b990601390600a620003cb565b50604080516020810190915262a98ac78152620000db90601490600162000421565b506040805160e08101825262a80034815262a7ffda602082015262a7dcb291810191909152629a21126060820152629a21096080820152629a1d8560a08201526298bdf560c08201526200013490601690600762000421565b506040805160e0810182526298968181526298968a6020820152629896e49181019190915262989a6860608201526298bd906080820152629a1d2060a082015262a7d8c060c08201526200018d90601790600762000421565b503480156200019b57600080fd5b506040516200468038038062004680833981016040819052620001be91620006f9565b85858585858585858160009080519060200190620001de92919062000466565b508051620001f490600190602084019062000466565b5050600b805460ff19169055506200020c33620002bd565b83516200022190600f90602087019062000466565b506010839055601580546001810182556000919091527f55f448fdea98c4d29eb340757ef0a66cd03dbb9538908a6a81d96026b71ec47501829055805162000271906011906020840190620004e3565b506200027f60003362000317565b620002ab7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a63362000317565b50505050505050505050505062000845565b600b80546001600160a01b03838116610100818102610100600160a81b031985161790945560405193909204169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b62000323828262000327565b5050565b6000828152600a602090815260408083206001600160a01b038516845290915290205460ff1662000323576000828152600a602090815260408083206001600160a01b03851684529091529020805460ff19166001179055620003873390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b8280548282559060005260206000209081019282156200040f579160200282015b828111156200040f578251829061ffff16905591602001919060010190620003ec565b506200041d92915062000543565b5090565b8280548282559060005260206000209081019282156200040f579160200282015b828111156200040f578251829062ffffff1690559160200191906001019062000442565b8280546200047490620007f2565b90600052602060002090601f0160209004810192826200049857600085556200040f565b82601f10620004b357805160ff19168380011785556200040f565b828001600101855582156200040f579182015b828111156200040f578251825591602001919060010190620004c6565b82805482825590600052602060002090810192821562000535579160200282015b828111156200053557825180516200052491849160209091019062000466565b509160200191906001019062000504565b506200041d9291506200055a565b5b808211156200041d576000815560010162000544565b808211156200041d5760006200057182826200057b565b506001016200055a565b5080546200058990620007f2565b6000825580601f106200059a575050565b601f016020900490600052602060002090810190620005ba919062000543565b50565b600082601f830112620005ce578081fd5b815160206001600160401b0380831115620005ed57620005ed6200082f565b8260051b620005fe838201620007bf565b8481528381019087850183890186018a101562000619578788fd5b8793505b868410156200065b5780518581111562000635578889fd5b620006458b88838d010162000668565b845250600193909301929185019185016200061d565b5098975050505050505050565b600082601f83011262000679578081fd5b81516001600160401b038111156200069557620006956200082f565b6020620006ab601f8301601f19168201620007bf565b8281528582848701011115620006bf578384fd5b835b83811015620006de578581018301518282018401528201620006c1565b83811115620006ef57848385840101525b5095945050505050565b60008060008060008060c0878903121562000712578182fd5b86516001600160401b038082111562000729578384fd5b620007378a838b0162000668565b975060208901519150808211156200074d578384fd5b6200075b8a838b0162000668565b9650604089015191508082111562000771578384fd5b6200077f8a838b0162000668565b9550606089015194506080890151935060a0890151915080821115620007a3578283fd5b50620007b289828a01620005bd565b9150509295509295509295565b604051601f8201601f191681016001600160401b0381118282101715620007ea57620007ea6200082f565b604052919050565b600181811c908216806200080757607f821691505b602082108114156200082957634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052604160045260246000fd5b613e2b80620008556000396000f3fe608060405234801561001057600080fd5b50600436106103ba5760003560e01c806370a08231116101f4578063a35ec5611161011a578063d547741f116100ad578063e467f7e01161007c578063e467f7e0146107ea578063e985e9c5146107fd578063f2f70d9814610810578063f2fde38b1461082357600080fd5b8063d547741f146107a7578063d7a65b8b146107ba578063d7c118bf146107cf578063e41ad71e146107e257600080fd5b8063c8159728116100e9578063c815972814610759578063c87b56dd1461076c578063d37825b21461077f578063d53913931461079257600080fd5b8063a35ec56114610718578063b084d26314610720578063b480986714610733578063b88d4fde1461074657600080fd5b80638da5cb5b116101925780639b6b5b66116101615780639b6b5b66146106d75780639bb5c9c3146106ea578063a217fddf146106fd578063a22cb4651461070557600080fd5b80638da5cb5b146106935780638e7cb6e1146106a957806391d14854146106bc57806395d89b41146106cf57600080fd5b806379980b1a116101ce57806379980b1a1461065c578063836860f01461066f5780638456cb591461068257806386a1aec71461068a57600080fd5b806370a082311461062e578063715018a614610641578063717e4d581461064957600080fd5b806335af5fd9116102e45780634b92ddd5116102775780634f6ccce7116102465780634f6ccce7146105ea5780635c975abb146105fd5780636352211e146106085780636b8ff5741461061b57600080fd5b80634b92ddd51461059e5780634dd09f33146105b15780634f1bd6d0146105c45780634f558e79146105d757600080fd5b806340c10f19116102b357806340c10f191461055257806342842e0e14610565578063430cb87514610578578063487586971461058b57600080fd5b806335af5fd91461051157806336568abe146105245780633d56c901146105375780633f4ba83a1461054a57600080fd5b806319ee6e3f1161035c578063248a9ca31161032b578063248a9ca3146104b55780632a1b4866146104d85780632f2ff15d146104eb5780632f745c59146104fe57600080fd5b806319ee6e3f146104745780631ae583ca146104875780631d2ed7c21461048f57806323b872dd146104a257600080fd5b806306fdde031161039857806306fdde031461041c578063081812fc14610424578063095ea7b31461044f57806318160ddd1461046257600080fd5b806301ffc9a7146103bf57806302d41265146103e757806303959bb714610407575b600080fd5b6103d26103cd366004613917565b610836565b60405190151581526020015b60405180910390f35b6103fa6103f53660046138dd565b610847565b6040516103de9190613ac1565b61041a610415366004613549565b61090f565b005b6103fa61096a565b6104376104323660046138dd565b6109fc565b6040516001600160a01b0390911681526020016103de565b61041a61045d3660046136a4565b610a91565b6008545b6040519081526020016103de565b61041a6104823660046136cd565b610ba7565b6103fa610bb7565b6103fa61049d3660046138dd565b610c45565b61041a6104b0366004613595565b610cf9565b6104666104c33660046138dd565b6000908152600a602052604090206001015490565b6103fa6104e63660046138dd565b610d2a565b61041a6104f93660046138f5565b610ddc565b61046661050c3660046136a4565b610e02565b61046661051f3660046138dd565b610e98565b61041a6105323660046138f5565b610f93565b6104666105453660046138dd565b611011565b61041a61111a565b61041a6105603660046136a4565b61113e565b61041a610573366004613595565b6111b6565b600d54610437906001600160a01b031681565b6103fa6105993660046138dd565b6111d1565b6104666105ac3660046138dd565b61125b565b600e54610437906001600160a01b031681565b6103fa6105d23660046138dd565b61143b565b6103d26105e53660046138dd565b6114d5565b6104666105f83660046138dd565b6114f4565b600b5460ff166103d2565b6104376106163660046138dd565b611595565b6103fa6106293660046138dd565b61160c565b61046661063c366004613549565b611727565b61041a6117ae565b6103fa6106573660046138dd565b6117ea565b61046661066a3660046138dd565b6118e3565b61046661067d3660046138dd565b611947565b61041a61197a565b61046660105481565b600b5461010090046001600160a01b0316610437565b6104666106b73660046138dd565b61199b565b6103d26106ca3660046138f5565b611a56565b6103fa611a81565b6104666106e53660046138dd565b611a90565b61041a6106f8366004613549565b611ac3565b610466600081565b61041a61071336600461366e565b611b47565b6103fa611bde565b6103fa61072e3660046138dd565b611bed565b600c54610437906001600160a01b031681565b61041a6107543660046135d0565b611c09565b6103fa6107673660046138dd565b611c3b565b6103fa61077a3660046138dd565b611cd5565b61041a61078d366004613549565b611db2565b610466600080516020613dd683398151915281565b61041a6107b53660046138f5565b611e04565b6104666107c83660046138dd565b5060105490565b6103fa6107dd3660046138dd565b611e2a565b601054610466565b61041a6107f836600461374f565b611ea2565b6103d261080b366004613563565b611f75565b61046661081e3660046138dd565b612049565b61041a610831366004613549565b612074565b600061084182612112565b92915050565b60606000600d60009054906101000a90046001600160a01b03166001600160a01b03166320d67e3d6040518163ffffffff1660e01b815260040160006040518083038186803b15801561089957600080fd5b505afa1580156108ad573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526108d59190810190613810565b9050806108e18461125b565b815181106108ff57634e487b7160e01b600052603260045260246000fd5b6020026020010151915050919050565b600b546001600160a01b036101009091041633146109485760405162461bcd60e51b815260040161093f90613b26565b60405180910390fd5b600d80546001600160a01b0319166001600160a01b0392909216919091179055565b60606000805461097990613d05565b80601f01602080910402602001604051908101604052809291908181526020018280546109a590613d05565b80156109f25780601f106109c7576101008083540402835291602001916109f2565b820191906000526020600020905b8154815290600101906020018083116109d557829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b0316610a755760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b606482015260840161093f565b506000908152600460205260409020546001600160a01b031690565b6000610a9c82611595565b9050806001600160a01b0316836001600160a01b03161415610b0a5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b606482015260840161093f565b336001600160a01b0382161480610b265750610b268133611f75565b610b985760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000606482015260840161093f565b610ba28383612137565b505050565b610bb1848461113e565b50505050565b600f8054610bc490613d05565b80601f0160208091040260200160405190810160405280929190818152602001828054610bf090613d05565b8015610c3d5780601f10610c1257610100808354040283529160200191610c3d565b820191906000526020600020905b815481529060010190602001808311610c2057829003601f168201915b505050505081565b606061084182604051806040016040528060068152602001655a4f4449414360d01b815250600d60009054906101000a90046001600160a01b03166001600160a01b03166301ef27136040518163ffffffff1660e01b815260040160006040518083038186803b158015610cb857600080fd5b505afa158015610ccc573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610cf49190810190613810565b6121a5565b610d0333826121f9565b610d1f5760405162461bcd60e51b815260040161093f90613b92565b610ba28383836122c8565b600d54604080516320d67e3d60e01b815290516060926001600160a01b0316916320d67e3d916004808301926000929190829003018186803b158015610d6f57600080fd5b505afa158015610d83573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610dab9190810190613810565b6010545b81518110610dcd57634e487b7160e01b600052603260045260246000fd5b60200260200101519050919050565b6000828152600a6020526040902060010154610df88133612473565b610ba283836124d7565b6000610e0d83611727565b8210610e6f5760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b606482015260840161093f565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b600080600d60009054906101000a90046001600160a01b03166001600160a01b031663afa657806040518163ffffffff1660e01b815260040160006040518083038186803b158015610ee957600080fd5b505afa158015610efd573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610f259190810190613810565b90506000610f32846118e3565b90508060051415610f475750600a9392505050565b600060018351610f579190613cab565b610f608361255d565b516001610f6c88611947565b610f769190613cab565b610f809190613c78565b610f8a9190613d5b565b95945050505050565b6001600160a01b03811633146110035760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b606482015260840161093f565b61100d82826126e5565b5050565b600080600d60009054906101000a90046001600160a01b03166001600160a01b031663afa657806040518163ffffffff1660e01b815260040160006040518083038186803b15801561106257600080fd5b505afa158015611076573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261109e9190810190613810565b905060006110ab846118e3565b905080600514156110c05750600a9392505050565b80600414156110d35750600a9392505050565b6000600183516110e39190613cab565b600184516110f19190613cab565b6110fa8461255d565b51600161110689611947565b6111109190613cab565b610f769190613c78565b600080516020613dd68339815191526111338133612473565b61113b61274c565b50565b600080516020613dd68339815191526111578133612473565b611160826127df565b6111ac5760405162461bcd60e51b815260206004820152601a60248201527f534d434552433732313a20696e76616c696420746f6b656e4964000000000000604482015260640161093f565b610ba2838361286f565b610ba283838360405180602001604052806000815250611c09565b600d5460408051630261230f60e11b815290516060926001600160a01b0316916304c2461e916004808301926000929190829003018186803b15801561121657600080fd5b505afa15801561122a573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526112529190810190613810565b610daf836118e3565b600080600d60009054906101000a90046001600160a01b03166001600160a01b03166320d67e3d6040518163ffffffff1660e01b815260040160006040518083038186803b1580156112ac57600080fd5b505afa1580156112c0573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526112e89190810190613810565b90506000600d60009054906101000a90046001600160a01b03166001600160a01b031663afa657806040518163ffffffff1660e01b815260040160006040518083038186803b15801561133a57600080fd5b505afa15801561134e573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526113769190810190613810565b90506000611383856118e3565b9050806002146113995750506010549392505050565b6000600284516113a99190613cab565b600184516113b79190613cab565b600185516113c59190613cab565b6113ce8561255d565b5160016113da8b611947565b6113e49190613cab565b6113ee9190613c78565b6113f89190613c78565b6114029190613c78565b61140c9190613d5b565b611417906001613c60565b9050601054811415610f8a57600184516114319190613cab565b9695505050505050565b60606000600d60009054906101000a90046001600160a01b03166001600160a01b031663afa657806040518163ffffffff1660e01b815260040160006040518083038186803b15801561148d57600080fd5b505afa1580156114a1573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526114c99190810190613810565b9050806108e184610e98565b6000818152600260205260408120546001600160a01b03161515610841565b60006114ff60085490565b82106115625760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b606482015260840161093f565b6008828154811061158357634e487b7160e01b600052603260045260246000fd5b90600052602060002001549050919050565b6000818152600260205260408120546001600160a01b0316806108415760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b606482015260840161093f565b60606000611684836040518060400160405280600981526020016846495253544e414d4560b81b815250600d60009054906101000a90046001600160a01b03166001600160a01b031663324988376040518163ffffffff1660e01b815260040160006040518083038186803b158015610cb857600080fd5b905060006116fa84604051806040016040528060078152602001661253925512505360ca1b815250600d60009054906101000a90046001600160a01b03166001600160a01b0316638cd9ff5b6040518163ffffffff1660e01b815260040160006040518083038186803b158015610cb857600080fd5b9050818160405160200161170f9291906139dd565b60405160208183030381529060405292505050919050565b60006001600160a01b0382166117925760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b606482015260840161093f565b506001600160a01b031660009081526003602052604090205490565b600b546001600160a01b036101009091041633146117de5760405162461bcd60e51b815260040161093f90613b26565b6117e860006129bd565b565b60606108418260405180604001604052806003815260200162434f4160e81b8152506011805480602002602001604051908101604052809291908181526020016000905b828210156118da57838290600052602060002001805461184d90613d05565b80601f016020809104026020016040519081016040528092919081815260200182805461187990613d05565b80156118c65780601f1061189b576101008083540402835291602001916118c6565b820191906000526020600020905b8154815290600101906020018083116118a957829003601f168201915b50505050508152602001906001019061182e565b505050506121a5565b60006118ee826127df565b61193a5760405162461bcd60e51b815260206004820152601a60248201527f534d4353796d626f6c3a20696e76616c696420746f6b656e4964000000000000604482015260640161093f565b6108416298968083613c78565b6000611952826127df565b61196e5760405162461bcd60e51b815260040161093f90613b5b565b61084161271083613d5b565b600080516020613dd68339815191526119938133612473565b61113b612a17565b60006119a6826127df565b6119c25760405162461bcd60e51b815260040161093f90613b5b565b60006119cd836118e3565b905060008060016012805490506119e49190613cab565b90505b82811115611a3a5760128181548110611a1057634e487b7160e01b600052603260045260246000fd5b906000526020600020015482611a269190613c60565b915080611a3281613cee565b9150506119e7565b50611a4484611947565b611a4e9082613c60565b949350505050565b6000918252600a602090815260408084206001600160a01b0393909316845291905290205460ff1690565b60606001805461097990613d05565b6000611a9b826127df565b611ab75760405162461bcd60e51b815260040161093f90613b5b565b61084161271083613c78565b600b546001600160a01b03610100909104163314611af35760405162461bcd60e51b815260040161093f90613b26565b600e80546001600160a01b0319166001600160a01b0383169081179091556040519081527f12be4820d03362d1f48434d870b2fc1549b3a3d16d891eeaac7c3073f3ded8b79060200160405180910390a150565b600e546001600160a01b031615801590611b615750813b15155b15611bd457600e54604051631b3b02e560e11b81523360048201526001600160a01b03848116602483015283151560448301529091169063367605ca90606401600060405180830381600087803b158015611bbb57600080fd5b505af1158015611bcf573d6000803e3d6000fd5b505050505b61100d8282612a92565b6060600f805461097990613d05565b606061084182611c04611bff856118e3565b61255d565b612b57565b611c1333836121f9565b611c2f5760405162461bcd60e51b815260040161093f90613b92565b610bb184848484612c80565b60606000600d60009054906101000a90046001600160a01b03166001600160a01b031663afa657806040518163ffffffff1660e01b815260040160006040518083038186803b158015611c8d57600080fd5b505afa158015611ca1573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052611cc99190810190613810565b9050806108e184611011565b6060611ce0826127df565b611d2c5760405162461bcd60e51b815260206004820152601a60248201527f534d4353796d626f6c3a20696e76616c696420746f6b656e4964000000000000604482015260640161093f565b600c5460405163e9dc637560e01b8152306004820152602481018490526001600160a01b039091169063e9dc63759060440160006040518083038186803b158015611d7657600080fd5b505afa158015611d8a573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610841919081019061394f565b600b546001600160a01b03610100909104163314611de25760405162461bcd60e51b815260040161093f90613b26565b600c80546001600160a01b0319166001600160a01b0392909216919091179055565b6000828152600a6020526040902060010154611e208133612473565b610ba283836126e5565b6060610841826040518060400160405280600b81526020016a4e4154495645504c41434560a81b815250600d60009054906101000a90046001600160a01b03166001600160a01b031663cef0468d6040518163ffffffff1660e01b815260040160006040518083038186803b158015610cb857600080fd5b8051825114611eff5760405162461bcd60e51b815260206004820152602360248201527f534d434552433732313a206d696e742061726773206d75737420626520657175604482015262616c7360e81b606482015260840161093f565b60005b8251811015610ba257611f63838281518110611f2e57634e487b7160e01b600052603260045260246000fd5b6020026020010151838381518110611f5657634e487b7160e01b600052603260045260246000fd5b602002602001015161113e565b80611f6d81613d40565b915050611f02565b6001600160a01b0382811660009081526005602090815260408083208585168452909152812054600e54919260ff90911691161561204257600e546040516346e67e2960e11b81526001600160a01b0386811660048301528581166024830152831515604483015290911690638dccfc529060640160206040518083038186803b15801561200257600080fd5b505afa158015612016573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061203a91906138c1565b915050610841565b9392505050565b60006013612056836118e3565b8154811061158357634e487b7160e01b600052603260045260246000fd5b600b546001600160a01b036101009091041633146120a45760405162461bcd60e51b815260040161093f90613b26565b6001600160a01b0381166121095760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161093f565b61113b816129bd565b60006001600160e01b03198216637965db0b60e01b1480610841575061084182612cb3565b600081815260046020526040902080546001600160a01b0319166001600160a01b038416908117909155819061216c82611595565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b606060006121b38486612cd8565b90506000838451836121c59190613d5b565b815181106121e357634e487b7160e01b600052603260045260246000fd5b6020026020010151905080925050509392505050565b6000818152600260205260408120546001600160a01b03166122725760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b606482015260840161093f565b600061227d83611595565b9050806001600160a01b0316846001600160a01b031614806122b85750836001600160a01b03166122ad846109fc565b6001600160a01b0316145b80611a4e5750611a4e8185611f75565b826001600160a01b03166122db82611595565b6001600160a01b0316146123435760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b606482015260840161093f565b6001600160a01b0382166123a55760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b606482015260840161093f565b6123b0838383612d0c565b6123bb600082612137565b6001600160a01b03831660009081526003602052604081208054600192906123e4908490613cab565b90915550506001600160a01b0382166000908152600360205260408120805460019290612412908490613c60565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b61247d8282611a56565b61100d57612495816001600160a01b03166014612d7e565b6124a0836020612d7e565b6040516020016124b1929190613a19565b60408051601f198184030181529082905262461bcd60e51b825261093f91600401613ac1565b6124e18282611a56565b61100d576000828152600a602090815260408083206001600160a01b03851684529091529020805460ff191660011790556125193390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b606081600514156125c05760148054806020026020016040519081016040528092919081815260200182805480156125b457602002820191906000526020600020905b8154815260200190600101908083116125a0575b50505050509050919050565b816004141561261f5760158054806020026020016040519081016040528092919081815260200182805480156125b457602002820191906000526020600020908154815260200190600101908083116125a05750505050509050919050565b816003141561267e5760168054806020026020016040519081016040528092919081815260200182805480156125b457602002820191906000526020600020908154815260200190600101908083116125a05750505050509050919050565b81600214156126dd5760178054806020026020016040519081016040528092919081815260200182805480156125b457602002820191906000526020600020908154815260200190600101908083116125a05750505050509050919050565b506060919050565b6126ef8282611a56565b1561100d576000828152600a602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b600b5460ff166127955760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b604482015260640161093f565b600b805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b6000806127ef6298968084613c78565b905060098111156128035750600092915050565b60006012828154811061282657634e487b7160e01b600052603260045260246000fd5b6000918252602082200154915061283f61271086613d5b565b90508061285157506000949350505050565b8181111561286457506000949350505050565b506001949350505050565b6001600160a01b0382166128c55760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604482015260640161093f565b6000818152600260205260409020546001600160a01b03161561292a5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604482015260640161093f565b61293660008383612d0c565b6001600160a01b038216600090815260036020526040812080546001929061295f908490613c60565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b600b80546001600160a01b03838116610100818102610100600160a81b031985161790945560405193909204169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600b5460ff1615612a5d5760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015260640161093f565b600b805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586127c23390565b6001600160a01b038216331415612aeb5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604482015260640161093f565b3360008181526005602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6060600082516001612b6886611947565b612b729190613cab565b612b7c9190613d5b565b90506000601054848381518110612ba357634e487b7160e01b600052603260045260246000fd5b6020026020010151612bb59190613c8c565b90506000612bc282612f60565b6040805160078082528183019092529192506000919060208201818036833701905050905060015b6008811015612c7557828181518110612c1357634e487b7160e01b600052603260045260246000fd5b01602001516001600160f81b03191682612c2e600184613cab565b81518110612c4c57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a90535080612c6d81613d40565b915050612bea565b509695505050505050565b612c8b8484846122c8565b612c978484848461307a565b610bb15760405162461bcd60e51b815260040161093f90613ad4565b60006001600160e01b0319821663780e9d6360e01b148061084157506108418261317c565b600061204283612ce784612f60565b604051602001612cf89291906139ae565b6040516020818303038152906040526131cc565b612d17838383613209565b600b5460ff1615610ba25760405162461bcd60e51b815260206004820152602b60248201527f4552433732315061757361626c653a20746f6b656e207472616e73666572207760448201526a1a1a5b19481c185d5cd95960aa1b606482015260840161093f565b60606000612d8d836002613c8c565b612d98906002613c60565b67ffffffffffffffff811115612dbe57634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015612de8576020820181803683370190505b509050600360fc1b81600081518110612e1157634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350600f60fb1b81600181518110612e4e57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a9053506000612e72846002613c8c565b612e7d906001613c60565b90505b6001811115612f11576f181899199a1a9b1b9c1cb0b131b232b360811b85600f1660108110612ebf57634e487b7160e01b600052603260045260246000fd5b1a60f81b828281518110612ee357634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a90535060049490941c93612f0a81613cee565b9050612e80565b5083156120425760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e74604482015260640161093f565b606081612f845750506040805180820190915260018152600360fc1b602082015290565b8160005b8115612fae5780612f9881613d40565b9150612fa79050600a83613c78565b9150612f88565b60008167ffffffffffffffff811115612fd757634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015613001576020820181803683370190505b5090505b8415611a4e57613016600183613cab565b9150613023600a86613d5b565b61302e906030613c60565b60f81b81838151811061305157634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350613073600a86613c78565b9450613005565b60006001600160a01b0384163b1561286457604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906130be903390899088908890600401613a8e565b602060405180830381600087803b1580156130d857600080fd5b505af1925050508015613108575060408051601f3d908101601f1916820190925261310591810190613933565b60015b613162573d808015613136576040519150601f19603f3d011682016040523d82523d6000602084013e61313b565b606091505b50805161315a5760405162461bcd60e51b815260040161093f90613ad4565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611a4e565b60006001600160e01b031982166380ac58cd60e01b14806131ad57506001600160e01b03198216635b5e139f60e01b145b8061084157506301ffc9a760e01b6001600160e01b0319831614610841565b60006131d9601054612f60565b826040516020016131eb9291906139ae565b60408051601f19818403018152919052805160209091012092915050565b6001600160a01b0383166132645761325f81600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b613287565b816001600160a01b0316836001600160a01b0316146132875761328783826132c1565b6001600160a01b03821661329e57610ba28161335e565b826001600160a01b0316826001600160a01b031614610ba257610ba28282613437565b600060016132ce84611727565b6132d89190613cab565b60008381526007602052604090205490915080821461332b576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b60085460009061337090600190613cab565b600083815260096020526040812054600880549394509092849081106133a657634e487b7160e01b600052603260045260246000fd5b9060005260206000200154905080600883815481106133d557634e487b7160e01b600052603260045260246000fd5b600091825260208083209091019290925582815260099091526040808220849055858252812055600880548061341b57634e487b7160e01b600052603160045260246000fd5b6001900381819060005260206000200160009055905550505050565b600061344283611727565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b80356001600160a01b038116811461349257600080fd5b919050565b600082601f8301126134a7578081fd5b813560206134bc6134b783613c14565b613be3565b80838252828201915082860187848660051b89010111156134db578586fd5b855b858110156134f9578135845292840192908401906001016134dd565b5090979650505050505050565b600082601f830112613516578081fd5b81516135246134b782613c38565b818152846020838601011115613538578283fd5b611a4e826020830160208701613cc2565b60006020828403121561355a578081fd5b6120428261347b565b60008060408385031215613575578081fd5b61357e8361347b565b915061358c6020840161347b565b90509250929050565b6000806000606084860312156135a9578081fd5b6135b28461347b565b92506135c06020850161347b565b9150604084013590509250925092565b600080600080608085870312156135e5578081fd5b6135ee8561347b565b93506135fc6020860161347b565b925060408501359150606085013567ffffffffffffffff81111561361e578182fd5b8501601f8101871361362e578182fd5b803561363c6134b782613c38565b818152886020838501011115613650578384fd5b81602084016020830137908101602001929092525092959194509250565b60008060408385031215613680578182fd5b6136898361347b565b9150602083013561369981613db1565b809150509250929050565b600080604083850312156136b6578182fd5b6136bf8361347b565b946020939093013593505050565b600080600080606085870312156136e2578182fd5b6136eb8561347b565b935060208501359250604085013567ffffffffffffffff8082111561370e578384fd5b818701915087601f830112613721578384fd5b81358181111561372f578485fd5b886020828501011115613740578485fd5b95989497505060200194505050565b60008060408385031215613761578182fd5b823567ffffffffffffffff80821115613778578384fd5b818501915085601f83011261378b578384fd5b8135602061379b6134b783613c14565b8083825282820191508286018a848660051b89010111156137ba578889fd5b8896505b848710156137e3576137cf8161347b565b8352600196909601959183019183016137be565b50965050860135925050808211156137f9578283fd5b5061380685828601613497565b9150509250929050565b60006020808385031215613822578182fd5b825167ffffffffffffffff80821115613839578384fd5b818501915085601f83011261384c578384fd5b815161385a6134b782613c14565b80828252858201915085850189878560051b8801011115613879578788fd5b875b848110156138b25781518681111561389157898afd5b61389f8c8a838b0101613506565b855250928701929087019060010161387b565b50909998505050505050505050565b6000602082840312156138d2578081fd5b815161204281613db1565b6000602082840312156138ee578081fd5b5035919050565b60008060408385031215613907578182fd5b8235915061358c6020840161347b565b600060208284031215613928578081fd5b813561204281613dbf565b600060208284031215613944578081fd5b815161204281613dbf565b600060208284031215613960578081fd5b815167ffffffffffffffff811115613976578182fd5b611a4e84828501613506565b6000815180845261399a816020860160208601613cc2565b601f01601f19169290920160200192915050565b600083516139c0818460208801613cc2565b8351908301906139d4818360208801613cc2565b01949350505050565b600083516139ef818460208801613cc2565b600160fd1b9083019081528351613a0d816001840160208801613cc2565b01600101949350505050565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000815260008351613a51816017850160208801613cc2565b7001034b99036b4b9b9b4b733903937b6329607d1b6017918401918201528351613a82816028840160208801613cc2565b01602801949350505050565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061143190830184613982565b6020815260006120426020830184613982565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6020808252601b908201527f534d4353796d626f6c3a20696e76616c696420746f6b656e2069640000000000604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b604051601f8201601f1916810167ffffffffffffffff81118282101715613c0c57613c0c613d9b565b604052919050565b600067ffffffffffffffff821115613c2e57613c2e613d9b565b5060051b60200190565b600067ffffffffffffffff821115613c5257613c52613d9b565b50601f01601f191660200190565b60008219821115613c7357613c73613d6f565b500190565b600082613c8757613c87613d85565b500490565b6000816000190483118215151615613ca657613ca6613d6f565b500290565b600082821015613cbd57613cbd613d6f565b500390565b60005b83811015613cdd578181015183820152602001613cc5565b83811115610bb15750506000910152565b600081613cfd57613cfd613d6f565b506000190190565b600181811c90821680613d1957607f821691505b60208210811415613d3a57634e487b7160e01b600052602260045260246000fd5b50919050565b6000600019821415613d5457613d54613d6f565b5060010190565b600082613d6a57613d6a613d85565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b801515811461113b57600080fd5b6001600160e01b03198116811461113b57600080fdfe9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a6a2646970667358221220425614901db9d4dfbfcca3452786a47f83914d636f6efb96058d540eb47f199c64736f6c6343000804003300000000000000000000000000000000000000000000000000000000000000c000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000140000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000009a48870000000000000000000000000000000000000000000000000000000000000180000000000000000000000000000000000000000000000000000000000000001e53414d5552414963727970746f735f4d616b6f746f4b6f6261796173686900000000000000000000000000000000000000000000000000000000000000000005534d434d4b000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000f4d616b6f746f4b6f626179617368690000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000d00000000000000000000000000000000000000000000000000000000000001a000000000000000000000000000000000000000000000000000000000000001e00000000000000000000000000000000000000000000000000000000000000220000000000000000000000000000000000000000000000000000000000000026000000000000000000000000000000000000000000000000000000000000002a000000000000000000000000000000000000000000000000000000000000002e00000000000000000000000000000000000000000000000000000000000000320000000000000000000000000000000000000000000000000000000000000036000000000000000000000000000000000000000000000000000000000000003a000000000000000000000000000000000000000000000000000000000000003e00000000000000000000000000000000000000000000000000000000000000420000000000000000000000000000000000000000000000000000000000000046000000000000000000000000000000000000000000000000000000000000004a000000000000000000000000000000000000000000000000000000000000000095365646974696f75730000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a466173746964696f75730000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000094d616c6963696f7573000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000094175646163696f75730000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a5065726e6963696f7573000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000007566973636f757300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a436170726963696f7573000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008537472617469667900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000074469676e6966790000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000044465667900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000753617469736679000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000006506163696679000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000074e756c6c69667900000000000000000000000000000000000000000000000000

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106103ba5760003560e01c806370a08231116101f4578063a35ec5611161011a578063d547741f116100ad578063e467f7e01161007c578063e467f7e0146107ea578063e985e9c5146107fd578063f2f70d9814610810578063f2fde38b1461082357600080fd5b8063d547741f146107a7578063d7a65b8b146107ba578063d7c118bf146107cf578063e41ad71e146107e257600080fd5b8063c8159728116100e9578063c815972814610759578063c87b56dd1461076c578063d37825b21461077f578063d53913931461079257600080fd5b8063a35ec56114610718578063b084d26314610720578063b480986714610733578063b88d4fde1461074657600080fd5b80638da5cb5b116101925780639b6b5b66116101615780639b6b5b66146106d75780639bb5c9c3146106ea578063a217fddf146106fd578063a22cb4651461070557600080fd5b80638da5cb5b146106935780638e7cb6e1146106a957806391d14854146106bc57806395d89b41146106cf57600080fd5b806379980b1a116101ce57806379980b1a1461065c578063836860f01461066f5780638456cb591461068257806386a1aec71461068a57600080fd5b806370a082311461062e578063715018a614610641578063717e4d581461064957600080fd5b806335af5fd9116102e45780634b92ddd5116102775780634f6ccce7116102465780634f6ccce7146105ea5780635c975abb146105fd5780636352211e146106085780636b8ff5741461061b57600080fd5b80634b92ddd51461059e5780634dd09f33146105b15780634f1bd6d0146105c45780634f558e79146105d757600080fd5b806340c10f19116102b357806340c10f191461055257806342842e0e14610565578063430cb87514610578578063487586971461058b57600080fd5b806335af5fd91461051157806336568abe146105245780633d56c901146105375780633f4ba83a1461054a57600080fd5b806319ee6e3f1161035c578063248a9ca31161032b578063248a9ca3146104b55780632a1b4866146104d85780632f2ff15d146104eb5780632f745c59146104fe57600080fd5b806319ee6e3f146104745780631ae583ca146104875780631d2ed7c21461048f57806323b872dd146104a257600080fd5b806306fdde031161039857806306fdde031461041c578063081812fc14610424578063095ea7b31461044f57806318160ddd1461046257600080fd5b806301ffc9a7146103bf57806302d41265146103e757806303959bb714610407575b600080fd5b6103d26103cd366004613917565b610836565b60405190151581526020015b60405180910390f35b6103fa6103f53660046138dd565b610847565b6040516103de9190613ac1565b61041a610415366004613549565b61090f565b005b6103fa61096a565b6104376104323660046138dd565b6109fc565b6040516001600160a01b0390911681526020016103de565b61041a61045d3660046136a4565b610a91565b6008545b6040519081526020016103de565b61041a6104823660046136cd565b610ba7565b6103fa610bb7565b6103fa61049d3660046138dd565b610c45565b61041a6104b0366004613595565b610cf9565b6104666104c33660046138dd565b6000908152600a602052604090206001015490565b6103fa6104e63660046138dd565b610d2a565b61041a6104f93660046138f5565b610ddc565b61046661050c3660046136a4565b610e02565b61046661051f3660046138dd565b610e98565b61041a6105323660046138f5565b610f93565b6104666105453660046138dd565b611011565b61041a61111a565b61041a6105603660046136a4565b61113e565b61041a610573366004613595565b6111b6565b600d54610437906001600160a01b031681565b6103fa6105993660046138dd565b6111d1565b6104666105ac3660046138dd565b61125b565b600e54610437906001600160a01b031681565b6103fa6105d23660046138dd565b61143b565b6103d26105e53660046138dd565b6114d5565b6104666105f83660046138dd565b6114f4565b600b5460ff166103d2565b6104376106163660046138dd565b611595565b6103fa6106293660046138dd565b61160c565b61046661063c366004613549565b611727565b61041a6117ae565b6103fa6106573660046138dd565b6117ea565b61046661066a3660046138dd565b6118e3565b61046661067d3660046138dd565b611947565b61041a61197a565b61046660105481565b600b5461010090046001600160a01b0316610437565b6104666106b73660046138dd565b61199b565b6103d26106ca3660046138f5565b611a56565b6103fa611a81565b6104666106e53660046138dd565b611a90565b61041a6106f8366004613549565b611ac3565b610466600081565b61041a61071336600461366e565b611b47565b6103fa611bde565b6103fa61072e3660046138dd565b611bed565b600c54610437906001600160a01b031681565b61041a6107543660046135d0565b611c09565b6103fa6107673660046138dd565b611c3b565b6103fa61077a3660046138dd565b611cd5565b61041a61078d366004613549565b611db2565b610466600080516020613dd683398151915281565b61041a6107b53660046138f5565b611e04565b6104666107c83660046138dd565b5060105490565b6103fa6107dd3660046138dd565b611e2a565b601054610466565b61041a6107f836600461374f565b611ea2565b6103d261080b366004613563565b611f75565b61046661081e3660046138dd565b612049565b61041a610831366004613549565b612074565b600061084182612112565b92915050565b60606000600d60009054906101000a90046001600160a01b03166001600160a01b03166320d67e3d6040518163ffffffff1660e01b815260040160006040518083038186803b15801561089957600080fd5b505afa1580156108ad573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526108d59190810190613810565b9050806108e18461125b565b815181106108ff57634e487b7160e01b600052603260045260246000fd5b6020026020010151915050919050565b600b546001600160a01b036101009091041633146109485760405162461bcd60e51b815260040161093f90613b26565b60405180910390fd5b600d80546001600160a01b0319166001600160a01b0392909216919091179055565b60606000805461097990613d05565b80601f01602080910402602001604051908101604052809291908181526020018280546109a590613d05565b80156109f25780601f106109c7576101008083540402835291602001916109f2565b820191906000526020600020905b8154815290600101906020018083116109d557829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b0316610a755760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b606482015260840161093f565b506000908152600460205260409020546001600160a01b031690565b6000610a9c82611595565b9050806001600160a01b0316836001600160a01b03161415610b0a5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b606482015260840161093f565b336001600160a01b0382161480610b265750610b268133611f75565b610b985760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000606482015260840161093f565b610ba28383612137565b505050565b610bb1848461113e565b50505050565b600f8054610bc490613d05565b80601f0160208091040260200160405190810160405280929190818152602001828054610bf090613d05565b8015610c3d5780601f10610c1257610100808354040283529160200191610c3d565b820191906000526020600020905b815481529060010190602001808311610c2057829003601f168201915b505050505081565b606061084182604051806040016040528060068152602001655a4f4449414360d01b815250600d60009054906101000a90046001600160a01b03166001600160a01b03166301ef27136040518163ffffffff1660e01b815260040160006040518083038186803b158015610cb857600080fd5b505afa158015610ccc573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610cf49190810190613810565b6121a5565b610d0333826121f9565b610d1f5760405162461bcd60e51b815260040161093f90613b92565b610ba28383836122c8565b600d54604080516320d67e3d60e01b815290516060926001600160a01b0316916320d67e3d916004808301926000929190829003018186803b158015610d6f57600080fd5b505afa158015610d83573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610dab9190810190613810565b6010545b81518110610dcd57634e487b7160e01b600052603260045260246000fd5b60200260200101519050919050565b6000828152600a6020526040902060010154610df88133612473565b610ba283836124d7565b6000610e0d83611727565b8210610e6f5760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b606482015260840161093f565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b600080600d60009054906101000a90046001600160a01b03166001600160a01b031663afa657806040518163ffffffff1660e01b815260040160006040518083038186803b158015610ee957600080fd5b505afa158015610efd573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610f259190810190613810565b90506000610f32846118e3565b90508060051415610f475750600a9392505050565b600060018351610f579190613cab565b610f608361255d565b516001610f6c88611947565b610f769190613cab565b610f809190613c78565b610f8a9190613d5b565b95945050505050565b6001600160a01b03811633146110035760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b606482015260840161093f565b61100d82826126e5565b5050565b600080600d60009054906101000a90046001600160a01b03166001600160a01b031663afa657806040518163ffffffff1660e01b815260040160006040518083038186803b15801561106257600080fd5b505afa158015611076573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261109e9190810190613810565b905060006110ab846118e3565b905080600514156110c05750600a9392505050565b80600414156110d35750600a9392505050565b6000600183516110e39190613cab565b600184516110f19190613cab565b6110fa8461255d565b51600161110689611947565b6111109190613cab565b610f769190613c78565b600080516020613dd68339815191526111338133612473565b61113b61274c565b50565b600080516020613dd68339815191526111578133612473565b611160826127df565b6111ac5760405162461bcd60e51b815260206004820152601a60248201527f534d434552433732313a20696e76616c696420746f6b656e4964000000000000604482015260640161093f565b610ba2838361286f565b610ba283838360405180602001604052806000815250611c09565b600d5460408051630261230f60e11b815290516060926001600160a01b0316916304c2461e916004808301926000929190829003018186803b15801561121657600080fd5b505afa15801561122a573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526112529190810190613810565b610daf836118e3565b600080600d60009054906101000a90046001600160a01b03166001600160a01b03166320d67e3d6040518163ffffffff1660e01b815260040160006040518083038186803b1580156112ac57600080fd5b505afa1580156112c0573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526112e89190810190613810565b90506000600d60009054906101000a90046001600160a01b03166001600160a01b031663afa657806040518163ffffffff1660e01b815260040160006040518083038186803b15801561133a57600080fd5b505afa15801561134e573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526113769190810190613810565b90506000611383856118e3565b9050806002146113995750506010549392505050565b6000600284516113a99190613cab565b600184516113b79190613cab565b600185516113c59190613cab565b6113ce8561255d565b5160016113da8b611947565b6113e49190613cab565b6113ee9190613c78565b6113f89190613c78565b6114029190613c78565b61140c9190613d5b565b611417906001613c60565b9050601054811415610f8a57600184516114319190613cab565b9695505050505050565b60606000600d60009054906101000a90046001600160a01b03166001600160a01b031663afa657806040518163ffffffff1660e01b815260040160006040518083038186803b15801561148d57600080fd5b505afa1580156114a1573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526114c99190810190613810565b9050806108e184610e98565b6000818152600260205260408120546001600160a01b03161515610841565b60006114ff60085490565b82106115625760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b606482015260840161093f565b6008828154811061158357634e487b7160e01b600052603260045260246000fd5b90600052602060002001549050919050565b6000818152600260205260408120546001600160a01b0316806108415760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b606482015260840161093f565b60606000611684836040518060400160405280600981526020016846495253544e414d4560b81b815250600d60009054906101000a90046001600160a01b03166001600160a01b031663324988376040518163ffffffff1660e01b815260040160006040518083038186803b158015610cb857600080fd5b905060006116fa84604051806040016040528060078152602001661253925512505360ca1b815250600d60009054906101000a90046001600160a01b03166001600160a01b0316638cd9ff5b6040518163ffffffff1660e01b815260040160006040518083038186803b158015610cb857600080fd5b9050818160405160200161170f9291906139dd565b60405160208183030381529060405292505050919050565b60006001600160a01b0382166117925760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b606482015260840161093f565b506001600160a01b031660009081526003602052604090205490565b600b546001600160a01b036101009091041633146117de5760405162461bcd60e51b815260040161093f90613b26565b6117e860006129bd565b565b60606108418260405180604001604052806003815260200162434f4160e81b8152506011805480602002602001604051908101604052809291908181526020016000905b828210156118da57838290600052602060002001805461184d90613d05565b80601f016020809104026020016040519081016040528092919081815260200182805461187990613d05565b80156118c65780601f1061189b576101008083540402835291602001916118c6565b820191906000526020600020905b8154815290600101906020018083116118a957829003601f168201915b50505050508152602001906001019061182e565b505050506121a5565b60006118ee826127df565b61193a5760405162461bcd60e51b815260206004820152601a60248201527f534d4353796d626f6c3a20696e76616c696420746f6b656e4964000000000000604482015260640161093f565b6108416298968083613c78565b6000611952826127df565b61196e5760405162461bcd60e51b815260040161093f90613b5b565b61084161271083613d5b565b600080516020613dd68339815191526119938133612473565b61113b612a17565b60006119a6826127df565b6119c25760405162461bcd60e51b815260040161093f90613b5b565b60006119cd836118e3565b905060008060016012805490506119e49190613cab565b90505b82811115611a3a5760128181548110611a1057634e487b7160e01b600052603260045260246000fd5b906000526020600020015482611a269190613c60565b915080611a3281613cee565b9150506119e7565b50611a4484611947565b611a4e9082613c60565b949350505050565b6000918252600a602090815260408084206001600160a01b0393909316845291905290205460ff1690565b60606001805461097990613d05565b6000611a9b826127df565b611ab75760405162461bcd60e51b815260040161093f90613b5b565b61084161271083613c78565b600b546001600160a01b03610100909104163314611af35760405162461bcd60e51b815260040161093f90613b26565b600e80546001600160a01b0319166001600160a01b0383169081179091556040519081527f12be4820d03362d1f48434d870b2fc1549b3a3d16d891eeaac7c3073f3ded8b79060200160405180910390a150565b600e546001600160a01b031615801590611b615750813b15155b15611bd457600e54604051631b3b02e560e11b81523360048201526001600160a01b03848116602483015283151560448301529091169063367605ca90606401600060405180830381600087803b158015611bbb57600080fd5b505af1158015611bcf573d6000803e3d6000fd5b505050505b61100d8282612a92565b6060600f805461097990613d05565b606061084182611c04611bff856118e3565b61255d565b612b57565b611c1333836121f9565b611c2f5760405162461bcd60e51b815260040161093f90613b92565b610bb184848484612c80565b60606000600d60009054906101000a90046001600160a01b03166001600160a01b031663afa657806040518163ffffffff1660e01b815260040160006040518083038186803b158015611c8d57600080fd5b505afa158015611ca1573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052611cc99190810190613810565b9050806108e184611011565b6060611ce0826127df565b611d2c5760405162461bcd60e51b815260206004820152601a60248201527f534d4353796d626f6c3a20696e76616c696420746f6b656e4964000000000000604482015260640161093f565b600c5460405163e9dc637560e01b8152306004820152602481018490526001600160a01b039091169063e9dc63759060440160006040518083038186803b158015611d7657600080fd5b505afa158015611d8a573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610841919081019061394f565b600b546001600160a01b03610100909104163314611de25760405162461bcd60e51b815260040161093f90613b26565b600c80546001600160a01b0319166001600160a01b0392909216919091179055565b6000828152600a6020526040902060010154611e208133612473565b610ba283836126e5565b6060610841826040518060400160405280600b81526020016a4e4154495645504c41434560a81b815250600d60009054906101000a90046001600160a01b03166001600160a01b031663cef0468d6040518163ffffffff1660e01b815260040160006040518083038186803b158015610cb857600080fd5b8051825114611eff5760405162461bcd60e51b815260206004820152602360248201527f534d434552433732313a206d696e742061726773206d75737420626520657175604482015262616c7360e81b606482015260840161093f565b60005b8251811015610ba257611f63838281518110611f2e57634e487b7160e01b600052603260045260246000fd5b6020026020010151838381518110611f5657634e487b7160e01b600052603260045260246000fd5b602002602001015161113e565b80611f6d81613d40565b915050611f02565b6001600160a01b0382811660009081526005602090815260408083208585168452909152812054600e54919260ff90911691161561204257600e546040516346e67e2960e11b81526001600160a01b0386811660048301528581166024830152831515604483015290911690638dccfc529060640160206040518083038186803b15801561200257600080fd5b505afa158015612016573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061203a91906138c1565b915050610841565b9392505050565b60006013612056836118e3565b8154811061158357634e487b7160e01b600052603260045260246000fd5b600b546001600160a01b036101009091041633146120a45760405162461bcd60e51b815260040161093f90613b26565b6001600160a01b0381166121095760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161093f565b61113b816129bd565b60006001600160e01b03198216637965db0b60e01b1480610841575061084182612cb3565b600081815260046020526040902080546001600160a01b0319166001600160a01b038416908117909155819061216c82611595565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b606060006121b38486612cd8565b90506000838451836121c59190613d5b565b815181106121e357634e487b7160e01b600052603260045260246000fd5b6020026020010151905080925050509392505050565b6000818152600260205260408120546001600160a01b03166122725760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b606482015260840161093f565b600061227d83611595565b9050806001600160a01b0316846001600160a01b031614806122b85750836001600160a01b03166122ad846109fc565b6001600160a01b0316145b80611a4e5750611a4e8185611f75565b826001600160a01b03166122db82611595565b6001600160a01b0316146123435760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b606482015260840161093f565b6001600160a01b0382166123a55760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b606482015260840161093f565b6123b0838383612d0c565b6123bb600082612137565b6001600160a01b03831660009081526003602052604081208054600192906123e4908490613cab565b90915550506001600160a01b0382166000908152600360205260408120805460019290612412908490613c60565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b61247d8282611a56565b61100d57612495816001600160a01b03166014612d7e565b6124a0836020612d7e565b6040516020016124b1929190613a19565b60408051601f198184030181529082905262461bcd60e51b825261093f91600401613ac1565b6124e18282611a56565b61100d576000828152600a602090815260408083206001600160a01b03851684529091529020805460ff191660011790556125193390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b606081600514156125c05760148054806020026020016040519081016040528092919081815260200182805480156125b457602002820191906000526020600020905b8154815260200190600101908083116125a0575b50505050509050919050565b816004141561261f5760158054806020026020016040519081016040528092919081815260200182805480156125b457602002820191906000526020600020908154815260200190600101908083116125a05750505050509050919050565b816003141561267e5760168054806020026020016040519081016040528092919081815260200182805480156125b457602002820191906000526020600020908154815260200190600101908083116125a05750505050509050919050565b81600214156126dd5760178054806020026020016040519081016040528092919081815260200182805480156125b457602002820191906000526020600020908154815260200190600101908083116125a05750505050509050919050565b506060919050565b6126ef8282611a56565b1561100d576000828152600a602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b600b5460ff166127955760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b604482015260640161093f565b600b805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b6000806127ef6298968084613c78565b905060098111156128035750600092915050565b60006012828154811061282657634e487b7160e01b600052603260045260246000fd5b6000918252602082200154915061283f61271086613d5b565b90508061285157506000949350505050565b8181111561286457506000949350505050565b506001949350505050565b6001600160a01b0382166128c55760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604482015260640161093f565b6000818152600260205260409020546001600160a01b03161561292a5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604482015260640161093f565b61293660008383612d0c565b6001600160a01b038216600090815260036020526040812080546001929061295f908490613c60565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b600b80546001600160a01b03838116610100818102610100600160a81b031985161790945560405193909204169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600b5460ff1615612a5d5760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015260640161093f565b600b805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586127c23390565b6001600160a01b038216331415612aeb5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604482015260640161093f565b3360008181526005602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6060600082516001612b6886611947565b612b729190613cab565b612b7c9190613d5b565b90506000601054848381518110612ba357634e487b7160e01b600052603260045260246000fd5b6020026020010151612bb59190613c8c565b90506000612bc282612f60565b6040805160078082528183019092529192506000919060208201818036833701905050905060015b6008811015612c7557828181518110612c1357634e487b7160e01b600052603260045260246000fd5b01602001516001600160f81b03191682612c2e600184613cab565b81518110612c4c57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a90535080612c6d81613d40565b915050612bea565b509695505050505050565b612c8b8484846122c8565b612c978484848461307a565b610bb15760405162461bcd60e51b815260040161093f90613ad4565b60006001600160e01b0319821663780e9d6360e01b148061084157506108418261317c565b600061204283612ce784612f60565b604051602001612cf89291906139ae565b6040516020818303038152906040526131cc565b612d17838383613209565b600b5460ff1615610ba25760405162461bcd60e51b815260206004820152602b60248201527f4552433732315061757361626c653a20746f6b656e207472616e73666572207760448201526a1a1a5b19481c185d5cd95960aa1b606482015260840161093f565b60606000612d8d836002613c8c565b612d98906002613c60565b67ffffffffffffffff811115612dbe57634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015612de8576020820181803683370190505b509050600360fc1b81600081518110612e1157634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350600f60fb1b81600181518110612e4e57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a9053506000612e72846002613c8c565b612e7d906001613c60565b90505b6001811115612f11576f181899199a1a9b1b9c1cb0b131b232b360811b85600f1660108110612ebf57634e487b7160e01b600052603260045260246000fd5b1a60f81b828281518110612ee357634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a90535060049490941c93612f0a81613cee565b9050612e80565b5083156120425760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e74604482015260640161093f565b606081612f845750506040805180820190915260018152600360fc1b602082015290565b8160005b8115612fae5780612f9881613d40565b9150612fa79050600a83613c78565b9150612f88565b60008167ffffffffffffffff811115612fd757634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015613001576020820181803683370190505b5090505b8415611a4e57613016600183613cab565b9150613023600a86613d5b565b61302e906030613c60565b60f81b81838151811061305157634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350613073600a86613c78565b9450613005565b60006001600160a01b0384163b1561286457604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906130be903390899088908890600401613a8e565b602060405180830381600087803b1580156130d857600080fd5b505af1925050508015613108575060408051601f3d908101601f1916820190925261310591810190613933565b60015b613162573d808015613136576040519150601f19603f3d011682016040523d82523d6000602084013e61313b565b606091505b50805161315a5760405162461bcd60e51b815260040161093f90613ad4565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611a4e565b60006001600160e01b031982166380ac58cd60e01b14806131ad57506001600160e01b03198216635b5e139f60e01b145b8061084157506301ffc9a760e01b6001600160e01b0319831614610841565b60006131d9601054612f60565b826040516020016131eb9291906139ae565b60408051601f19818403018152919052805160209091012092915050565b6001600160a01b0383166132645761325f81600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b613287565b816001600160a01b0316836001600160a01b0316146132875761328783826132c1565b6001600160a01b03821661329e57610ba28161335e565b826001600160a01b0316826001600160a01b031614610ba257610ba28282613437565b600060016132ce84611727565b6132d89190613cab565b60008381526007602052604090205490915080821461332b576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b60085460009061337090600190613cab565b600083815260096020526040812054600880549394509092849081106133a657634e487b7160e01b600052603260045260246000fd5b9060005260206000200154905080600883815481106133d557634e487b7160e01b600052603260045260246000fd5b600091825260208083209091019290925582815260099091526040808220849055858252812055600880548061341b57634e487b7160e01b600052603160045260246000fd5b6001900381819060005260206000200160009055905550505050565b600061344283611727565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b80356001600160a01b038116811461349257600080fd5b919050565b600082601f8301126134a7578081fd5b813560206134bc6134b783613c14565b613be3565b80838252828201915082860187848660051b89010111156134db578586fd5b855b858110156134f9578135845292840192908401906001016134dd565b5090979650505050505050565b600082601f830112613516578081fd5b81516135246134b782613c38565b818152846020838601011115613538578283fd5b611a4e826020830160208701613cc2565b60006020828403121561355a578081fd5b6120428261347b565b60008060408385031215613575578081fd5b61357e8361347b565b915061358c6020840161347b565b90509250929050565b6000806000606084860312156135a9578081fd5b6135b28461347b565b92506135c06020850161347b565b9150604084013590509250925092565b600080600080608085870312156135e5578081fd5b6135ee8561347b565b93506135fc6020860161347b565b925060408501359150606085013567ffffffffffffffff81111561361e578182fd5b8501601f8101871361362e578182fd5b803561363c6134b782613c38565b818152886020838501011115613650578384fd5b81602084016020830137908101602001929092525092959194509250565b60008060408385031215613680578182fd5b6136898361347b565b9150602083013561369981613db1565b809150509250929050565b600080604083850312156136b6578182fd5b6136bf8361347b565b946020939093013593505050565b600080600080606085870312156136e2578182fd5b6136eb8561347b565b935060208501359250604085013567ffffffffffffffff8082111561370e578384fd5b818701915087601f830112613721578384fd5b81358181111561372f578485fd5b886020828501011115613740578485fd5b95989497505060200194505050565b60008060408385031215613761578182fd5b823567ffffffffffffffff80821115613778578384fd5b818501915085601f83011261378b578384fd5b8135602061379b6134b783613c14565b8083825282820191508286018a848660051b89010111156137ba578889fd5b8896505b848710156137e3576137cf8161347b565b8352600196909601959183019183016137be565b50965050860135925050808211156137f9578283fd5b5061380685828601613497565b9150509250929050565b60006020808385031215613822578182fd5b825167ffffffffffffffff80821115613839578384fd5b818501915085601f83011261384c578384fd5b815161385a6134b782613c14565b80828252858201915085850189878560051b8801011115613879578788fd5b875b848110156138b25781518681111561389157898afd5b61389f8c8a838b0101613506565b855250928701929087019060010161387b565b50909998505050505050505050565b6000602082840312156138d2578081fd5b815161204281613db1565b6000602082840312156138ee578081fd5b5035919050565b60008060408385031215613907578182fd5b8235915061358c6020840161347b565b600060208284031215613928578081fd5b813561204281613dbf565b600060208284031215613944578081fd5b815161204281613dbf565b600060208284031215613960578081fd5b815167ffffffffffffffff811115613976578182fd5b611a4e84828501613506565b6000815180845261399a816020860160208601613cc2565b601f01601f19169290920160200192915050565b600083516139c0818460208801613cc2565b8351908301906139d4818360208801613cc2565b01949350505050565b600083516139ef818460208801613cc2565b600160fd1b9083019081528351613a0d816001840160208801613cc2565b01600101949350505050565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000815260008351613a51816017850160208801613cc2565b7001034b99036b4b9b9b4b733903937b6329607d1b6017918401918201528351613a82816028840160208801613cc2565b01602801949350505050565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061143190830184613982565b6020815260006120426020830184613982565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6020808252601b908201527f534d4353796d626f6c3a20696e76616c696420746f6b656e2069640000000000604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b604051601f8201601f1916810167ffffffffffffffff81118282101715613c0c57613c0c613d9b565b604052919050565b600067ffffffffffffffff821115613c2e57613c2e613d9b565b5060051b60200190565b600067ffffffffffffffff821115613c5257613c52613d9b565b50601f01601f191660200190565b60008219821115613c7357613c73613d6f565b500190565b600082613c8757613c87613d85565b500490565b6000816000190483118215151615613ca657613ca6613d6f565b500290565b600082821015613cbd57613cbd613d6f565b500390565b60005b83811015613cdd578181015183820152602001613cc5565b83811115610bb15750506000910152565b600081613cfd57613cfd613d6f565b506000190190565b600181811c90821680613d1957607f821691505b60208210811415613d3a57634e487b7160e01b600052602260045260246000fd5b50919050565b6000600019821415613d5457613d54613d6f565b5060010190565b600082613d6a57613d6a613d85565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b801515811461113b57600080fd5b6001600160e01b03198116811461113b57600080fdfe9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a6a2646970667358221220425614901db9d4dfbfcca3452786a47f83914d636f6efb96058d540eb47f199c64736f6c63430008040033

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

00000000000000000000000000000000000000000000000000000000000000c000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000140000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000009a48870000000000000000000000000000000000000000000000000000000000000180000000000000000000000000000000000000000000000000000000000000001e53414d5552414963727970746f735f4d616b6f746f4b6f6261796173686900000000000000000000000000000000000000000000000000000000000000000005534d434d4b000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000f4d616b6f746f4b6f626179617368690000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000d00000000000000000000000000000000000000000000000000000000000001a000000000000000000000000000000000000000000000000000000000000001e00000000000000000000000000000000000000000000000000000000000000220000000000000000000000000000000000000000000000000000000000000026000000000000000000000000000000000000000000000000000000000000002a000000000000000000000000000000000000000000000000000000000000002e00000000000000000000000000000000000000000000000000000000000000320000000000000000000000000000000000000000000000000000000000000036000000000000000000000000000000000000000000000000000000000000003a000000000000000000000000000000000000000000000000000000000000003e00000000000000000000000000000000000000000000000000000000000000420000000000000000000000000000000000000000000000000000000000000046000000000000000000000000000000000000000000000000000000000000004a000000000000000000000000000000000000000000000000000000000000000095365646974696f75730000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a466173746964696f75730000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000094d616c6963696f7573000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000094175646163696f75730000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a5065726e6963696f7573000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000007566973636f757300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a436170726963696f7573000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008537472617469667900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000074469676e6966790000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000044465667900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000753617469736679000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000006506163696679000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000074e756c6c69667900000000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : _name (string): SAMURAIcryptos_MakotoKobayashi
Arg [1] : _synbol (string): SMCMK
Arg [2] : _respect (string): MakotoKobayashi
Arg [3] : _respectColorCode (uint256): 1
Arg [4] : _katanaPattern4 (uint256): 10111111
Arg [5] : _codeOfArts (string[]): Seditious,Fastidious,Malicious,Audacious,Pernicious,Viscous,Capricious,Stratify,Dignify,Defy,Satisfy,Pacify,Nullify

-----Encoded View---------------
52 Constructor Arguments found :
Arg [0] : 00000000000000000000000000000000000000000000000000000000000000c0
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000100
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000140
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000001
Arg [4] : 00000000000000000000000000000000000000000000000000000000009a4887
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000180
Arg [6] : 000000000000000000000000000000000000000000000000000000000000001e
Arg [7] : 53414d5552414963727970746f735f4d616b6f746f4b6f626179617368690000
Arg [8] : 0000000000000000000000000000000000000000000000000000000000000005
Arg [9] : 534d434d4b000000000000000000000000000000000000000000000000000000
Arg [10] : 000000000000000000000000000000000000000000000000000000000000000f
Arg [11] : 4d616b6f746f4b6f626179617368690000000000000000000000000000000000
Arg [12] : 000000000000000000000000000000000000000000000000000000000000000d
Arg [13] : 00000000000000000000000000000000000000000000000000000000000001a0
Arg [14] : 00000000000000000000000000000000000000000000000000000000000001e0
Arg [15] : 0000000000000000000000000000000000000000000000000000000000000220
Arg [16] : 0000000000000000000000000000000000000000000000000000000000000260
Arg [17] : 00000000000000000000000000000000000000000000000000000000000002a0
Arg [18] : 00000000000000000000000000000000000000000000000000000000000002e0
Arg [19] : 0000000000000000000000000000000000000000000000000000000000000320
Arg [20] : 0000000000000000000000000000000000000000000000000000000000000360
Arg [21] : 00000000000000000000000000000000000000000000000000000000000003a0
Arg [22] : 00000000000000000000000000000000000000000000000000000000000003e0
Arg [23] : 0000000000000000000000000000000000000000000000000000000000000420
Arg [24] : 0000000000000000000000000000000000000000000000000000000000000460
Arg [25] : 00000000000000000000000000000000000000000000000000000000000004a0
Arg [26] : 0000000000000000000000000000000000000000000000000000000000000009
Arg [27] : 5365646974696f75730000000000000000000000000000000000000000000000
Arg [28] : 000000000000000000000000000000000000000000000000000000000000000a
Arg [29] : 466173746964696f757300000000000000000000000000000000000000000000
Arg [30] : 0000000000000000000000000000000000000000000000000000000000000009
Arg [31] : 4d616c6963696f75730000000000000000000000000000000000000000000000
Arg [32] : 0000000000000000000000000000000000000000000000000000000000000009
Arg [33] : 4175646163696f75730000000000000000000000000000000000000000000000
Arg [34] : 000000000000000000000000000000000000000000000000000000000000000a
Arg [35] : 5065726e6963696f757300000000000000000000000000000000000000000000
Arg [36] : 0000000000000000000000000000000000000000000000000000000000000007
Arg [37] : 566973636f757300000000000000000000000000000000000000000000000000
Arg [38] : 000000000000000000000000000000000000000000000000000000000000000a
Arg [39] : 436170726963696f757300000000000000000000000000000000000000000000
Arg [40] : 0000000000000000000000000000000000000000000000000000000000000008
Arg [41] : 5374726174696679000000000000000000000000000000000000000000000000
Arg [42] : 0000000000000000000000000000000000000000000000000000000000000007
Arg [43] : 4469676e69667900000000000000000000000000000000000000000000000000
Arg [44] : 0000000000000000000000000000000000000000000000000000000000000004
Arg [45] : 4465667900000000000000000000000000000000000000000000000000000000
Arg [46] : 0000000000000000000000000000000000000000000000000000000000000007
Arg [47] : 5361746973667900000000000000000000000000000000000000000000000000
Arg [48] : 0000000000000000000000000000000000000000000000000000000000000006
Arg [49] : 5061636966790000000000000000000000000000000000000000000000000000
Arg [50] : 0000000000000000000000000000000000000000000000000000000000000007
Arg [51] : 4e756c6c69667900000000000000000000000000000000000000000000000000


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.