ETH Price: $3,066.66 (-5.67%)
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To

There are no matching entries

Please try again later

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
Raid

Compiler Version
v0.8.13+commit.abaa5c0e

Optimization Enabled:
Yes with 10000 runs

Other Settings:
default evmVersion
File 1 of 16 : Raid.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.13;

import {Initializable} from "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol";
import {AccessControlUpgradeable} from "@openzeppelin/contracts-upgradeable/access/AccessControlUpgradeable.sol";
import {IConfetti} from "../interfaces/IConfetti.sol";
import {IParty} from "../interfaces/IParty.sol";
import {IRaid} from "../interfaces/IRaid.sol";
import {ISeeder} from "../interfaces/ISeeder.sol";

/// @title RaidParty Raid Contract
/// @author Hasan Gondal <[email protected]>

/**
 *   ___      _    _ ___          _
 *  | _ \__ _(_)__| | _ \__ _ _ _| |_ _  _
 *  |   / _` | / _` |  _/ _` | '_|  _| || |
 *  |_|_\__,_|_\__,_|_| \__,_|_|  \__|\_, |
 *                                    |__/
 */

/// @notice Raid is currently halted.
error RaidHalted();

/// @notice Raid has started yet.
error RaidStarted();

/// @notice Raid has not started yet.
error RaidNotStarted();

/// @notice Raid has not been seeded.
error RaidNotSeeded();

/// @notice Bosses have not yet been created.
error MissingBosses();

/// @notice User's local state is invalid, requires them to run `fixInternalState(address user)`.
error InvalidState();

/// @notice The weightTotal should always be above zero when the raid is live.
error InvalidWeightTotal();

/// @notice Invalid boss selected, required `bossId` to be less than `amount`.
/// @param bossId selected bossId.
/// @param amount current amount of bosses.
error InvalidBoss(uint32 bossId, uint32 amount);

/// @notice Invalid caller on current function, requires `expected` caller but current caller is `caller`.
/// @param caller current caller
/// @param expected expected caller
error InvalidCaller(address caller, address expected);

/// @notice Snapshot is being taken too recently, `currentTime` is before `earliestTime`.
/// @param currentTime current timestamp.
/// @param earliestTime next available snapshot time.
error SnapshotTooRecent(uint64 currentTime, uint64 earliestTime);

contract Raid is IRaid, Initializable, AccessControlUpgradeable {
    bool public started;
    bool public halted;
    bool public bossesCreated;

    uint32 private roundId;
    uint32 public weightTotal;
    uint64 public lastSnapshotTime;
    /// @dev DEPRECATED BUT DO NOT REMOVE, THIS WILL BREAK STORAGE;
    uint64 private constant PRECISION = 1e18;

    uint256 public seed;
    uint256 public seedId;

    IParty public party;
    ISeeder public seeder;
    IConfetti public confetti;

    Boss[] public bosses;
    Snapshot[] public snapshots;

    mapping(uint32 => Round) public rounds;
    mapping(address => Raider) public raiders;

    event HaltUpdated(bool isHalted);

    modifier notHalted() {
        if (halted) revert RaidHalted();
        _;
    }

    modifier raidActive() {
        if (!started) revert RaidNotStarted();
        _;
    }

    modifier partyCaller() {
        address partyAddress = address(party);
        if (msg.sender != partyAddress)
            revert InvalidCaller({caller: msg.sender, expected: partyAddress});
        _;
    }

    constructor() {
        _disableInitializers();
    }

    function initialize(
        address admin,
        IParty _party,
        ISeeder _seeder,
        IConfetti _confetti
    ) external initializer {
        __AccessControl_init();
        _setupRole(DEFAULT_ADMIN_ROLE, admin);

        party = _party;
        seeder = _seeder;
        confetti = _confetti;
    }

    function setParty(IParty _party) external onlyRole(DEFAULT_ADMIN_ROLE) {
        party = _party;
    }

    function setSeeder(ISeeder _seeder) external onlyRole(DEFAULT_ADMIN_ROLE) {
        seeder = _seeder;
    }

    function setHalted(bool _halted) external onlyRole(DEFAULT_ADMIN_ROLE) {
        halted = _halted;

        emit HaltUpdated(_halted);
    }

    function updateSeed() external onlyRole(DEFAULT_ADMIN_ROLE) {
        if (started) {
            _syncRounds(uint32(block.number));
        }

        seed = seeder.getSeedSafe(address(this), seedId);
    }

    function requestSeed() external onlyRole(DEFAULT_ADMIN_ROLE) {
        seedId += 1;
        seeder.requestSeed(seedId);
    }

    function createBosses(Boss[] calldata _bosses)
        external
        onlyRole(DEFAULT_ADMIN_ROLE)
    {
        delete bosses;
        delete weightTotal;

        for (uint256 i; i < _bosses.length; i++) {
            Boss calldata boss = _bosses[i];
            weightTotal += boss.weight;
            bosses.push(boss);
        }

        bossesCreated = true;
    }

    function updateBoss(uint32 id, Boss calldata boss)
        external
        onlyRole(DEFAULT_ADMIN_ROLE)
    {
        if (!(bosses.length > id)) {
            revert InvalidBoss({bossId: id, amount: uint32(bosses.length)});
        }

        if (started) {
            _syncRounds(uint32(block.number));
        }

        weightTotal -= bosses[id].weight;
        weightTotal += boss.weight;
        bosses[id] = boss;

        if (weightTotal == 0) revert InvalidWeightTotal();
    }

    function appendBoss(Boss calldata boss)
        external
        onlyRole(DEFAULT_ADMIN_ROLE)
    {
        if (started) {
            _syncRounds(uint32(block.number));
        }

        weightTotal += boss.weight;
        bosses.push(boss);
    }

    function manualSync() external {
        _syncRounds(uint32(block.number));
    }

    function start() external onlyRole(DEFAULT_ADMIN_ROLE) {
        if (started) revert RaidStarted();
        if (!bossesCreated) revert MissingBosses();
        if (weightTotal == 0) revert InvalidWeightTotal();
        if (seedId == 0) revert RaidNotSeeded();

        seed = seeder.getSeedSafe(address(this), seedId);
        rounds[roundId] = _rollRound(seed, uint32(block.number));

        started = true;
        lastSnapshotTime = uint64(block.timestamp);
    }

    function commitSnapshot() external raidActive {
        if (lastSnapshotTime + 23 hours > block.timestamp) {
            revert SnapshotTooRecent({
                currentTime: uint64(block.timestamp),
                earliestTime: lastSnapshotTime + 23 hours
            });
        }

        _syncRounds(uint32(block.number));

        Snapshot memory snapshot = _createSnapshot();
        snapshots.push(snapshot);

        lastSnapshotTime = uint64(block.timestamp);
    }

    function getRaidData() external view returns (RaidData memory data) {
        uint256 _seed = seed;
        uint32 _roundId = roundId;
        Round memory round = rounds[_roundId];
        while (block.number > round.finalBlock) {
            _roundId += 1;
            _seed = _rollSeed(_seed);
            round = _rollRound(_seed, round.finalBlock + 1);
        }

        data.boss = round.boss;
        data.roundId = _roundId;
        data.health = uint32(round.finalBlock - block.number);
        data.maxHealth = bosses[round.boss].blockHealth;
        data.seed = _seed;
    }

    function getPendingRewards(address user) external view returns (uint256) {
        Raider memory raider = raiders[user];
        (, uint256 rewards) = _fetchRewards(raider);
        return rewards + raider.pendingRewards;
    }

    function updateDamage(address user, uint32 _dpb)
        external
        notHalted
        raidActive
        partyCaller
    {
        Raider storage raider = raiders[user];
        uint32 blockNumber = uint32(block.number);

        if (raider.startedAt > 0) {
            (uint32 _roundId, uint256 rewards) = _fetchRewards(raider);
            raider.startRound = _roundId;
            raider.pendingRewards += rewards;
        } else {
            raider.startedAt = blockNumber;
            raider.startRound = _lazyFetchRoundId();
        }

        raider.dpb = _dpb;
        raider.startBlock = blockNumber;
        raider.startSnapshot = uint32(snapshots.length + 1);
    }

    function claimRewards(address user) external notHalted {
        Raider storage raider = raiders[user];

        (uint32 _roundId, uint256 rewards) = _fetchRewards(raider);
        rewards += raider.pendingRewards;

        raider.startRound = _roundId;
        raider.pendingRewards = 0;
        raider.startBlock = uint32(block.number);
        raider.startSnapshot = uint32(snapshots.length + 1);

        if (rewards > 0) {
            confetti.mint(user, rewards);
        }
    }

    function fixInternalState(address user) external {
        uint32 _roundId = roundId;
        uint256 _seed = seed;
        Round memory round = rounds[_roundId];
        Raider storage raider = raiders[user];

        unchecked {
            if (raider.startBlock > round.finalBlock) {
                while (raider.startBlock > round.finalBlock) {
                    _roundId += 1;
                    _seed = _rollSeed(_seed);
                    round = _rollRound(_seed, round.finalBlock + 1);
                }
            } else if (raider.startBlock < round.startBlock) {
                while (raider.startBlock < round.startBlock) {
                    _roundId -= 1;
                    round = rounds[_roundId];
                }
            }
        }

        raider.startRound = _roundId;
    }

    /** Internal */

    function _rollSeed(uint256 oldSeed) internal pure returns (uint256 rolled) {
        assembly {
            mstore(0x00, oldSeed)
            rolled := keccak256(0x00, 0x20)
        }
    }

    function _rollRound(uint256 _seed, uint32 startBlock)
        internal
        view
        returns (Round memory round)
    {
        unchecked {
            uint32 roll = uint32(_seed % weightTotal);
            uint256 weight = 0;
            uint32 _bossWeight;

            for (uint16 bossId; bossId < bosses.length; bossId++) {
                _bossWeight = bosses[bossId].weight;

                if (roll <= weight + _bossWeight) {
                    round.boss = bossId;
                    round.roll = roll;
                    round.startBlock = startBlock;
                    round.finalBlock = startBlock + bosses[bossId].blockHealth;

                    return round;
                }

                weight += _bossWeight;
            }
        }
    }

    function _syncRounds(uint32 maxBlock) internal {
        unchecked {
            Round memory round = rounds[roundId];

            while (maxBlock > round.finalBlock) {
                roundId += 1;
                seed = _rollSeed(seed);
                round = _rollRound(seed, round.finalBlock + 1);
                rounds[roundId] = round;
            }
        }
    }

    function _createSnapshot()
        internal
        view
        returns (Snapshot memory snapshot)
    {
        uint32 _roundId;

        if (snapshots.length > 0) {
            _roundId = snapshots[snapshots.length - 1].finalRound + 1;
        }

        snapshot.initialRound = _roundId;
        snapshot.initialBlock = rounds[_roundId].startBlock;

        while (_roundId < roundId) {
            Round memory round = rounds[_roundId];
            Boss memory boss = bosses[round.boss];

            snapshot.attackDealt +=
                uint256(boss.blockHealth) *
                uint256(boss.multiplier);

            _roundId += 1;
        }

        snapshot.finalRound = _roundId - 1;
        snapshot.finalBlock = rounds[_roundId - 1].finalBlock;
    }

    function _fetchRewards(Raider memory raider)
        internal
        view
        returns (uint32 _roundId, uint256 rewards)
    {
        if (raider.dpb > 0) {
            if (snapshots.length > raider.startSnapshot) {
                (_roundId, rewards) = _fetchNewRewardsWithSnapshot(raider);
                return (_roundId, rewards);
            } else {
                (_roundId, rewards) = _fetchNewRewards(raider);
                return (_roundId, rewards);
            }
        }

        return (_lazyFetchRoundId(), 0);
    }

    function _fetchNewRewards(Raider memory raider)
        internal
        view
        returns (uint32 _roundId, uint256 rewards)
    {
        unchecked {
            Boss memory boss;
            Round memory round;

            uint256 _seed = seed;

            if (raider.startRound <= roundId) {
                _roundId = raider.startRound;
                for (_roundId; _roundId <= roundId; _roundId++) {
                    round = rounds[_roundId];
                    boss = bosses[round.boss];
                    rewards += _rewardCalculation(
                        raider,
                        round,
                        boss.multiplier
                    );
                }
                _roundId -= 1;
            } else {
                _roundId = roundId;
                round = rounds[_roundId];
            }

            while (block.number > round.finalBlock) {
                _roundId += 1;
                _seed = _rollSeed(_seed);
                round = _rollRound(_seed, round.finalBlock + 1);
                boss = bosses[round.boss];

                if (_roundId >= raider.startRound) {
                    rewards += _rewardCalculation(
                        raider,
                        round,
                        boss.multiplier
                    );
                }
            }
        }
    }

    function _fetchNewRewardsWithSnapshot(Raider memory raider)
        internal
        view
        returns (uint32 _roundId, uint256 rewards)
    {
        unchecked {
            Boss memory boss;
            Round memory round;

            _roundId = raider.startRound;
            uint256 _snapshotId = raider.startSnapshot;
            uint32 _lastRound = snapshots[_snapshotId].initialRound;

            for (_roundId; _roundId < _lastRound; _roundId++) {
                round = rounds[_roundId];
                boss = bosses[round.boss];
                rewards += _rewardCalculation(raider, round, boss.multiplier);
            }

            for (_snapshotId; _snapshotId < snapshots.length; _snapshotId++) {
                rewards += snapshots[_snapshotId].attackDealt * raider.dpb;
                _roundId = snapshots[_snapshotId].finalRound;
            }

            round = rounds[_roundId];

            while (_roundId < roundId) {
                _roundId += 1;
                round = rounds[_roundId];
                boss = bosses[round.boss];
                rewards += _rewardCalculation(raider, round, boss.multiplier);
            }

            uint256 _seed = seed;
            while (block.number > round.finalBlock) {
                _roundId += 1;
                _seed = _rollSeed(_seed);
                round = _rollRound(_seed, round.finalBlock + 1);
                boss = bosses[round.boss];
                rewards += _rewardCalculation(raider, round, boss.multiplier);
            }
        }
    }

    function _lazyFetchRoundId() internal view returns (uint32 _roundId) {
        unchecked {
            _roundId = roundId;
            Round memory round = rounds[_roundId];
            uint256 _seed = seed;
            while (block.number > round.finalBlock) {
                _roundId += 1;
                _seed = _rollSeed(_seed);
                round = _rollRound(_seed, round.finalBlock + 1);
            }
        }
    }

    function _rewardCalculation(
        Raider memory raider,
        Round memory round,
        uint256 bossMultiplier
    ) internal view returns (uint256 reward) {
        if (raider.startBlock > round.finalBlock) revert InvalidState();

        unchecked {
            uint256 blocksDefeated;

            if (
                round.startBlock >= raider.startBlock &&
                block.number >= round.finalBlock
            ) {
                blocksDefeated = round.finalBlock - round.startBlock;
            } else if (
                raider.startBlock > round.startBlock &&
                block.number >= round.finalBlock
            ) {
                blocksDefeated = round.finalBlock - raider.startBlock;
            } else if (
                round.finalBlock > raider.startBlock &&
                round.startBlock >= raider.startBlock
            ) {
                blocksDefeated = block.number - round.startBlock;
            } else if (
                raider.startBlock > round.startBlock &&
                round.finalBlock > block.number
            ) {
                blocksDefeated = block.number - raider.startBlock;
            }

            // Inline Assembly replaces the following code
            // reward =
            //     (1e18 *
            //         uint256(blocksDefeated) *
            //         uint256(bossMultiplier) *
            //         uint256(raider.dpb)) /
            //     PRECISION;

            assembly {
                reward := div(
                    mul(
                        mul(
                            mul(1000000000000000000, blocksDefeated),
                            bossMultiplier
                        ),
                        and(
                            mload(raider),
                            0xffffffffffffffffffffffffffffffffffffffffffffffffffffffff
                        )
                    ),
                    1000000000000000000
                )
            }
        }
    }
}

File 2 of 16 : Initializable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (proxy/utils/Initializable.sol)

pragma solidity ^0.8.2;

import "../../utils/AddressUpgradeable.sol";

/**
 * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed
 * behind a proxy. Since proxied contracts do not make use of a constructor, it's common to move constructor logic to an
 * external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer
 * function so it can only be called once. The {initializer} modifier provided by this contract will have this effect.
 *
 * The initialization functions use a version number. Once a version number is used, it is consumed and cannot be
 * reused. This mechanism prevents re-execution of each "step" but allows the creation of new initialization steps in
 * case an upgrade adds a module that needs to be initialized.
 *
 * For example:
 *
 * [.hljs-theme-light.nopadding]
 * ```
 * contract MyToken is ERC20Upgradeable {
 *     function initialize() initializer public {
 *         __ERC20_init("MyToken", "MTK");
 *     }
 * }
 * contract MyTokenV2 is MyToken, ERC20PermitUpgradeable {
 *     function initializeV2() reinitializer(2) public {
 *         __ERC20Permit_init("MyToken");
 *     }
 * }
 * ```
 *
 * TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as
 * possible by providing the encoded function call as the `_data` argument to {ERC1967Proxy-constructor}.
 *
 * CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure
 * that all initializers are idempotent. This is not verified automatically as constructors are by Solidity.
 *
 * [CAUTION]
 * ====
 * Avoid leaving a contract uninitialized.
 *
 * An uninitialized contract can be taken over by an attacker. This applies to both a proxy and its implementation
 * contract, which may impact the proxy. To prevent the implementation contract from being used, you should invoke
 * the {_disableInitializers} function in the constructor to automatically lock it when it is deployed:
 *
 * [.hljs-theme-light.nopadding]
 * ```
 * /// @custom:oz-upgrades-unsafe-allow constructor
 * constructor() {
 *     _disableInitializers();
 * }
 * ```
 * ====
 */
abstract contract Initializable {
    /**
     * @dev Indicates that the contract has been initialized.
     * @custom:oz-retyped-from bool
     */
    uint8 private _initialized;

    /**
     * @dev Indicates that the contract is in the process of being initialized.
     */
    bool private _initializing;

    /**
     * @dev Triggered when the contract has been initialized or reinitialized.
     */
    event Initialized(uint8 version);

    /**
     * @dev A modifier that defines a protected initializer function that can be invoked at most once. In its scope,
     * `onlyInitializing` functions can be used to initialize parent contracts. Equivalent to `reinitializer(1)`.
     */
    modifier initializer() {
        bool isTopLevelCall = _setInitializedVersion(1);
        if (isTopLevelCall) {
            _initializing = true;
        }
        _;
        if (isTopLevelCall) {
            _initializing = false;
            emit Initialized(1);
        }
    }

    /**
     * @dev A modifier that defines a protected reinitializer function that can be invoked at most once, and only if the
     * contract hasn't been initialized to a greater version before. In its scope, `onlyInitializing` functions can be
     * used to initialize parent contracts.
     *
     * `initializer` is equivalent to `reinitializer(1)`, so a reinitializer may be used after the original
     * initialization step. This is essential to configure modules that are added through upgrades and that require
     * initialization.
     *
     * Note that versions can jump in increments greater than 1; this implies that if multiple reinitializers coexist in
     * a contract, executing them in the right order is up to the developer or operator.
     */
    modifier reinitializer(uint8 version) {
        bool isTopLevelCall = _setInitializedVersion(version);
        if (isTopLevelCall) {
            _initializing = true;
        }
        _;
        if (isTopLevelCall) {
            _initializing = false;
            emit Initialized(version);
        }
    }

    /**
     * @dev Modifier to protect an initialization function so that it can only be invoked by functions with the
     * {initializer} and {reinitializer} modifiers, directly or indirectly.
     */
    modifier onlyInitializing() {
        require(_initializing, "Initializable: contract is not initializing");
        _;
    }

    /**
     * @dev Locks the contract, preventing any future reinitialization. This cannot be part of an initializer call.
     * Calling this in the constructor of a contract will prevent that contract from being initialized or reinitialized
     * to any version. It is recommended to use this to lock implementation contracts that are designed to be called
     * through proxies.
     */
    function _disableInitializers() internal virtual {
        _setInitializedVersion(type(uint8).max);
    }

    function _setInitializedVersion(uint8 version) private returns (bool) {
        // If the contract is initializing we ignore whether _initialized is set in order to support multiple
        // inheritance patterns, but we only do this in the context of a constructor, and for the lowest level
        // of initializers, because in other contexts the contract may have been reentered.
        if (_initializing) {
            require(
                version == 1 && !AddressUpgradeable.isContract(address(this)),
                "Initializable: contract is already initialized"
            );
            return false;
        } else {
            require(_initialized < version, "Initializable: contract is already initialized");
            _initialized = version;
            return true;
        }
    }
}

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

pragma solidity ^0.8.0;

import "./IAccessControlUpgradeable.sol";
import "../utils/ContextUpgradeable.sol";
import "../utils/StringsUpgradeable.sol";
import "../utils/introspection/ERC165Upgradeable.sol";
import "../proxy/utils/Initializable.sol";

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

    function __AccessControl_init_unchained() internal onlyInitializing {
    }
    struct RoleData {
        mapping(address => bool) members;
        bytes32 adminRole;
    }

    mapping(bytes32 => RoleData) private _roles;

    bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00;

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

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

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

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

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

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

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

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

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

        _revokeRole(role, account);
    }

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

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

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

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

    /**
     * @dev This empty reserved space is put in place to allow future versions to add new
     * variables without shifting down storage in the inheritance chain.
     * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps
     */
    uint256[49] private __gap;
}

File 4 of 16 : IConfetti.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

import "@openzeppelin/contracts/token/ERC20/IERC20.sol";

interface IConfetti is IERC20 {
    function mint(address to, uint256 amount) external;

    function burn(uint256 amount) external;
}

File 5 of 16 : IParty.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

import "../lib/Stats.sol";

interface IParty {
    event Equipped(address indexed user, uint8 item, uint8 slot, uint256 id);

    event Unequipped(address indexed user, uint8 item, uint8 slot, uint256 id);

    event DamageUpdated(address indexed user, uint32 damageCurr);

    struct PartyData {
        uint256 hero;
        mapping(uint256 => uint256) fighters;
    }

    struct Action {
        ActionType action;
        uint256 id;
        uint8 slot;
    }

    enum Property {
        HERO,
        FIGHTER
    }

    enum ActionType {
        UNEQUIP,
        EQUIP
    }

    function act(
        Action[] calldata heroActions,
        Action[] calldata fighterActions
    ) external;

    function equip(
        Property item,
        uint256 id,
        uint8 slot
    ) external;

    function unequip(Property item, uint8 slot) external;

    function enhance(
        Property item,
        uint8 slot,
        uint256 burnTokenId
    ) external;

    function getUserHero(address user) external view returns (uint256);

    function getUserFighters(address user)
        external
        view
        returns (uint256[] memory);

    function getDamage(address user) external view returns (uint32);
}

File 6 of 16 : IRaid.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

interface IRaid {
    struct Round {
        uint16 boss;
        uint32 roll;
        uint32 startBlock;
        uint32 finalBlock;
    }

    struct Raider {
        uint32 dpb;
        uint32 startedAt;
        uint32 startBlock;
        uint32 startRound;
        uint32 startSnapshot;
        uint256 pendingRewards;
    }

    struct Boss {
        uint32 weight;
        uint32 blockHealth;
        uint128 multiplier;
    }

    struct Snapshot {
        uint32 initialBlock;
        uint32 initialRound;
        uint32 finalBlock;
        uint32 finalRound;
        uint256 attackDealt;
    }

    struct RaidData {
        uint16 boss;
        uint32 roundId;
        uint32 health;
        uint32 maxHealth;
        uint256 seed;
    }

    function updateDamage(address user, uint32 _dpb) external;
}

File 7 of 16 : ISeeder.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

import "../lib/Randomness.sol";

interface ISeeder {
    event Requested(address indexed origin, uint256 indexed identifier);

    event Seeded(bytes32 identifier, uint256 randomness);

    function getIdReferenceCount(
        bytes32 randomnessId,
        address origin,
        uint256 startIdx
    ) external view returns (uint256);

    function getIdentifiers(
        bytes32 randomnessId,
        address origin,
        uint256 startIdx,
        uint256 count
    ) external view returns (uint256[] memory);

    function requestSeed(uint256 identifier) external;

    function getSeed(address origin, uint256 identifier)
        external
        view
        returns (uint256);

    function getSeedSafe(address origin, uint256 identifier)
        external
        view
        returns (uint256);

    function executeRequestMulti() external;

    function isSeeded(address origin, uint256 identifier)
        external
        view
        returns (bool);

    function setFee(uint256 fee) external;

    function getFee() external view returns (uint256);

    function getData(address origin, uint256 identifier)
        external
        view
        returns (Randomness.SeedData memory);
}

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

pragma solidity ^0.8.1;

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

        return account.code.length > 0;
    }

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

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

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

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

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

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

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

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

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

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

    /**
     * @dev 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 9 of 16 : IAccessControlUpgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (access/IAccessControl.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

File 10 of 16 : ContextUpgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)

pragma solidity ^0.8.0;
import "../proxy/utils/Initializable.sol";

/**
 * @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 ContextUpgradeable is Initializable {
    function __Context_init() internal onlyInitializing {
    }

    function __Context_init_unchained() internal onlyInitializing {
    }
    function _msgSender() internal view virtual returns (address) {
        return msg.sender;
    }

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

    /**
     * @dev This empty reserved space is put in place to allow future versions to add new
     * variables without shifting down storage in the inheritance chain.
     * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps
     */
    uint256[50] private __gap;
}

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

pragma solidity ^0.8.0;

import "./IERC165Upgradeable.sol";
import "../../proxy/utils/Initializable.sol";

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

    function __ERC165_init_unchained() internal onlyInitializing {
    }
    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
        return interfaceId == type(IERC165Upgradeable).interfaceId;
    }

    /**
     * @dev This empty reserved space is put in place to allow future versions to add new
     * variables without shifting down storage in the inheritance chain.
     * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps
     */
    uint256[50] private __gap;
}

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

File 14 of 16 : Stats.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

library Stats {
    struct HeroStats {
        uint8 dmgMultiplier;
        uint8 partySize;
        uint8 enhancement;
    }

    struct FighterStats {
        uint32 dmg;
        uint8 enhancement;
    }

    struct EquipmentStats {
        uint32 dmg;
        uint8 dmgMultiplier;
        uint8 slot;
    }
}

File 15 of 16 : Randomness.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

library Randomness {
    struct SeedData {
        uint256 batch;
        bytes32 randomnessId;
    }
}

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

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC165 standard, as defined in the
 * https://eips.ethereum.org/EIPS/eip-165[EIP].
 *
 * Implementers can declare support of contract interfaces, which can then be
 * queried by others ({ERC165Checker}).
 *
 * For an implementation, see {ERC165}.
 */
interface IERC165Upgradeable {
    /**
     * @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);
}

Settings
{
  "remappings": [
    "@chainlink/=lib/chainlink/",
    "@openzeppelin/contracts-upgradeable/=lib/openzeppelin-contracts-upgradeable/contracts/",
    "@openzeppelin/contracts/=lib/openzeppelin-contracts/contracts/",
    "chainlink/=lib\\chainlink/",
    "ds-test/=lib/ds-test/src/",
    "forge-std/=lib/forge-std/src/",
    "openzeppelin-contracts-upgradeable/=lib\\openzeppelin-contracts-upgradeable/",
    "openzeppelin-contracts/=lib\\openzeppelin-contracts/",
    "src/=src/"
  ],
  "optimizer": {
    "enabled": true,
    "runs": 10000
  },
  "metadata": {
    "bytecodeHash": "ipfs"
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "evmVersion": "london"
}

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"uint32","name":"bossId","type":"uint32"},{"internalType":"uint32","name":"amount","type":"uint32"}],"name":"InvalidBoss","type":"error"},{"inputs":[{"internalType":"address","name":"caller","type":"address"},{"internalType":"address","name":"expected","type":"address"}],"name":"InvalidCaller","type":"error"},{"inputs":[],"name":"InvalidState","type":"error"},{"inputs":[],"name":"InvalidWeightTotal","type":"error"},{"inputs":[],"name":"MissingBosses","type":"error"},{"inputs":[],"name":"RaidHalted","type":"error"},{"inputs":[],"name":"RaidNotSeeded","type":"error"},{"inputs":[],"name":"RaidNotStarted","type":"error"},{"inputs":[],"name":"RaidStarted","type":"error"},{"inputs":[{"internalType":"uint64","name":"currentTime","type":"uint64"},{"internalType":"uint64","name":"earliestTime","type":"uint64"}],"name":"SnapshotTooRecent","type":"error"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bool","name":"isHalted","type":"bool"}],"name":"HaltUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint8","name":"version","type":"uint8"}],"name":"Initialized","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":[{"components":[{"internalType":"uint32","name":"weight","type":"uint32"},{"internalType":"uint32","name":"blockHealth","type":"uint32"},{"internalType":"uint128","name":"multiplier","type":"uint128"}],"internalType":"struct IRaid.Boss","name":"boss","type":"tuple"}],"name":"appendBoss","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"bosses","outputs":[{"internalType":"uint32","name":"weight","type":"uint32"},{"internalType":"uint32","name":"blockHealth","type":"uint32"},{"internalType":"uint128","name":"multiplier","type":"uint128"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"bossesCreated","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"}],"name":"claimRewards","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"commitSnapshot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"confetti","outputs":[{"internalType":"contract IConfetti","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"components":[{"internalType":"uint32","name":"weight","type":"uint32"},{"internalType":"uint32","name":"blockHealth","type":"uint32"},{"internalType":"uint128","name":"multiplier","type":"uint128"}],"internalType":"struct IRaid.Boss[]","name":"_bosses","type":"tuple[]"}],"name":"createBosses","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"}],"name":"fixInternalState","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"}],"name":"getPendingRewards","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getRaidData","outputs":[{"components":[{"internalType":"uint16","name":"boss","type":"uint16"},{"internalType":"uint32","name":"roundId","type":"uint32"},{"internalType":"uint32","name":"health","type":"uint32"},{"internalType":"uint32","name":"maxHealth","type":"uint32"},{"internalType":"uint256","name":"seed","type":"uint256"}],"internalType":"struct IRaid.RaidData","name":"data","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"halted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"admin","type":"address"},{"internalType":"contract IParty","name":"_party","type":"address"},{"internalType":"contract ISeeder","name":"_seeder","type":"address"},{"internalType":"contract IConfetti","name":"_confetti","type":"address"}],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"lastSnapshotTime","outputs":[{"internalType":"uint64","name":"","type":"uint64"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"manualSync","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"party","outputs":[{"internalType":"contract IParty","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"raiders","outputs":[{"internalType":"uint32","name":"dpb","type":"uint32"},{"internalType":"uint32","name":"startedAt","type":"uint32"},{"internalType":"uint32","name":"startBlock","type":"uint32"},{"internalType":"uint32","name":"startRound","type":"uint32"},{"internalType":"uint32","name":"startSnapshot","type":"uint32"},{"internalType":"uint256","name":"pendingRewards","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"requestSeed","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":"uint32","name":"","type":"uint32"}],"name":"rounds","outputs":[{"internalType":"uint16","name":"boss","type":"uint16"},{"internalType":"uint32","name":"roll","type":"uint32"},{"internalType":"uint32","name":"startBlock","type":"uint32"},{"internalType":"uint32","name":"finalBlock","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"seed","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"seedId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"seeder","outputs":[{"internalType":"contract ISeeder","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bool","name":"_halted","type":"bool"}],"name":"setHalted","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IParty","name":"_party","type":"address"}],"name":"setParty","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract ISeeder","name":"_seeder","type":"address"}],"name":"setSeeder","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"snapshots","outputs":[{"internalType":"uint32","name":"initialBlock","type":"uint32"},{"internalType":"uint32","name":"initialRound","type":"uint32"},{"internalType":"uint32","name":"finalBlock","type":"uint32"},{"internalType":"uint32","name":"finalRound","type":"uint32"},{"internalType":"uint256","name":"attackDealt","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"start","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"started","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint32","name":"id","type":"uint32"},{"components":[{"internalType":"uint32","name":"weight","type":"uint32"},{"internalType":"uint32","name":"blockHealth","type":"uint32"},{"internalType":"uint128","name":"multiplier","type":"uint128"}],"internalType":"struct IRaid.Boss","name":"boss","type":"tuple"}],"name":"updateBoss","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"},{"internalType":"uint32","name":"_dpb","type":"uint32"}],"name":"updateDamage","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"updateSeed","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"weightTotal","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"}]

60806040523480156200001157600080fd5b506200001c62000022565b62000152565b6200002e60ff62000031565b50565b60008054610100900460ff1615620000ca578160ff1660011480156200006a575062000068306200014360201b620020ba1760201c565b155b620000c25760405162461bcd60e51b815260206004820152602e602482015260008051602062003f7383398151915260448201526d191e481a5b9a5d1a585b1a5e995960921b60648201526084015b60405180910390fd5b506000919050565b60005460ff808416911610620001295760405162461bcd60e51b815260206004820152602e602482015260008051602062003f7383398151915260448201526d191e481a5b9a5d1a585b1a5e995960921b6064820152608401620000b9565b506000805460ff191660ff92909216919091179055600190565b6001600160a01b03163b151590565b613e1180620001626000396000f3fe608060405234801561001057600080fd5b50600436106102925760003560e01c806391d1485411610160578063d50b31eb116100d8578063ef5cfb8c1161008c578063f316600711610071578063f316600714610792578063f6ed2017146107a5578063f8c8765e146107b857600080fd5b8063ef5cfb8c1461076c578063f02fb14f1461077f57600080fd5b8063d6565a2d116100bd578063d6565a2d146106fb578063dace18fc14610746578063dcc279c81461075957600080fd5b8063d50b31eb146106d5578063d547741f146106e857600080fd5b8063bb1953fe1161012f578063be9a655511610114578063be9a65551461068a578063bf975f1414610692578063c43a683d146106a557600080fd5b8063bb1953fe14610646578063be74baf21461064e57600080fd5b806391d14854146105c65780639e6090051461060c578063a217fddf1461062c578063b9b8af0b1461063457600080fd5b8063354284f21161020e578063684931ed116101c257806379a6d51f116101a757806379a6d51f146104885780637d94792a1461050a5780638c23f80c1461051357600080fd5b8063684931ed14610460578063753d02a11461048057600080fd5b806341d307b3116101f357806341d307b3146103e857806348ea7002146103fb5780634a7fce751461045757600080fd5b8063354284f21461039057806336568abe146103d557600080fd5b80631f2698ab11610265578063232d1ea91161024a578063232d1ea914610339578063248a9ca31461034c5780632f2ff15d1461037d57600080fd5b80631f2698ab146102e4578063204597e0146102f157600080fd5b806301ffc9a7146102975780630cc62942146102bf578063114bf2e3146102d45780631a2249e3146102dc575b600080fd5b6102aa6102a5366004613744565b6107cb565b60405190151581526020015b60405180910390f35b6102d26102cd3660046137b0565b610864565b005b6102d2610a1f565b6102d2610ad2565b6097546102aa9060ff1681565b6103046102ff3660046137e6565b610d38565b6040805163ffffffff94851681529390921660208401526fffffffffffffffffffffffffffffffff16908201526060016102b6565b6102d2610347366004613821565b610d89565b61036f61035a3660046137e6565b60009081526065602052604090206001015490565b6040519081526020016102b6565b6102d261038b36600461385a565b6110b7565b609a546103b09073ffffffffffffffffffffffffffffffffffffffff1681565b60405173ffffffffffffffffffffffffffffffffffffffff90911681526020016102b6565b6102d26103e336600461385a565b6110dc565b6097546102aa9062010000900460ff1681565b61040361118f565b6040516102b69190600060a08201905061ffff8351168252602083015163ffffffff808216602085015280604086015116604085015280606086015116606085015250506080830151608083015292915050565b61036f60995481565b609b546103b09073ffffffffffffffffffffffffffffffffffffffff1681565b6102d26112e7565b6104d961049636600461387f565b609f6020526000908152604090205461ffff81169063ffffffff620100008204811691660100000000000081048216916a01000000000000000000009091041684565b6040805161ffff909516855263ffffffff9384166020860152918316918401919091521660608201526080016102b6565b61036f60985481565b61058661052136600461389c565b60a0602052600090815260409020805460019091015463ffffffff8083169264010000000081048216926801000000000000000082048316926c0100000000000000000000000083048116927001000000000000000000000000000000009004169086565b6040805163ffffffff97881681529587166020870152938616938501939093529084166060840152909216608082015260a081019190915260c0016102b6565b6102aa6105d436600461385a565b600091825260656020908152604080842073ffffffffffffffffffffffffffffffffffffffff93909316845291905290205460ff1690565b609c546103b09073ffffffffffffffffffffffffffffffffffffffff1681565b61036f600081565b6097546102aa90610100900460ff1681565b6102d26112f2565b609754610671906b010000000000000000000000900467ffffffffffffffff1681565b60405167ffffffffffffffff90911681526020016102b6565b6102d26113b4565b6102d26106a036600461389c565b61169a565b6097546106c090670100000000000000900463ffffffff1681565b60405163ffffffff90911681526020016102b6565b6102d26106e336600461389c565b6116ed565b6102d26106f636600461385a565b611740565b61070e6107093660046137e6565b611765565b6040805163ffffffff96871681529486166020860152928516928401929092529092166060820152608081019190915260a0016102b6565b6102d26107543660046138b9565b6117c9565b6102d26107673660046138d5565b61187c565b6102d261077a36600461389c565b6118f9565b6102d261078d3660046138f7565b611b71565b6102d26107a036600461389c565b611cb0565b61036f6107b336600461389c565b611ed3565b6102d26107c636600461396c565b611f9b565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f7965db0b00000000000000000000000000000000000000000000000000000000148061085e57507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316145b92915050565b600061086f816120d6565b609d5463ffffffff8416106108c957609d546040517f391b850400000000000000000000000000000000000000000000000000000000815263ffffffff808616600483015290911660248201526044015b60405180910390fd5b60975460ff16156108dd576108dd436120e3565b609d8363ffffffff16815481106108f6576108f66139c8565b6000918252602090912001546097805463ffffffff92831692600791610929918591670100000000000000900416613a26565b92506101000a81548163ffffffff021916908363ffffffff16021790555081600001602081019061095a919061387f565b6097805460079061097d908490670100000000000000900463ffffffff16613a4b565b92506101000a81548163ffffffff021916908363ffffffff16021790555081609d8463ffffffff16815481106109b5576109b56139c8565b9060005260206000200181816109cb9190613a73565b5050609754670100000000000000900463ffffffff16600003610a1a576040517fa940695b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b505050565b6000610a2a816120d6565b600160996000828254610a3d9190613b6a565b9091555050609b546099546040517fa9df851a00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff9092169163a9df851a91610a9d9160040190815260200190565b600060405180830381600087803b158015610ab757600080fd5b505af1158015610acb573d6000803e3d6000fd5b5050505050565b60975460ff16610b0e576040517f5ca1772d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6097544290610b39906b010000000000000000000000900467ffffffffffffffff1662014370613b82565b67ffffffffffffffff161115610bba576097544290610b74906b010000000000000000000000900467ffffffffffffffff1662014370613b82565b6040517f1d6fa01800000000000000000000000000000000000000000000000000000000815267ffffffffffffffff9283166004820152911660248201526044016108c0565b610bc3436120e3565b6000610bcd6122ba565b609e8054600181018255600091909152815160029091027fcfe2a20ff701a1f3e14f63bd70d6c6bc6fba8172ec6d5a505cdab3927c0a9de68101805460208501516040860151606087015163ffffffff9081166c01000000000000000000000000027fffffffffffffffffffffffffffffffff00000000ffffffffffffffffffffffff9282166801000000000000000002929092167fffffffffffffffffffffffffffffffff0000000000000000ffffffffffffffff938216640100000000027fffffffffffffffffffffffffffffffffffffffffffffffff00000000000000009095169190971617929092171693909317929092179091556080909101517fcfe2a20ff701a1f3e14f63bd70d6c6bc6fba8172ec6d5a505cdab3927c0a9de790910155506097805467ffffffffffffffff42166b010000000000000000000000027fffffffffffffffffffffffffff0000000000000000ffffffffffffffffffffff909116179055565b609d8181548110610d4857600080fd5b60009182526020909120015463ffffffff8082169250640100000000820416906801000000000000000090046fffffffffffffffffffffffffffffffff1683565b609754610100900460ff1615610dcb576040517f5a68cfba00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60975460ff16610e07576040517f5ca1772d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b609a5473ffffffffffffffffffffffffffffffffffffffff16338114610e77576040517f16cece4800000000000000000000000000000000000000000000000000000000815233600482015273ffffffffffffffffffffffffffffffffffffffff821660248201526044016108c0565b73ffffffffffffffffffffffffffffffffffffffff8316600090815260a06020526040902080544390640100000000900463ffffffff1615610f9e576040805160c081018252835463ffffffff80821683526401000000008204811660208401526801000000000000000082048116938301939093526c0100000000000000000000000081048316606083015270010000000000000000000000000000000090049091166080820152600183015460a08201526000908190610f38906124e9565b85547fffffffffffffffffffffffffffffffff00000000ffffffffffffffffffffffff166c0100000000000000000000000063ffffffff8416021786556001860180549294509092508291600090610f91908490613b6a565b9091555061101d92505050565b81547fffffffffffffffffffffffffffffffffffffffffffffffff00000000ffffffff1664010000000063ffffffff831602178255610fdb612540565b825463ffffffff919091166c01000000000000000000000000027fffffffffffffffffffffffffffffffff00000000ffffffffffffffffffffffff9091161782555b815463ffffffff82811668010000000000000000027fffffffffffffffffffffffffffffffffffffffff00000000ffffffff0000000090921690861617178255609e5461106b906001613b6a565b825463ffffffff91909116700100000000000000000000000000000000027fffffffffffffffffffffffff00000000ffffffffffffffffffffffffffffffff9091161790915550505050565b6000828152606560205260409020600101546110d2816120d6565b610a1a83836125f2565b73ffffffffffffffffffffffffffffffffffffffff81163314611181576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201527f20726f6c657320666f722073656c66000000000000000000000000000000000060648201526084016108c0565b61118b82826126e6565b5050565b6040805160a08101825260008082526020808301829052828401829052606080840183905260808085018490526098546097546301000000900463ffffffff908116808752609f865295889020885193840189525461ffff81168452620100008104821695840195909552660100000000000085048116978301979097526a01000000000000000000009093049095169085015291925b806060015163ffffffff1643111561127257611243600183613a4b565b600084815260209020909250925061126b83826060015160016112669190613a4b565b6127a1565b9050611226565b805161ffff16845263ffffffff8083166020860152606082015161129891439116613ba5565b63ffffffff1660408501528051609d8054909161ffff169081106112be576112be6139c8565b600091825260209091200154640100000000900463ffffffff1660608501525050608082015290565b6112f0436120e3565b565b60006112fd816120d6565b60975460ff161561131157611311436120e3565b609b546099546040517fff5bf7f9000000000000000000000000000000000000000000000000000000008152306004820152602481019190915273ffffffffffffffffffffffffffffffffffffffff9091169063ff5bf7f990604401602060405180830381865afa15801561138a573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113ae9190613bbc565b60985550565b60006113bf816120d6565b60975460ff16156113fc576040517f868acf1800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60975462010000900460ff1661143e576040517ff865030d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b609754670100000000000000900463ffffffff1660000361148b576040517fa940695b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6099546000036114c7576040517fb1b19e3700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b609b546099546040517fff5bf7f9000000000000000000000000000000000000000000000000000000008152306004820152602481019190915273ffffffffffffffffffffffffffffffffffffffff9091169063ff5bf7f990604401602060405180830381865afa158015611540573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115649190613bbc565b609881905561157390436127a1565b6097805463ffffffff630100000090910481166000908152609f602090815260409182902085518154928701519387015160609097015185166a0100000000000000000000027fffffffffffffffffffffffffffffffffffff00000000ffffffffffffffffffff978616660100000000000002979097167fffffffffffffffffffffffffffffffffffff0000000000000000ffffffffffff9490951662010000027fffffffffffffffffffffffffffffffffffffffffffffffffffff00000000000090931661ffff9091161791909117919091169190911792909217909155805467ffffffffffffffff42166b010000000000000000000000027fffffffffffffffffffffffffff0000000000000000ffffffffffffffffffff0090911617600117905550565b60006116a5816120d6565b50609a80547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b60006116f8816120d6565b50609b80547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b60008281526065602052604090206001015461175b816120d6565b610a1a83836126e6565b609e818154811061177557600080fd5b60009182526020909120600290910201805460019091015463ffffffff808316935064010000000083048116926801000000000000000081048216926c010000000000000000000000009091049091169085565b60006117d4816120d6565b60975460ff16156117e8576117e8436120e3565b6117f5602083018361387f565b60978054600790611818908490670100000000000000900463ffffffff16613a4b565b825463ffffffff9182166101009390930a928302919092021990911617905550609d805460018101825560009190915282907fd26e832454299e9fabb89e0e5fffdc046d4e14431bc1bf607ffb2e8a1ddecf7b016118768282613a73565b50505050565b6000611887816120d6565b60978054831515610100027fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ff9091161790556040517f87bb6d693982ad6ba61f7f20208b89de85ccf103aae04d94c07ae437d46a59b3906118ed90841515815260200190565b60405180910390a15050565b609754610100900460ff161561193b576040517f5a68cfba00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b73ffffffffffffffffffffffffffffffffffffffff8116600090815260a060208181526040808420815160c081018352815463ffffffff808216835264010000000082048116958301959095526801000000000000000081048516938201939093526c010000000000000000000000008304841660608201527001000000000000000000000000000000009092049092166080820152600182015492810192909252919081906119ea906124e9565b915091508260010154816119fe9190613b6a565b835460006001808701919091554363ffffffff90811668010000000000000000027fffffffffffffffffffffffffffffffffffffffff00000000ffffffffffffffff9187166c0100000000000000000000000002919091167fffffffffffffffffffffffffffffffff0000000000000000ffffffffffffffff90931692909217919091178555609e54919250611a949190613b6a565b835463ffffffff91909116700100000000000000000000000000000000027fffffffffffffffffffffffff00000000ffffffffffffffffffffffffffffffff909116178355801561187657609c546040517f40c10f1900000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff868116600483015260248201849052909116906340c10f1990604401600060405180830381600087803b158015611b5357600080fd5b505af1158015611b67573d6000803e3d6000fd5b5050505050505050565b6000611b7c816120d6565b611b88609d60006136f0565b609780547fffffffffffffffffffffffffffffffffffffffffff00000000ffffffffffffff16905560005b82811015611c7d5736848483818110611bce57611bce6139c8565b606002919091019150611be69050602082018261387f565b60978054600790611c09908490670100000000000000900463ffffffff16613a4b565b825463ffffffff9182166101009390930a928302919092021990911617905550609d805460018101825560009190915281907fd26e832454299e9fabb89e0e5fffdc046d4e14431bc1bf607ffb2e8a1ddecf7b01611c678282613a73565b5050508080611c7590613bd5565b915050611bb3565b5050609780547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ffff16620100001790555050565b60975460985463ffffffff630100000090920482166000818152609f602090815260408083208151608081018352905461ffff81168252620100008104881682850152660100000000000081048816828401526a0100000000000000000000900487166060820190815273ffffffffffffffffffffffffffffffffffffffff8916855260a090935292209051815493959293919290811668010000000000000000909204161115611db0575b6060820151815463ffffffff918216680100000000000000009091049091161115611dab57600083815260209020600194909401939250611da48383606001516001016127a1565b9150611d5c565b611e8a565b6040820151815463ffffffff918216680100000000000000009091049091161015611e8a575b6040820151815463ffffffff918216680100000000000000009091049091161015611e8a5763ffffffff7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff9094018481166000908152609f60209081526040918290208251608081018452905461ffff81168252620100008104891692820192909252660100000000000082048816928101929092526a010000000000000000000090049095166060860152939150611dd6565b805463ffffffff9094166c01000000000000000000000000027fffffffffffffffffffffffffffffffff00000000ffffffffffffffffffffffff90941693909317909255505050565b73ffffffffffffffffffffffffffffffffffffffff8116600090815260a060208181526040808420815160c081018352815463ffffffff808216835264010000000082048116958301959095526801000000000000000081048516938201939093526c0100000000000000000000000083048416606082015270010000000000000000000000000000000090920490921660808201526001909101549181019190915281611f80826124e9565b9150508160a0015181611f939190613b6a565b949350505050565b6000611fa760016128b5565b90508015611fdc57600080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ff166101001790555b611fe4612a3b565b611fef600086612ad2565b609a805473ffffffffffffffffffffffffffffffffffffffff8087167fffffffffffffffffffffffff000000000000000000000000000000000000000092831617909255609b8054868416908316179055609c8054928516929091169190911790558015610acb57600080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ff169055604051600181527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a15050505050565b73ffffffffffffffffffffffffffffffffffffffff163b151590565b6120e08133612adc565b50565b60975463ffffffff630100000090910481166000908152609f60209081526040918290208251608081018452905461ffff81168252620100008104851692820192909252660100000000000082048416928101929092526a0100000000000000000000900490911660608201525b806060015163ffffffff168263ffffffff16111561118b576097805463ffffffff63010000008083048216600101909116027fffffffffffffffffffffffffffffffffffffffffffffffffff00000000ffffff9091161790556098546121bd9060009081526020902090565b609881905560608201516121d491906001016127a1565b60975463ffffffff630100000090910481166000908152609f6020908152604091829020845181549286015193860151606087015186166a0100000000000000000000027fffffffffffffffffffffffffffffffffffff00000000ffffffffffffffffffff918716660100000000000002919091167fffffffffffffffffffffffffffffffffffff0000000000000000ffffffffffff9590961662010000027fffffffffffffffffffffffffffffffffffffffffffffffffffff00000000000090941661ffff909216919091179290921792909216929092179190911790559050612151565b6040805160a081018252600080825260208201819052918101829052606081018290526080810191909152609e546000901561234557609e805461230090600190613ba5565b81548110612310576123106139c8565b6000918252602090912060029091020154612342906c01000000000000000000000000900463ffffffff166001613a4b565b90505b63ffffffff80821660208085018290526000918252609f90526040902054660100000000000090041682525b60975463ffffffff6301000000909104811690821610156124905763ffffffff8082166000908152609f602090815260408083208151608081018352905461ffff8116808352620100008204871694830194909452660100000000000081048616928201929092526a01000000000000000000009091049093166060840152609d80549091908110612405576124056139c8565b600091825260209182902060408051606081018252919092015463ffffffff80821683526401000000008204169382018490526fffffffffffffffffffffffffffffffff6801000000000000000090910416918101829052925061246891613c0d565b846080018181516124799190613b6a565b905250612487600184613a4b565b92505050612371565b61249b600182613a26565b63ffffffff166060830152609f60006124b5600184613a26565b63ffffffff908116825260208201929092526040908101600020546a01000000000000000000009004909116908301525090565b8051600090819063ffffffff161561252e57826080015163ffffffff16609e8054905011156125255761251b83612bae565b9094909350915050565b61251b8361300e565b612536612540565b9360009350915050565b60975463ffffffff630100000090910481166000818152609f60209081526040918290208251608081018452905461ffff81168252620100008104861692820192909252660100000000000082048516928101929092526a0100000000000000000000900490921660608301526098549091905b816060015163ffffffff164311156125ed5760009081526020902060608201516001938401936125e6918391016127a1565b91506125b4565b505090565b600082815260656020908152604080832073ffffffffffffffffffffffffffffffffffffffff8516845290915290205460ff1661118b57600082815260656020908152604080832073ffffffffffffffffffffffffffffffffffffffff85168452909152902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001660011790556126883390565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b600082815260656020908152604080832073ffffffffffffffffffffffffffffffffffffffff8516845290915290205460ff161561118b57600082815260656020908152604080832073ffffffffffffffffffffffffffffffffffffffff8516808552925280832080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b604080516080810182526000808252602082018190529181018290526060810191909152609754600090670100000000000000900463ffffffff1684816127ea576127ea613c4a565b069050600080805b609d5461ffff821610156128ab57609d8161ffff1681548110612817576128176139c8565b60009182526020909120015463ffffffff9081169250838301908516116128975761ffff811680865263ffffffff808616602088015287166040870152609d80549091908110612869576128696139c8565b60009182526020909120015463ffffffff640100000000909104811687011660608601525061085e92505050565b63ffffffff821692909201916001016127f2565b5050505092915050565b60008054610100900460ff161561296c578160ff1660011480156128d85750303b155b612964576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201527f647920696e697469616c697a656400000000000000000000000000000000000060648201526084016108c0565b506000919050565b60005460ff808416911610612a03576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201527f647920696e697469616c697a656400000000000000000000000000000000000060648201526084016108c0565b50600080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001660ff92909216919091179055600190565b600054610100900460ff166112f0576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201527f6e697469616c697a696e6700000000000000000000000000000000000000000060648201526084016108c0565b61118b82826125f2565b600082815260656020908152604080832073ffffffffffffffffffffffffffffffffffffffff8516845290915290205460ff1661118b57612b348173ffffffffffffffffffffffffffffffffffffffff1660146132ee565b612b3f8360206132ee565b604051602001612b50929190613ca5565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0818403018152908290527f08c379a00000000000000000000000000000000000000000000000000000000082526108c091600401613d26565b604080516060810182526000808252602082018190529181018290528190604080516080810182526000808252602082018190529181018290526060810191909152846060015193506000856080015163ffffffff1690506000609e8281548110612c1b57612c1b6139c8565b6000918252602090912060029091020154640100000000900463ffffffff1690505b8063ffffffff168663ffffffff161015612d445763ffffffff8087166000908152609f60209081526040918290208251608081018452905461ffff8116808352620100008204861693830193909352660100000000000081048516938201939093526a01000000000000000000009092049092166060820152609d805491955091908110612ccd57612ccd6139c8565b600091825260209182902060408051606081018252929091015463ffffffff808216845264010000000082041693830193909352680100000000000000009092046fffffffffffffffffffffffffffffffff169181018290529450612d359088908590613538565b60019096019590940193612c3d565b609e54821015612dcb57866000015163ffffffff16609e8381548110612d6c57612d6c6139c8565b9060005260206000209060020201600101540285019450609e8281548110612d9657612d966139c8565b600091825260209091206002909102015463ffffffff6c01000000000000000000000000909104169550600190910190612d44565b63ffffffff8087166000908152609f60209081526040918290208251608081018452905461ffff81168252620100008104851692820192909252660100000000000082048416928101929092526a01000000000000000000009004909116606082015292505b60975463ffffffff630100000090910481169087161015612f405763ffffffff6001969096018681166000908152609f60209081526040918290208251608081018452905461ffff81168083526201000082048c1693830193909352660100000000000081048b16938201939093526a01000000000000000000009092049098166060820152609d80549298919550918110612ecf57612ecf6139c8565b600091825260209182902060408051606081018252929091015463ffffffff808216845264010000000082041693830193909352680100000000000000009092046fffffffffffffffffffffffffffffffff169181018290529450612f379088908590613538565b85019450612e31565b6098545b836060015163ffffffff16431115613004576000908152602090206060840151600197880197612f76918391016127a1565b9350609d846000015161ffff1681548110612f9357612f936139c8565b600091825260209182902060408051606081018252929091015463ffffffff808216845264010000000082041693830193909352680100000000000000009092046fffffffffffffffffffffffffffffffff169181018290529550612ffb9089908690613538565b86019550612f44565b5050505050915091565b604080516060810182526000808252602082018190529181018290528190604080516080810182526000808252602082018190529181018290526060810191909152609854609754606087015163ffffffff6301000000909204821691161161319157856060015194505b60975463ffffffff63010000009091048116908616116131865763ffffffff8086166000908152609f60209081526040918290208251608081018452905461ffff8116808352620100008204861693830193909352660100000000000081048516938201939093526a01000000000000000000009092049092166060820152609d80549194509190811061310f5761310f6139c8565b600091825260209182902060408051606081018252929091015463ffffffff808216845264010000000082041693830193909352680100000000000000009092046fffffffffffffffffffffffffffffffff1691810182905293506131779087908490613538565b60019095019490930192613079565b600185039450613203565b60975463ffffffff630100000090910481166000818152609f60209081526040918290208251608081018452905461ffff81168252620100008104861692820192909252660100000000000082048516928101929092526a010000000000000000000090049092166060830152955091505b816060015163ffffffff164311156132e6576000908152602090206060820151600195860195613235918391016127a1565b9150609d826000015161ffff1681548110613252576132526139c8565b60009182526020918290206040805160608082018352929093015463ffffffff808216855264010000000082048116958501959095526fffffffffffffffffffffffffffffffff6801000000000000000090910416908301528801519094508116908616106132e1576132dc868385604001516fffffffffffffffffffffffffffffffff16613538565b840193505b613203565b505050915091565b606060006132fd836002613c0d565b613308906002613b6a565b67ffffffffffffffff81111561332057613320613d77565b6040519080825280601f01601f19166020018201604052801561334a576020820181803683370190505b5090507f300000000000000000000000000000000000000000000000000000000000000081600081518110613381576133816139c8565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053507f7800000000000000000000000000000000000000000000000000000000000000816001815181106133e4576133e46139c8565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053506000613420846002613c0d565b61342b906001613b6a565b90505b60018111156134c8577f303132333435363738396162636465660000000000000000000000000000000085600f166010811061346c5761346c6139c8565b1a60f81b828281518110613482576134826139c8565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a90535060049490941c936134c181613da6565b905061342e565b508315613531576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e7460448201526064016108c0565b9392505050565b6000826060015163ffffffff16846040015163ffffffff161115613588576040517fbaf3f0f700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000846040015163ffffffff16846040015163ffffffff16101580156135b85750836060015163ffffffff164310155b156135d557836040015184606001510363ffffffff1690506136ae565b836040015163ffffffff16856040015163ffffffff161180156136025750836060015163ffffffff164310155b1561361f57846040015184606001510363ffffffff1690506136ae565b846040015163ffffffff16846060015163ffffffff161180156136565750846040015163ffffffff16846040015163ffffffff1610155b1561366e5750604083015163ffffffff1643036136ae565b836040015163ffffffff16856040015163ffffffff1611801561369a575043846060015163ffffffff16115b156136ae5750604084015163ffffffff1643035b670de0b6b3a76400007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8651168483670de0b6b3a7640000020202049150509392505050565b50805460008255906000526020600020908101906120e091905b808211156137405780547fffffffffffffffff00000000000000000000000000000000000000000000000016815560010161370a565b5090565b60006020828403121561375657600080fd5b81357fffffffff000000000000000000000000000000000000000000000000000000008116811461353157600080fd5b63ffffffff811681146120e057600080fd5b6000606082840312156137aa57600080fd5b50919050565b600080608083850312156137c357600080fd5b82356137ce81613786565b91506137dd8460208501613798565b90509250929050565b6000602082840312156137f857600080fd5b5035919050565b73ffffffffffffffffffffffffffffffffffffffff811681146120e057600080fd5b6000806040838503121561383457600080fd5b823561383f816137ff565b9150602083013561384f81613786565b809150509250929050565b6000806040838503121561386d57600080fd5b82359150602083013561384f816137ff565b60006020828403121561389157600080fd5b813561353181613786565b6000602082840312156138ae57600080fd5b8135613531816137ff565b6000606082840312156138cb57600080fd5b6135318383613798565b6000602082840312156138e757600080fd5b8135801515811461353157600080fd5b6000806020838503121561390a57600080fd5b823567ffffffffffffffff8082111561392257600080fd5b818501915085601f83011261393657600080fd5b81358181111561394557600080fd5b86602060608302850101111561395a57600080fd5b60209290920196919550909350505050565b6000806000806080858703121561398257600080fd5b843561398d816137ff565b9350602085013561399d816137ff565b925060408501356139ad816137ff565b915060608501356139bd816137ff565b939692955090935050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600063ffffffff83811690831681811015613a4357613a436139f7565b039392505050565b600063ffffffff808316818516808303821115613a6a57613a6a6139f7565b01949350505050565b8135613a7e81613786565b63ffffffff811690508154817fffffffffffffffffffffffffffffffffffffffffffffffffffffffff0000000082161783556020840135613abe81613786565b67ffffffff000000008160201b16905080837fffffffffffffffffffffffffffffffffffffffffffffffff000000000000000084161717845560408501356fffffffffffffffffffffffffffffffff81168114613b1a57600080fd5b77ffffffffffffffffffffffffffffffff00000000000000008160401b16847fffffffffffffffff0000000000000000000000000000000000000000000000008516178317178555505050505050565b60008219821115613b7d57613b7d6139f7565b500190565b600067ffffffffffffffff808316818516808303821115613a6a57613a6a6139f7565b600082821015613bb757613bb76139f7565b500390565b600060208284031215613bce57600080fd5b5051919050565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203613c0657613c066139f7565b5060010190565b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615613c4557613c456139f7565b500290565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b60005b83811015613c94578181015183820152602001613c7c565b838111156118765750506000910152565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000815260008351613cdd816017850160208801613c79565b7f206973206d697373696e6720726f6c65200000000000000000000000000000006017918401918201528351613d1a816028840160208801613c79565b01602801949350505050565b6020815260008251806020840152613d45816040850160208701613c79565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169190910160400192915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600081613db557613db56139f7565b507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff019056fea2646970667358221220bb600dd34476710a183007271131a1d9deb1d206dfedd457e91cb1ba89662cc364736f6c634300080d0033496e697469616c697a61626c653a20636f6e747261637420697320616c726561

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106102925760003560e01c806391d1485411610160578063d50b31eb116100d8578063ef5cfb8c1161008c578063f316600711610071578063f316600714610792578063f6ed2017146107a5578063f8c8765e146107b857600080fd5b8063ef5cfb8c1461076c578063f02fb14f1461077f57600080fd5b8063d6565a2d116100bd578063d6565a2d146106fb578063dace18fc14610746578063dcc279c81461075957600080fd5b8063d50b31eb146106d5578063d547741f146106e857600080fd5b8063bb1953fe1161012f578063be9a655511610114578063be9a65551461068a578063bf975f1414610692578063c43a683d146106a557600080fd5b8063bb1953fe14610646578063be74baf21461064e57600080fd5b806391d14854146105c65780639e6090051461060c578063a217fddf1461062c578063b9b8af0b1461063457600080fd5b8063354284f21161020e578063684931ed116101c257806379a6d51f116101a757806379a6d51f146104885780637d94792a1461050a5780638c23f80c1461051357600080fd5b8063684931ed14610460578063753d02a11461048057600080fd5b806341d307b3116101f357806341d307b3146103e857806348ea7002146103fb5780634a7fce751461045757600080fd5b8063354284f21461039057806336568abe146103d557600080fd5b80631f2698ab11610265578063232d1ea91161024a578063232d1ea914610339578063248a9ca31461034c5780632f2ff15d1461037d57600080fd5b80631f2698ab146102e4578063204597e0146102f157600080fd5b806301ffc9a7146102975780630cc62942146102bf578063114bf2e3146102d45780631a2249e3146102dc575b600080fd5b6102aa6102a5366004613744565b6107cb565b60405190151581526020015b60405180910390f35b6102d26102cd3660046137b0565b610864565b005b6102d2610a1f565b6102d2610ad2565b6097546102aa9060ff1681565b6103046102ff3660046137e6565b610d38565b6040805163ffffffff94851681529390921660208401526fffffffffffffffffffffffffffffffff16908201526060016102b6565b6102d2610347366004613821565b610d89565b61036f61035a3660046137e6565b60009081526065602052604090206001015490565b6040519081526020016102b6565b6102d261038b36600461385a565b6110b7565b609a546103b09073ffffffffffffffffffffffffffffffffffffffff1681565b60405173ffffffffffffffffffffffffffffffffffffffff90911681526020016102b6565b6102d26103e336600461385a565b6110dc565b6097546102aa9062010000900460ff1681565b61040361118f565b6040516102b69190600060a08201905061ffff8351168252602083015163ffffffff808216602085015280604086015116604085015280606086015116606085015250506080830151608083015292915050565b61036f60995481565b609b546103b09073ffffffffffffffffffffffffffffffffffffffff1681565b6102d26112e7565b6104d961049636600461387f565b609f6020526000908152604090205461ffff81169063ffffffff620100008204811691660100000000000081048216916a01000000000000000000009091041684565b6040805161ffff909516855263ffffffff9384166020860152918316918401919091521660608201526080016102b6565b61036f60985481565b61058661052136600461389c565b60a0602052600090815260409020805460019091015463ffffffff8083169264010000000081048216926801000000000000000082048316926c0100000000000000000000000083048116927001000000000000000000000000000000009004169086565b6040805163ffffffff97881681529587166020870152938616938501939093529084166060840152909216608082015260a081019190915260c0016102b6565b6102aa6105d436600461385a565b600091825260656020908152604080842073ffffffffffffffffffffffffffffffffffffffff93909316845291905290205460ff1690565b609c546103b09073ffffffffffffffffffffffffffffffffffffffff1681565b61036f600081565b6097546102aa90610100900460ff1681565b6102d26112f2565b609754610671906b010000000000000000000000900467ffffffffffffffff1681565b60405167ffffffffffffffff90911681526020016102b6565b6102d26113b4565b6102d26106a036600461389c565b61169a565b6097546106c090670100000000000000900463ffffffff1681565b60405163ffffffff90911681526020016102b6565b6102d26106e336600461389c565b6116ed565b6102d26106f636600461385a565b611740565b61070e6107093660046137e6565b611765565b6040805163ffffffff96871681529486166020860152928516928401929092529092166060820152608081019190915260a0016102b6565b6102d26107543660046138b9565b6117c9565b6102d26107673660046138d5565b61187c565b6102d261077a36600461389c565b6118f9565b6102d261078d3660046138f7565b611b71565b6102d26107a036600461389c565b611cb0565b61036f6107b336600461389c565b611ed3565b6102d26107c636600461396c565b611f9b565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f7965db0b00000000000000000000000000000000000000000000000000000000148061085e57507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316145b92915050565b600061086f816120d6565b609d5463ffffffff8416106108c957609d546040517f391b850400000000000000000000000000000000000000000000000000000000815263ffffffff808616600483015290911660248201526044015b60405180910390fd5b60975460ff16156108dd576108dd436120e3565b609d8363ffffffff16815481106108f6576108f66139c8565b6000918252602090912001546097805463ffffffff92831692600791610929918591670100000000000000900416613a26565b92506101000a81548163ffffffff021916908363ffffffff16021790555081600001602081019061095a919061387f565b6097805460079061097d908490670100000000000000900463ffffffff16613a4b565b92506101000a81548163ffffffff021916908363ffffffff16021790555081609d8463ffffffff16815481106109b5576109b56139c8565b9060005260206000200181816109cb9190613a73565b5050609754670100000000000000900463ffffffff16600003610a1a576040517fa940695b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b505050565b6000610a2a816120d6565b600160996000828254610a3d9190613b6a565b9091555050609b546099546040517fa9df851a00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff9092169163a9df851a91610a9d9160040190815260200190565b600060405180830381600087803b158015610ab757600080fd5b505af1158015610acb573d6000803e3d6000fd5b5050505050565b60975460ff16610b0e576040517f5ca1772d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6097544290610b39906b010000000000000000000000900467ffffffffffffffff1662014370613b82565b67ffffffffffffffff161115610bba576097544290610b74906b010000000000000000000000900467ffffffffffffffff1662014370613b82565b6040517f1d6fa01800000000000000000000000000000000000000000000000000000000815267ffffffffffffffff9283166004820152911660248201526044016108c0565b610bc3436120e3565b6000610bcd6122ba565b609e8054600181018255600091909152815160029091027fcfe2a20ff701a1f3e14f63bd70d6c6bc6fba8172ec6d5a505cdab3927c0a9de68101805460208501516040860151606087015163ffffffff9081166c01000000000000000000000000027fffffffffffffffffffffffffffffffff00000000ffffffffffffffffffffffff9282166801000000000000000002929092167fffffffffffffffffffffffffffffffff0000000000000000ffffffffffffffff938216640100000000027fffffffffffffffffffffffffffffffffffffffffffffffff00000000000000009095169190971617929092171693909317929092179091556080909101517fcfe2a20ff701a1f3e14f63bd70d6c6bc6fba8172ec6d5a505cdab3927c0a9de790910155506097805467ffffffffffffffff42166b010000000000000000000000027fffffffffffffffffffffffffff0000000000000000ffffffffffffffffffffff909116179055565b609d8181548110610d4857600080fd5b60009182526020909120015463ffffffff8082169250640100000000820416906801000000000000000090046fffffffffffffffffffffffffffffffff1683565b609754610100900460ff1615610dcb576040517f5a68cfba00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60975460ff16610e07576040517f5ca1772d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b609a5473ffffffffffffffffffffffffffffffffffffffff16338114610e77576040517f16cece4800000000000000000000000000000000000000000000000000000000815233600482015273ffffffffffffffffffffffffffffffffffffffff821660248201526044016108c0565b73ffffffffffffffffffffffffffffffffffffffff8316600090815260a06020526040902080544390640100000000900463ffffffff1615610f9e576040805160c081018252835463ffffffff80821683526401000000008204811660208401526801000000000000000082048116938301939093526c0100000000000000000000000081048316606083015270010000000000000000000000000000000090049091166080820152600183015460a08201526000908190610f38906124e9565b85547fffffffffffffffffffffffffffffffff00000000ffffffffffffffffffffffff166c0100000000000000000000000063ffffffff8416021786556001860180549294509092508291600090610f91908490613b6a565b9091555061101d92505050565b81547fffffffffffffffffffffffffffffffffffffffffffffffff00000000ffffffff1664010000000063ffffffff831602178255610fdb612540565b825463ffffffff919091166c01000000000000000000000000027fffffffffffffffffffffffffffffffff00000000ffffffffffffffffffffffff9091161782555b815463ffffffff82811668010000000000000000027fffffffffffffffffffffffffffffffffffffffff00000000ffffffff0000000090921690861617178255609e5461106b906001613b6a565b825463ffffffff91909116700100000000000000000000000000000000027fffffffffffffffffffffffff00000000ffffffffffffffffffffffffffffffff9091161790915550505050565b6000828152606560205260409020600101546110d2816120d6565b610a1a83836125f2565b73ffffffffffffffffffffffffffffffffffffffff81163314611181576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201527f20726f6c657320666f722073656c66000000000000000000000000000000000060648201526084016108c0565b61118b82826126e6565b5050565b6040805160a08101825260008082526020808301829052828401829052606080840183905260808085018490526098546097546301000000900463ffffffff908116808752609f865295889020885193840189525461ffff81168452620100008104821695840195909552660100000000000085048116978301979097526a01000000000000000000009093049095169085015291925b806060015163ffffffff1643111561127257611243600183613a4b565b600084815260209020909250925061126b83826060015160016112669190613a4b565b6127a1565b9050611226565b805161ffff16845263ffffffff8083166020860152606082015161129891439116613ba5565b63ffffffff1660408501528051609d8054909161ffff169081106112be576112be6139c8565b600091825260209091200154640100000000900463ffffffff1660608501525050608082015290565b6112f0436120e3565b565b60006112fd816120d6565b60975460ff161561131157611311436120e3565b609b546099546040517fff5bf7f9000000000000000000000000000000000000000000000000000000008152306004820152602481019190915273ffffffffffffffffffffffffffffffffffffffff9091169063ff5bf7f990604401602060405180830381865afa15801561138a573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113ae9190613bbc565b60985550565b60006113bf816120d6565b60975460ff16156113fc576040517f868acf1800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60975462010000900460ff1661143e576040517ff865030d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b609754670100000000000000900463ffffffff1660000361148b576040517fa940695b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6099546000036114c7576040517fb1b19e3700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b609b546099546040517fff5bf7f9000000000000000000000000000000000000000000000000000000008152306004820152602481019190915273ffffffffffffffffffffffffffffffffffffffff9091169063ff5bf7f990604401602060405180830381865afa158015611540573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115649190613bbc565b609881905561157390436127a1565b6097805463ffffffff630100000090910481166000908152609f602090815260409182902085518154928701519387015160609097015185166a0100000000000000000000027fffffffffffffffffffffffffffffffffffff00000000ffffffffffffffffffff978616660100000000000002979097167fffffffffffffffffffffffffffffffffffff0000000000000000ffffffffffff9490951662010000027fffffffffffffffffffffffffffffffffffffffffffffffffffff00000000000090931661ffff9091161791909117919091169190911792909217909155805467ffffffffffffffff42166b010000000000000000000000027fffffffffffffffffffffffffff0000000000000000ffffffffffffffffffff0090911617600117905550565b60006116a5816120d6565b50609a80547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b60006116f8816120d6565b50609b80547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b60008281526065602052604090206001015461175b816120d6565b610a1a83836126e6565b609e818154811061177557600080fd5b60009182526020909120600290910201805460019091015463ffffffff808316935064010000000083048116926801000000000000000081048216926c010000000000000000000000009091049091169085565b60006117d4816120d6565b60975460ff16156117e8576117e8436120e3565b6117f5602083018361387f565b60978054600790611818908490670100000000000000900463ffffffff16613a4b565b825463ffffffff9182166101009390930a928302919092021990911617905550609d805460018101825560009190915282907fd26e832454299e9fabb89e0e5fffdc046d4e14431bc1bf607ffb2e8a1ddecf7b016118768282613a73565b50505050565b6000611887816120d6565b60978054831515610100027fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ff9091161790556040517f87bb6d693982ad6ba61f7f20208b89de85ccf103aae04d94c07ae437d46a59b3906118ed90841515815260200190565b60405180910390a15050565b609754610100900460ff161561193b576040517f5a68cfba00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b73ffffffffffffffffffffffffffffffffffffffff8116600090815260a060208181526040808420815160c081018352815463ffffffff808216835264010000000082048116958301959095526801000000000000000081048516938201939093526c010000000000000000000000008304841660608201527001000000000000000000000000000000009092049092166080820152600182015492810192909252919081906119ea906124e9565b915091508260010154816119fe9190613b6a565b835460006001808701919091554363ffffffff90811668010000000000000000027fffffffffffffffffffffffffffffffffffffffff00000000ffffffffffffffff9187166c0100000000000000000000000002919091167fffffffffffffffffffffffffffffffff0000000000000000ffffffffffffffff90931692909217919091178555609e54919250611a949190613b6a565b835463ffffffff91909116700100000000000000000000000000000000027fffffffffffffffffffffffff00000000ffffffffffffffffffffffffffffffff909116178355801561187657609c546040517f40c10f1900000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff868116600483015260248201849052909116906340c10f1990604401600060405180830381600087803b158015611b5357600080fd5b505af1158015611b67573d6000803e3d6000fd5b5050505050505050565b6000611b7c816120d6565b611b88609d60006136f0565b609780547fffffffffffffffffffffffffffffffffffffffffff00000000ffffffffffffff16905560005b82811015611c7d5736848483818110611bce57611bce6139c8565b606002919091019150611be69050602082018261387f565b60978054600790611c09908490670100000000000000900463ffffffff16613a4b565b825463ffffffff9182166101009390930a928302919092021990911617905550609d805460018101825560009190915281907fd26e832454299e9fabb89e0e5fffdc046d4e14431bc1bf607ffb2e8a1ddecf7b01611c678282613a73565b5050508080611c7590613bd5565b915050611bb3565b5050609780547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ffff16620100001790555050565b60975460985463ffffffff630100000090920482166000818152609f602090815260408083208151608081018352905461ffff81168252620100008104881682850152660100000000000081048816828401526a0100000000000000000000900487166060820190815273ffffffffffffffffffffffffffffffffffffffff8916855260a090935292209051815493959293919290811668010000000000000000909204161115611db0575b6060820151815463ffffffff918216680100000000000000009091049091161115611dab57600083815260209020600194909401939250611da48383606001516001016127a1565b9150611d5c565b611e8a565b6040820151815463ffffffff918216680100000000000000009091049091161015611e8a575b6040820151815463ffffffff918216680100000000000000009091049091161015611e8a5763ffffffff7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff9094018481166000908152609f60209081526040918290208251608081018452905461ffff81168252620100008104891692820192909252660100000000000082048816928101929092526a010000000000000000000090049095166060860152939150611dd6565b805463ffffffff9094166c01000000000000000000000000027fffffffffffffffffffffffffffffffff00000000ffffffffffffffffffffffff90941693909317909255505050565b73ffffffffffffffffffffffffffffffffffffffff8116600090815260a060208181526040808420815160c081018352815463ffffffff808216835264010000000082048116958301959095526801000000000000000081048516938201939093526c0100000000000000000000000083048416606082015270010000000000000000000000000000000090920490921660808201526001909101549181019190915281611f80826124e9565b9150508160a0015181611f939190613b6a565b949350505050565b6000611fa760016128b5565b90508015611fdc57600080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ff166101001790555b611fe4612a3b565b611fef600086612ad2565b609a805473ffffffffffffffffffffffffffffffffffffffff8087167fffffffffffffffffffffffff000000000000000000000000000000000000000092831617909255609b8054868416908316179055609c8054928516929091169190911790558015610acb57600080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ff169055604051600181527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a15050505050565b73ffffffffffffffffffffffffffffffffffffffff163b151590565b6120e08133612adc565b50565b60975463ffffffff630100000090910481166000908152609f60209081526040918290208251608081018452905461ffff81168252620100008104851692820192909252660100000000000082048416928101929092526a0100000000000000000000900490911660608201525b806060015163ffffffff168263ffffffff16111561118b576097805463ffffffff63010000008083048216600101909116027fffffffffffffffffffffffffffffffffffffffffffffffffff00000000ffffff9091161790556098546121bd9060009081526020902090565b609881905560608201516121d491906001016127a1565b60975463ffffffff630100000090910481166000908152609f6020908152604091829020845181549286015193860151606087015186166a0100000000000000000000027fffffffffffffffffffffffffffffffffffff00000000ffffffffffffffffffff918716660100000000000002919091167fffffffffffffffffffffffffffffffffffff0000000000000000ffffffffffff9590961662010000027fffffffffffffffffffffffffffffffffffffffffffffffffffff00000000000090941661ffff909216919091179290921792909216929092179190911790559050612151565b6040805160a081018252600080825260208201819052918101829052606081018290526080810191909152609e546000901561234557609e805461230090600190613ba5565b81548110612310576123106139c8565b6000918252602090912060029091020154612342906c01000000000000000000000000900463ffffffff166001613a4b565b90505b63ffffffff80821660208085018290526000918252609f90526040902054660100000000000090041682525b60975463ffffffff6301000000909104811690821610156124905763ffffffff8082166000908152609f602090815260408083208151608081018352905461ffff8116808352620100008204871694830194909452660100000000000081048616928201929092526a01000000000000000000009091049093166060840152609d80549091908110612405576124056139c8565b600091825260209182902060408051606081018252919092015463ffffffff80821683526401000000008204169382018490526fffffffffffffffffffffffffffffffff6801000000000000000090910416918101829052925061246891613c0d565b846080018181516124799190613b6a565b905250612487600184613a4b565b92505050612371565b61249b600182613a26565b63ffffffff166060830152609f60006124b5600184613a26565b63ffffffff908116825260208201929092526040908101600020546a01000000000000000000009004909116908301525090565b8051600090819063ffffffff161561252e57826080015163ffffffff16609e8054905011156125255761251b83612bae565b9094909350915050565b61251b8361300e565b612536612540565b9360009350915050565b60975463ffffffff630100000090910481166000818152609f60209081526040918290208251608081018452905461ffff81168252620100008104861692820192909252660100000000000082048516928101929092526a0100000000000000000000900490921660608301526098549091905b816060015163ffffffff164311156125ed5760009081526020902060608201516001938401936125e6918391016127a1565b91506125b4565b505090565b600082815260656020908152604080832073ffffffffffffffffffffffffffffffffffffffff8516845290915290205460ff1661118b57600082815260656020908152604080832073ffffffffffffffffffffffffffffffffffffffff85168452909152902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001660011790556126883390565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b600082815260656020908152604080832073ffffffffffffffffffffffffffffffffffffffff8516845290915290205460ff161561118b57600082815260656020908152604080832073ffffffffffffffffffffffffffffffffffffffff8516808552925280832080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b604080516080810182526000808252602082018190529181018290526060810191909152609754600090670100000000000000900463ffffffff1684816127ea576127ea613c4a565b069050600080805b609d5461ffff821610156128ab57609d8161ffff1681548110612817576128176139c8565b60009182526020909120015463ffffffff9081169250838301908516116128975761ffff811680865263ffffffff808616602088015287166040870152609d80549091908110612869576128696139c8565b60009182526020909120015463ffffffff640100000000909104811687011660608601525061085e92505050565b63ffffffff821692909201916001016127f2565b5050505092915050565b60008054610100900460ff161561296c578160ff1660011480156128d85750303b155b612964576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201527f647920696e697469616c697a656400000000000000000000000000000000000060648201526084016108c0565b506000919050565b60005460ff808416911610612a03576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201527f647920696e697469616c697a656400000000000000000000000000000000000060648201526084016108c0565b50600080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001660ff92909216919091179055600190565b600054610100900460ff166112f0576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201527f6e697469616c697a696e6700000000000000000000000000000000000000000060648201526084016108c0565b61118b82826125f2565b600082815260656020908152604080832073ffffffffffffffffffffffffffffffffffffffff8516845290915290205460ff1661118b57612b348173ffffffffffffffffffffffffffffffffffffffff1660146132ee565b612b3f8360206132ee565b604051602001612b50929190613ca5565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0818403018152908290527f08c379a00000000000000000000000000000000000000000000000000000000082526108c091600401613d26565b604080516060810182526000808252602082018190529181018290528190604080516080810182526000808252602082018190529181018290526060810191909152846060015193506000856080015163ffffffff1690506000609e8281548110612c1b57612c1b6139c8565b6000918252602090912060029091020154640100000000900463ffffffff1690505b8063ffffffff168663ffffffff161015612d445763ffffffff8087166000908152609f60209081526040918290208251608081018452905461ffff8116808352620100008204861693830193909352660100000000000081048516938201939093526a01000000000000000000009092049092166060820152609d805491955091908110612ccd57612ccd6139c8565b600091825260209182902060408051606081018252929091015463ffffffff808216845264010000000082041693830193909352680100000000000000009092046fffffffffffffffffffffffffffffffff169181018290529450612d359088908590613538565b60019096019590940193612c3d565b609e54821015612dcb57866000015163ffffffff16609e8381548110612d6c57612d6c6139c8565b9060005260206000209060020201600101540285019450609e8281548110612d9657612d966139c8565b600091825260209091206002909102015463ffffffff6c01000000000000000000000000909104169550600190910190612d44565b63ffffffff8087166000908152609f60209081526040918290208251608081018452905461ffff81168252620100008104851692820192909252660100000000000082048416928101929092526a01000000000000000000009004909116606082015292505b60975463ffffffff630100000090910481169087161015612f405763ffffffff6001969096018681166000908152609f60209081526040918290208251608081018452905461ffff81168083526201000082048c1693830193909352660100000000000081048b16938201939093526a01000000000000000000009092049098166060820152609d80549298919550918110612ecf57612ecf6139c8565b600091825260209182902060408051606081018252929091015463ffffffff808216845264010000000082041693830193909352680100000000000000009092046fffffffffffffffffffffffffffffffff169181018290529450612f379088908590613538565b85019450612e31565b6098545b836060015163ffffffff16431115613004576000908152602090206060840151600197880197612f76918391016127a1565b9350609d846000015161ffff1681548110612f9357612f936139c8565b600091825260209182902060408051606081018252929091015463ffffffff808216845264010000000082041693830193909352680100000000000000009092046fffffffffffffffffffffffffffffffff169181018290529550612ffb9089908690613538565b86019550612f44565b5050505050915091565b604080516060810182526000808252602082018190529181018290528190604080516080810182526000808252602082018190529181018290526060810191909152609854609754606087015163ffffffff6301000000909204821691161161319157856060015194505b60975463ffffffff63010000009091048116908616116131865763ffffffff8086166000908152609f60209081526040918290208251608081018452905461ffff8116808352620100008204861693830193909352660100000000000081048516938201939093526a01000000000000000000009092049092166060820152609d80549194509190811061310f5761310f6139c8565b600091825260209182902060408051606081018252929091015463ffffffff808216845264010000000082041693830193909352680100000000000000009092046fffffffffffffffffffffffffffffffff1691810182905293506131779087908490613538565b60019095019490930192613079565b600185039450613203565b60975463ffffffff630100000090910481166000818152609f60209081526040918290208251608081018452905461ffff81168252620100008104861692820192909252660100000000000082048516928101929092526a010000000000000000000090049092166060830152955091505b816060015163ffffffff164311156132e6576000908152602090206060820151600195860195613235918391016127a1565b9150609d826000015161ffff1681548110613252576132526139c8565b60009182526020918290206040805160608082018352929093015463ffffffff808216855264010000000082048116958501959095526fffffffffffffffffffffffffffffffff6801000000000000000090910416908301528801519094508116908616106132e1576132dc868385604001516fffffffffffffffffffffffffffffffff16613538565b840193505b613203565b505050915091565b606060006132fd836002613c0d565b613308906002613b6a565b67ffffffffffffffff81111561332057613320613d77565b6040519080825280601f01601f19166020018201604052801561334a576020820181803683370190505b5090507f300000000000000000000000000000000000000000000000000000000000000081600081518110613381576133816139c8565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053507f7800000000000000000000000000000000000000000000000000000000000000816001815181106133e4576133e46139c8565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053506000613420846002613c0d565b61342b906001613b6a565b90505b60018111156134c8577f303132333435363738396162636465660000000000000000000000000000000085600f166010811061346c5761346c6139c8565b1a60f81b828281518110613482576134826139c8565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a90535060049490941c936134c181613da6565b905061342e565b508315613531576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e7460448201526064016108c0565b9392505050565b6000826060015163ffffffff16846040015163ffffffff161115613588576040517fbaf3f0f700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000846040015163ffffffff16846040015163ffffffff16101580156135b85750836060015163ffffffff164310155b156135d557836040015184606001510363ffffffff1690506136ae565b836040015163ffffffff16856040015163ffffffff161180156136025750836060015163ffffffff164310155b1561361f57846040015184606001510363ffffffff1690506136ae565b846040015163ffffffff16846060015163ffffffff161180156136565750846040015163ffffffff16846040015163ffffffff1610155b1561366e5750604083015163ffffffff1643036136ae565b836040015163ffffffff16856040015163ffffffff1611801561369a575043846060015163ffffffff16115b156136ae5750604084015163ffffffff1643035b670de0b6b3a76400007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8651168483670de0b6b3a7640000020202049150509392505050565b50805460008255906000526020600020908101906120e091905b808211156137405780547fffffffffffffffff00000000000000000000000000000000000000000000000016815560010161370a565b5090565b60006020828403121561375657600080fd5b81357fffffffff000000000000000000000000000000000000000000000000000000008116811461353157600080fd5b63ffffffff811681146120e057600080fd5b6000606082840312156137aa57600080fd5b50919050565b600080608083850312156137c357600080fd5b82356137ce81613786565b91506137dd8460208501613798565b90509250929050565b6000602082840312156137f857600080fd5b5035919050565b73ffffffffffffffffffffffffffffffffffffffff811681146120e057600080fd5b6000806040838503121561383457600080fd5b823561383f816137ff565b9150602083013561384f81613786565b809150509250929050565b6000806040838503121561386d57600080fd5b82359150602083013561384f816137ff565b60006020828403121561389157600080fd5b813561353181613786565b6000602082840312156138ae57600080fd5b8135613531816137ff565b6000606082840312156138cb57600080fd5b6135318383613798565b6000602082840312156138e757600080fd5b8135801515811461353157600080fd5b6000806020838503121561390a57600080fd5b823567ffffffffffffffff8082111561392257600080fd5b818501915085601f83011261393657600080fd5b81358181111561394557600080fd5b86602060608302850101111561395a57600080fd5b60209290920196919550909350505050565b6000806000806080858703121561398257600080fd5b843561398d816137ff565b9350602085013561399d816137ff565b925060408501356139ad816137ff565b915060608501356139bd816137ff565b939692955090935050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600063ffffffff83811690831681811015613a4357613a436139f7565b039392505050565b600063ffffffff808316818516808303821115613a6a57613a6a6139f7565b01949350505050565b8135613a7e81613786565b63ffffffff811690508154817fffffffffffffffffffffffffffffffffffffffffffffffffffffffff0000000082161783556020840135613abe81613786565b67ffffffff000000008160201b16905080837fffffffffffffffffffffffffffffffffffffffffffffffff000000000000000084161717845560408501356fffffffffffffffffffffffffffffffff81168114613b1a57600080fd5b77ffffffffffffffffffffffffffffffff00000000000000008160401b16847fffffffffffffffff0000000000000000000000000000000000000000000000008516178317178555505050505050565b60008219821115613b7d57613b7d6139f7565b500190565b600067ffffffffffffffff808316818516808303821115613a6a57613a6a6139f7565b600082821015613bb757613bb76139f7565b500390565b600060208284031215613bce57600080fd5b5051919050565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203613c0657613c066139f7565b5060010190565b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615613c4557613c456139f7565b500290565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b60005b83811015613c94578181015183820152602001613c7c565b838111156118765750506000910152565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000815260008351613cdd816017850160208801613c79565b7f206973206d697373696e6720726f6c65200000000000000000000000000000006017918401918201528351613d1a816028840160208801613c79565b01602801949350505050565b6020815260008251806020840152613d45816040850160208701613c79565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169190910160400192915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600081613db557613db56139f7565b507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff019056fea2646970667358221220bb600dd34476710a183007271131a1d9deb1d206dfedd457e91cb1ba89662cc364736f6c634300080d0033

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading

A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.