Contract 0xd8219423f5c322adb03e20f66c8c91cdda2c637e

  Note: Our ETH balance display is temporarily unavailable. Please check back later.

Contract Overview

Balance:
Txn Hash Method
Block
From
To
Value
0xfcb1d5c46f2ca8301f06f39c198a8983e0814f4603e905c19edadcdf9ea8b2b00x60806040176155722023-11-22 13:20:12180 days 15 hrs ago0xd866b2332d4383c1bf719732177e2d9109c99dbc IN  Create: GamesPlayerPropsReceiver0 ETH0.0000000241190.00001
[ Download CSV Export 
Parent Txn Hash Block From To Value
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
GamesPlayerPropsReceiver

Compiler Version
v0.8.4+commit.c7e474f2

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 9 : GamesPlayerPropsReceiver.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "@openzeppelin/contracts-upgradeable/security/PausableUpgradeable.sol";
import "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol";

// internal
import "../../utils/proxy/solidity-0.8.0/ProxyOwned.sol";
import "../../utils/proxy/solidity-0.8.0/ProxyPausable.sol";

// interface
import "../../interfaces/IGamesPlayerProps.sol";
import "../../interfaces/ITherundownConsumer.sol";

/// @title Recieve player props
/// @author gruja
contract GamesPlayerPropsReceiver is Initializable, ProxyOwned, ProxyPausable {
    IGamesPlayerProps public playerProps;
    ITherundownConsumer public consumer;

    mapping(address => bool) public whitelistedAddresses;
    mapping(uint => mapping(uint8 => bool)) public isValidOptionPerSport;
    mapping(uint => uint[]) public optionsPerSport;

    address public wrapperAddress;

    /// @notice public initialize proxy method
    /// @param _owner future owner of a contract
    function initialize(
        address _owner,
        address _consumer,
        address _playerProps,
        address[] memory _whitelistAddresses
    ) public initializer {
        setOwner(_owner);
        consumer = ITherundownConsumer(_consumer);
        playerProps = IGamesPlayerProps(_playerProps);

        for (uint i; i < _whitelistAddresses.length; i++) {
            whitelistedAddresses[_whitelistAddresses[i]] = true;
        }
    }

    /* ========== PLAYER PROPS R. MAIN FUNCTIONS ========== */

    /// @notice receive player props and create markets
    /// @param _gameIds for which gameids market is created (Boston vs Miami etc.)
    /// @param _playerIds for which playerids market is created (12345, 678910 etc.)
    /// @param _options for which options market is created (points, assists, etc.)
    /// @param _lines number of points assists per option
    /// @param _linesOdds odds for lines
    function fulfillPlayerProps(
        bytes32[] memory _gameIds,
        uint64[] memory _playerIds,
        uint8[] memory _options,
        uint16[] memory _lines,
        int24[] memory _linesOdds
    ) external isAddressWhitelisted {
        for (uint i = 0; i < _gameIds.length; i++) {
            uint sportId = consumer.sportsIdPerGame(_gameIds[i]);
            if (isValidOptionPerSport[sportId][_options[i]]) {
                IGamesPlayerProps.PlayerProps memory player = _castToPlayerProps(
                    i,
                    _gameIds[i],
                    _playerIds[i],
                    _options[i],
                    _lines[i],
                    _linesOdds
                );
                // game needs to be fulfilled and market needed to be created
                if (consumer.gameFulfilledCreated(_gameIds[i]) && consumer.marketPerGameId(_gameIds[i]) != address(0)) {
                    playerProps.obtainPlayerProps(player, sportId);
                }
            }
        }
    }

    /// @notice receive player props odds from CL Node
    /// @param _playerProps bytes array for IGamesPlayerProps.PlayerProps
    function fulfillPlayerPropsCL(bytes[] memory _playerProps) external onlyWrapper {
        for (uint i = 0; i < _playerProps.length; i++) {
            IGamesPlayerProps.PlayerProps memory player = abi.decode(_playerProps[i], (IGamesPlayerProps.PlayerProps));
            uint sportId = consumer.sportsIdPerGame(player.gameId);
            // game needs to be fulfilled and market needed to be created and valid option per sport
            if (
                consumer.gameFulfilledCreated(player.gameId) &&
                consumer.marketPerGameId(player.gameId) != address(0) &&
                isValidOptionPerSport[sportId][player.option]
            ) {
                playerProps.obtainPlayerProps(player, sportId);
            }
        }
    }

    /// @notice receive resolve properties for markets
    /// @param _gameIds for which gameids market is resolving (Boston vs Miami etc.)
    /// @param _playerIds for which playerids market is resolving (12345, 678910 etc.)
    /// @param _options options (assists, points etc.)
    /// @param _scores number of points assists etc. which player had
    /// @param _statuses resolved statuses
    function fulfillResultOfPlayerProps(
        bytes32[] memory _gameIds,
        uint64[] memory _playerIds,
        uint8[] memory _options,
        uint16[] memory _scores,
        uint8[] memory _statuses
    ) external isAddressWhitelisted {
        for (uint i = 0; i < _gameIds.length; i++) {
            if (playerProps.createFulfilledForPlayerProps(_gameIds[i], _playerIds[i], _options[i])) {
                IGamesPlayerProps.PlayerPropsResolver memory playerResult = _castToPlayerPropsResolver(
                    _gameIds[i],
                    _playerIds[i],
                    _options[i],
                    _scores[i],
                    _statuses[i]
                );
                // game needs to be resolved or canceled
                if (consumer.isGameResolvedOrCanceled(_gameIds[i])) {
                    playerProps.resolvePlayerProps(playerResult);
                }
            }
        }
    }

    /// @notice fulfill all data necessary to resolve player props markets with CL node
    /// @param _playerProps array player Props
    function fulfillPlayerPropsCLResolved(bytes[] memory _playerProps) external onlyWrapper {
        for (uint i = 0; i < _playerProps.length; i++) {
            IGamesPlayerProps.PlayerPropsResolver memory playerResult = abi.decode(
                _playerProps[i],
                (IGamesPlayerProps.PlayerPropsResolver)
            );
            if (playerProps.createFulfilledForPlayerProps(playerResult.gameId, playerResult.playerId, playerResult.option)) {
                // game needs to be resolved or canceled
                if (consumer.isGameResolvedOrCanceled(playerResult.gameId)) {
                    playerProps.resolvePlayerProps(playerResult);
                }
            }
        }
    }

    /* ========== VIEWS ========== */

    function getOptionsPerSport(uint _sportsId) public view returns (uint[] memory) {
        return optionsPerSport[_sportsId];
    }

    /* ========== INTERNAL FUNCTIONS ========== */

    function _castToPlayerProps(
        uint index,
        bytes32 _gameId,
        uint64 _playerId,
        uint8 _option,
        uint16 _line,
        int24[] memory _linesOdds
    ) internal returns (IGamesPlayerProps.PlayerProps memory) {
        return
            IGamesPlayerProps.PlayerProps(
                _gameId,
                _playerId,
                _option,
                _line,
                _linesOdds[index * 2],
                _linesOdds[index * 2 + 1]
            );
    }

    function _castToPlayerPropsResolver(
        bytes32 _gameId,
        uint64 _playerId,
        uint8 _option,
        uint16 _score,
        uint8 _statusId
    ) internal returns (IGamesPlayerProps.PlayerPropsResolver memory) {
        return IGamesPlayerProps.PlayerPropsResolver(_gameId, _playerId, _option, _score, _statusId);
    }

    /* ========== OWNER MANAGEMENT FUNCTIONS ========== */

    /// @notice Sets valid/invalid options per sport
    /// @param _sportId Sport id
    /// @param _options Option ids
    /// @param _flag Invalid/valid flag
    function setValidOptionsPerSport(
        uint _sportId,
        uint8[] memory _options,
        bool _flag
    ) external onlyOwner {
        require(consumer.supportedSport(_sportId), "SportId is not supported");
        for (uint index = 0; index < _options.length; index++) {
            // Only if current flag is different, if same, skip it
            if (isValidOptionPerSport[_sportId][_options[index]] != _flag) {
                // Update the option validity flag
                isValidOptionPerSport[_sportId][_options[index]] = _flag;

                // Update the options array
                if (_flag) {
                    optionsPerSport[_sportId].push(_options[index]);
                } else {
                    // Find and remove the option from the array
                    uint[] storage optionsArray = optionsPerSport[_sportId];
                    for (uint i = 0; i < optionsArray.length; i++) {
                        if (optionsArray[i] == _options[index]) {
                            // Swap with the last element and remove
                            optionsArray[i] = optionsArray[optionsArray.length - 1];
                            optionsArray.pop();
                            break;
                        }
                    }
                }

                // Emit the event
                emit IsValidOptionPerSport(_sportId, _options[index], _flag);
            }
        }
    }

    /// @notice sets the consumer contract address, which only owner can execute
    /// @param _consumer address of a consumer contract
    function setConsumerAddress(address _consumer) external onlyOwner {
        require(_consumer != address(0), "Invalid address");
        consumer = ITherundownConsumer(_consumer);
        emit NewConsumerAddress(_consumer);
    }

    /// @notice sets the wrepper address
    /// @param _wrapper address of a wrapper contract
    function setWrapperAddress(address _wrapper) external onlyOwner {
        require(_wrapper != address(0), "Invalid address");
        wrapperAddress = _wrapper;
        emit NewWrapperAddress(_wrapper);
    }

    /// @notice sets the PlayerProps contract address, which only owner can execute
    /// @param _playerProps address of a player props contract
    function setPlayerPropsAddress(address _playerProps) external onlyOwner {
        require(_playerProps != address(0), "Invalid address");
        playerProps = IGamesPlayerProps(_playerProps);
        emit NewPlayerPropsAddress(_playerProps);
    }

    /// @notice adding/removing whitelist address depending on a flag
    /// @param _whitelistAddresses addresses that needed to be whitelisted/ ore removed from WL
    /// @param _flag adding or removing from whitelist (true: add, false: remove)
    function addToWhitelist(address[] memory _whitelistAddresses, bool _flag) external onlyOwner {
        require(_whitelistAddresses.length > 0, "Whitelisted addresses cannot be empty");
        for (uint256 index = 0; index < _whitelistAddresses.length; index++) {
            require(_whitelistAddresses[index] != address(0), "Can't be zero address");
            // only if current flag is different, if same skip it
            if (whitelistedAddresses[_whitelistAddresses[index]] != _flag) {
                whitelistedAddresses[_whitelistAddresses[index]] = _flag;
                emit AddedIntoWhitelist(_whitelistAddresses[index], _flag);
            }
        }
    }

    /* ========== MODIFIERS ========== */

    modifier isAddressWhitelisted() {
        require(whitelistedAddresses[msg.sender], "Whitelisted address");
        _;
    }

    modifier onlyWrapper() {
        require(msg.sender == wrapperAddress, "Invalid wrapper");
        _;
    }

    /* ========== EVENTS ========== */

    event NewWrapperAddress(address _wrapper);
    event NewPlayerPropsAddress(address _playerProps);
    event NewConsumerAddress(address _consumer);
    event AddedIntoWhitelist(address _whitelistAddress, bool _flag);
    event IsValidOptionPerSport(uint _sport, uint8 _option, bool _flag);
}

File 2 of 9 : PausableUpgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (security/Pausable.sol)

pragma solidity ^0.8.0;

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

/**
 * @dev Contract module which allows children to implement an emergency stop
 * mechanism that can be triggered by an authorized account.
 *
 * This module is used through inheritance. It will make available the
 * modifiers `whenNotPaused` and `whenPaused`, which can be applied to
 * the functions of your contract. Note that they will not be pausable by
 * simply including this module, only once the modifiers are put in place.
 */
abstract contract PausableUpgradeable is Initializable, ContextUpgradeable {
    /**
     * @dev Emitted when the pause is triggered by `account`.
     */
    event Paused(address account);

    /**
     * @dev Emitted when the pause is lifted by `account`.
     */
    event Unpaused(address account);

    bool private _paused;

    /**
     * @dev Initializes the contract in unpaused state.
     */
    function __Pausable_init() internal onlyInitializing {
        __Context_init_unchained();
        __Pausable_init_unchained();
    }

    function __Pausable_init_unchained() internal onlyInitializing {
        _paused = false;
    }

    /**
     * @dev Returns true if the contract is paused, and false otherwise.
     */
    function paused() public view virtual returns (bool) {
        return _paused;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is not paused.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    modifier whenNotPaused() {
        require(!paused(), "Pausable: paused");
        _;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is paused.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    modifier whenPaused() {
        require(paused(), "Pausable: not paused");
        _;
    }

    /**
     * @dev Triggers stopped state.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    function _pause() internal virtual whenNotPaused {
        _paused = true;
        emit Paused(_msgSender());
    }

    /**
     * @dev Returns to normal state.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    function _unpause() internal virtual whenPaused {
        _paused = false;
        emit Unpaused(_msgSender());
    }
    uint256[49] private __gap;
}

File 3 of 9 : Initializable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (proxy/utils/Initializable.sol)

pragma solidity ^0.8.0;

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 a proxied contract can't have 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.
 *
 * 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 initialize the implementation contract, you can either invoke the
 * initializer manually, or you can include a constructor to automatically mark it as initialized when it is deployed:
 *
 * [.hljs-theme-light.nopadding]
 * ```
 * /// @custom:oz-upgrades-unsafe-allow constructor
 * constructor() initializer {}
 * ```
 * ====
 */
abstract contract Initializable {
    /**
     * @dev Indicates that the contract has been initialized.
     */
    bool private _initialized;

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

    /**
     * @dev Modifier to protect an initializer function from being invoked twice.
     */
    modifier initializer() {
        // 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, because in other contexts the
        // contract may have been reentered.
        require(_initializing ? _isConstructor() : !_initialized, "Initializable: contract is already initialized");

        bool isTopLevelCall = !_initializing;
        if (isTopLevelCall) {
            _initializing = true;
            _initialized = true;
        }

        _;

        if (isTopLevelCall) {
            _initializing = false;
        }
    }

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

    function _isConstructor() private view returns (bool) {
        return !AddressUpgradeable.isContract(address(this));
    }
}

File 4 of 9 : ProxyOwned.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

// Clone of syntetix contract without constructor
contract ProxyOwned {
    address public owner;
    address public nominatedOwner;
    bool private _initialized;
    bool private _transferredAtInit;

    function setOwner(address _owner) public {
        require(_owner != address(0), "Owner address cannot be 0");
        require(!_initialized, "Already initialized, use nominateNewOwner");
        _initialized = true;
        owner = _owner;
        emit OwnerChanged(address(0), _owner);
    }

    function nominateNewOwner(address _owner) external onlyOwner {
        nominatedOwner = _owner;
        emit OwnerNominated(_owner);
    }

    function acceptOwnership() external {
        require(msg.sender == nominatedOwner, "You must be nominated before you can accept ownership");
        emit OwnerChanged(owner, nominatedOwner);
        owner = nominatedOwner;
        nominatedOwner = address(0);
    }

    function transferOwnershipAtInit(address proxyAddress) external onlyOwner {
        require(proxyAddress != address(0), "Invalid address");
        require(!_transferredAtInit, "Already transferred");
        owner = proxyAddress;
        _transferredAtInit = true;
        emit OwnerChanged(owner, proxyAddress);
    }

    modifier onlyOwner {
        _onlyOwner();
        _;
    }

    function _onlyOwner() private view {
        require(msg.sender == owner, "Only the contract owner may perform this action");
    }

    event OwnerNominated(address newOwner);
    event OwnerChanged(address oldOwner, address newOwner);
}

File 5 of 9 : ProxyPausable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

// Inheritance
import "./ProxyOwned.sol";

// Clone of syntetix contract without constructor

contract ProxyPausable is ProxyOwned {
    uint public lastPauseTime;
    bool public paused;

    

    /**
     * @notice Change the paused state of the contract
     * @dev Only the contract owner may call this.
     */
    function setPaused(bool _paused) external onlyOwner {
        // Ensure we're actually changing the state before we do anything
        if (_paused == paused) {
            return;
        }

        // Set our paused state.
        paused = _paused;

        // If applicable, set the last pause time.
        if (paused) {
            lastPauseTime = block.timestamp;
        }

        // Let everyone know that our pause state has changed.
        emit PauseChanged(paused);
    }

    event PauseChanged(bool isPaused);

    modifier notPaused {
        require(!paused, "This action cannot be performed while the contract is paused");
        _;
    }
}

File 6 of 9 : IGamesPlayerProps.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

interface IGamesPlayerProps {
    struct PlayerProps {
        bytes32 gameId;
        uint64 playerId;
        uint8 option;
        uint16 line;
        int24 overOdds;
        int24 underOdds;
    }

    struct PlayerPropsResolver {
        bytes32 gameId;
        uint64 playerId;
        uint8 option;
        uint16 score;
        uint8 statusId;
    }

    function obtainPlayerProps(PlayerProps memory _player, uint _sportId) external;

    function resolvePlayerProps(PlayerPropsResolver memory _result) external;

    function cancelMarketFromManager(address _market) external;

    function pauseAllPlayerPropsMarketForMain(
        address _main,
        bool _flag,
        bool _invalidOddsOnMain,
        bool _circuitBreakerMain
    ) external;

    function createFulfilledForPlayerProps(
        bytes32 gameId,
        uint64 playerId,
        uint8 option
    ) external view returns (bool);

    function cancelPlayerPropsMarketForMain(address _main) external;

    function getNormalizedOddsForMarket(address _market) external view returns (uint[] memory);

    function mainMarketChildMarketIndex(address _main, uint _index) external view returns (address);

    function numberOfChildMarkets(address _main) external view returns (uint);

    function doesSportSupportPlayerProps(uint _sportId) external view returns (bool);

    function pausedByInvalidOddsOnMain(address _main) external view returns (bool);

    function pausedByCircuitBreakerOnMain(address _main) external view returns (bool);

    function playerIdPerChildMarket(address _market) external view returns (bytes32);

    function optionIdPerChildMarket(address _market) external view returns (uint8);

    function getAllOptionsWithPlayersForGameId(bytes32 _gameId)
        external
        view
        returns (
            uint64[] memory _playerIds,
            uint8[] memory _options,
            bool[] memory _isResolved,
            address[][] memory _childMarketsPerOption
        );

    function getPlayerPropsDataForMarket(address _market)
        external
        view
        returns (
            address,
            bytes32,
            uint64,
            uint8
        );

    function getPlayerPropForOption(
        bytes32 gameId,
        uint64 playerId,
        uint8 option
    )
        external
        view
        returns (
            uint16,
            int24,
            int24,
            bool
        );

    function fulfillPlayerPropsCLResolved(bytes[] memory _playerProps) external;
}

File 7 of 9 : ITherundownConsumer.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

interface ITherundownConsumer {
    struct GameCreate {
        bytes32 gameId;
        uint256 startTime;
        int24 homeOdds;
        int24 awayOdds;
        int24 drawOdds;
        string homeTeam;
        string awayTeam;
    }

    // view functions
    function supportedSport(uint _sportId) external view returns (bool);

    function gameOnADate(bytes32 _gameId) external view returns (uint);

    function isGameResolvedOrCanceled(bytes32 _gameId) external view returns (bool);

    function getNormalizedOddsForMarket(address _market) external view returns (uint[] memory);

    function getGamesPerDatePerSport(uint _sportId, uint _date) external view returns (bytes32[] memory);

    function getGamePropsForOdds(address _market)
        external
        view
        returns (
            uint,
            uint,
            bytes32
        );

    function gameIdPerMarket(address _market) external view returns (bytes32);

    function getGameCreatedById(bytes32 _gameId) external view returns (GameCreate memory);

    function isChildMarket(address _market) external view returns (bool);

    function gameFulfilledCreated(bytes32 _gameId) external view returns (bool);

    function playerProps() external view returns (address);

    function oddsObtainer() external view returns (address);

    // write functions
    function fulfillGamesCreated(
        bytes32 _requestId,
        bytes[] memory _games,
        uint _sportsId,
        uint _date
    ) external;

    function fulfillGamesResolved(
        bytes32 _requestId,
        bytes[] memory _games,
        uint _sportsId
    ) external;

    function fulfillGamesOdds(bytes32 _requestId, bytes[] memory _games) external;

    function setPausedByCanceledStatus(address _market, bool _flag) external;

    function setGameIdPerChildMarket(bytes32 _gameId, address _child) external;

    function pauseOrUnpauseMarket(address _market, bool _pause) external;

    function pauseOrUnpauseMarketForPlayerProps(
        address _market,
        bool _pause,
        bool _invalidOdds,
        bool _circuitBreakerMain
    ) external;

    function setChildMarkets(
        bytes32 _gameId,
        address _main,
        address _child,
        bool _isSpread,
        int16 _spreadHome,
        uint24 _totalOver
    ) external;

    function resolveMarketManually(
        address _market,
        uint _outcome,
        uint8 _homeScore,
        uint8 _awayScore,
        bool _usebackupOdds
    ) external;

    function getOddsForGame(bytes32 _gameId)
        external
        view
        returns (
            int24,
            int24,
            int24
        );

    function sportsIdPerGame(bytes32 _gameId) external view returns (uint);

    function getGameStartTime(bytes32 _gameId) external view returns (uint256);

    function getLastUpdatedFromGameResolve(bytes32 _gameId) external view returns (uint40);

    function marketPerGameId(bytes32 _gameId) external view returns (address);

    function marketResolved(address _market) external view returns (bool);

    function marketCanceled(address _market) external view returns (bool);

    function invalidOdds(address _market) external view returns (bool);

    function isPausedByCanceledStatus(address _market) external view returns (bool);

    function isSportOnADate(uint _date, uint _sportId) external view returns (bool);

    function isSportTwoPositionsSport(uint _sportsId) external view returns (bool);
}

File 8 of 9 : 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 {
        __Context_init_unchained();
    }

    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;
    }
    uint256[50] private __gap;
}

File 9 of 9 : AddressUpgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Address.sol)

pragma solidity ^0.8.0;

/**
 * @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
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize, which returns 0 for contracts in
        // construction, since the code is only stored at the end of the
        // constructor execution.

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

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

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

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

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

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

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

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

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

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

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

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

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

Contract ABI

[{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"_whitelistAddress","type":"address"},{"indexed":false,"internalType":"bool","name":"_flag","type":"bool"}],"name":"AddedIntoWhitelist","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"_sport","type":"uint256"},{"indexed":false,"internalType":"uint8","name":"_option","type":"uint8"},{"indexed":false,"internalType":"bool","name":"_flag","type":"bool"}],"name":"IsValidOptionPerSport","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"_consumer","type":"address"}],"name":"NewConsumerAddress","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"_playerProps","type":"address"}],"name":"NewPlayerPropsAddress","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"_wrapper","type":"address"}],"name":"NewWrapperAddress","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"oldOwner","type":"address"},{"indexed":false,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnerChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnerNominated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bool","name":"isPaused","type":"bool"}],"name":"PauseChanged","type":"event"},{"inputs":[],"name":"acceptOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"_whitelistAddresses","type":"address[]"},{"internalType":"bool","name":"_flag","type":"bool"}],"name":"addToWhitelist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"consumer","outputs":[{"internalType":"contract ITherundownConsumer","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32[]","name":"_gameIds","type":"bytes32[]"},{"internalType":"uint64[]","name":"_playerIds","type":"uint64[]"},{"internalType":"uint8[]","name":"_options","type":"uint8[]"},{"internalType":"uint16[]","name":"_lines","type":"uint16[]"},{"internalType":"int24[]","name":"_linesOdds","type":"int24[]"}],"name":"fulfillPlayerProps","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes[]","name":"_playerProps","type":"bytes[]"}],"name":"fulfillPlayerPropsCL","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes[]","name":"_playerProps","type":"bytes[]"}],"name":"fulfillPlayerPropsCLResolved","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32[]","name":"_gameIds","type":"bytes32[]"},{"internalType":"uint64[]","name":"_playerIds","type":"uint64[]"},{"internalType":"uint8[]","name":"_options","type":"uint8[]"},{"internalType":"uint16[]","name":"_scores","type":"uint16[]"},{"internalType":"uint8[]","name":"_statuses","type":"uint8[]"}],"name":"fulfillResultOfPlayerProps","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_sportsId","type":"uint256"}],"name":"getOptionsPerSport","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"},{"internalType":"address","name":"_consumer","type":"address"},{"internalType":"address","name":"_playerProps","type":"address"},{"internalType":"address[]","name":"_whitelistAddresses","type":"address[]"}],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint8","name":"","type":"uint8"}],"name":"isValidOptionPerSport","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lastPauseTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"}],"name":"nominateNewOwner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"nominatedOwner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"optionsPerSport","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"playerProps","outputs":[{"internalType":"contract IGamesPlayerProps","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_consumer","type":"address"}],"name":"setConsumerAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"}],"name":"setOwner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_paused","type":"bool"}],"name":"setPaused","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_playerProps","type":"address"}],"name":"setPlayerPropsAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_sportId","type":"uint256"},{"internalType":"uint8[]","name":"_options","type":"uint8[]"},{"internalType":"bool","name":"_flag","type":"bool"}],"name":"setValidOptionsPerSport","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_wrapper","type":"address"}],"name":"setWrapperAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"proxyAddress","type":"address"}],"name":"transferOwnershipAtInit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"whitelistedAddresses","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"wrapperAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"}]

608060405234801561001057600080fd5b50612aa9806100206000396000f3fe608060405234801561001057600080fd5b506004361061018e5760003560e01c806379ba5097116100de578063b08c344811610097578063c1a0e03b11610071578063c1a0e03b1461039a578063c3b83f5f146103ad578063e6bfbfd8146103c0578063efe2c8a4146103d357600080fd5b8063b08c344814610361578063b4fd729614610374578063b90983d21461038757600080fd5b806379ba5097146102fe5780637df8b802146103065780638da5cb5b146103195780638dabd21e1461033257806391b4ded9146103455780639a066f5d1461034e57600080fd5b80631f2374f31161014b57806353a47bb71161012557806353a47bb71461028057806357e70092146102ab5780635c975abb146102d95780635d7fb8e2146102e657600080fd5b80631f2374f31461022c578063408ae5851461024c578063516dbd6f1461025f57600080fd5b806306c933d81461019357806313af4035146101cb578063146dc9ae146101e057806316187ad6146101f35780631627540c1461020657806316c38b3c14610219575b600080fd5b6101b66101a1366004612250565b60056020526000908152604090205460ff1681565b60405190151581526020015b60405180910390f35b6101de6101d9366004612250565b6103e6565b005b6101de6101ee36600461241b565b610526565b6101de6102013660046124d9565b61091d565b6101de610214366004612250565b610b5b565b6101de6102273660046125d8565b610bb1565b61023f61023a36600461273d565b610c27565b6040516101c2919061280a565b6101de61025a366004612301565b610c89565b61027261026d3660046127c5565b610ec5565b6040519081526020016101c2565b600154610293906001600160a01b031681565b6040516001600160a01b0390911681526020016101c2565b6101b66102b93660046127e6565b600660209081526000928352604080842090915290825290205460ff1681565b6003546101b69060ff1681565b6003546102939061010090046001600160a01b031681565b6101de610ef6565b600854610293906001600160a01b031681565b600054610293906201000090046001600160a01b031681565b6101de610340366004612350565b610ff3565b61027260025481565b6101de61035c366004612250565b6113fb565b6101de61036f36600461276d565b61147f565b600454610293906001600160a01b031681565b6101de610395366004612250565b611838565b6101de6103a83660046124d9565b6118b4565b6101de6103bb366004612250565b611b88565b6101de6103ce36600461228f565b611c7f565b6101de6103e1366004612250565b611dfb565b6001600160a01b0381166104415760405162461bcd60e51b815260206004820152601960248201527f4f776e657220616464726573732063616e6e6f7420626520300000000000000060448201526064015b60405180910390fd5b600154600160a01b900460ff16156104ad5760405162461bcd60e51b815260206004820152602960248201527f416c726561647920696e697469616c697a65642c20757365206e6f6d696e617460448201526832a732bba7bbb732b960b91b6064820152608401610438565b6001805460ff60a01b1916600160a01b179055600080546001600160a01b03831662010000810262010000600160b01b03199092169190911782556040805192835260208301919091527fb532073b38c83145e3e5135377a08bf9aab55bc0fd7c1179cd4fb995d2a5159c91015b60405180910390a150565b3360009081526005602052604090205460ff1661057b5760405162461bcd60e51b815260206004820152601360248201527257686974656c6973746564206164647265737360681b6044820152606401610438565b60005b855181101561091557600360019054906101000a90046001600160a01b03166001600160a01b031663e0b92b278783815181106105cb57634e487b7160e01b600052603260045260246000fd5b60200260200101518784815181106105f357634e487b7160e01b600052603260045260246000fd5b602002602001015187858151811061061b57634e487b7160e01b600052603260045260246000fd5b60200260200101516040518463ffffffff1660e01b815260040161065e939291909283526001600160401b0391909116602083015260ff16604082015260600190565b60206040518083038186803b15801561067657600080fd5b505afa15801561068a573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106ae91906125f4565b156109035760006107e78783815181106106d857634e487b7160e01b600052603260045260246000fd5b602002602001015187848151811061070057634e487b7160e01b600052603260045260246000fd5b602002602001015187858151811061072857634e487b7160e01b600052603260045260246000fd5b602002602001015187868151811061075057634e487b7160e01b600052603260045260246000fd5b602002602001015187878151811061077857634e487b7160e01b600052603260045260246000fd5b60200260200101516040805160a081018252600080825260208201819052918101829052606081018290526080810191909152506040805160a0810182529586526001600160401b03909416602086015260ff9283169385019390935261ffff16606084015216608082015290565b60045488519192506001600160a01b03169063489f4b979089908590811061081f57634e487b7160e01b600052603260045260246000fd5b60200260200101516040518263ffffffff1660e01b815260040161084591815260200190565b60206040518083038186803b15801561085d57600080fd5b505afa158015610871573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061089591906125f4565b1561090157600354604051630e65f27d60e01b81526101009091046001600160a01b031690630e65f27d906108ce908490600401612877565b600060405180830381600087803b1580156108e857600080fd5b505af11580156108fc573d6000803e3d6000fd5b505050505b505b8061090d816129c6565b91505061057e565b505050505050565b6008546001600160a01b031633146109695760405162461bcd60e51b815260206004820152600f60248201526e24b73b30b634b2103bb930b83832b960891b6044820152606401610438565b60005b8151811015610b5757600082828151811061099757634e487b7160e01b600052603260045260246000fd5b60200260200101518060200190518101906109b29190612610565b60035481516020830151604080850151905163e0b92b2760e01b815260048101939093526001600160401b03909116602483015260ff16604482015291925061010090046001600160a01b03169063e0b92b279060640160206040518083038186803b158015610a2157600080fd5b505afa158015610a35573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a5991906125f4565b15610b445760048054825160405163489f4b9760e01b8152928301526001600160a01b03169063489f4b979060240160206040518083038186803b158015610aa057600080fd5b505afa158015610ab4573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ad891906125f4565b15610b4457600354604051630e65f27d60e01b81526101009091046001600160a01b031690630e65f27d90610b11908490600401612877565b600060405180830381600087803b158015610b2b57600080fd5b505af1158015610b3f573d6000803e3d6000fd5b505050505b5080610b4f816129c6565b91505061096c565b5050565b610b63611e77565b600180546001600160a01b0319166001600160a01b0383169081179091556040519081527f906a1c6bd7e3091ea86693dd029a831c19049ce77f1dce2ce0bab1cacbabce229060200161051b565b610bb9611e77565b60035460ff1615158115151415610bcd5750565b6003805460ff191682151590811790915560ff1615610beb57426002555b60035460405160ff909116151581527f8fb6c181ee25a520cf3dd6565006ef91229fcfe5a989566c2a3b8c115570cec59060200161051b565b50565b600081815260076020908152604091829020805483518184028101840190945280845260609392830182828015610c7d57602002820191906000526020600020905b815481526020019060010190808311610c69575b50505050509050919050565b610c91611e77565b6000825111610cf05760405162461bcd60e51b815260206004820152602560248201527f57686974656c6973746564206164647265737365732063616e6e6f7420626520604482015264656d70747960d81b6064820152608401610438565b60005b8251811015610ec05760006001600160a01b0316838281518110610d2757634e487b7160e01b600052603260045260246000fd5b60200260200101516001600160a01b03161415610d7e5760405162461bcd60e51b815260206004820152601560248201527443616e2774206265207a65726f206164647265737360581b6044820152606401610438565b81151560056000858481518110610da557634e487b7160e01b600052603260045260246000fd5b6020908102919091018101516001600160a01b031682528101919091526040016000205460ff16151514610eae578160056000858481518110610df857634e487b7160e01b600052603260045260246000fd5b60200260200101516001600160a01b03166001600160a01b0316815260200190815260200160002060006101000a81548160ff0219169083151502179055507f58d7a3ccc34541e162fcfc87b84be7b78c34d1e1e7f15de6e4dd67d0fe70aecd838281518110610e7857634e487b7160e01b600052603260045260246000fd5b602002602001015183604051610ea59291906001600160a01b039290921682521515602082015260400190565b60405180910390a15b80610eb8816129c6565b915050610cf3565b505050565b60076020528160005260406000208181548110610ee157600080fd5b90600052602060002001600091509150505481565b6001546001600160a01b03163314610f6e5760405162461bcd60e51b815260206004820152603560248201527f596f75206d757374206265206e6f6d696e61746564206265666f726520796f7560448201527402063616e20616363657074206f776e65727368697605c1b6064820152608401610438565b60005460015460408051620100009093046001600160a01b03908116845290911660208301527fb532073b38c83145e3e5135377a08bf9aab55bc0fd7c1179cd4fb995d2a5159c910160405180910390a1600180546000805462010000600160b01b0319166001600160a01b03831662010000021790556001600160a01b0319169055565b3360009081526005602052604090205460ff166110485760405162461bcd60e51b815260206004820152601360248201527257686974656c6973746564206164647265737360681b6044820152606401610438565b60005b85518110156109155760045486516000916001600160a01b0316906370aadcc49089908590811061108c57634e487b7160e01b600052603260045260246000fd5b60200260200101516040518263ffffffff1660e01b81526004016110b291815260200190565b60206040518083038186803b1580156110ca57600080fd5b505afa1580156110de573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111029190612755565b600081815260066020526040812087519293509187908590811061113657634e487b7160e01b600052603260045260246000fd5b60209081029190910181015160ff9081168352908201929092526040016000205416156113e85760006112098389858151811061118357634e487b7160e01b600052603260045260246000fd5b60200260200101518986815181106111ab57634e487b7160e01b600052603260045260246000fd5b60200260200101518987815181106111d357634e487b7160e01b600052603260045260246000fd5b60200260200101518988815181106111fb57634e487b7160e01b600052603260045260246000fd5b602002602001015189611ef1565b60045489519192506001600160a01b0316906367674b14908a908690811061124157634e487b7160e01b600052603260045260246000fd5b60200260200101516040518263ffffffff1660e01b815260040161126791815260200190565b60206040518083038186803b15801561127f57600080fd5b505afa158015611293573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112b791906125f4565b8015611378575060045488516000916001600160a01b03169063f89c6f18908b90879081106112f657634e487b7160e01b600052603260045260246000fd5b60200260200101516040518263ffffffff1660e01b815260040161131c91815260200190565b60206040518083038186803b15801561133457600080fd5b505afa158015611348573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061136c9190612273565b6001600160a01b031614155b156113e65760035460405163909b8ab560e01b81526101009091046001600160a01b03169063909b8ab5906113b390849086906004016128c4565b600060405180830381600087803b1580156113cd57600080fd5b505af11580156113e1573d6000803e3d6000fd5b505050505b505b50806113f3816129c6565b91505061104b565b611403611e77565b6001600160a01b0381166114295760405162461bcd60e51b81526004016104389061284e565b60038054610100600160a81b0319166101006001600160a01b038416908102919091179091556040519081527f59cf4cddc1a33ae5f2e8785ba9dcc3c6e66807281882aa0afc75d385a1158cac9060200161051b565b611487611e77565b600480546040516334d2a49760e11b81529182018590526001600160a01b0316906369a5492e9060240160206040518083038186803b1580156114c957600080fd5b505afa1580156114dd573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061150191906125f4565b61154d5760405162461bcd60e51b815260206004820152601860248201527f53706f72744964206973206e6f7420737570706f7274656400000000000000006044820152606401610438565b60005b82518110156118325760008481526006602052604081208451841515929086908590811061158e57634e487b7160e01b600052603260045260246000fd5b60209081029190910181015160ff908116835290820192909252604001600020541615151461182057600084815260066020526040812084518492908690859081106115ea57634e487b7160e01b600052603260045260246000fd5b602002602001015160ff1660ff16815260200190815260200160002060006101000a81548160ff021916908315150217905550811561167d576000848152600760205260409020835184908390811061165357634e487b7160e01b600052603260045260246000fd5b602090810291909101810151825460018101845560009384529190922060ff9092169101556117a7565b6000848152600760205260408120905b81548110156117a4578483815181106116b657634e487b7160e01b600052603260045260246000fd5b602002602001015160ff168282815481106116e157634e487b7160e01b600052603260045260246000fd5b906000526020600020015414156117925781548290611702906001906129af565b8154811061172057634e487b7160e01b600052603260045260246000fd5b906000526020600020015482828154811061174b57634e487b7160e01b600052603260045260246000fd5b90600052602060002001819055508180548061177757634e487b7160e01b600052603160045260246000fd5b600190038181906000526020600020016000905590556117a4565b8061179c816129c6565b91505061168d565b50505b7fb70524ae9a7cf136f746d8705877126d3c6b77544d7dcc8b02b51758d624f9d8848483815181106117e957634e487b7160e01b600052603260045260246000fd5b6020026020010151846040516118179392919092835260ff9190911660208301521515604082015260600190565b60405180910390a15b8061182a816129c6565b915050611550565b50505050565b611840611e77565b6001600160a01b0381166118665760405162461bcd60e51b81526004016104389061284e565b600880546001600160a01b0319166001600160a01b0383169081179091556040519081527fcbc90bd664aa2bac499050056724f3d0459bda936d8d5889a946d7d74bc055599060200161051b565b6008546001600160a01b031633146119005760405162461bcd60e51b815260206004820152600f60248201526e24b73b30b634b2103bb930b83832b960891b6044820152606401610438565b60005b8151811015610b5757600082828151811061192e57634e487b7160e01b600052603260045260246000fd5b6020026020010151806020019051810190611949919061269d565b600480548251604051631c2ab73160e21b8152928301529192506000916001600160a01b0316906370aadcc49060240160206040518083038186803b15801561199157600080fd5b505afa1580156119a5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119c99190612755565b6004805484516040516319d9d2c560e21b8152928301529192506001600160a01b03909116906367674b149060240160206040518083038186803b158015611a1057600080fd5b505afa158015611a24573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a4891906125f4565b8015611ada5750600480548351604051631f138de360e31b8152928301526000916001600160a01b039091169063f89c6f189060240160206040518083038186803b158015611a9657600080fd5b505afa158015611aaa573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ace9190612273565b6001600160a01b031614155b8015611b05575060008181526006602090815260408083208582015160ff9081168552925290912054165b15611b735760035460405163909b8ab560e01b81526101009091046001600160a01b03169063909b8ab590611b4090859085906004016128c4565b600060405180830381600087803b158015611b5a57600080fd5b505af1158015611b6e573d6000803e3d6000fd5b505050505b50508080611b80906129c6565b915050611903565b611b90611e77565b6001600160a01b038116611bb65760405162461bcd60e51b81526004016104389061284e565b600154600160a81b900460ff1615611c065760405162461bcd60e51b8152602060048201526013602482015272105b1c9958591e481d1c985b9cd9995c9c9959606a1b6044820152606401610438565b600080546001600160a01b038381166201000081810262010000600160b01b031990941693909317938490556001805460ff60a81b1916600160a81b1790556040805193909404909116825260208201527fb532073b38c83145e3e5135377a08bf9aab55bc0fd7c1179cd4fb995d2a5159c910161051b565b600054610100900460ff16611c9a5760005460ff1615611c9e565b303b155b611d015760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b6064820152608401610438565b600054610100900460ff16158015611d23576000805461ffff19166101011790555b611d2c856103e6565b600480546001600160a01b0319166001600160a01b038681169190911790915560038054610100600160a81b0319166101009286169290920291909117905560005b8251811015611de157600160056000858481518110611d9d57634e487b7160e01b600052603260045260246000fd5b6020908102919091018101516001600160a01b03168252810191909152604001600020805460ff191691151591909117905580611dd9816129c6565b915050611d6e565b508015611df4576000805461ff00191690555b5050505050565b611e03611e77565b6001600160a01b038116611e295760405162461bcd60e51b81526004016104389061284e565b600480546001600160a01b0319166001600160a01b0383169081179091556040519081527f5f56489645cc15092ffab877840903cb7715aca3464f50d3e323ed6465777bbb9060200161051b565b6000546201000090046001600160a01b03163314611eef5760405162461bcd60e51b815260206004820152602f60248201527f4f6e6c792074686520636f6e7472616374206f776e6572206d6179207065726660448201526e37b936903a3434b99030b1ba34b7b760891b6064820152608401610438565b565b6040805160c081018252600080825260208201819052918101829052606081018290526080810182905260a08101919091526040518060c00160405280878152602001866001600160401b031681526020018560ff1681526020018461ffff16815260200183896002611f649190612990565b81518110611f8257634e487b7160e01b600052603260045260246000fd5b602002602001015160020b815260200183896002611fa09190612990565b611fab906001612978565b81518110611fc957634e487b7160e01b600052603260045260246000fd5b602002602001015160020b81525090509695505050505050565b600082601f830112611ff3578081fd5b8135602061200861200383612955565b612925565b80838252828201915082860187848660051b8901011115612027578586fd5b855b8581101561204e57813561203c81612a0d565b84529284019290840190600101612029565b5090979650505050505050565b600082601f83011261206b578081fd5b8135602061207b61200383612955565b80838252828201915082860187848660051b890101111561209a578586fd5b855b8581101561204e5781358452928401929084019060010161209c565b600082601f8301126120c8578081fd5b813560206120d861200383612955565b80838252828201915082860187848660051b89010111156120f7578586fd5b855b8581101561204e57813561210c81612a30565b845292840192908401906001016120f9565b600082601f83011261212e578081fd5b8135602061213e61200383612955565b80838252828201915082860187848660051b890101111561215d578586fd5b855b8581101561204e57813561217281612a3f565b8452928401929084019060010161215f565b600082601f830112612194578081fd5b813560206121a461200383612955565b80838252828201915082860187848660051b89010111156121c3578586fd5b855b8581101561204e5781356121d881612a4f565b845292840192908401906001016121c5565b600082601f8301126121fa578081fd5b8135602061220a61200383612955565b80838252828201915082860187848660051b8901011115612229578586fd5b855b8581101561204e57813561223e81612a64565b8452928401929084019060010161222b565b600060208284031215612261578081fd5b813561226c81612a0d565b9392505050565b600060208284031215612284578081fd5b815161226c81612a0d565b600080600080608085870312156122a4578283fd5b84356122af81612a0d565b935060208501356122bf81612a0d565b925060408501356122cf81612a0d565b915060608501356001600160401b038111156122e9578182fd5b6122f587828801611fe3565b91505092959194509250565b60008060408385031215612313578182fd5b82356001600160401b03811115612328578283fd5b61233485828601611fe3565b925050602083013561234581612a22565b809150509250929050565b600080600080600060a08688031215612367578283fd5b85356001600160401b038082111561237d578485fd5b61238989838a0161205b565b9650602088013591508082111561239e578485fd5b6123aa89838a01612184565b955060408801359150808211156123bf578485fd5b6123cb89838a016121ea565b945060608801359150808211156123e0578283fd5b6123ec89838a0161211e565b93506080880135915080821115612401578283fd5b5061240e888289016120b8565b9150509295509295909350565b600080600080600060a08688031215612432578283fd5b85356001600160401b0380821115612448578485fd5b61245489838a0161205b565b96506020880135915080821115612469578485fd5b61247589838a01612184565b9550604088013591508082111561248a578485fd5b61249689838a016121ea565b945060608801359150808211156124ab578283fd5b6124b789838a0161211e565b935060808801359150808211156124cc578283fd5b5061240e888289016121ea565b600060208083850312156124eb578182fd5b82356001600160401b0380821115612501578384fd5b8185019150601f8681840112612515578485fd5b823561252361200382612955565b8082825286820191508686018a888560051b8901011115612542578889fd5b885b848110156125c85781358781111561255a578a8bfd5b8801603f81018d1361256a578a8bfd5b89810135604089821115612580576125806129f7565b612591828a01601f19168d01612925565b8281528f828486010111156125a4578d8efd5b828285018e8301379182018c018d9052508552509288019290880190600101612544565b50909a9950505050505050505050565b6000602082840312156125e9578081fd5b813561226c81612a22565b600060208284031215612605578081fd5b815161226c81612a22565b600060a08284031215612621578081fd5b60405160a081018181106001600160401b0382111715612643576126436129f7565b60405282518152602083015161265881612a4f565b6020820152604083015161266b81612a64565b6040820152606083015161267e81612a3f565b6060820152608083015161269181612a64565b60808201529392505050565b600060c082840312156126ae578081fd5b60405160c081018181106001600160401b03821117156126d0576126d06129f7565b6040528251815260208301516126e581612a4f565b602082015260408301516126f881612a64565b6040820152606083015161270b81612a3f565b6060820152608083015161271e81612a30565b608082015260a083015161273181612a30565b60a08201529392505050565b60006020828403121561274e578081fd5b5035919050565b600060208284031215612766578081fd5b5051919050565b600080600060608486031215612781578081fd5b8335925060208401356001600160401b0381111561279d578182fd5b6127a9868287016121ea565b92505060408401356127ba81612a22565b809150509250925092565b600080604083850312156127d7578182fd5b50508035926020909101359150565b600080604083850312156127f8578182fd5b82359150602083013561234581612a64565b6020808252825182820181905260009190848201906040850190845b8181101561284257835183529284019291840191600101612826565b50909695505050505050565b6020808252600f908201526e496e76616c6964206164647265737360881b604082015260600190565b600060a082019050825182526001600160401b03602084015116602083015260ff604084015116604083015261ffff606084015116606083015260ff608084015116608083015292915050565b600060e082019050835182526001600160401b03602085015116602083015260ff604085015116604083015261ffff6060850151166060830152608084015160020b608083015260a084015160020b60a08301528260c08301529392505050565b604051601f8201601f191681016001600160401b038111828210171561294d5761294d6129f7565b604052919050565b60006001600160401b0382111561296e5761296e6129f7565b5060051b60200190565b6000821982111561298b5761298b6129e1565b500190565b60008160001904831182151516156129aa576129aa6129e1565b500290565b6000828210156129c1576129c16129e1565b500390565b60006000198214156129da576129da6129e1565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b0381168114610c2457600080fd5b8015158114610c2457600080fd5b8060020b8114610c2457600080fd5b61ffff81168114610c2457600080fd5b6001600160401b0381168114610c2457600080fd5b60ff81168114610c2457600080fdfea2646970667358221220feb594da3bcc40cb82392c22597476fc86105bf441c20f29d0e53008c85568bc64736f6c63430008040033

Deployed Bytecode

0x608060405234801561001057600080fd5b506004361061018e5760003560e01c806379ba5097116100de578063b08c344811610097578063c1a0e03b11610071578063c1a0e03b1461039a578063c3b83f5f146103ad578063e6bfbfd8146103c0578063efe2c8a4146103d357600080fd5b8063b08c344814610361578063b4fd729614610374578063b90983d21461038757600080fd5b806379ba5097146102fe5780637df8b802146103065780638da5cb5b146103195780638dabd21e1461033257806391b4ded9146103455780639a066f5d1461034e57600080fd5b80631f2374f31161014b57806353a47bb71161012557806353a47bb71461028057806357e70092146102ab5780635c975abb146102d95780635d7fb8e2146102e657600080fd5b80631f2374f31461022c578063408ae5851461024c578063516dbd6f1461025f57600080fd5b806306c933d81461019357806313af4035146101cb578063146dc9ae146101e057806316187ad6146101f35780631627540c1461020657806316c38b3c14610219575b600080fd5b6101b66101a1366004612250565b60056020526000908152604090205460ff1681565b60405190151581526020015b60405180910390f35b6101de6101d9366004612250565b6103e6565b005b6101de6101ee36600461241b565b610526565b6101de6102013660046124d9565b61091d565b6101de610214366004612250565b610b5b565b6101de6102273660046125d8565b610bb1565b61023f61023a36600461273d565b610c27565b6040516101c2919061280a565b6101de61025a366004612301565b610c89565b61027261026d3660046127c5565b610ec5565b6040519081526020016101c2565b600154610293906001600160a01b031681565b6040516001600160a01b0390911681526020016101c2565b6101b66102b93660046127e6565b600660209081526000928352604080842090915290825290205460ff1681565b6003546101b69060ff1681565b6003546102939061010090046001600160a01b031681565b6101de610ef6565b600854610293906001600160a01b031681565b600054610293906201000090046001600160a01b031681565b6101de610340366004612350565b610ff3565b61027260025481565b6101de61035c366004612250565b6113fb565b6101de61036f36600461276d565b61147f565b600454610293906001600160a01b031681565b6101de610395366004612250565b611838565b6101de6103a83660046124d9565b6118b4565b6101de6103bb366004612250565b611b88565b6101de6103ce36600461228f565b611c7f565b6101de6103e1366004612250565b611dfb565b6001600160a01b0381166104415760405162461bcd60e51b815260206004820152601960248201527f4f776e657220616464726573732063616e6e6f7420626520300000000000000060448201526064015b60405180910390fd5b600154600160a01b900460ff16156104ad5760405162461bcd60e51b815260206004820152602960248201527f416c726561647920696e697469616c697a65642c20757365206e6f6d696e617460448201526832a732bba7bbb732b960b91b6064820152608401610438565b6001805460ff60a01b1916600160a01b179055600080546001600160a01b03831662010000810262010000600160b01b03199092169190911782556040805192835260208301919091527fb532073b38c83145e3e5135377a08bf9aab55bc0fd7c1179cd4fb995d2a5159c91015b60405180910390a150565b3360009081526005602052604090205460ff1661057b5760405162461bcd60e51b815260206004820152601360248201527257686974656c6973746564206164647265737360681b6044820152606401610438565b60005b855181101561091557600360019054906101000a90046001600160a01b03166001600160a01b031663e0b92b278783815181106105cb57634e487b7160e01b600052603260045260246000fd5b60200260200101518784815181106105f357634e487b7160e01b600052603260045260246000fd5b602002602001015187858151811061061b57634e487b7160e01b600052603260045260246000fd5b60200260200101516040518463ffffffff1660e01b815260040161065e939291909283526001600160401b0391909116602083015260ff16604082015260600190565b60206040518083038186803b15801561067657600080fd5b505afa15801561068a573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106ae91906125f4565b156109035760006107e78783815181106106d857634e487b7160e01b600052603260045260246000fd5b602002602001015187848151811061070057634e487b7160e01b600052603260045260246000fd5b602002602001015187858151811061072857634e487b7160e01b600052603260045260246000fd5b602002602001015187868151811061075057634e487b7160e01b600052603260045260246000fd5b602002602001015187878151811061077857634e487b7160e01b600052603260045260246000fd5b60200260200101516040805160a081018252600080825260208201819052918101829052606081018290526080810191909152506040805160a0810182529586526001600160401b03909416602086015260ff9283169385019390935261ffff16606084015216608082015290565b60045488519192506001600160a01b03169063489f4b979089908590811061081f57634e487b7160e01b600052603260045260246000fd5b60200260200101516040518263ffffffff1660e01b815260040161084591815260200190565b60206040518083038186803b15801561085d57600080fd5b505afa158015610871573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061089591906125f4565b1561090157600354604051630e65f27d60e01b81526101009091046001600160a01b031690630e65f27d906108ce908490600401612877565b600060405180830381600087803b1580156108e857600080fd5b505af11580156108fc573d6000803e3d6000fd5b505050505b505b8061090d816129c6565b91505061057e565b505050505050565b6008546001600160a01b031633146109695760405162461bcd60e51b815260206004820152600f60248201526e24b73b30b634b2103bb930b83832b960891b6044820152606401610438565b60005b8151811015610b5757600082828151811061099757634e487b7160e01b600052603260045260246000fd5b60200260200101518060200190518101906109b29190612610565b60035481516020830151604080850151905163e0b92b2760e01b815260048101939093526001600160401b03909116602483015260ff16604482015291925061010090046001600160a01b03169063e0b92b279060640160206040518083038186803b158015610a2157600080fd5b505afa158015610a35573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a5991906125f4565b15610b445760048054825160405163489f4b9760e01b8152928301526001600160a01b03169063489f4b979060240160206040518083038186803b158015610aa057600080fd5b505afa158015610ab4573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ad891906125f4565b15610b4457600354604051630e65f27d60e01b81526101009091046001600160a01b031690630e65f27d90610b11908490600401612877565b600060405180830381600087803b158015610b2b57600080fd5b505af1158015610b3f573d6000803e3d6000fd5b505050505b5080610b4f816129c6565b91505061096c565b5050565b610b63611e77565b600180546001600160a01b0319166001600160a01b0383169081179091556040519081527f906a1c6bd7e3091ea86693dd029a831c19049ce77f1dce2ce0bab1cacbabce229060200161051b565b610bb9611e77565b60035460ff1615158115151415610bcd5750565b6003805460ff191682151590811790915560ff1615610beb57426002555b60035460405160ff909116151581527f8fb6c181ee25a520cf3dd6565006ef91229fcfe5a989566c2a3b8c115570cec59060200161051b565b50565b600081815260076020908152604091829020805483518184028101840190945280845260609392830182828015610c7d57602002820191906000526020600020905b815481526020019060010190808311610c69575b50505050509050919050565b610c91611e77565b6000825111610cf05760405162461bcd60e51b815260206004820152602560248201527f57686974656c6973746564206164647265737365732063616e6e6f7420626520604482015264656d70747960d81b6064820152608401610438565b60005b8251811015610ec05760006001600160a01b0316838281518110610d2757634e487b7160e01b600052603260045260246000fd5b60200260200101516001600160a01b03161415610d7e5760405162461bcd60e51b815260206004820152601560248201527443616e2774206265207a65726f206164647265737360581b6044820152606401610438565b81151560056000858481518110610da557634e487b7160e01b600052603260045260246000fd5b6020908102919091018101516001600160a01b031682528101919091526040016000205460ff16151514610eae578160056000858481518110610df857634e487b7160e01b600052603260045260246000fd5b60200260200101516001600160a01b03166001600160a01b0316815260200190815260200160002060006101000a81548160ff0219169083151502179055507f58d7a3ccc34541e162fcfc87b84be7b78c34d1e1e7f15de6e4dd67d0fe70aecd838281518110610e7857634e487b7160e01b600052603260045260246000fd5b602002602001015183604051610ea59291906001600160a01b039290921682521515602082015260400190565b60405180910390a15b80610eb8816129c6565b915050610cf3565b505050565b60076020528160005260406000208181548110610ee157600080fd5b90600052602060002001600091509150505481565b6001546001600160a01b03163314610f6e5760405162461bcd60e51b815260206004820152603560248201527f596f75206d757374206265206e6f6d696e61746564206265666f726520796f7560448201527402063616e20616363657074206f776e65727368697605c1b6064820152608401610438565b60005460015460408051620100009093046001600160a01b03908116845290911660208301527fb532073b38c83145e3e5135377a08bf9aab55bc0fd7c1179cd4fb995d2a5159c910160405180910390a1600180546000805462010000600160b01b0319166001600160a01b03831662010000021790556001600160a01b0319169055565b3360009081526005602052604090205460ff166110485760405162461bcd60e51b815260206004820152601360248201527257686974656c6973746564206164647265737360681b6044820152606401610438565b60005b85518110156109155760045486516000916001600160a01b0316906370aadcc49089908590811061108c57634e487b7160e01b600052603260045260246000fd5b60200260200101516040518263ffffffff1660e01b81526004016110b291815260200190565b60206040518083038186803b1580156110ca57600080fd5b505afa1580156110de573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111029190612755565b600081815260066020526040812087519293509187908590811061113657634e487b7160e01b600052603260045260246000fd5b60209081029190910181015160ff9081168352908201929092526040016000205416156113e85760006112098389858151811061118357634e487b7160e01b600052603260045260246000fd5b60200260200101518986815181106111ab57634e487b7160e01b600052603260045260246000fd5b60200260200101518987815181106111d357634e487b7160e01b600052603260045260246000fd5b60200260200101518988815181106111fb57634e487b7160e01b600052603260045260246000fd5b602002602001015189611ef1565b60045489519192506001600160a01b0316906367674b14908a908690811061124157634e487b7160e01b600052603260045260246000fd5b60200260200101516040518263ffffffff1660e01b815260040161126791815260200190565b60206040518083038186803b15801561127f57600080fd5b505afa158015611293573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112b791906125f4565b8015611378575060045488516000916001600160a01b03169063f89c6f18908b90879081106112f657634e487b7160e01b600052603260045260246000fd5b60200260200101516040518263ffffffff1660e01b815260040161131c91815260200190565b60206040518083038186803b15801561133457600080fd5b505afa158015611348573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061136c9190612273565b6001600160a01b031614155b156113e65760035460405163909b8ab560e01b81526101009091046001600160a01b03169063909b8ab5906113b390849086906004016128c4565b600060405180830381600087803b1580156113cd57600080fd5b505af11580156113e1573d6000803e3d6000fd5b505050505b505b50806113f3816129c6565b91505061104b565b611403611e77565b6001600160a01b0381166114295760405162461bcd60e51b81526004016104389061284e565b60038054610100600160a81b0319166101006001600160a01b038416908102919091179091556040519081527f59cf4cddc1a33ae5f2e8785ba9dcc3c6e66807281882aa0afc75d385a1158cac9060200161051b565b611487611e77565b600480546040516334d2a49760e11b81529182018590526001600160a01b0316906369a5492e9060240160206040518083038186803b1580156114c957600080fd5b505afa1580156114dd573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061150191906125f4565b61154d5760405162461bcd60e51b815260206004820152601860248201527f53706f72744964206973206e6f7420737570706f7274656400000000000000006044820152606401610438565b60005b82518110156118325760008481526006602052604081208451841515929086908590811061158e57634e487b7160e01b600052603260045260246000fd5b60209081029190910181015160ff908116835290820192909252604001600020541615151461182057600084815260066020526040812084518492908690859081106115ea57634e487b7160e01b600052603260045260246000fd5b602002602001015160ff1660ff16815260200190815260200160002060006101000a81548160ff021916908315150217905550811561167d576000848152600760205260409020835184908390811061165357634e487b7160e01b600052603260045260246000fd5b602090810291909101810151825460018101845560009384529190922060ff9092169101556117a7565b6000848152600760205260408120905b81548110156117a4578483815181106116b657634e487b7160e01b600052603260045260246000fd5b602002602001015160ff168282815481106116e157634e487b7160e01b600052603260045260246000fd5b906000526020600020015414156117925781548290611702906001906129af565b8154811061172057634e487b7160e01b600052603260045260246000fd5b906000526020600020015482828154811061174b57634e487b7160e01b600052603260045260246000fd5b90600052602060002001819055508180548061177757634e487b7160e01b600052603160045260246000fd5b600190038181906000526020600020016000905590556117a4565b8061179c816129c6565b91505061168d565b50505b7fb70524ae9a7cf136f746d8705877126d3c6b77544d7dcc8b02b51758d624f9d8848483815181106117e957634e487b7160e01b600052603260045260246000fd5b6020026020010151846040516118179392919092835260ff9190911660208301521515604082015260600190565b60405180910390a15b8061182a816129c6565b915050611550565b50505050565b611840611e77565b6001600160a01b0381166118665760405162461bcd60e51b81526004016104389061284e565b600880546001600160a01b0319166001600160a01b0383169081179091556040519081527fcbc90bd664aa2bac499050056724f3d0459bda936d8d5889a946d7d74bc055599060200161051b565b6008546001600160a01b031633146119005760405162461bcd60e51b815260206004820152600f60248201526e24b73b30b634b2103bb930b83832b960891b6044820152606401610438565b60005b8151811015610b5757600082828151811061192e57634e487b7160e01b600052603260045260246000fd5b6020026020010151806020019051810190611949919061269d565b600480548251604051631c2ab73160e21b8152928301529192506000916001600160a01b0316906370aadcc49060240160206040518083038186803b15801561199157600080fd5b505afa1580156119a5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119c99190612755565b6004805484516040516319d9d2c560e21b8152928301529192506001600160a01b03909116906367674b149060240160206040518083038186803b158015611a1057600080fd5b505afa158015611a24573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a4891906125f4565b8015611ada5750600480548351604051631f138de360e31b8152928301526000916001600160a01b039091169063f89c6f189060240160206040518083038186803b158015611a9657600080fd5b505afa158015611aaa573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ace9190612273565b6001600160a01b031614155b8015611b05575060008181526006602090815260408083208582015160ff9081168552925290912054165b15611b735760035460405163909b8ab560e01b81526101009091046001600160a01b03169063909b8ab590611b4090859085906004016128c4565b600060405180830381600087803b158015611b5a57600080fd5b505af1158015611b6e573d6000803e3d6000fd5b505050505b50508080611b80906129c6565b915050611903565b611b90611e77565b6001600160a01b038116611bb65760405162461bcd60e51b81526004016104389061284e565b600154600160a81b900460ff1615611c065760405162461bcd60e51b8152602060048201526013602482015272105b1c9958591e481d1c985b9cd9995c9c9959606a1b6044820152606401610438565b600080546001600160a01b038381166201000081810262010000600160b01b031990941693909317938490556001805460ff60a81b1916600160a81b1790556040805193909404909116825260208201527fb532073b38c83145e3e5135377a08bf9aab55bc0fd7c1179cd4fb995d2a5159c910161051b565b600054610100900460ff16611c9a5760005460ff1615611c9e565b303b155b611d015760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b6064820152608401610438565b600054610100900460ff16158015611d23576000805461ffff19166101011790555b611d2c856103e6565b600480546001600160a01b0319166001600160a01b038681169190911790915560038054610100600160a81b0319166101009286169290920291909117905560005b8251811015611de157600160056000858481518110611d9d57634e487b7160e01b600052603260045260246000fd5b6020908102919091018101516001600160a01b03168252810191909152604001600020805460ff191691151591909117905580611dd9816129c6565b915050611d6e565b508015611df4576000805461ff00191690555b5050505050565b611e03611e77565b6001600160a01b038116611e295760405162461bcd60e51b81526004016104389061284e565b600480546001600160a01b0319166001600160a01b0383169081179091556040519081527f5f56489645cc15092ffab877840903cb7715aca3464f50d3e323ed6465777bbb9060200161051b565b6000546201000090046001600160a01b03163314611eef5760405162461bcd60e51b815260206004820152602f60248201527f4f6e6c792074686520636f6e7472616374206f776e6572206d6179207065726660448201526e37b936903a3434b99030b1ba34b7b760891b6064820152608401610438565b565b6040805160c081018252600080825260208201819052918101829052606081018290526080810182905260a08101919091526040518060c00160405280878152602001866001600160401b031681526020018560ff1681526020018461ffff16815260200183896002611f649190612990565b81518110611f8257634e487b7160e01b600052603260045260246000fd5b602002602001015160020b815260200183896002611fa09190612990565b611fab906001612978565b81518110611fc957634e487b7160e01b600052603260045260246000fd5b602002602001015160020b81525090509695505050505050565b600082601f830112611ff3578081fd5b8135602061200861200383612955565b612925565b80838252828201915082860187848660051b8901011115612027578586fd5b855b8581101561204e57813561203c81612a0d565b84529284019290840190600101612029565b5090979650505050505050565b600082601f83011261206b578081fd5b8135602061207b61200383612955565b80838252828201915082860187848660051b890101111561209a578586fd5b855b8581101561204e5781358452928401929084019060010161209c565b600082601f8301126120c8578081fd5b813560206120d861200383612955565b80838252828201915082860187848660051b89010111156120f7578586fd5b855b8581101561204e57813561210c81612a30565b845292840192908401906001016120f9565b600082601f83011261212e578081fd5b8135602061213e61200383612955565b80838252828201915082860187848660051b890101111561215d578586fd5b855b8581101561204e57813561217281612a3f565b8452928401929084019060010161215f565b600082601f830112612194578081fd5b813560206121a461200383612955565b80838252828201915082860187848660051b89010111156121c3578586fd5b855b8581101561204e5781356121d881612a4f565b845292840192908401906001016121c5565b600082601f8301126121fa578081fd5b8135602061220a61200383612955565b80838252828201915082860187848660051b8901011115612229578586fd5b855b8581101561204e57813561223e81612a64565b8452928401929084019060010161222b565b600060208284031215612261578081fd5b813561226c81612a0d565b9392505050565b600060208284031215612284578081fd5b815161226c81612a0d565b600080600080608085870312156122a4578283fd5b84356122af81612a0d565b935060208501356122bf81612a0d565b925060408501356122cf81612a0d565b915060608501356001600160401b038111156122e9578182fd5b6122f587828801611fe3565b91505092959194509250565b60008060408385031215612313578182fd5b82356001600160401b03811115612328578283fd5b61233485828601611fe3565b925050602083013561234581612a22565b809150509250929050565b600080600080600060a08688031215612367578283fd5b85356001600160401b038082111561237d578485fd5b61238989838a0161205b565b9650602088013591508082111561239e578485fd5b6123aa89838a01612184565b955060408801359150808211156123bf578485fd5b6123cb89838a016121ea565b945060608801359150808211156123e0578283fd5b6123ec89838a0161211e565b93506080880135915080821115612401578283fd5b5061240e888289016120b8565b9150509295509295909350565b600080600080600060a08688031215612432578283fd5b85356001600160401b0380821115612448578485fd5b61245489838a0161205b565b96506020880135915080821115612469578485fd5b61247589838a01612184565b9550604088013591508082111561248a578485fd5b61249689838a016121ea565b945060608801359150808211156124ab578283fd5b6124b789838a0161211e565b935060808801359150808211156124cc578283fd5b5061240e888289016121ea565b600060208083850312156124eb578182fd5b82356001600160401b0380821115612501578384fd5b8185019150601f8681840112612515578485fd5b823561252361200382612955565b8082825286820191508686018a888560051b8901011115612542578889fd5b885b848110156125c85781358781111561255a578a8bfd5b8801603f81018d1361256a578a8bfd5b89810135604089821115612580576125806129f7565b612591828a01601f19168d01612925565b8281528f828486010111156125a4578d8efd5b828285018e8301379182018c018d9052508552509288019290880190600101612544565b50909a9950505050505050505050565b6000602082840312156125e9578081fd5b813561226c81612a22565b600060208284031215612605578081fd5b815161226c81612a22565b600060a08284031215612621578081fd5b60405160a081018181106001600160401b0382111715612643576126436129f7565b60405282518152602083015161265881612a4f565b6020820152604083015161266b81612a64565b6040820152606083015161267e81612a3f565b6060820152608083015161269181612a64565b60808201529392505050565b600060c082840312156126ae578081fd5b60405160c081018181106001600160401b03821117156126d0576126d06129f7565b6040528251815260208301516126e581612a4f565b602082015260408301516126f881612a64565b6040820152606083015161270b81612a3f565b6060820152608083015161271e81612a30565b608082015260a083015161273181612a30565b60a08201529392505050565b60006020828403121561274e578081fd5b5035919050565b600060208284031215612766578081fd5b5051919050565b600080600060608486031215612781578081fd5b8335925060208401356001600160401b0381111561279d578182fd5b6127a9868287016121ea565b92505060408401356127ba81612a22565b809150509250925092565b600080604083850312156127d7578182fd5b50508035926020909101359150565b600080604083850312156127f8578182fd5b82359150602083013561234581612a64565b6020808252825182820181905260009190848201906040850190845b8181101561284257835183529284019291840191600101612826565b50909695505050505050565b6020808252600f908201526e496e76616c6964206164647265737360881b604082015260600190565b600060a082019050825182526001600160401b03602084015116602083015260ff604084015116604083015261ffff606084015116606083015260ff608084015116608083015292915050565b600060e082019050835182526001600160401b03602085015116602083015260ff604085015116604083015261ffff6060850151166060830152608084015160020b608083015260a084015160020b60a08301528260c08301529392505050565b604051601f8201601f191681016001600160401b038111828210171561294d5761294d6129f7565b604052919050565b60006001600160401b0382111561296e5761296e6129f7565b5060051b60200190565b6000821982111561298b5761298b6129e1565b500190565b60008160001904831182151516156129aa576129aa6129e1565b500290565b6000828210156129c1576129c16129e1565b500390565b60006000198214156129da576129da6129e1565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b0381168114610c2457600080fd5b8015158114610c2457600080fd5b8060020b8114610c2457600080fd5b61ffff81168114610c2457600080fd5b6001600160401b0381168114610c2457600080fd5b60ff81168114610c2457600080fdfea2646970667358221220feb594da3bcc40cb82392c22597476fc86105bf441c20f29d0e53008c85568bc64736f6c63430008040033

Block Transaction Difficulty Gas Used Reward
Block Uncle Number Difficulty Gas Used Reward
Loading