ETH Price: $3,273.54 (-1.67%)

Contract

0xFB9A18230dc13FC7f066417379C3E23Ed4D47C20

Overview

ETH Balance

0 ETH

ETH Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To

There are no matching entries

Please try again later

View more zero value Internal Transactions in Advanced View mode

Advanced mode:

Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
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 canceling all options for a player in a game
    /// @param _gameIds for which gameids markets are canceling
    /// @param _playerIds for which playerids market is canceling
    function cancelMartketsForPlayerInAGame(bytes32[] memory _gameIds, bytes32[] memory _playerIds)
        external
        isAddressWhitelisted
    {
        for (uint i = 0; i < _gameIds.length; i++) {
            // game needs to be resolved or canceled
            if (consumer.isGameResolvedOrCanceled(_gameIds[i])) {
                playerProps.cancelMartketsForPlayerInAGame(_gameIds[i], _playerIds[i]);
            }
        }
    }

    /// @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 cancelMartketsForPlayerInAGame(bytes32 gameId, bytes32 playerId) 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 playerIdPerChildMarket(address _market) external view returns (bytes32);

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

    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);

    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);

    function marketForTeamName(string memory _teamName) external view returns (address);
}

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 Security Audit

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":[{"internalType":"bytes32[]","name":"_gameIds","type":"bytes32[]"},{"internalType":"bytes32[]","name":"_playerIds","type":"bytes32[]"}],"name":"cancelMartketsForPlayerInAGame","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"}]

608060405234801561001057600080fd5b50612e7d806100206000396000f3fe608060405234801561001057600080fd5b50600436106101a95760003560e01c806379ba5097116100f9578063b90983d211610097578063d150779411610071578063d1507794146103c8578063d30e1057146103db578063e6bfbfd8146103ee578063efe2c8a41461040157600080fd5b8063b90983d21461038f578063c1a0e03b146103a2578063c3b83f5f146103b557600080fd5b806391b4ded9116100d357806391b4ded91461034d5780639a066f5d14610356578063b08c344814610369578063b4fd72961461037c57600080fd5b806379ba5097146103195780637df8b802146103215780638da5cb5b1461033457600080fd5b80633a6386871161016657806353a47bb71161014057806353a47bb71461029b57806357e70092146102c65780635c975abb146102f45780635d7fb8e21461030157600080fd5b80633a63868714610254578063408ae58514610267578063516dbd6f1461027a57600080fd5b806306c933d8146101ae57806313af4035146101e657806316187ad6146101fb5780631627540c1461020e57806316c38b3c146102215780631f2374f314610234575b600080fd5b6101d16101bc3660046124f0565b60056020526000908152604090205460ff1681565b60405190151581526020015b60405180910390f35b6101f96101f43660046124f0565b610414565b005b6101f9610209366004612808565b610554565b6101f961021c3660046124f0565b61078a565b6101f961022f3660046128cb565b6107e0565b610247610242366004612a49565b610856565b6040516101dd9190612b16565b6101f9610262366004612650565b6108b8565b6101f96102753660046125a1565b610ccb565b61028d610288366004612ad1565b610f07565b6040519081526020016101dd565b6001546102ae906001600160a01b031681565b6040516001600160a01b0390911681526020016101dd565b6101d16102d4366004612af2565b600660209081526000928352604080842090915290825290205460ff1681565b6003546101d19060ff1681565b6003546102ae9061010090046001600160a01b031681565b6101f9610f38565b6008546102ae906001600160a01b031681565b6000546102ae906201000090046001600160a01b031681565b61028d60025481565b6101f96103643660046124f0565b611035565b6101f9610377366004612a79565b6110b9565b6004546102ae906001600160a01b031681565b6101f961039d3660046124f0565b611472565b6101f96103b0366004612808565b6114ee565b6101f96103c33660046124f0565b6117c2565b6101f96103d636600461273d565b6118b9565b6101f96103e93660046125f0565b611c79565b6101f96103fc36600461252f565b611e45565b6101f961040f3660046124f0565b611fc1565b6001600160a01b03811661046f5760405162461bcd60e51b815260206004820152601960248201527f4f776e657220616464726573732063616e6e6f7420626520300000000000000060448201526064015b60405180910390fd5b600154600160a01b900460ff16156104db5760405162461bcd60e51b815260206004820152602960248201527f416c726561647920696e697469616c697a65642c20757365206e6f6d696e617460448201526832a732bba7bbb732b960b91b6064820152608401610466565b6001805460ff60a01b1916600160a01b179055600080546001600160a01b03831662010000810262010000600160b01b03199092169190911782556040805192835260208301919091527fb532073b38c83145e3e5135377a08bf9aab55bc0fd7c1179cd4fb995d2a5159c91015b60405180910390a150565b6008546001600160a01b031633146105a05760405162461bcd60e51b815260206004820152600f60248201526e24b73b30b634b2103bb930b83832b960891b6044820152606401610466565b60005b81518110156107865760008282815181106105ce57634e487b7160e01b600052603260045260246000fd5b60200260200101518060200190518101906105e99190612903565b60035481516020830151604080850151905163210104e160e11b81526004810193909352602483019190915260ff16604482015291925061010090046001600160a01b03169063420209c29060640160206040518083038186803b15801561065057600080fd5b505afa158015610664573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061068891906128e7565b156107735760048054825160405163489f4b9760e01b8152928301526001600160a01b03169063489f4b979060240160206040518083038186803b1580156106cf57600080fd5b505afa1580156106e3573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061070791906128e7565b156107735760035460405163fbf1c75560e01b81526101009091046001600160a01b03169063fbf1c75590610740908490600401612bb0565b600060405180830381600087803b15801561075a57600080fd5b505af115801561076e573d6000803e3d6000fd5b505050505b508061077e81612daf565b9150506105a3565b5050565b61079261203d565b600180546001600160a01b0319166001600160a01b0383169081179091556040519081527f906a1c6bd7e3091ea86693dd029a831c19049ce77f1dce2ce0bab1cacbabce2290602001610549565b6107e861203d565b60035460ff16151581151514156107fc5750565b6003805460ff191682151590811790915560ff161561081a57426002555b60035460405160ff909116151581527f8fb6c181ee25a520cf3dd6565006ef91229fcfe5a989566c2a3b8c115570cec590602001610549565b50565b6000818152600760209081526040918290208054835181840281018401909452808452606093928301828280156108ac57602002820191906000526020600020905b815481526020019060010190808311610898575b50505050509050919050565b3360009081526005602052604090205460ff166108e75760405162461bcd60e51b815260040161046690612b83565b60005b8651811015610cc25760045487516000916001600160a01b0316906370aadcc4908a908590811061092b57634e487b7160e01b600052603260045260246000fd5b60200260200101516040518263ffffffff1660e01b815260040161095191815260200190565b60206040518083038186803b15801561096957600080fd5b505afa15801561097d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109a19190612a61565b60008181526006602052604081208851929350918890859081106109d557634e487b7160e01b600052603260045260246000fd5b60209081029190910181015160ff908116835290820192909252604001600020541615610caf576000610ad0838a8581518110610a2257634e487b7160e01b600052603260045260246000fd5b60200260200101518a8681518110610a4a57634e487b7160e01b600052603260045260246000fd5b60200260200101518a8781518110610a7257634e487b7160e01b600052603260045260246000fd5b60200260200101518a8881518110610a9a57634e487b7160e01b600052603260045260246000fd5b60200260200101518a8981518110610ac257634e487b7160e01b600052603260045260246000fd5b60200260200101518a6120b7565b6004548a519192506001600160a01b0316906367674b14908b9086908110610b0857634e487b7160e01b600052603260045260246000fd5b60200260200101516040518263ffffffff1660e01b8152600401610b2e91815260200190565b60206040518083038186803b158015610b4657600080fd5b505afa158015610b5a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b7e91906128e7565b8015610c3f575060045489516000916001600160a01b03169063f89c6f18908c9087908110610bbd57634e487b7160e01b600052603260045260246000fd5b60200260200101516040518263ffffffff1660e01b8152600401610be391815260200190565b60206040518083038186803b158015610bfb57600080fd5b505afa158015610c0f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c339190612513565b6001600160a01b031614155b15610cad576003546040516305bac88b60e41b81526101009091046001600160a01b031690635bac88b090610c7a9084908690600401612bf4565b600060405180830381600087803b158015610c9457600080fd5b505af1158015610ca8573d6000803e3d6000fd5b505050505b505b5080610cba81612daf565b9150506108ea565b50505050505050565b610cd361203d565b6000825111610d325760405162461bcd60e51b815260206004820152602560248201527f57686974656c6973746564206164647265737365732063616e6e6f7420626520604482015264656d70747960d81b6064820152608401610466565b60005b8251811015610f025760006001600160a01b0316838281518110610d6957634e487b7160e01b600052603260045260246000fd5b60200260200101516001600160a01b03161415610dc05760405162461bcd60e51b815260206004820152601560248201527443616e2774206265207a65726f206164647265737360581b6044820152606401610466565b81151560056000858481518110610de757634e487b7160e01b600052603260045260246000fd5b6020908102919091018101516001600160a01b031682528101919091526040016000205460ff16151514610ef0578160056000858481518110610e3a57634e487b7160e01b600052603260045260246000fd5b60200260200101516001600160a01b03166001600160a01b0316815260200190815260200160002060006101000a81548160ff0219169083151502179055507f58d7a3ccc34541e162fcfc87b84be7b78c34d1e1e7f15de6e4dd67d0fe70aecd838281518110610eba57634e487b7160e01b600052603260045260246000fd5b602002602001015183604051610ee79291906001600160a01b039290921682521515602082015260400190565b60405180910390a15b80610efa81612daf565b915050610d35565b505050565b60076020528160005260406000208181548110610f2357600080fd5b90600052602060002001600091509150505481565b6001546001600160a01b03163314610fb05760405162461bcd60e51b815260206004820152603560248201527f596f75206d757374206265206e6f6d696e61746564206265666f726520796f7560448201527402063616e20616363657074206f776e65727368697605c1b6064820152608401610466565b60005460015460408051620100009093046001600160a01b03908116845290911660208301527fb532073b38c83145e3e5135377a08bf9aab55bc0fd7c1179cd4fb995d2a5159c910160405180910390a1600180546000805462010000600160b01b0319166001600160a01b03831662010000021790556001600160a01b0319169055565b61103d61203d565b6001600160a01b0381166110635760405162461bcd60e51b815260040161046690612b5a565b60038054610100600160a81b0319166101006001600160a01b038416908102919091179091556040519081527f59cf4cddc1a33ae5f2e8785ba9dcc3c6e66807281882aa0afc75d385a1158cac90602001610549565b6110c161203d565b600480546040516334d2a49760e11b81529182018590526001600160a01b0316906369a5492e9060240160206040518083038186803b15801561110357600080fd5b505afa158015611117573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061113b91906128e7565b6111875760405162461bcd60e51b815260206004820152601860248201527f53706f72744964206973206e6f7420737570706f7274656400000000000000006044820152606401610466565b60005b825181101561146c576000848152600660205260408120845184151592908690859081106111c857634e487b7160e01b600052603260045260246000fd5b60209081029190910181015160ff908116835290820192909252604001600020541615151461145a576000848152600660205260408120845184929086908590811061122457634e487b7160e01b600052603260045260246000fd5b602002602001015160ff1660ff16815260200190815260200160002060006101000a81548160ff02191690831515021790555081156112b7576000848152600760205260409020835184908390811061128d57634e487b7160e01b600052603260045260246000fd5b602090810291909101810151825460018101845560009384529190922060ff9092169101556113e1565b6000848152600760205260408120905b81548110156113de578483815181106112f057634e487b7160e01b600052603260045260246000fd5b602002602001015160ff1682828154811061131b57634e487b7160e01b600052603260045260246000fd5b906000526020600020015414156113cc578154829061133c90600190612d6c565b8154811061135a57634e487b7160e01b600052603260045260246000fd5b906000526020600020015482828154811061138557634e487b7160e01b600052603260045260246000fd5b9060005260206000200181905550818054806113b157634e487b7160e01b600052603160045260246000fd5b600190038181906000526020600020016000905590556113de565b806113d681612daf565b9150506112c7565b50505b7fb70524ae9a7cf136f746d8705877126d3c6b77544d7dcc8b02b51758d624f9d88484838151811061142357634e487b7160e01b600052603260045260246000fd5b6020026020010151846040516114519392919092835260ff9190911660208301521515604082015260600190565b60405180910390a15b8061146481612daf565b91505061118a565b50505050565b61147a61203d565b6001600160a01b0381166114a05760405162461bcd60e51b815260040161046690612b5a565b600880546001600160a01b0319166001600160a01b0383169081179091556040519081527fcbc90bd664aa2bac499050056724f3d0459bda936d8d5889a946d7d74bc0555990602001610549565b6008546001600160a01b0316331461153a5760405162461bcd60e51b815260206004820152600f60248201526e24b73b30b634b2103bb930b83832b960891b6044820152606401610466565b60005b815181101561078657600082828151811061156857634e487b7160e01b600052603260045260246000fd5b60200260200101518060200190518101906115839190612989565b600480548251604051631c2ab73160e21b8152928301529192506000916001600160a01b0316906370aadcc49060240160206040518083038186803b1580156115cb57600080fd5b505afa1580156115df573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116039190612a61565b6004805484516040516319d9d2c560e21b8152928301529192506001600160a01b03909116906367674b149060240160206040518083038186803b15801561164a57600080fd5b505afa15801561165e573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061168291906128e7565b80156117145750600480548351604051631f138de360e31b8152928301526000916001600160a01b039091169063f89c6f189060240160206040518083038186803b1580156116d057600080fd5b505afa1580156116e4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117089190612513565b6001600160a01b031614155b801561173f575060008181526006602090815260408083208582015160ff9081168552925290912054165b156117ad576003546040516305bac88b60e41b81526101009091046001600160a01b031690635bac88b09061177a9085908590600401612bf4565b600060405180830381600087803b15801561179457600080fd5b505af11580156117a8573d6000803e3d6000fd5b505050505b505080806117ba90612daf565b91505061153d565b6117ca61203d565b6001600160a01b0381166117f05760405162461bcd60e51b815260040161046690612b5a565b600154600160a81b900460ff16156118405760405162461bcd60e51b8152602060048201526013602482015272105b1c9958591e481d1c985b9cd9995c9c9959606a1b6044820152606401610466565b600080546001600160a01b038381166201000081810262010000600160b01b031990941693909317938490556001805460ff60a81b1916600160a81b1790556040805193909404909116825260208201527fb532073b38c83145e3e5135377a08bf9aab55bc0fd7c1179cd4fb995d2a5159c9101610549565b3360009081526005602052604090205460ff166118e85760405162461bcd60e51b815260040161046690612b83565b60005b8551811015611c7157600360019054906101000a90046001600160a01b03166001600160a01b031663420209c287838151811061193857634e487b7160e01b600052603260045260246000fd5b602002602001015187848151811061196057634e487b7160e01b600052603260045260246000fd5b602002602001015187858151811061198857634e487b7160e01b600052603260045260246000fd5b60200260200101516040518463ffffffff1660e01b81526004016119c293929190928352602083019190915260ff16604082015260600190565b60206040518083038186803b1580156119da57600080fd5b505afa1580156119ee573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a1291906128e7565b15611c5f576000611b43878381518110611a3c57634e487b7160e01b600052603260045260246000fd5b6020026020010151878481518110611a6457634e487b7160e01b600052603260045260246000fd5b6020026020010151878581518110611a8c57634e487b7160e01b600052603260045260246000fd5b6020026020010151878681518110611ab457634e487b7160e01b600052603260045260246000fd5b6020026020010151878781518110611adc57634e487b7160e01b600052603260045260246000fd5b60200260200101516040805160a081018252600080825260208201819052918101829052606081018290526080810191909152506040805160a081018252958652602086019490945260ff9283169385019390935261ffff16606084015216608082015290565b60045488519192506001600160a01b03169063489f4b9790899085908110611b7b57634e487b7160e01b600052603260045260246000fd5b60200260200101516040518263ffffffff1660e01b8152600401611ba191815260200190565b60206040518083038186803b158015611bb957600080fd5b505afa158015611bcd573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611bf191906128e7565b15611c5d5760035460405163fbf1c75560e01b81526101009091046001600160a01b03169063fbf1c75590611c2a908490600401612bb0565b600060405180830381600087803b158015611c4457600080fd5b505af1158015611c58573d6000803e3d6000fd5b505050505b505b80611c6981612daf565b9150506118eb565b505050505050565b3360009081526005602052604090205460ff16611ca85760405162461bcd60e51b815260040161046690612b83565b60005b8251811015610f025760045483516001600160a01b039091169063489f4b9790859084908110611ceb57634e487b7160e01b600052603260045260246000fd5b60200260200101516040518263ffffffff1660e01b8152600401611d1191815260200190565b60206040518083038186803b158015611d2957600080fd5b505afa158015611d3d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611d6191906128e7565b15611e3357600360019054906101000a90046001600160a01b03166001600160a01b03166305f1df78848381518110611daa57634e487b7160e01b600052603260045260246000fd5b6020026020010151848481518110611dd257634e487b7160e01b600052603260045260246000fd5b60200260200101516040518363ffffffff1660e01b8152600401611e00929190918252602082015260400190565b600060405180830381600087803b158015611e1a57600080fd5b505af1158015611e2e573d6000803e3d6000fd5b505050505b80611e3d81612daf565b915050611cab565b600054610100900460ff16611e605760005460ff1615611e64565b303b155b611ec75760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b6064820152608401610466565b600054610100900460ff16158015611ee9576000805461ffff19166101011790555b611ef285610414565b600480546001600160a01b0319166001600160a01b038681169190911790915560038054610100600160a81b0319166101009286169290920291909117905560005b8251811015611fa757600160056000858481518110611f6357634e487b7160e01b600052603260045260246000fd5b6020908102919091018101516001600160a01b03168252810191909152604001600020805460ff191691151591909117905580611f9f81612daf565b915050611f34565b508015611fba576000805461ff00191690555b5050505050565b611fc961203d565b6001600160a01b038116611fef5760405162461bcd60e51b815260040161046690612b5a565b600480546001600160a01b0319166001600160a01b0383169081179091556040519081527f5f56489645cc15092ffab877840903cb7715aca3464f50d3e323ed6465777bbb90602001610549565b6000546201000090046001600160a01b031633146120b55760405162461bcd60e51b815260206004820152602f60248201527f4f6e6c792074686520636f6e7472616374206f776e6572206d6179207065726660448201526e37b936903a3434b99030b1ba34b7b760891b6064820152608401610466565b565b6040805160e0810182526000808252602082018190529181018290526060808201526080810182905260a0810182905260c08101919091526040518060e001604052808881526020018781526020018660ff1681526020018581526020018461ffff168152602001838a600261212d9190612d4d565b8151811061214b57634e487b7160e01b600052603260045260246000fd5b602002602001015160020b8152602001838a60026121699190612d4d565b612174906001612d35565b8151811061219257634e487b7160e01b600052603260045260246000fd5b602002602001015160020b8152509050979650505050505050565b60006121c06121bb84612d0e565b612cbb565b90508281528383830111156121d457600080fd5b828260208301376000602084830101529392505050565b600082601f8301126121fb578081fd5b8135602061220b6121bb83612ceb565b80838252828201915082860187848660051b890101111561222a578586fd5b855b8581101561225157813561223f81612df6565b8452928401929084019060010161222c565b5090979650505050505050565b600082601f83011261226e578081fd5b8135602061227e6121bb83612ceb565b80838252828201915082860187848660051b890101111561229d578586fd5b855b858110156122515781358452928401929084019060010161229f565b600082601f8301126122cb578081fd5b813560206122db6121bb83612ceb565b80838252828201915082860187848660051b89010111156122fa578586fd5b855b8581101561225157813561230f81612e19565b845292840192908401906001016122fc565b600082601f830112612331578081fd5b813560206123416121bb83612ceb565b80838252828201915082860187848660051b8901011115612360578586fd5b855b858110156122515781356001600160401b0381111561237f578788fd5b8801603f81018a1361238f578788fd5b6123a08a87830135604084016121ad565b8552509284019290840190600101612362565b600082601f8301126123c3578081fd5b813560206123d36121bb83612ceb565b80838252828201915082860187848660051b89010111156123f2578586fd5b855b8581101561225157813561240781612e28565b845292840192908401906001016123f4565b600082601f830112612429578081fd5b813560206124396121bb83612ceb565b80838252828201915082860187848660051b8901011115612458578586fd5b855b8581101561225157813561246d81612e38565b8452928401929084019060010161245a565b805161248a81612e19565b919050565b600082601f83011261249f578081fd5b81516124ad6121bb82612d0e565b8181528460208386010111156124c1578283fd5b6124d2826020830160208701612d83565b949350505050565b805161248a81612e28565b805161248a81612e38565b600060208284031215612501578081fd5b813561250c81612df6565b9392505050565b600060208284031215612524578081fd5b815161250c81612df6565b60008060008060808587031215612544578283fd5b843561254f81612df6565b9350602085013561255f81612df6565b9250604085013561256f81612df6565b915060608501356001600160401b03811115612589578182fd5b612595878288016121eb565b91505092959194509250565b600080604083850312156125b3578182fd5b82356001600160401b038111156125c8578283fd5b6125d4858286016121eb565b92505060208301356125e581612e0b565b809150509250929050565b60008060408385031215612602578182fd5b82356001600160401b0380821115612618578384fd5b6126248683870161225e565b93506020850135915080821115612639578283fd5b506126468582860161225e565b9150509250929050565b60008060008060008060c08789031215612668578384fd5b86356001600160401b038082111561267e578586fd5b61268a8a838b0161225e565b9750602089013591508082111561269f578586fd5b6126ab8a838b0161225e565b965060408901359150808211156126c0578586fd5b6126cc8a838b01612419565b955060608901359150808211156126e1578384fd5b6126ed8a838b01612321565b94506080890135915080821115612702578384fd5b61270e8a838b016123b3565b935060a0890135915080821115612723578283fd5b5061273089828a016122bb565b9150509295509295509295565b600080600080600060a08688031215612754578283fd5b85356001600160401b038082111561276a578485fd5b61277689838a0161225e565b9650602088013591508082111561278b578485fd5b61279789838a0161225e565b955060408801359150808211156127ac578485fd5b6127b889838a01612419565b945060608801359150808211156127cd578283fd5b6127d989838a016123b3565b935060808801359150808211156127ee578283fd5b506127fb88828901612419565b9150509295509295909350565b6000602080838503121561281a578182fd5b82356001600160401b0380821115612830578384fd5b818501915085601f830112612843578384fd5b81356128516121bb82612ceb565b80828252858201915085850189878560051b8801011115612870578788fd5b875b848110156128bc5781358681111561288857898afd5b8701603f81018c1361289857898afd5b6128a98c8a830135604084016121ad565b8552509287019290870190600101612872565b50909998505050505050505050565b6000602082840312156128dc578081fd5b813561250c81612e0b565b6000602082840312156128f8578081fd5b815161250c81612e0b565b600060a08284031215612914578081fd5b60405160a081018181106001600160401b038211171561293657612936612de0565b80604052508251815260208301516020820152604083015161295781612e38565b6040820152606083015161296a81612e28565b6060820152608083015161297d81612e38565b60808201529392505050565b60006020828403121561299a578081fd5b81516001600160401b03808211156129b0578283fd5b9083019060e082860312156129c3578283fd5b6129cb612c93565b82518152602083015160208201526129e5604084016124e5565b60408201526060830151828111156129fb578485fd5b612a078782860161248f565b606083015250612a19608084016124da565b6080820152612a2a60a0840161247f565b60a0820152612a3b60c0840161247f565b60c082015295945050505050565b600060208284031215612a5a578081fd5b5035919050565b600060208284031215612a72578081fd5b5051919050565b600080600060608486031215612a8d578081fd5b8335925060208401356001600160401b03811115612aa9578182fd5b612ab586828701612419565b9250506040840135612ac681612e0b565b809150509250925092565b60008060408385031215612ae3578182fd5b50508035926020909101359150565b60008060408385031215612b04578182fd5b8235915060208301356125e581612e38565b6020808252825182820181905260009190848201906040850190845b81811015612b4e57835183529284019291840191600101612b32565b50909695505050505050565b6020808252600f908201526e496e76616c6964206164647265737360881b604082015260600190565b60208082526013908201527257686974656c6973746564206164647265737360681b604082015260600190565b600060a082019050825182526020830151602083015260ff604084015116604083015261ffff606084015116606083015260ff608084015116608083015292915050565b60408152825160408201526020830151606082015260ff60408401511660808201526000606084015160e060a0840152805180610120850152610140612c408282870160208601612d83565b608087015161ffff1660c086015260a0870151600281900b60e0870152925060c08701519250612c7661010086018460020b9052565b6020850195909552601f01601f1916929092019092019392505050565b60405160e081016001600160401b0381118282101715612cb557612cb5612de0565b60405290565b604051601f8201601f191681016001600160401b0381118282101715612ce357612ce3612de0565b604052919050565b60006001600160401b03821115612d0457612d04612de0565b5060051b60200190565b60006001600160401b03821115612d2757612d27612de0565b50601f01601f191660200190565b60008219821115612d4857612d48612dca565b500190565b6000816000190483118215151615612d6757612d67612dca565b500290565b600082821015612d7e57612d7e612dca565b500390565b60005b83811015612d9e578181015183820152602001612d86565b8381111561146c5750506000910152565b6000600019821415612dc357612dc3612dca565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b038116811461085357600080fd5b801515811461085357600080fd5b8060020b811461085357600080fd5b61ffff8116811461085357600080fd5b60ff8116811461085357600080fdfea2646970667358221220cb8ca26cbe6553e22676358ec9ea8926167358bf4a56550ab9e3d9175509e70864736f6c63430008040033

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106101a95760003560e01c806379ba5097116100f9578063b90983d211610097578063d150779411610071578063d1507794146103c8578063d30e1057146103db578063e6bfbfd8146103ee578063efe2c8a41461040157600080fd5b8063b90983d21461038f578063c1a0e03b146103a2578063c3b83f5f146103b557600080fd5b806391b4ded9116100d357806391b4ded91461034d5780639a066f5d14610356578063b08c344814610369578063b4fd72961461037c57600080fd5b806379ba5097146103195780637df8b802146103215780638da5cb5b1461033457600080fd5b80633a6386871161016657806353a47bb71161014057806353a47bb71461029b57806357e70092146102c65780635c975abb146102f45780635d7fb8e21461030157600080fd5b80633a63868714610254578063408ae58514610267578063516dbd6f1461027a57600080fd5b806306c933d8146101ae57806313af4035146101e657806316187ad6146101fb5780631627540c1461020e57806316c38b3c146102215780631f2374f314610234575b600080fd5b6101d16101bc3660046124f0565b60056020526000908152604090205460ff1681565b60405190151581526020015b60405180910390f35b6101f96101f43660046124f0565b610414565b005b6101f9610209366004612808565b610554565b6101f961021c3660046124f0565b61078a565b6101f961022f3660046128cb565b6107e0565b610247610242366004612a49565b610856565b6040516101dd9190612b16565b6101f9610262366004612650565b6108b8565b6101f96102753660046125a1565b610ccb565b61028d610288366004612ad1565b610f07565b6040519081526020016101dd565b6001546102ae906001600160a01b031681565b6040516001600160a01b0390911681526020016101dd565b6101d16102d4366004612af2565b600660209081526000928352604080842090915290825290205460ff1681565b6003546101d19060ff1681565b6003546102ae9061010090046001600160a01b031681565b6101f9610f38565b6008546102ae906001600160a01b031681565b6000546102ae906201000090046001600160a01b031681565b61028d60025481565b6101f96103643660046124f0565b611035565b6101f9610377366004612a79565b6110b9565b6004546102ae906001600160a01b031681565b6101f961039d3660046124f0565b611472565b6101f96103b0366004612808565b6114ee565b6101f96103c33660046124f0565b6117c2565b6101f96103d636600461273d565b6118b9565b6101f96103e93660046125f0565b611c79565b6101f96103fc36600461252f565b611e45565b6101f961040f3660046124f0565b611fc1565b6001600160a01b03811661046f5760405162461bcd60e51b815260206004820152601960248201527f4f776e657220616464726573732063616e6e6f7420626520300000000000000060448201526064015b60405180910390fd5b600154600160a01b900460ff16156104db5760405162461bcd60e51b815260206004820152602960248201527f416c726561647920696e697469616c697a65642c20757365206e6f6d696e617460448201526832a732bba7bbb732b960b91b6064820152608401610466565b6001805460ff60a01b1916600160a01b179055600080546001600160a01b03831662010000810262010000600160b01b03199092169190911782556040805192835260208301919091527fb532073b38c83145e3e5135377a08bf9aab55bc0fd7c1179cd4fb995d2a5159c91015b60405180910390a150565b6008546001600160a01b031633146105a05760405162461bcd60e51b815260206004820152600f60248201526e24b73b30b634b2103bb930b83832b960891b6044820152606401610466565b60005b81518110156107865760008282815181106105ce57634e487b7160e01b600052603260045260246000fd5b60200260200101518060200190518101906105e99190612903565b60035481516020830151604080850151905163210104e160e11b81526004810193909352602483019190915260ff16604482015291925061010090046001600160a01b03169063420209c29060640160206040518083038186803b15801561065057600080fd5b505afa158015610664573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061068891906128e7565b156107735760048054825160405163489f4b9760e01b8152928301526001600160a01b03169063489f4b979060240160206040518083038186803b1580156106cf57600080fd5b505afa1580156106e3573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061070791906128e7565b156107735760035460405163fbf1c75560e01b81526101009091046001600160a01b03169063fbf1c75590610740908490600401612bb0565b600060405180830381600087803b15801561075a57600080fd5b505af115801561076e573d6000803e3d6000fd5b505050505b508061077e81612daf565b9150506105a3565b5050565b61079261203d565b600180546001600160a01b0319166001600160a01b0383169081179091556040519081527f906a1c6bd7e3091ea86693dd029a831c19049ce77f1dce2ce0bab1cacbabce2290602001610549565b6107e861203d565b60035460ff16151581151514156107fc5750565b6003805460ff191682151590811790915560ff161561081a57426002555b60035460405160ff909116151581527f8fb6c181ee25a520cf3dd6565006ef91229fcfe5a989566c2a3b8c115570cec590602001610549565b50565b6000818152600760209081526040918290208054835181840281018401909452808452606093928301828280156108ac57602002820191906000526020600020905b815481526020019060010190808311610898575b50505050509050919050565b3360009081526005602052604090205460ff166108e75760405162461bcd60e51b815260040161046690612b83565b60005b8651811015610cc25760045487516000916001600160a01b0316906370aadcc4908a908590811061092b57634e487b7160e01b600052603260045260246000fd5b60200260200101516040518263ffffffff1660e01b815260040161095191815260200190565b60206040518083038186803b15801561096957600080fd5b505afa15801561097d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109a19190612a61565b60008181526006602052604081208851929350918890859081106109d557634e487b7160e01b600052603260045260246000fd5b60209081029190910181015160ff908116835290820192909252604001600020541615610caf576000610ad0838a8581518110610a2257634e487b7160e01b600052603260045260246000fd5b60200260200101518a8681518110610a4a57634e487b7160e01b600052603260045260246000fd5b60200260200101518a8781518110610a7257634e487b7160e01b600052603260045260246000fd5b60200260200101518a8881518110610a9a57634e487b7160e01b600052603260045260246000fd5b60200260200101518a8981518110610ac257634e487b7160e01b600052603260045260246000fd5b60200260200101518a6120b7565b6004548a519192506001600160a01b0316906367674b14908b9086908110610b0857634e487b7160e01b600052603260045260246000fd5b60200260200101516040518263ffffffff1660e01b8152600401610b2e91815260200190565b60206040518083038186803b158015610b4657600080fd5b505afa158015610b5a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b7e91906128e7565b8015610c3f575060045489516000916001600160a01b03169063f89c6f18908c9087908110610bbd57634e487b7160e01b600052603260045260246000fd5b60200260200101516040518263ffffffff1660e01b8152600401610be391815260200190565b60206040518083038186803b158015610bfb57600080fd5b505afa158015610c0f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c339190612513565b6001600160a01b031614155b15610cad576003546040516305bac88b60e41b81526101009091046001600160a01b031690635bac88b090610c7a9084908690600401612bf4565b600060405180830381600087803b158015610c9457600080fd5b505af1158015610ca8573d6000803e3d6000fd5b505050505b505b5080610cba81612daf565b9150506108ea565b50505050505050565b610cd361203d565b6000825111610d325760405162461bcd60e51b815260206004820152602560248201527f57686974656c6973746564206164647265737365732063616e6e6f7420626520604482015264656d70747960d81b6064820152608401610466565b60005b8251811015610f025760006001600160a01b0316838281518110610d6957634e487b7160e01b600052603260045260246000fd5b60200260200101516001600160a01b03161415610dc05760405162461bcd60e51b815260206004820152601560248201527443616e2774206265207a65726f206164647265737360581b6044820152606401610466565b81151560056000858481518110610de757634e487b7160e01b600052603260045260246000fd5b6020908102919091018101516001600160a01b031682528101919091526040016000205460ff16151514610ef0578160056000858481518110610e3a57634e487b7160e01b600052603260045260246000fd5b60200260200101516001600160a01b03166001600160a01b0316815260200190815260200160002060006101000a81548160ff0219169083151502179055507f58d7a3ccc34541e162fcfc87b84be7b78c34d1e1e7f15de6e4dd67d0fe70aecd838281518110610eba57634e487b7160e01b600052603260045260246000fd5b602002602001015183604051610ee79291906001600160a01b039290921682521515602082015260400190565b60405180910390a15b80610efa81612daf565b915050610d35565b505050565b60076020528160005260406000208181548110610f2357600080fd5b90600052602060002001600091509150505481565b6001546001600160a01b03163314610fb05760405162461bcd60e51b815260206004820152603560248201527f596f75206d757374206265206e6f6d696e61746564206265666f726520796f7560448201527402063616e20616363657074206f776e65727368697605c1b6064820152608401610466565b60005460015460408051620100009093046001600160a01b03908116845290911660208301527fb532073b38c83145e3e5135377a08bf9aab55bc0fd7c1179cd4fb995d2a5159c910160405180910390a1600180546000805462010000600160b01b0319166001600160a01b03831662010000021790556001600160a01b0319169055565b61103d61203d565b6001600160a01b0381166110635760405162461bcd60e51b815260040161046690612b5a565b60038054610100600160a81b0319166101006001600160a01b038416908102919091179091556040519081527f59cf4cddc1a33ae5f2e8785ba9dcc3c6e66807281882aa0afc75d385a1158cac90602001610549565b6110c161203d565b600480546040516334d2a49760e11b81529182018590526001600160a01b0316906369a5492e9060240160206040518083038186803b15801561110357600080fd5b505afa158015611117573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061113b91906128e7565b6111875760405162461bcd60e51b815260206004820152601860248201527f53706f72744964206973206e6f7420737570706f7274656400000000000000006044820152606401610466565b60005b825181101561146c576000848152600660205260408120845184151592908690859081106111c857634e487b7160e01b600052603260045260246000fd5b60209081029190910181015160ff908116835290820192909252604001600020541615151461145a576000848152600660205260408120845184929086908590811061122457634e487b7160e01b600052603260045260246000fd5b602002602001015160ff1660ff16815260200190815260200160002060006101000a81548160ff02191690831515021790555081156112b7576000848152600760205260409020835184908390811061128d57634e487b7160e01b600052603260045260246000fd5b602090810291909101810151825460018101845560009384529190922060ff9092169101556113e1565b6000848152600760205260408120905b81548110156113de578483815181106112f057634e487b7160e01b600052603260045260246000fd5b602002602001015160ff1682828154811061131b57634e487b7160e01b600052603260045260246000fd5b906000526020600020015414156113cc578154829061133c90600190612d6c565b8154811061135a57634e487b7160e01b600052603260045260246000fd5b906000526020600020015482828154811061138557634e487b7160e01b600052603260045260246000fd5b9060005260206000200181905550818054806113b157634e487b7160e01b600052603160045260246000fd5b600190038181906000526020600020016000905590556113de565b806113d681612daf565b9150506112c7565b50505b7fb70524ae9a7cf136f746d8705877126d3c6b77544d7dcc8b02b51758d624f9d88484838151811061142357634e487b7160e01b600052603260045260246000fd5b6020026020010151846040516114519392919092835260ff9190911660208301521515604082015260600190565b60405180910390a15b8061146481612daf565b91505061118a565b50505050565b61147a61203d565b6001600160a01b0381166114a05760405162461bcd60e51b815260040161046690612b5a565b600880546001600160a01b0319166001600160a01b0383169081179091556040519081527fcbc90bd664aa2bac499050056724f3d0459bda936d8d5889a946d7d74bc0555990602001610549565b6008546001600160a01b0316331461153a5760405162461bcd60e51b815260206004820152600f60248201526e24b73b30b634b2103bb930b83832b960891b6044820152606401610466565b60005b815181101561078657600082828151811061156857634e487b7160e01b600052603260045260246000fd5b60200260200101518060200190518101906115839190612989565b600480548251604051631c2ab73160e21b8152928301529192506000916001600160a01b0316906370aadcc49060240160206040518083038186803b1580156115cb57600080fd5b505afa1580156115df573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116039190612a61565b6004805484516040516319d9d2c560e21b8152928301529192506001600160a01b03909116906367674b149060240160206040518083038186803b15801561164a57600080fd5b505afa15801561165e573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061168291906128e7565b80156117145750600480548351604051631f138de360e31b8152928301526000916001600160a01b039091169063f89c6f189060240160206040518083038186803b1580156116d057600080fd5b505afa1580156116e4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117089190612513565b6001600160a01b031614155b801561173f575060008181526006602090815260408083208582015160ff9081168552925290912054165b156117ad576003546040516305bac88b60e41b81526101009091046001600160a01b031690635bac88b09061177a9085908590600401612bf4565b600060405180830381600087803b15801561179457600080fd5b505af11580156117a8573d6000803e3d6000fd5b505050505b505080806117ba90612daf565b91505061153d565b6117ca61203d565b6001600160a01b0381166117f05760405162461bcd60e51b815260040161046690612b5a565b600154600160a81b900460ff16156118405760405162461bcd60e51b8152602060048201526013602482015272105b1c9958591e481d1c985b9cd9995c9c9959606a1b6044820152606401610466565b600080546001600160a01b038381166201000081810262010000600160b01b031990941693909317938490556001805460ff60a81b1916600160a81b1790556040805193909404909116825260208201527fb532073b38c83145e3e5135377a08bf9aab55bc0fd7c1179cd4fb995d2a5159c9101610549565b3360009081526005602052604090205460ff166118e85760405162461bcd60e51b815260040161046690612b83565b60005b8551811015611c7157600360019054906101000a90046001600160a01b03166001600160a01b031663420209c287838151811061193857634e487b7160e01b600052603260045260246000fd5b602002602001015187848151811061196057634e487b7160e01b600052603260045260246000fd5b602002602001015187858151811061198857634e487b7160e01b600052603260045260246000fd5b60200260200101516040518463ffffffff1660e01b81526004016119c293929190928352602083019190915260ff16604082015260600190565b60206040518083038186803b1580156119da57600080fd5b505afa1580156119ee573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a1291906128e7565b15611c5f576000611b43878381518110611a3c57634e487b7160e01b600052603260045260246000fd5b6020026020010151878481518110611a6457634e487b7160e01b600052603260045260246000fd5b6020026020010151878581518110611a8c57634e487b7160e01b600052603260045260246000fd5b6020026020010151878681518110611ab457634e487b7160e01b600052603260045260246000fd5b6020026020010151878781518110611adc57634e487b7160e01b600052603260045260246000fd5b60200260200101516040805160a081018252600080825260208201819052918101829052606081018290526080810191909152506040805160a081018252958652602086019490945260ff9283169385019390935261ffff16606084015216608082015290565b60045488519192506001600160a01b03169063489f4b9790899085908110611b7b57634e487b7160e01b600052603260045260246000fd5b60200260200101516040518263ffffffff1660e01b8152600401611ba191815260200190565b60206040518083038186803b158015611bb957600080fd5b505afa158015611bcd573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611bf191906128e7565b15611c5d5760035460405163fbf1c75560e01b81526101009091046001600160a01b03169063fbf1c75590611c2a908490600401612bb0565b600060405180830381600087803b158015611c4457600080fd5b505af1158015611c58573d6000803e3d6000fd5b505050505b505b80611c6981612daf565b9150506118eb565b505050505050565b3360009081526005602052604090205460ff16611ca85760405162461bcd60e51b815260040161046690612b83565b60005b8251811015610f025760045483516001600160a01b039091169063489f4b9790859084908110611ceb57634e487b7160e01b600052603260045260246000fd5b60200260200101516040518263ffffffff1660e01b8152600401611d1191815260200190565b60206040518083038186803b158015611d2957600080fd5b505afa158015611d3d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611d6191906128e7565b15611e3357600360019054906101000a90046001600160a01b03166001600160a01b03166305f1df78848381518110611daa57634e487b7160e01b600052603260045260246000fd5b6020026020010151848481518110611dd257634e487b7160e01b600052603260045260246000fd5b60200260200101516040518363ffffffff1660e01b8152600401611e00929190918252602082015260400190565b600060405180830381600087803b158015611e1a57600080fd5b505af1158015611e2e573d6000803e3d6000fd5b505050505b80611e3d81612daf565b915050611cab565b600054610100900460ff16611e605760005460ff1615611e64565b303b155b611ec75760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b6064820152608401610466565b600054610100900460ff16158015611ee9576000805461ffff19166101011790555b611ef285610414565b600480546001600160a01b0319166001600160a01b038681169190911790915560038054610100600160a81b0319166101009286169290920291909117905560005b8251811015611fa757600160056000858481518110611f6357634e487b7160e01b600052603260045260246000fd5b6020908102919091018101516001600160a01b03168252810191909152604001600020805460ff191691151591909117905580611f9f81612daf565b915050611f34565b508015611fba576000805461ff00191690555b5050505050565b611fc961203d565b6001600160a01b038116611fef5760405162461bcd60e51b815260040161046690612b5a565b600480546001600160a01b0319166001600160a01b0383169081179091556040519081527f5f56489645cc15092ffab877840903cb7715aca3464f50d3e323ed6465777bbb90602001610549565b6000546201000090046001600160a01b031633146120b55760405162461bcd60e51b815260206004820152602f60248201527f4f6e6c792074686520636f6e7472616374206f776e6572206d6179207065726660448201526e37b936903a3434b99030b1ba34b7b760891b6064820152608401610466565b565b6040805160e0810182526000808252602082018190529181018290526060808201526080810182905260a0810182905260c08101919091526040518060e001604052808881526020018781526020018660ff1681526020018581526020018461ffff168152602001838a600261212d9190612d4d565b8151811061214b57634e487b7160e01b600052603260045260246000fd5b602002602001015160020b8152602001838a60026121699190612d4d565b612174906001612d35565b8151811061219257634e487b7160e01b600052603260045260246000fd5b602002602001015160020b8152509050979650505050505050565b60006121c06121bb84612d0e565b612cbb565b90508281528383830111156121d457600080fd5b828260208301376000602084830101529392505050565b600082601f8301126121fb578081fd5b8135602061220b6121bb83612ceb565b80838252828201915082860187848660051b890101111561222a578586fd5b855b8581101561225157813561223f81612df6565b8452928401929084019060010161222c565b5090979650505050505050565b600082601f83011261226e578081fd5b8135602061227e6121bb83612ceb565b80838252828201915082860187848660051b890101111561229d578586fd5b855b858110156122515781358452928401929084019060010161229f565b600082601f8301126122cb578081fd5b813560206122db6121bb83612ceb565b80838252828201915082860187848660051b89010111156122fa578586fd5b855b8581101561225157813561230f81612e19565b845292840192908401906001016122fc565b600082601f830112612331578081fd5b813560206123416121bb83612ceb565b80838252828201915082860187848660051b8901011115612360578586fd5b855b858110156122515781356001600160401b0381111561237f578788fd5b8801603f81018a1361238f578788fd5b6123a08a87830135604084016121ad565b8552509284019290840190600101612362565b600082601f8301126123c3578081fd5b813560206123d36121bb83612ceb565b80838252828201915082860187848660051b89010111156123f2578586fd5b855b8581101561225157813561240781612e28565b845292840192908401906001016123f4565b600082601f830112612429578081fd5b813560206124396121bb83612ceb565b80838252828201915082860187848660051b8901011115612458578586fd5b855b8581101561225157813561246d81612e38565b8452928401929084019060010161245a565b805161248a81612e19565b919050565b600082601f83011261249f578081fd5b81516124ad6121bb82612d0e565b8181528460208386010111156124c1578283fd5b6124d2826020830160208701612d83565b949350505050565b805161248a81612e28565b805161248a81612e38565b600060208284031215612501578081fd5b813561250c81612df6565b9392505050565b600060208284031215612524578081fd5b815161250c81612df6565b60008060008060808587031215612544578283fd5b843561254f81612df6565b9350602085013561255f81612df6565b9250604085013561256f81612df6565b915060608501356001600160401b03811115612589578182fd5b612595878288016121eb565b91505092959194509250565b600080604083850312156125b3578182fd5b82356001600160401b038111156125c8578283fd5b6125d4858286016121eb565b92505060208301356125e581612e0b565b809150509250929050565b60008060408385031215612602578182fd5b82356001600160401b0380821115612618578384fd5b6126248683870161225e565b93506020850135915080821115612639578283fd5b506126468582860161225e565b9150509250929050565b60008060008060008060c08789031215612668578384fd5b86356001600160401b038082111561267e578586fd5b61268a8a838b0161225e565b9750602089013591508082111561269f578586fd5b6126ab8a838b0161225e565b965060408901359150808211156126c0578586fd5b6126cc8a838b01612419565b955060608901359150808211156126e1578384fd5b6126ed8a838b01612321565b94506080890135915080821115612702578384fd5b61270e8a838b016123b3565b935060a0890135915080821115612723578283fd5b5061273089828a016122bb565b9150509295509295509295565b600080600080600060a08688031215612754578283fd5b85356001600160401b038082111561276a578485fd5b61277689838a0161225e565b9650602088013591508082111561278b578485fd5b61279789838a0161225e565b955060408801359150808211156127ac578485fd5b6127b889838a01612419565b945060608801359150808211156127cd578283fd5b6127d989838a016123b3565b935060808801359150808211156127ee578283fd5b506127fb88828901612419565b9150509295509295909350565b6000602080838503121561281a578182fd5b82356001600160401b0380821115612830578384fd5b818501915085601f830112612843578384fd5b81356128516121bb82612ceb565b80828252858201915085850189878560051b8801011115612870578788fd5b875b848110156128bc5781358681111561288857898afd5b8701603f81018c1361289857898afd5b6128a98c8a830135604084016121ad565b8552509287019290870190600101612872565b50909998505050505050505050565b6000602082840312156128dc578081fd5b813561250c81612e0b565b6000602082840312156128f8578081fd5b815161250c81612e0b565b600060a08284031215612914578081fd5b60405160a081018181106001600160401b038211171561293657612936612de0565b80604052508251815260208301516020820152604083015161295781612e38565b6040820152606083015161296a81612e28565b6060820152608083015161297d81612e38565b60808201529392505050565b60006020828403121561299a578081fd5b81516001600160401b03808211156129b0578283fd5b9083019060e082860312156129c3578283fd5b6129cb612c93565b82518152602083015160208201526129e5604084016124e5565b60408201526060830151828111156129fb578485fd5b612a078782860161248f565b606083015250612a19608084016124da565b6080820152612a2a60a0840161247f565b60a0820152612a3b60c0840161247f565b60c082015295945050505050565b600060208284031215612a5a578081fd5b5035919050565b600060208284031215612a72578081fd5b5051919050565b600080600060608486031215612a8d578081fd5b8335925060208401356001600160401b03811115612aa9578182fd5b612ab586828701612419565b9250506040840135612ac681612e0b565b809150509250925092565b60008060408385031215612ae3578182fd5b50508035926020909101359150565b60008060408385031215612b04578182fd5b8235915060208301356125e581612e38565b6020808252825182820181905260009190848201906040850190845b81811015612b4e57835183529284019291840191600101612b32565b50909695505050505050565b6020808252600f908201526e496e76616c6964206164647265737360881b604082015260600190565b60208082526013908201527257686974656c6973746564206164647265737360681b604082015260600190565b600060a082019050825182526020830151602083015260ff604084015116604083015261ffff606084015116606083015260ff608084015116608083015292915050565b60408152825160408201526020830151606082015260ff60408401511660808201526000606084015160e060a0840152805180610120850152610140612c408282870160208601612d83565b608087015161ffff1660c086015260a0870151600281900b60e0870152925060c08701519250612c7661010086018460020b9052565b6020850195909552601f01601f1916929092019092019392505050565b60405160e081016001600160401b0381118282101715612cb557612cb5612de0565b60405290565b604051601f8201601f191681016001600160401b0381118282101715612ce357612ce3612de0565b604052919050565b60006001600160401b03821115612d0457612d04612de0565b5060051b60200190565b60006001600160401b03821115612d2757612d27612de0565b50601f01601f191660200190565b60008219821115612d4857612d48612dca565b500190565b6000816000190483118215151615612d6757612d67612dca565b500290565b600082821015612d7e57612d7e612dca565b500390565b60005b83811015612d9e578181015183820152602001612d86565b8381111561146c5750506000910152565b6000600019821415612dc357612dc3612dca565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b038116811461085357600080fd5b801515811461085357600080fd5b8060020b811461085357600080fd5b61ffff8116811461085357600080fd5b60ff8116811461085357600080fdfea2646970667358221220cb8ca26cbe6553e22676358ec9ea8926167358bf4a56550ab9e3d9175509e70864736f6c63430008040033

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

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

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits

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