ETH Price: $3,344.32 (-1.47%)

Isekai Battle (ISB)
 

Overview

TokenID

4563

Total Transfers

-

Market

Onchain Market Cap

$0.00

Circulating Supply Market Cap

-
Loading...
Loading
Loading...
Loading
Loading...
Loading

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

Contract Source Code Verified (Exact Match)

Contract Name:
IsekaiBattle

Compiler Version
v0.8.14+commit.80d49f37

Optimization Enabled:
Yes with 100 runs

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

import {ERC721A} from 'erc721a/contracts/ERC721A.sol';
import {ISGData, IISBStaticData} from './extentions/ISGData.sol';
import '@openzeppelin/contracts/utils/Base64.sol';
import '@openzeppelin/contracts/token/ERC20/IERC20.sol';
import '@openzeppelin/contracts/security/ReentrancyGuard.sol';
import './interface/IIsekaiBattle.sol';

contract IsekaiBattle is IIsekaiBattle, ERC721A('Isekai Battle', 'ISB'), ISGData, ReentrancyGuard {
    address payable public constant override withdrawAddress = payable(0xbbaF7550c32634f22E989252CD9070b38eFABa42);
    IISBStaticData public immutable override staticData;

    mapping(address => bool) public override whitelist;
    mapping(address => uint256) public override whitelistMinted;

    IISBStaticData.Phase public override phase = IISBStaticData.Phase.BeforeMint;

    uint16 public override minMintSupply = 3;
    uint16 public override maxMintSupply = 15;
    uint256 public override maxSupply = 30000;
    bool public override resetLevel = false;
    bool public override saveTransferTime = true;

    IISBStaticData.Tokens public override tokens;

    constructor(IISBStaticData _staticData) ISGData() {
        staticData = _staticData;
    }

    function mintByTokens(uint16[] calldata characterIds) external override nonReentrant {
        _mintByTokensCheck(characterIds.length);
        if (!hasRole(DEFAULT_ADMIN_ROLE, _msgSender())) {
            if (getSINNPrice(characterIds.length) > 0 && address(tokens.SINN) != address(0))
                tokens.SINN.transferFrom(
                    _msgSender(),
                    withdrawAddress,
                    getSINNPrice(characterIds.length) * characterIds.length
                );
            if (getGOVPrice(characterIds.length) > 0 && address(tokens.GOV) != address(0))
                tokens.GOV.transferFrom(
                    _msgSender(),
                    withdrawAddress,
                    getGOVPrice(characterIds.length) * characterIds.length
                );
        }
        _mintSetMetadata(characterIds);
        _safeMint(_msgSender(), characterIds.length);
    }

    function mint(uint16[] calldata characterIds) external payable override nonReentrant {
        _mintCheck(characterIds.length);
        _mintSetMetadata(characterIds);
        _safeMint(_msgSender(), characterIds.length);
    }

    function whitelistMint(uint16[] calldata characterIds) external payable override nonReentrant {
        _WLMintCheck(characterIds.length);
        _mintSetMetadata(characterIds);
        whitelistMinted[_msgSender()] += characterIds.length;
        _safeMint(_msgSender(), characterIds.length);
    }

    function minterMint(uint16[] calldata characterIds, address to) external override onlyRole(MINTER_ROLE) {
        _mintSetMetadata(characterIds);
        _safeMint(to, characterIds.length);
    }

    function burn(uint256 tokenId) external override onlyRole(BURNER_ROLE) {
        _burn(tokenId);
    }

    function withdraw() external override onlyRole(DEFAULT_ADMIN_ROLE) {
        (bool os, ) = withdrawAddress.call{value: address(this).balance}('');
        require(os);
    }

    function setWhitelist(address[] memory addresses) external override onlyRole(DEFAULT_ADMIN_ROLE) {
        for (uint256 i = 0; i < addresses.length; i++) {
            whitelist[addresses[i]] = true;
        }
    }

    function deleteWhitelist(address[] memory addresses) external override onlyRole(DEFAULT_ADMIN_ROLE) {
        for (uint256 i = 0; i < addresses.length; i++) {
            whitelist[addresses[i]] = false;
        }
    }

    function setTokens(IISBStaticData.Tokens memory _newTokens) external override onlyRole(DEFAULT_ADMIN_ROLE) {
        tokens = _newTokens;
    }

    function setPhase(IISBStaticData.Phase _newPhase) external override onlyRole(DEFAULT_ADMIN_ROLE) {
        phase = _newPhase;
    }

    function setMaxSupply(uint256 _newMaxSupply) external override onlyRole(DEFAULT_ADMIN_ROLE) {
        maxSupply = _newMaxSupply;
    }

    function setResetLevel(bool _newResetLevel) external override onlyRole(DEFAULT_ADMIN_ROLE) {
        resetLevel = _newResetLevel;
    }

    function setSaveTransferTime(bool _newSaveTransferTime) external override onlyRole(DEFAULT_ADMIN_ROLE) {
        saveTransferTime = _newSaveTransferTime;
    }

    function setMinMintSupply(uint16 _minMintSupply) external override onlyRole(DEFAULT_ADMIN_ROLE) {
        minMintSupply = _minMintSupply;
    }

    function setMaxMintSupply(uint16 _maxMintSupply) external override onlyRole(DEFAULT_ADMIN_ROLE) {
        maxMintSupply = _maxMintSupply;
    }

    function tokenURI(uint256 tokenId) public view override returns (string memory) {
        return
            staticData.createMetadata(
                tokenId,
                characters[metadatas[tokenId].characterId],
                metadatas[tokenId],
                getStatus(tokenId),
                statusMasters,
                images[characters[metadatas[tokenId].characterId].imageId],
                getGenneration(tokenId)
            );
    }

    function supportsInterface(bytes4 interfaceId) public view virtual override(ERC721A, ISGData) returns (bool) {
        return interfaceId == type(IIsekaiBattle).interfaceId || super.supportsInterface(interfaceId);
    }

    function _mintSetMetadata(uint16[] calldata characterIds) internal virtual {
        for (uint256 i = 0; i < characterIds.length; i++) {
            if (characters[characterIds[i]].canBuy == false) revert MintCannotBuyCharacter();
            metadatas[_currentIndex + i].characterId = characterIds[i];
            metadatas[_currentIndex + i].level = 1;
        }
    }

    function _beforeTokenTransfers(
        address,
        address,
        uint256 startTokenId,
        uint256 quantity
    ) internal virtual override {
        if (quantity != 1) return;
        if (resetLevel) metadatas[startTokenId].level = 1;
        if (saveTransferTime) metadatas[startTokenId].transferTime = block.timestamp;
    }

    function _mintByTokensCheck(uint256 length) internal view virtual {
        if (phase != IISBStaticData.Phase.MintByTokens) revert BeforeMint();
        if (totalSupply() + length > maxSupply) revert MintReachedMaxSupply();
        if (maxMintSupply < length) revert MintMaxSupply();
        uint256 allowance = type(uint256).max;
        if (address(tokens.SINN) != address(0)) {
            allowance = tokens.SINN.allowance(_msgSender(), address(this));
        }
        uint256 govAllowance = type(uint256).max;
        if (address(tokens.GOV) != address(0)) {
            allowance = tokens.GOV.allowance(_msgSender(), address(this));
        }
        if (!hasRole(DEFAULT_ADMIN_ROLE, _msgSender())) {
            if (allowance < getSINNPrice(length) * length) revert MintValueIsMissing();
            if (govAllowance < getGOVPrice(length) * length) revert MintValueIsMissing();
        }
    }

    function _mintCheck(uint256 length) internal view virtual {
        if (phase != IISBStaticData.Phase.PublicMint) revert BeforeMint();
        if (totalSupply() + length > maxSupply) revert MintReachedMaxSupply();
        if (minMintSupply > length) revert MintMinSupply();
        if (maxMintSupply < length) revert MintMaxSupply();
        if (!hasRole(DEFAULT_ADMIN_ROLE, _msgSender()))
            if (msg.value < getPrice(length) * length) revert MintValueIsMissing();
    }

    function _WLMintCheck(uint256 length) internal view virtual {
        if (phase != IISBStaticData.Phase.WLMint) revert BeforeMint();
        if (minMintSupply > length) revert MintMinSupply();
        if (!whitelist[_msgSender()]) revert MintNotWhitelisted();
        if (whitelistMinted[_msgSender()] + length > maxMintSupply) revert MintReachedWhitelistSaleSupply();
        if (!hasRole(DEFAULT_ADMIN_ROLE, _msgSender()))
            if (msg.value < getWLPrice(length) * length) revert MintValueIsMissing();
    }

    function _startTokenId() internal view virtual override returns (uint256) {
        return 1;
    }
}

File 2 of 27 : ISGData.sol
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.4;

import {AccessControlEnumerable} from '@openzeppelin/contracts/access/AccessControlEnumerable.sol';
import {IISBStaticData} from '../interface/IISBStaticData.sol';
import {IISGData} from '../interface/IISGData.sol';

contract ISGData is IISGData, AccessControlEnumerable {
    bytes32 public constant MINTER_ROLE = keccak256('MINTER_ROLE');
    bytes32 public constant BURNER_ROLE = keccak256('BURNER_ROLE');
    bytes32 public constant STATUS_SETTER_ROLE = keccak256('STATUS_SETTER_ROLE');
    bytes32 public constant LEVEL_SETTER_ROLE = keccak256('LEVEL_SETTER_ROLE');
    bytes32 public constant CHARACTER_SETTER_ROLE = keccak256('CHARACTER_SETTER_ROLE');

    IISBStaticData.EtherPrices public override etherPrices =
        IISBStaticData.EtherPrices(
            0.06 ether,
            0.059 ether,
            0.058 ether,
            0.055 ether,
            0.055 ether,
            0.054 ether,
            0.053 ether,
            0.050 ether
        );
    IISBStaticData.TokenPrices public override tokenPrices;
    IISBStaticData.Character[] public override characters;
    string[] public override images;
    IISBStaticData.StatusMaster[] public override statusMasters;
    mapping(uint256 => IISBStaticData.Metadata) public override metadatas;

    uint256 public override gen0Supply = 50000;

    constructor() {
        _setupRole(DEFAULT_ADMIN_ROLE, _msgSender());
        _setupRole(MINTER_ROLE, _msgSender());
        _setupRole(BURNER_ROLE, _msgSender());
        _setupRole(STATUS_SETTER_ROLE, _msgSender());
        _setupRole(LEVEL_SETTER_ROLE, _msgSender());
        _setupRole(CHARACTER_SETTER_ROLE, _msgSender());
        statusMasters.push(IISBStaticData.StatusMaster('ATK',true));
        statusMasters.push(IISBStaticData.StatusMaster('DEF',true));
        statusMasters.push(IISBStaticData.StatusMaster('LUK',false));
    }

    function setEtherPrices(IISBStaticData.EtherPrices memory _newPrices)
        external
        override
        onlyRole(DEFAULT_ADMIN_ROLE)
    {
        etherPrices = _newPrices;
    }

    function setTokenPrices(IISBStaticData.TokenPrices memory _newPrices)
        external
        override
        onlyRole(DEFAULT_ADMIN_ROLE)
    {
        tokenPrices = _newPrices;
    }

    function setGen0Supply(uint256 _newGen0Supply) external override onlyRole(DEFAULT_ADMIN_ROLE) {
        gen0Supply = _newGen0Supply;
    }

    function addCharactor(IISBStaticData.Character memory _newCharacter)
        external
        override
        onlyRole(CHARACTER_SETTER_ROLE)
    {
        characters.push(_newCharacter);
    }

    function addImage(string memory _newImage) external override onlyRole(CHARACTER_SETTER_ROLE) {
        images.push(_newImage);
    }

    function addStatusMaster(IISBStaticData.StatusMaster  memory _newStatus) external override onlyRole(CHARACTER_SETTER_ROLE) {
        statusMasters.push(_newStatus);
    }

    function setCharactor(IISBStaticData.Character memory _newCharacter, uint256 id)
        external
        override
        onlyRole(CHARACTER_SETTER_ROLE)
    {
        characters[id] = _newCharacter;
    }

    function setImage(string memory _newImage, uint256 id) external override onlyRole(CHARACTER_SETTER_ROLE) {
        images[id] = _newImage;
    }

    function setCanBuyCharacter(uint16 characterId, bool canBuy) external override onlyRole(CHARACTER_SETTER_ROLE) {
        IISBStaticData.Character memory char = characters[characterId];
        char.canBuy = canBuy;
        characters[characterId] = char;
    }

    function incrementLevel(uint256 tokenId) external override onlyRole(LEVEL_SETTER_ROLE) {
        metadatas[tokenId].level += 1;
    }

    function decrementLevel(uint256 tokenId) external override onlyRole(LEVEL_SETTER_ROLE) {
        if(metadatas[tokenId].level == 1) revert();
        metadatas[tokenId].level -= 1;
    }

    function setLevel(uint256 tokenId, uint16 level) external override onlyRole(LEVEL_SETTER_ROLE) {
        if(level == 0) revert();
        metadatas[tokenId].level = level;
    }

    function addSeed(uint256 tokenId, IISBStaticData.Status memory seed)
        external
        override
        onlyRole(STATUS_SETTER_ROLE)
    {
        metadatas[tokenId].seedHistory.push(seed);
    }

    function getCharactersLength() external view override returns (uint256) {
        return characters.length;
    }

    function getImagesLength() external view override returns (uint256) {
        return images.length;
    }

    function getStatusMastersLength() external view override returns (uint256) {
        return statusMasters.length;
    }

    function getSeedHistory(uint256 tokenId) external view override returns (IISBStaticData.Status[] memory) {
        return metadatas[tokenId].seedHistory;
    }

    function getDefaultStatus(uint16 characterId) external view override returns (IISBStaticData.Status[] memory) {
        return characters[characterId].defaultStatus;
    }

    function getGenneration(uint256 tokenId) public view override returns (IISBStaticData.Generation) {
        if (tokenId <= gen0Supply) {
            return IISBStaticData.Generation.GEN0;
        }
        if (tokenId % 10 == 0) {
            return IISBStaticData.Generation.GEN05;
        }
        return IISBStaticData.Generation.GEN1;
    }

    function getGOVPrice(uint256 length) public view override returns (uint256) {
        if (length < 5) {
            return tokenPrices.GOVPrice1;
        } else if (length < 10) {
            return tokenPrices.GOVPrice2;
        } else if (length < 15) {
            return tokenPrices.GOVPrice3;
        } else {
            return tokenPrices.GOVPrice4;
        }
    }

    function getSINNPrice(uint256 length) public view override returns (uint256) {
        if (length < 5) {
            return tokenPrices.SINNPrice1;
        } else if (length < 10) {
            return tokenPrices.SINNPrice2;
        } else if (length < 15) {
            return tokenPrices.SINNPrice3;
        } else {
            return tokenPrices.SINNPrice4;
        }
    }

    function getPrice(uint256 length) public view override returns (uint256) {
        if (length < 5) {
            return etherPrices.mintPrice1;
        } else if (length < 10) {
            return etherPrices.mintPrice2;
        } else if (length < 15) {
            return etherPrices.mintPrice3;
        } else {
            return etherPrices.mintPrice4;
        }
    }

    function getWLPrice(uint256 length) public view override returns (uint256) {
        if (length < 5) {
            return etherPrices.wlMintPrice1;
        } else if (length < 10) {
            return etherPrices.wlMintPrice2;
        } else if (length < 15) {
            return etherPrices.wlMintPrice3;
        } else {
            return etherPrices.wlMintPrice4;
        }
    }

    function getStatus(uint256 tokenId) public view override returns (uint16[] memory) {
        return getStatus(tokenId, 65535);
    }

    function getStatus(uint256 tokenId, uint16 userLevel) public view override returns (uint16[] memory) {
        IISBStaticData.Character memory char = characters[metadatas[tokenId].characterId];
        uint16[] memory status = new uint16[](statusMasters.length);
        for (uint256 i = 0; i < metadatas[tokenId].seedHistory.length; i++) {
            if (i == metadatas[tokenId].level || i == userLevel) break;
            status[metadatas[tokenId].seedHistory[i].statusId] += metadatas[tokenId].seedHistory[i].status;
        }
        uint16 maxLevel = metadatas[tokenId].level < userLevel ? metadatas[tokenId].level : userLevel;
        for (uint256 i = 0; i < statusMasters.length; i++) {
            if(statusMasters[i].withLevel){
                status[i] += maxLevel;
            }
        }
        for (uint256 i = 0; i < char.defaultStatus.length; i++) {
            status[char.defaultStatus[i].statusId] += char.defaultStatus[i].status;
        }
        return status;
    }

    function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
        return interfaceId == type(AccessControlEnumerable).interfaceId || super.supportsInterface(interfaceId);
    }
}

File 3 of 27 : AccessControlEnumerable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (access/AccessControlEnumerable.sol)

pragma solidity ^0.8.0;

import "./IAccessControlEnumerable.sol";
import "./AccessControl.sol";
import "../utils/structs/EnumerableSet.sol";

/**
 * @dev Extension of {AccessControl} that allows enumerating the members of each role.
 */
abstract contract AccessControlEnumerable is IAccessControlEnumerable, AccessControl {
    using EnumerableSet for EnumerableSet.AddressSet;

    mapping(bytes32 => EnumerableSet.AddressSet) private _roleMembers;

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

    /**
     * @dev Returns one of the accounts that have `role`. `index` must be a
     * value between 0 and {getRoleMemberCount}, non-inclusive.
     *
     * Role bearers are not sorted in any particular way, and their ordering may
     * change at any point.
     *
     * WARNING: When using {getRoleMember} and {getRoleMemberCount}, make sure
     * you perform all queries on the same block. See the following
     * https://forum.openzeppelin.com/t/iterating-over-elements-on-enumerableset-in-openzeppelin-contracts/2296[forum post]
     * for more information.
     */
    function getRoleMember(bytes32 role, uint256 index) public view virtual override returns (address) {
        return _roleMembers[role].at(index);
    }

    /**
     * @dev Returns the number of accounts that have `role`. Can be used
     * together with {getRoleMember} to enumerate all bearers of a role.
     */
    function getRoleMemberCount(bytes32 role) public view virtual override returns (uint256) {
        return _roleMembers[role].length();
    }

    /**
     * @dev Overload {_grantRole} to track enumerable memberships
     */
    function _grantRole(bytes32 role, address account) internal virtual override {
        super._grantRole(role, account);
        _roleMembers[role].add(account);
    }

    /**
     * @dev Overload {_revokeRole} to track enumerable memberships
     */
    function _revokeRole(bytes32 role, address account) internal virtual override {
        super._revokeRole(role, account);
        _roleMembers[role].remove(account);
    }
}

File 4 of 27 : IISBStaticData.sol
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.4;
import '@openzeppelin/contracts/token/ERC20/IERC20.sol';

interface IISBStaticData {
    enum Generation {
        GEN0,
        GEN05,
        GEN1
    }
    enum WeaponType {
        Sword,
        TwoHand,
        Fists,
        Bow,
        Staff
    }
    enum ArmorType {
        HeavyArmor,
        LightArmor,
        Robe,
        Cloak,
        TribalWear
    }
    enum SexType {
        Male,
        Female,
        Hermaphrodite,
        Unknown
    }
    enum SpeciesType {
        Human,
        Elf,
        Dwarf,
        Demon,
        Merfolk,
        Therianthrope,
        Vampire,
        Angel,
        Unknown,
        Dragonewt,
        Monster
    }
    enum HeritageType {
        LowClass,
        MiddleClass,
        HighClass,
        Unknown
    }
    enum PersonalityType {
        Cool,
        Serious,
        Gentle,
        Optimistic,
        Rough,
        Diffident,
        Pessimistic,
        Passionate,
        Unknown,
        Frivolous,
        Confident
    }
    enum Phase {
        BeforeMint,
        WLMint,
        PublicMint,
        MintByTokens
    }

    struct Tokens {
        IERC20 SINN;
        IERC20 GOV;
    }
    struct Metadata {
        uint16 characterId;
        uint16 level;
        uint256 transferTime;
        Status[] seedHistory;
    }
    struct Status {
        uint256 statusId;
        uint16 status;
    }
    struct Character {
        Status[] defaultStatus;
        WeaponType weapon;
        ArmorType armor;
        SexType sex;
        SpeciesType species;
        HeritageType heritage;
        PersonalityType personality;
        string name;
        uint16 imageId;
        bool canBuy;
    }
    struct EtherPrices {
        uint64 mintPrice1;
        uint64 mintPrice2;
        uint64 mintPrice3;
        uint64 mintPrice4;
        uint64 wlMintPrice1;
        uint64 wlMintPrice2;
        uint64 wlMintPrice3;
        uint64 wlMintPrice4;
    }
    struct TokenPrices {
        uint128 SINNPrice1;
        uint128 SINNPrice2;
        uint128 SINNPrice3;
        uint128 SINNPrice4;
        uint128 GOVPrice1;
        uint128 GOVPrice2;
        uint128 GOVPrice3;
        uint128 GOVPrice4;
    }
    struct StatusMaster {
        string statusText;
        bool withLevel;
    }

    function generationText(Generation gen) external pure returns (string memory);

    function weaponTypeText(WeaponType weaponType) external pure returns (string memory);

    function armorTypeText(ArmorType armorType) external pure returns (string memory);

    function sexTypeText(SexType sexType) external pure returns (string memory);

    function speciesTypeText(SpeciesType speciesType) external pure returns (string memory);

    function heritageTypeText(HeritageType heritageType) external pure returns (string memory);

    function personalityTypeText(PersonalityType personalityType) external pure returns (string memory);

    function createMetadata(
        uint256 tokenId,
        Character calldata char,
        Metadata calldata metadata,
        uint16[] calldata status,
        StatusMaster[] calldata statusTexts,
        string calldata image,
        Generation generation
    ) external pure returns (string memory);
}

File 5 of 27 : IISGData.sol
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.4;

import {IISBStaticData} from './IISBStaticData.sol';

interface IISGData {
    function etherPrices()
        external
        view
        returns (
            uint64,
            uint64,
            uint64,
            uint64,
            uint64,
            uint64,
            uint64,
            uint64
        );

    function tokenPrices()
        external
        view
        returns (
            uint128,
            uint128,
            uint128,
            uint128,
            uint128,
            uint128,
            uint128,
            uint128
        );

    function characters(uint256)
        external
        view
        returns (
            IISBStaticData.WeaponType,
            IISBStaticData.ArmorType,
            IISBStaticData.SexType,
            IISBStaticData.SpeciesType,
            IISBStaticData.HeritageType,
            IISBStaticData.PersonalityType,
            string calldata,
            uint16,
            bool
        );

    function images(uint256) external view returns (string calldata);

    function statusMasters(uint256) external view returns (string calldata,bool);

    function metadatas(uint256)
        external
        view
        returns (
            uint16,
            uint16,
            uint256
        );

    function gen0Supply() external view returns (uint256);

    function setEtherPrices(IISBStaticData.EtherPrices memory _newPrices) external;

    function setTokenPrices(IISBStaticData.TokenPrices memory _newPrices) external;

    function setGen0Supply(uint256 _newGen0Supply) external;

    function addCharactor(IISBStaticData.Character memory _newCharacter) external;

    function addImage(string memory _newImage) external;

    function addStatusMaster(IISBStaticData.StatusMaster memory _newStatus) external;

    function setCharactor(IISBStaticData.Character memory _newCharacter, uint256 id) external;

    function setImage(string memory _newImage, uint256 id) external;

    function setCanBuyCharacter(uint16 characterId, bool canBuy) external;

    function incrementLevel(uint256 tokenId) external;

    function decrementLevel(uint256 tokenId) external;

    function setLevel(uint256 tokenId, uint16 level) external;

    function addSeed(uint256 tokenId, IISBStaticData.Status memory seed) external;

    function getCharactersLength() external view returns (uint256);

    function getImagesLength() external view returns (uint256);

    function getStatusMastersLength() external view returns (uint256);

    function getSeedHistory(uint256 tokenId) external view returns (IISBStaticData.Status[] memory);

    function getDefaultStatus(uint16 characterId) external view returns (IISBStaticData.Status[] memory);

    function getGenneration(uint256 tokenId) external view returns (IISBStaticData.Generation);

    function getGOVPrice(uint256 length) external view returns (uint256);

    function getSINNPrice(uint256 length) external view returns (uint256);

    function getPrice(uint256 length) external view returns (uint256);

    function getWLPrice(uint256 length) external view returns (uint256);

    function getStatus(uint256 tokenId) external view returns (uint16[] memory);

    function getStatus(uint256 tokenId, uint16 userLevel) external view returns (uint16[] memory);
}

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

pragma solidity ^0.8.0;

import "./IAccessControl.sol";

/**
 * @dev External interface of AccessControlEnumerable declared to support ERC165 detection.
 */
interface IAccessControlEnumerable is IAccessControl {
    /**
     * @dev Returns one of the accounts that have `role`. `index` must be a
     * value between 0 and {getRoleMemberCount}, non-inclusive.
     *
     * Role bearers are not sorted in any particular way, and their ordering may
     * change at any point.
     *
     * WARNING: When using {getRoleMember} and {getRoleMemberCount}, make sure
     * you perform all queries on the same block. See the following
     * https://forum.openzeppelin.com/t/iterating-over-elements-on-enumerableset-in-openzeppelin-contracts/2296[forum post]
     * for more information.
     */
    function getRoleMember(bytes32 role, uint256 index) external view returns (address);

    /**
     * @dev Returns the number of accounts that have `role`. Can be used
     * together with {getRoleMember} to enumerate all bearers of a role.
     */
    function getRoleMemberCount(bytes32 role) external view returns (uint256);
}

File 7 of 27 : AccessControl.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (access/AccessControl.sol)

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

    /**
     * @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 virtual override returns (bool) {
        return _roles[role].members[account];
    }

    /**
     * @dev Revert with a standard message if `_msgSender()` is missing `role`.
     * Overriding this function changes the behavior of the {onlyRole} modifier.
     *
     * Format of the revert message is described in {_checkRole}.
     *
     * _Available since v4.6._
     */
    function _checkRole(bytes32 role) internal view virtual {
        _checkRole(role, _msgSender());
    }

    /**
     * @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 virtual {
        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 virtual 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 revoked `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}.
     * ====
     *
     * NOTE: This function is deprecated in favor of {_grantRole}.
     */
    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);
    }

    /**
     * @dev Grants `role` to `account`.
     *
     * Internal function without access restriction.
     */
    function _grantRole(bytes32 role, address account) internal virtual {
        if (!hasRole(role, account)) {
            _roles[role].members[account] = true;
            emit RoleGranted(role, account, _msgSender());
        }
    }

    /**
     * @dev Revokes `role` from `account`.
     *
     * Internal function without access restriction.
     */
    function _revokeRole(bytes32 role, address account) internal virtual {
        if (hasRole(role, account)) {
            _roles[role].members[account] = false;
            emit RoleRevoked(role, account, _msgSender());
        }
    }
}

File 8 of 27 : EnumerableSet.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (utils/structs/EnumerableSet.sol)

pragma solidity ^0.8.0;

/**
 * @dev Library for managing
 * https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive
 * types.
 *
 * Sets have the following properties:
 *
 * - Elements are added, removed, and checked for existence in constant time
 * (O(1)).
 * - Elements are enumerated in O(n). No guarantees are made on the ordering.
 *
 * ```
 * contract Example {
 *     // Add the library methods
 *     using EnumerableSet for EnumerableSet.AddressSet;
 *
 *     // Declare a set state variable
 *     EnumerableSet.AddressSet private mySet;
 * }
 * ```
 *
 * As of v3.3.0, sets of type `bytes32` (`Bytes32Set`), `address` (`AddressSet`)
 * and `uint256` (`UintSet`) are supported.
 */
library EnumerableSet {
    // To implement this library for multiple types with as little code
    // repetition as possible, we write it in terms of a generic Set type with
    // bytes32 values.
    // The Set implementation uses private functions, and user-facing
    // implementations (such as AddressSet) are just wrappers around the
    // underlying Set.
    // This means that we can only create new EnumerableSets for types that fit
    // in bytes32.

    struct Set {
        // Storage of set values
        bytes32[] _values;
        // Position of the value in the `values` array, plus 1 because index 0
        // means a value is not in the set.
        mapping(bytes32 => uint256) _indexes;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function _add(Set storage set, bytes32 value) private returns (bool) {
        if (!_contains(set, value)) {
            set._values.push(value);
            // The value is stored at length-1, but we add 1 to all indexes
            // and use 0 as a sentinel value
            set._indexes[value] = set._values.length;
            return true;
        } else {
            return false;
        }
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function _remove(Set storage set, bytes32 value) private returns (bool) {
        // We read and store the value's index to prevent multiple reads from the same storage slot
        uint256 valueIndex = set._indexes[value];

        if (valueIndex != 0) {
            // Equivalent to contains(set, value)
            // To delete an element from the _values array in O(1), we swap the element to delete with the last one in
            // the array, and then remove the last element (sometimes called as 'swap and pop').
            // This modifies the order of the array, as noted in {at}.

            uint256 toDeleteIndex = valueIndex - 1;
            uint256 lastIndex = set._values.length - 1;

            if (lastIndex != toDeleteIndex) {
                bytes32 lastValue = set._values[lastIndex];

                // Move the last value to the index where the value to delete is
                set._values[toDeleteIndex] = lastValue;
                // Update the index for the moved value
                set._indexes[lastValue] = valueIndex; // Replace lastValue's index to valueIndex
            }

            // Delete the slot where the moved value was stored
            set._values.pop();

            // Delete the index for the deleted slot
            delete set._indexes[value];

            return true;
        } else {
            return false;
        }
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function _contains(Set storage set, bytes32 value) private view returns (bool) {
        return set._indexes[value] != 0;
    }

    /**
     * @dev Returns the number of values on the set. O(1).
     */
    function _length(Set storage set) private view returns (uint256) {
        return set._values.length;
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function _at(Set storage set, uint256 index) private view returns (bytes32) {
        return set._values[index];
    }

    /**
     * @dev Return the entire set in an array
     *
     * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
     * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
     * this function has an unbounded cost, and using it as part of a state-changing function may render the function
     * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
     */
    function _values(Set storage set) private view returns (bytes32[] memory) {
        return set._values;
    }

    // Bytes32Set

    struct Bytes32Set {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(Bytes32Set storage set, bytes32 value) internal returns (bool) {
        return _add(set._inner, value);
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(Bytes32Set storage set, bytes32 value) internal returns (bool) {
        return _remove(set._inner, value);
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(Bytes32Set storage set, bytes32 value) internal view returns (bool) {
        return _contains(set._inner, value);
    }

    /**
     * @dev Returns the number of values in the set. O(1).
     */
    function length(Bytes32Set storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function at(Bytes32Set storage set, uint256 index) internal view returns (bytes32) {
        return _at(set._inner, index);
    }

    /**
     * @dev Return the entire set in an array
     *
     * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
     * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
     * this function has an unbounded cost, and using it as part of a state-changing function may render the function
     * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
     */
    function values(Bytes32Set storage set) internal view returns (bytes32[] memory) {
        return _values(set._inner);
    }

    // AddressSet

    struct AddressSet {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(AddressSet storage set, address value) internal returns (bool) {
        return _add(set._inner, bytes32(uint256(uint160(value))));
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(AddressSet storage set, address value) internal returns (bool) {
        return _remove(set._inner, bytes32(uint256(uint160(value))));
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(AddressSet storage set, address value) internal view returns (bool) {
        return _contains(set._inner, bytes32(uint256(uint160(value))));
    }

    /**
     * @dev Returns the number of values in the set. O(1).
     */
    function length(AddressSet storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function at(AddressSet storage set, uint256 index) internal view returns (address) {
        return address(uint160(uint256(_at(set._inner, index))));
    }

    /**
     * @dev Return the entire set in an array
     *
     * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
     * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
     * this function has an unbounded cost, and using it as part of a state-changing function may render the function
     * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
     */
    function values(AddressSet storage set) internal view returns (address[] memory) {
        bytes32[] memory store = _values(set._inner);
        address[] memory result;

        assembly {
            result := store
        }

        return result;
    }

    // UintSet

    struct UintSet {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(UintSet storage set, uint256 value) internal returns (bool) {
        return _add(set._inner, bytes32(value));
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(UintSet storage set, uint256 value) internal returns (bool) {
        return _remove(set._inner, bytes32(value));
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(UintSet storage set, uint256 value) internal view returns (bool) {
        return _contains(set._inner, bytes32(value));
    }

    /**
     * @dev Returns the number of values on the set. O(1).
     */
    function length(UintSet storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function at(UintSet storage set, uint256 index) internal view returns (uint256) {
        return uint256(_at(set._inner, index));
    }

    /**
     * @dev Return the entire set in an array
     *
     * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
     * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
     * this function has an unbounded cost, and using it as part of a state-changing function may render the function
     * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
     */
    function values(UintSet storage set) internal view returns (uint256[] memory) {
        bytes32[] memory store = _values(set._inner);
        uint256[] memory result;

        assembly {
            result := store
        }

        return result;
    }
}

File 9 of 27 : IAccessControl.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (access/IAccessControl.sol)

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 27 : Context.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)

pragma solidity ^0.8.0;

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

pragma solidity ^0.8.0;

import "./IERC165.sol";

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

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

pragma solidity ^0.8.0;

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

File 14 of 27 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

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

    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

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

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

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

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

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

File 15 of 27 : ERC721A.sol
// SPDX-License-Identifier: MIT
// ERC721A Contracts v3.3.0
// Creator: Chiru Labs

pragma solidity ^0.8.4;

import './IERC721A.sol';
import '@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol';
import '@openzeppelin/contracts/utils/Address.sol';
import '@openzeppelin/contracts/utils/Context.sol';
import '@openzeppelin/contracts/utils/Strings.sol';
import '@openzeppelin/contracts/utils/introspection/ERC165.sol';

/**
 * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
 * the Metadata extension. Built to optimize for lower gas during batch mints.
 *
 * Assumes serials are sequentially minted starting at _startTokenId() (defaults to 0, e.g. 0, 1, 2, 3..).
 *
 * Assumes that an owner cannot have more than 2**64 - 1 (max value of uint64) of supply.
 *
 * Assumes that the maximum token id cannot exceed 2**256 - 1 (max value of uint256).
 */
contract ERC721A is Context, ERC165, IERC721A {
    using Address for address;
    using Strings for uint256;

    // The tokenId of the next token to be minted.
    uint256 internal _currentIndex;

    // The number of tokens burned.
    uint256 internal _burnCounter;

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

    // Mapping from token ID to ownership details
    // An empty struct value does not necessarily mean the token is unowned. See _ownershipOf implementation for details.
    mapping(uint256 => TokenOwnership) internal _ownerships;

    // Mapping owner address to address data
    mapping(address => AddressData) private _addressData;

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

    constructor(string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
        _currentIndex = _startTokenId();
    }

    /**
     * To change the starting tokenId, please override this function.
     */
    function _startTokenId() internal view virtual returns (uint256) {
        return 0;
    }

    /**
     * @dev Burned tokens are calculated here, use _totalMinted() if you want to count just minted tokens.
     */
    function totalSupply() public view override returns (uint256) {
        // Counter underflow is impossible as _burnCounter cannot be incremented
        // more than _currentIndex - _startTokenId() times
        unchecked {
            return _currentIndex - _burnCounter - _startTokenId();
        }
    }

    /**
     * Returns the total amount of tokens minted in the contract.
     */
    function _totalMinted() internal view returns (uint256) {
        // Counter underflow is impossible as _currentIndex does not decrement,
        // and it is initialized to _startTokenId()
        unchecked {
            return _currentIndex - _startTokenId();
        }
    }

    /**
     * @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 override returns (uint256) {
        if (owner == address(0)) revert BalanceQueryForZeroAddress();
        return uint256(_addressData[owner].balance);
    }

    /**
     * Returns the number of tokens minted by `owner`.
     */
    function _numberMinted(address owner) internal view returns (uint256) {
        return uint256(_addressData[owner].numberMinted);
    }

    /**
     * Returns the number of tokens burned by or on behalf of `owner`.
     */
    function _numberBurned(address owner) internal view returns (uint256) {
        return uint256(_addressData[owner].numberBurned);
    }

    /**
     * Returns the auxillary data for `owner`. (e.g. number of whitelist mint slots used).
     */
    function _getAux(address owner) internal view returns (uint64) {
        return _addressData[owner].aux;
    }

    /**
     * Sets the auxillary data for `owner`. (e.g. number of whitelist mint slots used).
     * If there are multiple variables, please pack them into a uint64.
     */
    function _setAux(address owner, uint64 aux) internal {
        _addressData[owner].aux = aux;
    }

    /**
     * Gas spent here starts off proportional to the maximum mint batch size.
     * It gradually moves to O(1) as tokens get transferred around in the collection over time.
     */
    function _ownershipOf(uint256 tokenId) internal view returns (TokenOwnership memory) {
        uint256 curr = tokenId;

        unchecked {
            if (_startTokenId() <= curr) if (curr < _currentIndex) {
                TokenOwnership memory ownership = _ownerships[curr];
                if (!ownership.burned) {
                    if (ownership.addr != address(0)) {
                        return ownership;
                    }
                    // Invariant:
                    // There will always be an ownership that has an address and is not burned
                    // before an ownership that does not have an address and is not burned.
                    // Hence, curr will not underflow.
                    while (true) {
                        curr--;
                        ownership = _ownerships[curr];
                        if (ownership.addr != address(0)) {
                            return ownership;
                        }
                    }
                }
            }
        }
        revert OwnerQueryForNonexistentToken();
    }

    /**
     * @dev See {IERC721-ownerOf}.
     */
    function ownerOf(uint256 tokenId) public view override returns (address) {
        return _ownershipOf(tokenId).addr;
    }

    /**
     * @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) {
        if (!_exists(tokenId)) revert URIQueryForNonexistentToken();

        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 override {
        address owner = ERC721A.ownerOf(tokenId);
        if (to == owner) revert ApprovalToCurrentOwner();

        if (_msgSender() != owner) if(!isApprovedForAll(owner, _msgSender())) {
            revert ApprovalCallerNotOwnerNorApproved();
        }

        _approve(to, tokenId, owner);
    }

    /**
     * @dev See {IERC721-getApproved}.
     */
    function getApproved(uint256 tokenId) public view override returns (address) {
        if (!_exists(tokenId)) revert ApprovalQueryForNonexistentToken();

        return _tokenApprovals[tokenId];
    }

    /**
     * @dev See {IERC721-setApprovalForAll}.
     */
    function setApprovalForAll(address operator, bool approved) public virtual override {
        if (operator == _msgSender()) revert ApproveToCaller();

        _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 {
        _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 {
        _transfer(from, to, tokenId);
        if (to.isContract()) if(!_checkContractOnERC721Received(from, to, tokenId, _data)) {
            revert TransferToNonERC721ReceiverImplementer();
        }
    }

    /**
     * @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`),
     */
    function _exists(uint256 tokenId) internal view returns (bool) {
        return _startTokenId() <= tokenId && tokenId < _currentIndex && !_ownerships[tokenId].burned;
    }

    /**
     * @dev Equivalent to `_safeMint(to, quantity, '')`.
     */
    function _safeMint(address to, uint256 quantity) internal {
        _safeMint(to, quantity, '');
    }

    /**
     * @dev Safely mints `quantity` tokens and transfers them to `to`.
     *
     * Requirements:
     *
     * - If `to` refers to a smart contract, it must implement
     *   {IERC721Receiver-onERC721Received}, which is called for each safe transfer.
     * - `quantity` must be greater than 0.
     *
     * Emits a {Transfer} event.
     */
    function _safeMint(
        address to,
        uint256 quantity,
        bytes memory _data
    ) internal {
        uint256 startTokenId = _currentIndex;
        if (to == address(0)) revert MintToZeroAddress();
        if (quantity == 0) revert MintZeroQuantity();

        _beforeTokenTransfers(address(0), to, startTokenId, quantity);

        // Overflows are incredibly unrealistic.
        // balance or numberMinted overflow if current value of either + quantity > 1.8e19 (2**64) - 1
        // updatedIndex overflows if _currentIndex + quantity > 1.2e77 (2**256) - 1
        unchecked {
            _addressData[to].balance += uint64(quantity);
            _addressData[to].numberMinted += uint64(quantity);

            _ownerships[startTokenId].addr = to;
            _ownerships[startTokenId].startTimestamp = uint64(block.timestamp);

            uint256 updatedIndex = startTokenId;
            uint256 end = updatedIndex + quantity;

            if (to.isContract()) {
                do {
                    emit Transfer(address(0), to, updatedIndex);
                    if (!_checkContractOnERC721Received(address(0), to, updatedIndex++, _data)) {
                        revert TransferToNonERC721ReceiverImplementer();
                    }
                } while (updatedIndex < end);
                // Reentrancy protection
                if (_currentIndex != startTokenId) revert();
            } else {
                do {
                    emit Transfer(address(0), to, updatedIndex++);
                } while (updatedIndex < end);
            }
            _currentIndex = updatedIndex;
        }
        _afterTokenTransfers(address(0), to, startTokenId, quantity);
    }

    /**
     * @dev Mints `quantity` tokens and transfers them to `to`.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - `quantity` must be greater than 0.
     *
     * Emits a {Transfer} event.
     */
    function _mint(address to, uint256 quantity) internal {
        uint256 startTokenId = _currentIndex;
        if (to == address(0)) revert MintToZeroAddress();
        if (quantity == 0) revert MintZeroQuantity();

        _beforeTokenTransfers(address(0), to, startTokenId, quantity);

        // Overflows are incredibly unrealistic.
        // balance or numberMinted overflow if current value of either + quantity > 1.8e19 (2**64) - 1
        // updatedIndex overflows if _currentIndex + quantity > 1.2e77 (2**256) - 1
        unchecked {
            _addressData[to].balance += uint64(quantity);
            _addressData[to].numberMinted += uint64(quantity);

            _ownerships[startTokenId].addr = to;
            _ownerships[startTokenId].startTimestamp = uint64(block.timestamp);

            uint256 updatedIndex = startTokenId;
            uint256 end = updatedIndex + quantity;

            do {
                emit Transfer(address(0), to, updatedIndex++);
            } while (updatedIndex < end);

            _currentIndex = updatedIndex;
        }
        _afterTokenTransfers(address(0), to, startTokenId, quantity);
    }

    /**
     * @dev Transfers `tokenId` from `from` to `to`.
     *
     * 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
    ) private {
        TokenOwnership memory prevOwnership = _ownershipOf(tokenId);

        if (prevOwnership.addr != from) revert TransferFromIncorrectOwner();

        bool isApprovedOrOwner = (_msgSender() == from ||
            isApprovedForAll(from, _msgSender()) ||
            getApproved(tokenId) == _msgSender());

        if (!isApprovedOrOwner) revert TransferCallerNotOwnerNorApproved();
        if (to == address(0)) revert TransferToZeroAddress();

        _beforeTokenTransfers(from, to, tokenId, 1);

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

        // Underflow of the sender's balance is impossible because we check for
        // ownership above and the recipient's balance can't realistically overflow.
        // Counter overflow is incredibly unrealistic as tokenId would have to be 2**256.
        unchecked {
            _addressData[from].balance -= 1;
            _addressData[to].balance += 1;

            TokenOwnership storage currSlot = _ownerships[tokenId];
            currSlot.addr = to;
            currSlot.startTimestamp = uint64(block.timestamp);

            // If the ownership slot of tokenId+1 is not explicitly set, that means the transfer initiator owns it.
            // Set the slot of tokenId+1 explicitly in storage to maintain correctness for ownerOf(tokenId+1) calls.
            uint256 nextTokenId = tokenId + 1;
            TokenOwnership storage nextSlot = _ownerships[nextTokenId];
            if (nextSlot.addr == address(0)) {
                // This will suffice for checking _exists(nextTokenId),
                // as a burned slot cannot contain the zero address.
                if (nextTokenId != _currentIndex) {
                    nextSlot.addr = from;
                    nextSlot.startTimestamp = prevOwnership.startTimestamp;
                }
            }
        }

        emit Transfer(from, to, tokenId);
        _afterTokenTransfers(from, to, tokenId, 1);
    }

    /**
     * @dev Equivalent to `_burn(tokenId, false)`.
     */
    function _burn(uint256 tokenId) internal virtual {
        _burn(tokenId, false);
    }

    /**
     * @dev Destroys `tokenId`.
     * The approval is cleared when the token is burned.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     *
     * Emits a {Transfer} event.
     */
    function _burn(uint256 tokenId, bool approvalCheck) internal virtual {
        TokenOwnership memory prevOwnership = _ownershipOf(tokenId);

        address from = prevOwnership.addr;

        if (approvalCheck) {
            bool isApprovedOrOwner = (_msgSender() == from ||
                isApprovedForAll(from, _msgSender()) ||
                getApproved(tokenId) == _msgSender());

            if (!isApprovedOrOwner) revert TransferCallerNotOwnerNorApproved();
        }

        _beforeTokenTransfers(from, address(0), tokenId, 1);

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

        // Underflow of the sender's balance is impossible because we check for
        // ownership above and the recipient's balance can't realistically overflow.
        // Counter overflow is incredibly unrealistic as tokenId would have to be 2**256.
        unchecked {
            AddressData storage addressData = _addressData[from];
            addressData.balance -= 1;
            addressData.numberBurned += 1;

            // Keep track of who burned the token, and the timestamp of burning.
            TokenOwnership storage currSlot = _ownerships[tokenId];
            currSlot.addr = from;
            currSlot.startTimestamp = uint64(block.timestamp);
            currSlot.burned = true;

            // If the ownership slot of tokenId+1 is not explicitly set, that means the burn initiator owns it.
            // Set the slot of tokenId+1 explicitly in storage to maintain correctness for ownerOf(tokenId+1) calls.
            uint256 nextTokenId = tokenId + 1;
            TokenOwnership storage nextSlot = _ownerships[nextTokenId];
            if (nextSlot.addr == address(0)) {
                // This will suffice for checking _exists(nextTokenId),
                // as a burned slot cannot contain the zero address.
                if (nextTokenId != _currentIndex) {
                    nextSlot.addr = from;
                    nextSlot.startTimestamp = prevOwnership.startTimestamp;
                }
            }
        }

        emit Transfer(from, address(0), tokenId);
        _afterTokenTransfers(from, address(0), tokenId, 1);

        // Overflow not possible, as _burnCounter cannot be exceed _currentIndex times.
        unchecked {
            _burnCounter++;
        }
    }

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

    /**
     * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target 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 _checkContractOnERC721Received(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) private returns (bool) {
        try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) {
            return retval == IERC721Receiver(to).onERC721Received.selector;
        } catch (bytes memory reason) {
            if (reason.length == 0) {
                revert TransferToNonERC721ReceiverImplementer();
            } else {
                assembly {
                    revert(add(32, reason), mload(reason))
                }
            }
        }
    }

    /**
     * @dev Hook that is called before a set of serially-ordered token ids are about to be transferred. This includes minting.
     * And also called before burning one token.
     *
     * startTokenId - the first token id to be transferred
     * quantity - the amount to be transferred
     *
     * 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, `tokenId` will be burned by `from`.
     * - `from` and `to` are never both zero.
     */
    function _beforeTokenTransfers(
        address from,
        address to,
        uint256 startTokenId,
        uint256 quantity
    ) internal virtual {}

    /**
     * @dev Hook that is called after a set of serially-ordered token ids have been transferred. This includes
     * minting.
     * And also called after one token has been burned.
     *
     * startTokenId - the first token id to be transferred
     * quantity - the amount to be transferred
     *
     * Calling conditions:
     *
     * - When `from` and `to` are both non-zero, `from`'s `tokenId` has been
     * transferred to `to`.
     * - When `from` is zero, `tokenId` has been minted for `to`.
     * - When `to` is zero, `tokenId` has been burned by `from`.
     * - `from` and `to` are never both zero.
     */
    function _afterTokenTransfers(
        address from,
        address to,
        uint256 startTokenId,
        uint256 quantity
    ) internal virtual {}
}

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

pragma solidity ^0.8.0;

/**
 * @dev Provides a set of functions to operate with Base64 strings.
 *
 * _Available since v4.5._
 */
library Base64 {
    /**
     * @dev Base64 Encoding/Decoding Table
     */
    string internal constant _TABLE = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";

    /**
     * @dev Converts a `bytes` to its Bytes64 `string` representation.
     */
    function encode(bytes memory data) internal pure returns (string memory) {
        /**
         * Inspired by Brecht Devos (Brechtpd) implementation - MIT licence
         * https://github.com/Brechtpd/base64/blob/e78d9fd951e7b0977ddca77d92dc85183770daf4/base64.sol
         */
        if (data.length == 0) return "";

        // Loads the table into memory
        string memory table = _TABLE;

        // Encoding takes 3 bytes chunks of binary data from `bytes` data parameter
        // and split into 4 numbers of 6 bits.
        // The final Base64 length should be `bytes` data length multiplied by 4/3 rounded up
        // - `data.length + 2`  -> Round up
        // - `/ 3`              -> Number of 3-bytes chunks
        // - `4 *`              -> 4 characters for each chunk
        string memory result = new string(4 * ((data.length + 2) / 3));

        assembly {
            // Prepare the lookup table (skip the first "length" byte)
            let tablePtr := add(table, 1)

            // Prepare result pointer, jump over length
            let resultPtr := add(result, 32)

            // Run over the input, 3 bytes at a time
            for {
                let dataPtr := data
                let endPtr := add(data, mload(data))
            } lt(dataPtr, endPtr) {

            } {
                // Advance 3 bytes
                dataPtr := add(dataPtr, 3)
                let input := mload(dataPtr)

                // To write each character, shift the 3 bytes (18 bits) chunk
                // 4 times in blocks of 6 bits for each character (18, 12, 6, 0)
                // and apply logical AND with 0x3F which is the number of
                // the previous character in the ASCII table prior to the Base64 Table
                // The result is then added to the table to get the character to write,
                // and finally write it in the result pointer but with a left shift
                // of 256 (1 byte) - 8 (1 ASCII char) = 248 bits

                mstore8(resultPtr, mload(add(tablePtr, and(shr(18, input), 0x3F))))
                resultPtr := add(resultPtr, 1) // Advance

                mstore8(resultPtr, mload(add(tablePtr, and(shr(12, input), 0x3F))))
                resultPtr := add(resultPtr, 1) // Advance

                mstore8(resultPtr, mload(add(tablePtr, and(shr(6, input), 0x3F))))
                resultPtr := add(resultPtr, 1) // Advance

                mstore8(resultPtr, mload(add(tablePtr, and(input, 0x3F))))
                resultPtr := add(resultPtr, 1) // Advance
            }

            // When data `bytes` is not exactly 3 bytes long
            // it is padded with `=` characters at the end
            switch mod(mload(data), 3)
            case 1 {
                mstore8(sub(resultPtr, 1), 0x3d)
                mstore8(sub(resultPtr, 2), 0x3d)
            }
            case 2 {
                mstore8(sub(resultPtr, 1), 0x3d)
            }
        }

        return result;
    }
}

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

pragma solidity ^0.8.0;

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

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

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

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

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

        _;

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

File 18 of 27 : IIsekaiBattle.sol
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.4;

import {IISBStaticData} from './IISBStaticData.sol';
import '@openzeppelin/contracts/token/ERC20/IERC20.sol';
import {IISGData} from './IISGData.sol';

error BeforeMint();
error MintReachedMaxSupply();
error MintReachedSaleSupply();
error MintReachedWhitelistSaleSupply();
error MintValueIsMissing();
error MintCannotBuyCharacter();
error MintMinSupply();
error MintMaxSupply();
error MintNotWhitelisted();

interface IIsekaiBattle is IISGData {
    function withdrawAddress() external view returns (address payable);

    function staticData() external view returns (IISBStaticData);

    function whitelist(address) external view returns (bool);

    function whitelistMinted(address) external view returns (uint256);

    function phase() external view returns (IISBStaticData.Phase);

    function minMintSupply() external view returns (uint16);

    function maxMintSupply() external view returns (uint16);

    function maxSupply() external view returns (uint256);

    function resetLevel() external view returns (bool);

    function saveTransferTime() external view returns (bool);

    function tokens() external view returns (IERC20, IERC20);

    function mintByTokens(uint16[] calldata characterIds) external;

    function mint(uint16[] calldata characterIds) external payable;

    function whitelistMint(uint16[] calldata characterIds) external payable;

    function minterMint(uint16[] calldata characterIds, address to) external;

    function burn(uint256 tokenId) external;

    function withdraw() external;

    function setWhitelist(address[] memory addresses) external;

    function deleteWhitelist(address[] memory addresses) external;

    function setTokens(IISBStaticData.Tokens memory _newTokens) external;

    function setPhase(IISBStaticData.Phase _newPhase) external;

    function setMaxSupply(uint256 _newMaxSupply) external;

    function setResetLevel(bool _newResetLevel) external;

    function setSaveTransferTime(bool _newSaveTransferTime) external;

    function setMinMintSupply(uint16 _minMintSupply) external;

    function setMaxMintSupply(uint16 _maxMintSupply) external;
}

File 19 of 27 : IERC721A.sol
// SPDX-License-Identifier: MIT
// ERC721A Contracts v3.3.0
// Creator: Chiru Labs

pragma solidity ^0.8.4;

import '@openzeppelin/contracts/token/ERC721/IERC721.sol';
import '@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol';

/**
 * @dev Interface of an ERC721A compliant contract.
 */
interface IERC721A is IERC721, IERC721Metadata {
    /**
     * The caller must own the token or be an approved operator.
     */
    error ApprovalCallerNotOwnerNorApproved();

    /**
     * The token does not exist.
     */
    error ApprovalQueryForNonexistentToken();

    /**
     * The caller cannot approve to their own address.
     */
    error ApproveToCaller();

    /**
     * The caller cannot approve to the current owner.
     */
    error ApprovalToCurrentOwner();

    /**
     * Cannot query the balance for the zero address.
     */
    error BalanceQueryForZeroAddress();

    /**
     * Cannot mint to the zero address.
     */
    error MintToZeroAddress();

    /**
     * The quantity of tokens minted must be more than zero.
     */
    error MintZeroQuantity();

    /**
     * The token does not exist.
     */
    error OwnerQueryForNonexistentToken();

    /**
     * The caller must own the token or be an approved operator.
     */
    error TransferCallerNotOwnerNorApproved();

    /**
     * The token must be owned by `from`.
     */
    error TransferFromIncorrectOwner();

    /**
     * Cannot safely transfer to a contract that does not implement the ERC721Receiver interface.
     */
    error TransferToNonERC721ReceiverImplementer();

    /**
     * Cannot transfer to the zero address.
     */
    error TransferToZeroAddress();

    /**
     * The token does not exist.
     */
    error URIQueryForNonexistentToken();

    // Compiler will pack this into a single 256bit word.
    struct TokenOwnership {
        // The address of the owner.
        address addr;
        // Keeps track of the start time of ownership with minimal overhead for tokenomics.
        uint64 startTimestamp;
        // Whether the token has been burned.
        bool burned;
    }

    // Compiler will pack this into a single 256bit word.
    struct AddressData {
        // Realistically, 2**64-1 is more than enough.
        uint64 balance;
        // Keeps track of mint count with minimal overhead for tokenomics.
        uint64 numberMinted;
        // Keeps track of burn count with minimal overhead for tokenomics.
        uint64 numberBurned;
        // For miscellaneous variable(s) pertaining to the address
        // (e.g. number of whitelist mint slots used).
        // If there are multiple variables, please pack them into a uint64.
        uint64 aux;
    }

    /**
     * @dev Returns the total amount of tokens stored by the contract.
     * 
     * Burned tokens are calculated here, use `_totalMinted()` if you want to count just minted tokens.
     */
    function totalSupply() external view returns (uint256);
}

File 20 of 27 : IERC721Receiver.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721Receiver.sol)

pragma solidity ^0.8.0;

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

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

pragma solidity ^0.8.1;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     *
     * [IMPORTANT]
     * ====
     * You shouldn't rely on `isContract` to protect against flash loan attacks!
     *
     * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets
     * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract
     * constructor.
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize/address.code.length, which returns 0
        // for contracts in construction, since the code is only stored at the end
        // of the constructor execution.

        return account.code.length > 0;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

File 22 of 27 : IERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`.
     *
     * 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;

    /**
     * @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 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 the account approved for `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function getApproved(uint256 tokenId) external view returns (address operator);

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

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

pragma solidity ^0.8.0;

import "../IERC721.sol";

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

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

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

File 24 of 27 : ISBStaticData.sol
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.4;
import '@openzeppelin/contracts/utils/Base64.sol';
import '@openzeppelin/contracts/utils/Strings.sol';
import '@openzeppelin/contracts/utils/introspection/ERC165.sol';
import './interface/IISBStaticData.sol';

contract ISBStaticData is IISBStaticData, ERC165 {
    using Strings for uint256;
    using Strings for uint16;

    function generationText(Generation gen) public pure override returns (string memory) {
        if (gen == Generation.GEN0) {
            return 'GEN0';
        } else if (gen == Generation.GEN05) {
            return 'GEN0.5';
        } else if (gen == Generation.GEN1) {
            return 'GEN1';
        } else {
            return '';
        }
    }

    function weaponTypeText(WeaponType weaponType) public pure override returns (string memory) {
        if (weaponType == WeaponType.Sword) {
            return 'Sword';
        } else if (weaponType == WeaponType.TwoHand) {
            return 'TwoHand';
        } else if (weaponType == WeaponType.Fists) {
            return 'Fists';
        } else if (weaponType == WeaponType.Bow) {
            return 'Bow';
        } else if (weaponType == WeaponType.Staff) {
            return 'Staff';
        } else {
            return '';
        }
    }

    function armorTypeText(ArmorType armorType) public pure override returns (string memory) {
        if (armorType == ArmorType.HeavyArmor) {
            return 'HeavyArmor';
        } else if (armorType == ArmorType.LightArmor) {
            return 'LightArmor';
        } else if (armorType == ArmorType.Robe) {
            return 'Robe';
        } else if (armorType == ArmorType.Cloak) {
            return 'Cloak';
        } else if (armorType == ArmorType.TribalWear) {
            return 'TribalWear';
        } else {
            return '';
        }
    }

    function sexTypeText(SexType sexType) public pure override returns (string memory) {
        if (sexType == SexType.Male) {
            return 'Male';
        } else if (sexType == SexType.Female) {
            return 'Female';
        } else if (sexType == SexType.Hermaphrodite) {
            return 'Hermaphrodite';
        } else if (sexType == SexType.Unknown) {
            return 'Unknown';
        } else {
            return '';
        }
    }

    function speciesTypeText(SpeciesType speciesType) public pure override returns (string memory) {
        if (speciesType == SpeciesType.Human) {
            return 'Human';
        } else if (speciesType == SpeciesType.Elf) {
            return 'Elf';
        } else if (speciesType == SpeciesType.Dwarf) {
            return 'Dwarf';
        } else if (speciesType == SpeciesType.Demon) {
            return 'Demon';
        } else if (speciesType == SpeciesType.Merfolk) {
            return 'Merfolk';
        } else if (speciesType == SpeciesType.Therianthrope) {
            return 'Therianthrope';
        } else if (speciesType == SpeciesType.Vampire) {
            return 'Vampire';
        } else if (speciesType == SpeciesType.Angel) {
            return 'Angel';
        } else if (speciesType == SpeciesType.Unknown) {
            return 'Unknown';
        } else if (speciesType == SpeciesType.Dragonewt) {
            return 'Dragonewt';
        } else if (speciesType == SpeciesType.Monster) {
            return 'Monster';
        } else {
            return '';
        }
    }

    function heritageTypeText(HeritageType heritageType) public pure override returns (string memory) {
        if (heritageType == HeritageType.LowClass) {
            return 'LowClass';
        } else if (heritageType == HeritageType.MiddleClass) {
            return 'MiddleClass';
        } else if (heritageType == HeritageType.HighClass) {
            return 'HighClass';
        } else if (heritageType == HeritageType.Unknown) {
            return 'Unknown';
        } else {
            return '';
        }
    }

    function personalityTypeText(PersonalityType personalityType) public pure override returns (string memory) {
        if (personalityType == PersonalityType.Cool) {
            return 'Cool';
        } else if (personalityType == PersonalityType.Serious) {
            return 'Serious';
        } else if (personalityType == PersonalityType.Gentle) {
            return 'Gentle';
        } else if (personalityType == PersonalityType.Optimistic) {
            return 'Optimistic';
        } else if (personalityType == PersonalityType.Rough) {
            return 'Rough';
        } else if (personalityType == PersonalityType.Diffident) {
            return 'Diffident';
        } else if (personalityType == PersonalityType.Pessimistic) {
            return 'Pessimistic';
        } else if (personalityType == PersonalityType.Passionate) {
            return 'Passionate';
        } else if (personalityType == PersonalityType.Unknown) {
            return 'Unknown';
        } else if (personalityType == PersonalityType.Frivolous) {
            return 'Frivolous';
        } else if (personalityType == PersonalityType.Confident) {
            return 'Confident';
        } else {
            return '';
        }
    }

    function createMetadata(
        uint256 tokenId,
        Character calldata char,
        Metadata calldata metadata,
        uint16[] calldata status,
        StatusMaster[] calldata statusMaster,
        string calldata image,
        Generation generation
    ) public pure override returns (string memory) {
        bytes memory attributes = abi.encodePacked(
            '{"trait_type": "Name","value": "',
            char.name,
            '"},{"trait_type": "Generation Type","value": "',
            generationText(generation),
            abi.encodePacked(
                '"},{"trait_type": "Weapon","value": "',
                weaponTypeText(char.weapon),
                '"},{"trait_type": "Armor","value": "',
                armorTypeText(char.armor),
                '"},{"trait_type": "Sex","value": "',
                sexTypeText(char.sex),
                '"},{"trait_type": "Species","value": "',
                speciesTypeText(char.species),
                '"},{"trait_type": "Heritage","value": "',
                heritageTypeText(char.heritage),
                '"},{"trait_type": "Personality","value": "',
                personalityTypeText(char.personality)
            ),
            '"},{"trait_type": "Used Seed","value": ',
            metadata.seedHistory.length.toString(),
            '},{"trait_type": "Level","value": ',
            metadata.level.toString(),
            '}',
            statusMaster.length == 0 ? ',' : ''
        );
        for (uint256 i = 0; i < statusMaster.length; i++) {
            if (i == 0) attributes = abi.encodePacked(attributes, ',');
            attributes = abi.encodePacked(
                attributes,
                '{"trait_type": "',
                statusMaster[i].statusText,
                '","value": ',
                status[i].toString(),
                '}',
                i == statusMaster.length - 1 ? '' : ','
            );
        }
        bytes memory dataURI = abi.encodePacked(
            '{"name": "',
            char.name,
            ' #',
            tokenId.toString(),
            '","description": "When the seven Fragments come together,  \\nThe lost power of the gods will be revived and unleashed.  \\n  \\nExplore the Isekai, Turkenista, and defeat your rivals to collect Fragments (NFT)! Combining the Fragments will bring back SINKI blessing you with overflowing SINN(ERC20)!   \\n  \\nYou will need 3 or more characters to play this fully on-chain game on the Ethereum blockchain.  \\n  \\nBattle for NFTs!","image": "',
            image,
            '","attributes": [',
            attributes,
            ']}'
        );

        return string(abi.encodePacked('data:application/json;base64,', Base64.encode(dataURI)));
    }

    function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
        return interfaceId == type(IISBStaticData).interfaceId || super.supportsInterface(interfaceId);
    }
}

File 25 of 27 : ERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/ERC20.sol)

pragma solidity ^0.8.0;

import "./IERC20.sol";
import "./extensions/IERC20Metadata.sol";
import "../../utils/Context.sol";

/**
 * @dev Implementation of the {IERC20} interface.
 *
 * This implementation is agnostic to the way tokens are created. This means
 * that a supply mechanism has to be added in a derived contract using {_mint}.
 * For a generic mechanism see {ERC20PresetMinterPauser}.
 *
 * TIP: For a detailed writeup see our guide
 * https://forum.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How
 * to implement supply mechanisms].
 *
 * We have followed general OpenZeppelin Contracts guidelines: functions revert
 * instead returning `false` on failure. This behavior is nonetheless
 * conventional and does not conflict with the expectations of ERC20
 * applications.
 *
 * Additionally, an {Approval} event is emitted on calls to {transferFrom}.
 * This allows applications to reconstruct the allowance for all accounts just
 * by listening to said events. Other implementations of the EIP may not emit
 * these events, as it isn't required by the specification.
 *
 * Finally, the non-standard {decreaseAllowance} and {increaseAllowance}
 * functions have been added to mitigate the well-known issues around setting
 * allowances. See {IERC20-approve}.
 */
contract ERC20 is Context, IERC20, IERC20Metadata {
    mapping(address => uint256) private _balances;

    mapping(address => mapping(address => uint256)) private _allowances;

    uint256 private _totalSupply;

    string private _name;
    string private _symbol;

    /**
     * @dev Sets the values for {name} and {symbol}.
     *
     * The default value of {decimals} is 18. To select a different value for
     * {decimals} you should overload it.
     *
     * All two of these values are immutable: they can only be set once during
     * construction.
     */
    constructor(string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
    }

    /**
     * @dev Returns the name of the token.
     */
    function name() public view virtual override returns (string memory) {
        return _name;
    }

    /**
     * @dev Returns the symbol of the token, usually a shorter version of the
     * name.
     */
    function symbol() public view virtual override returns (string memory) {
        return _symbol;
    }

    /**
     * @dev Returns the number of decimals used to get its user representation.
     * For example, if `decimals` equals `2`, a balance of `505` tokens should
     * be displayed to a user as `5.05` (`505 / 10 ** 2`).
     *
     * Tokens usually opt for a value of 18, imitating the relationship between
     * Ether and Wei. This is the value {ERC20} uses, unless this function is
     * overridden;
     *
     * NOTE: This information is only used for _display_ purposes: it in
     * no way affects any of the arithmetic of the contract, including
     * {IERC20-balanceOf} and {IERC20-transfer}.
     */
    function decimals() public view virtual override returns (uint8) {
        return 18;
    }

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

    /**
     * @dev See {IERC20-balanceOf}.
     */
    function balanceOf(address account) public view virtual override returns (uint256) {
        return _balances[account];
    }

    /**
     * @dev See {IERC20-transfer}.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - the caller must have a balance of at least `amount`.
     */
    function transfer(address to, uint256 amount) public virtual override returns (bool) {
        address owner = _msgSender();
        _transfer(owner, to, amount);
        return true;
    }

    /**
     * @dev See {IERC20-allowance}.
     */
    function allowance(address owner, address spender) public view virtual override returns (uint256) {
        return _allowances[owner][spender];
    }

    /**
     * @dev See {IERC20-approve}.
     *
     * NOTE: If `amount` is the maximum `uint256`, the allowance is not updated on
     * `transferFrom`. This is semantically equivalent to an infinite approval.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function approve(address spender, uint256 amount) public virtual override returns (bool) {
        address owner = _msgSender();
        _approve(owner, spender, amount);
        return true;
    }

    /**
     * @dev See {IERC20-transferFrom}.
     *
     * Emits an {Approval} event indicating the updated allowance. This is not
     * required by the EIP. See the note at the beginning of {ERC20}.
     *
     * NOTE: Does not update the allowance if the current allowance
     * is the maximum `uint256`.
     *
     * Requirements:
     *
     * - `from` and `to` cannot be the zero address.
     * - `from` must have a balance of at least `amount`.
     * - the caller must have allowance for ``from``'s tokens of at least
     * `amount`.
     */
    function transferFrom(
        address from,
        address to,
        uint256 amount
    ) public virtual override returns (bool) {
        address spender = _msgSender();
        _spendAllowance(from, spender, amount);
        _transfer(from, to, amount);
        return true;
    }

    /**
     * @dev Atomically increases the allowance granted to `spender` by the caller.
     *
     * This is an alternative to {approve} that can be used as a mitigation for
     * problems described in {IERC20-approve}.
     *
     * Emits an {Approval} event indicating the updated allowance.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) {
        address owner = _msgSender();
        _approve(owner, spender, allowance(owner, spender) + addedValue);
        return true;
    }

    /**
     * @dev Atomically decreases the allowance granted to `spender` by the caller.
     *
     * This is an alternative to {approve} that can be used as a mitigation for
     * problems described in {IERC20-approve}.
     *
     * Emits an {Approval} event indicating the updated allowance.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     * - `spender` must have allowance for the caller of at least
     * `subtractedValue`.
     */
    function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) {
        address owner = _msgSender();
        uint256 currentAllowance = allowance(owner, spender);
        require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero");
        unchecked {
            _approve(owner, spender, currentAllowance - subtractedValue);
        }

        return true;
    }

    /**
     * @dev Moves `amount` of tokens from `sender` to `recipient`.
     *
     * This internal function is equivalent to {transfer}, and can be used to
     * e.g. implement automatic token fees, slashing mechanisms, etc.
     *
     * Emits a {Transfer} event.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `from` must have a balance of at least `amount`.
     */
    function _transfer(
        address from,
        address to,
        uint256 amount
    ) internal virtual {
        require(from != address(0), "ERC20: transfer from the zero address");
        require(to != address(0), "ERC20: transfer to the zero address");

        _beforeTokenTransfer(from, to, amount);

        uint256 fromBalance = _balances[from];
        require(fromBalance >= amount, "ERC20: transfer amount exceeds balance");
        unchecked {
            _balances[from] = fromBalance - amount;
        }
        _balances[to] += amount;

        emit Transfer(from, to, amount);

        _afterTokenTransfer(from, to, amount);
    }

    /** @dev Creates `amount` tokens and assigns them to `account`, increasing
     * the total supply.
     *
     * Emits a {Transfer} event with `from` set to the zero address.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     */
    function _mint(address account, uint256 amount) internal virtual {
        require(account != address(0), "ERC20: mint to the zero address");

        _beforeTokenTransfer(address(0), account, amount);

        _totalSupply += amount;
        _balances[account] += amount;
        emit Transfer(address(0), account, amount);

        _afterTokenTransfer(address(0), account, amount);
    }

    /**
     * @dev Destroys `amount` tokens from `account`, reducing the
     * total supply.
     *
     * Emits a {Transfer} event with `to` set to the zero address.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     * - `account` must have at least `amount` tokens.
     */
    function _burn(address account, uint256 amount) internal virtual {
        require(account != address(0), "ERC20: burn from the zero address");

        _beforeTokenTransfer(account, address(0), amount);

        uint256 accountBalance = _balances[account];
        require(accountBalance >= amount, "ERC20: burn amount exceeds balance");
        unchecked {
            _balances[account] = accountBalance - amount;
        }
        _totalSupply -= amount;

        emit Transfer(account, address(0), amount);

        _afterTokenTransfer(account, address(0), amount);
    }

    /**
     * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens.
     *
     * This internal function is equivalent to `approve`, and can be used to
     * e.g. set automatic allowances for certain subsystems, etc.
     *
     * Emits an {Approval} event.
     *
     * Requirements:
     *
     * - `owner` cannot be the zero address.
     * - `spender` cannot be the zero address.
     */
    function _approve(
        address owner,
        address spender,
        uint256 amount
    ) internal virtual {
        require(owner != address(0), "ERC20: approve from the zero address");
        require(spender != address(0), "ERC20: approve to the zero address");

        _allowances[owner][spender] = amount;
        emit Approval(owner, spender, amount);
    }

    /**
     * @dev Updates `owner` s allowance for `spender` based on spent `amount`.
     *
     * Does not update the allowance amount in case of infinite allowance.
     * Revert if not enough allowance is available.
     *
     * Might emit an {Approval} event.
     */
    function _spendAllowance(
        address owner,
        address spender,
        uint256 amount
    ) internal virtual {
        uint256 currentAllowance = allowance(owner, spender);
        if (currentAllowance != type(uint256).max) {
            require(currentAllowance >= amount, "ERC20: insufficient allowance");
            unchecked {
                _approve(owner, spender, currentAllowance - amount);
            }
        }
    }

    /**
     * @dev Hook that is called before any transfer of tokens. This includes
     * minting and burning.
     *
     * Calling conditions:
     *
     * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
     * will be transferred to `to`.
     * - when `from` is zero, `amount` tokens will be minted for `to`.
     * - when `to` is zero, `amount` of ``from``'s tokens 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 amount
    ) internal virtual {}

    /**
     * @dev Hook that is called after any transfer of tokens. This includes
     * minting and burning.
     *
     * Calling conditions:
     *
     * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
     * has been transferred to `to`.
     * - when `from` is zero, `amount` tokens have been minted for `to`.
     * - when `to` is zero, `amount` of ``from``'s tokens have been 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 _afterTokenTransfer(
        address from,
        address to,
        uint256 amount
    ) internal virtual {}
}

File 26 of 27 : IERC20Metadata.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol)

pragma solidity ^0.8.0;

import "../IERC20.sol";

/**
 * @dev Interface for the optional metadata functions from the ERC20 standard.
 *
 * _Available since v4.1._
 */
interface IERC20Metadata is IERC20 {
    /**
     * @dev Returns the name of the token.
     */
    function name() external view returns (string memory);

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

    /**
     * @dev Returns the decimals places of the token.
     */
    function decimals() external view returns (uint8);
}

File 27 of 27 : SINN.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

import '@openzeppelin/contracts/token/ERC20/ERC20.sol';

contract SINN is ERC20 {
    constructor() ERC20('SINN', 'SINN') {
        _mint(msg.sender, 100000 ether);
    }

    function mint(address to, uint256 amount) public {
        _mint(to, amount);
    }
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"contract IISBStaticData","name":"_staticData","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"ApprovalToCurrentOwner","type":"error"},{"inputs":[],"name":"ApproveToCaller","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"BeforeMint","type":"error"},{"inputs":[],"name":"MintCannotBuyCharacter","type":"error"},{"inputs":[],"name":"MintMaxSupply","type":"error"},{"inputs":[],"name":"MintMinSupply","type":"error"},{"inputs":[],"name":"MintNotWhitelisted","type":"error"},{"inputs":[],"name":"MintReachedMaxSupply","type":"error"},{"inputs":[],"name":"MintReachedWhitelistSaleSupply","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintValueIsMissing","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"inputs":[],"name":"URIQueryForNonexistentToken","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"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"},{"inputs":[],"name":"BURNER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"CHARACTER_SETTER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"LEVEL_SETTER_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":"STATUS_SETTER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"components":[{"components":[{"internalType":"uint256","name":"statusId","type":"uint256"},{"internalType":"uint16","name":"status","type":"uint16"}],"internalType":"struct IISBStaticData.Status[]","name":"defaultStatus","type":"tuple[]"},{"internalType":"enum IISBStaticData.WeaponType","name":"weapon","type":"uint8"},{"internalType":"enum IISBStaticData.ArmorType","name":"armor","type":"uint8"},{"internalType":"enum IISBStaticData.SexType","name":"sex","type":"uint8"},{"internalType":"enum IISBStaticData.SpeciesType","name":"species","type":"uint8"},{"internalType":"enum IISBStaticData.HeritageType","name":"heritage","type":"uint8"},{"internalType":"enum IISBStaticData.PersonalityType","name":"personality","type":"uint8"},{"internalType":"string","name":"name","type":"string"},{"internalType":"uint16","name":"imageId","type":"uint16"},{"internalType":"bool","name":"canBuy","type":"bool"}],"internalType":"struct IISBStaticData.Character","name":"_newCharacter","type":"tuple"}],"name":"addCharactor","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_newImage","type":"string"}],"name":"addImage","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"components":[{"internalType":"uint256","name":"statusId","type":"uint256"},{"internalType":"uint16","name":"status","type":"uint16"}],"internalType":"struct IISBStaticData.Status","name":"seed","type":"tuple"}],"name":"addSeed","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"components":[{"internalType":"string","name":"statusText","type":"string"},{"internalType":"bool","name":"withLevel","type":"bool"}],"internalType":"struct IISBStaticData.StatusMaster","name":"_newStatus","type":"tuple"}],"name":"addStatusMaster","outputs":[],"stateMutability":"nonpayable","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":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"characters","outputs":[{"internalType":"enum IISBStaticData.WeaponType","name":"weapon","type":"uint8"},{"internalType":"enum IISBStaticData.ArmorType","name":"armor","type":"uint8"},{"internalType":"enum IISBStaticData.SexType","name":"sex","type":"uint8"},{"internalType":"enum IISBStaticData.SpeciesType","name":"species","type":"uint8"},{"internalType":"enum IISBStaticData.HeritageType","name":"heritage","type":"uint8"},{"internalType":"enum IISBStaticData.PersonalityType","name":"personality","type":"uint8"},{"internalType":"string","name":"name","type":"string"},{"internalType":"uint16","name":"imageId","type":"uint16"},{"internalType":"bool","name":"canBuy","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"decrementLevel","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"addresses","type":"address[]"}],"name":"deleteWhitelist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"etherPrices","outputs":[{"internalType":"uint64","name":"mintPrice1","type":"uint64"},{"internalType":"uint64","name":"mintPrice2","type":"uint64"},{"internalType":"uint64","name":"mintPrice3","type":"uint64"},{"internalType":"uint64","name":"mintPrice4","type":"uint64"},{"internalType":"uint64","name":"wlMintPrice1","type":"uint64"},{"internalType":"uint64","name":"wlMintPrice2","type":"uint64"},{"internalType":"uint64","name":"wlMintPrice3","type":"uint64"},{"internalType":"uint64","name":"wlMintPrice4","type":"uint64"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"gen0Supply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getCharactersLength","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint16","name":"characterId","type":"uint16"}],"name":"getDefaultStatus","outputs":[{"components":[{"internalType":"uint256","name":"statusId","type":"uint256"},{"internalType":"uint16","name":"status","type":"uint16"}],"internalType":"struct IISBStaticData.Status[]","name":"","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"length","type":"uint256"}],"name":"getGOVPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getGenneration","outputs":[{"internalType":"enum IISBStaticData.Generation","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getImagesLength","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"length","type":"uint256"}],"name":"getPrice","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":"bytes32","name":"role","type":"bytes32"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"getRoleMember","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleMemberCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"length","type":"uint256"}],"name":"getSINNPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getSeedHistory","outputs":[{"components":[{"internalType":"uint256","name":"statusId","type":"uint256"},{"internalType":"uint16","name":"status","type":"uint16"}],"internalType":"struct IISBStaticData.Status[]","name":"","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getStatus","outputs":[{"internalType":"uint16[]","name":"","type":"uint16[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint16","name":"userLevel","type":"uint16"}],"name":"getStatus","outputs":[{"internalType":"uint16[]","name":"","type":"uint16[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getStatusMastersLength","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"length","type":"uint256"}],"name":"getWLPrice","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":"uint256","name":"","type":"uint256"}],"name":"images","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"incrementLevel","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxMintSupply","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"metadatas","outputs":[{"internalType":"uint16","name":"characterId","type":"uint16"},{"internalType":"uint16","name":"level","type":"uint16"},{"internalType":"uint256","name":"transferTime","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"minMintSupply","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint16[]","name":"characterIds","type":"uint16[]"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint16[]","name":"characterIds","type":"uint16[]"}],"name":"mintByTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16[]","name":"characterIds","type":"uint16[]"},{"internalType":"address","name":"to","type":"address"}],"name":"minterMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"phase","outputs":[{"internalType":"enum IISBStaticData.Phase","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"resetLevel","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","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":[],"name":"saveTransferTime","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"characterId","type":"uint16"},{"internalType":"bool","name":"canBuy","type":"bool"}],"name":"setCanBuyCharacter","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"components":[{"components":[{"internalType":"uint256","name":"statusId","type":"uint256"},{"internalType":"uint16","name":"status","type":"uint16"}],"internalType":"struct IISBStaticData.Status[]","name":"defaultStatus","type":"tuple[]"},{"internalType":"enum IISBStaticData.WeaponType","name":"weapon","type":"uint8"},{"internalType":"enum IISBStaticData.ArmorType","name":"armor","type":"uint8"},{"internalType":"enum IISBStaticData.SexType","name":"sex","type":"uint8"},{"internalType":"enum IISBStaticData.SpeciesType","name":"species","type":"uint8"},{"internalType":"enum IISBStaticData.HeritageType","name":"heritage","type":"uint8"},{"internalType":"enum IISBStaticData.PersonalityType","name":"personality","type":"uint8"},{"internalType":"string","name":"name","type":"string"},{"internalType":"uint16","name":"imageId","type":"uint16"},{"internalType":"bool","name":"canBuy","type":"bool"}],"internalType":"struct IISBStaticData.Character","name":"_newCharacter","type":"tuple"},{"internalType":"uint256","name":"id","type":"uint256"}],"name":"setCharactor","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"components":[{"internalType":"uint64","name":"mintPrice1","type":"uint64"},{"internalType":"uint64","name":"mintPrice2","type":"uint64"},{"internalType":"uint64","name":"mintPrice3","type":"uint64"},{"internalType":"uint64","name":"mintPrice4","type":"uint64"},{"internalType":"uint64","name":"wlMintPrice1","type":"uint64"},{"internalType":"uint64","name":"wlMintPrice2","type":"uint64"},{"internalType":"uint64","name":"wlMintPrice3","type":"uint64"},{"internalType":"uint64","name":"wlMintPrice4","type":"uint64"}],"internalType":"struct IISBStaticData.EtherPrices","name":"_newPrices","type":"tuple"}],"name":"setEtherPrices","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newGen0Supply","type":"uint256"}],"name":"setGen0Supply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_newImage","type":"string"},{"internalType":"uint256","name":"id","type":"uint256"}],"name":"setImage","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint16","name":"level","type":"uint16"}],"name":"setLevel","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"_maxMintSupply","type":"uint16"}],"name":"setMaxMintSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newMaxSupply","type":"uint256"}],"name":"setMaxSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"_minMintSupply","type":"uint16"}],"name":"setMinMintSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"enum IISBStaticData.Phase","name":"_newPhase","type":"uint8"}],"name":"setPhase","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_newResetLevel","type":"bool"}],"name":"setResetLevel","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_newSaveTransferTime","type":"bool"}],"name":"setSaveTransferTime","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"components":[{"internalType":"uint128","name":"SINNPrice1","type":"uint128"},{"internalType":"uint128","name":"SINNPrice2","type":"uint128"},{"internalType":"uint128","name":"SINNPrice3","type":"uint128"},{"internalType":"uint128","name":"SINNPrice4","type":"uint128"},{"internalType":"uint128","name":"GOVPrice1","type":"uint128"},{"internalType":"uint128","name":"GOVPrice2","type":"uint128"},{"internalType":"uint128","name":"GOVPrice3","type":"uint128"},{"internalType":"uint128","name":"GOVPrice4","type":"uint128"}],"internalType":"struct IISBStaticData.TokenPrices","name":"_newPrices","type":"tuple"}],"name":"setTokenPrices","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"components":[{"internalType":"contract IERC20","name":"SINN","type":"address"},{"internalType":"contract IERC20","name":"GOV","type":"address"}],"internalType":"struct IISBStaticData.Tokens","name":"_newTokens","type":"tuple"}],"name":"setTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"addresses","type":"address[]"}],"name":"setWhitelist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"staticData","outputs":[{"internalType":"contract IISBStaticData","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"statusMasters","outputs":[{"internalType":"string","name":"statusText","type":"string"},{"internalType":"bool","name":"withLevel","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tokenPrices","outputs":[{"internalType":"uint128","name":"SINNPrice1","type":"uint128"},{"internalType":"uint128","name":"SINNPrice2","type":"uint128"},{"internalType":"uint128","name":"SINNPrice3","type":"uint128"},{"internalType":"uint128","name":"SINNPrice4","type":"uint128"},{"internalType":"uint128","name":"GOVPrice1","type":"uint128"},{"internalType":"uint128","name":"GOVPrice2","type":"uint128"},{"internalType":"uint128","name":"GOVPrice3","type":"uint128"},{"internalType":"uint128","name":"GOVPrice4","type":"uint128"}],"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":"tokens","outputs":[{"internalType":"contract IERC20","name":"SINN","type":"address"},{"internalType":"contract IERC20","name":"GOV","type":"address"}],"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":"","type":"address"}],"name":"whitelist","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint16[]","name":"characterIds","type":"uint16[]"}],"name":"whitelistMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"whitelistMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawAddress","outputs":[{"internalType":"address payable","name":"","type":"address"}],"stateMutability":"view","type":"function"}]

60a0604052346200024d576200681480380390816200001e81620002b9565b92839283396020928391810103126200024d5751906001600160a01b03821682036200024d57620001ae906200008862000057620002df565b6c4973656b616920426174746c6560981b8382015262000076620002f0565b906224a9a160e91b8483015262000818565b620001006200009662000269565b66d529ae9e860000815266d19c2ff9bf80008184015266ce0eb154f90000604082015266c3663566a58000606082015266c3663566a58000608082015266bfd8b6c1df000060a082015266bc4b381d18800060c082015266b1a2bc2ec5000060e082015262000301565b6200010c61c350601455565b62000117336200093c565b6200012233620009f4565b6200012d3362000acc565b620001383362000b36565b620001433362000ba0565b6200014e3362000c0a565b620001746200015c62000299565b62000166620003cf565b81526001838201526200064f565b6200018c6200018262000299565b62000166620007de565b60006200019862000299565b91620001a3620007fb565b83528201526200064f565b620001b96001601555565b620001c960ff1960185416601855565b620001df61030062ffff00196018541617601855565b620001f9630f00000064ffff000000196018541617601855565b62000205617530601955565b6200021560ff19601a5416601a55565b6200022a61010061ff0019601a541617601a55565b608052604051615afa908162000cfa8239608051818181612e4401526133820152f35b600080fd5b50634e487b7160e01b600052604160045260246000fd5b6040519061010082016001600160401b038111838210176200028a57604052565b6200029462000252565b604052565b60408051919082016001600160401b038111838210176200028a57604052565b6040519190601f01601f191682016001600160401b038111838210176200028a57604052565b620002e962000299565b90600d8252565b620002fa62000299565b9060038252565b805160208201516040808401516060850151608091821b600160801b600160c01b039081166001600160401b0396871695851b6fffffffffffffffff000000000000000090811696909617176001600160c01b031960c093841b811691909117600a5583880151600b805460a08b0151958b015190961b90931694909116961695909517921b90921617179055620003cd90620003a89060e001516001600160401b031690565b600b80546001600160c01b031660c09290921b6001600160c01b031916919091179055565b565b620003d962000299565b90600382526241544b60e81b6020830152565b50634e487b7160e01b600052603260045260246000fd5b90600182811c9216801562000435575b60208310146200041f57565b634e487b7160e01b600052602260045260246000fd5b91607f169162000413565b601f81116200044d575050565b6000906002825260208220906020601f850160051c830194106200048e575b601f0160051c01915b8281106200048257505050565b81815560010162000475565b90925082906200046c565b601f8111620004a6575050565b6000906003825260208220906020601f850160051c83019410620004e7575b601f0160051c01915b828110620004db57505050565b818155600101620004ce565b9092508290620004c5565b90601f81116200050157505050565b600091825260208220906020601f850160051c8301941062000540575b601f0160051c01915b8281106200053457505050565b81815560010162000527565b90925082906200051e565b80519091906001600160401b0381116200063f575b62000578816200057260035462000403565b62000499565b602080601f8311600114620005b75750819293600092620005ab575b50508160011b916000199060031b1c191617600355565b01519050388062000594565b6003600052601f198316949091907fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85b926000905b878210620006265750508360019596106200060c575b505050811b01600355565b015160001960f88460031b161c1916905538808062000601565b80600185968294968601518155019501930190620005eb565b6200064962000252565b62000560565b906012549168010000000000000000831015620007ce575b600180840180601255841015620007be575b601260005281518051602095831b7fbb8a6a4669ba250d26cd7a459eca9d215f8307e33aebe50379bc5a3617ec34440193916001600160401b038211620007ae575b620006d382620006cc875462000403565b87620004f2565b8690601f831160011462000733579180620007149492620003cd98999460009262000727575b5050600019600383901b1c191690851b1785555b0151151590565b91019060ff801983541691151516179055565b015190503880620006f9565b90601f198316916200074a87600052602060002090565b9260005b8181106200079857509286928592620003cd9a9b96620007149896106200077e575b505050811b0185556200070d565b015160001960f88460031b161c1916905538808062000770565b82840151855593870193928a01928a016200074e565b620007b862000252565b620006bb565b620007c8620003ec565b62000679565b620007d862000252565b62000667565b620007e862000299565b9060038252622222a360e91b6020830152565b6200080562000299565b9060038252624c554b60e81b6020830152565b80519091906001600160401b0381116200092c575b62000845816200083f60025462000403565b62000440565b602080601f8311600114620008975750819062000880946000926200088b575b50508160011b916000199060031b1c1916176002556200054b565b620003cd6001600055565b01519050388062000865565b60026000529293919291601f1984167f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ace936000905b828210620009135750509160019391856200088097969410620008f9575b505050811b016002556200054b565b015160001960f88460031b161c19169055388080620008ea565b80600186978294978701518155019601940190620008cc565b6200093662000252565b6200082d565b6001600160a01b03811660009081527f5eff886ea0ce6ca488a3d6e336d6c0f75f46d19b42c06ce5ee98e42c96d256c7602052604080822054620009a193929060ff1615620009a4575b8080526009602052206001600160a01b039091169062000c74565b50565b808052600860209081528282206001600160a01b03851660008181529190925260409020805460ff1916600117905582513391908390600080516020620067f4833981519152908290a462000986565b6001600160a01b03811660009081527f51a495916474fe1a0c0fcfb65a8a97682b84a054118858cdd1f5dfd7fc0919eb6020526040808220620009a19392907f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a69060ff905b54161562000a7c575b81526009602052206001600160a01b039091169062000c74565b808252600860209081528383206001600160a01b03861660008181529190925260409020805460ff1916600117905583513391908390600080516020620067f4833981519152908690a462000a62565b6001600160a01b03811660009081527fb75e3b8aba7d7d1102f90f87dc3f8c4ab976b6ccd21b261faad958be9048fb286020526040808220620009a19392907f3c11d16cbaffd01df69ce1c404f6340ee057498f5f00246190ea54220576a8489060ff9062000a59565b6001600160a01b03811660009081527ff3449dbd5acc60c5ab0d2c57e97be8f903a90cbf009debb8b96b34b0f88cfdcd6020526040808220620009a19392907fbe1e9107a35d66e94d6e58920da71bab45bc74860d462dec9dc23d8801b5fc429060ff9062000a59565b6001600160a01b03811660009081527fe8eb449b214880d91b86a0adcbbbd4549f6c04a46a45676f19f99417ceec80226020526040808220620009a19392907fa3d72163ce6fc934df154b5f6bbfb1250cdd60b32d748787e476f060305244249060ff9062000a59565b6001600160a01b03811660009081527f377784bb602b434ac6dab730083d69303c5442346972580f5aea49496abc85a26020526040808220620009a19392907f2670e0b1e26074365ef240337482fe53bc6a1a5a68ee0ea52e01b7ee8c3e62aa9060ff9062000a59565b90600182016000908282528060205260408220541560001462000cf257838360409495546801000000000000000081101562000ce2575b6001810180845581101562000cd2575b828552602085200155549382526020522055600190565b62000cdc620003ec565b62000cbb565b62000cec62000252565b62000cab565b509150509056fe60806040526004361015610013575b600080fd5b60003560e01c806301ffc9a7146106b757806306fdde03146106ae578063081812fc146106a5578063095ea7b31461069c5780630b91f88c146106935780630edfff171461068a578063152fdd3c146106815780631581b60014610678578063166f17791461066f57806316bab5af1461066657806317041d681461065d57806317cd30801461065457806318160ddd1461064b57806323b872dd14610642578063248a9ca314610639578063282c51f3146106305780632f2ff15d1461062757806336568abe1461061e5780633ccfd60b146106155780633ff7bdcb1461060c57806342842e0e1461060357806342966c68146105fa5780634810bc59146105f1578063565c2777146105e85780635c622a0e146105df5780635f30c703146105d657806360839bd8146105cd57806361664050146105c45780636268492f146105bb5780636352211e146105b2578063680e1696146105a95780636d80b842146105a05780636f8b44b01461059757806370a082311461058e578063726bf49e1461058557806377c86d301461057c5780638485648214610573578063891a37221461056a5780638f16af62146105615780639010d07c1461055857806391d148541461054f57806395d89b4114610546578063965cac631461053d57806398a8cffe1461053457806399d462c71461052b5780639b19251a146105225780639c5e92fb146105195780639d63848a14610510578063a217fddf14610507578063a22cb465146104fe578063a947d35a146104f5578063aef7394d146104ec578063af52d7c0146104e3578063b1c9fe6e146104da578063b1e1fca4146104d1578063b88d4fde146104c8578063bec45347146104bf578063bf95f9ce146104b6578063c03afb59146104ad578063c285e107146104a4578063c6450a3b1461049b578063c72f4a9e14610492578063c7c20fa014610489578063c87b56dd14610480578063ca15c87314610477578063cc335f971461046e578063d05ab2c114610465578063d53913931461045c578063d547741f14610453578063d5abeb011461044a578063d89517d614610441578063d9d3af4b14610438578063e73496cd1461042f578063e757223014610426578063e7ba2c0a1461041d578063e985e9c514610414578063eb7b13801461040b578063eeab6cbb14610402578063f142cf46146103f9578063f41c2b08146103f0578063f4217648146103e7578063f579659e146103de578063f90a691e146103d5578063f9c4ba48146103cc5763fbf28852146103c457600080fd5b61000e6135d2565b5061000e613578565b5061000e61354b565b5061000e6134d9565b5061000e613476565b5061000e6133b1565b5061000e61336b565b5061000e61334c565b5061000e6132bd565b5061000e61325e565b5061000e61323f565b5061000e613220565b5061000e6131d8565b5061000e61319c565b5061000e6130ac565b5061000e61308d565b5061000e61304a565b5061000e61300e565b5061000e612fca565b5061000e612f3d565b5061000e612eb9565b5061000e612d9d565b5061000e612d7b565b5061000e612d5c565b5061000e612cf4565b5061000e612cce565b5061000e612c8a565b5061000e612bfe565b5061000e612ad5565b5061000e612a6d565b5061000e6129ff565b5061000e6129d4565b5061000e6129b5565b5061000e612989565b5061000e61292d565b5061000e612871565b5061000e612854565b5061000e612820565b5061000e61272f565b5061000e6126ec565b5061000e612699565b5061000e61265b565b5061000e61263c565b5061000e612597565b5061000e612540565b5061000e6124f8565b5061000e6124d1565b5061000e6122c4565b5061000e612269565b5061000e6121dd565b5061000e612068565b5061000e611faa565b5061000e611f88565b5061000e611d9b565b5061000e611d2c565b5061000e611b27565b5061000e611aeb565b5061000e611aa7565b5061000e611a88565b5061000e611a02565b5061000e6117ac565b5061000e611727565b5061000e6116a5565b5061000e6112a5565b5061000e61127c565b5061000e611258565b5061000e61114e565b5061000e6110b7565b5061000e610fc5565b5061000e610f89565b5061000e610f59565b5061000e610f41565b5061000e610eed565b5061000e610eb1565b5061000e610e2e565b5061000e610dd0565b5061000e610d3c565b5061000e610c90565b5061000e610c18565b5061000e610bf1565b5061000e610b65565b5061000e61093c565b5061000e6108fa565b5061000e610824565b5061000e6106d2565b6001600160e01b031981160361000e57565b503461000e57602036600319011261000e576107216004356106f3816106c0565b63ffffffff60e01b16630149733d60e61b8114908115610725575b5060405190151581529081906020820190565b0390f35b630b7f5a3560e31b81149150811561073f575b503861070e565b635a05180f60e01b811491508115610759575b5038610738565b637965db0b60e01b811491508115610773575b5038610752565b6380ac58cd60e01b8114915081156107a5575b8115610794575b503861076c565b6301ffc9a760e01b1490503861078d565b635b5e139f60e01b81149150610786565b918091926000905b8282106107d65750116107cf575050565b6000910152565b915080602091830151818601520182916107be565b90602091610804815180928185528580860191016107b6565b601f01601f1916010190565b9060206108219281815201906107eb565b90565b503461000e576000806003193601126108f75760405181600254610847816114de565b808452906001908181169081156108d6575060011461087d575b6107218461087181880382610a74565b60405191829182610810565b60028352602094507f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ace5b8284106108c35750505081610721936108719282010193610861565b80548585018701529285019281016108a7565b60ff1916602086015250506040830193506108719150829050610721610861565b80fd5b503461000e57602036600319011261000e5760206109196004356152f5565b6040516001600160a01b039091168152f35b6001600160a01b0381160361000e57565b503461000e57604036600319011261000e5760043561095a8161092b565b6001600160a01b036024358161096f82615234565b511680928416146109d15781330361098d575b61098b926158e2565b005b600082815260076020908152604080832033845290915290206109ba906109b6905b5460ff1690565b1590565b15610982576040516367d9dca160e11b8152600490fd5b60405163250fdee360e21b8152600490fd5b50634e487b7160e01b600052604160045260246000fd5b61010081019081106001600160401b03821117610a1657604052565b610a1e6109e3565b604052565b604081019081106001600160401b03821117610a1657604052565b606081019081106001600160401b03821117610a1657604052565b602081019081106001600160401b03821117610a1657604052565b90601f801991011681019081106001600160401b03821117610a1657604052565b6040519061014082018281106001600160401b03821117610a1657604052565b600435906001600160401b038216820361000e57565b602435906001600160401b038216820361000e57565b604435906001600160401b038216820361000e57565b606435906001600160401b038216820361000e57565b608435906001600160401b038216820361000e57565b60a435906001600160401b038216820361000e57565b60c435906001600160401b038216820361000e57565b60e435906001600160401b038216820361000e57565b503461000e5761010036600319011261000e5761098b604051610b87816109fa565b610b8f610ab5565b8152610b99610acb565b6020820152610ba6610ae1565b6040820152610bb3610af7565b6060820152610bc0610b0d565b6080820152610bcd610b23565b60a0820152610bda610b39565b60c0820152610be7610b4f565b60e0820152614645565b503461000e57600036600319011261000e57602060ff601a5460081c166040519015158152f35b503461000e57604036600319011261000e57604051610c3681610a23565b600435610c428161092b565b815260243590610c518261092b565b60208101918252610c60613616565b51601b80546001600160a01b03199081166001600160a01b03938416179091559151601c80549093169116179055005b503461000e57600036600319011261000e57602060405173bbaf7550c32634f22e989252cd9070b38efaba428152f35b6020906001600160401b038111610cdd575b601f01601f19160190565b610ce56109e3565b610cd2565b929192610cf682610cc0565b91610d046040519384610a74565b82948184528183011161000e578281602093846000960137010152565b9080601f8301121561000e5781602061082193359101610cea565b503461000e57602036600319011261000e576004356001600160401b03811161000e57610d7061098b913690600401610d21565b610d786136da565b601154610d9890600160401b811015610daa575b60018101601155612203565b15614ad057610da5612252565b614ad0565b610db26109e3565b610d8c565b61ffff81160361000e57565b3590610dce82610db7565b565b503461000e57604036600319011261000e57602435610dee81610db7565b610df661372f565b61ffff81161561000e5761098b90600435600052601360205260406000209063ffff000082549160101b169063ffff00001916179055565b503461000e57604036600319011261000e576004356001600160401b03811161000e57610e6261098b913690600401610d21565b602435610e6d6136da565b601154811015610ea4575b60116000527f31ecc21a745e3968a04e9570e4425bc18fa8019c68028196b546d1669c200c6801614ad0565b610eac61149a565b610e78565b503461000e57600036600319011261000e5760206040517fbe1e9107a35d66e94d6e58920da71bab45bc74860d462dec9dc23d8801b5fc428152f35b503461000e57600036600319011261000e576000546001546040519103600019018152602090f35b606090600319011261000e57600435610f2d8161092b565b90602435610f3a8161092b565b9060443590565b503461000e5761098b610f5336610f15565b91615688565b503461000e57602036600319011261000e5760043560005260086020526020600160406000200154604051908152f35b503461000e57600036600319011261000e5760206040517f3c11d16cbaffd01df69ce1c404f6340ee057498f5f00246190ea54220576a8488152f35b503461000e5760408060031936011261000e5760043590611048602435610feb8161092b565b61104360009480865260086020526110086001868820015461382e565b808652600860209081528587206001600160a01b03851660009081529152604090205460ff161561104c576000526009602052604060002090565b613e8f565b5051f35b808652600860209081528587206001600160a01b03851660008181529190925260409020805460ff19166001179055855133919083907f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d908a90a46000526009602052604060002090565b503461000e57604036600319011261000e576024356110d58161092b565b336001600160a01b038216036110f15761098b906004356138ee565b60405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b6064820152608490fd5b503461000e576000806003193601126108f757808052600860209081526040808320336000908152925290205460ff16156111b557808080476040519073bbaf7550c32634f22e989252cd9070b38efaba425af16111aa6140bf565b50156108f757604051f35b611254604861123c6111c633613acf565b61122e6111d1613b4e565b60405194859376020b1b1b2b9b9a1b7b73a3937b61d1030b1b1b7bab73a1604d1b602086015261120b8151809260206037890191016107b6565b84017001034b99036b4b9b9b4b733903937b6329607d1b603782015201906138d7565b03601f198101835282610a74565b60405162461bcd60e51b815291829160048301610810565b0390fd5b503461000e57600036600319011261000e57602060ff601a54166040519015158152f35b503461000e5761098b61128e36610f15565b906040519261129c84610a59565b6000845261535f565b503461000e57602036600319011261000e5760006004356112c4613784565b6112cd81615234565b80516001600160a01b0316919083906112e58361560f565b6112ef848461588d565b6001600160a01b03841660009081526005602052604090206113999061134f61133261132283546001600160401b031690565b600019016001600160401b031690565b825467ffffffffffffffff19166001600160401b03909116178255565b80546113719060801c6001600160401b03165b6001016001600160401b031690565b815467ffffffffffffffff60801b191660809190911b67ffffffffffffffff60801b16179055565b6113ef6113b0846000526004602052604060002090565b80546001600160a01b0319166001600160a01b0387161781556113dc6001600160401b034216826155e4565b805460ff60e01b1916600160e01b179055565b6001830190611408826000526004602052604060002090565b80546001600160a01b03939084161561144c575b5050506040519316600080516020615aa58339815191528285a461144a61144560015460010190565b600155565bf35b84540361145a575b8061141c565b80546001600160a01b0319166001600160a01b0387161781556114939161148d906020905b01516001600160401b031690565b906155e4565b3880611454565b50634e487b7160e01b600052603260045260246000fd5b6010548110156114d1575b601060005260206000209060021b0190600090565b6114d961149a565b6114bc565b90600182811c9216801561150e575b60208310146114f857565b634e487b7160e01b600052602260045260246000fd5b91607f16916114ed565b9060009291805491611529836114de565b91828252600193848116908160001461158b575060011461154b575b50505050565b90919394506000526020928360002092846000945b838610611577575050505001019038808080611545565b805485870183015294019385908201611560565b60ff19166020840152505060400193503891508190508080611545565b90610dce6115bc9260405193848092611518565b0383610a74565b50634e487b7160e01b600052602160045260246000fd5b600511156115e457565b610dce6115c3565b906115f6826115da565b52565b600411156115e457565b906115f6826115f9565b600b11156115e457565b906115f68261160d565b97999895919361010097936116979561ffff979361163e816115da565b8b52611649816115da565b60208b0152611657816115f9565b60408a01526116658161160d565b6060890152611673816115f9565b60808801526116818161160d565b60a08701526101208060c08801528601906107eb565b951660e08401521515910152565b503461000e57602036600319011261000e5760043560105481101561000e576116cd906114b1565b5060018101549061072160036116e5600284016115a8565b92015460405193849360ff9161ffff838560101c16941692808260281c1691818160201c1691808260181c1691818160101c1691808260081c1691168a611621565b503461000e57600036600319011261000e5760206040517f2670e0b1e26074365ef240337482fe53bc6a1a5a68ee0ea52e01b7ee8c3e62aa8152f35b90815180825260208080930193019160005b828110611783575050505090565b835161ffff1685529381019392810192600101611775565b906020610821928181520190611763565b503461000e5760208060031936011261000e576004356117f26117ec6117e76117df846000526013602052604060002090565b5461ffff1690565b6114b1565b50614dbe565b906012546117ff81615035565b9360005b8560028061181b876000526013602052604060002090565b01548310156119f85761185061184961183e886000526013602052604060002090565b5460101c61ffff1690565b61ffff1690565b831480156119ed575b6118e95782916118d66118cf886118ca6118c26118b988886118986118a8600161189e6118e49f6118df9e6118988c6000526013602052604060002090565b01612f13565b50015461ffff1690565b966000526013602052604060002090565b505480966140ff565b5161ffff1690565b614e75565b918a6140ff565b9061ffff169052565b6140ef565b611803565b50505092915b61ffff808061190b61183e856000526013602052604060002090565b1610156119e6575061183e61192a916000526013602052604060002090565b60005b82811061199f5750505060005b8151805182101561199157906118df6119648561195a8461198c966140ff565b51015161ffff1690565b6118d66119856119758588516140ff565b5151926118ca6118c2858c6140ff565b91886140ff565b61193a565b60405180610721878261179b565b806119ba60016119b16119c394612ee6565b50015460ff1690565b6119c8576140ef565b61192d565b6118df6119dc846118ca6118c2858c6140ff565b6118d6838a6140ff565b905061192a565b5061ffff8314611859565b50505092916118ef565b503461000e57602036600319011261000e57611a1c61372f565b60006004358152601360205261ffff600181604084205460101c1614611a8457611a72906040832090815460101c1660018110611a77575b815463ffff000019166000199190910160101b63ffff000016179055565b604051f35b611a7f6139a0565b611a54565b5080fd5b503461000e57600036600319011261000e576020601154604051908152f35b503461000e57602036600319011261000e57600435611ac581610db7565b611acd613616565b6018805464ffff000000191691811b64ffff00000016919091179055005b503461000e57600036600319011261000e5760206040517fa3d72163ce6fc934df154b5f6bbfb1250cdd60b32d748787e476f060305244248152f35b503461000e57602036600319011261000e5760206001600160a01b03611b4e600435615234565b5116604051908152f35b6020906001600160401b038111611b71575b60051b0190565b611b796109e3565b611b6a565b81601f8201121561000e57803590611b9582611b58565b92604092611ba584519586610a74565b808552602091828087019260061b8501019381851161000e578301915b848310611bd25750505050505090565b858383031261000e578386918251611be981610a23565b8535815282860135611bfa81610db7565b83820152815201920191611bc2565b3590600582101561000e57565b6004111561000e57565b3590610dce82611c16565b3590600b82101561000e57565b8015150361000e57565b3590610dce82611c38565b9190916101408184031261000e57611c63610a95565b926001600160401b0390823582811161000e5781611c82918501611b7e565b8552611c9060208401611c09565b6020860152611ca160408401611c09565b6040860152611cb260608401611c20565b6060860152611cc360808401611c2b565b6080860152611cd460a08401611c20565b60a0860152611ce560c08401611c2b565b60c086015260e083013591821161000e57611d01918301610d21565b60e0840152610100611d14818301610dc3565b90840152611d26610120809201611c42565b90830152565b503461000e57602036600319011261000e576004356001600160401b03811161000e57611d6061098b913690600401611c4d565b611d686136da565b601054611d8890600160401b811015611d8e575b600181016010556114b1565b90614bac565b611d966109e3565b611d7c565b503461000e57604036600319011261000e57600435602435611dbc81610db7565b611dd96117ec6117e76117df856000526013602052604060002090565b9160125491611de783615035565b9360005b85600280611e03876000526013602052604060002090565b0154831015611f7d57611e2661184961183e886000526013602052604060002090565b83148015611f70575b611e735782916118d66118cf886118ca6118c26118b988886118986118a8600161189e611e6e9f6118df9e6118988c6000526013602052604060002090565b611deb565b5050509291905b611e9161183e836000526013602052604060002090565b61ffff82811691161015611f69575061183e611eb7916000526013602052604060002090565b60005b828110611f2b5750505060005b81518051821015611f1557906118df611ee8602061195a84611f10966140ff565b6118d6611f09611ef98588516140ff565b5151926118ca6118c2858b6140ff565b91876140ff565b611ec7565b6040516020808252819061072190820187611763565b80611f3d60016119b1611f4694612ee6565b611f4b576140ef565b611eba565b6118df611f5f846118ca6118c2858b6140ff565b6118d683896140ff565b9050611eb7565b5061ffff85168314611e2f565b505050929190611e7a565b503461000e57602036600319011261000e57611fa2613616565b600435601955005b503461000e57602036600319011261000e57600435611fc88161092b565b6001600160a01b03168015611ff857600052600560205260206001600160401b0360406000205416604051908152f35b6040516323d3ad8160e21b8152600490fd5b9181601f8401121561000e578235916001600160401b03831161000e576020808501948460051b01011161000e57565b602060031982011261000e57600435906001600160401b03821161000e576120649160040161200a565b9091565b506120723661203a565b61208160026015541415614051565b6002601555601854600160ff8216612098816115f9565b036121cb5761ffff82818360081c16116121b9573360009081526016602052604090206120c8906109b6906109af565b6121a7573360009081526017602052604090206120e7908490546139d6565b9160181c16106121955760008052600860205261212b6109b66109af33600080516020615a858339815191525b9060018060a01b0316600052602052604060002090565b612169575b61213d8161215f936143b7565b3360009081526017602052604090206121578282546139d6565b9055336153a2565b61098b6001601555565b61217b8161217681614fcb565b6139b7565b341015612130575b60405163b4fcb7ab60e01b8152600490fd5b60405163961c2f0d60e01b8152600490fd5b60405163d2e1f48960e01b8152600490fd5b604051630107db8560e01b8152600490fd5b60405163d1dc4c0760e01b8152600490fd5b503461000e57600036600319011261000e57602061ffff60185460081c16604051908152f35b60115481101561221f575b601160005260206000200190600090565b61222761149a565b61220e565b8054821015612245575b60005260206000200190600090565b61224d61149a565b612236565b50634e487b7160e01b600052600060045260246000fd5b503461000e57602036600319011261000e5760043560115481101561000e576122a96122b061072192601160005260206000200160405192838092611518565b0382610a74565b6040519182916020835260208301906107eb565b503461000e5761215f6123296122d93661203a565b8092916122eb60026015541415614051565b60026015556122f982614486565b6000805260086020526123206109b66109af33600080516020615a85833981519152612114565b61232f576143b7565b336153a2565b61233882614efb565b1515806124b1575b612444575b61234e82614eaf565b151580612424575b156143b757601c546000906020906123d390612382906001600160a01b03165b6001600160a01b031690565b61238f8661217681614eaf565b6040516323b872dd60e01b815233600482015273bbaf7550c32634f22e989252cd9070b38efaba426024820152604481019190915293849283919082906064820190565b03925af18015612417575b6123e9575b506143b7565b6124099060203d8111612410575b6124018183610a74565b81019061409d565b50386123e3565b503d6123f7565b61241f6140b2565b6123de565b50601c546001600160a01b039061243c908216612376565b161515612356565b601b5460009060209061247090612463906001600160a01b0316612376565b61238f8661217681614efb565b03925af180156124a4575b612486575b50612345565b61249d9060203d8111612410576124018183610a74565b5038612480565b6124ac6140b2565b61247b565b50601b546001600160a01b03906124c9908216612376565b161515612340565b503461000e57602036600319011261000e5760206124f0600435614eaf565b604051908152f35b503461000e57604036600319011261000e5760043560005260096020526020612527602435604060002061222c565b905460405160039290921b1c6001600160a01b03168152f35b503461000e57604036600319011261000e57602060ff61258b6024356125658161092b565b6004356000526008845260406000209060018060a01b0316600052602052604060002090565b54166040519015158152f35b503461000e576000806003193601126108f757604051816003546125ba816114de565b808452906001908181169081156108d657506001146125e3576107218461087181880382610a74565b60038352602094507fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85b5b8284106126295750505081610721936108719282010193610861565b805485850187015292850192810161260d565b503461000e57602036600319011261000e5760206124f0600435614efb565b503461000e57602036600319011261000e576004356126798161092b565b60018060a01b031660005260176020526020604060002054604051908152f35b503461000e57604036600319011261000e5761098b6004356126ba81610db7565b611d88602435916126ca83611c38565b6126d26136da565b6126de6117ec826114b1565b9215156101208401526114b1565b503461000e57602036600319011261000e5760043561270a8161092b565b60018060a01b03166000526016602052602060ff604060002054166040519015158152f35b506127393661203a565b61274860026015541415614051565b6002601555601854600260ff821661275f816115f9565b036121cb5760005460015461277b9184919003600019016139d6565b6019541061280e5761ffff82818360081c16116121b957829160181c16106127fc576000805260086020526127c46109b66109af33600080516020615a85833981519152612114565b6127d6575b6123298161215f936143b7565b6127e38161217681614f61565b3410156127c95760405163b4fcb7ab60e01b8152600490fd5b604051636934b31960e11b8152600490fd5b6040516307b8358f60e01b8152600490fd5b503461000e57600036600319011261000e57601b54601c54604080516001600160a01b039384168152919092166020820152f35b503461000e57600036600319011261000e57602060405160008152f35b503461000e57604036600319011261000e5760043561288f8161092b565b60243561289b81611c38565b6001600160a01b0382169133831461291b57816128da6128eb9233600052600760205260406000209060018060a01b0316600052602052604060002090565b9060ff801983541691151516179055565b60405190151581527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3160203392a3005b60405163b06307db60e01b8152600490fd5b503461000e57604036600319011261000e576004356001600160401b03811161000e5761296161098b913690600401611c4d565b6129696136da565b611d886024356114b1565b9060038210156129815752565b6115f66115c3565b503461000e57602036600319011261000e5760206129a8600435614e8c565b61144a6040518092612974565b503461000e57602036600319011261000e5760206124f0600435614fcb565b503461000e57600036600319011261000e57602060ff60185416604051906129fb816115f9565b8152f35b503461000e57600036600319011261000e57610100600c54600d5490600e5490600f54916040519360018060801b0392838116865260801c6020860152828116604086015260801c6060850152818116608085015260801c60a0840152811660c083015260801c60e0820152f35b503461000e57608036600319011261000e57600435612a8b8161092b565b602435612a978161092b565b606435916001600160401b03831161000e573660238401121561000e57612acb61098b933690602481600401359101610cea565b916044359161535f565b503461000e5760031960203682011261000e57600435906001600160401b039081831161000e57604090833603011261000e5760405190612b1582610a23565b826004013590811161000e5761098b92612b3760249260043691840101610d21565b83520135612b4481611c38565b6020820152614cc1565b600435906001600160801b038216820361000e57565b602435906001600160801b038216820361000e57565b604435906001600160801b038216820361000e57565b606435906001600160801b038216820361000e57565b608435906001600160801b038216820361000e57565b60a435906001600160801b038216820361000e57565b60c435906001600160801b038216820361000e57565b60e435906001600160801b038216820361000e57565b503461000e5761010036600319011261000e5761098b604051612c20816109fa565b612c28612b4e565b8152612c32612b64565b6020820152612c3f612b7a565b6040820152612c4c612b90565b6060820152612c59612ba6565b6080820152612c66612bbc565b60a0820152612c73612bd2565b60c0820152612c80612be8565b60e08201526147cb565b503461000e57602036600319011261000e57600435612ca881611c16565b612cb0613616565b612cb9816115f9565b60ff8019601854169116176018556000604051f35b503461000e57600036600319011261000e57602061ffff60185460181c16604051908152f35b503461000e57602036600319011261000e57612d0e61372f565b600435600052601360205261098b6040600020600161ffff825460101c1661fffe8111612d4f575b825463ffff00001916910160101b63ffff000016179055565b612d576139a0565b612d36565b503461000e57600036600319011261000e576020601454604051908152f35b503461000e57602036600319011261000e57612d95613616565b600435601455005b503461000e57602036600319011261000e576107216004356000612dd16117e76117df846000526013602052604060002090565b50612de6836000526013602052604060002090565b92612e40612df382615067565b612e1a612e15600361189e6117e76117df886000526013602052604060002090565b612203565b50612e2484614e8c565b916040519788968796636c33ef6560e11b885260048801614277565b03817f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03165afa908115612eac575b600091612e8b575b5060405191829182610810565b612ea6913d8091833e612e9e8183610a74565b810190614121565b38612e7e565b612eb46140b2565b612e76565b503461000e57602036600319011261000e5760043560005260096020526020604060002054604051908152f35b601254811015612f06575b601260005260206000209060011b0190600090565b612f0e61149a565b612ef1565b8054821015612f30575b60005260206000209060011b0190600090565b612f3861149a565b612f1d565b503461000e57602036600319011261000e5760043560125481101561000e576012600052604051612fbe9160ff90600190811b7fbb8a6a4669ba250d26cd7a459eca9d215f8307e33aebe50379bc5a3617ec344401612fa784612fa08184611518565b0385610a74565b0154166040519283926040845260408401906107eb565b90151560208301520390f35b503461000e57602036600319011261000e57613009600435612feb81611c38565b612ff3613616565b601a5461ff00191690151560081b61ff00161790565b601a55005b503461000e57600036600319011261000e5760206040517f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a68152f35b503461000e57604036600319011261000e5761098b60243560043561306e8261092b565b80600052600860205261308860016040600020015461382e565b6138ee565b503461000e57600036600319011261000e576020601954604051908152f35b503461000e57604036600319011261000e576004356001600160401b03811161000e576130dd90369060040161200a565b6024356130e98161092b565b3360009081527f51a495916474fe1a0c0fcfb65a8a97682b84a054118858cdd1f5dfd7fc0919eb602052604090205460ff16156131325761312d8261098b946143b7565b6153a2565b611254604861123c61314333613acf565b61122e6111d1613bbf565b60208082019080835283518092528060408094019401926000905b83821061317857505050505090565b84518051875283015161ffff16868401529485019493820193600190910190613169565b503461000e57602036600319011261000e5760043560005260136020526107216131cc6002604060002001614d32565b6040519182918261314e565b503461000e57602036600319011261000e57600435600052601360205260606040600020600181549101546040519161ffff90818116845260101c1660208301526040820152f35b503461000e57602036600319011261000e5760206124f0600435614f61565b503461000e57600036600319011261000e576020601254604051908152f35b503461000e57604036600319011261000e57602060ff61258b6004356132838161092b565b602435906132908261092b565b6001600160a01b0316600090815260078552604090209060018060a01b0316600052602052604060002090565b503461000e57606036600319011261000e57604036602319011261000e5761098b6040516132ea81610a23565b60243581526044356132fb81610db7565b60208201526133086137d9565b60043560005260136020526133396002604060002001805490600160401b82101561333f575b600182018155612f13565b9061489f565b6133476109e3565b61332e565b503461000e57600036600319011261000e576020601054604051908152f35b503461000e57600036600319011261000e576040517f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03168152602090f35b503461000e57602036600319011261000e576004356133cf81611c38565b6133d7613616565b60ff8019601a54169115151617601a556000604051f35b60208060031983011261000e57600435916001600160401b03831161000e578060238401121561000e57826004013561342681611b58565b936134346040519586610a74565b81855260248486019260051b82010192831161000e57602401905b82821061345d575050505090565b838091833561346b8161092b565b81520191019061344f565b503461000e57613485366133ee565b61348d613616565b600090815b81518110156134d3576134ce906001600160a01b036134b182856140ff565b51168452601660205260408420805460ff191660011790556140ef565b613492565b82604051f35b503461000e57600036600319011261000e57610100600a54600b54604051916001600160401b03908181168452818160401c166020850152818160801c16604085015260c01c60608401528082166080840152808260401c1660a08401528160801c1660c083015260c01c60e0820152f35b503461000e57602036600319011261000e576107216131cc6135726004356117e781610db7565b50614d32565b503461000e57613587366133ee565b61358f613616565b600090815b81518110156134d3576135cd906001600160a01b036135b382856140ff565b51168452601660205260408420805460ff191690556140ef565b613594565b503461000e57602036600319011261000e576004356135f081610db7565b6135f8613616565b62ffff006018549160081b169062ffff001916176018556000604051f35b336000908152600080516020615a85833981519152602052604090205460ff161561363d57565b61364633613acf565b60006136506139ea565b90603061365c83613a23565b53607861366883613a39565b5360415b6001811161368b57611254604861123c8661122e876111d18815613a84565b9080600f6136c8921660108110156136cd575b6f181899199a1a9b1b9c1cb0b131b232b360811b901a6136be8486613a4a565b5360041c91613a69565b61366c565b6136d561149a565b61369e565b3360009081527f377784bb602b434ac6dab730083d69303c5442346972580f5aea49496abc85a2602052604090205460ff161561371357565b611254604861123c61372433613acf565b61122e6111d1613c4f565b3360009081527fe8eb449b214880d91b86a0adcbbbd4549f6c04a46a45676f19f99417ceec8022602052604090205460ff161561376857565b611254604861123c61377933613acf565b61122e6111d1613cdf565b3360009081527fb75e3b8aba7d7d1102f90f87dc3f8c4ab976b6ccd21b261faad958be9048fb28602052604090205460ff16156137bd57565b611254604861123c6137ce33613acf565b61122e6111d1613d6f565b3360009081527ff3449dbd5acc60c5ab0d2c57e97be8f903a90cbf009debb8b96b34b0f88cfdcd602052604090205460ff161561381257565b611254604861123c61382333613acf565b61122e6111d1613dff565b600081815260086020908152604080832033845290915290205460ff16156138535750565b61385c33613acf565b906138656139ea565b90603061387183613a23565b53607861387d83613a39565b5360415b600181116138a057611254604861123c8661122e876111d18815613a84565b9080600f6138d2921660108110156136cd576f181899199a1a9b1b9c1cb0b131b232b360811b901a6136be8486613a4a565b613881565b906138ea602092828151948592016107b6565b0190565b90604061394092600090808252600860205260ff613920858585209060018060a01b0316600052602052604060002090565b5416613943575b81526009602052206001600160a01b0390911690613f82565b50565b808252600860209081528383206001600160a01b03861660008181529190925260409020805460ff19169055835133919083907ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b908690a4613927565b50634e487b7160e01b600052601160045260246000fd5b80600019048211811515166139ca570290565b6139d26139a0565b0290565b811981116139e2570190565b6138ea6139a0565b60405190608082018281106001600160401b03821117613a16575b604052604282526060366020840137565b613a1e6109e3565b613a05565b602090805115613a31570190565b6138ea61149a565b602190805160011015613a31570190565b906020918051821015613a5c57010190565b613a6461149a565b010190565b8015613a77575b6000190190565b613a7f6139a0565b613a70565b15613a8b57565b606460405162461bcd60e51b815260206004820152602060248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152fd5b60405190613adc82610a3e565b602a825260403660208401376030613af383613a23565b536078613aff83613a39565b536029905b60018211613b1757610821915015613a84565b80600f613b48921660108110156136cd576f181899199a1a9b1b9c1cb0b131b232b360811b901a6136be8486613a4a565b90613b04565b6000613b586139ea565b906030613b6483613a23565b536078613b7083613a39565b536041905b60018211613b8857610821915015613a84565b80600f613bb9921660108110156136cd576f181899199a1a9b1b9c1cb0b131b232b360811b901a6136be8486613a4a565b90613b75565b7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a6613be86139ea565b906030613bf483613a23565b536078613c0083613a39565b536041905b60018211613c1857610821915015613a84565b80600f613c49921660108110156136cd576f181899199a1a9b1b9c1cb0b131b232b360811b901a6136be8486613a4a565b90613c05565b7f2670e0b1e26074365ef240337482fe53bc6a1a5a68ee0ea52e01b7ee8c3e62aa613c786139ea565b906030613c8483613a23565b536078613c9083613a39565b536041905b60018211613ca857610821915015613a84565b80600f613cd9921660108110156136cd576f181899199a1a9b1b9c1cb0b131b232b360811b901a6136be8486613a4a565b90613c95565b7fa3d72163ce6fc934df154b5f6bbfb1250cdd60b32d748787e476f06030524424613d086139ea565b906030613d1483613a23565b536078613d2083613a39565b536041905b60018211613d3857610821915015613a84565b80600f613d69921660108110156136cd576f181899199a1a9b1b9c1cb0b131b232b360811b901a6136be8486613a4a565b90613d25565b7f3c11d16cbaffd01df69ce1c404f6340ee057498f5f00246190ea54220576a848613d986139ea565b906030613da483613a23565b536078613db083613a39565b536041905b60018211613dc857610821915015613a84565b80600f613df9921660108110156136cd576f181899199a1a9b1b9c1cb0b131b232b360811b901a6136be8486613a4a565b90613db5565b7fbe1e9107a35d66e94d6e58920da71bab45bc74860d462dec9dc23d8801b5fc42613e286139ea565b906030613e3483613a23565b536078613e4083613a39565b536041905b60018211613e5857610821915015613a84565b80600f613e89921660108110156136cd576f181899199a1a9b1b9c1cb0b131b232b360811b901a6136be8486613a4a565b90613e45565b610821916001600160a01b031690613ec2565b91613ebe9183549060031b600019811b9283911b169119161790565b9055565b6001810190826000528160205260406000205415600014613f3a5782613f18613eff8354600160401b811015613f2d575b6001810185558461222c565b819391549060031b600019811b9283911b169119161790565b90555491600052602052604060002055600190565b613f356109e3565b613ef3565b505050600090565b8054908115613f6c5760001991820191613f5c838361222c565b909182549160031b1b1916905555565b634e487b7160e01b600052603160045260246000fd5b600181019180600052826020526040600020549283151560001461404857613fd6613fe5938560016000971061403b575b86198082019083546001811061402e575b0190808203613feb575b505050613f42565b90600052602052604060002090565b55600190565b61401561400f91613fff614025948761222c565b90549060031b1c9283918761222c565b90613ea2565b8590600052602052604060002090565b55388080613fce565b6140366139a0565b613fc4565b6140436139a0565b613fb3565b50505050600090565b1561405857565b60405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606490fd5b9081602091031261000e575161082181611c38565b506040513d6000823e3d90fd5b3d156140ea573d906140d082610cc0565b916140de6040519384610a74565b82523d6000602084013e565b606090565b60019060001981146139e2570190565b6020918151811015614114575b60051b010190565b61411c61149a565b61410c565b60208183031261000e578051906001600160401b03821161000e570181601f8201121561000e57805161415381610cc0565b926141616040519485610a74565b8184526020828401011161000e5761082191602080850191016107b6565b90815480825260208092019260005281600020916000905b8282106141a5575050505090565b8354855260018085015461ffff168683015260409095019460029094019390910190614197565b6002608061082193835461ffff90818116835260101c1660208201526001840154604082015281606082015201910161417f565b80601254808252602080920191808260051b85010193601260005281600020936000915b8483106142345750505050505090565b909192939495846002600192601f19858203018652614259604080835282018b611518565b908360ff868d01541615159101529801930193019194939290614224565b96959361437c6143899161436e6143979560c09760e060208e610dce9d99815201526143618d6101408060e083015261020060036143466142bc61022086018961417f565b61433060018a01546142fa60ff976142da6101008b018a85166115ec565b6142ed6101208b018a8560081c166115ec565b8901888360101c16611603565b61430d6101608901888360181c16611617565b6143206101808901888360201c16611603565b866101a089019160281c16611617565b85810360df19016101c087015260028901611518565b96015461ffff81166101e085015292019160101c1615159052565b8c820360408e01526141cc565b908a820360608c0152611763565b88810360808a0152614200565b9087820360a0890152611518565b940190612974565b91908110156143af5760051b0190565b611b7961149a565b90600090815b8181106143ca5750505050565b60ff60036143e66143dc84868961439f565b356117e781610db7565b50015460101c1615614465578061443d61440461446093858861439f565b3561440e81610db7565b61442c61441c8488546139d6565b6000526013602052604060002090565b9061ffff1661ffff19825416179055565b6118df61444e61441c8387546139d6565b805463ffff0000191662010000179055565b6143bd565b6040516352f8d72f60e11b8152600490fd5b9081602091031261000e575190565b601854600360ff8216614498816115f9565b036121cb576000546001546144b49184919003600019016139d6565b6019541061280e5761ffff829160181c16106127fc57601b54600019906144e3906001600160a01b0316612376565b6001600160a01b03908082166145da575b50601c5461450a906001600160a01b0316612376565b908116614561575b5060008052600860205261453a6109b66109af33600080516020615a85833981519152612114565b614542575050565b61454f8261217681614efb565b11612183578061217661394092614eaf565b604051636eb1769f60e11b81523360048201523060248201529150602090829060449082905afa9081156145cd575b60009161459f575b5038614512565b6145c0915060203d81116145c6575b6145b88183610a74565b810190614477565b38614598565b503d6145ae565b6145d56140b2565b614590565b604051636eb1769f60e11b8152336004820152306024820152919250602090829060449082905afa908115614638575b60009161461a575b5090386144f4565b614632915060203d81116145c6576145b88183610a74565b38614612565b6146406140b2565b61460a565b6147a660e0610dce92614656613616565b8051600a805460208401516040808601516001600160c01b03199093166001600160401b039590951694909417931b67ffffffffffffffff60401b169290921760809290921b67ffffffffffffffff60801b169190911790556146eb6146c660608301516001600160401b031690565b600a80546001600160c01b031660c09290921b6001600160c01b031916919091179055565b61471e61470260808301516001600160401b031690565b6001600160401b03166001600160401b0319600b541617600b55565b61476261473560a08301516001600160401b031690565b600b805467ffffffffffffffff60401b191660409290921b67ffffffffffffffff60401b16919091179055565b61147f61477960c08301516001600160401b031690565b600b805467ffffffffffffffff60801b191660809290921b67ffffffffffffffff60801b16919091179055565b600b80546001600160c01b031660c09290921b6001600160c01b031916919091179055565b61485560e0610dce926147dc613616565b805160208201516001600160801b039182166001600160801b0319608092831b811691909117600c5560408401516060850151831b821690841617600d558184015160a085015190921b16911617600e5560c0810151600f80546001600160801b0319166001600160801b039283161790559101511690565b600f80546001600160801b031660809290921b6001600160801b031916919091179055565b600161ffff6020610dce948051855501511691019061ffff1661ffff19825416179055565b9061ffff6020610dce946001936148cb575b8051855501511691019061ffff1661ffff19825416179055565b6148d3612252565b6148b1565b815191600160401b83116149a4575b8154838355808410614938575b50614909602080920192600052602060002090565b6000925b84841061491b575050505050565b6002838261492c600194518661487a565b0192019301929061490d565b60016001600160ff1b038083118216614997575b8511811661498a575b6000908482526020822092811b83019286821b015b838110614979575050506148f4565b80836002925583838201550161496a565b6149926139a0565b614955565b61499f6139a0565b61494c565b6149ac6109e3565b6148e7565b906149bb816115da565b60ff80198354169116179055565b90613ebe906149d7816115da565b825461ff00191660089190911b61ff00161790565b90613ebe906149fa816115f9565b825462ff0000191660109190911b62ff0000161790565b90614a1b8161160d565b63ff00000082549160181b169063ff0000001916179055565b90614a3e816115f9565b64ff0000000082549160201b169064ff000000001916179055565b90614a638161160d565b60ff60281b82549160281b169060ff60281b1916179055565b90601f8111614a8a57505050565b600091825260208220906020601f850160051c83019410614ac6575b601f0160051c01915b828110614abb57505050565b818155600101614aaf565b9092508290614aa6565b91909182516001600160401b038111614b9f575b614af881614af284546114de565b84614a7c565b602080601f8311600114614b34575081929394600092614b29575b50508160011b916000199060031b1c1916179055565b015190503880614b13565b90601f19831695614b4a85600052602060002090565b926000905b888210614b8757505083600195969710614b6e575b505050811b019055565b015160001960f88460031b161c19169055388080614b64565b80600185968294968601518155019501930190614b4f565b614ba76109e3565b614ae4565b6101206003614c9792610dce9594614cb4575b614bca8551826148d8565b614c5860018201614be86020880151614be2816115da565b826149b1565b614bff6040880151614bf9816115da565b826149c9565b614c166060880151614c10816115f9565b826149ec565b614c2d6080880151614c278161160d565b82614a11565b614c4460a0880151614c3e816115f9565b82614a34565b60c087015190614c538261160d565b614a59565b614c6960e086015160028301614ad0565b0192614c90614c7e61010083015161ffff1690565b855461ffff191661ffff909116178555565b0151151590565b908054909162ff00001990911690151560101b62ff000016179055565b614cbc612252565b614bbf565b610dce90614ccd6136da565b60016020614cee6012548360401b811015614d25575b838101601255612ee6565b939093614d18575b614d01815185614ad0565b0151151591019060ff801983541691151516179055565b614d20612252565b614cf6565b614d2d6109e3565b614ce3565b908154614d3e81611b58565b92604093614d4e85519182610a74565b828152809460208092019260005281600020906000935b858510614d7457505050505050565b6002846001928451614d8581610a23565b8654815261ffff858801541683820152815201930194019391614d65565b6115f6826115da565b6115f6826115f9565b6115f68261160d565b90610dce614dca610a95565b92614dd481614d32565b84526003600182015491614e4960ff84614df48280971660208b01614da3565b614e06828260081c1660408b01614da3565b614e18828260101c1660608b01614dac565b614e2a828260181c1660808b01614db5565b614e3c828260201c1660a08b01614dac565b60281c1660c08801614db5565b614e55600282016115a8565b60e0870152015461ffff811661010086015260101c161515610120840152565b9061ffff80809316911680920381116139e2570190565b601454811115614ea957600a900615614ea457600290565b600190565b50600090565b6005811015614ec85750600e546001600160801b031690565b600a811015614edb5750600e5460801c90565b600f1115614ef257600f546001600160801b031690565b600f5460801c90565b6005811015614f225750600c54610821906001600160801b03165b6001600160801b031690565b600a811015614f3b5750610821614f16600c5460801c90565b600f1115614f5857600d54610821906001600160801b0316614f16565b600d5460801c90565b6005811015614f8c5750610821614f80600a546001600160401b031690565b6001600160401b031690565b600a811015614fa85750600a5460401c6001600160401b031690565b600f1115614fc2576001600160401b03600a5460801c1690565b600a5460c01c90565b6005811015614fea5750610821614f80600b546001600160401b031690565b600a81101561500c5750600b546108219060401c6001600160401b0316614f80565b600f111561502c57600b546108219060801c6001600160401b0316614f80565b600b5460c01c90565b9061503f82611b58565b61504c6040519182610a74565b828152809261505d601f1991611b58565b0190602036910137565b906150856117ec6117e76117df856000526013602052604060002090565b9060125461509281615035565b9160005b6002806150ad886000526013602052604060002090565b01548210156151cd576150d061184961183e896000526013602052604060002090565b821480156151c2575b61512657906118df876118d661198561511185876118986118a8600161189e856151219d6118988c6000526013602052604060002090565b5054926118ca6118c2858c6140ff565b615096565b5050939291925b61ffff808061514961183e856000526013602052604060002090565b1610156151bb575061183e615168916000526013602052604060002090565b60005b8281106151a45750505060005b815190815181101561519e576118df611ee8602061195a84615199966140ff565b615178565b50505090565b80611f3d60016119b16151b694612ee6565b61516b565b9050615168565b5061ffff82146150d9565b50509392919261512d565b604051906151e582610a3e565b60006040838281528260208201520152565b9060405161520481610a3e565b91546001600160a01b038116835260a081901c6001600160401b0316602084015260e01c60ff1615156040830152565b61523c6151d8565b506001818082111561525b575b604051636f96cda160e11b8152600490fd5b6000548110156152495761527c615281916000526004602052604060002090565b6151f7565b6152916109b66040830151151590565b156152495780516001600160a01b03166152ef575090815b6152b35780615249565b60001901906152cf61527c836000526004602052604060002090565b80516152e3906001600160a01b0316612376565b6152ef575090816152a9565b91505090565b806001111580615354575b80615338575b15615326576000908152600660205260409020546001600160a01b031690565b6040516333d1c03960e21b8152600490fd5b5080600052600460205260ff60406000205460e01c1615615306565b506000548110615300565b92919061536d828286615688565b803b6153795750505050565b61538293615a5b565b156153905738808080611545565b6040516368d2bf6b60e11b8152600490fd5b6040908151916153b183610a59565b60008084528054909390926001600160a01b03811680156155d45786156155c3576153dc8786615666565b6154f46001600160401b036154a2818a1661544861540c8760018060a01b03166000526005602052604060002090565b61542e8361542183546001600160401b031690565b016001600160401b031690565b6001600160401b03166001600160401b0319825416179055565b6001600160a01b038616600090815260056020526040902061547a909161542183546001600160401b039060401c1690565b815467ffffffffffffffff60401b191660409190911b67ffffffffffffffff60401b16179055565b6154d9846154ba896000526004602052604060002090565b80546001600160a01b0319166001600160a01b03909216919091179055565b42166154ef876000526004602052604060002090565b6155e4565b8496850190823b15156000146155765760019182805b615520575b505050505050508154036108f75755565b15615569575b8789838a600080516020615aa5833981519152818b51a461554e6109b687868d019c886159b2565b615558578361550a565b86516368d2bf6b60e11b8152600490fd5b808910615526578061550f565b935193945060019250905081805b615591575b505050505055565b156155b6575b8482808801978688600080516020615aa58339815191528189a4615584565b8086106155975780615589565b835163b562e8dd60e01b8152600490fd5b8351622e076360e81b8152600490fd5b805467ffffffffffffffff60a01b191660a09290921b67ffffffffffffffff60a01b16919091179055565b60ff601a541661563e575b60ff601a5460081c1661562a5750565b600052601360205242600160406000200155565b80600052601360205261566160406000206201000063ffff000019825416179055565b61561a565b906001036139405760ff601a541661563e5760ff601a5460081c1661562a5750565b61569183615234565b80516001600160a01b03808416939291811684900361587c578333148015615853575b801561583f575b1561582d57841693841561581b57615786906156d68761560f565b6156e0848861588d565b6001600160a01b03841660009081526005602052604090206157109061542e61132282546001600160401b031690565b6001600160a01b03811660009081526005602052604090206157409061542e61136282546001600160401b031690565b615776615757886000526004602052604060002090565b80546001600160a01b0319166001600160a01b03909316929092178255565b6001600160401b034216906155e4565b600185019061579f826000526004602052604060002090565b80549092906157b6906001600160a01b0316612376565b156157d7575b50505050600080516020615aa58339815191526000604051a4565b600054036157e6575b806157bc565b81546001600160a01b0319166001600160a01b039093169290921781556158139161148d9060209061147f565b3880806157e0565b604051633a954ecd60e21b8152600490fd5b604051632ce44b5f60e11b8152600490fd5b503361584d612376886152f5565b146156bb565b506158776109af336121148660018060a01b03166000526007602052604060002090565b6156b4565b60405162a1148160e81b8152600490fd5b60008181526006602052604080822080546001600160a01b031916905551919290916001600160a01b03909116907f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925908390a4565b600082815260066020526040902080546001600160a01b0319166001600160a01b03831617905590919060018060a01b0380911691167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9256000604051a4565b9081602091031261000e5751610821816106c0565b610821939260809260018060a01b0316825260006020830152604082015281606082015201906107eb565b6001600160a01b039182168152911660208201526040810191909152608060608201819052610821929101906107eb565b6159db60209160009394604051948580948193630a85bd0160e11b998a84523360048501615956565b03926001600160a01b03165af160009181615a2b575b50615a1d576159fe6140bf565b80519081615a18576040516368d2bf6b60e11b8152600490fd5b602001fd5b6001600160e01b0319161490565b615a4d91925060203d8111615a54575b615a458183610a74565b810190615941565b90386159f1565b503d615a3b565b926020916159db936000604051809681958294630a85bd0160e11b9a8b8552336004860161598156fe5eff886ea0ce6ca488a3d6e336d6c0f75f46d19b42c06ce5ee98e42c96d256c7ddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa2646970667358221220c98293b4dac51ebffb6386eeef178ce2e4f1e3f59405f53754fd9c75d38a6fcb64736f6c634300080e00332f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d0000000000000000000000002bd0d1ec0e1c7ffcdbab78532b117cbe78bce148

Deployed Bytecode

0x60806040526004361015610013575b600080fd5b60003560e01c806301ffc9a7146106b757806306fdde03146106ae578063081812fc146106a5578063095ea7b31461069c5780630b91f88c146106935780630edfff171461068a578063152fdd3c146106815780631581b60014610678578063166f17791461066f57806316bab5af1461066657806317041d681461065d57806317cd30801461065457806318160ddd1461064b57806323b872dd14610642578063248a9ca314610639578063282c51f3146106305780632f2ff15d1461062757806336568abe1461061e5780633ccfd60b146106155780633ff7bdcb1461060c57806342842e0e1461060357806342966c68146105fa5780634810bc59146105f1578063565c2777146105e85780635c622a0e146105df5780635f30c703146105d657806360839bd8146105cd57806361664050146105c45780636268492f146105bb5780636352211e146105b2578063680e1696146105a95780636d80b842146105a05780636f8b44b01461059757806370a082311461058e578063726bf49e1461058557806377c86d301461057c5780638485648214610573578063891a37221461056a5780638f16af62146105615780639010d07c1461055857806391d148541461054f57806395d89b4114610546578063965cac631461053d57806398a8cffe1461053457806399d462c71461052b5780639b19251a146105225780639c5e92fb146105195780639d63848a14610510578063a217fddf14610507578063a22cb465146104fe578063a947d35a146104f5578063aef7394d146104ec578063af52d7c0146104e3578063b1c9fe6e146104da578063b1e1fca4146104d1578063b88d4fde146104c8578063bec45347146104bf578063bf95f9ce146104b6578063c03afb59146104ad578063c285e107146104a4578063c6450a3b1461049b578063c72f4a9e14610492578063c7c20fa014610489578063c87b56dd14610480578063ca15c87314610477578063cc335f971461046e578063d05ab2c114610465578063d53913931461045c578063d547741f14610453578063d5abeb011461044a578063d89517d614610441578063d9d3af4b14610438578063e73496cd1461042f578063e757223014610426578063e7ba2c0a1461041d578063e985e9c514610414578063eb7b13801461040b578063eeab6cbb14610402578063f142cf46146103f9578063f41c2b08146103f0578063f4217648146103e7578063f579659e146103de578063f90a691e146103d5578063f9c4ba48146103cc5763fbf28852146103c457600080fd5b61000e6135d2565b5061000e613578565b5061000e61354b565b5061000e6134d9565b5061000e613476565b5061000e6133b1565b5061000e61336b565b5061000e61334c565b5061000e6132bd565b5061000e61325e565b5061000e61323f565b5061000e613220565b5061000e6131d8565b5061000e61319c565b5061000e6130ac565b5061000e61308d565b5061000e61304a565b5061000e61300e565b5061000e612fca565b5061000e612f3d565b5061000e612eb9565b5061000e612d9d565b5061000e612d7b565b5061000e612d5c565b5061000e612cf4565b5061000e612cce565b5061000e612c8a565b5061000e612bfe565b5061000e612ad5565b5061000e612a6d565b5061000e6129ff565b5061000e6129d4565b5061000e6129b5565b5061000e612989565b5061000e61292d565b5061000e612871565b5061000e612854565b5061000e612820565b5061000e61272f565b5061000e6126ec565b5061000e612699565b5061000e61265b565b5061000e61263c565b5061000e612597565b5061000e612540565b5061000e6124f8565b5061000e6124d1565b5061000e6122c4565b5061000e612269565b5061000e6121dd565b5061000e612068565b5061000e611faa565b5061000e611f88565b5061000e611d9b565b5061000e611d2c565b5061000e611b27565b5061000e611aeb565b5061000e611aa7565b5061000e611a88565b5061000e611a02565b5061000e6117ac565b5061000e611727565b5061000e6116a5565b5061000e6112a5565b5061000e61127c565b5061000e611258565b5061000e61114e565b5061000e6110b7565b5061000e610fc5565b5061000e610f89565b5061000e610f59565b5061000e610f41565b5061000e610eed565b5061000e610eb1565b5061000e610e2e565b5061000e610dd0565b5061000e610d3c565b5061000e610c90565b5061000e610c18565b5061000e610bf1565b5061000e610b65565b5061000e61093c565b5061000e6108fa565b5061000e610824565b5061000e6106d2565b6001600160e01b031981160361000e57565b503461000e57602036600319011261000e576107216004356106f3816106c0565b63ffffffff60e01b16630149733d60e61b8114908115610725575b5060405190151581529081906020820190565b0390f35b630b7f5a3560e31b81149150811561073f575b503861070e565b635a05180f60e01b811491508115610759575b5038610738565b637965db0b60e01b811491508115610773575b5038610752565b6380ac58cd60e01b8114915081156107a5575b8115610794575b503861076c565b6301ffc9a760e01b1490503861078d565b635b5e139f60e01b81149150610786565b918091926000905b8282106107d65750116107cf575050565b6000910152565b915080602091830151818601520182916107be565b90602091610804815180928185528580860191016107b6565b601f01601f1916010190565b9060206108219281815201906107eb565b90565b503461000e576000806003193601126108f75760405181600254610847816114de565b808452906001908181169081156108d6575060011461087d575b6107218461087181880382610a74565b60405191829182610810565b60028352602094507f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ace5b8284106108c35750505081610721936108719282010193610861565b80548585018701529285019281016108a7565b60ff1916602086015250506040830193506108719150829050610721610861565b80fd5b503461000e57602036600319011261000e5760206109196004356152f5565b6040516001600160a01b039091168152f35b6001600160a01b0381160361000e57565b503461000e57604036600319011261000e5760043561095a8161092b565b6001600160a01b036024358161096f82615234565b511680928416146109d15781330361098d575b61098b926158e2565b005b600082815260076020908152604080832033845290915290206109ba906109b6905b5460ff1690565b1590565b15610982576040516367d9dca160e11b8152600490fd5b60405163250fdee360e21b8152600490fd5b50634e487b7160e01b600052604160045260246000fd5b61010081019081106001600160401b03821117610a1657604052565b610a1e6109e3565b604052565b604081019081106001600160401b03821117610a1657604052565b606081019081106001600160401b03821117610a1657604052565b602081019081106001600160401b03821117610a1657604052565b90601f801991011681019081106001600160401b03821117610a1657604052565b6040519061014082018281106001600160401b03821117610a1657604052565b600435906001600160401b038216820361000e57565b602435906001600160401b038216820361000e57565b604435906001600160401b038216820361000e57565b606435906001600160401b038216820361000e57565b608435906001600160401b038216820361000e57565b60a435906001600160401b038216820361000e57565b60c435906001600160401b038216820361000e57565b60e435906001600160401b038216820361000e57565b503461000e5761010036600319011261000e5761098b604051610b87816109fa565b610b8f610ab5565b8152610b99610acb565b6020820152610ba6610ae1565b6040820152610bb3610af7565b6060820152610bc0610b0d565b6080820152610bcd610b23565b60a0820152610bda610b39565b60c0820152610be7610b4f565b60e0820152614645565b503461000e57600036600319011261000e57602060ff601a5460081c166040519015158152f35b503461000e57604036600319011261000e57604051610c3681610a23565b600435610c428161092b565b815260243590610c518261092b565b60208101918252610c60613616565b51601b80546001600160a01b03199081166001600160a01b03938416179091559151601c80549093169116179055005b503461000e57600036600319011261000e57602060405173bbaf7550c32634f22e989252cd9070b38efaba428152f35b6020906001600160401b038111610cdd575b601f01601f19160190565b610ce56109e3565b610cd2565b929192610cf682610cc0565b91610d046040519384610a74565b82948184528183011161000e578281602093846000960137010152565b9080601f8301121561000e5781602061082193359101610cea565b503461000e57602036600319011261000e576004356001600160401b03811161000e57610d7061098b913690600401610d21565b610d786136da565b601154610d9890600160401b811015610daa575b60018101601155612203565b15614ad057610da5612252565b614ad0565b610db26109e3565b610d8c565b61ffff81160361000e57565b3590610dce82610db7565b565b503461000e57604036600319011261000e57602435610dee81610db7565b610df661372f565b61ffff81161561000e5761098b90600435600052601360205260406000209063ffff000082549160101b169063ffff00001916179055565b503461000e57604036600319011261000e576004356001600160401b03811161000e57610e6261098b913690600401610d21565b602435610e6d6136da565b601154811015610ea4575b60116000527f31ecc21a745e3968a04e9570e4425bc18fa8019c68028196b546d1669c200c6801614ad0565b610eac61149a565b610e78565b503461000e57600036600319011261000e5760206040517fbe1e9107a35d66e94d6e58920da71bab45bc74860d462dec9dc23d8801b5fc428152f35b503461000e57600036600319011261000e576000546001546040519103600019018152602090f35b606090600319011261000e57600435610f2d8161092b565b90602435610f3a8161092b565b9060443590565b503461000e5761098b610f5336610f15565b91615688565b503461000e57602036600319011261000e5760043560005260086020526020600160406000200154604051908152f35b503461000e57600036600319011261000e5760206040517f3c11d16cbaffd01df69ce1c404f6340ee057498f5f00246190ea54220576a8488152f35b503461000e5760408060031936011261000e5760043590611048602435610feb8161092b565b61104360009480865260086020526110086001868820015461382e565b808652600860209081528587206001600160a01b03851660009081529152604090205460ff161561104c576000526009602052604060002090565b613e8f565b5051f35b808652600860209081528587206001600160a01b03851660008181529190925260409020805460ff19166001179055855133919083907f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d908a90a46000526009602052604060002090565b503461000e57604036600319011261000e576024356110d58161092b565b336001600160a01b038216036110f15761098b906004356138ee565b60405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b6064820152608490fd5b503461000e576000806003193601126108f757808052600860209081526040808320336000908152925290205460ff16156111b557808080476040519073bbaf7550c32634f22e989252cd9070b38efaba425af16111aa6140bf565b50156108f757604051f35b611254604861123c6111c633613acf565b61122e6111d1613b4e565b60405194859376020b1b1b2b9b9a1b7b73a3937b61d1030b1b1b7bab73a1604d1b602086015261120b8151809260206037890191016107b6565b84017001034b99036b4b9b9b4b733903937b6329607d1b603782015201906138d7565b03601f198101835282610a74565b60405162461bcd60e51b815291829160048301610810565b0390fd5b503461000e57600036600319011261000e57602060ff601a54166040519015158152f35b503461000e5761098b61128e36610f15565b906040519261129c84610a59565b6000845261535f565b503461000e57602036600319011261000e5760006004356112c4613784565b6112cd81615234565b80516001600160a01b0316919083906112e58361560f565b6112ef848461588d565b6001600160a01b03841660009081526005602052604090206113999061134f61133261132283546001600160401b031690565b600019016001600160401b031690565b825467ffffffffffffffff19166001600160401b03909116178255565b80546113719060801c6001600160401b03165b6001016001600160401b031690565b815467ffffffffffffffff60801b191660809190911b67ffffffffffffffff60801b16179055565b6113ef6113b0846000526004602052604060002090565b80546001600160a01b0319166001600160a01b0387161781556113dc6001600160401b034216826155e4565b805460ff60e01b1916600160e01b179055565b6001830190611408826000526004602052604060002090565b80546001600160a01b03939084161561144c575b5050506040519316600080516020615aa58339815191528285a461144a61144560015460010190565b600155565bf35b84540361145a575b8061141c565b80546001600160a01b0319166001600160a01b0387161781556114939161148d906020905b01516001600160401b031690565b906155e4565b3880611454565b50634e487b7160e01b600052603260045260246000fd5b6010548110156114d1575b601060005260206000209060021b0190600090565b6114d961149a565b6114bc565b90600182811c9216801561150e575b60208310146114f857565b634e487b7160e01b600052602260045260246000fd5b91607f16916114ed565b9060009291805491611529836114de565b91828252600193848116908160001461158b575060011461154b575b50505050565b90919394506000526020928360002092846000945b838610611577575050505001019038808080611545565b805485870183015294019385908201611560565b60ff19166020840152505060400193503891508190508080611545565b90610dce6115bc9260405193848092611518565b0383610a74565b50634e487b7160e01b600052602160045260246000fd5b600511156115e457565b610dce6115c3565b906115f6826115da565b52565b600411156115e457565b906115f6826115f9565b600b11156115e457565b906115f68261160d565b97999895919361010097936116979561ffff979361163e816115da565b8b52611649816115da565b60208b0152611657816115f9565b60408a01526116658161160d565b6060890152611673816115f9565b60808801526116818161160d565b60a08701526101208060c08801528601906107eb565b951660e08401521515910152565b503461000e57602036600319011261000e5760043560105481101561000e576116cd906114b1565b5060018101549061072160036116e5600284016115a8565b92015460405193849360ff9161ffff838560101c16941692808260281c1691818160201c1691808260181c1691818160101c1691808260081c1691168a611621565b503461000e57600036600319011261000e5760206040517f2670e0b1e26074365ef240337482fe53bc6a1a5a68ee0ea52e01b7ee8c3e62aa8152f35b90815180825260208080930193019160005b828110611783575050505090565b835161ffff1685529381019392810192600101611775565b906020610821928181520190611763565b503461000e5760208060031936011261000e576004356117f26117ec6117e76117df846000526013602052604060002090565b5461ffff1690565b6114b1565b50614dbe565b906012546117ff81615035565b9360005b8560028061181b876000526013602052604060002090565b01548310156119f85761185061184961183e886000526013602052604060002090565b5460101c61ffff1690565b61ffff1690565b831480156119ed575b6118e95782916118d66118cf886118ca6118c26118b988886118986118a8600161189e6118e49f6118df9e6118988c6000526013602052604060002090565b01612f13565b50015461ffff1690565b966000526013602052604060002090565b505480966140ff565b5161ffff1690565b614e75565b918a6140ff565b9061ffff169052565b6140ef565b611803565b50505092915b61ffff808061190b61183e856000526013602052604060002090565b1610156119e6575061183e61192a916000526013602052604060002090565b60005b82811061199f5750505060005b8151805182101561199157906118df6119648561195a8461198c966140ff565b51015161ffff1690565b6118d66119856119758588516140ff565b5151926118ca6118c2858c6140ff565b91886140ff565b61193a565b60405180610721878261179b565b806119ba60016119b16119c394612ee6565b50015460ff1690565b6119c8576140ef565b61192d565b6118df6119dc846118ca6118c2858c6140ff565b6118d6838a6140ff565b905061192a565b5061ffff8314611859565b50505092916118ef565b503461000e57602036600319011261000e57611a1c61372f565b60006004358152601360205261ffff600181604084205460101c1614611a8457611a72906040832090815460101c1660018110611a77575b815463ffff000019166000199190910160101b63ffff000016179055565b604051f35b611a7f6139a0565b611a54565b5080fd5b503461000e57600036600319011261000e576020601154604051908152f35b503461000e57602036600319011261000e57600435611ac581610db7565b611acd613616565b6018805464ffff000000191691811b64ffff00000016919091179055005b503461000e57600036600319011261000e5760206040517fa3d72163ce6fc934df154b5f6bbfb1250cdd60b32d748787e476f060305244248152f35b503461000e57602036600319011261000e5760206001600160a01b03611b4e600435615234565b5116604051908152f35b6020906001600160401b038111611b71575b60051b0190565b611b796109e3565b611b6a565b81601f8201121561000e57803590611b9582611b58565b92604092611ba584519586610a74565b808552602091828087019260061b8501019381851161000e578301915b848310611bd25750505050505090565b858383031261000e578386918251611be981610a23565b8535815282860135611bfa81610db7565b83820152815201920191611bc2565b3590600582101561000e57565b6004111561000e57565b3590610dce82611c16565b3590600b82101561000e57565b8015150361000e57565b3590610dce82611c38565b9190916101408184031261000e57611c63610a95565b926001600160401b0390823582811161000e5781611c82918501611b7e565b8552611c9060208401611c09565b6020860152611ca160408401611c09565b6040860152611cb260608401611c20565b6060860152611cc360808401611c2b565b6080860152611cd460a08401611c20565b60a0860152611ce560c08401611c2b565b60c086015260e083013591821161000e57611d01918301610d21565b60e0840152610100611d14818301610dc3565b90840152611d26610120809201611c42565b90830152565b503461000e57602036600319011261000e576004356001600160401b03811161000e57611d6061098b913690600401611c4d565b611d686136da565b601054611d8890600160401b811015611d8e575b600181016010556114b1565b90614bac565b611d966109e3565b611d7c565b503461000e57604036600319011261000e57600435602435611dbc81610db7565b611dd96117ec6117e76117df856000526013602052604060002090565b9160125491611de783615035565b9360005b85600280611e03876000526013602052604060002090565b0154831015611f7d57611e2661184961183e886000526013602052604060002090565b83148015611f70575b611e735782916118d66118cf886118ca6118c26118b988886118986118a8600161189e611e6e9f6118df9e6118988c6000526013602052604060002090565b611deb565b5050509291905b611e9161183e836000526013602052604060002090565b61ffff82811691161015611f69575061183e611eb7916000526013602052604060002090565b60005b828110611f2b5750505060005b81518051821015611f1557906118df611ee8602061195a84611f10966140ff565b6118d6611f09611ef98588516140ff565b5151926118ca6118c2858b6140ff565b91876140ff565b611ec7565b6040516020808252819061072190820187611763565b80611f3d60016119b1611f4694612ee6565b611f4b576140ef565b611eba565b6118df611f5f846118ca6118c2858b6140ff565b6118d683896140ff565b9050611eb7565b5061ffff85168314611e2f565b505050929190611e7a565b503461000e57602036600319011261000e57611fa2613616565b600435601955005b503461000e57602036600319011261000e57600435611fc88161092b565b6001600160a01b03168015611ff857600052600560205260206001600160401b0360406000205416604051908152f35b6040516323d3ad8160e21b8152600490fd5b9181601f8401121561000e578235916001600160401b03831161000e576020808501948460051b01011161000e57565b602060031982011261000e57600435906001600160401b03821161000e576120649160040161200a565b9091565b506120723661203a565b61208160026015541415614051565b6002601555601854600160ff8216612098816115f9565b036121cb5761ffff82818360081c16116121b9573360009081526016602052604090206120c8906109b6906109af565b6121a7573360009081526017602052604090206120e7908490546139d6565b9160181c16106121955760008052600860205261212b6109b66109af33600080516020615a858339815191525b9060018060a01b0316600052602052604060002090565b612169575b61213d8161215f936143b7565b3360009081526017602052604090206121578282546139d6565b9055336153a2565b61098b6001601555565b61217b8161217681614fcb565b6139b7565b341015612130575b60405163b4fcb7ab60e01b8152600490fd5b60405163961c2f0d60e01b8152600490fd5b60405163d2e1f48960e01b8152600490fd5b604051630107db8560e01b8152600490fd5b60405163d1dc4c0760e01b8152600490fd5b503461000e57600036600319011261000e57602061ffff60185460081c16604051908152f35b60115481101561221f575b601160005260206000200190600090565b61222761149a565b61220e565b8054821015612245575b60005260206000200190600090565b61224d61149a565b612236565b50634e487b7160e01b600052600060045260246000fd5b503461000e57602036600319011261000e5760043560115481101561000e576122a96122b061072192601160005260206000200160405192838092611518565b0382610a74565b6040519182916020835260208301906107eb565b503461000e5761215f6123296122d93661203a565b8092916122eb60026015541415614051565b60026015556122f982614486565b6000805260086020526123206109b66109af33600080516020615a85833981519152612114565b61232f576143b7565b336153a2565b61233882614efb565b1515806124b1575b612444575b61234e82614eaf565b151580612424575b156143b757601c546000906020906123d390612382906001600160a01b03165b6001600160a01b031690565b61238f8661217681614eaf565b6040516323b872dd60e01b815233600482015273bbaf7550c32634f22e989252cd9070b38efaba426024820152604481019190915293849283919082906064820190565b03925af18015612417575b6123e9575b506143b7565b6124099060203d8111612410575b6124018183610a74565b81019061409d565b50386123e3565b503d6123f7565b61241f6140b2565b6123de565b50601c546001600160a01b039061243c908216612376565b161515612356565b601b5460009060209061247090612463906001600160a01b0316612376565b61238f8661217681614efb565b03925af180156124a4575b612486575b50612345565b61249d9060203d8111612410576124018183610a74565b5038612480565b6124ac6140b2565b61247b565b50601b546001600160a01b03906124c9908216612376565b161515612340565b503461000e57602036600319011261000e5760206124f0600435614eaf565b604051908152f35b503461000e57604036600319011261000e5760043560005260096020526020612527602435604060002061222c565b905460405160039290921b1c6001600160a01b03168152f35b503461000e57604036600319011261000e57602060ff61258b6024356125658161092b565b6004356000526008845260406000209060018060a01b0316600052602052604060002090565b54166040519015158152f35b503461000e576000806003193601126108f757604051816003546125ba816114de565b808452906001908181169081156108d657506001146125e3576107218461087181880382610a74565b60038352602094507fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85b5b8284106126295750505081610721936108719282010193610861565b805485850187015292850192810161260d565b503461000e57602036600319011261000e5760206124f0600435614efb565b503461000e57602036600319011261000e576004356126798161092b565b60018060a01b031660005260176020526020604060002054604051908152f35b503461000e57604036600319011261000e5761098b6004356126ba81610db7565b611d88602435916126ca83611c38565b6126d26136da565b6126de6117ec826114b1565b9215156101208401526114b1565b503461000e57602036600319011261000e5760043561270a8161092b565b60018060a01b03166000526016602052602060ff604060002054166040519015158152f35b506127393661203a565b61274860026015541415614051565b6002601555601854600260ff821661275f816115f9565b036121cb5760005460015461277b9184919003600019016139d6565b6019541061280e5761ffff82818360081c16116121b957829160181c16106127fc576000805260086020526127c46109b66109af33600080516020615a85833981519152612114565b6127d6575b6123298161215f936143b7565b6127e38161217681614f61565b3410156127c95760405163b4fcb7ab60e01b8152600490fd5b604051636934b31960e11b8152600490fd5b6040516307b8358f60e01b8152600490fd5b503461000e57600036600319011261000e57601b54601c54604080516001600160a01b039384168152919092166020820152f35b503461000e57600036600319011261000e57602060405160008152f35b503461000e57604036600319011261000e5760043561288f8161092b565b60243561289b81611c38565b6001600160a01b0382169133831461291b57816128da6128eb9233600052600760205260406000209060018060a01b0316600052602052604060002090565b9060ff801983541691151516179055565b60405190151581527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3160203392a3005b60405163b06307db60e01b8152600490fd5b503461000e57604036600319011261000e576004356001600160401b03811161000e5761296161098b913690600401611c4d565b6129696136da565b611d886024356114b1565b9060038210156129815752565b6115f66115c3565b503461000e57602036600319011261000e5760206129a8600435614e8c565b61144a6040518092612974565b503461000e57602036600319011261000e5760206124f0600435614fcb565b503461000e57600036600319011261000e57602060ff60185416604051906129fb816115f9565b8152f35b503461000e57600036600319011261000e57610100600c54600d5490600e5490600f54916040519360018060801b0392838116865260801c6020860152828116604086015260801c6060850152818116608085015260801c60a0840152811660c083015260801c60e0820152f35b503461000e57608036600319011261000e57600435612a8b8161092b565b602435612a978161092b565b606435916001600160401b03831161000e573660238401121561000e57612acb61098b933690602481600401359101610cea565b916044359161535f565b503461000e5760031960203682011261000e57600435906001600160401b039081831161000e57604090833603011261000e5760405190612b1582610a23565b826004013590811161000e5761098b92612b3760249260043691840101610d21565b83520135612b4481611c38565b6020820152614cc1565b600435906001600160801b038216820361000e57565b602435906001600160801b038216820361000e57565b604435906001600160801b038216820361000e57565b606435906001600160801b038216820361000e57565b608435906001600160801b038216820361000e57565b60a435906001600160801b038216820361000e57565b60c435906001600160801b038216820361000e57565b60e435906001600160801b038216820361000e57565b503461000e5761010036600319011261000e5761098b604051612c20816109fa565b612c28612b4e565b8152612c32612b64565b6020820152612c3f612b7a565b6040820152612c4c612b90565b6060820152612c59612ba6565b6080820152612c66612bbc565b60a0820152612c73612bd2565b60c0820152612c80612be8565b60e08201526147cb565b503461000e57602036600319011261000e57600435612ca881611c16565b612cb0613616565b612cb9816115f9565b60ff8019601854169116176018556000604051f35b503461000e57600036600319011261000e57602061ffff60185460181c16604051908152f35b503461000e57602036600319011261000e57612d0e61372f565b600435600052601360205261098b6040600020600161ffff825460101c1661fffe8111612d4f575b825463ffff00001916910160101b63ffff000016179055565b612d576139a0565b612d36565b503461000e57600036600319011261000e576020601454604051908152f35b503461000e57602036600319011261000e57612d95613616565b600435601455005b503461000e57602036600319011261000e576107216004356000612dd16117e76117df846000526013602052604060002090565b50612de6836000526013602052604060002090565b92612e40612df382615067565b612e1a612e15600361189e6117e76117df886000526013602052604060002090565b612203565b50612e2484614e8c565b916040519788968796636c33ef6560e11b885260048801614277565b03817f0000000000000000000000002bd0d1ec0e1c7ffcdbab78532b117cbe78bce1486001600160a01b03165afa908115612eac575b600091612e8b575b5060405191829182610810565b612ea6913d8091833e612e9e8183610a74565b810190614121565b38612e7e565b612eb46140b2565b612e76565b503461000e57602036600319011261000e5760043560005260096020526020604060002054604051908152f35b601254811015612f06575b601260005260206000209060011b0190600090565b612f0e61149a565b612ef1565b8054821015612f30575b60005260206000209060011b0190600090565b612f3861149a565b612f1d565b503461000e57602036600319011261000e5760043560125481101561000e576012600052604051612fbe9160ff90600190811b7fbb8a6a4669ba250d26cd7a459eca9d215f8307e33aebe50379bc5a3617ec344401612fa784612fa08184611518565b0385610a74565b0154166040519283926040845260408401906107eb565b90151560208301520390f35b503461000e57602036600319011261000e57613009600435612feb81611c38565b612ff3613616565b601a5461ff00191690151560081b61ff00161790565b601a55005b503461000e57600036600319011261000e5760206040517f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a68152f35b503461000e57604036600319011261000e5761098b60243560043561306e8261092b565b80600052600860205261308860016040600020015461382e565b6138ee565b503461000e57600036600319011261000e576020601954604051908152f35b503461000e57604036600319011261000e576004356001600160401b03811161000e576130dd90369060040161200a565b6024356130e98161092b565b3360009081527f51a495916474fe1a0c0fcfb65a8a97682b84a054118858cdd1f5dfd7fc0919eb602052604090205460ff16156131325761312d8261098b946143b7565b6153a2565b611254604861123c61314333613acf565b61122e6111d1613bbf565b60208082019080835283518092528060408094019401926000905b83821061317857505050505090565b84518051875283015161ffff16868401529485019493820193600190910190613169565b503461000e57602036600319011261000e5760043560005260136020526107216131cc6002604060002001614d32565b6040519182918261314e565b503461000e57602036600319011261000e57600435600052601360205260606040600020600181549101546040519161ffff90818116845260101c1660208301526040820152f35b503461000e57602036600319011261000e5760206124f0600435614f61565b503461000e57600036600319011261000e576020601254604051908152f35b503461000e57604036600319011261000e57602060ff61258b6004356132838161092b565b602435906132908261092b565b6001600160a01b0316600090815260078552604090209060018060a01b0316600052602052604060002090565b503461000e57606036600319011261000e57604036602319011261000e5761098b6040516132ea81610a23565b60243581526044356132fb81610db7565b60208201526133086137d9565b60043560005260136020526133396002604060002001805490600160401b82101561333f575b600182018155612f13565b9061489f565b6133476109e3565b61332e565b503461000e57600036600319011261000e576020601054604051908152f35b503461000e57600036600319011261000e576040517f0000000000000000000000002bd0d1ec0e1c7ffcdbab78532b117cbe78bce1486001600160a01b03168152602090f35b503461000e57602036600319011261000e576004356133cf81611c38565b6133d7613616565b60ff8019601a54169115151617601a556000604051f35b60208060031983011261000e57600435916001600160401b03831161000e578060238401121561000e57826004013561342681611b58565b936134346040519586610a74565b81855260248486019260051b82010192831161000e57602401905b82821061345d575050505090565b838091833561346b8161092b565b81520191019061344f565b503461000e57613485366133ee565b61348d613616565b600090815b81518110156134d3576134ce906001600160a01b036134b182856140ff565b51168452601660205260408420805460ff191660011790556140ef565b613492565b82604051f35b503461000e57600036600319011261000e57610100600a54600b54604051916001600160401b03908181168452818160401c166020850152818160801c16604085015260c01c60608401528082166080840152808260401c1660a08401528160801c1660c083015260c01c60e0820152f35b503461000e57602036600319011261000e576107216131cc6135726004356117e781610db7565b50614d32565b503461000e57613587366133ee565b61358f613616565b600090815b81518110156134d3576135cd906001600160a01b036135b382856140ff565b51168452601660205260408420805460ff191690556140ef565b613594565b503461000e57602036600319011261000e576004356135f081610db7565b6135f8613616565b62ffff006018549160081b169062ffff001916176018556000604051f35b336000908152600080516020615a85833981519152602052604090205460ff161561363d57565b61364633613acf565b60006136506139ea565b90603061365c83613a23565b53607861366883613a39565b5360415b6001811161368b57611254604861123c8661122e876111d18815613a84565b9080600f6136c8921660108110156136cd575b6f181899199a1a9b1b9c1cb0b131b232b360811b901a6136be8486613a4a565b5360041c91613a69565b61366c565b6136d561149a565b61369e565b3360009081527f377784bb602b434ac6dab730083d69303c5442346972580f5aea49496abc85a2602052604090205460ff161561371357565b611254604861123c61372433613acf565b61122e6111d1613c4f565b3360009081527fe8eb449b214880d91b86a0adcbbbd4549f6c04a46a45676f19f99417ceec8022602052604090205460ff161561376857565b611254604861123c61377933613acf565b61122e6111d1613cdf565b3360009081527fb75e3b8aba7d7d1102f90f87dc3f8c4ab976b6ccd21b261faad958be9048fb28602052604090205460ff16156137bd57565b611254604861123c6137ce33613acf565b61122e6111d1613d6f565b3360009081527ff3449dbd5acc60c5ab0d2c57e97be8f903a90cbf009debb8b96b34b0f88cfdcd602052604090205460ff161561381257565b611254604861123c61382333613acf565b61122e6111d1613dff565b600081815260086020908152604080832033845290915290205460ff16156138535750565b61385c33613acf565b906138656139ea565b90603061387183613a23565b53607861387d83613a39565b5360415b600181116138a057611254604861123c8661122e876111d18815613a84565b9080600f6138d2921660108110156136cd576f181899199a1a9b1b9c1cb0b131b232b360811b901a6136be8486613a4a565b613881565b906138ea602092828151948592016107b6565b0190565b90604061394092600090808252600860205260ff613920858585209060018060a01b0316600052602052604060002090565b5416613943575b81526009602052206001600160a01b0390911690613f82565b50565b808252600860209081528383206001600160a01b03861660008181529190925260409020805460ff19169055835133919083907ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b908690a4613927565b50634e487b7160e01b600052601160045260246000fd5b80600019048211811515166139ca570290565b6139d26139a0565b0290565b811981116139e2570190565b6138ea6139a0565b60405190608082018281106001600160401b03821117613a16575b604052604282526060366020840137565b613a1e6109e3565b613a05565b602090805115613a31570190565b6138ea61149a565b602190805160011015613a31570190565b906020918051821015613a5c57010190565b613a6461149a565b010190565b8015613a77575b6000190190565b613a7f6139a0565b613a70565b15613a8b57565b606460405162461bcd60e51b815260206004820152602060248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152fd5b60405190613adc82610a3e565b602a825260403660208401376030613af383613a23565b536078613aff83613a39565b536029905b60018211613b1757610821915015613a84565b80600f613b48921660108110156136cd576f181899199a1a9b1b9c1cb0b131b232b360811b901a6136be8486613a4a565b90613b04565b6000613b586139ea565b906030613b6483613a23565b536078613b7083613a39565b536041905b60018211613b8857610821915015613a84565b80600f613bb9921660108110156136cd576f181899199a1a9b1b9c1cb0b131b232b360811b901a6136be8486613a4a565b90613b75565b7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a6613be86139ea565b906030613bf483613a23565b536078613c0083613a39565b536041905b60018211613c1857610821915015613a84565b80600f613c49921660108110156136cd576f181899199a1a9b1b9c1cb0b131b232b360811b901a6136be8486613a4a565b90613c05565b7f2670e0b1e26074365ef240337482fe53bc6a1a5a68ee0ea52e01b7ee8c3e62aa613c786139ea565b906030613c8483613a23565b536078613c9083613a39565b536041905b60018211613ca857610821915015613a84565b80600f613cd9921660108110156136cd576f181899199a1a9b1b9c1cb0b131b232b360811b901a6136be8486613a4a565b90613c95565b7fa3d72163ce6fc934df154b5f6bbfb1250cdd60b32d748787e476f06030524424613d086139ea565b906030613d1483613a23565b536078613d2083613a39565b536041905b60018211613d3857610821915015613a84565b80600f613d69921660108110156136cd576f181899199a1a9b1b9c1cb0b131b232b360811b901a6136be8486613a4a565b90613d25565b7f3c11d16cbaffd01df69ce1c404f6340ee057498f5f00246190ea54220576a848613d986139ea565b906030613da483613a23565b536078613db083613a39565b536041905b60018211613dc857610821915015613a84565b80600f613df9921660108110156136cd576f181899199a1a9b1b9c1cb0b131b232b360811b901a6136be8486613a4a565b90613db5565b7fbe1e9107a35d66e94d6e58920da71bab45bc74860d462dec9dc23d8801b5fc42613e286139ea565b906030613e3483613a23565b536078613e4083613a39565b536041905b60018211613e5857610821915015613a84565b80600f613e89921660108110156136cd576f181899199a1a9b1b9c1cb0b131b232b360811b901a6136be8486613a4a565b90613e45565b610821916001600160a01b031690613ec2565b91613ebe9183549060031b600019811b9283911b169119161790565b9055565b6001810190826000528160205260406000205415600014613f3a5782613f18613eff8354600160401b811015613f2d575b6001810185558461222c565b819391549060031b600019811b9283911b169119161790565b90555491600052602052604060002055600190565b613f356109e3565b613ef3565b505050600090565b8054908115613f6c5760001991820191613f5c838361222c565b909182549160031b1b1916905555565b634e487b7160e01b600052603160045260246000fd5b600181019180600052826020526040600020549283151560001461404857613fd6613fe5938560016000971061403b575b86198082019083546001811061402e575b0190808203613feb575b505050613f42565b90600052602052604060002090565b55600190565b61401561400f91613fff614025948761222c565b90549060031b1c9283918761222c565b90613ea2565b8590600052602052604060002090565b55388080613fce565b6140366139a0565b613fc4565b6140436139a0565b613fb3565b50505050600090565b1561405857565b60405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606490fd5b9081602091031261000e575161082181611c38565b506040513d6000823e3d90fd5b3d156140ea573d906140d082610cc0565b916140de6040519384610a74565b82523d6000602084013e565b606090565b60019060001981146139e2570190565b6020918151811015614114575b60051b010190565b61411c61149a565b61410c565b60208183031261000e578051906001600160401b03821161000e570181601f8201121561000e57805161415381610cc0565b926141616040519485610a74565b8184526020828401011161000e5761082191602080850191016107b6565b90815480825260208092019260005281600020916000905b8282106141a5575050505090565b8354855260018085015461ffff168683015260409095019460029094019390910190614197565b6002608061082193835461ffff90818116835260101c1660208201526001840154604082015281606082015201910161417f565b80601254808252602080920191808260051b85010193601260005281600020936000915b8483106142345750505050505090565b909192939495846002600192601f19858203018652614259604080835282018b611518565b908360ff868d01541615159101529801930193019194939290614224565b96959361437c6143899161436e6143979560c09760e060208e610dce9d99815201526143618d6101408060e083015261020060036143466142bc61022086018961417f565b61433060018a01546142fa60ff976142da6101008b018a85166115ec565b6142ed6101208b018a8560081c166115ec565b8901888360101c16611603565b61430d6101608901888360181c16611617565b6143206101808901888360201c16611603565b866101a089019160281c16611617565b85810360df19016101c087015260028901611518565b96015461ffff81166101e085015292019160101c1615159052565b8c820360408e01526141cc565b908a820360608c0152611763565b88810360808a0152614200565b9087820360a0890152611518565b940190612974565b91908110156143af5760051b0190565b611b7961149a565b90600090815b8181106143ca5750505050565b60ff60036143e66143dc84868961439f565b356117e781610db7565b50015460101c1615614465578061443d61440461446093858861439f565b3561440e81610db7565b61442c61441c8488546139d6565b6000526013602052604060002090565b9061ffff1661ffff19825416179055565b6118df61444e61441c8387546139d6565b805463ffff0000191662010000179055565b6143bd565b6040516352f8d72f60e11b8152600490fd5b9081602091031261000e575190565b601854600360ff8216614498816115f9565b036121cb576000546001546144b49184919003600019016139d6565b6019541061280e5761ffff829160181c16106127fc57601b54600019906144e3906001600160a01b0316612376565b6001600160a01b03908082166145da575b50601c5461450a906001600160a01b0316612376565b908116614561575b5060008052600860205261453a6109b66109af33600080516020615a85833981519152612114565b614542575050565b61454f8261217681614efb565b11612183578061217661394092614eaf565b604051636eb1769f60e11b81523360048201523060248201529150602090829060449082905afa9081156145cd575b60009161459f575b5038614512565b6145c0915060203d81116145c6575b6145b88183610a74565b810190614477565b38614598565b503d6145ae565b6145d56140b2565b614590565b604051636eb1769f60e11b8152336004820152306024820152919250602090829060449082905afa908115614638575b60009161461a575b5090386144f4565b614632915060203d81116145c6576145b88183610a74565b38614612565b6146406140b2565b61460a565b6147a660e0610dce92614656613616565b8051600a805460208401516040808601516001600160c01b03199093166001600160401b039590951694909417931b67ffffffffffffffff60401b169290921760809290921b67ffffffffffffffff60801b169190911790556146eb6146c660608301516001600160401b031690565b600a80546001600160c01b031660c09290921b6001600160c01b031916919091179055565b61471e61470260808301516001600160401b031690565b6001600160401b03166001600160401b0319600b541617600b55565b61476261473560a08301516001600160401b031690565b600b805467ffffffffffffffff60401b191660409290921b67ffffffffffffffff60401b16919091179055565b61147f61477960c08301516001600160401b031690565b600b805467ffffffffffffffff60801b191660809290921b67ffffffffffffffff60801b16919091179055565b600b80546001600160c01b031660c09290921b6001600160c01b031916919091179055565b61485560e0610dce926147dc613616565b805160208201516001600160801b039182166001600160801b0319608092831b811691909117600c5560408401516060850151831b821690841617600d558184015160a085015190921b16911617600e5560c0810151600f80546001600160801b0319166001600160801b039283161790559101511690565b600f80546001600160801b031660809290921b6001600160801b031916919091179055565b600161ffff6020610dce948051855501511691019061ffff1661ffff19825416179055565b9061ffff6020610dce946001936148cb575b8051855501511691019061ffff1661ffff19825416179055565b6148d3612252565b6148b1565b815191600160401b83116149a4575b8154838355808410614938575b50614909602080920192600052602060002090565b6000925b84841061491b575050505050565b6002838261492c600194518661487a565b0192019301929061490d565b60016001600160ff1b038083118216614997575b8511811661498a575b6000908482526020822092811b83019286821b015b838110614979575050506148f4565b80836002925583838201550161496a565b6149926139a0565b614955565b61499f6139a0565b61494c565b6149ac6109e3565b6148e7565b906149bb816115da565b60ff80198354169116179055565b90613ebe906149d7816115da565b825461ff00191660089190911b61ff00161790565b90613ebe906149fa816115f9565b825462ff0000191660109190911b62ff0000161790565b90614a1b8161160d565b63ff00000082549160181b169063ff0000001916179055565b90614a3e816115f9565b64ff0000000082549160201b169064ff000000001916179055565b90614a638161160d565b60ff60281b82549160281b169060ff60281b1916179055565b90601f8111614a8a57505050565b600091825260208220906020601f850160051c83019410614ac6575b601f0160051c01915b828110614abb57505050565b818155600101614aaf565b9092508290614aa6565b91909182516001600160401b038111614b9f575b614af881614af284546114de565b84614a7c565b602080601f8311600114614b34575081929394600092614b29575b50508160011b916000199060031b1c1916179055565b015190503880614b13565b90601f19831695614b4a85600052602060002090565b926000905b888210614b8757505083600195969710614b6e575b505050811b019055565b015160001960f88460031b161c19169055388080614b64565b80600185968294968601518155019501930190614b4f565b614ba76109e3565b614ae4565b6101206003614c9792610dce9594614cb4575b614bca8551826148d8565b614c5860018201614be86020880151614be2816115da565b826149b1565b614bff6040880151614bf9816115da565b826149c9565b614c166060880151614c10816115f9565b826149ec565b614c2d6080880151614c278161160d565b82614a11565b614c4460a0880151614c3e816115f9565b82614a34565b60c087015190614c538261160d565b614a59565b614c6960e086015160028301614ad0565b0192614c90614c7e61010083015161ffff1690565b855461ffff191661ffff909116178555565b0151151590565b908054909162ff00001990911690151560101b62ff000016179055565b614cbc612252565b614bbf565b610dce90614ccd6136da565b60016020614cee6012548360401b811015614d25575b838101601255612ee6565b939093614d18575b614d01815185614ad0565b0151151591019060ff801983541691151516179055565b614d20612252565b614cf6565b614d2d6109e3565b614ce3565b908154614d3e81611b58565b92604093614d4e85519182610a74565b828152809460208092019260005281600020906000935b858510614d7457505050505050565b6002846001928451614d8581610a23565b8654815261ffff858801541683820152815201930194019391614d65565b6115f6826115da565b6115f6826115f9565b6115f68261160d565b90610dce614dca610a95565b92614dd481614d32565b84526003600182015491614e4960ff84614df48280971660208b01614da3565b614e06828260081c1660408b01614da3565b614e18828260101c1660608b01614dac565b614e2a828260181c1660808b01614db5565b614e3c828260201c1660a08b01614dac565b60281c1660c08801614db5565b614e55600282016115a8565b60e0870152015461ffff811661010086015260101c161515610120840152565b9061ffff80809316911680920381116139e2570190565b601454811115614ea957600a900615614ea457600290565b600190565b50600090565b6005811015614ec85750600e546001600160801b031690565b600a811015614edb5750600e5460801c90565b600f1115614ef257600f546001600160801b031690565b600f5460801c90565b6005811015614f225750600c54610821906001600160801b03165b6001600160801b031690565b600a811015614f3b5750610821614f16600c5460801c90565b600f1115614f5857600d54610821906001600160801b0316614f16565b600d5460801c90565b6005811015614f8c5750610821614f80600a546001600160401b031690565b6001600160401b031690565b600a811015614fa85750600a5460401c6001600160401b031690565b600f1115614fc2576001600160401b03600a5460801c1690565b600a5460c01c90565b6005811015614fea5750610821614f80600b546001600160401b031690565b600a81101561500c5750600b546108219060401c6001600160401b0316614f80565b600f111561502c57600b546108219060801c6001600160401b0316614f80565b600b5460c01c90565b9061503f82611b58565b61504c6040519182610a74565b828152809261505d601f1991611b58565b0190602036910137565b906150856117ec6117e76117df856000526013602052604060002090565b9060125461509281615035565b9160005b6002806150ad886000526013602052604060002090565b01548210156151cd576150d061184961183e896000526013602052604060002090565b821480156151c2575b61512657906118df876118d661198561511185876118986118a8600161189e856151219d6118988c6000526013602052604060002090565b5054926118ca6118c2858c6140ff565b615096565b5050939291925b61ffff808061514961183e856000526013602052604060002090565b1610156151bb575061183e615168916000526013602052604060002090565b60005b8281106151a45750505060005b815190815181101561519e576118df611ee8602061195a84615199966140ff565b615178565b50505090565b80611f3d60016119b16151b694612ee6565b61516b565b9050615168565b5061ffff82146150d9565b50509392919261512d565b604051906151e582610a3e565b60006040838281528260208201520152565b9060405161520481610a3e565b91546001600160a01b038116835260a081901c6001600160401b0316602084015260e01c60ff1615156040830152565b61523c6151d8565b506001818082111561525b575b604051636f96cda160e11b8152600490fd5b6000548110156152495761527c615281916000526004602052604060002090565b6151f7565b6152916109b66040830151151590565b156152495780516001600160a01b03166152ef575090815b6152b35780615249565b60001901906152cf61527c836000526004602052604060002090565b80516152e3906001600160a01b0316612376565b6152ef575090816152a9565b91505090565b806001111580615354575b80615338575b15615326576000908152600660205260409020546001600160a01b031690565b6040516333d1c03960e21b8152600490fd5b5080600052600460205260ff60406000205460e01c1615615306565b506000548110615300565b92919061536d828286615688565b803b6153795750505050565b61538293615a5b565b156153905738808080611545565b6040516368d2bf6b60e11b8152600490fd5b6040908151916153b183610a59565b60008084528054909390926001600160a01b03811680156155d45786156155c3576153dc8786615666565b6154f46001600160401b036154a2818a1661544861540c8760018060a01b03166000526005602052604060002090565b61542e8361542183546001600160401b031690565b016001600160401b031690565b6001600160401b03166001600160401b0319825416179055565b6001600160a01b038616600090815260056020526040902061547a909161542183546001600160401b039060401c1690565b815467ffffffffffffffff60401b191660409190911b67ffffffffffffffff60401b16179055565b6154d9846154ba896000526004602052604060002090565b80546001600160a01b0319166001600160a01b03909216919091179055565b42166154ef876000526004602052604060002090565b6155e4565b8496850190823b15156000146155765760019182805b615520575b505050505050508154036108f75755565b15615569575b8789838a600080516020615aa5833981519152818b51a461554e6109b687868d019c886159b2565b615558578361550a565b86516368d2bf6b60e11b8152600490fd5b808910615526578061550f565b935193945060019250905081805b615591575b505050505055565b156155b6575b8482808801978688600080516020615aa58339815191528189a4615584565b8086106155975780615589565b835163b562e8dd60e01b8152600490fd5b8351622e076360e81b8152600490fd5b805467ffffffffffffffff60a01b191660a09290921b67ffffffffffffffff60a01b16919091179055565b60ff601a541661563e575b60ff601a5460081c1661562a5750565b600052601360205242600160406000200155565b80600052601360205261566160406000206201000063ffff000019825416179055565b61561a565b906001036139405760ff601a541661563e5760ff601a5460081c1661562a5750565b61569183615234565b80516001600160a01b03808416939291811684900361587c578333148015615853575b801561583f575b1561582d57841693841561581b57615786906156d68761560f565b6156e0848861588d565b6001600160a01b03841660009081526005602052604090206157109061542e61132282546001600160401b031690565b6001600160a01b03811660009081526005602052604090206157409061542e61136282546001600160401b031690565b615776615757886000526004602052604060002090565b80546001600160a01b0319166001600160a01b03909316929092178255565b6001600160401b034216906155e4565b600185019061579f826000526004602052604060002090565b80549092906157b6906001600160a01b0316612376565b156157d7575b50505050600080516020615aa58339815191526000604051a4565b600054036157e6575b806157bc565b81546001600160a01b0319166001600160a01b039093169290921781556158139161148d9060209061147f565b3880806157e0565b604051633a954ecd60e21b8152600490fd5b604051632ce44b5f60e11b8152600490fd5b503361584d612376886152f5565b146156bb565b506158776109af336121148660018060a01b03166000526007602052604060002090565b6156b4565b60405162a1148160e81b8152600490fd5b60008181526006602052604080822080546001600160a01b031916905551919290916001600160a01b03909116907f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925908390a4565b600082815260066020526040902080546001600160a01b0319166001600160a01b03831617905590919060018060a01b0380911691167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9256000604051a4565b9081602091031261000e5751610821816106c0565b610821939260809260018060a01b0316825260006020830152604082015281606082015201906107eb565b6001600160a01b039182168152911660208201526040810191909152608060608201819052610821929101906107eb565b6159db60209160009394604051948580948193630a85bd0160e11b998a84523360048501615956565b03926001600160a01b03165af160009181615a2b575b50615a1d576159fe6140bf565b80519081615a18576040516368d2bf6b60e11b8152600490fd5b602001fd5b6001600160e01b0319161490565b615a4d91925060203d8111615a54575b615a458183610a74565b810190615941565b90386159f1565b503d615a3b565b926020916159db936000604051809681958294630a85bd0160e11b9a8b8552336004860161598156fe5eff886ea0ce6ca488a3d6e336d6c0f75f46d19b42c06ce5ee98e42c96d256c7ddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa2646970667358221220c98293b4dac51ebffb6386eeef178ce2e4f1e3f59405f53754fd9c75d38a6fcb64736f6c634300080e0033

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

0000000000000000000000002bd0d1ec0e1c7ffcdbab78532b117cbe78bce148

-----Decoded View---------------
Arg [0] : _staticData (address): 0x2bd0D1EC0e1C7fFCdbab78532B117Cbe78Bce148

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 0000000000000000000000002bd0d1ec0e1c7ffcdbab78532b117cbe78bce148


Loading...
Loading
Loading...
Loading
[ 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.