Contract 0xd269ab73ba15cace0619d4cfd625de82cdcdd235

 
Txn Hash Method
Block
From
To
Value [Txn Fee]
0xd69bc2773d50d6795b13f4a9834bdfd90721bd6b174036a740a5109509cf25daCraft Talisman658609232023-03-01 21:51:31392 days 11 hrs ago0x91691b8e7d0ec9ea9f550c213967a6817ad0b5f9 IN  0xd269ab73ba15cace0619d4cfd625de82cdcdd2350 ETH0.00009132 0.1
0x8fc3325fd18ca95e8de8cf947f6c2ea1a445abfd250c0e9f976770df82a72970Craft Talisman636371672023-02-23 2:55:28399 days 6 hrs ago0x91691b8e7d0ec9ea9f550c213967a6817ad0b5f9 IN  0xd269ab73ba15cace0619d4cfd625de82cdcdd2350 ETH0.00008933 0.1
0x440c76db758aca57a574f8b1eb5c625189ace4555015732b003880c4d49c2224Craft Talisman539678262023-01-18 20:50:03434 days 12 hrs ago0x1dc7af8739c02b757ac9b3ba92ab561de7e3af25 IN  0xd269ab73ba15cace0619d4cfd625de82cdcdd2350 ETH0.00009357 0.1
0xc4cb8930c6e71fb5eadd2a6c64dc34e02b2cc55787a29a44f8634d2837209be7Craft Talisman523951442023-01-11 21:11:39441 days 11 hrs ago0x0a33921eeaa49daacaa918f75222fd6c5458fbe7 IN  0xd269ab73ba15cace0619d4cfd625de82cdcdd2350 ETH0.00008512 0.1
0xf5dd1fbd6ed5bacf1777f55890d11a14d01eea2ea592412279259508945b40e3Craft Talisman494932832022-12-28 23:20:03455 days 9 hrs ago0x766eae58468eeb2116bd25cbdec986f62d3fb4d6 IN  0xd269ab73ba15cace0619d4cfd625de82cdcdd2350 ETH0.00009064 0.1
0xe83d5c1e600c38a151d121d3cd2bae0c0d030aeaa95f4718c0ad0e81b528f39bCraft Talisman465605792022-12-16 7:04:03468 days 2 hrs ago0x766eae58468eeb2116bd25cbdec986f62d3fb4d6 IN  0xd269ab73ba15cace0619d4cfd625de82cdcdd2350 ETH0.00007582 0.1
0x615096bf6b28b6883669e85d08d2d32be43a5b52c2820072ef6b49940e3e9ad3Craft Talisman457645042022-12-13 8:03:48471 days 1 hr ago0x766eae58468eeb2116bd25cbdec986f62d3fb4d6 IN  0xd269ab73ba15cace0619d4cfd625de82cdcdd2350 ETH0.00007883 0.1
0x66f9c540553dd9fe0395faae812330464daac179278679757a3bcb47aa045328Craft Talisman450644632022-12-10 11:41:46473 days 21 hrs ago0x766eae58468eeb2116bd25cbdec986f62d3fb4d6 IN  0xd269ab73ba15cace0619d4cfd625de82cdcdd2350 ETH0.00006754 0.1
0x4c030eb5d00c9981f5cb04a2bd01101da7624f4a987ece4051270caec5bc2cd0Craft Talisman440475062022-12-06 10:17:42477 days 22 hrs ago0x766eae58468eeb2116bd25cbdec986f62d3fb4d6 IN  0xd269ab73ba15cace0619d4cfd625de82cdcdd2350 ETH0.00006766 0.1
0x7050035f5fc303843103e82ca7e075a7901ccf105bdacb3a847715b462e7ef4aCraft Talisman436399992022-12-04 20:22:37479 days 12 hrs ago0x766eae58468eeb2116bd25cbdec986f62d3fb4d6 IN  0xd269ab73ba15cace0619d4cfd625de82cdcdd2350 ETH0.00006313 0.1
0x3c261e03af574b12f31d5c4205bff2e533a801ba09912443af378ddfd87badb0Craft Talisman426944242022-12-01 12:00:22482 days 21 hrs ago0xb75e6a898f4d7dd32efea8d27094432b0f90618d IN  0xd269ab73ba15cace0619d4cfd625de82cdcdd2350 ETH0.0000812 0.1
0x9fda0efeaec6c121ba71a2cb1b29f920c59487e00579b2c010205063a135adb5Craft Talisman426579702022-12-01 9:00:02483 days 5 mins ago0x766eae58468eeb2116bd25cbdec986f62d3fb4d6 IN  0xd269ab73ba15cace0619d4cfd625de82cdcdd2350 ETH0.00006298 0.1
0xf57867ffef2219abee0a3309a2f3e0a120a96f577a8ef7e18b4babe29c6f5e66Craft Talisman425716772022-12-01 0:12:02483 days 8 hrs ago0xff6202e15773b4283dfa83d3559e70f293dd20ec IN  0xd269ab73ba15cace0619d4cfd625de82cdcdd2350 ETH0.00004733 0.1
0xef1a15bf781b49eea052d1e8cb74bae470bf6a9683680f530f52a20ae47ae433Craft Talisman423901652022-11-30 8:56:03484 days 9 mins ago0x766eae58468eeb2116bd25cbdec986f62d3fb4d6 IN  0xd269ab73ba15cace0619d4cfd625de82cdcdd2350 ETH0.00006332 0.1
0x42db0ab8c7ff128a1d47e983abadc9c1004bf8d7556204e55cfb1790ed105098Craft Talisman418415332022-11-28 9:30:25485 days 23 hrs ago0x766eae58468eeb2116bd25cbdec986f62d3fb4d6 IN  0xd269ab73ba15cace0619d4cfd625de82cdcdd2350 ETH0.00006044 0.1
0x87cdb32e0cc7a6eea041314d0ea914fd583ea34f651d6f690b32a1ee3e74142fCraft Talisman418411982022-11-28 9:28:46485 days 23 hrs ago0xff6202e15773b4283dfa83d3559e70f293dd20ec IN  0xd269ab73ba15cace0619d4cfd625de82cdcdd2350 ETH0.00004255 0.1
0x9de8390948f499e22df76f21fc242f260296862273c2996a22c9fb0475888058Craft Talisman413342382022-11-26 10:12:07487 days 22 hrs ago0x766eae58468eeb2116bd25cbdec986f62d3fb4d6 IN  0xd269ab73ba15cace0619d4cfd625de82cdcdd2350 ETH0.0000621 0.1
0x01e2db95a22d69e3712dd3c8b9e79fa87ece8bf8f89012cba8f505554112901aCraft Talisman410508102022-11-25 9:25:32488 days 23 hrs ago0x766eae58468eeb2116bd25cbdec986f62d3fb4d6 IN  0xd269ab73ba15cace0619d4cfd625de82cdcdd2350 ETH0.00006236 0.1
0x0ed499aa411146ea251e5cd15f88409d8e075bb2110351e3980a864d4e509bb6Craft Talisman407826572022-11-24 9:23:45489 days 23 hrs ago0x766eae58468eeb2116bd25cbdec986f62d3fb4d6 IN  0xd269ab73ba15cace0619d4cfd625de82cdcdd2350 ETH0.00006692 0.1
0xb06190ce5e73ee461edbcb540f59e189066ef59ab1cfca5915ad5e85c3d5e8acCraft Talisman402639462022-11-22 13:57:38491 days 19 hrs ago0x766eae58468eeb2116bd25cbdec986f62d3fb4d6 IN  0xd269ab73ba15cace0619d4cfd625de82cdcdd2350 ETH0.00010571 0.1
0x82921e8ffce3713e827aa502a63006868c730bb1efce28fd14cb62dec83d8b06Craft Talisman392891882022-11-19 10:47:35494 days 22 hrs ago0x766eae58468eeb2116bd25cbdec986f62d3fb4d6 IN  0xd269ab73ba15cace0619d4cfd625de82cdcdd2350 ETH0.00006508 0.1
0xf13d83a2a35a6082022197fe97ca8f921b6044dd72103b7a9c319c0d41238db4Craft Talisman387832402022-11-17 10:27:29496 days 22 hrs ago0x766eae58468eeb2116bd25cbdec986f62d3fb4d6 IN  0xd269ab73ba15cace0619d4cfd625de82cdcdd2350 ETH0.00006959 0.1
0xd97ff58134891d4dfe9b2c0f9ddb342a0d4bf70cbdeaf5bbc858fc6cd00227e0Craft Talisman384930872022-11-16 8:09:13498 days 56 mins ago0x766eae58468eeb2116bd25cbdec986f62d3fb4d6 IN  0xd269ab73ba15cace0619d4cfd625de82cdcdd2350 ETH0.00006507 0.1
0x1de860e7f8741bfd8b735c6a14cf1418cf1df87d77501c4aa52b708ade7f484bCraft Talisman379900252022-11-14 10:01:23499 days 23 hrs ago0x766eae58468eeb2116bd25cbdec986f62d3fb4d6 IN  0xd269ab73ba15cace0619d4cfd625de82cdcdd2350 ETH0.00006921 0.1
0x16800299f84c1b91e3f7d472f1cec60e841a527257ea8dbeae50a4391494e7a2Craft Talisman376818232022-11-13 6:24:54501 days 2 hrs ago0x898688eba25755568eada6e3f30ef937322bd67d IN  0xd269ab73ba15cace0619d4cfd625de82cdcdd2350 ETH0.00004764 0.1
[ Download CSV Export 
Latest 25 internal transaction
Parent Txn Hash Block From To Value
0xd69bc2773d50d6795b13f4a9834bdfd90721bd6b174036a740a5109509cf25da658609232023-03-01 21:51:31392 days 11 hrs ago 0xd269ab73ba15cace0619d4cfd625de82cdcdd235 0xbf23ae09cb539c810394d7f7dc7c3d8ee89e6eb20 ETH
0xd69bc2773d50d6795b13f4a9834bdfd90721bd6b174036a740a5109509cf25da658609232023-03-01 21:51:31392 days 11 hrs ago 0xd269ab73ba15cace0619d4cfd625de82cdcdd235 0xbf06214880c97be2b2b4c05aedd53eef2bb9b2ea0 ETH
0xd69bc2773d50d6795b13f4a9834bdfd90721bd6b174036a740a5109509cf25da658609232023-03-01 21:51:31392 days 11 hrs ago 0xd269ab73ba15cace0619d4cfd625de82cdcdd235 0x35a443f48b838fb5911601b21b2525653d05cb7b0 ETH
0xd69bc2773d50d6795b13f4a9834bdfd90721bd6b174036a740a5109509cf25da658609232023-03-01 21:51:31392 days 11 hrs ago 0xd269ab73ba15cace0619d4cfd625de82cdcdd235 0xbf06214880c97be2b2b4c05aedd53eef2bb9b2ea0 ETH
0xd69bc2773d50d6795b13f4a9834bdfd90721bd6b174036a740a5109509cf25da658609232023-03-01 21:51:31392 days 11 hrs ago 0xd269ab73ba15cace0619d4cfd625de82cdcdd235 0x9d5d23e22fb63202499b1801354dd2d79194860b0 ETH
0xd69bc2773d50d6795b13f4a9834bdfd90721bd6b174036a740a5109509cf25da658609232023-03-01 21:51:31392 days 11 hrs ago 0xd269ab73ba15cace0619d4cfd625de82cdcdd235 Shogun War: SHO Token0 ETH
0x8fc3325fd18ca95e8de8cf947f6c2ea1a445abfd250c0e9f976770df82a72970636371672023-02-23 2:55:28399 days 6 hrs ago 0xd269ab73ba15cace0619d4cfd625de82cdcdd235 0xbf23ae09cb539c810394d7f7dc7c3d8ee89e6eb20 ETH
0x8fc3325fd18ca95e8de8cf947f6c2ea1a445abfd250c0e9f976770df82a72970636371672023-02-23 2:55:28399 days 6 hrs ago 0xd269ab73ba15cace0619d4cfd625de82cdcdd235 0xbf06214880c97be2b2b4c05aedd53eef2bb9b2ea0 ETH
0x8fc3325fd18ca95e8de8cf947f6c2ea1a445abfd250c0e9f976770df82a72970636371672023-02-23 2:55:28399 days 6 hrs ago 0xd269ab73ba15cace0619d4cfd625de82cdcdd235 0x35a443f48b838fb5911601b21b2525653d05cb7b0 ETH
0x8fc3325fd18ca95e8de8cf947f6c2ea1a445abfd250c0e9f976770df82a72970636371672023-02-23 2:55:28399 days 6 hrs ago 0xd269ab73ba15cace0619d4cfd625de82cdcdd235 0xbf06214880c97be2b2b4c05aedd53eef2bb9b2ea0 ETH
0x8fc3325fd18ca95e8de8cf947f6c2ea1a445abfd250c0e9f976770df82a72970636371672023-02-23 2:55:28399 days 6 hrs ago 0xd269ab73ba15cace0619d4cfd625de82cdcdd235 0x9d5d23e22fb63202499b1801354dd2d79194860b0 ETH
0x8fc3325fd18ca95e8de8cf947f6c2ea1a445abfd250c0e9f976770df82a72970636371672023-02-23 2:55:28399 days 6 hrs ago 0xd269ab73ba15cace0619d4cfd625de82cdcdd235 Shogun War: SHO Token0 ETH
0x440c76db758aca57a574f8b1eb5c625189ace4555015732b003880c4d49c2224539678262023-01-18 20:50:03434 days 12 hrs ago 0xd269ab73ba15cace0619d4cfd625de82cdcdd235 0xbf23ae09cb539c810394d7f7dc7c3d8ee89e6eb20 ETH
0x440c76db758aca57a574f8b1eb5c625189ace4555015732b003880c4d49c2224539678262023-01-18 20:50:03434 days 12 hrs ago 0xd269ab73ba15cace0619d4cfd625de82cdcdd235 0xbf06214880c97be2b2b4c05aedd53eef2bb9b2ea0 ETH
0x440c76db758aca57a574f8b1eb5c625189ace4555015732b003880c4d49c2224539678262023-01-18 20:50:03434 days 12 hrs ago 0xd269ab73ba15cace0619d4cfd625de82cdcdd235 0x35a443f48b838fb5911601b21b2525653d05cb7b0 ETH
0x440c76db758aca57a574f8b1eb5c625189ace4555015732b003880c4d49c2224539678262023-01-18 20:50:03434 days 12 hrs ago 0xd269ab73ba15cace0619d4cfd625de82cdcdd235 0xbf06214880c97be2b2b4c05aedd53eef2bb9b2ea0 ETH
0x440c76db758aca57a574f8b1eb5c625189ace4555015732b003880c4d49c2224539678262023-01-18 20:50:03434 days 12 hrs ago 0xd269ab73ba15cace0619d4cfd625de82cdcdd235 0x9d5d23e22fb63202499b1801354dd2d79194860b0 ETH
0x440c76db758aca57a574f8b1eb5c625189ace4555015732b003880c4d49c2224539678262023-01-18 20:50:03434 days 12 hrs ago 0xd269ab73ba15cace0619d4cfd625de82cdcdd235 Shogun War: SHO Token0 ETH
0xc4cb8930c6e71fb5eadd2a6c64dc34e02b2cc55787a29a44f8634d2837209be7523951442023-01-11 21:11:39441 days 11 hrs ago 0xd269ab73ba15cace0619d4cfd625de82cdcdd235 0xbf23ae09cb539c810394d7f7dc7c3d8ee89e6eb20 ETH
0xc4cb8930c6e71fb5eadd2a6c64dc34e02b2cc55787a29a44f8634d2837209be7523951442023-01-11 21:11:39441 days 11 hrs ago 0xd269ab73ba15cace0619d4cfd625de82cdcdd235 0xbf06214880c97be2b2b4c05aedd53eef2bb9b2ea0 ETH
0xc4cb8930c6e71fb5eadd2a6c64dc34e02b2cc55787a29a44f8634d2837209be7523951442023-01-11 21:11:39441 days 11 hrs ago 0xd269ab73ba15cace0619d4cfd625de82cdcdd235 0x35a443f48b838fb5911601b21b2525653d05cb7b0 ETH
0xc4cb8930c6e71fb5eadd2a6c64dc34e02b2cc55787a29a44f8634d2837209be7523951442023-01-11 21:11:39441 days 11 hrs ago 0xd269ab73ba15cace0619d4cfd625de82cdcdd235 0xbf06214880c97be2b2b4c05aedd53eef2bb9b2ea0 ETH
0xc4cb8930c6e71fb5eadd2a6c64dc34e02b2cc55787a29a44f8634d2837209be7523951442023-01-11 21:11:39441 days 11 hrs ago 0xd269ab73ba15cace0619d4cfd625de82cdcdd235 0x9d5d23e22fb63202499b1801354dd2d79194860b0 ETH
0xc4cb8930c6e71fb5eadd2a6c64dc34e02b2cc55787a29a44f8634d2837209be7523951442023-01-11 21:11:39441 days 11 hrs ago 0xd269ab73ba15cace0619d4cfd625de82cdcdd235 Shogun War: SHO Token0 ETH
0xf5dd1fbd6ed5bacf1777f55890d11a14d01eea2ea592412279259508945b40e3494932832022-12-28 23:20:03455 days 9 hrs ago 0xd269ab73ba15cace0619d4cfd625de82cdcdd235 0xbf23ae09cb539c810394d7f7dc7c3d8ee89e6eb20 ETH
[ Download CSV Export 
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
TalismanManager

Compiler Version
v0.8.7+commit.e28d00a7

Optimization Enabled:
Yes with 100 runs

Other Settings:
default evmVersion, MIT license

Contract Source Code (Solidity)

/**
 *Submitted for verification at Arbiscan.io on 2022-05-09
*/

// Sources flattened with hardhat v2.8.3 https://hardhat.org

// File @openzeppelin/contracts/access/[email protected]

// SPDX-License-Identifier: MIT

// OpenZeppelin Contracts v4.4.1 (access/IAccessControl.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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


// File @openzeppelin/contracts/utils/[email protected]


// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)

pragma solidity ^0.8.0;

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

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


// File @openzeppelin/contracts/utils/[email protected]


// OpenZeppelin Contracts v4.4.1 (utils/Strings.sol)

pragma solidity ^0.8.0;

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

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

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

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

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


// File @openzeppelin/contracts/utils/introspection/[email protected]


// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)

pragma solidity ^0.8.0;

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


// File @openzeppelin/contracts/utils/introspection/[email protected]


// OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol)

pragma solidity ^0.8.0;

/**
 * @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 @openzeppelin/contracts/access/[email protected]


// OpenZeppelin Contracts v4.4.1 (access/AccessControl.sol)

pragma solidity ^0.8.0;




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

    mapping(bytes32 => RoleData) private _roles;

    bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00;

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

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

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

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

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

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

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

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

        _revokeRole(role, account);
    }

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

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

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

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


// File contracts/ClansClasses/Control.sol


pragma solidity 0.8.7;

abstract contract Control is AccessControl {
    bytes32 public constant SHOGUN_OWNER_ROLE = keccak256("SHOGUN_OWNER_ROLE");

    modifier onlyOwner() {
        require(hasRole(SHOGUN_OWNER_ROLE, _msgSender()), "MinterControl: not a SHOGUN_OWNER_ROLE");
        _;
    }

    constructor() {
        _setRoleAdmin(SHOGUN_OWNER_ROLE, SHOGUN_OWNER_ROLE);
        _setupRole(SHOGUN_OWNER_ROLE, _msgSender());
    }

    function grantOwner(address _owner) external {
        grantRole(SHOGUN_OWNER_ROLE, _owner);
    }

    function isOwner(address _owner) public view returns (bool) {
        return hasRole(SHOGUN_OWNER_ROLE, _owner);
    }
}


// File contracts/ClansClasses/Classes.sol


pragma solidity 0.8.7;

contract Classes is Control {

    mapping(uint256 => string) public shogunClass;
    mapping(string => uint256) public classMembers;

    event JoinClass(uint256 tokenId, string class);
    event LeaveClass(uint256 tokenId, string class);

    function testStr(string memory str) public pure returns (bool) {
      bytes memory b = bytes(str);
      if (b.length <= 2) return true;
      return false;
    }

    function setShogunClass(uint256 tokenId, string memory class) external onlyOwner {
          require(testStr(shogunClass[tokenId]), "Cannot assign class, remove class first");
          shogunClass[tokenId] = class;
          classMembers[class]++;
          emit JoinClass(tokenId, class);
    }

    function removeShogunClass(uint256 tokenId) external onlyOwner {
        require(!testStr(shogunClass[tokenId]), "Cannot remove class, no class assigned");
        classMembers[shogunClass[tokenId]]--;
        shogunClass[tokenId] = "na";
        emit LeaveClass(tokenId, shogunClass[tokenId]);
    }

    function checkShogunClass(uint256 tokenId) public view returns (string memory) {
        return shogunClass[tokenId];
    }

    function checkClassMembers(string memory class) public view returns (uint256) {
        return classMembers[class];
    }
}


// File @openzeppelin/contracts/token/ERC20/[email protected]


// OpenZeppelin Contracts v4.4.1 (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

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

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

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

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

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

    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

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


// File @openzeppelin/contracts/token/ERC721/[email protected]


// OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721.sol)

pragma solidity ^0.8.0;

/**
 * @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 @openzeppelin/contracts/token/ERC721/[email protected]


// OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721Receiver.sol)

pragma solidity ^0.8.0;

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


// File @openzeppelin/contracts/token/ERC721/extensions/[email protected]


// OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol)

pragma solidity ^0.8.0;

/**
 * @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 @openzeppelin/contracts/utils/[email protected]


// OpenZeppelin Contracts v4.4.1 (utils/Address.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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


// File @openzeppelin/contracts/token/ERC721/[email protected]


// OpenZeppelin Contracts v4.4.1 (token/ERC721/ERC721.sol)

pragma solidity ^0.8.0;







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

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        _approve(to, tokenId);
    }

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

        return _tokenApprovals[tokenId];
    }

    /**
     * @dev See {IERC721-setApprovalForAll}.
     */
    function setApprovalForAll(address operator, bool approved) public virtual override {
        _setApprovalForAll(_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 Approve `operator` to operate on all of `owner` tokens
     *
     * Emits a {ApprovalForAll} event.
     */
    function _setApprovalForAll(
        address owner,
        address operator,
        bool approved
    ) internal virtual {
        require(owner != operator, "ERC721: approve to caller");
        _operatorApprovals[owner][operator] = approved;
        emit ApprovalForAll(owner, operator, approved);
    }

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

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


// File @openzeppelin/contracts/token/ERC721/extensions/[email protected]


// OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Enumerable.sol)

pragma solidity ^0.8.0;

/**
 * @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 @openzeppelin/contracts/token/ERC721/extensions/[email protected]


// OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/ERC721Enumerable.sol)

pragma solidity ^0.8.0;


/**
 * @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 @openzeppelin/contracts/utils/math/[email protected]


// OpenZeppelin Contracts v4.4.1 (utils/math/Math.sol)

pragma solidity ^0.8.0;

/**
 * @dev Standard math utilities missing in the Solidity language.
 */
library Math {
    /**
     * @dev Returns the largest of two numbers.
     */
    function max(uint256 a, uint256 b) internal pure returns (uint256) {
        return a >= b ? a : b;
    }

    /**
     * @dev Returns the smallest of two numbers.
     */
    function min(uint256 a, uint256 b) internal pure returns (uint256) {
        return a < b ? a : b;
    }

    /**
     * @dev Returns the average of two numbers. The result is rounded towards
     * zero.
     */
    function average(uint256 a, uint256 b) internal pure returns (uint256) {
        // (a + b) / 2 can overflow.
        return (a & b) + (a ^ b) / 2;
    }

    /**
     * @dev Returns the ceiling of the division of two numbers.
     *
     * This differs from standard division with `/` in that it rounds up instead
     * of rounding down.
     */
    function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) {
        // (a + b - 1) / b can overflow on addition, so we distribute.
        return a / b + (a % b == 0 ? 0 : 1);
    }
}


// File @openzeppelin/contracts/utils/[email protected]


// OpenZeppelin Contracts v4.4.1 (utils/Counters.sol)

pragma solidity ^0.8.0;

/**
 * @title Counters
 * @author Matt Condon (@shrugs)
 * @dev Provides counters that can only be incremented, decremented or reset. 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;
        }
    }

    function reset(Counter storage counter) internal {
        counter._value = 0;
    }
}


// File contracts/CooldownCrystals/CooldownCrystals.sol


pragma solidity 0.8.7;






contract CooldownCrystals is Control, ERC721Enumerable {
    using Strings for uint256;
    using Counters for Counters.Counter;

    Counters.Counter private _tokenIdCounter;
    string public baseURI;
    uint256 public crystalsMinted;

    event CooldownCrystalMint(address to, uint256 tokenId);

    constructor() ERC721("Shogun War Cooldown Crystal", "CooldownCrystal") {
      _tokenIdCounter._value = 1;
    }

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

    function safeMint(address to) public onlyOwner {
        _mint(to);
    }

    function tokenURI(uint256 _tokenId) public view override returns (string memory) { // set up api URL to return golden ticket metadata
        require(_exists(_tokenId), "URI query for nonexistent token");
        return bytes(baseURI).length > 0 ?
            string(abi.encodePacked(
                baseURI,
                _tokenId.toString()
            ))
            : "";
    }


    function _mint(address _to) internal {
        uint256 _tokenId;
        _tokenId = _tokenIdCounter.current();
        _tokenIdCounter.increment();
        crystalsMinted++;
        emit CooldownCrystalMint(_to, _tokenId);
        _safeMint(_to, _tokenId);
    }


    function _baseURI() internal view override returns (string memory) {
        return baseURI;
    }


    function burn(uint256 tokenId) external {
        require(msg.sender == ownerOf(tokenId), "You do not own this crystal");
        _burn(tokenId);
    }

    // ADMIN
    function setBaseURI(string memory _baseURItoSet) external onlyOwner {
        baseURI = _baseURItoSet;
    }
}


// File contracts/MinterControl.sol


pragma solidity 0.8.7;

abstract contract MinterControl is AccessControl {
    bytes32 public constant SHOGUN_OWNER_ROLE = keccak256("SHOGUN_OWNER_ROLE");
    bytes32 public constant SHOGUN_MINTER_ROLE = keccak256("SHOGUN_MINTER_ROLE");

    modifier onlyOwner() {
        require(hasRole(SHOGUN_OWNER_ROLE, _msgSender()), "MinterControl: not a SHOGUN_OWNER_ROLE");
        _;
    }

    modifier onlyMinter() {
        require(isMinter(_msgSender()), "MinterControl: not a SHOGUN_MINTER_ROLE");
        _;
    }

    constructor() {
        _setRoleAdmin(SHOGUN_OWNER_ROLE, SHOGUN_OWNER_ROLE);
        _setRoleAdmin(SHOGUN_MINTER_ROLE, SHOGUN_OWNER_ROLE);

        _setupRole(SHOGUN_OWNER_ROLE, _msgSender());
    }

    function grantMinter(address _minter) external {
        grantRole(SHOGUN_MINTER_ROLE, _minter);
    }

    function grantMinterMass(address[] memory minters) external {
      for(uint i = 0; i < minters.length; i++) {
          grantRole(SHOGUN_MINTER_ROLE, minters[i]);
      }
    }

    function removeMinter(address _minter) external {
      revokeRole(SHOGUN_MINTER_ROLE, _minter);
    }

    function isMinter(address _minter) public view returns (bool) {
        return hasRole(SHOGUN_MINTER_ROLE, _minter);
    }

    function grantOwner(address _owner) external {
        grantRole(SHOGUN_OWNER_ROLE, _owner);
    }

    function isOwner(address _owner) public view returns (bool) {
        return hasRole(SHOGUN_OWNER_ROLE, _owner);
    }
}


// File contracts/Shogun.sol


pragma solidity 0.8.7;





contract Shogun is MinterControl, ERC721Enumerable {
    using Strings for uint256;
    using Counters for Counters.Counter;

    uint256 private constant nftsNumber = 13422;
    uint256 private constant nftsWhitelistNumber = 10000;

    mapping(address => bool) internal wlMinted;

    mapping(uint256 => bool) internal frozenShogun;


    Counters.Counter private _tokenIdCounter;
    string public baseURI;

    event ShogunMint(address to, uint256 tokenId);

    constructor() ERC721("Shogun War", "Shogun") {
      _tokenIdCounter._value = 1;
    }

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

    function safeMint(address to) public onlyOwner {
        _mint(to);
    }

    function mintReserves(address to) public onlyOwner {
      for(uint i = 10000; i < 13423; i++) {
        _mintReserve(to, i);
      }
    }

    function mintReserve(address to, uint256 tokenId) public onlyOwner {
      require(tokenId > nftsWhitelistNumber, "Tokens number to mint must exceed number of public tokens");
      _mintReserve(to, tokenId);
    }

    function mint() external onlyMinter {
        require(wlMinted[msg.sender] == false, "You already used your whitelist mint pass");
        require(balanceOf(msg.sender) < 1, "You can only mint 1 NFT per whitelisted address");
        _mint(msg.sender);
        wlMinted[msg.sender] = true;
    }

    function tokenURI(uint256 _tokenId) public view override returns (string memory) {
        require(_exists(_tokenId), "Shogun: URI query for nonexistent token");
        return bytes(baseURI).length > 0 ?
            string(abi.encodePacked(
                baseURI,
                _tokenId.toString()
            ))
            : "";
    }

    function _mintReserve(address _to, uint256 _tokenId) internal {
        emit ShogunMint(_to, _tokenId);
        _safeMint(_to, _tokenId);
    }

    function _mint(address _to) internal {
        uint256 _tokenId;
        _tokenId = _tokenIdCounter.current();
        require(_tokenIdCounter.current() <= nftsWhitelistNumber, "Token number to mint exceeds number of whitelist tokens");
        _tokenIdCounter.increment();
        emit ShogunMint(_to, _tokenId);
        _safeMint(_to, _tokenId);
    }

    function freezeTransfer(uint256 _tokenId) external onlyOwner {
      frozenShogun[_tokenId] = true;
    }

    function unfreezeTransfer(uint256 _tokenId) external onlyOwner {
      frozenShogun[_tokenId] = false;
    }

    function _beforeTokenTransfer(
        address _from,
        address _to,
        uint256 _tokenId
    ) internal override {
        super._beforeTokenTransfer(_from, _to, _tokenId);
        require(frozenShogun[_tokenId] == false, "Shogun: Shogun is still busy, finish your assignment before transferring.");
    }

    function _baseURI() internal view override returns (string memory) {
        return baseURI;
    }

    // ADMIN


    function setBaseURI(string memory _baseURItoSet) external onlyOwner {
        baseURI = _baseURItoSet;
    }
}


// File @openzeppelin/contracts/access/[email protected]


// OpenZeppelin Contracts v4.4.1 (access/Ownable.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Internal function without access restriction.
     */
    function _transferOwnership(address newOwner) internal virtual {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}


// File contracts/TrainingGround.sol


pragma solidity 0.8.7;


contract TrainingGround is Ownable {

    // shogun training duration
    uint256 public constant trainingDuration = 30 days;

    // amount of shoguns training
    uint256 public shogunTraining;

    // shogun NFT
    Shogun public shogun;

    // training tracking
    mapping(uint256 => uint256) public timestampJoined;
    mapping(uint256 => uint256) public timestampFinished;

    // Shogun trained
    mapping(uint256 => bool) public shogunTrained;

    uint256[] public shogunsTrained;


    event JoinTraining(uint256 tokenId, uint256 timestampJoined, uint256 timestampFinished);
    event FinishTraining(uint256 tokenId);
    event ShogunSet(address shogun);

    modifier onlyShogunOwner(uint256 _tokenId) {
        require(shogun.ownerOf(_tokenId) == msg.sender, "Training: only owner can send to training");
        _;
    }

    modifier onlyUntrainedShogun(uint256 _tokenId) {
        require(shogunTrained[_tokenId] == false, "Training: Shogun already trained");
        _;
    }

    modifier atTraining(uint256 _tokenId, bool expectedAtTraining) {
        require(isAtTraining(_tokenId) == expectedAtTraining, "Training: wrong training attendance");
        _;
    }

    modifier updateTotalTraining(bool isJoining) {
        isJoining ? shogunTraining++ : shogunTraining--;
        _;
    }

    modifier isTrainingFinished(uint256 _tokenId) {
        require(block.timestamp > timestampFinished[_tokenId], "Training: Your shogun is not ready to leave training yet");
        _;
    }

    function totalTraining() public view returns (uint256) {
        return shogunTraining;
    }

    function trainingFinishedDate(uint256 _tokenId) public view returns (uint256) {
        return timestampFinished[_tokenId];
    }

    function isTrained(uint256 _tokenId) public view returns (bool) {
        return shogunTrained[_tokenId];
    }

    function isAtTraining(uint256 _tokenId) public view returns (bool) {
        return timestampJoined[_tokenId] > 0;
    }

    function getTrainedShoguns() public view returns (uint256[] memory) {
        return shogunsTrained;
    }

    function join(uint256 _tokenId)
        external
        onlyShogunOwner(_tokenId)
        atTraining(_tokenId, false)
        onlyUntrainedShogun(_tokenId)
        updateTotalTraining(true)
    {
        timestampJoined[_tokenId] = block.timestamp;
        timestampFinished[_tokenId] = block.timestamp + trainingDuration;
        shogun.freezeTransfer(_tokenId);
        emit JoinTraining(_tokenId, timestampJoined[_tokenId], timestampFinished[_tokenId]);
    }

    function drop(uint256 _tokenId)
        external
        onlyShogunOwner(_tokenId)
        atTraining(_tokenId, true)
        isTrainingFinished(_tokenId)
        updateTotalTraining(false)
    {
        shogun.unfreezeTransfer(_tokenId);
        shogunTrained[_tokenId] = true;
        timestampJoined[_tokenId] = 0;
        shogunsTrained.push(_tokenId);
        emit FinishTraining(_tokenId);
    }

    // ADMIN

    function setShogun(address _shogun) external onlyOwner {
        shogun = Shogun(_shogun);
        emit ShogunSet(_shogun);
    }

    function forceDrop(uint256 _tokenId)
        external
        onlyOwner
        updateTotalTraining(false)
    {
        shogun.unfreezeTransfer(_tokenId);
        shogunTrained[_tokenId] = true;
        timestampJoined[_tokenId] = 0;
        shogunsTrained.push(_tokenId);
        emit FinishTraining(_tokenId);
    }
}


// File contracts/Land.sol


pragma solidity 0.8.7;







contract Land is MinterControl, ERC721Enumerable {
    using Strings for uint256;
    using Counters for Counters.Counter;

    Counters.Counter private _tokenIdCounter;
    string public baseURI;
    uint256 public landMaxLevel;

    mapping(uint256 => bool) public landIssued;
    mapping(uint256 => uint256) public landLevels;
    mapping(uint256 => bool) internal landFrozen;

    TrainingGround public trainingGround;
    Shogun public shogun;

    event LandMint(address indexed to, uint256 tokenId);
    event TrainingGroundSet(address trainingGround);
    event ShogunSet(address shogun);

    event LandUpgrade(uint256 indexed tokenId, uint256 availableLevel);
    event LandMaxLevel(uint256 landMaxLevel);


    constructor() ERC721("Shogun War Land", "ShogunWarLand") {
      _tokenIdCounter._value = 1;
    }


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

    function mint(uint256[] memory shogunIds) external {
        require(shogunIds.length > 0, "Must provide at least one Shogun Id");
        require(shogun.balanceOf(msg.sender) > 0, "Wallet address does not hold a Shogun");

        for(uint256 i = 0; i < shogunIds.length; i++) {
          require(shogun.ownerOf(shogunIds[i]) == msg.sender, "You do not own one of the shoguns");
          require(trainingGround.isTrained(shogunIds[i]), "Shogun not trained, cannot claim land");
          require(!landIssued[shogunIds[i]], "This shogun has already claimed their land");
          landIssued[shogunIds[i]] = true;
          _mint(msg.sender);
        }
    }

    function safeMint(address to) public onlyOwner {
        _mint(to);
    }

    function _mint(address _to) internal {
        uint256 _tokenId;
        _tokenId = _tokenIdCounter.current();
        _tokenIdCounter.increment();
        landLevels[_tokenId] = 1;
        _safeMint(_to, _tokenId);
        emit LandMint(_to, _tokenId);
    }


    function freezeTransfer(uint256 _tokenId) external onlyOwner {
      landFrozen[_tokenId] = true;
    }

    function unfreezeTransfer(uint256 _tokenId) external onlyOwner {
      landFrozen[_tokenId] = false;
    }

    function setLandLevel(uint256 _tokenId, uint256 level) external onlyOwner {
      landLevels[_tokenId] = level;
    }

    function landLevel(uint256 _tokenId) public view returns (uint256) {
        return landLevels[_tokenId];
    }

    function isLandIssued(uint256 _tokenId) public view returns (bool) {
        return landIssued[_tokenId];
    }

    function isLandFrozen(uint256 _tokenId) public view returns (bool) {
        return landFrozen[_tokenId];
    }

    function _beforeTokenTransfer(
        address _from,
        address _to,
        uint256 _tokenId
    ) internal override {
        super._beforeTokenTransfer(_from, _to, _tokenId);
        require(landFrozen[_tokenId] == false, "Land is still in use");
    }

    function tokenURI(uint256 _tokenId) public view override returns (string memory) { // set up api URL to return golden ticket metadata
        require(_exists(_tokenId), "URI query for nonexistent token");
        return bytes(baseURI).length > 0 ?
            string(abi.encodePacked(
                baseURI,
                _tokenId.toString()
            ))
            : "";
    }

    function _baseURI() internal view override returns (string memory) {
        return baseURI;
    }

    // ADMIN

    function setTrainingGround(address _trainingGround) external onlyOwner {
        trainingGround = TrainingGround(_trainingGround);
        emit TrainingGroundSet(_trainingGround);
    }

    function setShogun(address _shogun) external onlyOwner {
        shogun = Shogun(_shogun);
        emit ShogunSet(_shogun);
    }

    function setBaseURI(string memory _baseURItoSet) external onlyOwner {
        baseURI = _baseURItoSet;
    }

    function setMaxLevel(uint256 _landMaxLevel) external onlyOwner {
        landMaxLevel = _landMaxLevel;
        emit LandMaxLevel(_landMaxLevel);
    }
}


// File contracts/CooldownCrystals/CooldownManager.sol


pragma solidity 0.8.7;






contract CooldownManager is IERC721Receiver, Control {

    function onERC721Received(
        address operator, 
        address from, 
        uint256 tokenId, 
        bytes calldata data) external override returns (bytes4) {
        return IERC721Receiver.onERC721Received.selector;
    }

    // contract addresses
    address public paymentToken;
    CooldownCrystals public cooldownCrystals;
    Shogun public shogun;
    Land public land;

    // config settings
    uint256 private constant maxTokensPerTransaction = 100;
    uint256 public pricePerCrystal;

    // cooldown tracking
    mapping(uint256 => uint256) public shogunCooldowns;
    mapping(uint256 => uint256) public landCooldowns;

    // events
    event ShogunCooldownUpdate(uint256 tokenId, uint256 cooldown);
    event LandCooldownUpdate(uint256 tokenId, uint256 cooldown);

    // purchasing function for crystals
    function buyCrystals(uint tokensNumber) external {
        require(tokensNumber > 0, "Wrong amount");
        require(tokensNumber <= maxTokensPerTransaction, "Max tokens per transaction number exceeded");
        IERC20(paymentToken).transferFrom(_msgSender(), 0x5d75D6A019dEeAB32Cc2Af685900F4a96aF22852, pricePerCrystal * tokensNumber);
        for(uint i = 0; i < tokensNumber; i++) {
            // only owner function
          cooldownCrystals.safeMint(msg.sender);
        }
    }

    // use crystal functions
    function useCrystalShogun(uint256 crystalId, uint256 shogunId) external {
        require(shogun.ownerOf(shogunId) == msg.sender, "You do not own this Shogun");
        require(cooldownCrystals.ownerOf(crystalId) == msg.sender, "You do not own this Crystal");
        require(block.timestamp < shogunCooldowns[shogunId], "There is no active cooldown on this Shogun");
        cooldownCrystals.safeTransferFrom(_msgSender(), address(this), crystalId);
        cooldownCrystals.burn(crystalId);
        shogunCooldowns[shogunId] = 0;
        emit ShogunCooldownUpdate(shogunId, 0);
    }

    function useCrystalLand(uint256 crystalId, uint256 landId) external {
        require(land.ownerOf(landId) == msg.sender, "You do not own this Land");
        require(cooldownCrystals.ownerOf(crystalId) == msg.sender, "You do not own this Crystal");
        require(block.timestamp < landCooldowns[landId], "There is no active cooldown on this Land");
        cooldownCrystals.safeTransferFrom(_msgSender(), address(this), crystalId);
        cooldownCrystals.burn(crystalId);
        landCooldowns[landId] = 0;
        emit LandCooldownUpdate(landId, 0);
    }

    // view functions
    function isLandInCooldown(uint256 landId) public view returns (bool) {
      return block.timestamp < landCooldowns[landId];
    }

    function isShogunInCooldown(uint256 shogunId) public view returns (bool) {
      return block.timestamp < shogunCooldowns[shogunId];
    }


    // setter for activation cooldowns
    function setShogunCooldown(uint256 tokenId, uint256 cooldownAmount) external onlyOwner {
        shogunCooldowns[tokenId] = cooldownAmount;
        emit ShogunCooldownUpdate(tokenId, cooldownAmount);
    }

    function setLandCooldown(uint256 tokenId, uint256 cooldownAmount) external onlyOwner {
        landCooldowns[tokenId] = cooldownAmount;
        emit LandCooldownUpdate(tokenId, cooldownAmount);
    }

    // setter for configs
    function setPricePerCrystal(uint256 _pricePerCrystal) external onlyOwner {
        pricePerCrystal = _pricePerCrystal;
    }

    function setCooldownCrystals(address _cooldownCrystals) external onlyOwner {
        cooldownCrystals = CooldownCrystals(_cooldownCrystals);
    }

    function setShogun(address _shogun) external onlyOwner {
        shogun = Shogun(_shogun);
    }

    function setLand(address _land) external onlyOwner {
        land = Land(_land);
    }

    function setPaymentToken(address _paymentToken) external onlyOwner {
        paymentToken = _paymentToken;
    }
}


// File contracts/Talisman/Talisman.sol


pragma solidity 0.8.7;






contract Talisman is Control, ERC721Enumerable {
    using Strings for uint256;
    using Counters for Counters.Counter;

    Counters.Counter private _tokenIdCounter;
    string public baseURI;
    uint256 public talismanMinted;

    event TalismanMint(address to, uint256 tokenId, string talismanType);

    mapping(uint256 => string) public talismanTypes;
    mapping(string => uint256) public talismanTypeStats;
    mapping(string => uint256) public talismanTypeDuration;


    constructor() ERC721("Shogun War Talisman", "Talisman") {
      _tokenIdCounter._value = 1;
    }

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

    function safeMint(address to, string memory talismanType) public onlyOwner {
        _mint(to, talismanType);
    }

    function tokenURI(uint256 _tokenId) public view override returns (string memory) { // set up api URL to return golden ticket metadata
        require(_exists(_tokenId), "URI query for nonexistent token");
        return bytes(baseURI).length > 0 ?
            string(abi.encodePacked(
                baseURI,
                _tokenId.toString()
            ))
            : "";
    }


    function _mint(address _to, string memory talismanType) internal {
        uint256 _tokenId;
        _tokenId = _tokenIdCounter.current();
        _tokenIdCounter.increment();
        talismanMinted++;
        talismanTypes[_tokenId] = talismanType;
        emit TalismanMint(_to, _tokenId, talismanType);
        _safeMint(_to, _tokenId);
    }


    function _baseURI() internal view override returns (string memory) {
        return baseURI;
    }

    function burn(uint256 tokenId) external {
        require(msg.sender == ownerOf(tokenId), "You do not own this talisman");
        talismanTypes[tokenId] = "";
        _burn(tokenId);
    }

    // ADMIN
    function setBaseURI(string memory _baseURItoSet) external onlyOwner {
        baseURI = _baseURItoSet;
    }

    function setTalismanTypeStats(string memory talismanType, uint256 talismanStat) external onlyOwner {
        talismanTypeStats[talismanType] = talismanStat;
    }

    function setTalismanTypeDuration(string memory talismanType, uint256 talismanDuration) external onlyOwner {
        talismanTypeDuration[talismanType] = talismanDuration;
    }
}


// File contracts/Talisman/TalismanManager.sol


pragma solidity 0.8.7;






contract TalismanManager is Control {

    // contract addresses
    address public paymentToken;
    string constant public requiredClass = "Shinto Priest";
    Talisman public talisman;
    Shogun public shogun;
    Classes public classes;
    CooldownManager public cooldownManager;

    // configs

    // types
    // 0health
    // 1attack
    // 2defense
    string[] public typeOptions;
    mapping(uint256 => uint256) public costPerType;
    mapping(uint256 => uint256) public cooldownPerType;

    event TalismanCrafted(uint256 shogunId, string talismanType);

    function compareStrings(string memory a, string memory b) public pure returns (bool) {
      return (keccak256(abi.encodePacked((a))) == keccak256(abi.encodePacked((b))));
    }

    function craftTalisman(uint256[] memory shogunIds, uint256 talismanType) external {
        // check talisman type
        require(talismanType < typeOptions.length, "Invalid type ID");

        // take payment
        IERC20(paymentToken).transferFrom(_msgSender(), 0x5d75D6A019dEeAB32Cc2Af685900F4a96aF22852, costPerType[talismanType] * shogunIds.length);

        for(uint256 i = 0; i < shogunIds.length; i++) {
            // check owner
            require(shogun.ownerOf(shogunIds[i]) == msg.sender, "You do not own one of the Shoguns");
            // check cooldown
            require(!cooldownManager.isShogunInCooldown(shogunIds[i]), "Shogun still has time left before cooldown is over");
            // check class
            require(compareStrings(classes.checkShogunClass(shogunIds[i]), requiredClass), "Only Priests can craft talisman");

            // set cooldown
            // onlyOwner call
            cooldownManager.setShogunCooldown(shogunIds[i], block.timestamp + cooldownPerType[talismanType]);
            // mint talisman to user
            // onlyOwner call
            talisman.safeMint(msg.sender, typeOptions[talismanType]);
            // emit event
            emit TalismanCrafted(shogunIds[i], typeOptions[talismanType]);
        }
    }

    // setter for configs
    function setTypeOptions(string[] memory _typeOptions) external onlyOwner {
        typeOptions = _typeOptions;
    }

    function setCooldownPerType(uint256 typeId, uint256 _cooldownDuration) external onlyOwner {
        cooldownPerType[typeId] = _cooldownDuration;
    }

    function setCostPerType(uint256 typeId, uint256 _costType) external onlyOwner {
        costPerType[typeId] = _costType;
    }

    function setPaymentToken(address _paymentToken) external onlyOwner {
        paymentToken = _paymentToken;
    }

    function setShogun(address _shogun) external onlyOwner {
        shogun = Shogun(_shogun);
    }

    function setTalisman(address _talisman) external onlyOwner {
        talisman = Talisman(_talisman);
    }

    function setClasses(address _classes) external onlyOwner {
        classes = Classes(_classes);
    }

    function setCooldownManager(address _cooldownManager) external onlyOwner {
        cooldownManager = CooldownManager(_cooldownManager);
    }
}

Contract ABI

[{"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":false,"internalType":"uint256","name":"shogunId","type":"uint256"},{"indexed":false,"internalType":"string","name":"talismanType","type":"string"}],"name":"TalismanCrafted","type":"event"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"SHOGUN_OWNER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"classes","outputs":[{"internalType":"contract Classes","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"a","type":"string"},{"internalType":"string","name":"b","type":"string"}],"name":"compareStrings","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"cooldownManager","outputs":[{"internalType":"contract CooldownManager","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"cooldownPerType","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"costPerType","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"shogunIds","type":"uint256[]"},{"internalType":"uint256","name":"talismanType","type":"uint256"}],"name":"craftTalisman","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"}],"name":"grantOwner","outputs":[],"stateMutability":"nonpayable","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"}],"name":"isOwner","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"paymentToken","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":[],"name":"requiredClass","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_classes","type":"address"}],"name":"setClasses","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_cooldownManager","type":"address"}],"name":"setCooldownManager","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"typeId","type":"uint256"},{"internalType":"uint256","name":"_cooldownDuration","type":"uint256"}],"name":"setCooldownPerType","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"typeId","type":"uint256"},{"internalType":"uint256","name":"_costType","type":"uint256"}],"name":"setCostPerType","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_paymentToken","type":"address"}],"name":"setPaymentToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_shogun","type":"address"}],"name":"setShogun","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_talisman","type":"address"}],"name":"setTalisman","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string[]","name":"_typeOptions","type":"string[]"}],"name":"setTypeOptions","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"shogun","outputs":[{"internalType":"contract Shogun","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":"talisman","outputs":[{"internalType":"contract Talisman","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"typeOptions","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"}]

60806040523480156200001157600080fd5b506200002d60008051602062001bfc833981519152806200004e565b6200004860008051602062001bfc8339815191523362000099565b62000149565b600082815260208190526040808220600101805490849055905190918391839186917fbd79b86ffe0ab8e8776151514217cd7cacd52c909f66475c3af44e129f0b00ff9190a4505050565b620000a58282620000a9565b5050565b6000828152602081815260408083206001600160a01b038516845290915290205460ff16620000a5576000828152602081815260408083206001600160a01b03851684529091529020805460ff19166001179055620001053390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b611aa380620001596000396000f3fe608060405234801561001057600080fd5b506004361061018f5760003560e01c80636a326ab1116100e4578063ba8df92111610092578063ba8df9211461039a578063bed34bba146103ad578063c45011ac146103c0578063cc1e1517146103d3578063d2d2fd04146103e6578063d547741f14610406578063dc97805914610419578063f4574d551461042c57600080fd5b80636a326ab1146102fa57806375785ca61461030d5780637a4fe75a146103465780638fb33eb31461035957806391d148541461036c578063a217fddf1461037f578063b83d2b6a1461038757600080fd5b806336568abe1161014157806336568abe1461027357806349ab216c14610286578063508a57571461029b578063511a5bff146102ae57806353476a47146102c15780635a44f764146102d457806365c9b971146102e757600080fd5b806301ffc9a7146101945780631b31cbb1146101bc578063248a9ca3146101ea5780632f2ff15d1461020d5780632f54bf6e146102225780633013ce291461023557806331e7785314610260575b600080fd5b6101a76101a236600461159a565b61043f565b60405190151581526020015b60405180910390f35b6101dc6101ca366004611551565b60086020526000908152604090205481565b6040519081526020016101b3565b6101dc6101f8366004611551565b60009081526020819052604090206001015490565b61022061021b36600461156a565b610476565b005b6101a76102303660046113a1565b6104a1565b600154610248906001600160a01b031681565b6040516001600160a01b0390911681526020016101b3565b600454610248906001600160a01b031681565b61022061028136600461156a565b6104bb565b6101dc600080516020611a4e83398151915281565b600554610248906001600160a01b031681565b6102206102bc3660046113db565b61053e565b6102206102cf36600461169d565b610585565b6102206102e23660046113a1565b6105cb565b600354610248906001600160a01b031681565b6102206103083660046113a1565b610621565b6103396040518060400160405280600d81526020016c14da1a5b9d1bc8141c9a595cdd609a1b81525081565b6040516101b39190611816565b600254610248906001600160a01b031681565b610220610367366004611492565b610677565b6101a761037a36600461156a565b610c5c565b6101dc600081565b6102206103953660046113a1565b610c85565b6102206103a836600461169d565b610cdb565b6101a76103bb36600461163a565b610d21565b6102206103ce3660046113a1565b610d7a565b6103396103e1366004611551565b610dd0565b6101dc6103f4366004611551565b60076020526000908152604090205481565b61022061041436600461156a565b610e7c565b6102206104273660046113a1565b610ea2565b61022061043a3660046113a1565b610ebd565b60006001600160e01b03198216637965db0b60e01b148061047057506301ffc9a760e01b6001600160e01b03198316145b92915050565b6000828152602081905260409020600101546104928133610f13565b61049c8383610f77565b505050565b6000610470600080516020611a4e83398151915283610c5c565b6001600160a01b03811633146105305760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b60648201526084015b60405180910390fd5b61053a8282610ffb565b5050565b610556600080516020611a4e83398151915233610c5c565b6105725760405162461bcd60e51b815260040161052790611849565b805161053a906006906020840190611202565b61059d600080516020611a4e83398151915233610c5c565b6105b95760405162461bcd60e51b815260040161052790611849565b60009182526008602052604090912055565b6105e3600080516020611a4e83398151915233610c5c565b6105ff5760405162461bcd60e51b815260040161052790611849565b600280546001600160a01b0319166001600160a01b0392909216919091179055565b610639600080516020611a4e83398151915233610c5c565b6106555760405162461bcd60e51b815260040161052790611849565b600180546001600160a01b0319166001600160a01b0392909216919091179055565b60065481106106ba5760405162461bcd60e51b815260206004820152600f60248201526e125b9d985b1a59081d1e5c19481251608a1b6044820152606401610527565b6001546001600160a01b03166323b872dd338451600085815260076020526040902054735d75d6a019deeab32cc2af685900f4a96af22852916106fc9161193a565b6040516001600160e01b031960e086901b1681526001600160a01b0393841660048201529290911660248301526044820152606401602060405180830381600087803b15801561074b57600080fd5b505af115801561075f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610783919061152f565b5060005b825181101561049c57600354835133916001600160a01b031690636352211e908690859081106107b9576107b9611a0c565b60200260200101516040518263ffffffff1660e01b81526004016107df91815260200190565b60206040518083038186803b1580156107f757600080fd5b505afa15801561080b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061082f91906113be565b6001600160a01b03161461088f5760405162461bcd60e51b815260206004820152602160248201527f596f7520646f206e6f74206f776e206f6e65206f66207468652053686f67756e6044820152607360f81b6064820152608401610527565b60055483516001600160a01b0390911690638f3a8281908590849081106108b8576108b8611a0c565b60200260200101516040518263ffffffff1660e01b81526004016108de91815260200190565b60206040518083038186803b1580156108f657600080fd5b505afa15801561090a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061092e919061152f565b156109965760405162461bcd60e51b815260206004820152603260248201527f53686f67756e207374696c6c206861732074696d65206c656674206265666f72604482015271329031b7b7b63237bbb71034b99037bb32b960711b6064820152608401610527565b6004548351610a66916001600160a01b0316906305450e06908690859081106109c1576109c1611a0c565b60200260200101516040518263ffffffff1660e01b81526004016109e791815260200190565b60006040518083038186803b1580156109ff57600080fd5b505afa158015610a13573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610a3b91908101906115c4565b6040518060400160405280600d81526020016c14da1a5b9d1bc8141c9a595cdd609a1b815250610d21565b610ab25760405162461bcd60e51b815260206004820152601f60248201527f4f6e6c7920507269657374732063616e2063726166742074616c69736d616e006044820152606401610527565b60055483516001600160a01b039091169063e730e18590859084908110610adb57610adb611a0c565b6020026020010151600860008681526020019081526020016000205442610b029190611922565b6040516001600160e01b031960e085901b16815260048101929092526024820152604401600060405180830381600087803b158015610b4057600080fd5b505af1158015610b54573d6000803e3d6000fd5b5050600254600680546001600160a01b03909216935063d204c45e9250339186908110610b8357610b83611a0c565b906000526020600020016040518363ffffffff1660e01b8152600401610baa9291906117ea565b600060405180830381600087803b158015610bc457600080fd5b505af1158015610bd8573d6000803e3d6000fd5b505050507f5725600d84b9407c7c1b305eae7c7f0b29e6a2fc1d5b59646b4cd58ced6d6875838281518110610c0f57610c0f611a0c565b602002602001015160068481548110610c2a57610c2a611a0c565b90600052602060002001604051610c4292919061188f565b60405180910390a180610c54816119db565b915050610787565b6000918252602082815260408084206001600160a01b0393909316845291905290205460ff1690565b610c9d600080516020611a4e83398151915233610c5c565b610cb95760405162461bcd60e51b815260040161052790611849565b600480546001600160a01b0319166001600160a01b0392909216919091179055565b610cf3600080516020611a4e83398151915233610c5c565b610d0f5760405162461bcd60e51b815260040161052790611849565b60009182526007602052604090912055565b600081604051602001610d34919061175f565b6040516020818303038152906040528051906020012083604051602001610d5b919061175f565b6040516020818303038152906040528051906020012014905092915050565b610d92600080516020611a4e83398151915233610c5c565b610dae5760405162461bcd60e51b815260040161052790611849565b600580546001600160a01b0319166001600160a01b0392909216919091179055565b60068181548110610de057600080fd5b906000526020600020016000915090508054610dfb906119a0565b80601f0160208091040260200160405190810160405280929190818152602001828054610e27906119a0565b8015610e745780601f10610e4957610100808354040283529160200191610e74565b820191906000526020600020905b815481529060010190602001808311610e5757829003601f168201915b505050505081565b600082815260208190526040902060010154610e988133610f13565b61049c8383610ffb565b610eba600080516020611a4e83398151915282610476565b50565b610ed5600080516020611a4e83398151915233610c5c565b610ef15760405162461bcd60e51b815260040161052790611849565b600380546001600160a01b0319166001600160a01b0392909216919091179055565b610f1d8282610c5c565b61053a57610f35816001600160a01b03166014611060565b610f40836020611060565b604051602001610f5192919061177b565b60408051601f198184030181529082905262461bcd60e51b825261052791600401611816565b610f818282610c5c565b61053a576000828152602081815260408083206001600160a01b03851684529091529020805460ff19166001179055610fb73390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6110058282610c5c565b1561053a576000828152602081815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b6060600061106f83600261193a565b61107a906002611922565b6001600160401b0381111561109157611091611a22565b6040519080825280601f01601f1916602001820160405280156110bb576020820181803683370190505b509050600360fc1b816000815181106110d6576110d6611a0c565b60200101906001600160f81b031916908160001a905350600f60fb1b8160018151811061110557611105611a0c565b60200101906001600160f81b031916908160001a905350600061112984600261193a565b611134906001611922565b90505b60018111156111ac576f181899199a1a9b1b9c1cb0b131b232b360811b85600f166010811061116857611168611a0c565b1a60f81b82828151811061117e5761117e611a0c565b60200101906001600160f81b031916908160001a90535060049490941c936111a581611989565b9050611137565b5083156111fb5760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610527565b9392505050565b82805482825590600052602060002090810192821561124f579160200282015b8281111561124f578251805161123f91849160209091019061125f565b5091602001919060010190611222565b5061125b9291506112df565b5090565b82805461126b906119a0565b90600052602060002090601f01602090048101928261128d57600085556112d3565b82601f106112a657805160ff19168380011785556112d3565b828001600101855582156112d3579182015b828111156112d35782518255916020019190600101906112b8565b5061125b9291506112fc565b8082111561125b5760006112f38282611311565b506001016112df565b5b8082111561125b57600081556001016112fd565b50805461131d906119a0565b6000825580601f1061132d575050565b601f016020900490600052602060002090810190610eba91906112fc565b600082601f83011261135c57600080fd5b813561136f61136a826118fb565b6118a8565b81815284602083860101111561138457600080fd5b816020850160208301376000918101602001919091529392505050565b6000602082840312156113b357600080fd5b81356111fb81611a38565b6000602082840312156113d057600080fd5b81516111fb81611a38565b600060208083850312156113ee57600080fd5b82356001600160401b038082111561140557600080fd5b818501915085601f83011261141957600080fd5b813561142761136a826118d8565b80828252858201915085850189878560051b880101111561144757600080fd5b6000805b8581101561148257823587811115611461578283fd5b61146f8d8b838c010161134b565b865250938801939188019160010161144b565b50919a9950505050505050505050565b600080604083850312156114a557600080fd5b82356001600160401b038111156114bb57600080fd5b8301601f810185136114cc57600080fd5b803560206114dc61136a836118d8565b80838252828201915082850189848660051b88010111156114fc57600080fd5b600095505b8486101561151f578035835260019590950194918301918301611501565b5098969091013596505050505050565b60006020828403121561154157600080fd5b815180151581146111fb57600080fd5b60006020828403121561156357600080fd5b5035919050565b6000806040838503121561157d57600080fd5b82359150602083013561158f81611a38565b809150509250929050565b6000602082840312156115ac57600080fd5b81356001600160e01b0319811681146111fb57600080fd5b6000602082840312156115d657600080fd5b81516001600160401b038111156115ec57600080fd5b8201601f810184136115fd57600080fd5b805161160b61136a826118fb565b81815285602083850101111561162057600080fd5b611631826020830160208601611959565b95945050505050565b6000806040838503121561164d57600080fd5b82356001600160401b038082111561166457600080fd5b6116708683870161134b565b9350602085013591508082111561168657600080fd5b506116938582860161134b565b9150509250929050565b600080604083850312156116b057600080fd5b50508035926020909101359150565b8054600090600181811c90808316806116d957607f831692505b60208084108214156116fb57634e487b7160e01b600052602260045260246000fd5b83885260208801828015611716576001811461172757611752565b60ff19871682528282019750611752565b60008981526020902060005b8781101561174c57815484820152908601908401611733565b83019850505b5050505050505092915050565b60008251611771818460208701611959565b9190910192915050565b76020b1b1b2b9b9a1b7b73a3937b61d1030b1b1b7bab73a1604d1b8152600083516117ad816017850160208801611959565b7001034b99036b4b9b9b4b733903937b6329607d1b60179184019182015283516117de816028840160208801611959565b01602801949350505050565b6001600160a01b038316815260406020820181905260009061180e908301846116bf565b949350505050565b6020815260008251806020840152611835816040850160208701611959565b601f01601f19169190910160400192915050565b60208082526026908201527f4d696e746572436f6e74726f6c3a206e6f7420612053484f47554e5f4f574e45604082015265525f524f4c4560d01b606082015260800190565b82815260406020820152600061180e60408301846116bf565b604051601f8201601f191681016001600160401b03811182821017156118d0576118d0611a22565b604052919050565b60006001600160401b038211156118f1576118f1611a22565b5060051b60200190565b60006001600160401b0382111561191457611914611a22565b50601f01601f191660200190565b60008219821115611935576119356119f6565b500190565b6000816000190483118215151615611954576119546119f6565b500290565b60005b8381101561197457818101518382015260200161195c565b83811115611983576000848401525b50505050565b600081611998576119986119f6565b506000190190565b600181811c908216806119b457607f821691505b602082108114156119d557634e487b7160e01b600052602260045260246000fd5b50919050565b60006000198214156119ef576119ef6119f6565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b0381168114610eba57600080fdfef786c657c1afc7b60c0316a9881b42c6c8b080b437e91b362ae43d19e14911b5a2646970667358221220f701114e7da68fd4ea0eeb2e708381adce7d7ed769a28b323b160169a1a6a6e564736f6c63430008070033f786c657c1afc7b60c0316a9881b42c6c8b080b437e91b362ae43d19e14911b5

Deployed Bytecode

0x608060405234801561001057600080fd5b506004361061018f5760003560e01c80636a326ab1116100e4578063ba8df92111610092578063ba8df9211461039a578063bed34bba146103ad578063c45011ac146103c0578063cc1e1517146103d3578063d2d2fd04146103e6578063d547741f14610406578063dc97805914610419578063f4574d551461042c57600080fd5b80636a326ab1146102fa57806375785ca61461030d5780637a4fe75a146103465780638fb33eb31461035957806391d148541461036c578063a217fddf1461037f578063b83d2b6a1461038757600080fd5b806336568abe1161014157806336568abe1461027357806349ab216c14610286578063508a57571461029b578063511a5bff146102ae57806353476a47146102c15780635a44f764146102d457806365c9b971146102e757600080fd5b806301ffc9a7146101945780631b31cbb1146101bc578063248a9ca3146101ea5780632f2ff15d1461020d5780632f54bf6e146102225780633013ce291461023557806331e7785314610260575b600080fd5b6101a76101a236600461159a565b61043f565b60405190151581526020015b60405180910390f35b6101dc6101ca366004611551565b60086020526000908152604090205481565b6040519081526020016101b3565b6101dc6101f8366004611551565b60009081526020819052604090206001015490565b61022061021b36600461156a565b610476565b005b6101a76102303660046113a1565b6104a1565b600154610248906001600160a01b031681565b6040516001600160a01b0390911681526020016101b3565b600454610248906001600160a01b031681565b61022061028136600461156a565b6104bb565b6101dc600080516020611a4e83398151915281565b600554610248906001600160a01b031681565b6102206102bc3660046113db565b61053e565b6102206102cf36600461169d565b610585565b6102206102e23660046113a1565b6105cb565b600354610248906001600160a01b031681565b6102206103083660046113a1565b610621565b6103396040518060400160405280600d81526020016c14da1a5b9d1bc8141c9a595cdd609a1b81525081565b6040516101b39190611816565b600254610248906001600160a01b031681565b610220610367366004611492565b610677565b6101a761037a36600461156a565b610c5c565b6101dc600081565b6102206103953660046113a1565b610c85565b6102206103a836600461169d565b610cdb565b6101a76103bb36600461163a565b610d21565b6102206103ce3660046113a1565b610d7a565b6103396103e1366004611551565b610dd0565b6101dc6103f4366004611551565b60076020526000908152604090205481565b61022061041436600461156a565b610e7c565b6102206104273660046113a1565b610ea2565b61022061043a3660046113a1565b610ebd565b60006001600160e01b03198216637965db0b60e01b148061047057506301ffc9a760e01b6001600160e01b03198316145b92915050565b6000828152602081905260409020600101546104928133610f13565b61049c8383610f77565b505050565b6000610470600080516020611a4e83398151915283610c5c565b6001600160a01b03811633146105305760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b60648201526084015b60405180910390fd5b61053a8282610ffb565b5050565b610556600080516020611a4e83398151915233610c5c565b6105725760405162461bcd60e51b815260040161052790611849565b805161053a906006906020840190611202565b61059d600080516020611a4e83398151915233610c5c565b6105b95760405162461bcd60e51b815260040161052790611849565b60009182526008602052604090912055565b6105e3600080516020611a4e83398151915233610c5c565b6105ff5760405162461bcd60e51b815260040161052790611849565b600280546001600160a01b0319166001600160a01b0392909216919091179055565b610639600080516020611a4e83398151915233610c5c565b6106555760405162461bcd60e51b815260040161052790611849565b600180546001600160a01b0319166001600160a01b0392909216919091179055565b60065481106106ba5760405162461bcd60e51b815260206004820152600f60248201526e125b9d985b1a59081d1e5c19481251608a1b6044820152606401610527565b6001546001600160a01b03166323b872dd338451600085815260076020526040902054735d75d6a019deeab32cc2af685900f4a96af22852916106fc9161193a565b6040516001600160e01b031960e086901b1681526001600160a01b0393841660048201529290911660248301526044820152606401602060405180830381600087803b15801561074b57600080fd5b505af115801561075f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610783919061152f565b5060005b825181101561049c57600354835133916001600160a01b031690636352211e908690859081106107b9576107b9611a0c565b60200260200101516040518263ffffffff1660e01b81526004016107df91815260200190565b60206040518083038186803b1580156107f757600080fd5b505afa15801561080b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061082f91906113be565b6001600160a01b03161461088f5760405162461bcd60e51b815260206004820152602160248201527f596f7520646f206e6f74206f776e206f6e65206f66207468652053686f67756e6044820152607360f81b6064820152608401610527565b60055483516001600160a01b0390911690638f3a8281908590849081106108b8576108b8611a0c565b60200260200101516040518263ffffffff1660e01b81526004016108de91815260200190565b60206040518083038186803b1580156108f657600080fd5b505afa15801561090a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061092e919061152f565b156109965760405162461bcd60e51b815260206004820152603260248201527f53686f67756e207374696c6c206861732074696d65206c656674206265666f72604482015271329031b7b7b63237bbb71034b99037bb32b960711b6064820152608401610527565b6004548351610a66916001600160a01b0316906305450e06908690859081106109c1576109c1611a0c565b60200260200101516040518263ffffffff1660e01b81526004016109e791815260200190565b60006040518083038186803b1580156109ff57600080fd5b505afa158015610a13573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610a3b91908101906115c4565b6040518060400160405280600d81526020016c14da1a5b9d1bc8141c9a595cdd609a1b815250610d21565b610ab25760405162461bcd60e51b815260206004820152601f60248201527f4f6e6c7920507269657374732063616e2063726166742074616c69736d616e006044820152606401610527565b60055483516001600160a01b039091169063e730e18590859084908110610adb57610adb611a0c565b6020026020010151600860008681526020019081526020016000205442610b029190611922565b6040516001600160e01b031960e085901b16815260048101929092526024820152604401600060405180830381600087803b158015610b4057600080fd5b505af1158015610b54573d6000803e3d6000fd5b5050600254600680546001600160a01b03909216935063d204c45e9250339186908110610b8357610b83611a0c565b906000526020600020016040518363ffffffff1660e01b8152600401610baa9291906117ea565b600060405180830381600087803b158015610bc457600080fd5b505af1158015610bd8573d6000803e3d6000fd5b505050507f5725600d84b9407c7c1b305eae7c7f0b29e6a2fc1d5b59646b4cd58ced6d6875838281518110610c0f57610c0f611a0c565b602002602001015160068481548110610c2a57610c2a611a0c565b90600052602060002001604051610c4292919061188f565b60405180910390a180610c54816119db565b915050610787565b6000918252602082815260408084206001600160a01b0393909316845291905290205460ff1690565b610c9d600080516020611a4e83398151915233610c5c565b610cb95760405162461bcd60e51b815260040161052790611849565b600480546001600160a01b0319166001600160a01b0392909216919091179055565b610cf3600080516020611a4e83398151915233610c5c565b610d0f5760405162461bcd60e51b815260040161052790611849565b60009182526007602052604090912055565b600081604051602001610d34919061175f565b6040516020818303038152906040528051906020012083604051602001610d5b919061175f565b6040516020818303038152906040528051906020012014905092915050565b610d92600080516020611a4e83398151915233610c5c565b610dae5760405162461bcd60e51b815260040161052790611849565b600580546001600160a01b0319166001600160a01b0392909216919091179055565b60068181548110610de057600080fd5b906000526020600020016000915090508054610dfb906119a0565b80601f0160208091040260200160405190810160405280929190818152602001828054610e27906119a0565b8015610e745780601f10610e4957610100808354040283529160200191610e74565b820191906000526020600020905b815481529060010190602001808311610e5757829003601f168201915b505050505081565b600082815260208190526040902060010154610e988133610f13565b61049c8383610ffb565b610eba600080516020611a4e83398151915282610476565b50565b610ed5600080516020611a4e83398151915233610c5c565b610ef15760405162461bcd60e51b815260040161052790611849565b600380546001600160a01b0319166001600160a01b0392909216919091179055565b610f1d8282610c5c565b61053a57610f35816001600160a01b03166014611060565b610f40836020611060565b604051602001610f5192919061177b565b60408051601f198184030181529082905262461bcd60e51b825261052791600401611816565b610f818282610c5c565b61053a576000828152602081815260408083206001600160a01b03851684529091529020805460ff19166001179055610fb73390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6110058282610c5c565b1561053a576000828152602081815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b6060600061106f83600261193a565b61107a906002611922565b6001600160401b0381111561109157611091611a22565b6040519080825280601f01601f1916602001820160405280156110bb576020820181803683370190505b509050600360fc1b816000815181106110d6576110d6611a0c565b60200101906001600160f81b031916908160001a905350600f60fb1b8160018151811061110557611105611a0c565b60200101906001600160f81b031916908160001a905350600061112984600261193a565b611134906001611922565b90505b60018111156111ac576f181899199a1a9b1b9c1cb0b131b232b360811b85600f166010811061116857611168611a0c565b1a60f81b82828151811061117e5761117e611a0c565b60200101906001600160f81b031916908160001a90535060049490941c936111a581611989565b9050611137565b5083156111fb5760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610527565b9392505050565b82805482825590600052602060002090810192821561124f579160200282015b8281111561124f578251805161123f91849160209091019061125f565b5091602001919060010190611222565b5061125b9291506112df565b5090565b82805461126b906119a0565b90600052602060002090601f01602090048101928261128d57600085556112d3565b82601f106112a657805160ff19168380011785556112d3565b828001600101855582156112d3579182015b828111156112d35782518255916020019190600101906112b8565b5061125b9291506112fc565b8082111561125b5760006112f38282611311565b506001016112df565b5b8082111561125b57600081556001016112fd565b50805461131d906119a0565b6000825580601f1061132d575050565b601f016020900490600052602060002090810190610eba91906112fc565b600082601f83011261135c57600080fd5b813561136f61136a826118fb565b6118a8565b81815284602083860101111561138457600080fd5b816020850160208301376000918101602001919091529392505050565b6000602082840312156113b357600080fd5b81356111fb81611a38565b6000602082840312156113d057600080fd5b81516111fb81611a38565b600060208083850312156113ee57600080fd5b82356001600160401b038082111561140557600080fd5b818501915085601f83011261141957600080fd5b813561142761136a826118d8565b80828252858201915085850189878560051b880101111561144757600080fd5b6000805b8581101561148257823587811115611461578283fd5b61146f8d8b838c010161134b565b865250938801939188019160010161144b565b50919a9950505050505050505050565b600080604083850312156114a557600080fd5b82356001600160401b038111156114bb57600080fd5b8301601f810185136114cc57600080fd5b803560206114dc61136a836118d8565b80838252828201915082850189848660051b88010111156114fc57600080fd5b600095505b8486101561151f578035835260019590950194918301918301611501565b5098969091013596505050505050565b60006020828403121561154157600080fd5b815180151581146111fb57600080fd5b60006020828403121561156357600080fd5b5035919050565b6000806040838503121561157d57600080fd5b82359150602083013561158f81611a38565b809150509250929050565b6000602082840312156115ac57600080fd5b81356001600160e01b0319811681146111fb57600080fd5b6000602082840312156115d657600080fd5b81516001600160401b038111156115ec57600080fd5b8201601f810184136115fd57600080fd5b805161160b61136a826118fb565b81815285602083850101111561162057600080fd5b611631826020830160208601611959565b95945050505050565b6000806040838503121561164d57600080fd5b82356001600160401b038082111561166457600080fd5b6116708683870161134b565b9350602085013591508082111561168657600080fd5b506116938582860161134b565b9150509250929050565b600080604083850312156116b057600080fd5b50508035926020909101359150565b8054600090600181811c90808316806116d957607f831692505b60208084108214156116fb57634e487b7160e01b600052602260045260246000fd5b83885260208801828015611716576001811461172757611752565b60ff19871682528282019750611752565b60008981526020902060005b8781101561174c57815484820152908601908401611733565b83019850505b5050505050505092915050565b60008251611771818460208701611959565b9190910192915050565b76020b1b1b2b9b9a1b7b73a3937b61d1030b1b1b7bab73a1604d1b8152600083516117ad816017850160208801611959565b7001034b99036b4b9b9b4b733903937b6329607d1b60179184019182015283516117de816028840160208801611959565b01602801949350505050565b6001600160a01b038316815260406020820181905260009061180e908301846116bf565b949350505050565b6020815260008251806020840152611835816040850160208701611959565b601f01601f19169190910160400192915050565b60208082526026908201527f4d696e746572436f6e74726f6c3a206e6f7420612053484f47554e5f4f574e45604082015265525f524f4c4560d01b606082015260800190565b82815260406020820152600061180e60408301846116bf565b604051601f8201601f191681016001600160401b03811182821017156118d0576118d0611a22565b604052919050565b60006001600160401b038211156118f1576118f1611a22565b5060051b60200190565b60006001600160401b0382111561191457611914611a22565b50601f01601f191660200190565b60008219821115611935576119356119f6565b500190565b6000816000190483118215151615611954576119546119f6565b500290565b60005b8381101561197457818101518382015260200161195c565b83811115611983576000848401525b50505050565b600081611998576119986119f6565b506000190190565b600181811c908216806119b457607f821691505b602082108114156119d557634e487b7160e01b600052602260045260246000fd5b50919050565b60006000198214156119ef576119ef6119f6565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b0381168114610eba57600080fdfef786c657c1afc7b60c0316a9881b42c6c8b080b437e91b362ae43d19e14911b5a2646970667358221220f701114e7da68fd4ea0eeb2e708381adce7d7ed769a28b323b160169a1a6a6e564736f6c63430008070033

Deployed ByteCode Sourcemap

84681:3142:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;10719:204;;;;;;:::i;:::-;;:::i;:::-;;;8976:14:1;;8969:22;8951:41;;8939:2;8924:18;10719:204:0;;;;;;;;85150:50;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;9149:25:1;;;9137:2;9122:18;85150:50:0;9003:177:1;12130:123:0;;;;;;:::i;:::-;12196:7;12223:12;;;;;;;;;;:22;;;;12130:123;12515:147;;;;;;:::i;:::-;;:::i;:::-;;16294:120;;;;;;:::i;:::-;;:::i;84753:27::-;;;;;-1:-1:-1;;;;;84753:27:0;;;;;;-1:-1:-1;;;;;8060:32:1;;;8042:51;;8030:2;8015:18;84753:27:0;7896:203:1;84906:22:0;;;;;-1:-1:-1;;;;;84906:22:0;;;13563:218;;;;;;:::i;:::-;;:::i;15806:74::-;;-1:-1:-1;;;;;;;;;;;15806:74:0;;84935:38;;;;;-1:-1:-1;;;;;84935:38:0;;;86800:118;;;;;;:::i;:::-;;:::i;86926:152::-;;;;;;:::i;:::-;;:::i;87450:108::-;;;;;;:::i;:::-;;:::i;84879:20::-;;;;;-1:-1:-1;;;;;84879:20:0;;;87222:114;;;;;;:::i;:::-;;:::i;84787:54::-;;;;;;;;;;;;;;;-1:-1:-1;;;84787:54:0;;;;;;;;;;;;:::i;84848:24::-;;;;;-1:-1:-1;;;;;84848:24:0;;;85465:1300;;;;;;:::i;:::-;;:::i;11015:139::-;;;;;;:::i;:::-;;:::i;10106:49::-;;10151:4;10106:49;;87566:103;;;;;;:::i;:::-;;:::i;87086:128::-;;;;;;:::i;:::-;;:::i;85278:179::-;;;;;;:::i;:::-;;:::i;87677:143::-;;;;;;:::i;:::-;;:::i;85063:27::-;;;;;;:::i;:::-;;:::i;85097:46::-;;;;;;:::i;:::-;;;;;;;;;;;;;;12907:149;;;;;;:::i;:::-;;:::i;16186:100::-;;;;;;:::i;:::-;;:::i;87344:98::-;;;;;;:::i;:::-;;:::i;10719:204::-;10804:4;-1:-1:-1;;;;;;10828:47:0;;-1:-1:-1;;;10828:47:0;;:87;;-1:-1:-1;;;;;;;;;;8082:40:0;;;10879:36;10821:94;10719:204;-1:-1:-1;;10719:204:0:o;12515:147::-;12196:7;12223:12;;;;;;;;;;:22;;;10597:30;10608:4;3911:10;10597;:30::i;:::-;12629:25:::1;12640:4;12646:7;12629:10;:25::i;:::-;12515:147:::0;;;:::o;16294:120::-;16348:4;16372:34;-1:-1:-1;;;;;;;;;;;16399:6:0;16372:7;:34::i;13563:218::-;-1:-1:-1;;;;;13659:23:0;;3911:10;13659:23;13651:83;;;;-1:-1:-1;;;13651:83:0;;12971:2:1;13651:83:0;;;12953:21:1;13010:2;12990:18;;;12983:30;13049:34;13029:18;;;13022:62;-1:-1:-1;;;13100:18:1;;;13093:45;13155:19;;13651:83:0;;;;;;;;;13747:26;13759:4;13765:7;13747:11;:26::i;:::-;13563:218;;:::o;86800:118::-;15929:40;-1:-1:-1;;;;;;;;;;;3911:10:0;11015:139;:::i;15929:40::-;15921:91;;;;-1:-1:-1;;;15921:91:0;;;;;;;:::i;:::-;86884:26;;::::1;::::0;:11:::1;::::0;:26:::1;::::0;::::1;::::0;::::1;:::i;86926:152::-:0;15929:40;-1:-1:-1;;;;;;;;;;;3911:10:0;11015:139;:::i;15929:40::-;15921:91;;;;-1:-1:-1;;;15921:91:0;;;;;;;:::i;:::-;87027:23:::1;::::0;;;:15:::1;:23;::::0;;;;;:43;86926:152::o;87450:108::-;15929:40;-1:-1:-1;;;;;;;;;;;3911:10:0;11015:139;:::i;15929:40::-;15921:91;;;;-1:-1:-1;;;15921:91:0;;;;;;;:::i;:::-;87520:8:::1;:30:::0;;-1:-1:-1;;;;;;87520:30:0::1;-1:-1:-1::0;;;;;87520:30:0;;;::::1;::::0;;;::::1;::::0;;87450:108::o;87222:114::-;15929:40;-1:-1:-1;;;;;;;;;;;3911:10:0;11015:139;:::i;15929:40::-;15921:91;;;;-1:-1:-1;;;15921:91:0;;;;;;;:::i;:::-;87300:12:::1;:28:::0;;-1:-1:-1;;;;;;87300:28:0::1;-1:-1:-1::0;;;;;87300:28:0;;;::::1;::::0;;;::::1;::::0;;87222:114::o;85465:1300::-;85613:11;:18;85598:33;;85590:61;;;;-1:-1:-1;;;85590:61:0;;11458:2:1;85590:61:0;;;11440:21:1;11497:2;11477:18;;;11470:30;-1:-1:-1;;;11516:18:1;;;11509:45;11571:18;;85590:61:0;11256:339:1;85590:61:0;85696:12;;-1:-1:-1;;;;;85696:12:0;85689:33;3911:10;85809:16;;85781:25;;;;:11;:25;;;;;;85737:42;;85781:44;;;:::i;:::-;85689:137;;-1:-1:-1;;;;;;85689:137:0;;;;;;;-1:-1:-1;;;;;8362:15:1;;;85689:137:0;;;8344:34:1;8414:15;;;;8394:18;;;8387:43;8446:18;;;8439:34;8279:18;;85689:137:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;85843:9;85839:919;85862:9;:16;85858:1;:20;85839:919;;;85936:6;;85951:12;;85968:10;;-1:-1:-1;;;;;85936:6:0;;:14;;85951:9;;85961:1;;85951:12;;;;;;:::i;:::-;;;;;;;85936:28;;;;;;;;;;;;;9149:25:1;;9137:2;9122:18;;9003:177;85936:28:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1;;;;;85936:42:0;;85928:88;;;;-1:-1:-1;;;85928:88:0;;12209:2:1;85928:88:0;;;12191:21:1;12248:2;12228:18;;;12221:30;12287:34;12267:18;;;12260:62;-1:-1:-1;;;12338:18:1;;;12331:31;12379:19;;85928:88:0;12007:397:1;85928:88:0;86071:15;;86106:12;;-1:-1:-1;;;;;86071:15:0;;;;:34;;86106:9;;86116:1;;86106:12;;;;;;:::i;:::-;;;;;;;86071:48;;;;;;;;;;;;;9149:25:1;;9137:2;9122:18;;9003:177;86071:48:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;86070:49;86062:112;;;;-1:-1:-1;;;86062:112:0;;11039:2:1;86062:112:0;;;11021:21:1;11078:2;11058:18;;;11051:30;11117:34;11097:18;;;11090:62;-1:-1:-1;;;11168:18:1;;;11161:48;11226:19;;86062:112:0;10837:414:1;86062:112:0;86240:7;;86265:12;;86225:69;;-1:-1:-1;;;;;86240:7:0;;:24;;86265:9;;86275:1;;86265:12;;;;;;:::i;:::-;;;;;;;86240:38;;;;;;;;;;;;;9149:25:1;;9137:2;9122:18;;9003:177;86240:38:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;86240:38:0;;;;;;;;;;;;:::i;:::-;86280:13;;;;;;;;;;;;;-1:-1:-1;;;86280:13:0;;;86225:14;:69::i;:::-;86217:113;;;;-1:-1:-1;;;86217:113:0;;12611:2:1;86217:113:0;;;12593:21:1;12650:2;12630:18;;;12623:30;12689:33;12669:18;;;12662:61;12740:18;;86217:113:0;12409:355:1;86217:113:0;86407:15;;86441:12;;-1:-1:-1;;;;;86407:15:0;;;;:33;;86441:9;;86451:1;;86441:12;;;;;;:::i;:::-;;;;;;;86473:15;:29;86489:12;86473:29;;;;;;;;;;;;86455:15;:47;;;;:::i;:::-;86407:96;;-1:-1:-1;;;;;;86407:96:0;;;;;;;;;;13842:25:1;;;;13883:18;;;13876:34;13815:18;;86407:96:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;86587:8:0;;86617:11;:25;;-1:-1:-1;;;;;86587:8:0;;;;-1:-1:-1;86587:17:0;;-1:-1:-1;86605:10:0;;86629:12;;86617:25;;;;;;:::i;:::-;;;;;;;;86587:56;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;86690;86706:9;86716:1;86706:12;;;;;;;;:::i;:::-;;;;;;;86720:11;86732:12;86720:25;;;;;;;;:::i;:::-;;;;;;;;86690:56;;;;;;;:::i;:::-;;;;;;;;85880:3;;;;:::i;:::-;;;;85839:919;;11015:139;11093:4;11117:12;;;;;;;;;;;-1:-1:-1;;;;;11117:29:0;;;;;;;;;;;;;;;11015:139::o;87566:103::-;15929:40;-1:-1:-1;;;;;;;;;;;3911:10:0;11015:139;:::i;15929:40::-;15921:91;;;;-1:-1:-1;;;15921:91:0;;;;;;;:::i;:::-;87634:7:::1;:27:::0;;-1:-1:-1;;;;;;87634:27:0::1;-1:-1:-1::0;;;;;87634:27:0;;;::::1;::::0;;;::::1;::::0;;87566:103::o;87086:128::-;15929:40;-1:-1:-1;;;;;;;;;;;3911:10:0;11015:139;:::i;15929:40::-;15921:91;;;;-1:-1:-1;;;15921:91:0;;;;;;;:::i;:::-;87175:19:::1;::::0;;;:11:::1;:19;::::0;;;;;:31;87086:128::o;85278:179::-;85357:4;85444:1;85426:21;;;;;;;;:::i;:::-;;;;;;;;;;;;;85416:32;;;;;;85408:1;85390:21;;;;;;;;:::i;:::-;;;;;;;;;;;;;85380:32;;;;;;:68;85372:77;;85278:179;;;;:::o;87677:143::-;15929:40;-1:-1:-1;;;;;;;;;;;3911:10:0;11015:139;:::i;15929:40::-;15921:91;;;;-1:-1:-1;;;15921:91:0;;;;;;;:::i;:::-;87761:15:::1;:51:::0;;-1:-1:-1;;;;;;87761:51:0::1;-1:-1:-1::0;;;;;87761:51:0;;;::::1;::::0;;;::::1;::::0;;87677:143::o;85063:27::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;12907:149::-;12196:7;12223:12;;;;;;;;;;:22;;;10597:30;10608:4;3911:10;10597;:30::i;:::-;13022:26:::1;13034:4;13040:7;13022:11;:26::i;16186:100::-:0;16242:36;-1:-1:-1;;;;;;;;;;;16271:6:0;16242:9;:36::i;:::-;16186:100;:::o;87344:98::-;15929:40;-1:-1:-1;;;;;;;;;;;3911:10:0;11015:139;:::i;15929:40::-;15921:91;;;;-1:-1:-1;;;15921:91:0;;;;;;;:::i;:::-;87410:6:::1;:24:::0;;-1:-1:-1;;;;;;87410:24:0::1;-1:-1:-1::0;;;;;87410:24:0;;;::::1;::::0;;;::::1;::::0;;87344:98::o;11444:497::-;11525:22;11533:4;11539:7;11525;:22::i;:::-;11520:414;;11713:41;11741:7;-1:-1:-1;;;;;11713:41:0;11751:2;11713:19;:41::i;:::-;11827:38;11855:4;11862:2;11827:19;:38::i;:::-;11618:270;;;;;;;;;:::i;:::-;;;;-1:-1:-1;;11618:270:0;;;;;;;;;;-1:-1:-1;;;11564:358:0;;;;;;;:::i;15064:238::-;15148:22;15156:4;15162:7;15148;:22::i;:::-;15143:152;;15187:6;:12;;;;;;;;;;;-1:-1:-1;;;;;15187:29:0;;;;;;;;;:36;;-1:-1:-1;;15187:36:0;15219:4;15187:36;;;15270:12;3911:10;;3831:98;15270:12;-1:-1:-1;;;;;15243:40:0;15261:7;-1:-1:-1;;;;;15243:40:0;15255:4;15243:40;;;;;;;;;;15064:238;;:::o;15434:239::-;15518:22;15526:4;15532:7;15518;:22::i;:::-;15514:152;;;15589:5;15557:12;;;;;;;;;;;-1:-1:-1;;;;;15557:29:0;;;;;;;;;;:37;;-1:-1:-1;;15557:37:0;;;15614:40;3911:10;;15557:12;;15614:40;;15589:5;15614:40;15434:239;;:::o;5719:451::-;5794:13;5820:19;5852:10;5856:6;5852:1;:10;:::i;:::-;:14;;5865:1;5852:14;:::i;:::-;-1:-1:-1;;;;;5842:25:0;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;5842:25:0;;5820:47;;-1:-1:-1;;;5878:6:0;5885:1;5878:9;;;;;;;;:::i;:::-;;;;:15;-1:-1:-1;;;;;5878:15:0;;;;;;;;;-1:-1:-1;;;5904:6:0;5911:1;5904:9;;;;;;;;:::i;:::-;;;;:15;-1:-1:-1;;;;;5904:15:0;;;;;;;;-1:-1:-1;5935:9:0;5947:10;5951:6;5947:1;:10;:::i;:::-;:14;;5960:1;5947:14;:::i;:::-;5935:26;;5930:135;5967:1;5963;:5;5930:135;;;-1:-1:-1;;;6015:5:0;6023:3;6015:11;6002:25;;;;;;;:::i;:::-;;;;5990:6;5997:1;5990:9;;;;;;;;:::i;:::-;;;;:37;-1:-1:-1;;;;;5990:37:0;;;;;;;;-1:-1:-1;6052:1:0;6042:11;;;;;5970:3;;;:::i;:::-;;;5930:135;;;-1:-1:-1;6083:10:0;;6075:55;;;;-1:-1:-1;;;6075:55:0;;10678:2:1;6075:55:0;;;10660:21:1;;;10697:18;;;10690:30;10756:34;10736:18;;;10729:62;10808:18;;6075:55:0;10476:356:1;6075:55:0;6155:6;5719:451;-1:-1:-1;;;5719:451:0:o;-1:-1:-1:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;:::i;:::-;;;:::o;:::-;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;:::i;14:464:1:-;57:5;110:3;103:4;95:6;91:17;87:27;77:55;;128:1;125;118:12;77:55;164:6;151:20;195:49;211:32;240:2;211:32;:::i;:::-;195:49;:::i;:::-;269:2;260:7;253:19;315:3;308:4;303:2;295:6;291:15;287:26;284:35;281:55;;;332:1;329;322:12;281:55;397:2;390:4;382:6;378:17;371:4;362:7;358:18;345:55;445:1;420:16;;;438:4;416:27;409:38;;;;424:7;14:464;-1:-1:-1;;;14:464:1:o;483:247::-;542:6;595:2;583:9;574:7;570:23;566:32;563:52;;;611:1;608;601:12;563:52;650:9;637:23;669:31;694:5;669:31;:::i;735:251::-;805:6;858:2;846:9;837:7;833:23;829:32;826:52;;;874:1;871;864:12;826:52;906:9;900:16;925:31;950:5;925:31;:::i;991:1100::-;1085:6;1116:2;1159;1147:9;1138:7;1134:23;1130:32;1127:52;;;1175:1;1172;1165:12;1127:52;1215:9;1202:23;-1:-1:-1;;;;;1285:2:1;1277:6;1274:14;1271:34;;;1301:1;1298;1291:12;1271:34;1339:6;1328:9;1324:22;1314:32;;1384:7;1377:4;1373:2;1369:13;1365:27;1355:55;;1406:1;1403;1396:12;1355:55;1442:2;1429:16;1465:59;1481:42;1520:2;1481:42;:::i;1465:59::-;1546:3;1570:2;1565:3;1558:15;1598:2;1593:3;1589:12;1582:19;;1629:2;1625;1621:11;1677:7;1672:2;1666;1663:1;1659:10;1655:2;1651:19;1647:28;1644:41;1641:61;;;1698:1;1695;1688:12;1641:61;1720:1;1741;1751:310;1767:2;1762:3;1759:11;1751:310;;;1848:3;1835:17;1884:2;1871:11;1868:19;1865:39;;;1900:1;1897;1890:12;1865:39;1929:57;1978:7;1973:2;1959:11;1955:2;1951:20;1947:29;1929:57;:::i;:::-;1917:70;;-1:-1:-1;2007:12:1;;;;2039;;;;1789:1;1780:11;1751:310;;;-1:-1:-1;2080:5:1;;991:1100;-1:-1:-1;;;;;;;;;;991:1100:1:o;2096:971::-;2189:6;2197;2250:2;2238:9;2229:7;2225:23;2221:32;2218:52;;;2266:1;2263;2256:12;2218:52;2306:9;2293:23;-1:-1:-1;;;;;2331:6:1;2328:30;2325:50;;;2371:1;2368;2361:12;2325:50;2394:22;;2447:4;2439:13;;2435:27;-1:-1:-1;2425:55:1;;2476:1;2473;2466:12;2425:55;2512:2;2499:16;2534:4;2558:59;2574:42;2613:2;2574:42;:::i;2558:59::-;2639:3;2663:2;2658:3;2651:15;2691:2;2686:3;2682:12;2675:19;;2722:2;2718;2714:11;2770:7;2765:2;2759;2756:1;2752:10;2748:2;2744:19;2740:28;2737:41;2734:61;;;2791:1;2788;2781:12;2734:61;2813:1;2804:10;;2823:163;2837:2;2834:1;2831:9;2823:163;;;2894:17;;2882:30;;2855:1;2848:9;;;;;2932:12;;;;2964;;2823:163;;;-1:-1:-1;3005:5:1;3042:18;;;;3029:32;;-1:-1:-1;;;;;;2096:971:1:o;3072:277::-;3139:6;3192:2;3180:9;3171:7;3167:23;3163:32;3160:52;;;3208:1;3205;3198:12;3160:52;3240:9;3234:16;3293:5;3286:13;3279:21;3272:5;3269:32;3259:60;;3315:1;3312;3305:12;3354:180;3413:6;3466:2;3454:9;3445:7;3441:23;3437:32;3434:52;;;3482:1;3479;3472:12;3434:52;-1:-1:-1;3505:23:1;;3354:180;-1:-1:-1;3354:180:1:o;3539:315::-;3607:6;3615;3668:2;3656:9;3647:7;3643:23;3639:32;3636:52;;;3684:1;3681;3674:12;3636:52;3720:9;3707:23;3697:33;;3780:2;3769:9;3765:18;3752:32;3793:31;3818:5;3793:31;:::i;:::-;3843:5;3833:15;;;3539:315;;;;;:::o;3859:286::-;3917:6;3970:2;3958:9;3949:7;3945:23;3941:32;3938:52;;;3986:1;3983;3976:12;3938:52;4012:23;;-1:-1:-1;;;;;;4064:32:1;;4054:43;;4044:71;;4111:1;4108;4101:12;4150:636;4230:6;4283:2;4271:9;4262:7;4258:23;4254:32;4251:52;;;4299:1;4296;4289:12;4251:52;4332:9;4326:16;-1:-1:-1;;;;;4357:6:1;4354:30;4351:50;;;4397:1;4394;4387:12;4351:50;4420:22;;4473:4;4465:13;;4461:27;-1:-1:-1;4451:55:1;;4502:1;4499;4492:12;4451:55;4531:2;4525:9;4556:49;4572:32;4601:2;4572:32;:::i;4556:49::-;4628:2;4621:5;4614:17;4668:7;4663:2;4658;4654;4650:11;4646:20;4643:33;4640:53;;;4689:1;4686;4679:12;4640:53;4702:54;4753:2;4748;4741:5;4737:14;4732:2;4728;4724:11;4702:54;:::i;:::-;4775:5;4150:636;-1:-1:-1;;;;;4150:636:1:o;4791:543::-;4879:6;4887;4940:2;4928:9;4919:7;4915:23;4911:32;4908:52;;;4956:1;4953;4946:12;4908:52;4996:9;4983:23;-1:-1:-1;;;;;5066:2:1;5058:6;5055:14;5052:34;;;5082:1;5079;5072:12;5052:34;5105:50;5147:7;5138:6;5127:9;5123:22;5105:50;:::i;:::-;5095:60;;5208:2;5197:9;5193:18;5180:32;5164:48;;5237:2;5227:8;5224:16;5221:36;;;5253:1;5250;5243:12;5221:36;;5276:52;5320:7;5309:8;5298:9;5294:24;5276:52;:::i;:::-;5266:62;;;4791:543;;;;;:::o;5524:248::-;5592:6;5600;5653:2;5641:9;5632:7;5628:23;5624:32;5621:52;;;5669:1;5666;5659:12;5621:52;-1:-1:-1;;5692:23:1;;;5762:2;5747:18;;;5734:32;;-1:-1:-1;5524:248:1:o;5777:1042::-;5862:12;;5827:3;;5917:1;5937:18;;;;5990;;;;6017:61;;6071:4;6063:6;6059:17;6049:27;;6017:61;6097:2;6145;6137:6;6134:14;6114:18;6111:38;6108:161;;;6191:10;6186:3;6182:20;6179:1;6172:31;6226:4;6223:1;6216:15;6254:4;6251:1;6244:15;6108:161;14793:19;;;14845:4;14836:14;;6355:18;6382:104;;;;6500:1;6495:318;;;;6348:465;;6382:104;-1:-1:-1;;6417:24:1;;6403:39;;6462:14;;;;-1:-1:-1;6382:104:1;;6495:318;14653:1;14646:14;;;14690:4;14677:18;;6589:1;6603:167;6617:6;6614:1;6611:13;6603:167;;;6697:14;;6682:13;;;6675:37;6740:16;;;;6632:10;;6603:167;;;6790:13;;;-1:-1:-1;;6348:465:1;;;;;;;;5777:1042;;;;:::o;6824:276::-;6955:3;6993:6;6987:13;7009:53;7055:6;7050:3;7043:4;7035:6;7031:17;7009:53;:::i;:::-;7078:16;;;;;6824:276;-1:-1:-1;;6824:276:1:o;7105:786::-;-1:-1:-1;;;7511:3:1;7504:38;7486:3;7571:6;7565:13;7587:62;7642:6;7637:2;7632:3;7628:12;7621:4;7613:6;7609:17;7587:62;:::i;:::-;-1:-1:-1;;;7708:2:1;7668:16;;;7700:11;;;7693:40;7758:13;;7780:63;7758:13;7829:2;7821:11;;7814:4;7802:17;;7780:63;:::i;:::-;7863:17;7882:2;7859:26;;7105:786;-1:-1:-1;;;;7105:786:1:o;8484:322::-;-1:-1:-1;;;;;8658:32:1;;8640:51;;8727:2;8722;8707:18;;8700:30;;;-1:-1:-1;;8747:53:1;;8781:18;;8773:6;8747:53;:::i;:::-;8739:61;8484:322;-1:-1:-1;;;;8484:322:1:o;10088:383::-;10237:2;10226:9;10219:21;10200:4;10269:6;10263:13;10312:6;10307:2;10296:9;10292:18;10285:34;10328:66;10387:6;10382:2;10371:9;10367:18;10362:2;10354:6;10350:15;10328:66;:::i;:::-;10455:2;10434:15;-1:-1:-1;;10430:29:1;10415:45;;;;10462:2;10411:54;;10088:383;-1:-1:-1;;10088:383:1:o;11600:402::-;11802:2;11784:21;;;11841:2;11821:18;;;11814:30;11880:34;11875:2;11860:18;;11853:62;-1:-1:-1;;;11946:2:1;11931:18;;11924:36;11992:3;11977:19;;11600:402::o;13367:296::-;13541:6;13530:9;13523:25;13584:2;13579;13568:9;13564:18;13557:30;13504:4;13604:53;13653:2;13642:9;13638:18;13630:6;13604:53;:::i;13921:275::-;13992:2;13986:9;14057:2;14038:13;;-1:-1:-1;;14034:27:1;14022:40;;-1:-1:-1;;;;;14077:34:1;;14113:22;;;14074:62;14071:88;;;14139:18;;:::i;:::-;14175:2;14168:22;13921:275;;-1:-1:-1;13921:275:1:o;14201:182::-;14260:4;-1:-1:-1;;;;;14285:6:1;14282:30;14279:56;;;14315:18;;:::i;:::-;-1:-1:-1;14360:1:1;14356:14;14372:4;14352:25;;14201:182::o;14388:187::-;14437:4;-1:-1:-1;;;;;14462:6:1;14459:30;14456:56;;;14492:18;;:::i;:::-;-1:-1:-1;14558:2:1;14537:15;-1:-1:-1;;14533:29:1;14564:4;14529:40;;14388:187::o;14861:128::-;14901:3;14932:1;14928:6;14925:1;14922:13;14919:39;;;14938:18;;:::i;:::-;-1:-1:-1;14974:9:1;;14861:128::o;14994:168::-;15034:7;15100:1;15096;15092:6;15088:14;15085:1;15082:21;15077:1;15070:9;15063:17;15059:45;15056:71;;;15107:18;;:::i;:::-;-1:-1:-1;15147:9:1;;14994:168::o;15167:258::-;15239:1;15249:113;15263:6;15260:1;15257:13;15249:113;;;15339:11;;;15333:18;15320:11;;;15313:39;15285:2;15278:10;15249:113;;;15380:6;15377:1;15374:13;15371:48;;;15415:1;15406:6;15401:3;15397:16;15390:27;15371:48;;15167:258;;;:::o;15430:136::-;15469:3;15497:5;15487:39;;15506:18;;:::i;:::-;-1:-1:-1;;;15542:18:1;;15430:136::o;15571:380::-;15650:1;15646:12;;;;15693;;;15714:61;;15768:4;15760:6;15756:17;15746:27;;15714:61;15821:2;15813:6;15810:14;15790:18;15787:38;15784:161;;;15867:10;15862:3;15858:20;15855:1;15848:31;15902:4;15899:1;15892:15;15930:4;15927:1;15920:15;15784:161;;15571:380;;;:::o;15956:135::-;15995:3;-1:-1:-1;;16016:17:1;;16013:43;;;16036:18;;:::i;:::-;-1:-1:-1;16083:1:1;16072:13;;15956:135::o;16096:127::-;16157:10;16152:3;16148:20;16145:1;16138:31;16188:4;16185:1;16178:15;16212:4;16209:1;16202:15;16228:127;16289:10;16284:3;16280:20;16277:1;16270:31;16320:4;16317:1;16310:15;16344:4;16341:1;16334:15;16360:127;16421:10;16416:3;16412:20;16409:1;16402:31;16452:4;16449:1;16442:15;16476:4;16473:1;16466:15;16492:131;-1:-1:-1;;;;;16567:31:1;;16557:42;;16547:70;;16613:1;16610;16603:12

Metadata Hash

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