Contract 0x22d5dd0991ba342375c2b9c755cc6ec8ab1d8a7c 2

 

Contract Overview

Balance:
0 BNB

BNB Value:
$0.00

Token:
Txn Hash
Block
From
To
Value [Txn Fee]
0x5b4148150929eb9aa3db4bb7b13b9fd0f47a289f293f05efb2e43dd4da741d3196171462021-07-31 1:11:3332 mins ago0xb533c548d50ed51e77d2511dd90e581f0c1782bf IN  0x22d5dd0991ba342375c2b9c755cc6ec8ab1d8a7c0 BNB0.00022434
0xa64fd8a6e238b8db1efdbaf8b85f75424164a8773c4f2dec06390177a879c2f296166842021-07-31 0:48:2755 mins ago0x20a553840420dbefc441c7a9bdf774d740f9f8a0 IN  0x22d5dd0991ba342375c2b9c755cc6ec8ab1d8a7c0 BNB0.000490865
0x9776a3cfea58ca3dae0a05a1e43d384eb1c93bba0dd28b3eb85ecf9bd705d37096148682021-07-30 23:17:362 hrs 26 mins ago0xdbf93ba2d1a997af3a3051aa6477e3505826a5e1 IN  0x22d5dd0991ba342375c2b9c755cc6ec8ab1d8a7c0 BNB0.0002288268
0x5afc6183a35ee374d534cfca287419f7ca462623340b4d2025f4f78da68b6b1596105862021-07-30 19:43:046 hrs 1 min ago0xe60d435e3edaf6e1a4ed1f3eda357c3d08465cee IN  0x22d5dd0991ba342375c2b9c755cc6ec8ab1d8a7c0 BNB0.00022434
0xcc26be17d8dc8b8b023586013df373f4de4ea10d33e555a61dd17aaf0a6269e496085242021-07-30 17:57:347 hrs 46 mins ago0x07000fc6931edb1eb9859559b2768fecbc56e297 IN  0x22d5dd0991ba342375c2b9c755cc6ec8ab1d8a7c0 BNB0.00022434
0x4bb2d5229aaea9aa6eff37b6f16338ac8485d18a7a939fadbdd1fd15c2d7195d96071222021-07-30 16:47:248 hrs 56 mins ago0xb49f66aa9db0c311ce366745abc095d55e2cc9c7 IN  0x22d5dd0991ba342375c2b9c755cc6ec8ab1d8a7c0 BNB0.00022434
0xd6221ea60e0a8c28f5f5694ac897d53f84024f11a8ba6635cb3536e012fc122396070842021-07-30 16:45:308 hrs 58 mins ago0xb49f66aa9db0c311ce366745abc095d55e2cc9c7 IN  0x22d5dd0991ba342375c2b9c755cc6ec8ab1d8a7c0 BNB0.00022434
0x5962275afe8649bd9cdaaefd396bc16494ba018ebbbc1a0b24da00f2fe3d8bb196062842021-07-30 16:05:279 hrs 38 mins ago0x9f9ebce72c0715cdbad4d589986eb22f6782a1ce IN  0x22d5dd0991ba342375c2b9c755cc6ec8ab1d8a7c0 BNB0.00022434
0x2b509a175a2aa32257145c1212e89eb8a5eb0571036b00466f00e3338d5297af95986292021-07-30 9:30:5516 hrs 13 mins ago0x83cfde7a14fc0d8bbddfcaaf3993a90a35d1dbc8 IN  0x22d5dd0991ba342375c2b9c755cc6ec8ab1d8a7c0 BNB0.00022434
0x4b0648cee6e1a8e80165a146cfab9109770ff64531491cc7468f3dc5c339963895977262021-07-30 8:43:5217 hrs ago0x1a09fe2d60a658649af7e21f3ea27e0e5ef4b29a IN  0x22d5dd0991ba342375c2b9c755cc6ec8ab1d8a7c0 BNB0.00022434
0x0d2f6501af98581d6d94d8d48fecc722073212215c28cb45e5e5741f1e54513795977092021-07-30 8:43:0117 hrs 1 min ago0x3866eea4be1c7d930393e3a21f9ccb46e224a384 IN  0x22d5dd0991ba342375c2b9c755cc6ec8ab1d8a7c0 BNB0.00022434
0xc84fce9e649114cf3cf440a822c66fd1c054e6b40da32ff9e533f4847b5e825795964462021-07-30 7:38:3918 hrs 5 mins ago0x4affe3bde48ba519641894dd226b4f4608509ad4 IN  0x22d5dd0991ba342375c2b9c755cc6ec8ab1d8a7c0 BNB0.00022434
0xeec6efb305f0f2e824fb163498a1813d23da6845f38bfc7c41d27c1c31bfb63795955772021-07-30 6:54:5218 hrs 49 mins ago0xc6bae7317892599f6ce45e2ba7603a699ada15b0 IN  0x22d5dd0991ba342375c2b9c755cc6ec8ab1d8a7c0 BNB0.00022434
0xcb5c515e7b0fcd3afacaeac77eeb47c1018b4da1f73868478377a7bc65c2981d95903552021-07-30 2:29:3523 hrs 14 mins ago0xe901caa5fd9b08454a27f573cf736c4aaf29b149 IN  0x22d5dd0991ba342375c2b9c755cc6ec8ab1d8a7c0 BNB0.00022434
0x1632f93dc91e3e72cb33d082de63b3af9f86135200f2fd546cea6d47cd3bd64d95900402021-07-30 2:12:4023 hrs 31 mins ago0x857b70c34022aaa505f09ba86ea4c927c040f7b7 IN  0x22d5dd0991ba342375c2b9c755cc6ec8ab1d8a7c0 BNB0.00022434
0xe6b181ce2de09974c58bb50dc57fd6694551eaa098850abfb7c6901da6924a6c95829652021-07-29 20:07:421 day 5 hrs ago0x62af84592af528d700f63bdb60b657d3eb3344c6 IN  0x22d5dd0991ba342375c2b9c755cc6ec8ab1d8a7c0 BNB0.00022434
0xbc7ab9af0e1e30673eb7903ef67006e876fd95102829db5717a523eedd817b1595821262021-07-29 19:23:001 day 6 hrs ago0x8e626b13593888e89cee1be980a921935f28d77d IN  0x22d5dd0991ba342375c2b9c755cc6ec8ab1d8a7c0 BNB0.00022434
0x721a538b893744e879db0b5bc1cf29b40793677cdf8bdb1c23e2e094ca845b4a95802202021-07-29 17:41:241 day 8 hrs ago0x75f12c21e4eda606591d6ac191539446d9a9491d IN  0x22d5dd0991ba342375c2b9c755cc6ec8ab1d8a7c0 BNB0.000224384868
0x6768b2d103beb8ee60461d7465b61ced2c7a5b98fabce70d8a68fa338593100795797222021-07-29 17:15:221 day 8 hrs ago0xb2df1f22bf4ac5eb0561bf600b24e3508256865b IN  0x22d5dd0991ba342375c2b9c755cc6ec8ab1d8a7c0 BNB0.000224384868
0x81bb079026e108f42b613069dfb629b76abb94b86740893b0efdfad46b77aeb095797152021-07-29 17:14:581 day 8 hrs ago0x1fafd2be3a17802fcb9cdbf50667907ab5e9bff7 IN  0x22d5dd0991ba342375c2b9c755cc6ec8ab1d8a7c0 BNB0.000224384868
0xe19386d1784806e6e211a1e173a322feefcf6e0cc058ee183ef8380084901b4895796602021-07-29 17:11:461 day 8 hrs ago0x64512a801d2080ba322b10e734d73c9c55734b26 IN  0x22d5dd0991ba342375c2b9c755cc6ec8ab1d8a7c0 BNB0.000269208
0x7e77aadb3b9e269f079117c121f654af0f79400510a19ea7df36d294dc24d9f695721432021-07-29 10:11:111 day 15 hrs ago0xc6a859f996d848d6e222a2a9a17259e470300d9f IN  0x22d5dd0991ba342375c2b9c755cc6ec8ab1d8a7c0 BNB0.00012834
0xdc08c192bd527bbccb8eca8ee76845b23c630824043f8e6db3acd0c31c16a05b95721282021-07-29 10:10:231 day 15 hrs ago0xc6a859f996d848d6e222a2a9a17259e470300d9f IN  0x22d5dd0991ba342375c2b9c755cc6ec8ab1d8a7c0 BNB0.00022434
0x26dacee1748cb2ecac78f5aa96af4b97c461b6e9490066db7c690bac571ffd7295717242021-07-29 9:47:341 day 15 hrs ago0x91e8e93f2a2d95d92363a5cdfa59718fb23ec885 IN  0x22d5dd0991ba342375c2b9c755cc6ec8ab1d8a7c0 BNB0.00022434
0x2666f68e3f80dece145f062055db4eafc66a8e9efd5786f4eab65af34da49c0095689222021-07-29 7:21:591 day 18 hrs ago0x7ab631ddc4395a8a504dd81b7c9173e89df19c58 IN  0x22d5dd0991ba342375c2b9c755cc6ec8ab1d8a7c0 BNB0.00022434
[ Download CSV Export 
Parent Txn Hash Block From To Value
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
SCVGatchaNFT

Compiler Version
v0.8.4+commit.c7e474f2

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion

Contract Source Code (Solidity Standard Json-Input format)

File 1 of 19 : SCVGatchaNFT.sol
// SPDX-License-Identifier: UNLICENSED

pragma solidity ^0.8.4;

import '@openzeppelin/contracts/access/AccessControl.sol';
import '@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol';
import '@openzeppelin/contracts/utils/Counters.sol';
import '@openzeppelin/contracts/utils/Strings.sol';
import '@openzeppelin/contracts/utils/introspection/IERC165.sol';
import '@openzeppelin/contracts/utils/introspection/ERC165Storage.sol';

import './ISCVBot.sol';
import './INFTSpec.sol';
import './ISCVGatcha.sol';
import './ISCVGatchaNFT.sol';

contract SCVGatchaNFT is ISCVBot, ISCVGatchaNFT, ERC721Enumerable, AccessControl, ERC165Storage {
    using Counters for Counters.Counter;
    using Strings for uint256;

    bytes32 public constant OPERATOR_ROLE = keccak256('OPERATOR_ROLE');
    bytes32 public constant MINT_ROLE = keccak256('MINT_ROLE');

    INFTSpec private _specAddress;

    mapping(uint256 => uint256) private _token2spec;
    mapping(uint256 => address) private _token2opener;
    mapping(uint256 => address) private _token2Gatcha;

    string public baseURI;
    string public defaultURI; // when not opened
    Counters.Counter private _tokenIdCounter;

    // --------------------------------
    // events
    event Open(address indexed user, uint256 tokenId, uint256 specId);

    // --------------------------------
    // modifiers

    modifier isOperator() {
        require(hasRole(OPERATOR_ROLE, msg.sender), 'OPERATOR_ROLE required');
        _;
    }

    modifier isAdmin() {
        require(hasRole(DEFAULT_ADMIN_ROLE, msg.sender), 'DEFAULT_ADMIN_ROLE required');
        _;
    }

    modifier isMinter() {
        require(hasRole(MINT_ROLE, msg.sender), 'MINT_ROLE required');
        _;
    }

    modifier isOwner(uint256 tokenId) {
        require(ownerOf(tokenId) == msg.sender, 'not owner');
        _;
    }

    // --------------------------------
    // constructor

    constructor(
        string memory baseURI_,
        string memory defaultURI_,
        INFTSpec specAddress_
    ) ERC721('SCV Gatcha Bot', 'SCVGB') {
        baseURI = baseURI_;
        defaultURI = defaultURI_;
        _specAddress = specAddress_;

        _setupRole(DEFAULT_ADMIN_ROLE, msg.sender);
        _setupRole(OPERATOR_ROLE, msg.sender);

        _registerInterface(bytes4(keccak256('openerOf(uint256)')));
        _registerInterface(bytes4(keccak256('open(uint256)')));
        _registerInterface(bytes4(keccak256('openable(uint256)')));
        _registerInterface(bytes4(keccak256('opened(uint256)')));
        _registerInterface(bytes4(keccak256('multiOpen(uint256[])')));
    }

    // --------------------------------
    // public readables

    function openerOf(uint256 tokenId) external view override returns (address) {
        return _token2opener[tokenId];
    }

    function getSpecId(uint256 tokenId) external view override returns (uint256) {
        return _token2spec[tokenId];
    }

    function opened(uint256 tokenId) public view override returns (bool) {
        return _token2spec[tokenId] != 0;
    }

    function openable(uint256 tokenId) public view override returns (bool) {
        ISCVGatcha gatcha = ISCVGatcha(_token2Gatcha[tokenId]);
        return !opened(tokenId) && gatcha.isSpecIdReady(tokenId);
    }

    function gatchaAddress(uint256 tokenId) external view returns (address) {
        return _token2Gatcha[tokenId];
    }

    function specAddress() external view override returns (address) {
        return address(_specAddress);
    }

    // --------------------------------
    // state updaters

    function updateBaseURI(string memory newURI) external isOperator {
        baseURI = newURI;
    }

    function updateDefaultURI(string memory uri) external isAdmin {
        defaultURI = uri;
    }

    function updateSpecAddress(INFTSpec newAddress) external isOperator {
        _specAddress = newAddress;
    }

    function multiOpen(uint256[] memory tokenIds) external override {
        for (uint256 i = 0; i < tokenIds.length; i++) {
            open(tokenIds[i]); // could fail
        }
    }

    function open(uint256 tokenId) public override isOwner(tokenId) {
        require(openable(tokenId), 'spec can not be opened');

        ISCVGatcha gatcha = ISCVGatcha(_token2Gatcha[tokenId]);
        uint256 specId = gatcha.specId(tokenId); // throws when not ready
        require(_specAddress.hasSpecId(specId), 'nonexistent spec');
        // if specId = 0, it remains unopened
        _token2spec[tokenId] = specId;
        // the opener is the one who opened the box
        _token2opener[tokenId] = msg.sender;

        emit Open(msg.sender, tokenId, specId);
    }

    function mint(address to, address gatcha) external override isMinter returns (uint256) {
        uint256 tokenId = _tokenIdCounter.current();
        _safeMint(to, tokenId);
        _tokenIdCounter.increment();

        // keep the default
        // _token2spec[tokenId] = 0;
        _token2Gatcha[tokenId] = gatcha;
        return tokenId;
    }

    function burn(uint256 tokenId) external isMinter {
        _burn(tokenId);
        delete _token2spec[tokenId];
    }

    // --------------------------------
    // overrides

    function tokenURI(uint256 tokenId) public view override returns (string memory) {
        require(_exists(tokenId), 'ERC721Metadata: URI query for nonexistent token');
        uint256 specId = _token2spec[tokenId];
        if (specId > 0) {
            bytes memory specIdStr = bytes(specId.toString());
            return string(bytes.concat(bytes(baseURI), specIdStr, '.json'));
        } else {
            return defaultURI;
        }
    }

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

File 2 of 19 : AccessControl.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

/**
 * @dev External interface of AccessControl declared to support ERC165 detection.
 */
interface IAccessControl {
    function hasRole(bytes32 role, address account) external view returns (bool);
    function getRoleAdmin(bytes32 role) external view returns (bytes32);
    function grantRole(bytes32 role, address account) external;
    function revokeRole(bytes32 role, address account) external;
    function renounceRole(bytes32 role, address account) external;
}

/**
 * @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 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 {_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 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]{20}) is missing role (0x[0-9a-f]{32})$/
     *
     * _Available since v4.1._
     */
    modifier onlyRole(bytes32 role) {
        _checkRole(role, _msgSender());
        _;
    }

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

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

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

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

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

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

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

        _revokeRole(role, account);
    }

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

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

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

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

File 3 of 19 : ERC721Enumerable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

File 4 of 19 : Counters.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

File 5 of 19 : Strings.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @dev String operations.
 */
library Strings {
    bytes16 private constant alphabet = "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] = alphabet[value & 0xf];
            value >>= 4;
        }
        require(value == 0, "Strings: hex length insufficient");
        return string(buffer);
    }

}

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

pragma solidity ^0.8.0;

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

File 7 of 19 : ERC165Storage.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "./ERC165.sol";

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

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

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

File 8 of 19 : ISCVBot.sol
// SPDX-License-Identifier: UNLICENSED

pragma solidity ^0.8.0;

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

interface ISCVBot is IERC721 {
    function getSpecId(uint256 tokenId) external view returns (uint256);

    function specAddress() external view returns (address);
}

File 9 of 19 : INFTSpec.sol
// SPDX-License-Identifier: UNLICENSED

pragma solidity ^0.8.0;

interface INFTSpec {
    function hasSpecId(uint256 specId) external view returns (bool);

    function totalSpecs() external view returns (uint256);
}

File 10 of 19 : ISCVGatcha.sol
// SPDX-License-Identifier: UNLICENSED

pragma solidity ^0.8.0;

interface ISCVGatcha {
    function specId(uint256 tokenId) external returns (uint256);

    function isSpecIdReady(uint256 tokenId) external view returns (bool);
}

File 11 of 19 : ISCVGatchaNFT.sol
// SPDX-License-Identifier: UNLICENSED

pragma solidity ^0.8.0;

interface ISCVGatchaNFT {
    function openerOf(uint256 tokenId) external returns (address);

    function opened(uint256 tokenId) external view returns (bool);

    function multiOpen(uint256[] memory tokenIds) external;

    function open(uint256 tokenId) external;

    function mint(address to, address gatcha) external returns (uint256);

    function openable(uint256 tokenId) external view returns (bool);
}

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

pragma solidity ^0.8.0;

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

    function _msgData() internal view virtual returns (bytes calldata) {
        this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691
        return msg.data;
    }
}

File 13 of 19 : ERC165.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "./IERC165.sol";

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

File 14 of 19 : ERC721.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

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

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

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

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

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

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

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

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

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

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

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

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

    /**
     * @dev Base URI for computing {tokenURI}. Empty by default, can be overriden
     * in child contracts.
     */
    function _baseURI() internal view virtual returns (string memory) {
        return "";
    }

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

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

        _approve(to, tokenId);
    }

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

        return _tokenApprovals[tokenId];
    }

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

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

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

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

        _transfer(from, to, tokenId);
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        _beforeTokenTransfer(from, to, tokenId);

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

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

        emit Transfer(from, to, tokenId);
    }

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

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

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

File 15 of 19 : IERC721Enumerable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../IERC721.sol";

/**
 * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension
 * @dev See https://eips.ethereum.org/EIPS/eip-721
 */
interface IERC721Enumerable is IERC721 {

    /**
     * @dev Returns the total amount of tokens stored by the contract.
     */
    function totalSupply() external view returns (uint256);

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

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

File 16 of 19 : IERC721.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

File 17 of 19 : IERC721Receiver.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

pragma solidity ^0.8.0;

import "../IERC721.sol";

/**
 * @title ERC-721 Non-Fungible Token Standard, optional metadata extension
 * @dev See https://eips.ethereum.org/EIPS/eip-721
 */
interface IERC721Metadata is IERC721 {

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

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

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

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

pragma solidity ^0.8.0;

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

        uint256 size;
        // solhint-disable-next-line no-inline-assembly
        assembly { size := extcodesize(account) }
        return size > 0;
    }

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

        // solhint-disable-next-line avoid-low-level-calls, avoid-call-value
        (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");

        // solhint-disable-next-line avoid-low-level-calls
        (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");

        // solhint-disable-next-line avoid-low-level-calls
        (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");

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = target.delegatecall(data);
        return _verifyCallResult(success, returndata, errorMessage);
    }

    function _verifyCallResult(bool success, bytes memory returndata, string memory errorMessage) private 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

                // solhint-disable-next-line no-inline-assembly
                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

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

Contract ABI

[{"inputs":[{"internalType":"string","name":"baseURI_","type":"string"},{"internalType":"string","name":"defaultURI_","type":"string"},{"internalType":"contract INFTSpec","name":"specAddress_","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"specId","type":"uint256"}],"name":"Open","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":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MINT_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"OPERATOR_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"defaultURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"gatchaAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getSpecId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"address","name":"gatcha","type":"address"}],"name":"mint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"multiOpen","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":"open","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"openable","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"opened","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"openerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"specAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"newURI","type":"string"}],"name":"updateBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"uri","type":"string"}],"name":"updateDefaultURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract INFTSpec","name":"newAddress","type":"address"}],"name":"updateSpecAddress","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60806040523480156200001157600080fd5b50604051620030bb380380620030bb833981016040819052620000349162000491565b604080518082018252600e81526d14d0d58811d85d18da1848109bdd60921b60208083019182528351808501909452600584526429a1ab23a160d91b908401528151919291620000879160009162000338565b5080516200009d90600190602084019062000338565b50508351620000b59150601090602086019062000338565b508151620000cb90601190602085019062000338565b50600c80546001600160a01b0319166001600160a01b038316179055620000f460003362000200565b620001207f97667070c54ef182b0f5858b034beac1b6f3089aa2d3188bb1e8929f4fa9b9293362000200565b6200014b7f0ff9f122e355c96d39258c23466552595b796e91db35249939aedcca8094071762000210565b620001767f690e7c09973b04c549e0beed814bdf73b6430c82dd31cb3c6a18c41bec4f108462000210565b620001a17f4e269b9e985083985e42ca981599bd67f3a9dea14de63ad5d5af28855e45ded562000210565b620001cc7ff1ea5cd3d18ed836fd69fb01524f18527490138a27d5edcf7fee1675a8c16f2b62000210565b620001f77f2692a40ba952f7bdf58ae959bbbc8286a9f6a62fc01738ebcd5571437780730c62000210565b5050506200056d565b6200020c828262000294565b5050565b6001600160e01b031980821614156200026f5760405162461bcd60e51b815260206004820152601c60248201527f4552433136353a20696e76616c696420696e7465726661636520696400000000604482015260640160405180910390fd5b6001600160e01b0319166000908152600b60205260409020805460ff19166001179055565b6000828152600a602090815260408083206001600160a01b038516845290915290205460ff166200020c576000828152600a602090815260408083206001600160a01b03851684529091529020805460ff19166001179055620002f43390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b82805462000346906200051a565b90600052602060002090601f0160209004810192826200036a5760008555620003b5565b82601f106200038557805160ff1916838001178555620003b5565b82800160010185558215620003b5579182015b82811115620003b557825182559160200191906001019062000398565b50620003c3929150620003c7565b5090565b5b80821115620003c35760008155600101620003c8565b600082601f830112620003ef578081fd5b81516001600160401b03808211156200040c576200040c62000557565b604051601f8301601f19908116603f0116810190828211818310171562000437576200043762000557565b8160405283815260209250868385880101111562000453578485fd5b8491505b8382101562000476578582018301518183018401529082019062000457565b838211156200048757848385830101525b9695505050505050565b600080600060608486031215620004a6578283fd5b83516001600160401b0380821115620004bd578485fd5b620004cb87838801620003de565b94506020860151915080821115620004e1578384fd5b50620004f086828701620003de565b604086015190935090506001600160a01b03811681146200050f578182fd5b809150509250925092565b600181811c908216806200052f57607f821691505b602082108114156200055157634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052604160045260246000fd5b612b3e806200057d6000396000f3fe608060405234801561001057600080fd5b506004361061023d5760003560e01c80634f6ccce71161013b578063a22cb465116100b8578063e9a9c8501161007c578063e9a9c8501461052f578063ea8bcf4a14610556578063ee1fe2ad14610576578063f1ea5cd314610589578063f5b541a6146105ab57600080fd5b8063a22cb465146104a7578063b88d4fde146104ba578063c87b56dd146104cd578063d547741f146104e0578063e985e9c5146104f357600080fd5b806370a08231116100ff57806370a082311461045e57806391d1485414610471578063931688cb1461048457806395d89b4114610497578063a217fddf1461049f57600080fd5b80634f6ccce7146103f457806360dba48c146104075780636352211e14610430578063690e7c09146104435780636c0360eb1461045657600080fd5b80632692a40b116101c95780633a367a671161018d5780633a367a67146103a057806342842e0e146103a857806342966c68146103bb5780634cf23a1b146103ce5780634e269b9e146103e157600080fd5b80632692a40b146103415780632f2ff15d146103545780632f745c591461036757806330341e381461037a57806336568abe1461038d57600080fd5b80630ff9f122116102105780630ff9f122146102bf57806317fd00be146102e857806318160ddd146102f957806323b872dd1461030b578063248a9ca31461031e57600080fd5b806301ffc9a71461024257806306fdde031461026a578063081812fc1461027f578063095ea7b3146102aa575b600080fd5b610255610250366004612656565b6105d2565b60405190151581526020015b60405180910390f35b610272610601565b604051610261919061289a565b61029261028d36600461261a565b610693565b6040516001600160a01b039091168152602001610261565b6102bd6102b836600461252b565b61072d565b005b6102926102cd36600461261a565b6000908152600e60205260409020546001600160a01b031690565b600c546001600160a01b0316610292565b6008545b604051908152602001610261565b6102bd610319366004612441565b610843565b6102fd61032c36600461261a565b6000908152600a602052604090206001015490565b6102bd61034f366004612556565b610874565b6102bd610362366004612632565b6108c6565b6102fd61037536600461252b565b6108ec565b6102bd6103883660046123ed565b610982565b6102bd61039b366004612632565b610a13565b610272610a8d565b6102bd6103b6366004612441565b610b1b565b6102bd6103c936600461261a565b610b36565b6102bd6103dc36600461268e565b610bbb565b6102556103ef36600461261a565b610c25565b6102fd61040236600461261a565b610cdc565b61029261041536600461261a565b6000908152600f60205260409020546001600160a01b031690565b61029261043e36600461261a565b610d7d565b6102bd61045136600461261a565b610df4565b610272611044565b6102fd61046c3660046123ed565b611051565b61025561047f366004612632565b6110d8565b6102bd61049236600461268e565b611103565b610272611185565b6102fd600081565b6102bd6104b53660046124fe565b611194565b6102bd6104c8366004612481565b611259565b6102726104db36600461261a565b611291565b6102bd6104ee366004612632565b6113f7565b610255610501366004612409565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b6102fd7f154c00819833dac601ee5ddded6fda79d9d8b506b911b3dbd54cdb95fe6c368681565b6102fd61056436600461261a565b6000908152600d602052604090205490565b6102fd610584366004612409565b61141d565b61025561059736600461261a565b6000908152600d6020526040902054151590565b6102fd7f97667070c54ef182b0f5858b034beac1b6f3089aa2d3188bb1e8929f4fa9b92981565b60006105dd826114e0565b806105ec57506105ec82611505565b806105fb57506105fb82611536565b92915050565b60606000805461061090612a26565b80601f016020809104026020016040519081016040528092919081815260200182805461063c90612a26565b80156106895780601f1061065e57610100808354040283529160200191610689565b820191906000526020600020905b81548152906001019060200180831161066c57829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b03166107115760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b600061073882610d7d565b9050806001600160a01b0316836001600160a01b031614156107a65760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610708565b336001600160a01b03821614806107c257506107c28133610501565b6108345760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610708565b61083e838361155b565b505050565b61084d33826115c9565b6108695760405162461bcd60e51b8152600401610708906128ff565b61083e8383836116c0565b60005b81518110156108c2576108b08282815181106108a357634e487b7160e01b600052603260045260246000fd5b6020026020010151610df4565b806108ba81612a5b565b915050610877565b5050565b6000828152600a60205260409020600101546108e2813361186b565b61083e83836118cf565b60006108f783611051565b82106109595760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b6064820152608401610708565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b6109ac7f97667070c54ef182b0f5858b034beac1b6f3089aa2d3188bb1e8929f4fa9b929336110d8565b6109f15760405162461bcd60e51b815260206004820152601660248201527513d41154905513d497d493d311481c995c5d5a5c995960521b6044820152606401610708565b600c80546001600160a01b0319166001600160a01b0392909216919091179055565b6001600160a01b0381163314610a835760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b6064820152608401610708565b6108c28282611955565b60118054610a9a90612a26565b80601f0160208091040260200160405190810160405280929190818152602001828054610ac690612a26565b8015610b135780601f10610ae857610100808354040283529160200191610b13565b820191906000526020600020905b815481529060010190602001808311610af657829003601f168201915b505050505081565b61083e83838360405180602001604052806000815250611259565b610b607f154c00819833dac601ee5ddded6fda79d9d8b506b911b3dbd54cdb95fe6c3686336110d8565b610ba15760405162461bcd60e51b81526020600482015260126024820152711352539517d493d311481c995c5d5a5c995960721b6044820152606401610708565b610baa816119bc565b6000908152600d6020526040812055565b610bc66000336110d8565b610c125760405162461bcd60e51b815260206004820152601b60248201527f44454641554c545f41444d494e5f524f4c4520726571756972656400000000006044820152606401610708565b80516108c29060119060208401906122fc565b6000818152600f60205260408120546001600160a01b0316610c55836000908152600d6020526040902054151590565b158015610cd5575060405163c7d3f7b560e01b8152600481018490526001600160a01b0382169063c7d3f7b59060240160206040518083038186803b158015610c9d57600080fd5b505afa158015610cb1573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610cd591906125fe565b9392505050565b6000610ce760085490565b8210610d4a5760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b6064820152608401610708565b60088281548110610d6b57634e487b7160e01b600052603260045260246000fd5b90600052602060002001549050919050565b6000818152600260205260408120546001600160a01b0316806105fb5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610708565b8033610dff82610d7d565b6001600160a01b031614610e415760405162461bcd60e51b81526020600482015260096024820152683737ba1037bbb732b960b91b6044820152606401610708565b610e4a82610c25565b610e8f5760405162461bcd60e51b81526020600482015260166024820152751cdc1958c818d85b881b9bdd081899481bdc195b995960521b6044820152606401610708565b6000828152600f602052604080822054905163131e5e5f60e11b8152600481018590526001600160a01b039091169190829063263cbcbe90602401602060405180830381600087803b158015610ee457600080fd5b505af1158015610ef8573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f1c91906126d4565b600c546040516366fd682560e11b8152600481018390529192506001600160a01b03169063cdfad04a9060240160206040518083038186803b158015610f6157600080fd5b505afa158015610f75573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f9991906125fe565b610fd85760405162461bcd60e51b815260206004820152601060248201526f6e6f6e6578697374656e74207370656360801b6044820152606401610708565b6000848152600d60209081526040808320849055600e82529182902080546001600160a01b031916339081179091558251878152918201849052917f5e3c8f6b552a3ff0e973b330d0768aa08ae9dfb0106405d51377c98e032e9b06910160405180910390a250505050565b60108054610a9a90612a26565b60006001600160a01b0382166110bc5760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610708565b506001600160a01b031660009081526003602052604090205490565b6000918252600a602090815260408084206001600160a01b0393909316845291905290205460ff1690565b61112d7f97667070c54ef182b0f5858b034beac1b6f3089aa2d3188bb1e8929f4fa9b929336110d8565b6111725760405162461bcd60e51b815260206004820152601660248201527513d41154905513d497d493d311481c995c5d5a5c995960521b6044820152606401610708565b80516108c29060109060208401906122fc565b60606001805461061090612a26565b6001600160a01b0382163314156111ed5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610708565b3360008181526005602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b61126333836115c9565b61127f5760405162461bcd60e51b8152600401610708906128ff565b61128b84848484611a63565b50505050565b6000818152600260205260409020546060906001600160a01b03166113105760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401610708565b6000828152600d6020526040902054801561135e57600061133082611a96565b9050601081604051602001611346929190612734565b60405160208183030381529060405292505050919050565b6011805461136b90612a26565b80601f016020809104026020016040519081016040528092919081815260200182805461139790612a26565b80156113e45780601f106113b9576101008083540402835291602001916113e4565b820191906000526020600020905b8154815290600101906020018083116113c757829003601f168201915b5050505050915050919050565b50919050565b6000828152600a6020526040902060010154611413813361186b565b61083e8383611955565b60006114497f154c00819833dac601ee5ddded6fda79d9d8b506b911b3dbd54cdb95fe6c3686336110d8565b61148a5760405162461bcd60e51b81526020600482015260126024820152711352539517d493d311481c995c5d5a5c995960721b6044820152606401610708565b600061149560125490565b90506114a18482611bb0565b6114af601280546001019055565b6000818152600f6020526040902080546001600160a01b0385166001600160a01b0319909116179055905092915050565b60006001600160e01b0319821663780e9d6360e01b14806105fb57506105fb82611bca565b600061151082611536565b806105fb5750506001600160e01b0319166000908152600b602052604090205460ff1690565b60006001600160e01b03198216637965db0b60e01b14806105fb57506105fb826114e0565b600081815260046020526040902080546001600160a01b0319166001600160a01b038416908117909155819061159082610d7d565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152600260205260408120546001600160a01b03166116425760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610708565b600061164d83610d7d565b9050806001600160a01b0316846001600160a01b031614806116885750836001600160a01b031661167d84610693565b6001600160a01b0316145b806116b857506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b03166116d382610d7d565b6001600160a01b03161461173b5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b6064820152608401610708565b6001600160a01b03821661179d5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610708565b6117a8838383611c1a565b6117b360008261155b565b6001600160a01b03831660009081526003602052604081208054600192906117dc9084906129cc565b90915550506001600160a01b038216600090815260036020526040812080546001929061180a908490612981565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b61187582826110d8565b6108c25761188d816001600160a01b03166014611cd2565b611898836020611cd2565b6040516020016118a99291906127e8565b60408051601f198184030181529082905262461bcd60e51b82526107089160040161289a565b6118d982826110d8565b6108c2576000828152600a602090815260408083206001600160a01b03851684529091529020805460ff191660011790556119113390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b61195f82826110d8565b156108c2576000828152600a602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b60006119c782610d7d565b90506119d581600084611c1a565b6119e060008361155b565b6001600160a01b0381166000908152600360205260408120805460019290611a099084906129cc565b909155505060008281526002602052604080822080546001600160a01b0319169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b611a6e8484846116c0565b611a7a84848484611eb4565b61128b5760405162461bcd60e51b8152600401610708906128ad565b606081611aba5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115611ae45780611ace81612a5b565b9150611add9050600a83612999565b9150611abe565b60008167ffffffffffffffff811115611b0d57634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015611b37576020820181803683370190505b5090505b84156116b857611b4c6001836129cc565b9150611b59600a86612a76565b611b64906030612981565b60f81b818381518110611b8757634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350611ba9600a86612999565b9450611b3b565b6108c2828260405180602001604052806000815250611fc1565b60006001600160e01b031982166380ac58cd60e01b1480611bfb57506001600160e01b03198216635b5e139f60e01b145b806105fb57506301ffc9a760e01b6001600160e01b03198316146105fb565b6001600160a01b038316611c7557611c7081600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b611c98565b816001600160a01b0316836001600160a01b031614611c9857611c988382611ff4565b6001600160a01b038216611caf5761083e81612091565b826001600160a01b0316826001600160a01b03161461083e5761083e828261216a565b60606000611ce18360026129ad565b611cec906002612981565b67ffffffffffffffff811115611d1257634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015611d3c576020820181803683370190505b509050600360fc1b81600081518110611d6557634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350600f60fb1b81600181518110611da257634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a9053506000611dc68460026129ad565b611dd1906001612981565b90505b6001811115611e65576f181899199a1a9b1b9c1cb0b131b232b360811b85600f1660108110611e1357634e487b7160e01b600052603260045260246000fd5b1a60f81b828281518110611e3757634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a90535060049490941c93611e5e81612a0f565b9050611dd4565b508315610cd55760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610708565b60006001600160a01b0384163b15611fb657604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290611ef890339089908890889060040161285d565b602060405180830381600087803b158015611f1257600080fd5b505af1925050508015611f42575060408051601f3d908101601f19168201909252611f3f91810190612672565b60015b611f9c573d808015611f70576040519150601f19603f3d011682016040523d82523d6000602084013e611f75565b606091505b508051611f945760405162461bcd60e51b8152600401610708906128ad565b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506116b8565b506001949350505050565b611fcb83836121ae565b611fd86000848484611eb4565b61083e5760405162461bcd60e51b8152600401610708906128ad565b6000600161200184611051565b61200b91906129cc565b60008381526007602052604090205490915080821461205e576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b6008546000906120a3906001906129cc565b600083815260096020526040812054600880549394509092849081106120d957634e487b7160e01b600052603260045260246000fd5b90600052602060002001549050806008838154811061210857634e487b7160e01b600052603260045260246000fd5b600091825260208083209091019290925582815260099091526040808220849055858252812055600880548061214e57634e487b7160e01b600052603160045260246000fd5b6001900381819060005260206000200160009055905550505050565b600061217583611051565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b6001600160a01b0382166122045760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610708565b6000818152600260205260409020546001600160a01b0316156122695760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610708565b61227560008383611c1a565b6001600160a01b038216600090815260036020526040812080546001929061229e908490612981565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b82805461230890612a26565b90600052602060002090601f01602090048101928261232a5760008555612370565b82601f1061234357805160ff1916838001178555612370565b82800160010185558215612370579182015b82811115612370578251825591602001919060010190612355565b5061237c929150612380565b5090565b5b8082111561237c5760008155600101612381565b600067ffffffffffffffff8311156123af576123af612ab6565b6123c2601f8401601f1916602001612950565b90508281528383830111156123d657600080fd5b828260208301376000602084830101529392505050565b6000602082840312156123fe578081fd5b8135610cd581612acc565b6000806040838503121561241b578081fd5b823561242681612acc565b9150602083013561243681612acc565b809150509250929050565b600080600060608486031215612455578081fd5b833561246081612acc565b9250602084013561247081612acc565b929592945050506040919091013590565b60008060008060808587031215612496578081fd5b84356124a181612acc565b935060208501356124b181612acc565b925060408501359150606085013567ffffffffffffffff8111156124d3578182fd5b8501601f810187136124e3578182fd5b6124f287823560208401612395565b91505092959194509250565b60008060408385031215612510578182fd5b823561251b81612acc565b9150602083013561243681612ae4565b6000806040838503121561253d578182fd5b823561254881612acc565b946020939093013593505050565b60006020808385031215612568578182fd5b823567ffffffffffffffff8082111561257f578384fd5b818501915085601f830112612592578384fd5b8135818111156125a4576125a4612ab6565b8060051b91506125b5848301612950565b8181528481019084860184860187018a10156125cf578788fd5b8795505b838610156125f15780358352600195909501949186019186016125d3565b5098975050505050505050565b60006020828403121561260f578081fd5b8151610cd581612ae4565b60006020828403121561262b578081fd5b5035919050565b60008060408385031215612644578182fd5b82359150602083013561243681612acc565b600060208284031215612667578081fd5b8135610cd581612af2565b600060208284031215612683578081fd5b8151610cd581612af2565b60006020828403121561269f578081fd5b813567ffffffffffffffff8111156126b5578182fd5b8201601f810184136126c5578182fd5b6116b884823560208401612395565b6000602082840312156126e5578081fd5b5051919050565b600081518084526127048160208601602086016129e3565b601f01601f19169290920160200192915050565b6000815161272a8185602086016129e3565b9290920192915050565b600080845482600182811c91508083168061275057607f831692505b602080841082141561277057634e487b7160e01b87526022600452602487fd5b8180156127845760018114612795576127c1565b60ff198616895284890196506127c1565b60008b815260209020885b868110156127b95781548b8201529085019083016127a0565b505084890196505b5050505050506127d18185612718565b64173539b7b760d91b815260050195945050505050565b7f416363657373436f6e74726f6c3a206163636f756e74200000000000000000008152600083516128208160178501602088016129e3565b7001034b99036b4b9b9b4b733903937b6329607d1b60179184019182015283516128518160288401602088016129e3565b01602801949350505050565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090612890908301846126ec565b9695505050505050565b602081526000610cd560208301846126ec565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b604051601f8201601f1916810167ffffffffffffffff8111828210171561297957612979612ab6565b604052919050565b6000821982111561299457612994612a8a565b500190565b6000826129a8576129a8612aa0565b500490565b60008160001904831182151516156129c7576129c7612a8a565b500290565b6000828210156129de576129de612a8a565b500390565b60005b838110156129fe5781810151838201526020016129e6565b8381111561128b5750506000910152565b600081612a1e57612a1e612a8a565b506000190190565b600181811c90821680612a3a57607f821691505b602082108114156113f157634e487b7160e01b600052602260045260246000fd5b6000600019821415612a6f57612a6f612a8a565b5060010190565b600082612a8557612a85612aa0565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b0381168114612ae157600080fd5b50565b8015158114612ae157600080fd5b6001600160e01b031981168114612ae157600080fdfea2646970667358221220adc462083fc2f697e4dbe72a1fd2f360932d0791f2af3be91446e60fd2312e1d64736f6c63430008040033000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000c0000000000000000000000000aacb683a934a5e1aee846286049f1a5dd38bdfb90000000000000000000000000000000000000000000000000000000000000036697066733a2f2f516d536461336d4375656a474c7346433769423961643632325559446a337056566d446e4154486b386a334437792f000000000000000000000000000000000000000000000000000000000000000000000000000000000035697066733a2f2f516d5a62445941445a515836457848694b344a526248574172346a613144523772507052685a737137625965346f0000000000000000000000

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

000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000c0000000000000000000000000aacb683a934a5e1aee846286049f1a5dd38bdfb90000000000000000000000000000000000000000000000000000000000000036697066733a2f2f516d536461336d4375656a474c7346433769423961643632325559446a337056566d446e4154486b386a334437792f000000000000000000000000000000000000000000000000000000000000000000000000000000000035697066733a2f2f516d5a62445941445a515836457848694b344a526248574172346a613144523772507052685a737137625965346f0000000000000000000000

-----Encoded View---------------
9 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000060
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000c0
Arg [2] : 000000000000000000000000aacb683a934a5e1aee846286049f1a5dd38bdfb9
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000036
Arg [4] : 697066733a2f2f516d536461336d4375656a474c734643376942396164363232
Arg [5] : 5559446a337056566d446e4154486b386a334437792f00000000000000000000
Arg [6] : 0000000000000000000000000000000000000000000000000000000000000035
Arg [7] : 697066733a2f2f516d5a62445941445a515836457848694b344a526248574172
Arg [8] : 346a613144523772507052685a737137625965346f0000000000000000000000


Block Transaction Gas Used Reward
Age Block Fee Address BC Fee Address Voting Power Jailed Incoming
Block Uncle Number Difficulty Gas Used Reward
Loading
Loading
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.