ETH Price: $3,105.82 (+1.15%)
Gas: 7 Gwei

Contract

0x9b8A09b3f538666479a66888441E15DDE8d13412
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Value
Set Full Pause195198952024-03-26 16:49:59105 days ago1711471799IN
0x9b8A09b3...DE8d13412
0 ETH0.0028910560.33593184
Unlock195198832024-03-26 16:47:35105 days ago1711471655IN
0x9b8A09b3...DE8d13412
0 ETH0.0047429954.89574628
Unlock195196912024-03-26 16:07:59105 days ago1711469279IN
0x9b8A09b3...DE8d13412
0 ETH0.0051994753.67698337
Set Full Pause195196572024-03-26 16:01:11105 days ago1711468871IN
0x9b8A09b3...DE8d13412
0 ETH0.0016582163.79952553
Set Full Pause194997752024-03-23 20:49:11108 days ago1711226951IN
0x9b8A09b3...DE8d13412
0 ETH0.0008727318.2137801
Lock194976142024-03-23 13:32:23108 days ago1711200743IN
0x9b8A09b3...DE8d13412
0 ETH0.0017108223.52555675
Lock194942362024-03-23 2:09:59109 days ago1711159799IN
0x9b8A09b3...DE8d13412
0 ETH0.0011067618.54537101
Lock194933842024-03-22 23:18:11109 days ago1711149491IN
0x9b8A09b3...DE8d13412
0 ETH0.0012581917.30423232
Lock194933342024-03-22 23:08:11109 days ago1711148891IN
0x9b8A09b3...DE8d13412
0 ETH0.0015780321.6994986
Unlock194926672024-03-22 20:53:35109 days ago1711140815IN
0x9b8A09b3...DE8d13412
0 ETH0.0020149521.57732835
Unlock194926632024-03-22 20:52:47109 days ago1711140767IN
0x9b8A09b3...DE8d13412
0 ETH0.0017286722.66135627
Unlock194926602024-03-22 20:52:11109 days ago1711140731IN
0x9b8A09b3...DE8d13412
0 ETH0.0021502423.0261392
Unlock194926552024-03-22 20:51:11109 days ago1711140671IN
0x9b8A09b3...DE8d13412
0 ETH0.0023280722.90193492
Unlock194926512024-03-22 20:50:23109 days ago1711140623IN
0x9b8A09b3...DE8d13412
0 ETH0.0016986822.26815419
Unlock194926472024-03-22 20:49:35109 days ago1711140575IN
0x9b8A09b3...DE8d13412
0 ETH0.0018545919.86008694
Lock194900762024-03-22 12:10:35110 days ago1711109435IN
0x9b8A09b3...DE8d13412
0 ETH0.0022391730.7857593
Lock194888852024-03-22 8:10:23110 days ago1711095023IN
0x9b8A09b3...DE8d13412
0 ETH0.0018974326.09162948
Unlock194852962024-03-21 20:06:11110 days ago1711051571IN
0x9b8A09b3...DE8d13412
0 ETH0.0028260337.04670632
Unlock194852952024-03-21 20:05:59110 days ago1711051559IN
0x9b8A09b3...DE8d13412
0 ETH0.0031503933.73633296
Lock194827432024-03-21 11:27:59111 days ago1711020479IN
0x9b8A09b3...DE8d13412
0 ETH0.0020546428.24878139
Unlock194789162024-03-20 22:34:23111 days ago1710974063IN
0x9b8A09b3...DE8d13412
0 ETH0.0030373539.81693444
Unlock194753932024-03-20 10:44:35112 days ago1710931475IN
0x9b8A09b3...DE8d13412
0 ETH0.0037809637.19448848
Unlock194753892024-03-20 10:43:47112 days ago1710931427IN
0x9b8A09b3...DE8d13412
0 ETH0.0032066831.54507206
Unlock194701992024-03-19 17:12:23112 days ago1710868343IN
0x9b8A09b3...DE8d13412
0 ETH0.0039823242.64504836
Unlock194701922024-03-19 17:10:59112 days ago1710868259IN
0x9b8A09b3...DE8d13412
0 ETH0.0043563542.85473161
View all transactions

Latest 25 internal transactions (View All)

Advanced mode:
Parent Transaction Hash Block From To Value
195198832024-03-26 16:47:35105 days ago1711471655
0x9b8A09b3...DE8d13412
0 ETH
195196912024-03-26 16:07:59105 days ago1711469279
0x9b8A09b3...DE8d13412
0 ETH
194989112024-03-23 17:53:23108 days ago1711216403
0x9b8A09b3...DE8d13412
0 ETH
194989112024-03-23 17:53:23108 days ago1711216403
0x9b8A09b3...DE8d13412
0 ETH
194976142024-03-23 13:32:23108 days ago1711200743
0x9b8A09b3...DE8d13412
0 ETH
194942362024-03-23 2:09:59109 days ago1711159799
0x9b8A09b3...DE8d13412
0 ETH
194933842024-03-22 23:18:11109 days ago1711149491
0x9b8A09b3...DE8d13412
0 ETH
194933342024-03-22 23:08:11109 days ago1711148891
0x9b8A09b3...DE8d13412
0 ETH
194926672024-03-22 20:53:35109 days ago1711140815
0x9b8A09b3...DE8d13412
0 ETH
194926632024-03-22 20:52:47109 days ago1711140767
0x9b8A09b3...DE8d13412
0 ETH
194926602024-03-22 20:52:11109 days ago1711140731
0x9b8A09b3...DE8d13412
0 ETH
194926552024-03-22 20:51:11109 days ago1711140671
0x9b8A09b3...DE8d13412
0 ETH
194926512024-03-22 20:50:23109 days ago1711140623
0x9b8A09b3...DE8d13412
0 ETH
194926472024-03-22 20:49:35109 days ago1711140575
0x9b8A09b3...DE8d13412
0 ETH
194900762024-03-22 12:10:35110 days ago1711109435
0x9b8A09b3...DE8d13412
0 ETH
194888852024-03-22 8:10:23110 days ago1711095023
0x9b8A09b3...DE8d13412
0 ETH
194852962024-03-21 20:06:11110 days ago1711051571
0x9b8A09b3...DE8d13412
0 ETH
194852952024-03-21 20:05:59110 days ago1711051559
0x9b8A09b3...DE8d13412
0 ETH
194827432024-03-21 11:27:59111 days ago1711020479
0x9b8A09b3...DE8d13412
0 ETH
194789162024-03-20 22:34:23111 days ago1710974063
0x9b8A09b3...DE8d13412
0 ETH
194753932024-03-20 10:44:35112 days ago1710931475
0x9b8A09b3...DE8d13412
0 ETH
194753892024-03-20 10:43:47112 days ago1710931427
0x9b8A09b3...DE8d13412
0 ETH
194701992024-03-19 17:12:23112 days ago1710868343
0x9b8A09b3...DE8d13412
0 ETH
194701922024-03-19 17:10:59112 days ago1710868259
0x9b8A09b3...DE8d13412
0 ETH
194701862024-03-19 17:09:47112 days ago1710868187
0x9b8A09b3...DE8d13412
0 ETH
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
Bridge

Compiler Version
v0.8.19+commit.7dd6d404

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion
File 1 of 15 : Bridge.sol
/*
 * Capital DEX
 *
 * Copyright ©️ 2023 Curio AG (Company Number FL-0002.594.728-9)
 * Incorporated and registered in Liechtenstein.
 *
 * Copyright ©️ 2023 Curio Capital AG (Company Number CHE-211.446.654)
 * Incorporated and registered in Zug, Switzerland.
 */
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.9;

import "./components/Blacklist.sol";
import "./components/Pause.sol";
import "./components/TokenManager.sol";
import "@openzeppelin/contracts/utils/Context.sol";
import "@openzeppelin/contracts/access/AccessControl.sol";

/// @title Interface for bridge contract
/// @dev Inherits from interfaces of contract components
interface IBridge is IBlacklist, ITokenManager, IPause {
    /// @dev Data describing the unlock, used in batch_unlock call for ease of parameters passing
    struct UnlockData {
        uint256 id;
        address to;
        IERC20 token;
        uint256 amount;
    }

    /// @notice Tokens were locked in bridge contract
    /// @param id Lock id
    /// @param to Curio parachain address tokens will be bridged to
    /// @param token ERC20 token contract address
    /// @param amount amount of tokens
    event Lock(uint256 id, bytes32 to, IERC20 token, uint256 amount);

    /// @notice Tokens were unlocked from bridge contract
    /// @param id Unlock id
    /// @param to Address tokens will be unlocked to
    /// @param token ERC20 token contract address
    /// @param amount Amount of tokens
    event Unlock(uint256 id, address to, IERC20 token, uint256 amount);

    /// @notice Unlock request with given id have been already executed
    /// @param id Id of unlock request
    error RequestAlreadyProcessed(uint256 id);

    /// @notice Request tokens bridging
    /// @dev Tokens must be previously approved to the contract
    /// @param to Curio parachain address that tokens will be bridged to
    /// @param token ERC20 contract address
    /// @param amount amount of tokens
    function lock(bytes32 to, IERC20 token, uint256 amount) external;

    /// @notice Unlock tokens bridged from Curio parachain
    /// @dev id must be taken from Curio parachain corresponding pallet's event
    /// @param id Unlock request id
    /// @param to Address tokens will be unlocked to
    /// @param token ERC20 contract address
    /// @param amount amount of tokens
    function unlock(uint256 id, address to, IERC20 token, uint256 amount) external;

    /// @notice Unlock tokens bridged from Curio parachain
    /// @dev Do many unlocks at a time
    /// @param data Array of unlocks data
    function batchUnlock(UnlockData[] memory data) external;
}

/// @title Curio parachain <-> Ethereum bridge smart contract
/// @dev Composed of contracts providing additional functionality
contract Bridge is IBridge, Context, Blacklist, TokenManager, Pause {
    /// @notice Identifier of manager role able to manage the contract
    /// @dev Able to pause/unpause contract or specific tokens, blacklist users, manage supported tokens list and do unlocks
    bytes32 public constant managerRole = keccak256("MANAGER_ROLE");

    /// @notice Lock id
    /// @dev Incremented in lock call
    uint256 public outRequestId;

    /// @notice Storage for ids of already processed unlock requests
    mapping(uint256 => bool) public inRequestProcessed;

    /// @dev Deployer is granted admin and manager roles
    constructor() 
        Blacklist(Context._msgSender(), managerRole)
        TokenManager(Context._msgSender(), managerRole)
        Pause(Context._msgSender(), managerRole)
    {
        outRequestId = 0;
        AccessControl._grantRole(AccessControl.DEFAULT_ADMIN_ROLE, Context._msgSender());
        AccessControl._grantRole(managerRole, Context._msgSender());
    }

    /// @inheritdoc IBridge
    function lock(bytes32 to, IERC20 token, uint256 amount) external 
        Pause.whenNotPaused()
        TokenManager.OnlyActiveToken(token)
        Blacklist.NotBlacklistedEth(Context._msgSender())
        Blacklist.NotBlacklistedSub(to)
    {
        token.transferFrom(Context._msgSender(), address(this), amount);
        
        emit Lock(outRequestId++, to, token, amount);
    }

    /// @inheritdoc IBridge
    function unlock(uint256 id, address to, IERC20 token, uint256 amount) public 
        AccessControl.onlyRole(managerRole)
        Pause.whenNotPaused()
    {
        _unlock(id, to, token, amount);
    }

    /// @inheritdoc IBridge
    function batchUnlock(UnlockData[] memory data) external 
        AccessControl.onlyRole(managerRole) 
        Pause.whenNotPaused()
    {
        for(uint256 i = 0; i < data.length; i++) {
            _unlock(data[i].id, data[i].to, data[i].token, data[i].amount);
        }
    }

    function _unlock(uint256 id, address to, IERC20 token, uint256 amount) private 
        TokenManager.OnlyActiveToken(token)
        Blacklist.NotBlacklistedEth(to)
    {
        if(inRequestProcessed[id]) {
            revert RequestAlreadyProcessed(id);
        }

        inRequestProcessed[id] = true;

        token.transfer(to, amount);

        emit Unlock(id, to, token, amount);
    }
}

File 2 of 15 : AccessControl.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (access/AccessControl.sol)

pragma solidity ^0.8.0;

import "./IAccessControl.sol";
import "../utils/Context.sol";
import "../utils/Strings.sol";
import "../utils/introspection/ERC165.sol";

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

    mapping(bytes32 => RoleData) private _roles;

    bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00;

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

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

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

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

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

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

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

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

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

        _revokeRole(role, account);
    }

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

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

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

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

File 3 of 15 : IAccessControl.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (access/IAccessControl.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

File 4 of 15 : Pausable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (security/Pausable.sol)

pragma solidity ^0.8.0;

import "../utils/Context.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 Pausable is Context {
    /**
     * @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.
     */
    constructor() {
        _paused = false;
    }

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

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

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

    /**
     * @dev Throws if the contract is paused.
     */
    function _requireNotPaused() internal view virtual {
        require(!paused(), "Pausable: paused");
    }

    /**
     * @dev Throws if the contract is not paused.
     */
    function _requirePaused() internal view virtual {
        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());
    }
}

File 5 of 15 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

File 6 of 15 : Context.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)

pragma solidity ^0.8.0;

/**
 * @dev Provides information about the current execution context, including the
 * sender of the transaction and its data. While these are generally available
 * via msg.sender and msg.data, they should not be accessed in such a direct
 * manner, since when dealing with meta-transactions the account sending and
 * paying for execution may not be the actual sender (as far as an application
 * is concerned).
 *
 * This contract is only required for intermediate, library-like contracts.
 */
abstract contract Context {
    function _msgSender() internal view virtual returns (address) {
        return msg.sender;
    }

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

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

pragma solidity ^0.8.0;

import "./IERC165.sol";

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

File 8 of 15 : ERC165Checker.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (utils/introspection/ERC165Checker.sol)

pragma solidity ^0.8.0;

import "./IERC165.sol";

/**
 * @dev Library used to query support of an interface declared via {IERC165}.
 *
 * Note that these functions return the actual result of the query: they do not
 * `revert` if an interface is not supported. It is up to the caller to decide
 * what to do in these cases.
 */
library ERC165Checker {
    // As per the EIP-165 spec, no interface should ever match 0xffffffff
    bytes4 private constant _INTERFACE_ID_INVALID = 0xffffffff;

    /**
     * @dev Returns true if `account` supports the {IERC165} interface.
     */
    function supportsERC165(address account) internal view returns (bool) {
        // Any contract that implements ERC165 must explicitly indicate support of
        // InterfaceId_ERC165 and explicitly indicate non-support of InterfaceId_Invalid
        return
            supportsERC165InterfaceUnchecked(account, type(IERC165).interfaceId) &&
            !supportsERC165InterfaceUnchecked(account, _INTERFACE_ID_INVALID);
    }

    /**
     * @dev Returns true if `account` supports the interface defined by
     * `interfaceId`. Support for {IERC165} itself is queried automatically.
     *
     * See {IERC165-supportsInterface}.
     */
    function supportsInterface(address account, bytes4 interfaceId) internal view returns (bool) {
        // query support of both ERC165 as per the spec and support of _interfaceId
        return supportsERC165(account) && supportsERC165InterfaceUnchecked(account, interfaceId);
    }

    /**
     * @dev Returns a boolean array where each value corresponds to the
     * interfaces passed in and whether they're supported or not. This allows
     * you to batch check interfaces for a contract where your expectation
     * is that some interfaces may not be supported.
     *
     * See {IERC165-supportsInterface}.
     *
     * _Available since v3.4._
     */
    function getSupportedInterfaces(
        address account,
        bytes4[] memory interfaceIds
    ) internal view returns (bool[] memory) {
        // an array of booleans corresponding to interfaceIds and whether they're supported or not
        bool[] memory interfaceIdsSupported = new bool[](interfaceIds.length);

        // query support of ERC165 itself
        if (supportsERC165(account)) {
            // query support of each interface in interfaceIds
            for (uint256 i = 0; i < interfaceIds.length; i++) {
                interfaceIdsSupported[i] = supportsERC165InterfaceUnchecked(account, interfaceIds[i]);
            }
        }

        return interfaceIdsSupported;
    }

    /**
     * @dev Returns true if `account` supports all the interfaces defined in
     * `interfaceIds`. Support for {IERC165} itself is queried automatically.
     *
     * Batch-querying can lead to gas savings by skipping repeated checks for
     * {IERC165} support.
     *
     * See {IERC165-supportsInterface}.
     */
    function supportsAllInterfaces(address account, bytes4[] memory interfaceIds) internal view returns (bool) {
        // query support of ERC165 itself
        if (!supportsERC165(account)) {
            return false;
        }

        // query support of each interface in interfaceIds
        for (uint256 i = 0; i < interfaceIds.length; i++) {
            if (!supportsERC165InterfaceUnchecked(account, interfaceIds[i])) {
                return false;
            }
        }

        // all interfaces supported
        return true;
    }

    /**
     * @notice Query if a contract implements an interface, does not check ERC165 support
     * @param account The address of the contract to query for support of an interface
     * @param interfaceId The interface identifier, as specified in ERC-165
     * @return true if the contract at account indicates support of the interface with
     * identifier interfaceId, false otherwise
     * @dev Assumes that account contains a contract that supports ERC165, otherwise
     * the behavior of this method is undefined. This precondition can be checked
     * with {supportsERC165}.
     *
     * Some precompiled contracts will falsely indicate support for a given interface, so caution
     * should be exercised when using this function.
     *
     * Interface identification is specified in ERC-165.
     */
    function supportsERC165InterfaceUnchecked(address account, bytes4 interfaceId) internal view returns (bool) {
        // prepare call
        bytes memory encodedParams = abi.encodeWithSelector(IERC165.supportsInterface.selector, interfaceId);

        // perform static call
        bool success;
        uint256 returnSize;
        uint256 returnValue;
        assembly {
            success := staticcall(30000, account, add(encodedParams, 0x20), mload(encodedParams), 0x00, 0x20)
            returnSize := returndatasize()
            returnValue := mload(0x00)
        }

        return success && returnSize >= 0x20 && returnValue > 0;
    }
}

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

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC165 standard, as defined in the
 * https://eips.ethereum.org/EIPS/eip-165[EIP].
 *
 * Implementers can declare support of contract interfaces, which can then be
 * queried by others ({ERC165Checker}).
 *
 * For an implementation, see {ERC165}.
 */
interface IERC165 {
    /**
     * @dev Returns true if this contract implements the interface defined by
     * `interfaceId`. See the corresponding
     * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section]
     * to learn more about how these ids are created.
     *
     * This function call must use less than 30 000 gas.
     */
    function supportsInterface(bytes4 interfaceId) external view returns (bool);
}

File 10 of 15 : Math.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (utils/math/Math.sol)

pragma solidity ^0.8.0;

/**
 * @dev Standard math utilities missing in the Solidity language.
 */
library Math {
    enum Rounding {
        Down, // Toward negative infinity
        Up, // Toward infinity
        Zero // Toward zero
    }

    /**
     * @dev Returns the largest of two numbers.
     */
    function max(uint256 a, uint256 b) internal pure returns (uint256) {
        return a > b ? a : b;
    }

    /**
     * @dev Returns the smallest of two numbers.
     */
    function min(uint256 a, uint256 b) internal pure returns (uint256) {
        return a < b ? a : b;
    }

    /**
     * @dev Returns the average of two numbers. The result is rounded towards
     * zero.
     */
    function average(uint256 a, uint256 b) internal pure returns (uint256) {
        // (a + b) / 2 can overflow.
        return (a & b) + (a ^ b) / 2;
    }

    /**
     * @dev Returns the ceiling of the division of two numbers.
     *
     * This differs from standard division with `/` in that it rounds up instead
     * of rounding down.
     */
    function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) {
        // (a + b - 1) / b can overflow on addition, so we distribute.
        return a == 0 ? 0 : (a - 1) / b + 1;
    }

    /**
     * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or denominator == 0
     * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv)
     * with further edits by Uniswap Labs also under MIT license.
     */
    function mulDiv(uint256 x, uint256 y, uint256 denominator) internal pure returns (uint256 result) {
        unchecked {
            // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use
            // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256
            // variables such that product = prod1 * 2^256 + prod0.
            uint256 prod0; // Least significant 256 bits of the product
            uint256 prod1; // Most significant 256 bits of the product
            assembly {
                let mm := mulmod(x, y, not(0))
                prod0 := mul(x, y)
                prod1 := sub(sub(mm, prod0), lt(mm, prod0))
            }

            // Handle non-overflow cases, 256 by 256 division.
            if (prod1 == 0) {
                // Solidity will revert if denominator == 0, unlike the div opcode on its own.
                // The surrounding unchecked block does not change this fact.
                // See https://docs.soliditylang.org/en/latest/control-structures.html#checked-or-unchecked-arithmetic.
                return prod0 / denominator;
            }

            // Make sure the result is less than 2^256. Also prevents denominator == 0.
            require(denominator > prod1, "Math: mulDiv overflow");

            ///////////////////////////////////////////////
            // 512 by 256 division.
            ///////////////////////////////////////////////

            // Make division exact by subtracting the remainder from [prod1 prod0].
            uint256 remainder;
            assembly {
                // Compute remainder using mulmod.
                remainder := mulmod(x, y, denominator)

                // Subtract 256 bit number from 512 bit number.
                prod1 := sub(prod1, gt(remainder, prod0))
                prod0 := sub(prod0, remainder)
            }

            // Factor powers of two out of denominator and compute largest power of two divisor of denominator. Always >= 1.
            // See https://cs.stackexchange.com/q/138556/92363.

            // Does not overflow because the denominator cannot be zero at this stage in the function.
            uint256 twos = denominator & (~denominator + 1);
            assembly {
                // Divide denominator by twos.
                denominator := div(denominator, twos)

                // Divide [prod1 prod0] by twos.
                prod0 := div(prod0, twos)

                // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one.
                twos := add(div(sub(0, twos), twos), 1)
            }

            // Shift in bits from prod1 into prod0.
            prod0 |= prod1 * twos;

            // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such
            // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for
            // four bits. That is, denominator * inv = 1 mod 2^4.
            uint256 inverse = (3 * denominator) ^ 2;

            // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also works
            // in modular arithmetic, doubling the correct bits in each step.
            inverse *= 2 - denominator * inverse; // inverse mod 2^8
            inverse *= 2 - denominator * inverse; // inverse mod 2^16
            inverse *= 2 - denominator * inverse; // inverse mod 2^32
            inverse *= 2 - denominator * inverse; // inverse mod 2^64
            inverse *= 2 - denominator * inverse; // inverse mod 2^128
            inverse *= 2 - denominator * inverse; // inverse mod 2^256

            // Because the division is now exact we can divide by multiplying with the modular inverse of denominator.
            // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is
            // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1
            // is no longer required.
            result = prod0 * inverse;
            return result;
        }
    }

    /**
     * @notice Calculates x * y / denominator with full precision, following the selected rounding direction.
     */
    function mulDiv(uint256 x, uint256 y, uint256 denominator, Rounding rounding) internal pure returns (uint256) {
        uint256 result = mulDiv(x, y, denominator);
        if (rounding == Rounding.Up && mulmod(x, y, denominator) > 0) {
            result += 1;
        }
        return result;
    }

    /**
     * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded down.
     *
     * Inspired by Henry S. Warren, Jr.'s "Hacker's Delight" (Chapter 11).
     */
    function sqrt(uint256 a) internal pure returns (uint256) {
        if (a == 0) {
            return 0;
        }

        // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target.
        //
        // We know that the "msb" (most significant bit) of our target number `a` is a power of 2 such that we have
        // `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`.
        //
        // This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)`
        // → `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))`
        // → `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)`
        //
        // Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit.
        uint256 result = 1 << (log2(a) >> 1);

        // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128,
        // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at
        // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision
        // into the expected uint128 result.
        unchecked {
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            return min(result, a / result);
        }
    }

    /**
     * @notice Calculates sqrt(a), following the selected rounding direction.
     */
    function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = sqrt(a);
            return result + (rounding == Rounding.Up && result * result < a ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 2, rounded down, of a positive value.
     * Returns 0 if given 0.
     */
    function log2(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >> 128 > 0) {
                value >>= 128;
                result += 128;
            }
            if (value >> 64 > 0) {
                value >>= 64;
                result += 64;
            }
            if (value >> 32 > 0) {
                value >>= 32;
                result += 32;
            }
            if (value >> 16 > 0) {
                value >>= 16;
                result += 16;
            }
            if (value >> 8 > 0) {
                value >>= 8;
                result += 8;
            }
            if (value >> 4 > 0) {
                value >>= 4;
                result += 4;
            }
            if (value >> 2 > 0) {
                value >>= 2;
                result += 2;
            }
            if (value >> 1 > 0) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 2, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log2(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log2(value);
            return result + (rounding == Rounding.Up && 1 << result < value ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 10, rounded down, of a positive value.
     * Returns 0 if given 0.
     */
    function log10(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >= 10 ** 64) {
                value /= 10 ** 64;
                result += 64;
            }
            if (value >= 10 ** 32) {
                value /= 10 ** 32;
                result += 32;
            }
            if (value >= 10 ** 16) {
                value /= 10 ** 16;
                result += 16;
            }
            if (value >= 10 ** 8) {
                value /= 10 ** 8;
                result += 8;
            }
            if (value >= 10 ** 4) {
                value /= 10 ** 4;
                result += 4;
            }
            if (value >= 10 ** 2) {
                value /= 10 ** 2;
                result += 2;
            }
            if (value >= 10 ** 1) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 10, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log10(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log10(value);
            return result + (rounding == Rounding.Up && 10 ** result < value ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 256, rounded down, of a positive value.
     * Returns 0 if given 0.
     *
     * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string.
     */
    function log256(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >> 128 > 0) {
                value >>= 128;
                result += 16;
            }
            if (value >> 64 > 0) {
                value >>= 64;
                result += 8;
            }
            if (value >> 32 > 0) {
                value >>= 32;
                result += 4;
            }
            if (value >> 16 > 0) {
                value >>= 16;
                result += 2;
            }
            if (value >> 8 > 0) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 256, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log256(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log256(value);
            return result + (rounding == Rounding.Up && 1 << (result << 3) < value ? 1 : 0);
        }
    }
}

File 11 of 15 : SignedMath.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (utils/math/SignedMath.sol)

pragma solidity ^0.8.0;

/**
 * @dev Standard signed math utilities missing in the Solidity language.
 */
library SignedMath {
    /**
     * @dev Returns the largest of two signed numbers.
     */
    function max(int256 a, int256 b) internal pure returns (int256) {
        return a > b ? a : b;
    }

    /**
     * @dev Returns the smallest of two signed numbers.
     */
    function min(int256 a, int256 b) internal pure returns (int256) {
        return a < b ? a : b;
    }

    /**
     * @dev Returns the average of two signed numbers without overflow.
     * The result is rounded towards zero.
     */
    function average(int256 a, int256 b) internal pure returns (int256) {
        // Formula from the book "Hacker's Delight"
        int256 x = (a & b) + ((a ^ b) >> 1);
        return x + (int256(uint256(x) >> 255) & (a ^ b));
    }

    /**
     * @dev Returns the absolute unsigned value of a signed value.
     */
    function abs(int256 n) internal pure returns (uint256) {
        unchecked {
            // must be unchecked in order to support `n = type(int256).min`
            return uint256(n >= 0 ? n : -n);
        }
    }
}

File 12 of 15 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (utils/Strings.sol)

pragma solidity ^0.8.0;

import "./math/Math.sol";
import "./math/SignedMath.sol";

/**
 * @dev String operations.
 */
library Strings {
    bytes16 private constant _SYMBOLS = "0123456789abcdef";
    uint8 private constant _ADDRESS_LENGTH = 20;

    /**
     * @dev Converts a `uint256` to its ASCII `string` decimal representation.
     */
    function toString(uint256 value) internal pure returns (string memory) {
        unchecked {
            uint256 length = Math.log10(value) + 1;
            string memory buffer = new string(length);
            uint256 ptr;
            /// @solidity memory-safe-assembly
            assembly {
                ptr := add(buffer, add(32, length))
            }
            while (true) {
                ptr--;
                /// @solidity memory-safe-assembly
                assembly {
                    mstore8(ptr, byte(mod(value, 10), _SYMBOLS))
                }
                value /= 10;
                if (value == 0) break;
            }
            return buffer;
        }
    }

    /**
     * @dev Converts a `int256` to its ASCII `string` decimal representation.
     */
    function toString(int256 value) internal pure returns (string memory) {
        return string(abi.encodePacked(value < 0 ? "-" : "", toString(SignedMath.abs(value))));
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.
     */
    function toHexString(uint256 value) internal pure returns (string memory) {
        unchecked {
            return toHexString(value, Math.log256(value) + 1);
        }
    }

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

    /**
     * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation.
     */
    function toHexString(address addr) internal pure returns (string memory) {
        return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH);
    }

    /**
     * @dev Returns true if the two strings are equal.
     */
    function equal(string memory a, string memory b) internal pure returns (bool) {
        return keccak256(bytes(a)) == keccak256(bytes(b));
    }
}

File 13 of 15 : Blacklist.sol
/*
 * Capital DEX
 *
 * Copyright ©️ 2023 Curio AG (Company Number FL-0002.594.728-9)
 * Incorporated and registered in Liechtenstein.
 *
 * Copyright ©️ 2023 Curio Capital AG (Company Number CHE-211.446.654)
 * Incorporated and registered in Zug, Switzerland.
 */
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.9;

import "@openzeppelin/contracts/access/AccessControl.sol";

interface IBlacklist {
    event BlacklistedEth(address account);
    event BlacklistedSub(bytes32 account);
    event RemovedFromBlacklistEth(address account);
    event RemovedFromBlacklistSub(bytes32 account);

    error BlacklistedAccountEth(address account);
    error BlacklistedAccountSub(bytes32 account);
    error AlreadyBlacklistedEth(address account);
    error AlreadyBlacklistedSub(bytes32 account);
    error NotInBlacklistEth(address account);
    error NotInBlacklistSub(bytes32 account);

    function setBlacklistEth(address account, bool blacklisted) external;
    function setBlacklistSub(bytes32 account, bool blacklisted) external;
    function isBlacklistedEth(address account) external view returns(bool);
    function isBlacklistedSub(bytes32 account) external view returns(bool);
}

contract Blacklist is IBlacklist, AccessControl {
    
    bytes32 public immutable blacklistManagerRole;

    mapping(address => bool) public ethBlacklisted;
    mapping(bytes32 => bool) public subBlacklisted;

    modifier NotBlacklistedEth(address account) {
        if(ethBlacklisted[account]) {
            revert BlacklistedAccountEth(account);
        }
        _;
    }

    modifier NotBlacklistedSub(bytes32 account) {
        if(subBlacklisted[account]) {
            revert BlacklistedAccountSub(account);
        }
        _;
    }

    constructor(address admin, bytes32 managerRole) {
        blacklistManagerRole = managerRole;
        AccessControl._grantRole(AccessControl.DEFAULT_ADMIN_ROLE, admin);
    }

    function setBlacklistEth(address account, bool blacklisted) external AccessControl.onlyRole(blacklistManagerRole) {
        if(blacklisted) {
            _blacklistEth(account);
        } else {
            _unblacklistEth(account);
        }
    }

    function setBlacklistSub(bytes32 account, bool blacklisted) external AccessControl.onlyRole(blacklistManagerRole) {
        if(blacklisted) {
            _blacklistSub(account);
        } else {
            _unblacklistSub(account);
        }
    }

    function isBlacklistedEth(address account) external view returns(bool) {
        return ethBlacklisted[account];
    }

    function isBlacklistedSub(bytes32 account) external view returns(bool) {
        return subBlacklisted[account];
    }

    function _blacklistEth(address account) private {
        if(!ethBlacklisted[account]) {
            ethBlacklisted[account] = true;
            emit BlacklistedEth(account);
        } else {
            revert AlreadyBlacklistedEth(account);
        }
    }

    function _blacklistSub(bytes32 account) private {
        if(!subBlacklisted[account]) {
            subBlacklisted[account] = true;
            emit BlacklistedSub(account);
        } else {
            revert AlreadyBlacklistedSub(account);
        }
    }

    function _unblacklistEth(address account) private {
        if(ethBlacklisted[account]) {
            ethBlacklisted[account] = false;
            emit RemovedFromBlacklistEth(account);
        } else {
            revert NotInBlacklistEth(account);
        }
    }

    function _unblacklistSub(bytes32 account) private {
        if(subBlacklisted[account]) {
            subBlacklisted[account] = false;
            emit RemovedFromBlacklistSub(account);
        } else {
            revert NotInBlacklistSub(account);
        }
    }
}

File 14 of 15 : Pause.sol
/*
 * Capital DEX
 *
 * Copyright ©️ 2023 Curio AG (Company Number FL-0002.594.728-9)
 * Incorporated and registered in Liechtenstein.
 *
 * Copyright ©️ 2023 Curio Capital AG (Company Number CHE-211.446.654)
 * Incorporated and registered in Zug, Switzerland.
 */
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.9;

import "@openzeppelin/contracts/security/Pausable.sol";
import "@openzeppelin/contracts/access/AccessControl.sol";

interface IPause {
    function setFullPause(bool pause) external;
    function isPaused() external view returns(bool);
}

contract Pause is IPause, Pausable, AccessControl {
    bytes32 public immutable pauseManagerRole;

    constructor(address admin, bytes32 managerRole) {
        pauseManagerRole = managerRole;
        AccessControl._grantRole(AccessControl.DEFAULT_ADMIN_ROLE, admin);
    }

    function setFullPause(bool pause) public virtual AccessControl.onlyRole(pauseManagerRole) {
        if(pause) {
            Pausable._pause();
        } else {
            Pausable._unpause();
        }
    }

    function isPaused() external view returns(bool) {
        return Pausable.paused();
    }
}

File 15 of 15 : TokenManager.sol
/*
 * Capital DEX
 *
 * Copyright ©️ 2023 Curio AG (Company Number FL-0002.594.728-9)
 * Incorporated and registered in Liechtenstein.
 *
 * Copyright ©️ 2023 Curio Capital AG (Company Number CHE-211.446.654)
 * Incorporated and registered in Zug, Switzerland.
 */
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.9;

import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/access/AccessControl.sol";
import "@openzeppelin/contracts/utils/Context.sol";
import "@openzeppelin/contracts/utils/introspection/ERC165Checker.sol";

interface ITokenManager {
    enum TokenStatus { NotSupported, Active, Paused }

    event TokenAdded(IERC20 token);
    event TokenRemoved(IERC20 token);
    event TokenPaused(IERC20 token);
    event TokenUnpaused(IERC20 token);

    error TokenAlreadySupported(IERC20 token);
    error TokenNotSupported(IERC20 token);

    error TokenNotActive(IERC20 token);
    error TokenNotPaused(IERC20 token);
    
    error AddressDoesNotSupportIERC20(address token);

    function addToken(IERC20 token, bool paused, bool force) external;
    function removeToken(IERC20 token) external;
    function setTokenPause(IERC20 token, bool pause) external;
    function tokenStatus(IERC20 token) external view returns(TokenStatus);
    function isTokenSupported(IERC20 token) external view returns(bool);
    function isTokenPaused(IERC20 token) external view returns(bool);
}

contract TokenManager is ITokenManager, Context, AccessControl {
    using ERC165Checker for address;

    bytes32 public immutable tokenManagerRole;

    mapping(IERC20 => TokenStatus) public supportedTokens;

    modifier OnlySupportedToken(IERC20 token) {
        ensureTokenSupported(token);
        _;
    }

    modifier OnlyActiveToken(IERC20 token) {
        ensureTokenActive(token);
        _;
    }

    modifier OnlyPausedToken(IERC20 token) {
        ensureTokenPaused(token);
        _;
    }

    constructor(address admin, bytes32 managerRole) {
        tokenManagerRole = managerRole;
        AccessControl._grantRole(AccessControl.DEFAULT_ADMIN_ROLE, admin);
    }

    function addToken(IERC20 token, bool paused, bool force) external AccessControl.onlyRole(tokenManagerRole) {
        if(!address(token).supportsInterface(type(IERC20).interfaceId) && !force) {
            revert AddressDoesNotSupportIERC20(address(token));
        }

        if(isTokenSupported(token)) {
            revert TokenAlreadySupported(token);
        }

        if(paused){
            supportedTokens[token] = TokenStatus.Paused;
        } else {
            supportedTokens[token] = TokenStatus.Active;
        }

        emit TokenAdded(token);
    }

    function removeToken(IERC20 token) external AccessControl.onlyRole(tokenManagerRole) OnlySupportedToken(token) {
        supportedTokens[token] = TokenStatus.NotSupported;

        emit TokenRemoved(token);
    }

    function setTokenPause(IERC20 token, bool pause) external AccessControl.onlyRole(tokenManagerRole) OnlySupportedToken(token) {
        if(pause) {
            _pauseToken(token);
        } else {
            _unpauseToken(token);
        }
    }

    function isTokenSupported(IERC20 token) public view returns(bool) {
        return supportedTokens[token] != TokenStatus.NotSupported;
    }

    function isTokenPaused(IERC20 token) public view returns(bool) {
        return supportedTokens[token] == TokenStatus.Paused;
    }

    function isTokenActive(IERC20 token) public view returns(bool) {
        return supportedTokens[token] == TokenStatus.Active;
    }

    function tokenStatus(IERC20 token) public view returns(TokenStatus) {
        return supportedTokens[token];
    }

    function ensureTokenSupported(IERC20 token) internal view {
        if(!isTokenSupported(token)) {
            revert TokenNotSupported(token);
        }
    }

    function ensureTokenActive(IERC20 token) internal view {
        if(!isTokenActive(token)) {
            revert TokenNotActive(token);
        }
    }

    function ensureTokenPaused(IERC20 token) internal view {
        if(!isTokenPaused(token)) {
            revert TokenNotPaused(token);
        }
    }

    function _pauseToken(IERC20 token) private OnlyActiveToken(token) {
        supportedTokens[token] = TokenStatus.Paused;
        emit TokenPaused(token);
    }

    function _unpauseToken(IERC20 token) private OnlyPausedToken(token) {
        supportedTokens[token] = TokenStatus.Active;
        emit TokenUnpaused(token);
    }
}

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

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"address","name":"token","type":"address"}],"name":"AddressDoesNotSupportIERC20","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"AlreadyBlacklistedEth","type":"error"},{"inputs":[{"internalType":"bytes32","name":"account","type":"bytes32"}],"name":"AlreadyBlacklistedSub","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"BlacklistedAccountEth","type":"error"},{"inputs":[{"internalType":"bytes32","name":"account","type":"bytes32"}],"name":"BlacklistedAccountSub","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"NotInBlacklistEth","type":"error"},{"inputs":[{"internalType":"bytes32","name":"account","type":"bytes32"}],"name":"NotInBlacklistSub","type":"error"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"RequestAlreadyProcessed","type":"error"},{"inputs":[{"internalType":"contract IERC20","name":"token","type":"address"}],"name":"TokenAlreadySupported","type":"error"},{"inputs":[{"internalType":"contract IERC20","name":"token","type":"address"}],"name":"TokenNotActive","type":"error"},{"inputs":[{"internalType":"contract IERC20","name":"token","type":"address"}],"name":"TokenNotPaused","type":"error"},{"inputs":[{"internalType":"contract IERC20","name":"token","type":"address"}],"name":"TokenNotSupported","type":"error"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"BlacklistedEth","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bytes32","name":"account","type":"bytes32"}],"name":"BlacklistedSub","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"id","type":"uint256"},{"indexed":false,"internalType":"bytes32","name":"to","type":"bytes32"},{"indexed":false,"internalType":"contract IERC20","name":"token","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Lock","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"RemovedFromBlacklistEth","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bytes32","name":"account","type":"bytes32"}],"name":"RemovedFromBlacklistSub","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"previousAdminRole","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"newAdminRole","type":"bytes32"}],"name":"RoleAdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleRevoked","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"contract IERC20","name":"token","type":"address"}],"name":"TokenAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"contract IERC20","name":"token","type":"address"}],"name":"TokenPaused","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"contract IERC20","name":"token","type":"address"}],"name":"TokenRemoved","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"contract IERC20","name":"token","type":"address"}],"name":"TokenUnpaused","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"id","type":"uint256"},{"indexed":false,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"contract IERC20","name":"token","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Unlock","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"token","type":"address"},{"internalType":"bool","name":"paused","type":"bool"},{"internalType":"bool","name":"force","type":"bool"}],"name":"addToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"components":[{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"address","name":"to","type":"address"},{"internalType":"contract IERC20","name":"token","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"internalType":"struct IBridge.UnlockData[]","name":"data","type":"tuple[]"}],"name":"batchUnlock","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"blacklistManagerRole","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"ethBlacklisted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"inRequestProcessed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"isBlacklistedEth","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"account","type":"bytes32"}],"name":"isBlacklistedSub","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isPaused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"token","type":"address"}],"name":"isTokenActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"token","type":"address"}],"name":"isTokenPaused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"token","type":"address"}],"name":"isTokenSupported","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"to","type":"bytes32"},{"internalType":"contract IERC20","name":"token","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"lock","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"managerRole","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"outRequestId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pauseManagerRole","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"token","type":"address"}],"name":"removeToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"bool","name":"blacklisted","type":"bool"}],"name":"setBlacklistEth","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"account","type":"bytes32"},{"internalType":"bool","name":"blacklisted","type":"bool"}],"name":"setBlacklistSub","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"pause","type":"bool"}],"name":"setFullPause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"token","type":"address"},{"internalType":"bool","name":"pause","type":"bool"}],"name":"setTokenPause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"name":"subBlacklisted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"name":"supportedTokens","outputs":[{"internalType":"enum ITokenManager.TokenStatus","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tokenManagerRole","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"token","type":"address"}],"name":"tokenStatus","outputs":[{"internalType":"enum ITokenManager.TokenStatus","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"address","name":"to","type":"address"},{"internalType":"contract IERC20","name":"token","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"unlock","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60e06040523480156200001157600080fd5b50620000226200018f60201b60201c565b7f241ecf16d79d0f8dbfb92cbc07fe17840425976cf0667f022fe9877caa831b08620000536200018f60201b60201c565b7f241ecf16d79d0f8dbfb92cbc07fe17840425976cf0667f022fe9877caa831b08620000846200018f60201b60201c565b7f241ecf16d79d0f8dbfb92cbc07fe17840425976cf0667f022fe9877caa831b0860008060006101000a81548160ff0219169083151502179055508060808181525050620000dc6000801b836200019760201b60201c565b50508060a08181525050620000fb6000801b836200019760201b60201c565b50508060c081815250506200011a6000801b836200019760201b60201c565b50506000600581905550620001486000801b6200013c6200018f60201b60201c565b6200019760201b60201c565b620001897f241ecf16d79d0f8dbfb92cbc07fe17840425976cf0667f022fe9877caa831b086200017d6200018f60201b60201c565b6200019760201b60201c565b620002f3565b600033905090565b620001a982826200028860201b60201c565b6200028457600180600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550620002296200018f60201b60201c565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b60006001600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b60805160a05160c0516132116200034d60003960008181610ba301526112bc015260008181610c7f01528181610f5d015281816111d501526111f9015260008181610978015281816112e0015261130401526132116000f3fe608060405234801561001057600080fd5b50600436106101fb5760003560e01c806368c4ac261161011a578063b187bd26116100ad578063d547741f1161007c578063d547741f1461060c578063ea3b722314610628578063efef020714610658578063f4cf74f914610676578063f5c7c3ce14610694576101fb565b8063b187bd2614610584578063c8e47bbf146105a2578063cb8d3b1f146105c0578063d443a39e146105dc576101fb565b806391d14854116100e957806391d14854146104fe578063a217fddf1461052e578063a26960d91461054c578063ac6fcc8514610568576101fb565b806368c4ac261461045057806375151b63146104805780638782f5e5146104b0578063895b327e146104ce576101fb565b806333c2095d116101925780635c975abb116101615780635c975abb146103b65780635e76ad54146103d45780635fa7b584146104045780636006952114610420576101fb565b806333c2095d1461033257806336568abe1461034e57806346416e371461036a578063536fc6961461039a576101fb565b80631b9dc052116101ce5780631b9dc0521461029a5780631da0c921146102b6578063248a9ca3146102e65780632f2ff15d14610316576101fb565b806301ffc9a7146102005780630899146b146102305780630acac9421461024c5780631a2d31611461027c575b600080fd5b61021a6004803603810190610215919061238d565b6106b0565b60405161022791906123d5565b60405180910390f35b61024a600480360381019061024591906124cc565b61072a565b005b6102666004803603810190610261919061251f565b61091a565b60405161027391906125c3565b60405180910390f35b610284610970565b60405161029191906125ed565b60405180910390f35b6102b460048036038101906102af9190612660565b610976565b005b6102d060048036038101906102cb91906126a0565b6109c3565b6040516102dd91906123d5565b60405180910390f35b61030060048036038101906102fb91906126a0565b6109e3565b60405161030d91906126dc565b60405180910390f35b610330600480360381019061032b91906126f7565b610a03565b005b61034c6004803603810190610347919061290d565b610a24565b005b610368600480360381019061036391906126f7565b610afe565b005b610384600480360381019061037f9190612956565b610b81565b60405161039191906123d5565b60405180910390f35b6103b460048036038101906103af9190612983565b610ba1565b005b6103be610beb565b6040516103cb91906123d5565b60405180910390f35b6103ee60048036038101906103e9919061251f565b610c01565b6040516103fb91906123d5565b60405180910390f35b61041e6004803603810190610419919061251f565b610c7d565b005b61043a600480360381019061043591906129b0565b610d55565b60405161044791906123d5565b60405180910390f35b61046a6004803603810190610465919061251f565b610dab565b60405161047791906125c3565b60405180910390f35b61049a6004803603810190610495919061251f565b610dcb565b6040516104a791906123d5565b60405180910390f35b6104b8610e48565b6040516104c591906126dc565b60405180910390f35b6104e860048036038101906104e3919061251f565b610e6c565b6040516104f591906123d5565b60405180910390f35b610518600480360381019061051391906126f7565b610ee9565b60405161052591906123d5565b60405180910390f35b610536610f54565b60405161054391906126dc565b60405180910390f35b610566600480360381019061056191906129dd565b610f5b565b005b610582600480360381019061057d9190612a30565b61117f565b005b61058c6111c4565b60405161059991906123d5565b60405180910390f35b6105aa6111d3565b6040516105b791906126dc565b60405180910390f35b6105da60048036038101906105d59190612a97565b6111f7565b005b6105f660048036038101906105f191906126a0565b61124f565b60405161060391906123d5565b60405180910390f35b610626600480360381019061062191906126f7565b611279565b005b610642600480360381019061063d91906129b0565b61129a565b60405161064f91906123d5565b60405180910390f35b6106606112ba565b60405161066d91906126dc565b60405180910390f35b61067e6112de565b60405161068b91906126dc565b60405180910390f35b6106ae60048036038101906106a99190612ad7565b611302565b005b60007f7965db0b000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061072357506107228261134f565b5b9050919050565b6107326113b9565b8161073c81611403565b610744611450565b600260008273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16156107d357806040517f782b18da0000000000000000000000000000000000000000000000000000000081526004016107ca9190612b26565b60405180910390fd5b846003600082815260200190815260200160002060009054906101000a900460ff161561083757806040517f833917dc00000000000000000000000000000000000000000000000000000000815260040161082e91906126dc565b60405180910390fd5b8473ffffffffffffffffffffffffffffffffffffffff166323b872dd61085b611450565b30876040518463ffffffff1660e01b815260040161087b93929190612b41565b6020604051808303816000875af115801561089a573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108be9190612b8d565b507f136119161917f1b3043a9911f7c5d8450c709c2a7601c781e6cd7f1a5d4418de600560008154809291906108f390612be9565b9190505587878760405161090a9493929190612c90565b60405180910390a1505050505050565b6000600460008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff169050919050565b60055481565b7f00000000000000000000000000000000000000000000000000000000000000006109a081611458565b81156109b4576109af8361146c565b6109be565b6109bd83611591565b5b505050565b60036020528060005260406000206000915054906101000a900460ff1681565b600060016000838152602001908152602001600020600101549050919050565b610a0c826109e3565b610a1581611458565b610a1f83836116b7565b505050565b7f241ecf16d79d0f8dbfb92cbc07fe17840425976cf0667f022fe9877caa831b08610a4e81611458565b610a566113b9565b60005b8251811015610af957610ae6838281518110610a7857610a77612cd5565b5b602002602001015160000151848381518110610a9757610a96612cd5565b5b602002602001015160200151858481518110610ab657610ab5612cd5565b5b602002602001015160400151868581518110610ad557610ad4612cd5565b5b602002602001015160600151611797565b8080610af190612be9565b915050610a59565b505050565b610b06611450565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610b73576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b6a90612d87565b60405180910390fd5b610b7d8282611984565b5050565b60066020528060005260406000206000915054906101000a900460ff1681565b7f0000000000000000000000000000000000000000000000000000000000000000610bcb81611458565b8115610bde57610bd9611a66565b610be7565b610be6611ac8565b5b5050565b60008060009054906101000a900460ff16905090565b6000600280811115610c1657610c1561254c565b5b600460008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff166002811115610c7557610c7461254c565b5b149050919050565b7f0000000000000000000000000000000000000000000000000000000000000000610ca781611458565b81610cb181611b2a565b6000600460008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690836002811115610d1457610d1361254c565b5b02179055507f4c910b69fe65a61f7531b9c5042b2329ca7179c77290aa7e2eb3afa3c8511fd383604051610d489190612da7565b60405180910390a1505050565b6000600260008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff169050919050565b60046020528060005260406000206000915054906101000a900460ff1681565b6000806002811115610de057610ddf61254c565b5b600460008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff166002811115610e3f57610e3e61254c565b5b14159050919050565b7f241ecf16d79d0f8dbfb92cbc07fe17840425976cf0667f022fe9877caa831b0881565b600060016002811115610e8257610e8161254c565b5b600460008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff166002811115610ee157610ee061254c565b5b149050919050565b60006001600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6000801b81565b7f0000000000000000000000000000000000000000000000000000000000000000610f8581611458565b610fce7f36372b07000000000000000000000000000000000000000000000000000000008573ffffffffffffffffffffffffffffffffffffffff16611b7790919063ffffffff16565b158015610fd9575081155b1561101b57836040517fe9facced0000000000000000000000000000000000000000000000000000000081526004016110129190612b26565b60405180910390fd5b61102484610dcb565b1561106657836040517fbbefc4fc00000000000000000000000000000000000000000000000000000000815260040161105d9190612da7565b60405180910390fd5b82156110d9576002600460008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908360028111156110cf576110ce61254c565b5b0217905550611142565b6001600460008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083600281111561113c5761113b61254c565b5b02179055505b7f784c8f4dbf0ffedd6e72c76501c545a70f8b203b30a26ce542bf92ba87c248a4846040516111719190612da7565b60405180910390a150505050565b7f241ecf16d79d0f8dbfb92cbc07fe17840425976cf0667f022fe9877caa831b086111a981611458565b6111b16113b9565b6111bd85858585611797565b5050505050565b60006111ce610beb565b905090565b7f000000000000000000000000000000000000000000000000000000000000000081565b7f000000000000000000000000000000000000000000000000000000000000000061122181611458565b8261122b81611b2a565b821561123f5761123a84611b9c565b611249565b61124884611c49565b5b50505050565b60006003600083815260200190815260200160002060009054906101000a900460ff169050919050565b611282826109e3565b61128b81611458565b6112958383611984565b505050565b60026020528060005260406000206000915054906101000a900460ff1681565b7f000000000000000000000000000000000000000000000000000000000000000081565b7f000000000000000000000000000000000000000000000000000000000000000081565b7f000000000000000000000000000000000000000000000000000000000000000061132c81611458565b81156113405761133b83611cf6565b61134a565b61134983611dc3565b5b505050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b6113c1610beb565b15611401576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113f890612e0e565b60405180910390fd5b565b61140c81610e6c565b61144d57806040517ff41181f60000000000000000000000000000000000000000000000000000000081526004016114449190612da7565b60405180910390fd5b50565b600033905090565b61146981611464611450565b611e91565b50565b600260008273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16611551576001600260008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055507fac7424fb3d2d08fe53e8054dd8edb161320421450fe2a37c00aa2168437de8d2816040516115449190612b26565b60405180910390a161158e565b806040517fbb2b10300000000000000000000000000000000000000000000000000000000081526004016115859190612b26565b60405180910390fd5b50565b600260008273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1615611677576000600260008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055507fadac85ce84bf98a835b0bd15cc0213d322c8b35fce6a0cc11ce06bedc856af968160405161166a9190612b26565b60405180910390a16116b4565b806040517f5c9821ff0000000000000000000000000000000000000000000000000000000081526004016116ab9190612b26565b60405180910390fd5b50565b6116c18282610ee9565b61179357600180600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550611738611450565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b816117a181611403565b83600260008273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff161561183157806040517f782b18da0000000000000000000000000000000000000000000000000000000081526004016118289190612b26565b60405180910390fd5b6006600087815260200190815260200160002060009054906101000a900460ff161561189457856040517f389f47a000000000000000000000000000000000000000000000000000000000815260040161188b91906125ed565b60405180910390fd5b60016006600088815260200190815260200160002060006101000a81548160ff0219169083151502179055508373ffffffffffffffffffffffffffffffffffffffff1663a9059cbb86856040518363ffffffff1660e01b81526004016118fb929190612e2e565b6020604051808303816000875af115801561191a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061193e9190612b8d565b507fcd0acb1b9f7168f29d2a45d3824b258d0be434a93b1ecd46e421de9261723bfc868686866040516119749493929190612e57565b60405180910390a1505050505050565b61198e8282610ee9565b15611a625760006001600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550611a07611450565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45b5050565b611a6e6113b9565b60016000806101000a81548160ff0219169083151502179055507f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258611ab1611450565b604051611abe9190612b26565b60405180910390a1565b611ad0611f16565b60008060006101000a81548160ff0219169083151502179055507f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa611b13611450565b604051611b209190612b26565b60405180910390a1565b611b3381610dcb565b611b7457806040517f06439c6b000000000000000000000000000000000000000000000000000000008152600401611b6b9190612da7565b60405180910390fd5b50565b6000611b8283611f5f565b8015611b945750611b938383611fac565b5b905092915050565b80611ba681611403565b6002600460008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690836002811115611c0957611c0861254c565b5b02179055507ff017c0de579727a3cd3ee18077ee8b4c43bf21892985952d1d5a0d52f983502d82604051611c3d9190612da7565b60405180910390a15050565b80611c538161206b565b6001600460008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690836002811115611cb657611cb561254c565b5b02179055507ff38578ed892ce2ce655ca8ae03c73464ad74915a1331a9b4085e637534daeedf82604051611cea9190612da7565b60405180910390a15050565b6003600082815260200190815260200160002060009054906101000a900460ff16611d835760016003600083815260200190815260200160002060006101000a81548160ff0219169083151502179055507fb1dd137eb91c934ab0a7af6f8e7f382591f88b3aa39d88358b869e367309c78581604051611d7691906126dc565b60405180910390a1611dc0565b806040517f24a9e58f000000000000000000000000000000000000000000000000000000008152600401611db791906126dc565b60405180910390fd5b50565b6003600082815260200190815260200160002060009054906101000a900460ff1615611e515760006003600083815260200190815260200160002060006101000a81548160ff0219169083151502179055507f7c3ac08644d4c653f8f9dd38d2740c5616ee3e71fc642b3cdcc43f8e5208c75881604051611e4491906126dc565b60405180910390a1611e8e565b806040517f2c91a503000000000000000000000000000000000000000000000000000000008152600401611e8591906126dc565b60405180910390fd5b50565b611e9b8282610ee9565b611f1257611ea8816120b8565b611eb68360001c60206120e5565b604051602001611ec7929190612fa5565b6040516020818303038152906040526040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f099190613018565b60405180910390fd5b5050565b611f1e610beb565b611f5d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f5490613086565b60405180910390fd5b565b6000611f8b827f01ffc9a700000000000000000000000000000000000000000000000000000000611fac565b8015611fa55750611fa38263ffffffff60e01b611fac565b155b9050919050565b6000806301ffc9a760e01b83604051602401611fc891906130b5565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff838183161783525050505090506000806000602060008551602087018a617530fa92503d91506000519050828015612053575060208210155b801561205f5750600081115b94505050505092915050565b61207481610c01565b6120b557806040517fb0e84d540000000000000000000000000000000000000000000000000000000081526004016120ac9190612da7565b60405180910390fd5b50565b60606120de8273ffffffffffffffffffffffffffffffffffffffff16601460ff166120e5565b9050919050565b6060600060028360026120f891906130d0565b6121029190613112565b67ffffffffffffffff81111561211b5761211a61274d565b5b6040519080825280601f01601f19166020018201604052801561214d5781602001600182028036833780820191505090505b5090507f30000000000000000000000000000000000000000000000000000000000000008160008151811061218557612184612cd5565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053507f7800000000000000000000000000000000000000000000000000000000000000816001815181106121e9576121e8612cd5565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053506000600184600261222991906130d0565b6122339190613112565b90505b60018111156122d3577f3031323334353637383961626364656600000000000000000000000000000000600f86166010811061227557612274612cd5565b5b1a60f81b82828151811061228c5761228b612cd5565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600485901c9450806122cc90613146565b9050612236565b5060008414612317576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161230e906131bb565b60405180910390fd5b8091505092915050565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b61236a81612335565b811461237557600080fd5b50565b60008135905061238781612361565b92915050565b6000602082840312156123a3576123a261232b565b5b60006123b184828501612378565b91505092915050565b60008115159050919050565b6123cf816123ba565b82525050565b60006020820190506123ea60008301846123c6565b92915050565b6000819050919050565b612403816123f0565b811461240e57600080fd5b50565b600081359050612420816123fa565b92915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061245182612426565b9050919050565b600061246382612446565b9050919050565b61247381612458565b811461247e57600080fd5b50565b6000813590506124908161246a565b92915050565b6000819050919050565b6124a981612496565b81146124b457600080fd5b50565b6000813590506124c6816124a0565b92915050565b6000806000606084860312156124e5576124e461232b565b5b60006124f386828701612411565b935050602061250486828701612481565b9250506040612515868287016124b7565b9150509250925092565b6000602082840312156125355761253461232b565b5b600061254384828501612481565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b6003811061258c5761258b61254c565b5b50565b600081905061259d8261257b565b919050565b60006125ad8261258f565b9050919050565b6125bd816125a2565b82525050565b60006020820190506125d860008301846125b4565b92915050565b6125e781612496565b82525050565b600060208201905061260260008301846125de565b92915050565b61261181612446565b811461261c57600080fd5b50565b60008135905061262e81612608565b92915050565b61263d816123ba565b811461264857600080fd5b50565b60008135905061265a81612634565b92915050565b600080604083850312156126775761267661232b565b5b60006126858582860161261f565b92505060206126968582860161264b565b9150509250929050565b6000602082840312156126b6576126b561232b565b5b60006126c484828501612411565b91505092915050565b6126d6816123f0565b82525050565b60006020820190506126f160008301846126cd565b92915050565b6000806040838503121561270e5761270d61232b565b5b600061271c85828601612411565b925050602061272d8582860161261f565b9150509250929050565b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6127858261273c565b810181811067ffffffffffffffff821117156127a4576127a361274d565b5b80604052505050565b60006127b7612321565b90506127c3828261277c565b919050565b600067ffffffffffffffff8211156127e3576127e261274d565b5b602082029050602081019050919050565b600080fd5b600080fd5b600060808284031215612814576128136127f9565b5b61281e60806127ad565b9050600061282e848285016124b7565b60008301525060206128428482850161261f565b602083015250604061285684828501612481565b604083015250606061286a848285016124b7565b60608301525092915050565b6000612889612884846127c8565b6127ad565b905080838252602082019050608084028301858111156128ac576128ab6127f4565b5b835b818110156128d557806128c188826127fe565b8452602084019350506080810190506128ae565b5050509392505050565b600082601f8301126128f4576128f3612737565b5b8135612904848260208601612876565b91505092915050565b6000602082840312156129235761292261232b565b5b600082013567ffffffffffffffff81111561294157612940612330565b5b61294d848285016128df565b91505092915050565b60006020828403121561296c5761296b61232b565b5b600061297a848285016124b7565b91505092915050565b6000602082840312156129995761299861232b565b5b60006129a78482850161264b565b91505092915050565b6000602082840312156129c6576129c561232b565b5b60006129d48482850161261f565b91505092915050565b6000806000606084860312156129f6576129f561232b565b5b6000612a0486828701612481565b9350506020612a158682870161264b565b9250506040612a268682870161264b565b9150509250925092565b60008060008060808587031215612a4a57612a4961232b565b5b6000612a58878288016124b7565b9450506020612a698782880161261f565b9350506040612a7a87828801612481565b9250506060612a8b878288016124b7565b91505092959194509250565b60008060408385031215612aae57612aad61232b565b5b6000612abc85828601612481565b9250506020612acd8582860161264b565b9150509250929050565b60008060408385031215612aee57612aed61232b565b5b6000612afc85828601612411565b9250506020612b0d8582860161264b565b9150509250929050565b612b2081612446565b82525050565b6000602082019050612b3b6000830184612b17565b92915050565b6000606082019050612b566000830186612b17565b612b636020830185612b17565b612b7060408301846125de565b949350505050565b600081519050612b8781612634565b92915050565b600060208284031215612ba357612ba261232b565b5b6000612bb184828501612b78565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000612bf482612496565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203612c2657612c25612bba565b5b600182019050919050565b6000819050919050565b6000612c56612c51612c4c84612426565b612c31565b612426565b9050919050565b6000612c6882612c3b565b9050919050565b6000612c7a82612c5d565b9050919050565b612c8a81612c6f565b82525050565b6000608082019050612ca560008301876125de565b612cb260208301866126cd565b612cbf6040830185612c81565b612ccc60608301846125de565b95945050505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600082825260208201905092915050565b7f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560008201527f20726f6c657320666f722073656c660000000000000000000000000000000000602082015250565b6000612d71602f83612d04565b9150612d7c82612d15565b604082019050919050565b60006020820190508181036000830152612da081612d64565b9050919050565b6000602082019050612dbc6000830184612c81565b92915050565b7f5061757361626c653a2070617573656400000000000000000000000000000000600082015250565b6000612df8601083612d04565b9150612e0382612dc2565b602082019050919050565b60006020820190508181036000830152612e2781612deb565b9050919050565b6000604082019050612e436000830185612b17565b612e5060208301846125de565b9392505050565b6000608082019050612e6c60008301876125de565b612e796020830186612b17565b612e866040830185612c81565b612e9360608301846125de565b95945050505050565b600081905092915050565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000600082015250565b6000612edd601783612e9c565b9150612ee882612ea7565b601782019050919050565b600081519050919050565b60005b83811015612f1c578082015181840152602081019050612f01565b60008484015250505050565b6000612f3382612ef3565b612f3d8185612e9c565b9350612f4d818560208601612efe565b80840191505092915050565b7f206973206d697373696e6720726f6c6520000000000000000000000000000000600082015250565b6000612f8f601183612e9c565b9150612f9a82612f59565b601182019050919050565b6000612fb082612ed0565b9150612fbc8285612f28565b9150612fc782612f82565b9150612fd38284612f28565b91508190509392505050565b6000612fea82612ef3565b612ff48185612d04565b9350613004818560208601612efe565b61300d8161273c565b840191505092915050565b600060208201905081810360008301526130328184612fdf565b905092915050565b7f5061757361626c653a206e6f7420706175736564000000000000000000000000600082015250565b6000613070601483612d04565b915061307b8261303a565b602082019050919050565b6000602082019050818103600083015261309f81613063565b9050919050565b6130af81612335565b82525050565b60006020820190506130ca60008301846130a6565b92915050565b60006130db82612496565b91506130e683612496565b92508282026130f481612496565b9150828204841483151761310b5761310a612bba565b5b5092915050565b600061311d82612496565b915061312883612496565b92508282019050808211156131405761313f612bba565b5b92915050565b600061315182612496565b91506000820361316457613163612bba565b5b600182039050919050565b7f537472696e67733a20686578206c656e67746820696e73756666696369656e74600082015250565b60006131a5602083612d04565b91506131b08261316f565b602082019050919050565b600060208201905081810360008301526131d481613198565b905091905056fea264697066735822122037f7e6aef95fcf4cb18092ed107a88e405a02bd0f182dc1516bf64fdcda2d19064736f6c63430008130033

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106101fb5760003560e01c806368c4ac261161011a578063b187bd26116100ad578063d547741f1161007c578063d547741f1461060c578063ea3b722314610628578063efef020714610658578063f4cf74f914610676578063f5c7c3ce14610694576101fb565b8063b187bd2614610584578063c8e47bbf146105a2578063cb8d3b1f146105c0578063d443a39e146105dc576101fb565b806391d14854116100e957806391d14854146104fe578063a217fddf1461052e578063a26960d91461054c578063ac6fcc8514610568576101fb565b806368c4ac261461045057806375151b63146104805780638782f5e5146104b0578063895b327e146104ce576101fb565b806333c2095d116101925780635c975abb116101615780635c975abb146103b65780635e76ad54146103d45780635fa7b584146104045780636006952114610420576101fb565b806333c2095d1461033257806336568abe1461034e57806346416e371461036a578063536fc6961461039a576101fb565b80631b9dc052116101ce5780631b9dc0521461029a5780631da0c921146102b6578063248a9ca3146102e65780632f2ff15d14610316576101fb565b806301ffc9a7146102005780630899146b146102305780630acac9421461024c5780631a2d31611461027c575b600080fd5b61021a6004803603810190610215919061238d565b6106b0565b60405161022791906123d5565b60405180910390f35b61024a600480360381019061024591906124cc565b61072a565b005b6102666004803603810190610261919061251f565b61091a565b60405161027391906125c3565b60405180910390f35b610284610970565b60405161029191906125ed565b60405180910390f35b6102b460048036038101906102af9190612660565b610976565b005b6102d060048036038101906102cb91906126a0565b6109c3565b6040516102dd91906123d5565b60405180910390f35b61030060048036038101906102fb91906126a0565b6109e3565b60405161030d91906126dc565b60405180910390f35b610330600480360381019061032b91906126f7565b610a03565b005b61034c6004803603810190610347919061290d565b610a24565b005b610368600480360381019061036391906126f7565b610afe565b005b610384600480360381019061037f9190612956565b610b81565b60405161039191906123d5565b60405180910390f35b6103b460048036038101906103af9190612983565b610ba1565b005b6103be610beb565b6040516103cb91906123d5565b60405180910390f35b6103ee60048036038101906103e9919061251f565b610c01565b6040516103fb91906123d5565b60405180910390f35b61041e6004803603810190610419919061251f565b610c7d565b005b61043a600480360381019061043591906129b0565b610d55565b60405161044791906123d5565b60405180910390f35b61046a6004803603810190610465919061251f565b610dab565b60405161047791906125c3565b60405180910390f35b61049a6004803603810190610495919061251f565b610dcb565b6040516104a791906123d5565b60405180910390f35b6104b8610e48565b6040516104c591906126dc565b60405180910390f35b6104e860048036038101906104e3919061251f565b610e6c565b6040516104f591906123d5565b60405180910390f35b610518600480360381019061051391906126f7565b610ee9565b60405161052591906123d5565b60405180910390f35b610536610f54565b60405161054391906126dc565b60405180910390f35b610566600480360381019061056191906129dd565b610f5b565b005b610582600480360381019061057d9190612a30565b61117f565b005b61058c6111c4565b60405161059991906123d5565b60405180910390f35b6105aa6111d3565b6040516105b791906126dc565b60405180910390f35b6105da60048036038101906105d59190612a97565b6111f7565b005b6105f660048036038101906105f191906126a0565b61124f565b60405161060391906123d5565b60405180910390f35b610626600480360381019061062191906126f7565b611279565b005b610642600480360381019061063d91906129b0565b61129a565b60405161064f91906123d5565b60405180910390f35b6106606112ba565b60405161066d91906126dc565b60405180910390f35b61067e6112de565b60405161068b91906126dc565b60405180910390f35b6106ae60048036038101906106a99190612ad7565b611302565b005b60007f7965db0b000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061072357506107228261134f565b5b9050919050565b6107326113b9565b8161073c81611403565b610744611450565b600260008273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16156107d357806040517f782b18da0000000000000000000000000000000000000000000000000000000081526004016107ca9190612b26565b60405180910390fd5b846003600082815260200190815260200160002060009054906101000a900460ff161561083757806040517f833917dc00000000000000000000000000000000000000000000000000000000815260040161082e91906126dc565b60405180910390fd5b8473ffffffffffffffffffffffffffffffffffffffff166323b872dd61085b611450565b30876040518463ffffffff1660e01b815260040161087b93929190612b41565b6020604051808303816000875af115801561089a573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108be9190612b8d565b507f136119161917f1b3043a9911f7c5d8450c709c2a7601c781e6cd7f1a5d4418de600560008154809291906108f390612be9565b9190505587878760405161090a9493929190612c90565b60405180910390a1505050505050565b6000600460008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff169050919050565b60055481565b7f241ecf16d79d0f8dbfb92cbc07fe17840425976cf0667f022fe9877caa831b086109a081611458565b81156109b4576109af8361146c565b6109be565b6109bd83611591565b5b505050565b60036020528060005260406000206000915054906101000a900460ff1681565b600060016000838152602001908152602001600020600101549050919050565b610a0c826109e3565b610a1581611458565b610a1f83836116b7565b505050565b7f241ecf16d79d0f8dbfb92cbc07fe17840425976cf0667f022fe9877caa831b08610a4e81611458565b610a566113b9565b60005b8251811015610af957610ae6838281518110610a7857610a77612cd5565b5b602002602001015160000151848381518110610a9757610a96612cd5565b5b602002602001015160200151858481518110610ab657610ab5612cd5565b5b602002602001015160400151868581518110610ad557610ad4612cd5565b5b602002602001015160600151611797565b8080610af190612be9565b915050610a59565b505050565b610b06611450565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610b73576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b6a90612d87565b60405180910390fd5b610b7d8282611984565b5050565b60066020528060005260406000206000915054906101000a900460ff1681565b7f241ecf16d79d0f8dbfb92cbc07fe17840425976cf0667f022fe9877caa831b08610bcb81611458565b8115610bde57610bd9611a66565b610be7565b610be6611ac8565b5b5050565b60008060009054906101000a900460ff16905090565b6000600280811115610c1657610c1561254c565b5b600460008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff166002811115610c7557610c7461254c565b5b149050919050565b7f241ecf16d79d0f8dbfb92cbc07fe17840425976cf0667f022fe9877caa831b08610ca781611458565b81610cb181611b2a565b6000600460008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690836002811115610d1457610d1361254c565b5b02179055507f4c910b69fe65a61f7531b9c5042b2329ca7179c77290aa7e2eb3afa3c8511fd383604051610d489190612da7565b60405180910390a1505050565b6000600260008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff169050919050565b60046020528060005260406000206000915054906101000a900460ff1681565b6000806002811115610de057610ddf61254c565b5b600460008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff166002811115610e3f57610e3e61254c565b5b14159050919050565b7f241ecf16d79d0f8dbfb92cbc07fe17840425976cf0667f022fe9877caa831b0881565b600060016002811115610e8257610e8161254c565b5b600460008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff166002811115610ee157610ee061254c565b5b149050919050565b60006001600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6000801b81565b7f241ecf16d79d0f8dbfb92cbc07fe17840425976cf0667f022fe9877caa831b08610f8581611458565b610fce7f36372b07000000000000000000000000000000000000000000000000000000008573ffffffffffffffffffffffffffffffffffffffff16611b7790919063ffffffff16565b158015610fd9575081155b1561101b57836040517fe9facced0000000000000000000000000000000000000000000000000000000081526004016110129190612b26565b60405180910390fd5b61102484610dcb565b1561106657836040517fbbefc4fc00000000000000000000000000000000000000000000000000000000815260040161105d9190612da7565b60405180910390fd5b82156110d9576002600460008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908360028111156110cf576110ce61254c565b5b0217905550611142565b6001600460008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083600281111561113c5761113b61254c565b5b02179055505b7f784c8f4dbf0ffedd6e72c76501c545a70f8b203b30a26ce542bf92ba87c248a4846040516111719190612da7565b60405180910390a150505050565b7f241ecf16d79d0f8dbfb92cbc07fe17840425976cf0667f022fe9877caa831b086111a981611458565b6111b16113b9565b6111bd85858585611797565b5050505050565b60006111ce610beb565b905090565b7f241ecf16d79d0f8dbfb92cbc07fe17840425976cf0667f022fe9877caa831b0881565b7f241ecf16d79d0f8dbfb92cbc07fe17840425976cf0667f022fe9877caa831b0861122181611458565b8261122b81611b2a565b821561123f5761123a84611b9c565b611249565b61124884611c49565b5b50505050565b60006003600083815260200190815260200160002060009054906101000a900460ff169050919050565b611282826109e3565b61128b81611458565b6112958383611984565b505050565b60026020528060005260406000206000915054906101000a900460ff1681565b7f241ecf16d79d0f8dbfb92cbc07fe17840425976cf0667f022fe9877caa831b0881565b7f241ecf16d79d0f8dbfb92cbc07fe17840425976cf0667f022fe9877caa831b0881565b7f241ecf16d79d0f8dbfb92cbc07fe17840425976cf0667f022fe9877caa831b0861132c81611458565b81156113405761133b83611cf6565b61134a565b61134983611dc3565b5b505050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b6113c1610beb565b15611401576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113f890612e0e565b60405180910390fd5b565b61140c81610e6c565b61144d57806040517ff41181f60000000000000000000000000000000000000000000000000000000081526004016114449190612da7565b60405180910390fd5b50565b600033905090565b61146981611464611450565b611e91565b50565b600260008273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16611551576001600260008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055507fac7424fb3d2d08fe53e8054dd8edb161320421450fe2a37c00aa2168437de8d2816040516115449190612b26565b60405180910390a161158e565b806040517fbb2b10300000000000000000000000000000000000000000000000000000000081526004016115859190612b26565b60405180910390fd5b50565b600260008273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1615611677576000600260008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055507fadac85ce84bf98a835b0bd15cc0213d322c8b35fce6a0cc11ce06bedc856af968160405161166a9190612b26565b60405180910390a16116b4565b806040517f5c9821ff0000000000000000000000000000000000000000000000000000000081526004016116ab9190612b26565b60405180910390fd5b50565b6116c18282610ee9565b61179357600180600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550611738611450565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b816117a181611403565b83600260008273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff161561183157806040517f782b18da0000000000000000000000000000000000000000000000000000000081526004016118289190612b26565b60405180910390fd5b6006600087815260200190815260200160002060009054906101000a900460ff161561189457856040517f389f47a000000000000000000000000000000000000000000000000000000000815260040161188b91906125ed565b60405180910390fd5b60016006600088815260200190815260200160002060006101000a81548160ff0219169083151502179055508373ffffffffffffffffffffffffffffffffffffffff1663a9059cbb86856040518363ffffffff1660e01b81526004016118fb929190612e2e565b6020604051808303816000875af115801561191a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061193e9190612b8d565b507fcd0acb1b9f7168f29d2a45d3824b258d0be434a93b1ecd46e421de9261723bfc868686866040516119749493929190612e57565b60405180910390a1505050505050565b61198e8282610ee9565b15611a625760006001600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550611a07611450565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45b5050565b611a6e6113b9565b60016000806101000a81548160ff0219169083151502179055507f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258611ab1611450565b604051611abe9190612b26565b60405180910390a1565b611ad0611f16565b60008060006101000a81548160ff0219169083151502179055507f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa611b13611450565b604051611b209190612b26565b60405180910390a1565b611b3381610dcb565b611b7457806040517f06439c6b000000000000000000000000000000000000000000000000000000008152600401611b6b9190612da7565b60405180910390fd5b50565b6000611b8283611f5f565b8015611b945750611b938383611fac565b5b905092915050565b80611ba681611403565b6002600460008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690836002811115611c0957611c0861254c565b5b02179055507ff017c0de579727a3cd3ee18077ee8b4c43bf21892985952d1d5a0d52f983502d82604051611c3d9190612da7565b60405180910390a15050565b80611c538161206b565b6001600460008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690836002811115611cb657611cb561254c565b5b02179055507ff38578ed892ce2ce655ca8ae03c73464ad74915a1331a9b4085e637534daeedf82604051611cea9190612da7565b60405180910390a15050565b6003600082815260200190815260200160002060009054906101000a900460ff16611d835760016003600083815260200190815260200160002060006101000a81548160ff0219169083151502179055507fb1dd137eb91c934ab0a7af6f8e7f382591f88b3aa39d88358b869e367309c78581604051611d7691906126dc565b60405180910390a1611dc0565b806040517f24a9e58f000000000000000000000000000000000000000000000000000000008152600401611db791906126dc565b60405180910390fd5b50565b6003600082815260200190815260200160002060009054906101000a900460ff1615611e515760006003600083815260200190815260200160002060006101000a81548160ff0219169083151502179055507f7c3ac08644d4c653f8f9dd38d2740c5616ee3e71fc642b3cdcc43f8e5208c75881604051611e4491906126dc565b60405180910390a1611e8e565b806040517f2c91a503000000000000000000000000000000000000000000000000000000008152600401611e8591906126dc565b60405180910390fd5b50565b611e9b8282610ee9565b611f1257611ea8816120b8565b611eb68360001c60206120e5565b604051602001611ec7929190612fa5565b6040516020818303038152906040526040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f099190613018565b60405180910390fd5b5050565b611f1e610beb565b611f5d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f5490613086565b60405180910390fd5b565b6000611f8b827f01ffc9a700000000000000000000000000000000000000000000000000000000611fac565b8015611fa55750611fa38263ffffffff60e01b611fac565b155b9050919050565b6000806301ffc9a760e01b83604051602401611fc891906130b5565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff838183161783525050505090506000806000602060008551602087018a617530fa92503d91506000519050828015612053575060208210155b801561205f5750600081115b94505050505092915050565b61207481610c01565b6120b557806040517fb0e84d540000000000000000000000000000000000000000000000000000000081526004016120ac9190612da7565b60405180910390fd5b50565b60606120de8273ffffffffffffffffffffffffffffffffffffffff16601460ff166120e5565b9050919050565b6060600060028360026120f891906130d0565b6121029190613112565b67ffffffffffffffff81111561211b5761211a61274d565b5b6040519080825280601f01601f19166020018201604052801561214d5781602001600182028036833780820191505090505b5090507f30000000000000000000000000000000000000000000000000000000000000008160008151811061218557612184612cd5565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053507f7800000000000000000000000000000000000000000000000000000000000000816001815181106121e9576121e8612cd5565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053506000600184600261222991906130d0565b6122339190613112565b90505b60018111156122d3577f3031323334353637383961626364656600000000000000000000000000000000600f86166010811061227557612274612cd5565b5b1a60f81b82828151811061228c5761228b612cd5565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600485901c9450806122cc90613146565b9050612236565b5060008414612317576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161230e906131bb565b60405180910390fd5b8091505092915050565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b61236a81612335565b811461237557600080fd5b50565b60008135905061238781612361565b92915050565b6000602082840312156123a3576123a261232b565b5b60006123b184828501612378565b91505092915050565b60008115159050919050565b6123cf816123ba565b82525050565b60006020820190506123ea60008301846123c6565b92915050565b6000819050919050565b612403816123f0565b811461240e57600080fd5b50565b600081359050612420816123fa565b92915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061245182612426565b9050919050565b600061246382612446565b9050919050565b61247381612458565b811461247e57600080fd5b50565b6000813590506124908161246a565b92915050565b6000819050919050565b6124a981612496565b81146124b457600080fd5b50565b6000813590506124c6816124a0565b92915050565b6000806000606084860312156124e5576124e461232b565b5b60006124f386828701612411565b935050602061250486828701612481565b9250506040612515868287016124b7565b9150509250925092565b6000602082840312156125355761253461232b565b5b600061254384828501612481565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b6003811061258c5761258b61254c565b5b50565b600081905061259d8261257b565b919050565b60006125ad8261258f565b9050919050565b6125bd816125a2565b82525050565b60006020820190506125d860008301846125b4565b92915050565b6125e781612496565b82525050565b600060208201905061260260008301846125de565b92915050565b61261181612446565b811461261c57600080fd5b50565b60008135905061262e81612608565b92915050565b61263d816123ba565b811461264857600080fd5b50565b60008135905061265a81612634565b92915050565b600080604083850312156126775761267661232b565b5b60006126858582860161261f565b92505060206126968582860161264b565b9150509250929050565b6000602082840312156126b6576126b561232b565b5b60006126c484828501612411565b91505092915050565b6126d6816123f0565b82525050565b60006020820190506126f160008301846126cd565b92915050565b6000806040838503121561270e5761270d61232b565b5b600061271c85828601612411565b925050602061272d8582860161261f565b9150509250929050565b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6127858261273c565b810181811067ffffffffffffffff821117156127a4576127a361274d565b5b80604052505050565b60006127b7612321565b90506127c3828261277c565b919050565b600067ffffffffffffffff8211156127e3576127e261274d565b5b602082029050602081019050919050565b600080fd5b600080fd5b600060808284031215612814576128136127f9565b5b61281e60806127ad565b9050600061282e848285016124b7565b60008301525060206128428482850161261f565b602083015250604061285684828501612481565b604083015250606061286a848285016124b7565b60608301525092915050565b6000612889612884846127c8565b6127ad565b905080838252602082019050608084028301858111156128ac576128ab6127f4565b5b835b818110156128d557806128c188826127fe565b8452602084019350506080810190506128ae565b5050509392505050565b600082601f8301126128f4576128f3612737565b5b8135612904848260208601612876565b91505092915050565b6000602082840312156129235761292261232b565b5b600082013567ffffffffffffffff81111561294157612940612330565b5b61294d848285016128df565b91505092915050565b60006020828403121561296c5761296b61232b565b5b600061297a848285016124b7565b91505092915050565b6000602082840312156129995761299861232b565b5b60006129a78482850161264b565b91505092915050565b6000602082840312156129c6576129c561232b565b5b60006129d48482850161261f565b91505092915050565b6000806000606084860312156129f6576129f561232b565b5b6000612a0486828701612481565b9350506020612a158682870161264b565b9250506040612a268682870161264b565b9150509250925092565b60008060008060808587031215612a4a57612a4961232b565b5b6000612a58878288016124b7565b9450506020612a698782880161261f565b9350506040612a7a87828801612481565b9250506060612a8b878288016124b7565b91505092959194509250565b60008060408385031215612aae57612aad61232b565b5b6000612abc85828601612481565b9250506020612acd8582860161264b565b9150509250929050565b60008060408385031215612aee57612aed61232b565b5b6000612afc85828601612411565b9250506020612b0d8582860161264b565b9150509250929050565b612b2081612446565b82525050565b6000602082019050612b3b6000830184612b17565b92915050565b6000606082019050612b566000830186612b17565b612b636020830185612b17565b612b7060408301846125de565b949350505050565b600081519050612b8781612634565b92915050565b600060208284031215612ba357612ba261232b565b5b6000612bb184828501612b78565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000612bf482612496565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203612c2657612c25612bba565b5b600182019050919050565b6000819050919050565b6000612c56612c51612c4c84612426565b612c31565b612426565b9050919050565b6000612c6882612c3b565b9050919050565b6000612c7a82612c5d565b9050919050565b612c8a81612c6f565b82525050565b6000608082019050612ca560008301876125de565b612cb260208301866126cd565b612cbf6040830185612c81565b612ccc60608301846125de565b95945050505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600082825260208201905092915050565b7f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560008201527f20726f6c657320666f722073656c660000000000000000000000000000000000602082015250565b6000612d71602f83612d04565b9150612d7c82612d15565b604082019050919050565b60006020820190508181036000830152612da081612d64565b9050919050565b6000602082019050612dbc6000830184612c81565b92915050565b7f5061757361626c653a2070617573656400000000000000000000000000000000600082015250565b6000612df8601083612d04565b9150612e0382612dc2565b602082019050919050565b60006020820190508181036000830152612e2781612deb565b9050919050565b6000604082019050612e436000830185612b17565b612e5060208301846125de565b9392505050565b6000608082019050612e6c60008301876125de565b612e796020830186612b17565b612e866040830185612c81565b612e9360608301846125de565b95945050505050565b600081905092915050565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000600082015250565b6000612edd601783612e9c565b9150612ee882612ea7565b601782019050919050565b600081519050919050565b60005b83811015612f1c578082015181840152602081019050612f01565b60008484015250505050565b6000612f3382612ef3565b612f3d8185612e9c565b9350612f4d818560208601612efe565b80840191505092915050565b7f206973206d697373696e6720726f6c6520000000000000000000000000000000600082015250565b6000612f8f601183612e9c565b9150612f9a82612f59565b601182019050919050565b6000612fb082612ed0565b9150612fbc8285612f28565b9150612fc782612f82565b9150612fd38284612f28565b91508190509392505050565b6000612fea82612ef3565b612ff48185612d04565b9350613004818560208601612efe565b61300d8161273c565b840191505092915050565b600060208201905081810360008301526130328184612fdf565b905092915050565b7f5061757361626c653a206e6f7420706175736564000000000000000000000000600082015250565b6000613070601483612d04565b915061307b8261303a565b602082019050919050565b6000602082019050818103600083015261309f81613063565b9050919050565b6130af81612335565b82525050565b60006020820190506130ca60008301846130a6565b92915050565b60006130db82612496565b91506130e683612496565b92508282026130f481612496565b9150828204841483151761310b5761310a612bba565b5b5092915050565b600061311d82612496565b915061312883612496565b92508282019050808211156131405761313f612bba565b5b92915050565b600061315182612496565b91506000820361316457613163612bba565b5b600182039050919050565b7f537472696e67733a20686578206c656e67746820696e73756666696369656e74600082015250565b60006131a5602083612d04565b91506131b08261316f565b602082019050919050565b600060208201905081810360008301526131d481613198565b905091905056fea264697066735822122037f7e6aef95fcf4cb18092ed107a88e405a02bd0f182dc1516bf64fdcda2d19064736f6c63430008130033

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

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

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading
[ Download: CSV Export  ]

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.