Contract 0xdf90be8484989685feadef1c6e4c9948a681cb6a 1

 
Txn Hash Method
Block
From
To
Value [Txn Fee]
0x18b693e472a67e863c74f0abd306bda4597d1fdb86ea5c02185281c09b3c9d1aInitiate Shogun130216982022-05-26 23:55:1054 mins ago0xcc9aecffc96431304d0d379a3576ca4903cdaf44 IN  0xdf90be8484989685feadef1c6e4c9948a681cb6a0 ETH0.000209884923 ETH
0x3c6614f4f5d4110a4fe6f44323ce366c659dfabb5200ea7c898544f1e779dedfUse Talisman130186602022-05-26 22:23:392 hrs 25 mins ago0xb2347db3c5a061e7f2b2f607027c8d8d8cb3c4d9 IN  0xdf90be8484989685feadef1c6e4c9948a681cb6a0 ETH0.000228496101 ETH
0x4a0913bef47a279f6a8ca75fb96108f5d42bcc03ee067b2be450895f76789827Use Talisman130166562022-05-26 21:11:473 hrs 37 mins ago0xfc62f5f0c035941ddd64686c5336429dc24ff55e IN  0xdf90be8484989685feadef1c6e4c9948a681cb6a0 ETH0.000231499746 ETH
0x55b584722e74ad60c1a3d1383d70de3d8ac689a8ffc8daac44cb4b7e2beff4bfInitiate Shogun130072662022-05-26 17:02:047 hrs 47 mins ago0x52e8bffd8cf70f56804d79f92a28c22b8b119ce5 IN  0xdf90be8484989685feadef1c6e4c9948a681cb6a0 ETH0.000230703209 ETH
0x5b9b89226fd8a7bc530d55bd864ee884dd7a249d67e65223989c7bc3a7b814dfInitiate Shogun130035102022-05-26 15:46:029 hrs 3 mins ago0x66d8eaa495d20ba36cd0ee471079707d714a7c19 IN  0xdf90be8484989685feadef1c6e4c9948a681cb6a0 ETH0.000222298806 ETH
0x1290084e0e027f723c73606340c0327b939a2a53b94012130881ebb8ee546b28Initiate Shogun130034912022-05-26 15:45:559 hrs 3 mins ago0x66d8eaa495d20ba36cd0ee471079707d714a7c19 IN  0xdf90be8484989685feadef1c6e4c9948a681cb6a0 ETH0.000221604155 ETH
0xac4312f034f0a264a887c2e8be2d75af27397b1767d0e0b7fdfd23b667f81ef2Initiate Shogun129991232022-05-26 14:21:4110 hrs 27 mins ago0x89ed8953e4dd27677a50547ed98caa6be3c02957 IN  0xdf90be8484989685feadef1c6e4c9948a681cb6a0 ETH0.000221151204 ETH
0x7ce41d188948a34ddbf49b1cc33af9e964370d69b2f0ff174da26932f747abd0Initiate Shogun129986382022-05-26 14:13:4210 hrs 35 mins ago0xdc7d0d897e1b7998c780d16b3c08482a74e71f33 IN  0xdf90be8484989685feadef1c6e4c9948a681cb6a0 ETH0.000222304904 ETH
0x649b69511f22ba26090d7523c697d0beccadbc6e21f4d3f3143083c3be821434Use Talisman129933112022-05-26 12:55:1311 hrs 54 mins ago0x813f04d50a1a0dbdd3de8e4533b0ac5bce33e069 IN  0xdf90be8484989685feadef1c6e4c9948a681cb6a0 ETH0.000211614296 ETH
0x326d56eb3722b617ebd3d1705debb46d6f725a629b39d6abf33e707b1698a268Initiate Shogun129887412022-05-26 11:28:0913 hrs 21 mins ago0x9c8ac31625524c9e16cd35b5e40b8e14552bf8e2 IN  0xdf90be8484989685feadef1c6e4c9948a681cb6a0 ETH0.000199398458 ETH
0x1a7da68056873f2696736e3871592c91903458b232fcb19316ede0d6bcb062c9Initiate Shogun129819102022-05-26 9:23:1715 hrs 26 mins ago0x283e549a5728bbd0e65f30a7fa043b85aef90fa9 IN  0xdf90be8484989685feadef1c6e4c9948a681cb6a0 ETH0.000204124809 ETH
0x351066ada4177fa71e223b87caa3deb3f1090e666feedb17efa03af992a2b569Initiate Shogun129676902022-05-26 5:02:1119 hrs 47 mins ago0xf45b702c5acda197ad89ac3103eb775f4ce2283e IN  0xdf90be8484989685feadef1c6e4c9948a681cb6a0 ETH0.000155131618 ETH
0xe49b29d7a430abb0f15c746ada7e1730cc1275bdf9422428dd0b78d537b25091Initiate Shogun129676792022-05-26 5:02:1119 hrs 47 mins ago0xf45b702c5acda197ad89ac3103eb775f4ce2283e IN  0xdf90be8484989685feadef1c6e4c9948a681cb6a0 ETH0.000155620669 ETH
0x9f0577e3fa2e2565d556b4386d72fb6db16a78012fb076ba6a9b6b755d5e58bbInitiate Shogun129567222022-05-25 23:59:401 day 49 mins ago0x9250b2ac03fffb86fd14f6fba9a8dea0dcf18720 IN  0xdf90be8484989685feadef1c6e4c9948a681cb6a0 ETH0.000164981797 ETH
0xd2977a6b107b6c320cc697459109eba082fa6cef318b7473c66db485d4491833Initiate Shogun129560012022-05-25 23:30:511 day 1 hr ago0x32c9e56e2f8119b4902cbc21924ddb59309eba1c IN  0xdf90be8484989685feadef1c6e4c9948a681cb6a0 ETH0.000166903341 ETH
0x3446a1c07f473f902c332c20af6386b060cf6ba586533a758e372e952c6f011fInitiate Shogun129543952022-05-25 22:27:021 day 2 hrs ago0x9e15c6fc8089730e7c26aaf2d6193dfcfedbfdbe IN  0xdf90be8484989685feadef1c6e4c9948a681cb6a0 ETH0.000167425644 ETH
0xbb3c18e033994473ca1afd962a907f13935edc04c694d21531706d6649dd6d66Use Talisman129539862022-05-25 22:13:521 day 2 hrs ago0x93f79ace773cce05df2c67eaf749d179e5795d43 IN  0xdf90be8484989685feadef1c6e4c9948a681cb6a0 ETH0.000177932309 ETH
0xf9f0e256579cd569326a9f639b1d147e70f074fefc7303d964a7a324cfbca961Initiate Shogun129530952022-05-25 21:47:261 day 3 hrs ago0x345e3d2edf21492a40b31b5121f70b910a4c95c3 IN  0xdf90be8484989685feadef1c6e4c9948a681cb6a0 ETH0.000168875762 ETH
0xa9b8245950879a768f086b423e430028a03e24ccbb4e2cf1d5817b1858fe43b8Initiate Shogun129516602022-05-25 20:53:251 day 3 hrs ago0x7e1d52cf27224efaa06cca6fc58d556b189f2fba IN  0xdf90be8484989685feadef1c6e4c9948a681cb6a0 ETH0.000170651147 ETH
0x03c0e279774e359936af483eccf8a9ae9c31445d22ad7daad40cc7d752710636Initiate Shogun129480522022-05-25 19:01:511 day 5 hrs ago0x8c7d504f6f4c22a242831aac063b8799bbbdc5e8 IN  0xdf90be8484989685feadef1c6e4c9948a681cb6a0 ETH0.000134254972 ETH
0xa224cd9541bff3882efa2261207754ab6f1281e45ba5416e149c8d451343b4ebInitiate Shogun129473442022-05-25 18:44:401 day 6 hrs ago0xededeb07d7ed93ad2ea73bd00acce83242114b3d IN  0xdf90be8484989685feadef1c6e4c9948a681cb6a0 ETH0.000133409995 ETH
0xb7bca3b95d8fbbd23a473141a5a9d7ada521067c6144d8f57e6bbfa69779ef5cInitiate Shogun129465022022-05-25 18:24:021 day 6 hrs ago0xd4fd46112d63c56d5220b575848c858ed6d3feb5 IN  0xdf90be8484989685feadef1c6e4c9948a681cb6a0 ETH0.000133427439 ETH
0xc8dd8985fa6314b712a23863b3fa0359d4cc9bdf719a6d4f6fdb9c1c42f5778eInitiate Shogun129463772022-05-25 18:19:391 day 6 hrs ago0xb9297a3eea62636c74c58bb60c39ef939e2706c7 IN  0xdf90be8484989685feadef1c6e4c9948a681cb6a0 ETH0.000135380588 ETH
0x07b4c5b82e8a1877c3497a1a0d64b88acc6684324ef28dde23aa1d40f2b2be64Initiate Shogun129449802022-05-25 17:57:421 day 6 hrs ago0x17f106635633d5101185daf2c8682a0b90d9539b IN  0xdf90be8484989685feadef1c6e4c9948a681cb6a0 ETH0.000135385179 ETH
0x5945a2d38947e7765987b8a60ad244f9526c753e9d6b03c314988f011004b7a5Initiate Shogun129415582022-05-25 16:24:141 day 8 hrs ago0x116ec70ca00d6be6940eabcd838a6f1ced66af74 IN  0xdf90be8484989685feadef1c6e4c9948a681cb6a0 ETH0.000100976184 ETH
[ Download CSV Export 
Latest 25 internal transaction
Parent Txn Hash Block From To Value
0x18b693e472a67e863c74f0abd306bda4597d1fdb86ea5c02185281c09b3c9d1a130216982022-05-26 23:55:1054 mins ago 0xdf90be8484989685feadef1c6e4c9948a681cb6a 0x9d13a34bfd6ac40716cc9840f65da01cd8c9d7d60 ETH
0x18b693e472a67e863c74f0abd306bda4597d1fdb86ea5c02185281c09b3c9d1a130216982022-05-26 23:55:1054 mins ago 0xdf90be8484989685feadef1c6e4c9948a681cb6a 0x9d5d23e22fb63202499b1801354dd2d79194860b0 ETH
0x3c6614f4f5d4110a4fe6f44323ce366c659dfabb5200ea7c898544f1e779dedf130186602022-05-26 22:23:392 hrs 25 mins ago 0xdf90be8484989685feadef1c6e4c9948a681cb6a 0x9d13a34bfd6ac40716cc9840f65da01cd8c9d7d60 ETH
0x3c6614f4f5d4110a4fe6f44323ce366c659dfabb5200ea7c898544f1e779dedf130186602022-05-26 22:23:392 hrs 25 mins ago 0xdf90be8484989685feadef1c6e4c9948a681cb6a 0xbf23ae09cb539c810394d7f7dc7c3d8ee89e6eb20 ETH
0x3c6614f4f5d4110a4fe6f44323ce366c659dfabb5200ea7c898544f1e779dedf130186602022-05-26 22:23:392 hrs 25 mins ago 0xbf23ae09cb539c810394d7f7dc7c3d8ee89e6eb2 0xdf90be8484989685feadef1c6e4c9948a681cb6a0 ETH
0x3c6614f4f5d4110a4fe6f44323ce366c659dfabb5200ea7c898544f1e779dedf130186602022-05-26 22:23:392 hrs 25 mins ago 0xdf90be8484989685feadef1c6e4c9948a681cb6a 0xbf23ae09cb539c810394d7f7dc7c3d8ee89e6eb20 ETH
0x3c6614f4f5d4110a4fe6f44323ce366c659dfabb5200ea7c898544f1e779dedf130186602022-05-26 22:23:392 hrs 25 mins ago 0xdf90be8484989685feadef1c6e4c9948a681cb6a 0xbf23ae09cb539c810394d7f7dc7c3d8ee89e6eb20 ETH
0x3c6614f4f5d4110a4fe6f44323ce366c659dfabb5200ea7c898544f1e779dedf130186602022-05-26 22:23:392 hrs 25 mins ago 0xdf90be8484989685feadef1c6e4c9948a681cb6a 0x9d13a34bfd6ac40716cc9840f65da01cd8c9d7d60 ETH
0x3c6614f4f5d4110a4fe6f44323ce366c659dfabb5200ea7c898544f1e779dedf130186602022-05-26 22:23:392 hrs 25 mins ago 0xdf90be8484989685feadef1c6e4c9948a681cb6a 0x9d13a34bfd6ac40716cc9840f65da01cd8c9d7d60 ETH
0x3c6614f4f5d4110a4fe6f44323ce366c659dfabb5200ea7c898544f1e779dedf130186602022-05-26 22:23:392 hrs 25 mins ago 0xdf90be8484989685feadef1c6e4c9948a681cb6a 0xbf23ae09cb539c810394d7f7dc7c3d8ee89e6eb20 ETH
0x3c6614f4f5d4110a4fe6f44323ce366c659dfabb5200ea7c898544f1e779dedf130186602022-05-26 22:23:392 hrs 25 mins ago 0xdf90be8484989685feadef1c6e4c9948a681cb6a 0x9d13a34bfd6ac40716cc9840f65da01cd8c9d7d60 ETH
0x3c6614f4f5d4110a4fe6f44323ce366c659dfabb5200ea7c898544f1e779dedf130186602022-05-26 22:23:392 hrs 25 mins ago 0xdf90be8484989685feadef1c6e4c9948a681cb6a 0xbf23ae09cb539c810394d7f7dc7c3d8ee89e6eb20 ETH
0x3c6614f4f5d4110a4fe6f44323ce366c659dfabb5200ea7c898544f1e779dedf130186602022-05-26 22:23:392 hrs 25 mins ago 0xdf90be8484989685feadef1c6e4c9948a681cb6a 0x9d5d23e22fb63202499b1801354dd2d79194860b0 ETH
0x4a0913bef47a279f6a8ca75fb96108f5d42bcc03ee067b2be450895f76789827130166562022-05-26 21:11:473 hrs 37 mins ago 0xdf90be8484989685feadef1c6e4c9948a681cb6a 0x9d13a34bfd6ac40716cc9840f65da01cd8c9d7d60 ETH
0x4a0913bef47a279f6a8ca75fb96108f5d42bcc03ee067b2be450895f76789827130166562022-05-26 21:11:473 hrs 37 mins ago 0xdf90be8484989685feadef1c6e4c9948a681cb6a 0xbf23ae09cb539c810394d7f7dc7c3d8ee89e6eb20 ETH
0x4a0913bef47a279f6a8ca75fb96108f5d42bcc03ee067b2be450895f76789827130166562022-05-26 21:11:473 hrs 37 mins ago 0xbf23ae09cb539c810394d7f7dc7c3d8ee89e6eb2 0xdf90be8484989685feadef1c6e4c9948a681cb6a0 ETH
0x4a0913bef47a279f6a8ca75fb96108f5d42bcc03ee067b2be450895f76789827130166562022-05-26 21:11:473 hrs 37 mins ago 0xdf90be8484989685feadef1c6e4c9948a681cb6a 0xbf23ae09cb539c810394d7f7dc7c3d8ee89e6eb20 ETH
0x4a0913bef47a279f6a8ca75fb96108f5d42bcc03ee067b2be450895f76789827130166562022-05-26 21:11:473 hrs 37 mins ago 0xdf90be8484989685feadef1c6e4c9948a681cb6a 0xbf23ae09cb539c810394d7f7dc7c3d8ee89e6eb20 ETH
0x4a0913bef47a279f6a8ca75fb96108f5d42bcc03ee067b2be450895f76789827130166562022-05-26 21:11:473 hrs 37 mins ago 0xdf90be8484989685feadef1c6e4c9948a681cb6a 0x9d13a34bfd6ac40716cc9840f65da01cd8c9d7d60 ETH
0x4a0913bef47a279f6a8ca75fb96108f5d42bcc03ee067b2be450895f76789827130166562022-05-26 21:11:473 hrs 37 mins ago 0xdf90be8484989685feadef1c6e4c9948a681cb6a 0x9d13a34bfd6ac40716cc9840f65da01cd8c9d7d60 ETH
0x4a0913bef47a279f6a8ca75fb96108f5d42bcc03ee067b2be450895f76789827130166562022-05-26 21:11:473 hrs 37 mins ago 0xdf90be8484989685feadef1c6e4c9948a681cb6a 0xbf23ae09cb539c810394d7f7dc7c3d8ee89e6eb20 ETH
0x4a0913bef47a279f6a8ca75fb96108f5d42bcc03ee067b2be450895f76789827130166562022-05-26 21:11:473 hrs 37 mins ago 0xdf90be8484989685feadef1c6e4c9948a681cb6a 0x9d13a34bfd6ac40716cc9840f65da01cd8c9d7d60 ETH
0x4a0913bef47a279f6a8ca75fb96108f5d42bcc03ee067b2be450895f76789827130166562022-05-26 21:11:473 hrs 37 mins ago 0xdf90be8484989685feadef1c6e4c9948a681cb6a 0xbf23ae09cb539c810394d7f7dc7c3d8ee89e6eb20 ETH
0x4a0913bef47a279f6a8ca75fb96108f5d42bcc03ee067b2be450895f76789827130166562022-05-26 21:11:473 hrs 37 mins ago 0xdf90be8484989685feadef1c6e4c9948a681cb6a 0x9d5d23e22fb63202499b1801354dd2d79194860b0 ETH
0x55b584722e74ad60c1a3d1383d70de3d8ac689a8ffc8daac44cb4b7e2beff4bf130072662022-05-26 17:02:047 hrs 47 mins ago 0xdf90be8484989685feadef1c6e4c9948a681cb6a 0x9d13a34bfd6ac40716cc9840f65da01cd8c9d7d60 ETH
[ Download CSV Export 
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
ShogunStatsManager

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 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/ShogunStats/ShogunStats.sol


pragma solidity 0.8.7;

contract ShogunStats is Control {

    // health tracking
    mapping(uint256 => uint256) public shogunMaxHealth;
    mapping(uint256 => uint256) public shogunCurrentHealth;

    // attack tracking
    mapping(uint256 => uint256) public shogunAttack;

    mapping(uint256 => uint256) public shogunAttackBuff;
    mapping(uint256 => uint256) public shogunAttackExpiry;

    // defense tracking
    mapping(uint256 => uint256) public shogunDefense;

    mapping(uint256 => uint256) public shogunDefenseBuff;
    mapping(uint256 => uint256) public shogunDefenseExpiry;

    // shogun initated
    mapping(uint256 => bool) public shogunInitiated;

    event ShogunBaseStats(uint256 tokenId, uint256 maxHealth, uint256 health, uint256 attack, uint256 defense);
    event ShogunHealthUpdate(uint256 tokenId, uint256 health);

    event ShogunAttackBuffUpdate(uint256 tokenId, uint256 attackBuff, uint256 buffExpiry);
    event ShogunDefenseBuffUpdate(uint256 tokenId, uint256 defenseBuff, uint256 buffExpiry);

    function setShogunBaseStats(uint256 tokenId, uint256 maxHealth, uint256 health, uint256 attack, uint256 defense) external onlyOwner {
        // set max health
        shogunMaxHealth[tokenId] = maxHealth;
        // set current health
        shogunCurrentHealth[tokenId] = health;
        // set attack power
        shogunAttack[tokenId] = attack;
        // set defense power
        shogunDefense[tokenId] = defense;

        shogunInitiated[tokenId] = true;

        emit ShogunBaseStats(tokenId, maxHealth, health, attack, defense);
    }

    function setShogunHealth(uint256 tokenId, uint256 health) external onlyOwner {
        // update current health
        shogunCurrentHealth[tokenId] = health;

        emit ShogunHealthUpdate(tokenId, health);
    }

    function setShogunAttackBuff(uint256 tokenId, uint256 attackBuff, uint256 buffExpiry) external onlyOwner {
        shogunAttackBuff[tokenId] = attackBuff;
        shogunAttackExpiry[tokenId] = buffExpiry;

        emit ShogunAttackBuffUpdate(tokenId, attackBuff, buffExpiry);
    }

    function setShogunDefenseBuff(uint256 tokenId, uint256 defenseBuff, uint256 buffExpiry) external onlyOwner {
        shogunDefenseBuff[tokenId] = defenseBuff;
        shogunDefenseExpiry[tokenId] = buffExpiry;

        emit ShogunDefenseBuffUpdate(tokenId, defenseBuff, buffExpiry);
    }

    function getShogunAttackBuff(uint256 shogunId) public view returns (uint256) {
        if (block.timestamp > shogunAttackExpiry[shogunId]) {
            return 0;
        }

        return shogunAttackBuff[shogunId];
    }

    function getShogunDefenseBuff(uint256 shogunId) public view returns (uint256) {
        if (block.timestamp > shogunDefenseExpiry[shogunId]) {
            return 0;
        }

        return shogunDefenseBuff[shogunId];
    }
}


// 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/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/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 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/ShogunStats/ShogunStatsManager.sol


pragma solidity 0.8.7;





contract ShogunStatsManager is IERC721Receiver, Control {

    ShogunStats public shogunStats;
    Shogun public shogun;
    Talisman public talisman;

    event InitiateShogun(uint256 tokenId);

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

    function initiateShogun(uint256 tokenId) external {
        require(shogun.ownerOf(tokenId) == msg.sender, "You do not own this Shogun");
        require(!shogunStats.shogunInitiated(tokenId), "Shogun already initiated");

        emit InitiateShogun(tokenId);
    }

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

    function useTalisman(uint256 shogunId, uint256 talismanId) external {
         // check owner
        require(shogun.ownerOf(shogunId) == msg.sender, "You do not own this Shogun");
         // check owner
        require(talisman.ownerOf(talismanId) == msg.sender, "You do not own this Talisman");
        // require shogun is initiated
        require(shogunStats.shogunInitiated(shogunId), "Initiate your shogun first");

        string memory healthTalisman = "health";
        string memory attackTalisman = "attack";
        string memory defenseTalisman = "defense";

        if (compareStrings(talisman.talismanTypes(talismanId), healthTalisman)) {
            // heal shogun
            uint256 currentShogunHealth = shogunStats.shogunCurrentHealth(shogunId);
            uint256 shogunMaxHealth = shogunStats.shogunMaxHealth(shogunId);

            uint256 talismanStat = talisman.talismanTypeStats(healthTalisman);

            uint256 newShogunHealth;

            // if use of talisman would heal fully set to max health
            if ((shogunMaxHealth - currentShogunHealth) < talismanStat) {
                newShogunHealth = shogunMaxHealth;

            // if not, update current health and add the tailsman health stat
            } else {
                newShogunHealth = currentShogunHealth + talismanStat;
            }

            // transfer and burn
            talisman.safeTransferFrom(_msgSender(), address(this), talismanId);
            talisman.burn(talismanId);

            // onlyOwner function
            shogunStats.setShogunHealth(shogunId, newShogunHealth);


        } else if (compareStrings(talisman.talismanTypes(talismanId), attackTalisman)) {
            // check if there is a buff and it's expired
            require(shogunStats.shogunAttackExpiry(shogunId) < block.timestamp, "Another buff is already active on this Shogun");

            uint256 talismanStat = talisman.talismanTypeStats(attackTalisman);
            uint256 talismanDuration = talisman.talismanTypeDuration(attackTalisman);
            uint256 talismanExpiry = block.timestamp + talismanDuration;

            // transfer and burn
            talisman.safeTransferFrom(_msgSender(), address(this), talismanId);
            talisman.burn(talismanId);

            // onlyOwner function
            shogunStats.setShogunAttackBuff(shogunId, talismanStat, talismanExpiry);

        } else if (compareStrings(talisman.talismanTypes(talismanId), defenseTalisman)) {
            // check if there is a buff and it's expired
            require(shogunStats.shogunDefenseExpiry(shogunId) < block.timestamp, "Another buff is already active on this Shogun");

            uint256 talismanStat = talisman.talismanTypeStats(defenseTalisman);
            uint256 talismanDuration = talisman.talismanTypeDuration(defenseTalisman);
            uint256 talismanExpiry = block.timestamp + talismanDuration;

            // transfer and burn
            talisman.safeTransferFrom(_msgSender(), address(this), talismanId);
            talisman.burn(talismanId);

            // onlyOwner function
            shogunStats.setShogunDefenseBuff(shogunId, talismanStat, talismanExpiry);
        } else {
            revert("unknown talisman type");
        }
    }

    // configs
    function setShogunStats(address _shogunStats) external onlyOwner {
        shogunStats = ShogunStats(_shogunStats);
    }

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

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

Contract ABI

[{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"InitiateShogun","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"previousAdminRole","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"newAdminRole","type":"bytes32"}],"name":"RoleAdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleRevoked","type":"event"},{"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":[{"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":[{"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":"uint256","name":"tokenId","type":"uint256"}],"name":"initiateShogun","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"}],"name":"isOwner","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"address","name":"from","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"onERC721Received","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_shogun","type":"address"}],"name":"setShogun","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_shogunStats","type":"address"}],"name":"setShogunStats","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_talisman","type":"address"}],"name":"setTalisman","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"shogun","outputs":[{"internalType":"contract Shogun","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"shogunStats","outputs":[{"internalType":"contract ShogunStats","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":"shogunId","type":"uint256"},{"internalType":"uint256","name":"talismanId","type":"uint256"}],"name":"useTalisman","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60806040523480156200001157600080fd5b506200002d60008051602062001ee2833981519152806200004e565b6200004860008051602062001ee28339815191523362000099565b62000149565b600082815260208190526040808220600101805490849055905190918391839186917fbd79b86ffe0ab8e8776151514217cd7cacd52c909f66475c3af44e129f0b00ff9190a4505050565b620000a58282620000a9565b5050565b6000828152602081815260408083206001600160a01b038516845290915290205460ff16620000a5576000828152602081815260408083206001600160a01b03851684529091529020805460ff19166001179055620001053390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b611d8980620001596000396000f3fe608060405234801561001057600080fd5b506004361061012c5760003560e01c80637a4fe75a116100ad578063bed34bba11610071578063bed34bba146102b7578063c0014068146102ca578063d547741f146102dd578063dc978059146102f0578063f4574d551461030357600080fd5b80637a4fe75a146102635780638863b10f1461027657806391d1485414610289578063940f83db1461029c578063a217fddf146102af57600080fd5b80632f54bf6e116100f45780632f54bf6e146101ea57806336568abe146101fd57806349ab216c146102105780635a44f7641461022557806365c9b9711461023857600080fd5b806301ffc9a7146101315780630b33290714610159578063150b7a021461016e578063248a9ca3146101a65780632f2ff15d146101d7575b600080fd5b61014461013f366004611902565b610316565b60405190151581526020015b60405180910390f35b61016c6101673660046118b9565b61034d565b005b61018d61017c3660046117f8565b630a85bd0160e11b95945050505050565b6040516001600160e01b03199091168152602001610150565b6101c96101b43660046118b9565b60009081526020819052604090206001015490565b604051908152602001610150565b61016c6101e53660046118d2565b6104f2565b6101446101f83660046117be565b61051d565b61016c61020b3660046118d2565b610537565b6101c9600080516020611d3483398151915281565b61016c6102333660046117be565b6105b5565b60025461024b906001600160a01b031681565b6040516001600160a01b039091168152602001610150565b60035461024b906001600160a01b031681565b61016c6102843660046117be565b61060b565b6101446102973660046118d2565b610661565b61016c6102aa366004611a20565b61068a565b6101c9600081565b6101446102c53660046119a3565b611388565b60015461024b906001600160a01b031681565b61016c6102eb3660046118d2565b6113e1565b61016c6102fe3660046117be565b611407565b61016c6103113660046117be565b611422565b60006001600160e01b03198216637965db0b60e01b148061034757506301ffc9a760e01b6001600160e01b03198316145b92915050565b6002546040516331a9108f60e11b81526004810183905233916001600160a01b031690636352211e9060240160206040518083038186803b15801561039157600080fd5b505afa1580156103a5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103c991906117db565b6001600160a01b0316146103f85760405162461bcd60e51b81526004016103ef90611b24565b60405180910390fd5b600154604051631b09ef0360e21b8152600481018390526001600160a01b0390911690636c27bc0c9060240160206040518083038186803b15801561043c57600080fd5b505afa158015610450573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104749190611897565b156104bc5760405162461bcd60e51b815260206004820152601860248201527714da1bd9dd5b88185b1c9958591e481a5b9a5d1a585d195960421b60448201526064016103ef565b6040518181527f0c365104606754cc4a2378363a518e11b6c38e694d25c326bb293e1d472117ed9060200160405180910390a150565b60008281526020819052604090206001015461050e8133611478565b61051883836114dc565b505050565b6000610347600080516020611d3483398151915283610661565b6001600160a01b03811633146105a75760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b60648201526084016103ef565b6105b18282611560565b5050565b6105cd600080516020611d3483398151915233610661565b6105e95760405162461bcd60e51b81526004016103ef90611b5b565b600380546001600160a01b0319166001600160a01b0392909216919091179055565b610623600080516020611d3483398151915233610661565b61063f5760405162461bcd60e51b81526004016103ef90611b5b565b600180546001600160a01b0319166001600160a01b0392909216919091179055565b6000918252602082815260408084206001600160a01b0393909316845291905290205460ff1690565b6002546040516331a9108f60e11b81526004810184905233916001600160a01b031690636352211e9060240160206040518083038186803b1580156106ce57600080fd5b505afa1580156106e2573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061070691906117db565b6001600160a01b03161461072c5760405162461bcd60e51b81526004016103ef90611b24565b6003546040516331a9108f60e11b81526004810183905233916001600160a01b031690636352211e9060240160206040518083038186803b15801561077057600080fd5b505afa158015610784573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107a891906117db565b6001600160a01b0316146107fe5760405162461bcd60e51b815260206004820152601c60248201527f596f7520646f206e6f74206f776e20746869732054616c69736d616e0000000060448201526064016103ef565b600154604051631b09ef0360e21b8152600481018490526001600160a01b0390911690636c27bc0c9060240160206040518083038186803b15801561084257600080fd5b505afa158015610856573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061087a9190611897565b6108c65760405162461bcd60e51b815260206004820152601a60248201527f496e69746961746520796f75722073686f67756e20666972737400000000000060448201526064016103ef565b6040805180820182526006808252650d0cac2d8e8d60d31b602080840191909152835180850185529182526561747461636b60d01b82820152835180850185526007815266646566656e736560c81b91810191909152600354935163facb90c760e01b8152600481018690529293919290916109ab916001600160a01b039091169063facb90c79060240160006040518083038186803b15801561096957600080fd5b505afa15801561097d573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526109a5919081019061192c565b84611388565b15610c8d5760015460405162ab2fe760e51b8152600481018790526000916001600160a01b031690631565fce09060240160206040518083038186803b1580156109f457600080fd5b505afa158015610a08573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a2c9190611a07565b600154604051635c0b364b60e01b8152600481018990529192506000916001600160a01b0390911690635c0b364b9060240160206040518083038186803b158015610a7657600080fd5b505afa158015610a8a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610aae9190611a07565b6003546040516383e42b3960e01b81529192506000916001600160a01b03909116906383e42b3990610ae4908990600401611af1565b60206040518083038186803b158015610afc57600080fd5b505afa158015610b10573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b349190611a07565b9050600081610b438585611c7e565b1015610b50575081610b5d565b610b5a8285611c47565b90505b6003546001600160a01b03166342842e0e33308b6040518463ffffffff1660e01b8152600401610b8f93929190611acd565b600060405180830381600087803b158015610ba957600080fd5b505af1158015610bbd573d6000803e3d6000fd5b5050600354604051630852cd8d60e31b8152600481018c90526001600160a01b0390911692506342966c689150602401600060405180830381600087803b158015610c0757600080fd5b505af1158015610c1b573d6000803e3d6000fd5b505060015460405163161e48b560e11b8152600481018d9052602481018590526001600160a01b039091169250632c3c916a9150604401600060405180830381600087803b158015610c6c57600080fd5b505af1158015610c80573d6000803e3d6000fd5b5050505050505050611381565b60035460405163facb90c760e01b815260048101869052610d15916001600160a01b03169063facb90c79060240160006040518083038186803b158015610cd357600080fd5b505afa158015610ce7573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610d0f919081019061192c565b83611388565b1561100257600154604051635269b58160e11b81526004810187905242916001600160a01b03169063a4d36b029060240160206040518083038186803b158015610d5e57600080fd5b505afa158015610d72573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d969190611a07565b10610db35760405162461bcd60e51b81526004016103ef90611ba1565b6003546040516383e42b3960e01b81526000916001600160a01b0316906383e42b3990610de4908690600401611af1565b60206040518083038186803b158015610dfc57600080fd5b505afa158015610e10573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e349190611a07565b6003546040516304a0c55b60e21b81529192506000916001600160a01b0390911690631283156c90610e6a908790600401611af1565b60206040518083038186803b158015610e8257600080fd5b505afa158015610e96573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610eba9190611a07565b90506000610ec88242611c47565b600354604051632142170760e11b81529192506001600160a01b0316906342842e0e90610efd90339030908c90600401611acd565b600060405180830381600087803b158015610f1757600080fd5b505af1158015610f2b573d6000803e3d6000fd5b5050600354604051630852cd8d60e31b8152600481018b90526001600160a01b0390911692506342966c689150602401600060405180830381600087803b158015610f7557600080fd5b505af1158015610f89573d6000803e3d6000fd5b50506001546040516348a8d08d60e01b8152600481018c905260248101879052604481018590526001600160a01b0390911692506348a8d08d91506064015b600060405180830381600087803b158015610fe257600080fd5b505af1158015610ff6573d6000803e3d6000fd5b50505050505050611381565b60035460405163facb90c760e01b81526004810186905261108a916001600160a01b03169063facb90c79060240160006040518083038186803b15801561104857600080fd5b505afa15801561105c573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052611084919081019061192c565b82611388565b1561134157600154604051637e67c0ed60e11b81526004810187905242916001600160a01b03169063fccf81da9060240160206040518083038186803b1580156110d357600080fd5b505afa1580156110e7573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061110b9190611a07565b106111285760405162461bcd60e51b81526004016103ef90611ba1565b6003546040516383e42b3960e01b81526000916001600160a01b0316906383e42b3990611159908590600401611af1565b60206040518083038186803b15801561117157600080fd5b505afa158015611185573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111a99190611a07565b6003546040516304a0c55b60e21b81529192506000916001600160a01b0390911690631283156c906111df908690600401611af1565b60206040518083038186803b1580156111f757600080fd5b505afa15801561120b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061122f9190611a07565b9050600061123d8242611c47565b600354604051632142170760e11b81529192506001600160a01b0316906342842e0e9061127290339030908c90600401611acd565b600060405180830381600087803b15801561128c57600080fd5b505af11580156112a0573d6000803e3d6000fd5b5050600354604051630852cd8d60e31b8152600481018b90526001600160a01b0390911692506342966c689150602401600060405180830381600087803b1580156112ea57600080fd5b505af11580156112fe573d6000803e3d6000fd5b5050600154604051634897734560e01b8152600481018c905260248101879052604481018590526001600160a01b03909116925063489773459150606401610fc8565b60405162461bcd60e51b8152602060048201526015602482015274756e6b6e6f776e2074616c69736d616e207479706560581b60448201526064016103ef565b5050505050565b60008160405160200161139b9190611a42565b60405160208183030381529060405280519060200120836040516020016113c29190611a42565b6040516020818303038152906040528051906020012014905092915050565b6000828152602081905260409020600101546113fd8133611478565b6105188383611560565b61141f600080516020611d34833981519152826104f2565b50565b61143a600080516020611d3483398151915233610661565b6114565760405162461bcd60e51b81526004016103ef90611b5b565b600280546001600160a01b0319166001600160a01b0392909216919091179055565b6114828282610661565b6105b15761149a816001600160a01b031660146115c5565b6114a58360206115c5565b6040516020016114b6929190611a5e565b60408051601f198184030181529082905262461bcd60e51b82526103ef91600401611af1565b6114e68282610661565b6105b1576000828152602081815260408083206001600160a01b03851684529091529020805460ff1916600117905561151c3390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b61156a8282610661565b156105b1576000828152602081815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b606060006115d4836002611c5f565b6115df906002611c47565b67ffffffffffffffff8111156115f7576115f7611d08565b6040519080825280601f01601f191660200182016040528015611621576020820181803683370190505b509050600360fc1b8160008151811061163c5761163c611cf2565b60200101906001600160f81b031916908160001a905350600f60fb1b8160018151811061166b5761166b611cf2565b60200101906001600160f81b031916908160001a905350600061168f846002611c5f565b61169a906001611c47565b90505b6001811115611712576f181899199a1a9b1b9c1cb0b131b232b360811b85600f16601081106116ce576116ce611cf2565b1a60f81b8282815181106116e4576116e4611cf2565b60200101906001600160f81b031916908160001a90535060049490941c9361170b81611cc5565b905061169d565b5083156117615760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e7460448201526064016103ef565b9392505050565b600082601f83011261177957600080fd5b813561178c61178782611c1f565b611bee565b8181528460208386010111156117a157600080fd5b816020850160208301376000918101602001919091529392505050565b6000602082840312156117d057600080fd5b813561176181611d1e565b6000602082840312156117ed57600080fd5b815161176181611d1e565b60008060008060006080868803121561181057600080fd5b853561181b81611d1e565b9450602086013561182b81611d1e565b935060408601359250606086013567ffffffffffffffff8082111561184f57600080fd5b818801915088601f83011261186357600080fd5b81358181111561187257600080fd5b89602082850101111561188457600080fd5b9699959850939650602001949392505050565b6000602082840312156118a957600080fd5b8151801515811461176157600080fd5b6000602082840312156118cb57600080fd5b5035919050565b600080604083850312156118e557600080fd5b8235915060208301356118f781611d1e565b809150509250929050565b60006020828403121561191457600080fd5b81356001600160e01b03198116811461176157600080fd5b60006020828403121561193e57600080fd5b815167ffffffffffffffff81111561195557600080fd5b8201601f8101841361196657600080fd5b805161197461178782611c1f565b81815285602083850101111561198957600080fd5b61199a826020830160208601611c95565b95945050505050565b600080604083850312156119b657600080fd5b823567ffffffffffffffff808211156119ce57600080fd5b6119da86838701611768565b935060208501359150808211156119f057600080fd5b506119fd85828601611768565b9150509250929050565b600060208284031215611a1957600080fd5b5051919050565b60008060408385031215611a3357600080fd5b50508035926020909101359150565b60008251611a54818460208701611c95565b9190910192915050565b76020b1b1b2b9b9a1b7b73a3937b61d1030b1b1b7bab73a1604d1b815260008351611a90816017850160208801611c95565b7001034b99036b4b9b9b4b733903937b6329607d1b6017918401918201528351611ac1816028840160208801611c95565b01602801949350505050565b6001600160a01b039384168152919092166020820152604081019190915260600190565b6020815260008251806020840152611b10816040850160208701611c95565b601f01601f19169190910160400192915050565b6020808252601a908201527f596f7520646f206e6f74206f776e20746869732053686f67756e000000000000604082015260600190565b60208082526026908201527f4d696e746572436f6e74726f6c3a206e6f7420612053484f47554e5f4f574e45604082015265525f524f4c4560d01b606082015260800190565b6020808252602d908201527f416e6f74686572206275666620697320616c726561647920616374697665206f60408201526c37103a3434b99029b437b3bab760991b606082015260800190565b604051601f8201601f1916810167ffffffffffffffff81118282101715611c1757611c17611d08565b604052919050565b600067ffffffffffffffff821115611c3957611c39611d08565b50601f01601f191660200190565b60008219821115611c5a57611c5a611cdc565b500190565b6000816000190483118215151615611c7957611c79611cdc565b500290565b600082821015611c9057611c90611cdc565b500390565b60005b83811015611cb0578181015183820152602001611c98565b83811115611cbf576000848401525b50505050565b600081611cd457611cd4611cdc565b506000190190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b038116811461141f57600080fdfef786c657c1afc7b60c0316a9881b42c6c8b080b437e91b362ae43d19e14911b5a2646970667358221220bfa6d1ea1a080a7e5d2dc0dfbcf1d14737865ecd2d44b6100724c3249c4ac37d64736f6c63430008070033f786c657c1afc7b60c0316a9881b42c6c8b080b437e91b362ae43d19e14911b5

Deployed ByteCode Sourcemap

69661:4621:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;10717:204;;;;;;:::i;:::-;;:::i;:::-;;;6443:14:1;;6436:22;6418:41;;6406:2;6391:18;10717:204:0;;;;;;;;70115:271;;;;;;:::i;:::-;;:::i;:::-;;69869:238;;;;;;:::i;:::-;-1:-1:-1;;;69869:238:0;;;;;;;;;;;-1:-1:-1;;;;;;6814:33:1;;;6796:52;;6784:2;6769:18;69869:238:0;6652:202:1;12128:123:0;;;;;;:::i;:::-;12194:7;12221:12;;;;;;;;;;:22;;;;12128:123;;;;6616:25:1;;;6604:2;6589:18;12128:123:0;6470:177:1;12513:147:0;;;;;;:::i;:::-;;:::i;16292:120::-;;;;;;:::i;:::-;;:::i;13561:218::-;;;;;;:::i;:::-;;:::i;15804:74::-;;-1:-1:-1;;;;;;;;;;;15804:74:0;;74171:108;;;;;;:::i;:::-;;:::i;69763:20::-;;;;;-1:-1:-1;;;;;69763:20:0;;;;;;-1:-1:-1;;;;;7042:32:1;;;7024:51;;7012:2;6997:18;69763:20:0;6859:222:1;69790:24:0;;;;;-1:-1:-1;;;;;69790:24:0;;;73934:123;;;;;;:::i;:::-;;:::i;11013:139::-;;;;;;:::i;:::-;;:::i;70581:3329::-;;;;;;:::i;:::-;;:::i;10104:49::-;;10149:4;10104:49;;70394:179;;;;;;:::i;:::-;;:::i;69726:30::-;;;;;-1:-1:-1;;;;;69726:30:0;;;12905:149;;;;;;:::i;:::-;;:::i;16184:100::-;;;;;;:::i;:::-;;:::i;74065:98::-;;;;;;:::i;:::-;;:::i;10717:204::-;10802:4;-1:-1:-1;;;;;;10826:47:0;;-1:-1:-1;;;10826:47:0;;:87;;-1:-1:-1;;;;;;;;;;8080:40:0;;;10877:36;10819:94;10717:204;-1:-1:-1;;10717:204:0:o;70115:271::-;70184:6;;:23;;-1:-1:-1;;;70184:23:0;;;;;6616:25:1;;;70211:10:0;;-1:-1:-1;;;;;70184:6:0;;:14;;6589:18:1;;70184:23:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1;;;;;70184:37:0;;70176:76;;;;-1:-1:-1;;;70176:76:0;;;;;;;:::i;:::-;;;;;;;;;70272:11;;:36;;-1:-1:-1;;;70272:36:0;;;;;6616:25:1;;;-1:-1:-1;;;;;70272:11:0;;;;:27;;6589:18:1;;70272:36:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;70271:37;70263:74;;;;-1:-1:-1;;;70263:74:0;;9602:2:1;70263:74:0;;;9584:21:1;9641:2;9621:18;;;9614:30;-1:-1:-1;;;9660:18:1;;;9653:54;9724:18;;70263:74:0;9400:348:1;70263:74:0;70355:23;;6616:25:1;;;70355:23:0;;6604:2:1;6589:18;70355:23:0;;;;;;;70115:271;:::o;12513:147::-;12194:7;12221:12;;;;;;;;;;:22;;;10595:30;10606:4;3909:10;10595;:30::i;:::-;12627:25:::1;12638:4;12644:7;12627:10;:25::i;:::-;12513:147:::0;;;:::o;16292:120::-;16346:4;16370:34;-1:-1:-1;;;;;;;;;;;16397:6:0;16370:7;:34::i;13561:218::-;-1:-1:-1;;;;;13657:23:0;;3909:10;13657:23;13649:83;;;;-1:-1:-1;;;13649:83:0;;11076:2:1;13649:83:0;;;11058:21:1;11115:2;11095:18;;;11088:30;11154:34;11134:18;;;11127:62;-1:-1:-1;;;11205:18:1;;;11198:45;11260:19;;13649:83:0;10874:411:1;13649:83:0;13745:26;13757:4;13763:7;13745:11;:26::i;:::-;13561:218;;:::o;74171:108::-;15927:40;-1:-1:-1;;;;;;;;;;;3909:10:0;11013:139;:::i;15927:40::-;15919:91;;;;-1:-1:-1;;;15919:91:0;;;;;;;:::i;:::-;74241:8:::1;:30:::0;;-1:-1:-1;;;;;;74241:30:0::1;-1:-1:-1::0;;;;;74241:30:0;;;::::1;::::0;;;::::1;::::0;;74171:108::o;73934:123::-;15927:40;-1:-1:-1;;;;;;;;;;;3909:10:0;11013:139;:::i;15927:40::-;15919:91;;;;-1:-1:-1;;;15919:91:0;;;;;;;:::i;:::-;74010:11:::1;:39:::0;;-1:-1:-1;;;;;;74010:39:0::1;-1:-1:-1::0;;;;;74010:39:0;;;::::1;::::0;;;::::1;::::0;;73934:123::o;11013:139::-;11091:4;11115:12;;;;;;;;;;;-1:-1:-1;;;;;11115:29:0;;;;;;;;;;;;;;;11013:139::o;70581:3329::-;70693:6;;:24;;-1:-1:-1;;;70693:24:0;;;;;6616:25:1;;;70721:10:0;;-1:-1:-1;;;;;70693:6:0;;:14;;6589:18:1;;70693:24:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1;;;;;70693:38:0;;70685:77;;;;-1:-1:-1;;;70685:77:0;;;;;;;:::i;:::-;70806:8;;:28;;-1:-1:-1;;;70806:28:0;;;;;6616:25:1;;;70838:10:0;;-1:-1:-1;;;;;70806:8:0;;:16;;6589:18:1;;70806:28:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1;;;;;70806:42:0;;70798:83;;;;-1:-1:-1;;;70798:83:0;;10369:2:1;70798:83:0;;;10351:21:1;10408:2;10388:18;;;10381:30;10447;10427:18;;;10420:58;10495:18;;70798:83:0;10167:352:1;70798:83:0;70940:11;;:37;;-1:-1:-1;;;70940:37:0;;;;;6616:25:1;;;-1:-1:-1;;;;;70940:11:0;;;;:27;;6589:18:1;;70940:37:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;70932:76;;;;-1:-1:-1;;;70932:76:0;;8485:2:1;70932:76:0;;;8467:21:1;8524:2;8504:18;;;8497:30;8563:28;8543:18;;;8536:56;8609:18;;70932:76:0;8283:350:1;70932:76:0;71021:39;;;;;;;;;;;;-1:-1:-1;;;71021:39:0;;;;;;;;71071;;;;;;;;;;-1:-1:-1;;;71071:39:0;;;;71121:41;;;;;;;;;;-1:-1:-1;;;71121:41:0;;;;;;;71194:8;;:34;;-1:-1:-1;;;71194:34:0;;;;;6616:25:1;;;71021:39:0;;71071;;71121:41;;71179:66;;-1:-1:-1;;;;;71194:8:0;;;;:22;;6589:18:1;;71194:34:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;71194:34:0;;;;;;;;;;;;:::i;:::-;71230:14;71179;:66::i;:::-;71175:2728;;;71320:11;;:41;;-1:-1:-1;;;71320:41:0;;;;;6616:25:1;;;71290:27:0;;-1:-1:-1;;;;;71320:11:0;;:31;;6589:18:1;;71320:41:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;71402:11;;:37;;-1:-1:-1;;;71402:37:0;;;;;6616:25:1;;;71290:71:0;;-1:-1:-1;71376:23:0;;-1:-1:-1;;;;;71402:11:0;;;;:27;;6589:18:1;;71402:37:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;71479:8;;:42;;-1:-1:-1;;;71479:42:0;;71376:63;;-1:-1:-1;71456:20:0;;-1:-1:-1;;;;;71479:8:0;;;;:26;;:42;;71506:14;;71479:42;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;71456:65;-1:-1:-1;71538:23:0;71456:65;71653:37;71671:19;71653:15;:37;:::i;:::-;71652:54;71648:302;;;-1:-1:-1;71745:15:0;71648:302;;;71900:34;71922:12;71900:19;:34;:::i;:::-;71882:52;;71648:302;72000:8;;-1:-1:-1;;;;;72000:8:0;:25;3909:10;72048:4;72055:10;72000:66;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;72081:8:0;;:25;;-1:-1:-1;;;72081:25:0;;;;;6616::1;;;-1:-1:-1;;;;;72081:8:0;;;;-1:-1:-1;72081:13:0;;-1:-1:-1;6589:18:1;;72081:25:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;72158:11:0;;:54;;-1:-1:-1;;;72158:54:0;;;;;11646:25:1;;;11687:18;;;11680:34;;;-1:-1:-1;;;;;72158:11:0;;;;-1:-1:-1;72158:27:0;;-1:-1:-1;11619:18:1;;72158:54:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;71247:981;;;;71175:2728;;;72253:8;;:34;;-1:-1:-1;;;72253:34:0;;;;;6616:25:1;;;72238:66:0;;-1:-1:-1;;;;;72253:8:0;;:22;;6589:18:1;;72253:34:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;72253:34:0;;;;;;;;;;;;:::i;:::-;72289:14;72238;:66::i;:::-;72234:1669;;;72387:11;;:40;;-1:-1:-1;;;72387:40:0;;;;;6616:25:1;;;72430:15:0;;-1:-1:-1;;;;;72387:11:0;;:30;;6589:18:1;;72387:40:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:58;72379:116;;;;-1:-1:-1;;;72379:116:0;;;;;;;:::i;:::-;72535:8;;:42;;-1:-1:-1;;;72535:42:0;;72512:20;;-1:-1:-1;;;;;72535:8:0;;:26;;:42;;72562:14;;72535:42;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;72619:8;;:45;;-1:-1:-1;;;72619:45:0;;72512:65;;-1:-1:-1;72592:24:0;;-1:-1:-1;;;;;72619:8:0;;;;:29;;:45;;72649:14;;72619:45;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;72592:72;-1:-1:-1;72679:22:0;72704:34;72592:72;72704:15;:34;:::i;:::-;72789:8;;:66;;-1:-1:-1;;;72789:66:0;;72679:59;;-1:-1:-1;;;;;;72789:8:0;;:25;;:66;;3909:10;;72837:4;;72844:10;;72789:66;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;72870:8:0;;:25;;-1:-1:-1;;;72870:25:0;;;;;6616::1;;;-1:-1:-1;;;;;72870:8:0;;;;-1:-1:-1;72870:13:0;;-1:-1:-1;6589:18:1;;72870:25:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;72947:11:0;;:71;;-1:-1:-1;;;72947:71:0;;;;;11927:25:1;;;11968:18;;;11961:34;;;12011:18;;;12004:34;;;-1:-1:-1;;;;;72947:11:0;;;;-1:-1:-1;72947:31:0;;-1:-1:-1;11900:18:1;;72947:71:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;72306:726;;;72234:1669;;;73057:8;;:34;;-1:-1:-1;;;73057:34:0;;;;;6616:25:1;;;73042:67:0;;-1:-1:-1;;;;;73057:8:0;;:22;;6589:18:1;;73057:34:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;73057:34:0;;;;;;;;;;;;:::i;:::-;73093:15;73042:14;:67::i;:::-;73038:865;;;73192:11;;:41;;-1:-1:-1;;;73192:41:0;;;;;6616:25:1;;;73236:15:0;;-1:-1:-1;;;;;73192:11:0;;:31;;6589:18:1;;73192:41:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:59;73184:117;;;;-1:-1:-1;;;73184:117:0;;;;;;;:::i;:::-;73341:8;;:43;;-1:-1:-1;;;73341:43:0;;73318:20;;-1:-1:-1;;;;;73341:8:0;;:26;;:43;;73368:15;;73341:43;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;73426:8;;:46;;-1:-1:-1;;;73426:46:0;;73318:66;;-1:-1:-1;73399:24:0;;-1:-1:-1;;;;;73426:8:0;;;;:29;;:46;;73456:15;;73426:46;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;73399:73;-1:-1:-1;73487:22:0;73512:34;73399:73;73512:15;:34;:::i;:::-;73597:8;;:66;;-1:-1:-1;;;73597:66:0;;73487:59;;-1:-1:-1;;;;;;73597:8:0;;:25;;:66;;3909:10;;73645:4;;73652:10;;73597:66;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;73678:8:0;;:25;;-1:-1:-1;;;73678:25:0;;;;;6616::1;;;-1:-1:-1;;;;;73678:8:0;;;;-1:-1:-1;73678:13:0;;-1:-1:-1;6589:18:1;;73678:25:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;73755:11:0;;:72;;-1:-1:-1;;;73755:72:0;;;;;11927:25:1;;;11968:18;;;11961:34;;;12011:18;;;12004:34;;;-1:-1:-1;;;;;73755:11:0;;;;-1:-1:-1;73755:32:0;;-1:-1:-1;11900:18:1;;73755:72:0;11725:319:1;73038:865:0;73860:31;;-1:-1:-1;;;73860:31:0;;10726:2:1;73860:31:0;;;10708:21:1;10765:2;10745:18;;;10738:30;-1:-1:-1;;;10784:18:1;;;10777:51;10845:18;;73860:31:0;10524:345:1;73038:865:0;70649:3261;;;70581:3329;;:::o;70394:179::-;70473:4;70560:1;70542:21;;;;;;;;:::i;:::-;;;;;;;;;;;;;70532:32;;;;;;70524:1;70506:21;;;;;;;;:::i;:::-;;;;;;;;;;;;;70496:32;;;;;;:68;70488:77;;70394:179;;;;:::o;12905:149::-;12194:7;12221:12;;;;;;;;;;:22;;;10595:30;10606:4;3909:10;10595;:30::i;:::-;13020:26:::1;13032:4;13038:7;13020:11;:26::i;16184:100::-:0;16240:36;-1:-1:-1;;;;;;;;;;;16269:6:0;16240:9;:36::i;:::-;16184:100;:::o;74065:98::-;15927:40;-1:-1:-1;;;;;;;;;;;3909:10:0;11013:139;:::i;15927:40::-;15919:91;;;;-1:-1:-1;;;15919:91:0;;;;;;;:::i;:::-;74131:6:::1;:24:::0;;-1:-1:-1;;;;;;74131:24:0::1;-1:-1:-1::0;;;;;74131:24:0;;;::::1;::::0;;;::::1;::::0;;74065:98::o;11442:497::-;11523:22;11531:4;11537:7;11523;:22::i;:::-;11518:414;;11711:41;11739:7;-1:-1:-1;;;;;11711:41:0;11749:2;11711:19;:41::i;:::-;11825:38;11853:4;11860:2;11825:19;:38::i;:::-;11616:270;;;;;;;;;:::i;:::-;;;;-1:-1:-1;;11616:270:0;;;;;;;;;;-1:-1:-1;;;11562:358:0;;;;;;;:::i;15062:238::-;15146:22;15154:4;15160:7;15146;:22::i;:::-;15141:152;;15185:6;:12;;;;;;;;;;;-1:-1:-1;;;;;15185:29:0;;;;;;;;;:36;;-1:-1:-1;;15185:36:0;15217:4;15185:36;;;15268:12;3909:10;;3829:98;15268:12;-1:-1:-1;;;;;15241:40:0;15259:7;-1:-1:-1;;;;;15241:40:0;15253:4;15241:40;;;;;;;;;;15062:238;;:::o;15432:239::-;15516:22;15524:4;15530:7;15516;:22::i;:::-;15512:152;;;15587:5;15555:12;;;;;;;;;;;-1:-1:-1;;;;;15555:29:0;;;;;;;;;;:37;;-1:-1:-1;;15555:37:0;;;15612:40;3909:10;;15555:12;;15612:40;;15587:5;15612:40;15432:239;;:::o;5717:451::-;5792:13;5818:19;5850:10;5854:6;5850:1;:10;:::i;:::-;:14;;5863:1;5850:14;:::i;:::-;5840:25;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;5840:25:0;;5818:47;;-1:-1:-1;;;5876:6:0;5883:1;5876:9;;;;;;;;:::i;:::-;;;;:15;-1:-1:-1;;;;;5876:15:0;;;;;;;;;-1:-1:-1;;;5902:6:0;5909:1;5902:9;;;;;;;;:::i;:::-;;;;:15;-1:-1:-1;;;;;5902:15:0;;;;;;;;-1:-1:-1;5933:9:0;5945:10;5949:6;5945:1;:10;:::i;:::-;:14;;5958:1;5945:14;:::i;:::-;5933:26;;5928:135;5965:1;5961;:5;5928:135;;;-1:-1:-1;;;6013:5:0;6021:3;6013:11;6000:25;;;;;;;:::i;:::-;;;;5988:6;5995:1;5988:9;;;;;;;;:::i;:::-;;;;:37;-1:-1:-1;;;;;5988:37:0;;;;;;;;-1:-1:-1;6050:1:0;6040:11;;;;;5968:3;;;:::i;:::-;;;5928:135;;;-1:-1:-1;6081:10:0;;6073:55;;;;-1:-1:-1;;;6073:55:0;;8124:2:1;6073:55:0;;;8106:21:1;;;8143:18;;;8136:30;8202:34;8182:18;;;8175:62;8254:18;;6073:55:0;7922:356:1;6073:55:0;6153:6;5717:451;-1:-1:-1;;;5717:451:0:o;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:936::-;1088:6;1096;1104;1112;1120;1173:3;1161:9;1152:7;1148:23;1144:33;1141:53;;;1190:1;1187;1180:12;1141:53;1229:9;1216:23;1248:31;1273:5;1248:31;:::i;:::-;1298:5;-1:-1:-1;1355:2:1;1340:18;;1327:32;1368:33;1327:32;1368:33;:::i;:::-;1420:7;-1:-1:-1;1474:2:1;1459:18;;1446:32;;-1:-1:-1;1529:2:1;1514:18;;1501:32;1552:18;1582:14;;;1579:34;;;1609:1;1606;1599:12;1579:34;1647:6;1636:9;1632:22;1622:32;;1692:7;1685:4;1681:2;1677:13;1673:27;1663:55;;1714:1;1711;1704:12;1663:55;1754:2;1741:16;1780:2;1772:6;1769:14;1766:34;;;1796:1;1793;1786:12;1766:34;1841:7;1836:2;1827:6;1823:2;1819:15;1815:24;1812:37;1809:57;;;1862:1;1859;1852:12;1809:57;991:936;;;;-1:-1:-1;991:936:1;;-1:-1:-1;1893:2:1;1885:11;;1915:6;991:936;-1:-1:-1;;;991:936:1:o;1932:277::-;1999:6;2052:2;2040:9;2031:7;2027:23;2023:32;2020:52;;;2068:1;2065;2058:12;2020:52;2100:9;2094:16;2153:5;2146:13;2139:21;2132:5;2129:32;2119:60;;2175:1;2172;2165:12;2214:180;2273:6;2326:2;2314:9;2305:7;2301:23;2297:32;2294:52;;;2342:1;2339;2332:12;2294:52;-1:-1:-1;2365:23:1;;2214:180;-1:-1:-1;2214:180:1:o;2399:315::-;2467:6;2475;2528:2;2516:9;2507:7;2503:23;2499:32;2496:52;;;2544:1;2541;2534:12;2496:52;2580:9;2567:23;2557:33;;2640:2;2629:9;2625:18;2612:32;2653:31;2678:5;2653:31;:::i;:::-;2703:5;2693:15;;;2399:315;;;;;:::o;2719:286::-;2777:6;2830:2;2818:9;2809:7;2805:23;2801:32;2798:52;;;2846:1;2843;2836:12;2798:52;2872:23;;-1:-1:-1;;;;;;2924:32:1;;2914:43;;2904:71;;2971:1;2968;2961:12;3010:636;3090:6;3143:2;3131:9;3122:7;3118:23;3114:32;3111:52;;;3159:1;3156;3149:12;3111:52;3192:9;3186:16;3225:18;3217:6;3214:30;3211:50;;;3257:1;3254;3247:12;3211:50;3280:22;;3333:4;3325:13;;3321:27;-1:-1:-1;3311:55:1;;3362:1;3359;3352:12;3311:55;3391:2;3385:9;3416:49;3432:32;3461:2;3432:32;:::i;3416:49::-;3488:2;3481:5;3474:17;3528:7;3523:2;3518;3514;3510:11;3506:20;3503:33;3500:53;;;3549:1;3546;3539:12;3500:53;3562:54;3613:2;3608;3601:5;3597:14;3592:2;3588;3584:11;3562:54;:::i;:::-;3635:5;3010:636;-1:-1:-1;;;;;3010:636:1:o;3651:543::-;3739:6;3747;3800:2;3788:9;3779:7;3775:23;3771:32;3768:52;;;3816:1;3813;3806:12;3768:52;3856:9;3843:23;3885:18;3926:2;3918:6;3915:14;3912:34;;;3942:1;3939;3932:12;3912:34;3965:50;4007:7;3998:6;3987:9;3983:22;3965:50;:::i;:::-;3955:60;;4068:2;4057:9;4053:18;4040:32;4024:48;;4097:2;4087:8;4084:16;4081:36;;;4113:1;4110;4103:12;4081:36;;4136:52;4180:7;4169:8;4158:9;4154:24;4136:52;:::i;:::-;4126:62;;;3651:543;;;;;:::o;4384:184::-;4454:6;4507:2;4495:9;4486:7;4482:23;4478:32;4475:52;;;4523:1;4520;4513:12;4475:52;-1:-1:-1;4546:16:1;;4384:184;-1:-1:-1;4384:184:1:o;4573:248::-;4641:6;4649;4702:2;4690:9;4681:7;4677:23;4673:32;4670:52;;;4718:1;4715;4708:12;4670:52;-1:-1:-1;;4741:23:1;;;4811:2;4796:18;;;4783:32;;-1:-1:-1;4573:248:1:o;4826:276::-;4957:3;4995:6;4989:13;5011:53;5057:6;5052:3;5045:4;5037:6;5033:17;5011:53;:::i;:::-;5080:16;;;;;4826:276;-1:-1:-1;;4826:276:1:o;5107:786::-;-1:-1:-1;;;5513:3:1;5506:38;5488:3;5573:6;5567:13;5589:62;5644:6;5639:2;5634:3;5630:12;5623:4;5615:6;5611:17;5589:62;:::i;:::-;-1:-1:-1;;;5710:2:1;5670:16;;;5702:11;;;5695:40;5760:13;;5782:63;5760:13;5831:2;5823:11;;5816:4;5804:17;;5782:63;:::i;:::-;5865:17;5884:2;5861:26;;5107:786;-1:-1:-1;;;;5107:786:1:o;5898:375::-;-1:-1:-1;;;;;6156:15:1;;;6138:34;;6208:15;;;;6203:2;6188:18;;6181:43;6255:2;6240:18;;6233:34;;;;6088:2;6073:18;;5898:375::o;7534:383::-;7683:2;7672:9;7665:21;7646:4;7715:6;7709:13;7758:6;7753:2;7742:9;7738:18;7731:34;7774:66;7833:6;7828:2;7817:9;7813:18;7808:2;7800:6;7796:15;7774:66;:::i;:::-;7901:2;7880:15;-1:-1:-1;;7876:29:1;7861:45;;;;7908:2;7857:54;;7534:383;-1:-1:-1;;7534:383:1:o;8638:350::-;8840:2;8822:21;;;8879:2;8859:18;;;8852:30;8918:28;8913:2;8898:18;;8891:56;8979:2;8964:18;;8638:350::o;8993:402::-;9195:2;9177:21;;;9234:2;9214:18;;;9207:30;9273:34;9268:2;9253:18;;9246:62;-1:-1:-1;;;9339:2:1;9324:18;;9317:36;9385:3;9370:19;;8993:402::o;9753:409::-;9955:2;9937:21;;;9994:2;9974:18;;;9967:30;10033:34;10028:2;10013:18;;10006:62;-1:-1:-1;;;10099:2:1;10084:18;;10077:43;10152:3;10137:19;;9753:409::o;12049:275::-;12120:2;12114:9;12185:2;12166:13;;-1:-1:-1;;12162:27:1;12150:40;;12220:18;12205:34;;12241:22;;;12202:62;12199:88;;;12267:18;;:::i;:::-;12303:2;12296:22;12049:275;;-1:-1:-1;12049:275:1:o;12329:187::-;12378:4;12411:18;12403:6;12400:30;12397:56;;;12433:18;;:::i;:::-;-1:-1:-1;12499:2:1;12478:15;-1:-1:-1;;12474:29:1;12505:4;12470:40;;12329:187::o;12521:128::-;12561:3;12592:1;12588:6;12585:1;12582:13;12579:39;;;12598:18;;:::i;:::-;-1:-1:-1;12634:9:1;;12521:128::o;12654:168::-;12694:7;12760:1;12756;12752:6;12748:14;12745:1;12742:21;12737:1;12730:9;12723:17;12719:45;12716:71;;;12767:18;;:::i;:::-;-1:-1:-1;12807:9:1;;12654:168::o;12827:125::-;12867:4;12895:1;12892;12889:8;12886:34;;;12900:18;;:::i;:::-;-1:-1:-1;12937:9:1;;12827:125::o;12957:258::-;13029:1;13039:113;13053:6;13050:1;13047:13;13039:113;;;13129:11;;;13123:18;13110:11;;;13103:39;13075:2;13068:10;13039:113;;;13170:6;13167:1;13164:13;13161:48;;;13205:1;13196:6;13191:3;13187:16;13180:27;13161:48;;12957:258;;;:::o;13220:136::-;13259:3;13287:5;13277:39;;13296:18;;:::i;:::-;-1:-1:-1;;;13332:18:1;;13220:136::o;13361:127::-;13422:10;13417:3;13413:20;13410:1;13403:31;13453:4;13450:1;13443:15;13477:4;13474:1;13467:15;13493:127;13554:10;13549:3;13545:20;13542:1;13535:31;13585:4;13582:1;13575:15;13609:4;13606:1;13599:15;13625:127;13686:10;13681:3;13677:20;13674:1;13667:31;13717:4;13714:1;13707:15;13741:4;13738:1;13731:15;13757:131;-1:-1:-1;;;;;13832:31:1;;13822:42;;13812:70;;13878:1;13875;13868:12

Swarm Source

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