Contract 0xb36C532C5B497c1F030f5AB31Aa1c4Dc0125DB26

Contract Overview

Balance:
0 ETH
Txn Hash Method
Block
From
To
Value
0xc4d39c419b62e03cac87c14f6e8ec18248ab354379ed0c7c79821030c9af01fe0x60806040146473972023-09-14 20:21:0215 days 20 hrs ago0xd866b2332d4383c1bf719732177e2d9109c99dbc IN  Create: GamesPlayerPropsReceiver0 ETH0.0000000249950.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 _names for which player names market is created (Jimmy Buttler etc.)
    /// @param _lines number of points assists per option
    /// @param _linesOdds odds for lines
    function fulfillPlayerProps(
        bytes32[] memory _gameIds,
        bytes32[] memory _playerIds,
        uint8[] memory _options,
        string[] memory _names,
        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],
                    _names[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,
        bytes32[] 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,
        bytes32 _playerId,
        uint8 _option,
        string memory _name,
        uint16 _line,
        int24[] memory _linesOdds
    ) internal returns (IGamesPlayerProps.PlayerProps memory) {
        return
            IGamesPlayerProps.PlayerProps(
                _gameId,
                _playerId,
                _option,
                _name,
                _line,
                _linesOdds[index * 2],
                _linesOdds[index * 2 + 1]
            );
    }

    function _castToPlayerPropsResolver(
        bytes32 _gameId,
        bytes32 _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;
        bytes32 playerId;
        uint8 option;
        string playerName;
        uint16 line;
        int24 overOdds;
        int24 underOdds;
    }

    struct PlayerPropsResolver {
        bytes32 gameId;
        bytes32 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,
        bytes32 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 getAllOptionsWithPlayersForGameId(bytes32 _gameId)
        external
        view
        returns (
            bytes32[] memory _playerIds,
            uint8[] memory _options,
            bool[] memory _isResolved,
            address[][] memory _childMarketsPerOption
        );

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

    function getPlayerPropForOption(
        bytes32 gameId,
        bytes32 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);

    // 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 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":"bytes32[]","name":"_playerIds","type":"bytes32[]"},{"internalType":"uint8[]","name":"_options","type":"uint8[]"},{"internalType":"string[]","name":"_names","type":"string[]"},{"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":"bytes32[]","name":"_playerIds","type":"bytes32[]"},{"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"}]

608060405234801561001057600080fd5b50612c42806100206000396000f3fe608060405234801561001057600080fd5b506004361061018e5760003560e01c806379ba5097116100de578063b4fd729611610097578063c3b83f5f11610071578063c3b83f5f1461039a578063d1507794146103ad578063e6bfbfd8146103c0578063efe2c8a4146103d357600080fd5b8063b4fd729614610361578063b90983d214610374578063c1a0e03b1461038757600080fd5b806379ba5097146102fe5780637df8b802146103065780638da5cb5b1461031957806391b4ded9146103325780639a066f5d1461033b578063b08c34481461034e57600080fd5b80633a6386871161014b57806353a47bb71161012557806353a47bb71461028057806357e70092146102ab5780635c975abb146102d95780635d7fb8e2146102e657600080fd5b80633a63868714610239578063408ae5851461024c578063516dbd6f1461025f57600080fd5b806306c933d81461019357806313af4035146101cb57806316187ad6146101e05780631627540c146101f357806316c38b3c146102065780631f2374f314610219575b600080fd5b6101b66101a1366004612342565b60056020526000908152604090205460ff1681565b60405190151581526020015b60405180910390f35b6101de6101d9366004612342565b6103e6565b005b6101de6101ee3660046125fa565b610526565b6101de610201366004612342565b61075c565b6101de6102143660046126bd565b6107b2565b61022c61022736600461283b565b610828565b6040516101c29190612908565b6101de610247366004612442565b61088a565b6101de61025a3660046123f3565b610cc3565b61027261026d3660046128c3565b610eff565b6040519081526020016101c2565b600154610293906001600160a01b031681565b6040516001600160a01b0390911681526020016101c2565b6101b66102b93660046128e4565b600660209081526000928352604080842090915290825290205460ff1681565b6003546101b69060ff1681565b6003546102939061010090046001600160a01b031681565b6101de610f30565b600854610293906001600160a01b031681565b600054610293906201000090046001600160a01b031681565b61027260025481565b6101de610349366004612342565b61102d565b6101de61035c36600461286b565b6110b1565b600454610293906001600160a01b031681565b6101de610382366004612342565b61146a565b6101de6103953660046125fa565b6114e6565b6101de6103a8366004612342565b6117ba565b6101de6103bb36600461252f565b6118b1565b6101de6103ce366004612381565b611c97565b6101de6103e1366004612342565b611e13565b6001600160a01b0381166104415760405162461bcd60e51b815260206004820152601960248201527f4f776e657220616464726573732063616e6e6f7420626520300000000000000060448201526064015b60405180910390fd5b600154600160a01b900460ff16156104ad5760405162461bcd60e51b815260206004820152602960248201527f416c726561647920696e697469616c697a65642c20757365206e6f6d696e617460448201526832a732bba7bbb732b960b91b6064820152608401610438565b6001805460ff60a01b1916600160a01b179055600080546001600160a01b03831662010000810262010000600160b01b03199092169190911782556040805192835260208301919091527fb532073b38c83145e3e5135377a08bf9aab55bc0fd7c1179cd4fb995d2a5159c91015b60405180910390a150565b6008546001600160a01b031633146105725760405162461bcd60e51b815260206004820152600f60248201526e24b73b30b634b2103bb930b83832b960891b6044820152606401610438565b60005b81518110156107585760008282815181106105a057634e487b7160e01b600052603260045260246000fd5b60200260200101518060200190518101906105bb91906126f5565b60035481516020830151604080850151905163210104e160e11b81526004810193909352602483019190915260ff16604482015291925061010090046001600160a01b03169063420209c29060640160206040518083038186803b15801561062257600080fd5b505afa158015610636573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061065a91906126d9565b156107455760048054825160405163489f4b9760e01b8152928301526001600160a01b03169063489f4b979060240160206040518083038186803b1580156106a157600080fd5b505afa1580156106b5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106d991906126d9565b156107455760035460405163fbf1c75560e01b81526101009091046001600160a01b03169063fbf1c75590610712908490600401612975565b600060405180830381600087803b15801561072c57600080fd5b505af1158015610740573d6000803e3d6000fd5b505050505b508061075081612b74565b915050610575565b5050565b610764611e8f565b600180546001600160a01b0319166001600160a01b0383169081179091556040519081527f906a1c6bd7e3091ea86693dd029a831c19049ce77f1dce2ce0bab1cacbabce229060200161051b565b6107ba611e8f565b60035460ff16151581151514156107ce5750565b6003805460ff191682151590811790915560ff16156107ec57426002555b60035460405160ff909116151581527f8fb6c181ee25a520cf3dd6565006ef91229fcfe5a989566c2a3b8c115570cec59060200161051b565b50565b60008181526007602090815260409182902080548351818402810184019094528084526060939283018282801561087e57602002820191906000526020600020905b81548152602001906001019080831161086a575b50505050509050919050565b3360009081526005602052604090205460ff166108df5760405162461bcd60e51b815260206004820152601360248201527257686974656c6973746564206164647265737360681b6044820152606401610438565b60005b8651811015610cba5760045487516000916001600160a01b0316906370aadcc4908a908590811061092357634e487b7160e01b600052603260045260246000fd5b60200260200101516040518263ffffffff1660e01b815260040161094991815260200190565b60206040518083038186803b15801561096157600080fd5b505afa158015610975573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109999190612853565b60008181526006602052604081208851929350918890859081106109cd57634e487b7160e01b600052603260045260246000fd5b60209081029190910181015160ff908116835290820192909252604001600020541615610ca7576000610ac8838a8581518110610a1a57634e487b7160e01b600052603260045260246000fd5b60200260200101518a8681518110610a4257634e487b7160e01b600052603260045260246000fd5b60200260200101518a8781518110610a6a57634e487b7160e01b600052603260045260246000fd5b60200260200101518a8881518110610a9257634e487b7160e01b600052603260045260246000fd5b60200260200101518a8981518110610aba57634e487b7160e01b600052603260045260246000fd5b60200260200101518a611f09565b6004548a519192506001600160a01b0316906367674b14908b9086908110610b0057634e487b7160e01b600052603260045260246000fd5b60200260200101516040518263ffffffff1660e01b8152600401610b2691815260200190565b60206040518083038186803b158015610b3e57600080fd5b505afa158015610b52573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b7691906126d9565b8015610c37575060045489516000916001600160a01b03169063f89c6f18908c9087908110610bb557634e487b7160e01b600052603260045260246000fd5b60200260200101516040518263ffffffff1660e01b8152600401610bdb91815260200190565b60206040518083038186803b158015610bf357600080fd5b505afa158015610c07573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c2b9190612365565b6001600160a01b031614155b15610ca5576003546040516305bac88b60e41b81526101009091046001600160a01b031690635bac88b090610c7290849086906004016129b9565b600060405180830381600087803b158015610c8c57600080fd5b505af1158015610ca0573d6000803e3d6000fd5b505050505b505b5080610cb281612b74565b9150506108e2565b50505050505050565b610ccb611e8f565b6000825111610d2a5760405162461bcd60e51b815260206004820152602560248201527f57686974656c6973746564206164647265737365732063616e6e6f7420626520604482015264656d70747960d81b6064820152608401610438565b60005b8251811015610efa5760006001600160a01b0316838281518110610d6157634e487b7160e01b600052603260045260246000fd5b60200260200101516001600160a01b03161415610db85760405162461bcd60e51b815260206004820152601560248201527443616e2774206265207a65726f206164647265737360581b6044820152606401610438565b81151560056000858481518110610ddf57634e487b7160e01b600052603260045260246000fd5b6020908102919091018101516001600160a01b031682528101919091526040016000205460ff16151514610ee8578160056000858481518110610e3257634e487b7160e01b600052603260045260246000fd5b60200260200101516001600160a01b03166001600160a01b0316815260200190815260200160002060006101000a81548160ff0219169083151502179055507f58d7a3ccc34541e162fcfc87b84be7b78c34d1e1e7f15de6e4dd67d0fe70aecd838281518110610eb257634e487b7160e01b600052603260045260246000fd5b602002602001015183604051610edf9291906001600160a01b039290921682521515602082015260400190565b60405180910390a15b80610ef281612b74565b915050610d2d565b505050565b60076020528160005260406000208181548110610f1b57600080fd5b90600052602060002001600091509150505481565b6001546001600160a01b03163314610fa85760405162461bcd60e51b815260206004820152603560248201527f596f75206d757374206265206e6f6d696e61746564206265666f726520796f7560448201527402063616e20616363657074206f776e65727368697605c1b6064820152608401610438565b60005460015460408051620100009093046001600160a01b03908116845290911660208301527fb532073b38c83145e3e5135377a08bf9aab55bc0fd7c1179cd4fb995d2a5159c910160405180910390a1600180546000805462010000600160b01b0319166001600160a01b03831662010000021790556001600160a01b0319169055565b611035611e8f565b6001600160a01b03811661105b5760405162461bcd60e51b81526004016104389061294c565b60038054610100600160a81b0319166101006001600160a01b038416908102919091179091556040519081527f59cf4cddc1a33ae5f2e8785ba9dcc3c6e66807281882aa0afc75d385a1158cac9060200161051b565b6110b9611e8f565b600480546040516334d2a49760e11b81529182018590526001600160a01b0316906369a5492e9060240160206040518083038186803b1580156110fb57600080fd5b505afa15801561110f573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061113391906126d9565b61117f5760405162461bcd60e51b815260206004820152601860248201527f53706f72744964206973206e6f7420737570706f7274656400000000000000006044820152606401610438565b60005b8251811015611464576000848152600660205260408120845184151592908690859081106111c057634e487b7160e01b600052603260045260246000fd5b60209081029190910181015160ff9081168352908201929092526040016000205416151514611452576000848152600660205260408120845184929086908590811061121c57634e487b7160e01b600052603260045260246000fd5b602002602001015160ff1660ff16815260200190815260200160002060006101000a81548160ff02191690831515021790555081156112af576000848152600760205260409020835184908390811061128557634e487b7160e01b600052603260045260246000fd5b602090810291909101810151825460018101845560009384529190922060ff9092169101556113d9565b6000848152600760205260408120905b81548110156113d6578483815181106112e857634e487b7160e01b600052603260045260246000fd5b602002602001015160ff1682828154811061131357634e487b7160e01b600052603260045260246000fd5b906000526020600020015414156113c4578154829061133490600190612b31565b8154811061135257634e487b7160e01b600052603260045260246000fd5b906000526020600020015482828154811061137d57634e487b7160e01b600052603260045260246000fd5b9060005260206000200181905550818054806113a957634e487b7160e01b600052603160045260246000fd5b600190038181906000526020600020016000905590556113d6565b806113ce81612b74565b9150506112bf565b50505b7fb70524ae9a7cf136f746d8705877126d3c6b77544d7dcc8b02b51758d624f9d88484838151811061141b57634e487b7160e01b600052603260045260246000fd5b6020026020010151846040516114499392919092835260ff9190911660208301521515604082015260600190565b60405180910390a15b8061145c81612b74565b915050611182565b50505050565b611472611e8f565b6001600160a01b0381166114985760405162461bcd60e51b81526004016104389061294c565b600880546001600160a01b0319166001600160a01b0383169081179091556040519081527fcbc90bd664aa2bac499050056724f3d0459bda936d8d5889a946d7d74bc055599060200161051b565b6008546001600160a01b031633146115325760405162461bcd60e51b815260206004820152600f60248201526e24b73b30b634b2103bb930b83832b960891b6044820152606401610438565b60005b815181101561075857600082828151811061156057634e487b7160e01b600052603260045260246000fd5b602002602001015180602001905181019061157b919061277b565b600480548251604051631c2ab73160e21b8152928301529192506000916001600160a01b0316906370aadcc49060240160206040518083038186803b1580156115c357600080fd5b505afa1580156115d7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115fb9190612853565b6004805484516040516319d9d2c560e21b8152928301529192506001600160a01b03909116906367674b149060240160206040518083038186803b15801561164257600080fd5b505afa158015611656573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061167a91906126d9565b801561170c5750600480548351604051631f138de360e31b8152928301526000916001600160a01b039091169063f89c6f189060240160206040518083038186803b1580156116c857600080fd5b505afa1580156116dc573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117009190612365565b6001600160a01b031614155b8015611737575060008181526006602090815260408083208582015160ff9081168552925290912054165b156117a5576003546040516305bac88b60e41b81526101009091046001600160a01b031690635bac88b09061177290859085906004016129b9565b600060405180830381600087803b15801561178c57600080fd5b505af11580156117a0573d6000803e3d6000fd5b505050505b505080806117b290612b74565b915050611535565b6117c2611e8f565b6001600160a01b0381166117e85760405162461bcd60e51b81526004016104389061294c565b600154600160a81b900460ff16156118385760405162461bcd60e51b8152602060048201526013602482015272105b1c9958591e481d1c985b9cd9995c9c9959606a1b6044820152606401610438565b600080546001600160a01b038381166201000081810262010000600160b01b031990941693909317938490556001805460ff60a81b1916600160a81b1790556040805193909404909116825260208201527fb532073b38c83145e3e5135377a08bf9aab55bc0fd7c1179cd4fb995d2a5159c910161051b565b3360009081526005602052604090205460ff166119065760405162461bcd60e51b815260206004820152601360248201527257686974656c6973746564206164647265737360681b6044820152606401610438565b60005b8551811015611c8f57600360019054906101000a90046001600160a01b03166001600160a01b031663420209c287838151811061195657634e487b7160e01b600052603260045260246000fd5b602002602001015187848151811061197e57634e487b7160e01b600052603260045260246000fd5b60200260200101518785815181106119a657634e487b7160e01b600052603260045260246000fd5b60200260200101516040518463ffffffff1660e01b81526004016119e093929190928352602083019190915260ff16604082015260600190565b60206040518083038186803b1580156119f857600080fd5b505afa158015611a0c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a3091906126d9565b15611c7d576000611b61878381518110611a5a57634e487b7160e01b600052603260045260246000fd5b6020026020010151878481518110611a8257634e487b7160e01b600052603260045260246000fd5b6020026020010151878581518110611aaa57634e487b7160e01b600052603260045260246000fd5b6020026020010151878681518110611ad257634e487b7160e01b600052603260045260246000fd5b6020026020010151878781518110611afa57634e487b7160e01b600052603260045260246000fd5b60200260200101516040805160a081018252600080825260208201819052918101829052606081018290526080810191909152506040805160a081018252958652602086019490945260ff9283169385019390935261ffff16606084015216608082015290565b60045488519192506001600160a01b03169063489f4b9790899085908110611b9957634e487b7160e01b600052603260045260246000fd5b60200260200101516040518263ffffffff1660e01b8152600401611bbf91815260200190565b60206040518083038186803b158015611bd757600080fd5b505afa158015611beb573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611c0f91906126d9565b15611c7b5760035460405163fbf1c75560e01b81526101009091046001600160a01b03169063fbf1c75590611c48908490600401612975565b600060405180830381600087803b158015611c6257600080fd5b505af1158015611c76573d6000803e3d6000fd5b505050505b505b80611c8781612b74565b915050611909565b505050505050565b600054610100900460ff16611cb25760005460ff1615611cb6565b303b155b611d195760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b6064820152608401610438565b600054610100900460ff16158015611d3b576000805461ffff19166101011790555b611d44856103e6565b600480546001600160a01b0319166001600160a01b038681169190911790915560038054610100600160a81b0319166101009286169290920291909117905560005b8251811015611df957600160056000858481518110611db557634e487b7160e01b600052603260045260246000fd5b6020908102919091018101516001600160a01b03168252810191909152604001600020805460ff191691151591909117905580611df181612b74565b915050611d86565b508015611e0c576000805461ff00191690555b5050505050565b611e1b611e8f565b6001600160a01b038116611e415760405162461bcd60e51b81526004016104389061294c565b600480546001600160a01b0319166001600160a01b0383169081179091556040519081527f5f56489645cc15092ffab877840903cb7715aca3464f50d3e323ed6465777bbb9060200161051b565b6000546201000090046001600160a01b03163314611f075760405162461bcd60e51b815260206004820152602f60248201527f4f6e6c792074686520636f6e7472616374206f776e6572206d6179207065726660448201526e37b936903a3434b99030b1ba34b7b760891b6064820152608401610438565b565b6040805160e0810182526000808252602082018190529181018290526060808201526080810182905260a0810182905260c08101919091526040518060e001604052808881526020018781526020018660ff1681526020018581526020018461ffff168152602001838a6002611f7f9190612b12565b81518110611f9d57634e487b7160e01b600052603260045260246000fd5b602002602001015160020b8152602001838a6002611fbb9190612b12565b611fc6906001612afa565b81518110611fe457634e487b7160e01b600052603260045260246000fd5b602002602001015160020b8152509050979650505050505050565b600061201261200d84612ad3565b612a80565b905082815283838301111561202657600080fd5b828260208301376000602084830101529392505050565b600082601f83011261204d578081fd5b8135602061205d61200d83612ab0565b80838252828201915082860187848660051b890101111561207c578586fd5b855b858110156120a357813561209181612bbb565b8452928401929084019060010161207e565b5090979650505050505050565b600082601f8301126120c0578081fd5b813560206120d061200d83612ab0565b80838252828201915082860187848660051b89010111156120ef578586fd5b855b858110156120a3578135845292840192908401906001016120f1565b600082601f83011261211d578081fd5b8135602061212d61200d83612ab0565b80838252828201915082860187848660051b890101111561214c578586fd5b855b858110156120a357813561216181612bde565b8452928401929084019060010161214e565b600082601f830112612183578081fd5b8135602061219361200d83612ab0565b80838252828201915082860187848660051b89010111156121b2578586fd5b855b858110156120a35781356001600160401b038111156121d1578788fd5b8801603f81018a136121e1578788fd5b6121f28a8783013560408401611fff565b85525092840192908401906001016121b4565b600082601f830112612215578081fd5b8135602061222561200d83612ab0565b80838252828201915082860187848660051b8901011115612244578586fd5b855b858110156120a357813561225981612bed565b84529284019290840190600101612246565b600082601f83011261227b578081fd5b8135602061228b61200d83612ab0565b80838252828201915082860187848660051b89010111156122aa578586fd5b855b858110156120a35781356122bf81612bfd565b845292840192908401906001016122ac565b80516122dc81612bde565b919050565b600082601f8301126122f1578081fd5b81516122ff61200d82612ad3565b818152846020838601011115612313578283fd5b612324826020830160208701612b48565b949350505050565b80516122dc81612bed565b80516122dc81612bfd565b600060208284031215612353578081fd5b813561235e81612bbb565b9392505050565b600060208284031215612376578081fd5b815161235e81612bbb565b60008060008060808587031215612396578283fd5b84356123a181612bbb565b935060208501356123b181612bbb565b925060408501356123c181612bbb565b915060608501356001600160401b038111156123db578182fd5b6123e78782880161203d565b91505092959194509250565b60008060408385031215612405578182fd5b82356001600160401b0381111561241a578283fd5b6124268582860161203d565b925050602083013561243781612bd0565b809150509250929050565b60008060008060008060c0878903121561245a578384fd5b86356001600160401b0380821115612470578586fd5b61247c8a838b016120b0565b97506020890135915080821115612491578586fd5b61249d8a838b016120b0565b965060408901359150808211156124b2578586fd5b6124be8a838b0161226b565b955060608901359150808211156124d3578384fd5b6124df8a838b01612173565b945060808901359150808211156124f4578384fd5b6125008a838b01612205565b935060a0890135915080821115612515578283fd5b5061252289828a0161210d565b9150509295509295509295565b600080600080600060a08688031215612546578283fd5b85356001600160401b038082111561255c578485fd5b61256889838a016120b0565b9650602088013591508082111561257d578485fd5b61258989838a016120b0565b9550604088013591508082111561259e578485fd5b6125aa89838a0161226b565b945060608801359150808211156125bf578283fd5b6125cb89838a01612205565b935060808801359150808211156125e0578283fd5b506125ed8882890161226b565b9150509295509295909350565b6000602080838503121561260c578182fd5b82356001600160401b0380821115612622578384fd5b818501915085601f830112612635578384fd5b813561264361200d82612ab0565b80828252858201915085850189878560051b8801011115612662578788fd5b875b848110156126ae5781358681111561267a57898afd5b8701603f81018c1361268a57898afd5b61269b8c8a83013560408401611fff565b8552509287019290870190600101612664565b50909998505050505050505050565b6000602082840312156126ce578081fd5b813561235e81612bd0565b6000602082840312156126ea578081fd5b815161235e81612bd0565b600060a08284031215612706578081fd5b60405160a081018181106001600160401b038211171561272857612728612ba5565b80604052508251815260208301516020820152604083015161274981612bfd565b6040820152606083015161275c81612bed565b6060820152608083015161276f81612bfd565b60808201529392505050565b60006020828403121561278c578081fd5b81516001600160401b03808211156127a2578283fd5b9083019060e082860312156127b5578283fd5b6127bd612a58565b82518152602083015160208201526127d760408401612337565b60408201526060830151828111156127ed578485fd5b6127f9878286016122e1565b60608301525061280b6080840161232c565b608082015261281c60a084016122d1565b60a082015261282d60c084016122d1565b60c082015295945050505050565b60006020828403121561284c578081fd5b5035919050565b600060208284031215612864578081fd5b5051919050565b60008060006060848603121561287f578081fd5b8335925060208401356001600160401b0381111561289b578182fd5b6128a78682870161226b565b92505060408401356128b881612bd0565b809150509250925092565b600080604083850312156128d5578182fd5b50508035926020909101359150565b600080604083850312156128f6578182fd5b82359150602083013561243781612bfd565b6020808252825182820181905260009190848201906040850190845b8181101561294057835183529284019291840191600101612924565b50909695505050505050565b6020808252600f908201526e496e76616c6964206164647265737360881b604082015260600190565b600060a082019050825182526020830151602083015260ff604084015116604083015261ffff606084015116606083015260ff608084015116608083015292915050565b60408152825160408201526020830151606082015260ff60408401511660808201526000606084015160e060a0840152805180610120850152610140612a058282870160208601612b48565b608087015161ffff1660c086015260a0870151600281900b60e0870152925060c08701519250612a3b61010086018460020b9052565b6020850195909552601f01601f1916929092019092019392505050565b60405160e081016001600160401b0381118282101715612a7a57612a7a612ba5565b60405290565b604051601f8201601f191681016001600160401b0381118282101715612aa857612aa8612ba5565b604052919050565b60006001600160401b03821115612ac957612ac9612ba5565b5060051b60200190565b60006001600160401b03821115612aec57612aec612ba5565b50601f01601f191660200190565b60008219821115612b0d57612b0d612b8f565b500190565b6000816000190483118215151615612b2c57612b2c612b8f565b500290565b600082821015612b4357612b43612b8f565b500390565b60005b83811015612b63578181015183820152602001612b4b565b838111156114645750506000910152565b6000600019821415612b8857612b88612b8f565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b038116811461082557600080fd5b801515811461082557600080fd5b8060020b811461082557600080fd5b61ffff8116811461082557600080fd5b60ff8116811461082557600080fdfea26469706673582212203b04ec09c4b6ec78193da06f237d9e7dbb7d3c656bcae814f4fedc65ebd0772064736f6c63430008040033

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