false
true

Contract Address Details

0x988A796F5ca1d4848d00daC1c17d0A2Bbca18a9b

Contract Name
L2CrossTrade
Creator
0xf0b595–6035ea at 0xe6d413–7a049d
Balance
0 ETH
Tokens
Fetching tokens...
Transactions
0 Transactions
Transfers
0 Transfers
Gas Used
Fetching gas used...
Last Balance Update
7230
Warning! Contract bytecode has been changed and doesn't match the verified one. Therefore, interaction with this smart contract may be risky.
Contract name:
L2CrossTrade




Optimization enabled
true
Compiler version
v0.8.24+commit.e11b9ed9




Optimization runs
100000000
EVM Version
paris




Verified at
2024-07-16T04:57:24.072155Z

contracts/L2/L2CrossTrade.sol

Sol2uml
new
// SPDX-License-Identifier: Unlicense
pragma solidity 0.8.24;

import "../libraries/SafeERC20.sol";
import "../proxy/ProxyStorage.sol";

import { AccessibleCommon } from "../common/AccessibleCommon.sol";
import { L2CrossTradeStorage } from "./L2CrossTradeStorage.sol";
import { IOptimismMintableERC20, ILegacyMintableERC20 } from "../interfaces/IOptimismMintableERC20.sol";
import { IL2CrossDomainMessenger } from "../interfaces/IL2CrossDomainMessenger.sol";
import { ReentrancyGuard } from "../utils/ReentrancyGuard.sol";

// import "hardhat/console.sol";

contract L2CrossTrade is ProxyStorage, AccessibleCommon, L2CrossTradeStorage, ReentrancyGuard {

    using SafeERC20 for IERC20;

    event RequestCT(
        address _l1token,
        address _l2token,
        address _requester,
        uint256 _totalAmount,
        uint256 _ctAmount,
        uint256 indexed _saleCount,
        uint256 _l2chainId,
        bytes32 _hashValue
    );

    event NonRequestCT(
        address _l1token,
        address _l2token,
        address _requester,
        uint256 _totalAmount,
        uint256 _ctAmount,
        uint256 indexed _saleCount,
        uint256 _l2chainId,
        bytes32 _hashValue
    );

    event ProviderClaimCT(
        address _l1token,
        address _l2token,
        address _requester,
        address _provider,
        uint256 _totalAmount,
        uint256 _ctAmount,
        uint256 indexed _saleCount,
        uint256 _l2chainId
    );

    event CancelCT(
        address _requester,
        uint256 _totalAmount,
        uint256 indexed _saleCount,
        uint256 _l2chainId
    );

    // event EditCT(
    //     address _requester,
    //     uint256 _ctAmount,
    //     uint256 indexed _saleCount
    // );

    //=======modifier========

    modifier onlyEOA() {
        require(msg.sender == tx.origin, "L2FW: function can only be called from an EOA");
        _;
    }

    modifier checkL1(uint256 _chainId) {
        require(
            msg.sender == address(crossDomainMessenger) && IL2CrossDomainMessenger(crossDomainMessenger).xDomainMessageSender() == chainData[_chainId].l1CrossTradeContract, 
            "only call l1FastWithdraw"
        );
        _;
    }

    modifier providerCheck(uint256 _saleCount) {
        require(dealData[_saleCount].provider == address(0), "already sold");
        _;
    }

    modifier nonZero(uint256 _amount) {
        require(_amount > 0 , "input amount need nonZero");
        _;
    }

    // modifier nonZeroAddr(address _addr) {
    //     require(_addr != address(0) , "nonZeroAddr");
    //     _;
    // }

    //=======external========

    /// @notice Register L1token and L2token and use them in requestRegisteredToken
    /// @param _l1token l1token Address
    /// @param _l2token l2token Address
    /// @param _l1chainId chainId of l1token
    function registerToken(
        address _l1token,
        address _l2token,
        uint256 _l1chainId
    )
        external
        onlyOwner
    {
        require(registerCheck[_l1chainId][_l1token][_l2token] == false, "already registerToken");
        registerCheck[_l1chainId][_l1token][_l2token] = true;
    }
    
    /// @notice Function to delete registered token
    /// @param _l1token l1token Address
    /// @param _l2token l2token Address
    /// @param _l1chainId chainId of l1token
    function deleteToken(
        address _l1token,
        address _l2token,
        uint256 _l1chainId
    )
        external
        onlyOwner
    {
        require(registerCheck[_l1chainId][_l1token][_l2token] != false, "already deleteToken");
        registerCheck[_l1chainId][_l1token][_l2token] = false;
    }

    /// @notice Token transaction request registered in register
    /// @param _l1token l1token Address
    /// @param _l2token l2token Address
    /// @param _totalAmount Amount provided to L2
    /// @param _ctAmount Amount to be received from L1
    /// @param _l1chainId chainId of l1token
    function requestRegisteredToken(
        address _l1token,
        address _l2token,
        uint256 _totalAmount,
        uint256 _ctAmount,
        uint256 _l1chainId
    )
        external
        payable
        onlyEOA
        nonZero(_totalAmount)
        nonZero(_ctAmount)
        nonReentrant
    {
        require(registerCheck[_l1chainId][_l1token][_l2token] == true, "not register token");
        
        unchecked {
            ++saleCount;
        }

        bytes32 hashValue = _request(
            _l1token,
            _l2token,
            _totalAmount,
            _ctAmount,
            saleCount,
            _l1chainId
        );

        uint256 chainId = _getChainID();

        emit RequestCT(
            _l1token,
            _l2token,
            msg.sender,
            _totalAmount,
            _ctAmount,
            saleCount,
            chainId,
            hashValue
        );
    }

    /// @notice Token transaction request not registered in register
    /// @param _l1token l1token Address
    /// @param _l2token l2token Address
    /// @param _totalAmount Amount provided to L2
    /// @param _ctAmount Amount to be received from L1
    /// @param _l1chainId chainId of l1token
    function requestNonRegisteredToken(
        address _l1token,
        address _l2token,
        uint256 _totalAmount,
        uint256 _ctAmount,
        uint256 _l1chainId
    )
        external
        payable
        onlyEOA
        nonZero(_totalAmount)
        nonZero(_ctAmount)
        nonReentrant
    {        
        unchecked {
            ++saleCount;
        }

        bytes32 hashValue = _request(
            _l1token,
            _l2token,
            _totalAmount,
            _ctAmount,
            saleCount,
            _l1chainId
        );

        uint256 chainId = _getChainID();

        emit NonRequestCT(
            _l1token,
            _l2token,
            msg.sender,
            _totalAmount,
            _ctAmount,
            saleCount,
            chainId,
            hashValue
        );
    }
    
    /// @notice When providing a function called from L1, the amount is given to the provider.
    /// @param _from provider Address
    /// @param _ctAmount Amount paid by L1
    /// @param _saleCount Number generated upon request
    /// @param _chainId chainId of l1token
    /// @param _hash Hash value generated upon request
    function claimCT(
        address _from,
        uint256 _ctAmount,
        uint256 _saleCount,
        uint256 _chainId,
        bytes32 _hash
    )
        external
        nonReentrant
        checkL1(_chainId)
        providerCheck(_saleCount)
    {
        require(dealData[_saleCount].hashValue == _hash, "Hash values do not match");

        uint256 ctAmount;
        if(_ctAmount == 0) {
            ctAmount = dealData[_saleCount].ctAmount;
        } else {
            ctAmount = _ctAmount;
        }

        dealData[_saleCount].provider = _from;
        address l2token = dealData[_saleCount].l2token;
        uint256 totalAmount = dealData[_saleCount].totalAmount;

        if(l2token == legacyERC20ETH) {
            (bool sent, ) = payable(_from).call{value: totalAmount}("");
            require(sent, "claim fail");
        } else {
            IERC20(l2token).safeTransfer(_from,totalAmount);
        }

        uint256 chainId = _getChainID();

        emit ProviderClaimCT(
            dealData[_saleCount].l1token,
            l2token,
            dealData[_saleCount].requester,
            _from,
            totalAmount,
            ctAmount,
            _saleCount,
            chainId
        );
    }
    
    /// @notice When canceling a function called from L1, the amount is given to the requester.
    /// @param _msgSender Address where cancellation was requested
    /// @param _salecount Number generated upon request
    /// @param _chainId chainId of l1token
    function cancelCT(
        address _msgSender,
        uint256 _salecount,
        uint256 _chainId
    )
        external
        nonReentrant
        checkL1(_chainId)
        providerCheck(_salecount)
    {
        require(dealData[_salecount].requester == _msgSender, "your not seller");

        dealData[_salecount].provider = _msgSender;
        uint256 totalAmount = dealData[_salecount].totalAmount;
        
        if (dealData[_salecount].l2token == legacyERC20ETH) {
            (bool sent, ) = payable(_msgSender).call{value: totalAmount}("");
            require(sent, "cancel refund fail");
        } else {
            IERC20(dealData[_salecount].l2token).safeTransfer(_msgSender,totalAmount);
        }

        uint256 chainId = _getChainID();

        emit CancelCT(
            _msgSender, 
            totalAmount, 
            _salecount,
            chainId
        );
    }


    /// @notice Function that calculates hash value in L2CrossTradeContract
    /// @param _l1token l1token Address
    /// @param _l2token l2token Address
    /// @param _requestor requester's address
    /// @param _totalAmount Amount provided to L2
    /// @param _ctAmount Amount provided to L2
    /// @param _saleCount Number generated upon request
    /// @param _l1chainId chainId of l1token
    function getHash(
        address _l1token,
        address _l2token,
        address _requestor,
        uint256 _totalAmount,
        uint256 _ctAmount,
        uint256 _saleCount,
        uint256 _l1chainId
    )
        public
        view
        returns (bytes32)
    {
        uint256 l2chainId = _getChainID();
        return keccak256(
            abi.encode(
                _l1token, 
                _l2token, 
                _requestor, 
                _totalAmount, 
                _ctAmount, 
                _saleCount, 
                _l1chainId, 
                l2chainId
            )
        );
    }

    // //=======Temporary view for testing ========
    // function getChainID() public view returns (uint256 id) {
    //     assembly {
    //         id := chainid()
    //     }
    // }

    //=======internal========

    /// @notice Function to calculate l1token, l2token register hash value
    function _getChainID() private view returns (uint256 id) {
        assembly {
            id := chainid()
        }
    }

    /// @notice Token transaction request
    /// @param _l1token l1token Address
    /// @param _l2token l2token Address
    /// @param _totalAmount Amount provided to L2
    /// @param _ctAmount Amount to be received from L1
    /// @param _saleCount Number generated upon request
    /// @param _l1chainId chainId of l1token
    function _request(
        address _l1token,
        address _l2token,
        uint256 _totalAmount,
        uint256 _ctAmount,
        uint256 _saleCount,
        uint256 _l1chainId
    )
        private
        returns (bytes32 hashValue)
    {
        if (_l2token == legacyERC20ETH) {
            require(msg.value == _totalAmount, "CT: nativeTON need amount");
        } else {
            IERC20(_l2token).safeTransferFrom(msg.sender,address(this),_totalAmount);
        }

        hashValue = getHash(
            _l1token,
            _l2token,
            msg.sender,
            _totalAmount,
            _ctAmount,
            _saleCount,
            _l1chainId
        );

        dealData[_saleCount] = RequestData({
            l1token: _l1token,
            l2token: _l2token,
            requester: msg.sender,
            provider: address(0),
            totalAmount: _totalAmount,
            ctAmount: _ctAmount,
            chainId: _l1chainId,
            hashValue: hashValue
        });

    }
}
        

@openzeppelin/contracts/access/AccessControl.sol

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (access/AccessControl.sol)

pragma solidity ^0.8.20;

import {IAccessControl} from "./IAccessControl.sol";
import {Context} from "../utils/Context.sol";
import {ERC165} from "../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 account => bool) hasRole;
        bytes32 adminRole;
    }

    mapping(bytes32 role => RoleData) private _roles;

    bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00;

    /**
     * @dev Modifier that checks that an account has a specific role. Reverts
     * with an {AccessControlUnauthorizedAccount} error including the required role.
     */
    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 returns (bool) {
        return _roles[role].hasRole[account];
    }

    /**
     * @dev Reverts with an {AccessControlUnauthorizedAccount} error if `_msgSender()`
     * is missing `role`. Overriding this function changes the behavior of the {onlyRole} modifier.
     */
    function _checkRole(bytes32 role) internal view virtual {
        _checkRole(role, _msgSender());
    }

    /**
     * @dev Reverts with an {AccessControlUnauthorizedAccount} error if `account`
     * is missing `role`.
     */
    function _checkRole(bytes32 role, address account) internal view virtual {
        if (!hasRole(role, account)) {
            revert AccessControlUnauthorizedAccount(account, role);
        }
    }

    /**
     * @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 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 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 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 `callerConfirmation`.
     *
     * May emit a {RoleRevoked} event.
     */
    function renounceRole(bytes32 role, address callerConfirmation) public virtual {
        if (callerConfirmation != _msgSender()) {
            revert AccessControlBadConfirmation();
        }

        _revokeRole(role, callerConfirmation);
    }

    /**
     * @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 Attempts to grant `role` to `account` and returns a boolean indicating if `role` was granted.
     *
     * Internal function without access restriction.
     *
     * May emit a {RoleGranted} event.
     */
    function _grantRole(bytes32 role, address account) internal virtual returns (bool) {
        if (!hasRole(role, account)) {
            _roles[role].hasRole[account] = true;
            emit RoleGranted(role, account, _msgSender());
            return true;
        } else {
            return false;
        }
    }

    /**
     * @dev Attempts to revoke `role` to `account` and returns a boolean indicating if `role` was revoked.
     *
     * Internal function without access restriction.
     *
     * May emit a {RoleRevoked} event.
     */
    function _revokeRole(bytes32 role, address account) internal virtual returns (bool) {
        if (hasRole(role, account)) {
            _roles[role].hasRole[account] = false;
            emit RoleRevoked(role, account, _msgSender());
            return true;
        } else {
            return false;
        }
    }
}
          

@openzeppelin/contracts/access/IAccessControl.sol

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (access/IAccessControl.sol)

pragma solidity ^0.8.20;

/**
 * @dev External interface of AccessControl declared to support ERC165 detection.
 */
interface IAccessControl {
    /**
     * @dev The `account` is missing a role.
     */
    error AccessControlUnauthorizedAccount(address account, bytes32 neededRole);

    /**
     * @dev The caller of a function is not the expected one.
     *
     * NOTE: Don't confuse with {AccessControlUnauthorizedAccount}.
     */
    error AccessControlBadConfirmation();

    /**
     * @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.
     */
    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 `callerConfirmation`.
     */
    function renounceRole(bytes32 role, address callerConfirmation) external;
}
          

@openzeppelin/contracts/utils/Context.sol

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)

pragma solidity ^0.8.20;

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

    function _contextSuffixLength() internal view virtual returns (uint256) {
        return 0;
    }
}
          

@openzeppelin/contracts/utils/introspection/ERC165.sol

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/introspection/ERC165.sol)

pragma solidity ^0.8.20;

import {IERC165} from "./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);
 * }
 * ```
 */
abstract contract ERC165 is IERC165 {
    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual returns (bool) {
        return interfaceId == type(IERC165).interfaceId;
    }
}
          

@openzeppelin/contracts/utils/introspection/IERC165.sol

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/introspection/IERC165.sol)

pragma solidity ^0.8.20;

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

contracts/L2/L2CrossTradeStorage.sol

// SPDX-License-Identifier: Unlicense
pragma solidity 0.8.24;

contract L2CrossTradeStorage {
    struct RequestData {
        address l1token;
        address l2token;
        address requester;
        address provider;
        uint256 totalAmount;
        uint256 ctAmount;
        uint256 chainId;
        bytes32 hashValue;
    }

    struct ChainIdData {
        address l1CrossTradeContract;
        address l1TON;
    }

    address public crossDomainMessenger;
    address public legacyERC20ETH;

    uint256 public saleCount;

    //saleCount => ChainData
    mapping(uint256 => RequestData) public dealData;
    mapping(uint256 => mapping(address => mapping(address => bool))) public registerCheck;
    
    //chainId => ChainData
    mapping(uint256 => ChainIdData) public chainData;

}
          

contracts/common/AccessRoleCommon.sol

// SPDX-License-Identifier: MIT
pragma solidity ^0.8.15;

contract AccessRoleCommon {
    bytes32 public constant ADMIN_ROLE = keccak256("ADMIN");
    bytes32 public constant POLICY_ROLE = keccak256("POLICY_ROLE");
}
          

contracts/common/AccessibleCommon.sol

// SPDX-License-Identifier: MIT
pragma solidity ^0.8.15;

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

contract AccessibleCommon is AccessRoleCommon, AccessControl {
    modifier onlyOwner() {
        require(isAdmin(msg.sender), "Accessible: Caller is not an admin");
        _;
    }

    /// @dev add admin
    /// @param account  address to add
    function addAdmin(address account) public virtual onlyOwner {
        grantRole(ADMIN_ROLE, account);
    }

    /// @dev remove admin
    /// @param account  address to remove
    function removeAdmin(address account) public virtual onlyOwner {
        renounceRole(ADMIN_ROLE, account);
    }

    /// @dev transfer admin
    /// @param newAdmin new admin address
    function transferAdmin(address newAdmin) external virtual onlyOwner {
        require(newAdmin != address(0), "Accessible: zero address");
        require(msg.sender != newAdmin, "Accessible: same admin");

        grantRole(ADMIN_ROLE, newAdmin);
        renounceRole(ADMIN_ROLE, msg.sender);
    }

    /// @dev whether admin
    /// @param account  address to check
    function isAdmin(address account) public view virtual returns (bool) {
        return hasRole(ADMIN_ROLE, account);
    }
}
          

contracts/interfaces/IERC20.sol

// SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;

interface IERC20 {
    function totalSupply() external view returns (uint256);

    function balanceOf(address account) external view returns (uint256);

    function transfer(address recipient, uint256 amount) external returns (bool);

    function allowance(address owner, address spender) external view returns (uint256);

    function approve(address spender, uint256 amount) external returns (bool);

    function transferFrom(
        address sender,
        address recipient,
        uint256 amount
    ) external returns (bool);

    function mint(address account, uint256 amount) external returns (bool);

    function burn(address account, uint256 amount) external returns (bool);

    event Transfer(address indexed from, address indexed to, uint256 value);

    event Approval(address indexed owner, address indexed spender, uint256 value);
}
          

contracts/interfaces/IL2CrossDomainMessenger.sol

// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

interface IL2CrossDomainMessenger {
    function xDomainMessageSender() 
        external 
        view 
        returns (address);
}
          

contracts/interfaces/IOptimismMintableERC20.sol

// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

import { IERC165 } from "@openzeppelin/contracts/utils/introspection/IERC165.sol";

/// @title IOptimismMintableERC20
/// @notice This interface is available on the OptimismMintableERC20 contract.
///         We declare it as a separate interface so that it can be used in
///         custom implementations of OptimismMintableERC20.
interface IOptimismMintableERC20 is IERC165 {
    function remoteToken() external view returns (address);

    function bridge() external returns (address);

    function mint(address _to, uint256 _amount) external;

    function burn(address _from, uint256 _amount) external;
}

/// @custom:legacy
/// @title ILegacyMintableERC20
/// @notice This interface was available on the legacy L2StandardERC20 contract.
///         It remains available on the OptimismMintableERC20 contract for
///         backwards compatibility.
interface ILegacyMintableERC20 is IERC165 {
    function l1Token() external view returns (address);

    function mint(address _to, uint256 _amount) external;

    function burn(address _from, uint256 _amount) external;
}
          

contracts/libraries/SafeERC20.sol

// SPDX-License-Identifier: AGPL-3.0-only
pragma solidity >=0.7.5;

import {IERC20} from "../interfaces/IERC20.sol";

/// @notice Safe IERC20 and ETH transfer library that safely handles missing return values.
/// @author Modified from Uniswap (https://github.com/Uniswap/uniswap-v3-periphery/blob/main/contracts/libraries/TransferHelper.sol)
/// Taken from Solmate
library SafeERC20 {
    function safeTransferFrom(
        IERC20 token,
        address from,
        address to,
        uint256 amount
    ) internal {
        (bool success, bytes memory data) = address(token).call(
            abi.encodeWithSelector(IERC20.transferFrom.selector, from, to, amount)
        );

        require(success && (data.length == 0 || abi.decode(data, (bool))), "TRANSFER_FROM_FAILED");
    }

    function safeTransfer(
        IERC20 token,
        address to,
        uint256 amount
    ) internal {
        (bool success, bytes memory data) = address(token).call(
            abi.encodeWithSelector(IERC20.transfer.selector, to, amount)
        );

        require(success && (data.length == 0 || abi.decode(data, (bool))), "TRANSFER_FAILED");
    }

    function safeApprove(
        IERC20 token,
        address to,
        uint256 amount
    ) internal {
        (bool success, bytes memory data) = address(token).call(
            abi.encodeWithSelector(IERC20.approve.selector, to, amount)
        );

        require(success && (data.length == 0 || abi.decode(data, (bool))), "APPROVE_FAILED");
    }

    function safeTransferETH(address to, uint256 amount) internal {
        (bool success, ) = to.call{value: amount}(new bytes(0));

        require(success, "ETH_TRANSFER_FAILED");
    }
}
          

contracts/proxy/ProxyStorage.sol

//SPDX-License-Identifier: Unlicense
pragma solidity ^0.8.20;

contract ProxyStorage  {

    bool public pauseProxy;

    mapping(uint256 => address) public proxyImplementation;
    mapping(address => bool) public aliveImplementation;
    mapping(bytes4 => address) public selectorImplementation;

}
          

contracts/utils/ReentrancyGuard.sol

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/ReentrancyGuard.sol)

pragma solidity ^0.8.20;

/**
 * @dev Contract module that helps prevent reentrant calls to a function.
 *
 * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier
 * available, which can be applied to functions to make sure there are no nested
 * (reentrant) calls to them.
 *
 * Note that because there is a single `nonReentrant` guard, functions marked as
 * `nonReentrant` may not call one another. This can be worked around by making
 * those functions `private`, and then adding `external` `nonReentrant` entry
 * points to them.
 *
 * TIP: If EIP-1153 (transient storage) is available on the chain you're deploying at,
 * consider using {ReentrancyGuardTransient} instead.
 *
 * TIP: If you would like to learn more about reentrancy and alternative ways
 * to protect against it, check out our blog post
 * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].
 */
abstract contract ReentrancyGuard {
    // Booleans are more expensive than uint256 or any type that takes up a full
    // word because each write operation emits an extra SLOAD to first read the
    // slot's contents, replace the bits taken up by the boolean, and then write
    // back. This is the compiler's defense against contract upgrades and
    // pointer aliasing, and it cannot be disabled.

    // The values being non-zero value makes deployment a bit more expensive,
    // but in exchange the refund on every call to nonReentrant will be lower in
    // amount. Since refunds are capped to a percentage of the total
    // transaction's gas, it is best to keep them low in cases like this one, to
    // increase the likelihood of the full refund coming into effect.
    uint256 private constant NOT_ENTERED = 1;
    uint256 private constant ENTERED = 2;

    uint256 private _status;

    /**
     * @dev Unauthorized reentrant call.
     */
    error ReentrancyGuardReentrantCall();

    constructor() {
        _status = NOT_ENTERED;
    }

    /**
     * @dev Prevents a contract from calling itself, directly or indirectly.
     * Calling a `nonReentrant` function from another `nonReentrant`
     * function is not supported. It is possible to prevent this from happening
     * by making the `nonReentrant` function external, and making it call a
     * `private` function that does the actual work.
     */
    modifier nonReentrant() {
        _nonReentrantBefore();
        _;
        _nonReentrantAfter();
    }

    function _nonReentrantBefore() private {
        // On the first call to nonReentrant, _status will be NOT_ENTERED
        if (_status == ENTERED) {
            revert ReentrancyGuardReentrantCall();
        }

        // Any calls to nonReentrant after this point will fail
        _status = ENTERED;
    }

    function _nonReentrantAfter() private {
        // By storing the original value once again, a refund is triggered (see
        // https://eips.ethereum.org/EIPS/eip-2200)
        _status = NOT_ENTERED;
    }

    /**
     * @dev Returns true if the reentrancy guard is currently set to "entered", which indicates there is a
     * `nonReentrant` function in the call stack.
     */
    function _reentrancyGuardEntered() internal view returns (bool) {
        return _status == ENTERED;
    }
}
          

Compiler Settings

{"viaIR":true,"outputSelection":{"*":{"*":["abi","evm.bytecode","evm.deployedBytecode","evm.methodIdentifiers","metadata"],"":["ast"]}},"optimizer":{"runs":100000000,"enabled":true,"details":{"yul":true}},"libraries":{},"evmVersion":"paris"}
              

Contract ABI

[{"type":"error","name":"AccessControlBadConfirmation","inputs":[]},{"type":"error","name":"AccessControlUnauthorizedAccount","inputs":[{"type":"address","name":"account","internalType":"address"},{"type":"bytes32","name":"neededRole","internalType":"bytes32"}]},{"type":"error","name":"ReentrancyGuardReentrantCall","inputs":[]},{"type":"event","name":"CancelCT","inputs":[{"type":"address","name":"_requester","internalType":"address","indexed":false},{"type":"uint256","name":"_totalAmount","internalType":"uint256","indexed":false},{"type":"uint256","name":"_saleCount","internalType":"uint256","indexed":true},{"type":"uint256","name":"_l2chainId","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"NonRequestCT","inputs":[{"type":"address","name":"_l1token","internalType":"address","indexed":false},{"type":"address","name":"_l2token","internalType":"address","indexed":false},{"type":"address","name":"_requester","internalType":"address","indexed":false},{"type":"uint256","name":"_totalAmount","internalType":"uint256","indexed":false},{"type":"uint256","name":"_ctAmount","internalType":"uint256","indexed":false},{"type":"uint256","name":"_saleCount","internalType":"uint256","indexed":true},{"type":"uint256","name":"_l2chainId","internalType":"uint256","indexed":false},{"type":"bytes32","name":"_hashValue","internalType":"bytes32","indexed":false}],"anonymous":false},{"type":"event","name":"ProviderClaimCT","inputs":[{"type":"address","name":"_l1token","internalType":"address","indexed":false},{"type":"address","name":"_l2token","internalType":"address","indexed":false},{"type":"address","name":"_requester","internalType":"address","indexed":false},{"type":"address","name":"_provider","internalType":"address","indexed":false},{"type":"uint256","name":"_totalAmount","internalType":"uint256","indexed":false},{"type":"uint256","name":"_ctAmount","internalType":"uint256","indexed":false},{"type":"uint256","name":"_saleCount","internalType":"uint256","indexed":true},{"type":"uint256","name":"_l2chainId","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"RequestCT","inputs":[{"type":"address","name":"_l1token","internalType":"address","indexed":false},{"type":"address","name":"_l2token","internalType":"address","indexed":false},{"type":"address","name":"_requester","internalType":"address","indexed":false},{"type":"uint256","name":"_totalAmount","internalType":"uint256","indexed":false},{"type":"uint256","name":"_ctAmount","internalType":"uint256","indexed":false},{"type":"uint256","name":"_saleCount","internalType":"uint256","indexed":true},{"type":"uint256","name":"_l2chainId","internalType":"uint256","indexed":false},{"type":"bytes32","name":"_hashValue","internalType":"bytes32","indexed":false}],"anonymous":false},{"type":"event","name":"RoleAdminChanged","inputs":[{"type":"bytes32","name":"role","internalType":"bytes32","indexed":true},{"type":"bytes32","name":"previousAdminRole","internalType":"bytes32","indexed":true},{"type":"bytes32","name":"newAdminRole","internalType":"bytes32","indexed":true}],"anonymous":false},{"type":"event","name":"RoleGranted","inputs":[{"type":"bytes32","name":"role","internalType":"bytes32","indexed":true},{"type":"address","name":"account","internalType":"address","indexed":true},{"type":"address","name":"sender","internalType":"address","indexed":true}],"anonymous":false},{"type":"event","name":"RoleRevoked","inputs":[{"type":"bytes32","name":"role","internalType":"bytes32","indexed":true},{"type":"address","name":"account","internalType":"address","indexed":true},{"type":"address","name":"sender","internalType":"address","indexed":true}],"anonymous":false},{"type":"function","stateMutability":"view","outputs":[{"type":"bytes32","name":"","internalType":"bytes32"}],"name":"ADMIN_ROLE","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"bytes32","name":"","internalType":"bytes32"}],"name":"DEFAULT_ADMIN_ROLE","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"bytes32","name":"","internalType":"bytes32"}],"name":"POLICY_ROLE","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"addAdmin","inputs":[{"type":"address","name":"account","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"aliveImplementation","inputs":[{"type":"address","name":"","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"cancelCT","inputs":[{"type":"address","name":"_msgSender","internalType":"address"},{"type":"uint256","name":"_salecount","internalType":"uint256"},{"type":"uint256","name":"_chainId","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"l1CrossTradeContract","internalType":"address"},{"type":"address","name":"l1TON","internalType":"address"}],"name":"chainData","inputs":[{"type":"uint256","name":"","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"claimCT","inputs":[{"type":"address","name":"_from","internalType":"address"},{"type":"uint256","name":"_ctAmount","internalType":"uint256"},{"type":"uint256","name":"_saleCount","internalType":"uint256"},{"type":"uint256","name":"_chainId","internalType":"uint256"},{"type":"bytes32","name":"_hash","internalType":"bytes32"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"crossDomainMessenger","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"l1token","internalType":"address"},{"type":"address","name":"l2token","internalType":"address"},{"type":"address","name":"requester","internalType":"address"},{"type":"address","name":"provider","internalType":"address"},{"type":"uint256","name":"totalAmount","internalType":"uint256"},{"type":"uint256","name":"ctAmount","internalType":"uint256"},{"type":"uint256","name":"chainId","internalType":"uint256"},{"type":"bytes32","name":"hashValue","internalType":"bytes32"}],"name":"dealData","inputs":[{"type":"uint256","name":"","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"deleteToken","inputs":[{"type":"address","name":"_l1token","internalType":"address"},{"type":"address","name":"_l2token","internalType":"address"},{"type":"uint256","name":"_l1chainId","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"bytes32","name":"","internalType":"bytes32"}],"name":"getHash","inputs":[{"type":"address","name":"_l1token","internalType":"address"},{"type":"address","name":"_l2token","internalType":"address"},{"type":"address","name":"_requestor","internalType":"address"},{"type":"uint256","name":"_totalAmount","internalType":"uint256"},{"type":"uint256","name":"_ctAmount","internalType":"uint256"},{"type":"uint256","name":"_saleCount","internalType":"uint256"},{"type":"uint256","name":"_l1chainId","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"bytes32","name":"","internalType":"bytes32"}],"name":"getRoleAdmin","inputs":[{"type":"bytes32","name":"role","internalType":"bytes32"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"grantRole","inputs":[{"type":"bytes32","name":"role","internalType":"bytes32"},{"type":"address","name":"account","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"hasRole","inputs":[{"type":"bytes32","name":"role","internalType":"bytes32"},{"type":"address","name":"account","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"isAdmin","inputs":[{"type":"address","name":"account","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"legacyERC20ETH","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"pauseProxy","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"proxyImplementation","inputs":[{"type":"uint256","name":"","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"registerCheck","inputs":[{"type":"uint256","name":"","internalType":"uint256"},{"type":"address","name":"","internalType":"address"},{"type":"address","name":"","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"registerToken","inputs":[{"type":"address","name":"_l1token","internalType":"address"},{"type":"address","name":"_l2token","internalType":"address"},{"type":"uint256","name":"_l1chainId","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"removeAdmin","inputs":[{"type":"address","name":"account","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"renounceRole","inputs":[{"type":"bytes32","name":"role","internalType":"bytes32"},{"type":"address","name":"callerConfirmation","internalType":"address"}]},{"type":"function","stateMutability":"payable","outputs":[],"name":"requestNonRegisteredToken","inputs":[{"type":"address","name":"_l1token","internalType":"address"},{"type":"address","name":"_l2token","internalType":"address"},{"type":"uint256","name":"_totalAmount","internalType":"uint256"},{"type":"uint256","name":"_ctAmount","internalType":"uint256"},{"type":"uint256","name":"_l1chainId","internalType":"uint256"}]},{"type":"function","stateMutability":"payable","outputs":[],"name":"requestRegisteredToken","inputs":[{"type":"address","name":"_l1token","internalType":"address"},{"type":"address","name":"_l2token","internalType":"address"},{"type":"uint256","name":"_totalAmount","internalType":"uint256"},{"type":"uint256","name":"_ctAmount","internalType":"uint256"},{"type":"uint256","name":"_l1chainId","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"revokeRole","inputs":[{"type":"bytes32","name":"role","internalType":"bytes32"},{"type":"address","name":"account","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"saleCount","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"selectorImplementation","inputs":[{"type":"bytes4","name":"","internalType":"bytes4"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"supportsInterface","inputs":[{"type":"bytes4","name":"interfaceId","internalType":"bytes4"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"transferAdmin","inputs":[{"type":"address","name":"newAdmin","internalType":"address"}]}]
              

Contract Creation Code

0x6080806040523461001b576001600b556123ac90816100218239f35b600080fdfe6080604081815260048036101561001557600080fd5b600092833560e01c90816301ffc9a714611618575080630f377395146112fd57806316e01724146112aa5780631785f53c1461122b57806322985246146111d2578063248a9ca31461118b57806324d7806c146110fc5780632f2ff15d146110b457806336568abe146110295780634bb04f8214610fbd57806350d2a27614610f38578063550d01a314610ed157806363a8fd8914610e915780637048027514610e0157806375829def14610c8057806375b238fc14610c2757806380ada3451461094b57806381f331da1461082f5780638800867b146107ac57806391d148541461073d5780639792f8d71461060d578063a1e89aec146105d0578063a217fddf14610597578063b6f7134b14610465578063b911135f1461040a578063d547741f146103ae578063ddf0cbf4146102dc578063e59f69c214610275578063f43b36131461021e5763f5869c2f1461016d57600080fd5b3461021a5760207ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261021a5781610100938235815260086020522073ffffffffffffffffffffffffffffffffffffffff9283825416938060018401541693816002850154169160038501541690840154916005850154936007600687015496015496815198895260208901528701526060860152608085015260a084015260c083015260e0820152f35b8280fd5b50503461027157817ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126102715760209073ffffffffffffffffffffffffffffffffffffffff600554169051908152f35b5080fd5b503461021a5760207ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261021a57918192358152600a6020522073ffffffffffffffffffffffffffffffffffffffff6001818354169201541682519182526020820152f35b50507f9234c0bc9ec97c418266f9342cc42597ee66dc6f1c718161a25a8b8ba660d3e76103a361035161030e36611743565b61032096949591939296323314611b23565b61032b871515611bae565b610336841515611bae565b61033e611c13565b60016007540180600755848885896120e0565b600754975173ffffffffffffffffffffffffffffffffffffffff9586168152919094166020820152336040820152606081019490945260808401524660a084015260c0830191909152819060e0820190565b0390a26001600b5580f35b503461021a57817ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261021a576104069161040160018335926103f16116fd565b9484885260205286200154611d84565b61203d565b5080f35b503461021a5760207ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261021a578160209373ffffffffffffffffffffffffffffffffffffffff92358152600185522054169051908152f35b503461021a57610474366117ab565b7fdf8b4c520ffe197c5343c6f5aec59570151ef9a492f2c624fd45ddde6135ec4286949392945260209280845285872033885284526104b860ff87892054166119cf565b818752600984528587209273ffffffffffffffffffffffffffffffffffffffff809116938489528552868820951694858852845260ff868820541661053b5750855260098252838520908552815282842091845252812060017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0082541617905580f35b606490848751917f08c379a0000000000000000000000000000000000000000000000000000000008352820152601560248201527f616c7265616479207265676973746572546f6b656e00000000000000000000006044820152fd5b50503461027157817ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126102715751908152602090f35b50503461027157817ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc360112610271576020906007549051908152f35b503461021a5761061c366117ab565b7fdf8b4c520ffe197c5343c6f5aec59570151ef9a492f2c624fd45ddde6135ec42869493929452602092808452858720338852845261066060ff87892054166119cf565b818752600984528587209273ffffffffffffffffffffffffffffffffffffffff809116938489528552868820951694858852845260ff8688205416156106e1575085526009825283852090855281528284209184525281207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00815416905580f35b606490848751917f08c379a0000000000000000000000000000000000000000000000000000000008352820152601360248201527f616c72656164792064656c657465546f6b656e000000000000000000000000006044820152fd5b503461021a57817ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261021a578160209360ff9261077b6116fd565b9080358352865273ffffffffffffffffffffffffffffffffffffffff83832091168252855220541690519015158152f35b503461021a5760607ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261021a578160209360ff926107eb6116fd565b6107f3611720565b913583526009875283832073ffffffffffffffffffffffffffffffffffffffff8092168452875283832091168252855220541690519015158152f35b50919061083b36611743565b909661084c94939294323314611b23565b610857851515611bae565b610862881515611bae565b61086a611c13565b818752600960205285872073ffffffffffffffffffffffffffffffffffffffff9081861689526020528688209084168852602052600160ff87892054161515036108ee5750956103a3916103517f4ed7594528ea467b40aa40eeff1ebf7a53cd3771da17f533517dcd207b18b07796979860016007540180600755848885896120e0565b60649060208751917f08c379a0000000000000000000000000000000000000000000000000000000008352820152601260248201527f6e6f7420726567697374657220746f6b656e00000000000000000000000000006044820152fd5b50903461021a5760607ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261021a576109846116d5565b9060243592610991611c13565b73ffffffffffffffffffffffffffffffffffffffff908082600554168033149081610b90575b506109c291506118a7565b848652602090600882526109de836003868a200154161561190c565b8587526008825282600285892001541694838116809603610b3457868852600883528488209360038501877fffffffffffffffffffffffff0000000000000000000000000000000000000000825416179055806001848701549601541690600654168114600014610afb5750508680808086895af1610a5b611971565b5015610aa05750917f450d6c9754cd9320f50503ddda52c5fc862b436387398efa559dfd5021b593da93916060935b82519384528301524690820152a26001600b5580f35b6064918451917f08c379a0000000000000000000000000000000000000000000000000000000008352820152601260248201527f63616e63656c20726566756e64206661696c00000000000000000000000000006044820152fd5b847f450d6c9754cd9320f50503ddda52c5fc862b436387398efa559dfd5021b593da979593506060969492610b2f92611c66565b610a8a565b506064918451917f08c379a0000000000000000000000000000000000000000000000000000000008352820152600f60248201527f796f7572206e6f742073656c6c657200000000000000000000000000000000006044820152fd5b602091508551928380927f6e296e450000000000000000000000000000000000000000000000000000000082525afa908115610c1d57906109c2918891610bee575b506044358852600a6020528380868a20541691161482916109b7565b610c10915060203d602011610c16575b610c08818361180b565b81019061187b565b38610bd2565b503d610bfe565b84513d89823e3d90fd5b50503461027157817ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261027157602090517fdf8b4c520ffe197c5343c6f5aec59570151ef9a492f2c624fd45ddde6135ec428152f35b5082903461027157602090817ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261021a57610cbc6116d5565b917fdf8b4c520ffe197c5343c6f5aec59570151ef9a492f2c624fd45ddde6135ec428085528282528585203386528252610cfb60ff87872054166119cf565b73ffffffffffffffffffffffffffffffffffffffff84168015610da5573314610d495794610d37926001928697610d3c97525285200154611d84565b611de1565b50610d4633611a5a565b80f35b606483838851917f08c379a0000000000000000000000000000000000000000000000000000000008352820152601660248201527f41636365737369626c653a2073616d652061646d696e000000000000000000006044820152fd5b606484848951917f08c379a0000000000000000000000000000000000000000000000000000000008352820152601860248201527f41636365737369626c653a207a65726f206164647265737300000000000000006044820152fd5b503461021a5760207ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261021a57610d37600161040693610e426116d5565b937fdf8b4c520ffe197c5343c6f5aec59570151ef9a492f2c624fd45ddde6135ec4280885281602052828820338952602052610e8360ff848a2054166119cf565b875260205285200154611d84565b50503461027157817ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126102715760ff602092541690519015158152f35b5050346102715760207ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126102715760ff8160209373ffffffffffffffffffffffffffffffffffffffff610f256116d5565b1681526002855220541690519015158152f35b503461021a5760207ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261021a57357fffffffff00000000000000000000000000000000000000000000000000000000811680910361021a57818373ffffffffffffffffffffffffffffffffffffffff9260209552600385522054169051908152f35b5050346102715760e07ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261027157602090611022610ffc6116d5565b6110046116fd565b61100c611720565b9060c4359260a435926084359260643592611aad565b9051908152f35b5091903461027157807ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc360112610271576110626116fd565b903373ffffffffffffffffffffffffffffffffffffffff83160361108c575061040691923561203d565b8390517f6697b232000000000000000000000000000000000000000000000000000000008152fd5b503461021a57817ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261021a57610406916110f760018335926103f16116fd565b611ebf565b503461021a5760207ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261021a578160209360ff9261113b6116d5565b907fdf8b4c520ffe197c5343c6f5aec59570151ef9a492f2c624fd45ddde6135ec428352865273ffffffffffffffffffffffffffffffffffffffff83832091168252855220541690519015158152f35b503461021a5760207ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261021a57816020938260019335825285522001549051908152f35b50503461027157817ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261027157602090517ffb5864e8ff833c3cb2d2d08505e82ff02a43554c74a35d4f5a64e852612783118152f35b503461021a5760207ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261021a576112a560ff610d469361126c6116d5565b937fdf8b4c520ffe197c5343c6f5aec59570151ef9a492f2c624fd45ddde6135ec428752602052808620338752602052852054166119cf565b611a5a565b50503461027157817ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126102715760209073ffffffffffffffffffffffffffffffffffffffff600654169051908152f35b50903461021a5760a07ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261021a576113366116d5565b906024359160443593611347611c13565b73ffffffffffffffffffffffffffffffffffffffff938185600554168033149081611591575b5061137891506118a7565b85875260209060088252611394866003878b200154161561190c565b868852600882526084356007868a20015403611535578061152f57508587526008815260058488200154935b86885260088252808820600381019387861694857fffffffffffffffffffffffff0000000000000000000000000000000000000000825416179055808860018401541692015495886006541683146000146114f357508980808089895af1611426611971565b501561149757509160e09593917f22e91517e0cc4eccf7ead3eadccfd6588a87f1204e7568e20e149a68c73235b69795935b898b5260088352818b2096600281895416980154169282519788528701528501526060840152608083015260a08201524660c0820152a26001600b5580f35b606490848451917f08c379a0000000000000000000000000000000000000000000000000000000008352820152600a60248201527f636c61696d206661696c000000000000000000000000000000000000000000006044820152fd5b60e097959391509161152a877f22e91517e0cc4eccf7ead3eadccfd6588a87f1204e7568e20e149a68c73235b69a98969483611c66565b611458565b936113c0565b606483838751917f08c379a0000000000000000000000000000000000000000000000000000000008352820152601860248201527f486173682076616c75657320646f206e6f74206d6174636800000000000000006044820152fd5b602091508651928380927f6e296e450000000000000000000000000000000000000000000000000000000082525afa90811561160e57906113789189916115ef575b506064358952600a6020528680878b205416911614839161136d565b611608915060203d602011610c1657610c08818361180b565b386115d3565b85513d8a823e3d90fd5b9250503461021a5760207ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261021a57357fffffffff00000000000000000000000000000000000000000000000000000000811680910361021a57602092507f7965db0b0000000000000000000000000000000000000000000000000000000081149081156116ab575b5015158152f35b7f01ffc9a700000000000000000000000000000000000000000000000000000000915014386116a4565b6004359073ffffffffffffffffffffffffffffffffffffffff821682036116f857565b600080fd5b6024359073ffffffffffffffffffffffffffffffffffffffff821682036116f857565b6044359073ffffffffffffffffffffffffffffffffffffffff821682036116f857565b7ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc60a09101126116f85773ffffffffffffffffffffffffffffffffffffffff9060043582811681036116f8579160243590811681036116f85790604435906064359060843590565b7ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc60609101126116f85773ffffffffffffffffffffffffffffffffffffffff9060043582811681036116f8579160243590811681036116f8579060443590565b90601f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0910116810190811067ffffffffffffffff82111761184c57604052565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b908160209103126116f8575173ffffffffffffffffffffffffffffffffffffffff811681036116f85790565b156118ae57565b60646040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f6f6e6c792063616c6c206c3146617374576974686472617700000000000000006044820152fd5b1561191357565b60646040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600c60248201527f616c726561647920736f6c6400000000000000000000000000000000000000006044820152fd5b3d156119ca573d9067ffffffffffffffff821161184c57604051916119be60207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f840116018461180b565b82523d6000602084013e565b606090565b156119d657565b60846040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602260248201527f41636365737369626c653a2043616c6c6572206973206e6f7420616e2061646d60448201527f696e0000000000000000000000000000000000000000000000000000000000006064820152fd5b3373ffffffffffffffffffffffffffffffffffffffff821603611a8357611a8090611f66565b50565b60046040517f6697b232000000000000000000000000000000000000000000000000000000008152fd5b95939194929060405195602087019773ffffffffffffffffffffffffffffffffffffffff92838092168a52166040880152166060860152608085015260a084015260c083015260e082015261010046818301528152610120810181811067ffffffffffffffff82111761184c5760405251902090565b15611b2a57565b60846040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602d60248201527f4c3246573a2066756e6374696f6e2063616e206f6e6c792062652063616c6c6560448201527f642066726f6d20616e20454f41000000000000000000000000000000000000006064820152fd5b15611bb557565b60646040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601960248201527f696e70757420616d6f756e74206e656564206e6f6e5a65726f000000000000006044820152fd5b6002600b5414611c24576002600b55565b60046040517f3ee5aeb5000000000000000000000000000000000000000000000000000000008152fd5b908160209103126116f8575180151581036116f85790565b91909173ffffffffffffffffffffffffffffffffffffffff92604051928460208501927fa9059cbb0000000000000000000000000000000000000000000000000000000084521660248501526044840152604483526080830183811067ffffffffffffffff82111761184c57600094859485926040525193165af1611ce9611971565b81611d55575b5015611cf757565b60646040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600f60248201527f5452414e534645525f4641494c454400000000000000000000000000000000006044820152fd5b8051801592508215611d6a575b505038611cef565b611d7d9250602080918301019101611c4e565b3880611d62565b80600052600460205260406000203360005260205260ff6040600020541615611daa5750565b604490604051907fe2517d3f0000000000000000000000000000000000000000000000000000000082523360048301526024820152fd5b73ffffffffffffffffffffffffffffffffffffffff1660008181527f2fb794d17134dfdec181ddbac1babb5ab1eb140204ef4d982f294e7fc8b6902260205260408120549091907fdf8b4c520ffe197c5343c6f5aec59570151ef9a492f2c624fd45ddde6135ec429060ff16611eba578083526004602052604083208284526020526040832060017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff008254161790557f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d339380a4600190565b505090565b90600091808352600460205273ffffffffffffffffffffffffffffffffffffffff6040842092169182845260205260ff60408420541615600014611eba578083526004602052604083208284526020526040832060017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff008254161790557f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d339380a4600190565b73ffffffffffffffffffffffffffffffffffffffff1660008181527f2fb794d17134dfdec181ddbac1babb5ab1eb140204ef4d982f294e7fc8b6902260205260408120549091907fdf8b4c520ffe197c5343c6f5aec59570151ef9a492f2c624fd45ddde6135ec429060ff1615611eba57808352600460205260408320828452602052604083207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0081541690557ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b339380a4600190565b90600091808352600460205273ffffffffffffffffffffffffffffffffffffffff6040842092169182845260205260ff604084205416600014611eba57808352600460205260408320828452602052604083207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0081541690557ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b339380a4600190565b9295949093919573ffffffffffffffffffffffffffffffffffffffff96876006541695888116968714600014612262578134036122045783858484612128945b33908b611aad565b9760405196610100880188811067ffffffffffffffff82111761184c57600797839160405216885260208801908152604088019133835260608901926000845260808a0194855260a08a0195865260c08a0196875260e08a01978c895260005260086020528160406000209a5116927fffffffffffffffffffffffff000000000000000000000000000000000000000093848c5416178b558260018c01915116848254161790558160028b0191511683825416179055600389019251169082541617905551600486015551600585015551600684015551910155565b60646040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601960248201527f43543a206e6174697665544f4e206e65656420616d6f756e74000000000000006044820152fd5b604051602081017f23b872dd0000000000000000000000000000000000000000000000000000000081523360248301523060448301528360648301526064825260a082019082821067ffffffffffffffff83111761184c5760009283926040525190828b5af16122d0611971565b81612347575b50156122e9578385848461212894612120565b60646040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601460248201527f5452414e534645525f46524f4d5f4641494c45440000000000000000000000006044820152fd5b805180159250821561235c575b5050386122d6565b61236f9250602080918301019101611c4e565b388061235456fea26469706673582212204342bf19eb75ab6ac4d63439a0b5e189e59089db964a9afe69c57daa6844ec5b64736f6c63430008180033

Deployed ByteCode

0x6080604081815260048036101561001557600080fd5b600092833560e01c90816301ffc9a714611618575080630f377395146112fd57806316e01724146112aa5780631785f53c1461122b57806322985246146111d2578063248a9ca31461118b57806324d7806c146110fc5780632f2ff15d146110b457806336568abe146110295780634bb04f8214610fbd57806350d2a27614610f38578063550d01a314610ed157806363a8fd8914610e915780637048027514610e0157806375829def14610c8057806375b238fc14610c2757806380ada3451461094b57806381f331da1461082f5780638800867b146107ac57806391d148541461073d5780639792f8d71461060d578063a1e89aec146105d0578063a217fddf14610597578063b6f7134b14610465578063b911135f1461040a578063d547741f146103ae578063ddf0cbf4146102dc578063e59f69c214610275578063f43b36131461021e5763f5869c2f1461016d57600080fd5b3461021a5760207ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261021a5781610100938235815260086020522073ffffffffffffffffffffffffffffffffffffffff9283825416938060018401541693816002850154169160038501541690840154916005850154936007600687015496015496815198895260208901528701526060860152608085015260a084015260c083015260e0820152f35b8280fd5b50503461027157817ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126102715760209073ffffffffffffffffffffffffffffffffffffffff600554169051908152f35b5080fd5b503461021a5760207ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261021a57918192358152600a6020522073ffffffffffffffffffffffffffffffffffffffff6001818354169201541682519182526020820152f35b50507f9234c0bc9ec97c418266f9342cc42597ee66dc6f1c718161a25a8b8ba660d3e76103a361035161030e36611743565b61032096949591939296323314611b23565b61032b871515611bae565b610336841515611bae565b61033e611c13565b60016007540180600755848885896120e0565b600754975173ffffffffffffffffffffffffffffffffffffffff9586168152919094166020820152336040820152606081019490945260808401524660a084015260c0830191909152819060e0820190565b0390a26001600b5580f35b503461021a57817ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261021a576104069161040160018335926103f16116fd565b9484885260205286200154611d84565b61203d565b5080f35b503461021a5760207ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261021a578160209373ffffffffffffffffffffffffffffffffffffffff92358152600185522054169051908152f35b503461021a57610474366117ab565b7fdf8b4c520ffe197c5343c6f5aec59570151ef9a492f2c624fd45ddde6135ec4286949392945260209280845285872033885284526104b860ff87892054166119cf565b818752600984528587209273ffffffffffffffffffffffffffffffffffffffff809116938489528552868820951694858852845260ff868820541661053b5750855260098252838520908552815282842091845252812060017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0082541617905580f35b606490848751917f08c379a0000000000000000000000000000000000000000000000000000000008352820152601560248201527f616c7265616479207265676973746572546f6b656e00000000000000000000006044820152fd5b50503461027157817ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126102715751908152602090f35b50503461027157817ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc360112610271576020906007549051908152f35b503461021a5761061c366117ab565b7fdf8b4c520ffe197c5343c6f5aec59570151ef9a492f2c624fd45ddde6135ec42869493929452602092808452858720338852845261066060ff87892054166119cf565b818752600984528587209273ffffffffffffffffffffffffffffffffffffffff809116938489528552868820951694858852845260ff8688205416156106e1575085526009825283852090855281528284209184525281207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00815416905580f35b606490848751917f08c379a0000000000000000000000000000000000000000000000000000000008352820152601360248201527f616c72656164792064656c657465546f6b656e000000000000000000000000006044820152fd5b503461021a57817ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261021a578160209360ff9261077b6116fd565b9080358352865273ffffffffffffffffffffffffffffffffffffffff83832091168252855220541690519015158152f35b503461021a5760607ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261021a578160209360ff926107eb6116fd565b6107f3611720565b913583526009875283832073ffffffffffffffffffffffffffffffffffffffff8092168452875283832091168252855220541690519015158152f35b50919061083b36611743565b909661084c94939294323314611b23565b610857851515611bae565b610862881515611bae565b61086a611c13565b818752600960205285872073ffffffffffffffffffffffffffffffffffffffff9081861689526020528688209084168852602052600160ff87892054161515036108ee5750956103a3916103517f4ed7594528ea467b40aa40eeff1ebf7a53cd3771da17f533517dcd207b18b07796979860016007540180600755848885896120e0565b60649060208751917f08c379a0000000000000000000000000000000000000000000000000000000008352820152601260248201527f6e6f7420726567697374657220746f6b656e00000000000000000000000000006044820152fd5b50903461021a5760607ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261021a576109846116d5565b9060243592610991611c13565b73ffffffffffffffffffffffffffffffffffffffff908082600554168033149081610b90575b506109c291506118a7565b848652602090600882526109de836003868a200154161561190c565b8587526008825282600285892001541694838116809603610b3457868852600883528488209360038501877fffffffffffffffffffffffff0000000000000000000000000000000000000000825416179055806001848701549601541690600654168114600014610afb5750508680808086895af1610a5b611971565b5015610aa05750917f450d6c9754cd9320f50503ddda52c5fc862b436387398efa559dfd5021b593da93916060935b82519384528301524690820152a26001600b5580f35b6064918451917f08c379a0000000000000000000000000000000000000000000000000000000008352820152601260248201527f63616e63656c20726566756e64206661696c00000000000000000000000000006044820152fd5b847f450d6c9754cd9320f50503ddda52c5fc862b436387398efa559dfd5021b593da979593506060969492610b2f92611c66565b610a8a565b506064918451917f08c379a0000000000000000000000000000000000000000000000000000000008352820152600f60248201527f796f7572206e6f742073656c6c657200000000000000000000000000000000006044820152fd5b602091508551928380927f6e296e450000000000000000000000000000000000000000000000000000000082525afa908115610c1d57906109c2918891610bee575b506044358852600a6020528380868a20541691161482916109b7565b610c10915060203d602011610c16575b610c08818361180b565b81019061187b565b38610bd2565b503d610bfe565b84513d89823e3d90fd5b50503461027157817ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261027157602090517fdf8b4c520ffe197c5343c6f5aec59570151ef9a492f2c624fd45ddde6135ec428152f35b5082903461027157602090817ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261021a57610cbc6116d5565b917fdf8b4c520ffe197c5343c6f5aec59570151ef9a492f2c624fd45ddde6135ec428085528282528585203386528252610cfb60ff87872054166119cf565b73ffffffffffffffffffffffffffffffffffffffff84168015610da5573314610d495794610d37926001928697610d3c97525285200154611d84565b611de1565b50610d4633611a5a565b80f35b606483838851917f08c379a0000000000000000000000000000000000000000000000000000000008352820152601660248201527f41636365737369626c653a2073616d652061646d696e000000000000000000006044820152fd5b606484848951917f08c379a0000000000000000000000000000000000000000000000000000000008352820152601860248201527f41636365737369626c653a207a65726f206164647265737300000000000000006044820152fd5b503461021a5760207ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261021a57610d37600161040693610e426116d5565b937fdf8b4c520ffe197c5343c6f5aec59570151ef9a492f2c624fd45ddde6135ec4280885281602052828820338952602052610e8360ff848a2054166119cf565b875260205285200154611d84565b50503461027157817ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126102715760ff602092541690519015158152f35b5050346102715760207ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126102715760ff8160209373ffffffffffffffffffffffffffffffffffffffff610f256116d5565b1681526002855220541690519015158152f35b503461021a5760207ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261021a57357fffffffff00000000000000000000000000000000000000000000000000000000811680910361021a57818373ffffffffffffffffffffffffffffffffffffffff9260209552600385522054169051908152f35b5050346102715760e07ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261027157602090611022610ffc6116d5565b6110046116fd565b61100c611720565b9060c4359260a435926084359260643592611aad565b9051908152f35b5091903461027157807ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc360112610271576110626116fd565b903373ffffffffffffffffffffffffffffffffffffffff83160361108c575061040691923561203d565b8390517f6697b232000000000000000000000000000000000000000000000000000000008152fd5b503461021a57817ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261021a57610406916110f760018335926103f16116fd565b611ebf565b503461021a5760207ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261021a578160209360ff9261113b6116d5565b907fdf8b4c520ffe197c5343c6f5aec59570151ef9a492f2c624fd45ddde6135ec428352865273ffffffffffffffffffffffffffffffffffffffff83832091168252855220541690519015158152f35b503461021a5760207ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261021a57816020938260019335825285522001549051908152f35b50503461027157817ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261027157602090517ffb5864e8ff833c3cb2d2d08505e82ff02a43554c74a35d4f5a64e852612783118152f35b503461021a5760207ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261021a576112a560ff610d469361126c6116d5565b937fdf8b4c520ffe197c5343c6f5aec59570151ef9a492f2c624fd45ddde6135ec428752602052808620338752602052852054166119cf565b611a5a565b50503461027157817ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126102715760209073ffffffffffffffffffffffffffffffffffffffff600654169051908152f35b50903461021a5760a07ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261021a576113366116d5565b906024359160443593611347611c13565b73ffffffffffffffffffffffffffffffffffffffff938185600554168033149081611591575b5061137891506118a7565b85875260209060088252611394866003878b200154161561190c565b868852600882526084356007868a20015403611535578061152f57508587526008815260058488200154935b86885260088252808820600381019387861694857fffffffffffffffffffffffff0000000000000000000000000000000000000000825416179055808860018401541692015495886006541683146000146114f357508980808089895af1611426611971565b501561149757509160e09593917f22e91517e0cc4eccf7ead3eadccfd6588a87f1204e7568e20e149a68c73235b69795935b898b5260088352818b2096600281895416980154169282519788528701528501526060840152608083015260a08201524660c0820152a26001600b5580f35b606490848451917f08c379a0000000000000000000000000000000000000000000000000000000008352820152600a60248201527f636c61696d206661696c000000000000000000000000000000000000000000006044820152fd5b60e097959391509161152a877f22e91517e0cc4eccf7ead3eadccfd6588a87f1204e7568e20e149a68c73235b69a98969483611c66565b611458565b936113c0565b606483838751917f08c379a0000000000000000000000000000000000000000000000000000000008352820152601860248201527f486173682076616c75657320646f206e6f74206d6174636800000000000000006044820152fd5b602091508651928380927f6e296e450000000000000000000000000000000000000000000000000000000082525afa90811561160e57906113789189916115ef575b506064358952600a6020528680878b205416911614839161136d565b611608915060203d602011610c1657610c08818361180b565b386115d3565b85513d8a823e3d90fd5b9250503461021a5760207ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261021a57357fffffffff00000000000000000000000000000000000000000000000000000000811680910361021a57602092507f7965db0b0000000000000000000000000000000000000000000000000000000081149081156116ab575b5015158152f35b7f01ffc9a700000000000000000000000000000000000000000000000000000000915014386116a4565b6004359073ffffffffffffffffffffffffffffffffffffffff821682036116f857565b600080fd5b6024359073ffffffffffffffffffffffffffffffffffffffff821682036116f857565b6044359073ffffffffffffffffffffffffffffffffffffffff821682036116f857565b7ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc60a09101126116f85773ffffffffffffffffffffffffffffffffffffffff9060043582811681036116f8579160243590811681036116f85790604435906064359060843590565b7ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc60609101126116f85773ffffffffffffffffffffffffffffffffffffffff9060043582811681036116f8579160243590811681036116f8579060443590565b90601f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0910116810190811067ffffffffffffffff82111761184c57604052565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b908160209103126116f8575173ffffffffffffffffffffffffffffffffffffffff811681036116f85790565b156118ae57565b60646040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f6f6e6c792063616c6c206c3146617374576974686472617700000000000000006044820152fd5b1561191357565b60646040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600c60248201527f616c726561647920736f6c6400000000000000000000000000000000000000006044820152fd5b3d156119ca573d9067ffffffffffffffff821161184c57604051916119be60207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f840116018461180b565b82523d6000602084013e565b606090565b156119d657565b60846040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602260248201527f41636365737369626c653a2043616c6c6572206973206e6f7420616e2061646d60448201527f696e0000000000000000000000000000000000000000000000000000000000006064820152fd5b3373ffffffffffffffffffffffffffffffffffffffff821603611a8357611a8090611f66565b50565b60046040517f6697b232000000000000000000000000000000000000000000000000000000008152fd5b95939194929060405195602087019773ffffffffffffffffffffffffffffffffffffffff92838092168a52166040880152166060860152608085015260a084015260c083015260e082015261010046818301528152610120810181811067ffffffffffffffff82111761184c5760405251902090565b15611b2a57565b60846040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602d60248201527f4c3246573a2066756e6374696f6e2063616e206f6e6c792062652063616c6c6560448201527f642066726f6d20616e20454f41000000000000000000000000000000000000006064820152fd5b15611bb557565b60646040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601960248201527f696e70757420616d6f756e74206e656564206e6f6e5a65726f000000000000006044820152fd5b6002600b5414611c24576002600b55565b60046040517f3ee5aeb5000000000000000000000000000000000000000000000000000000008152fd5b908160209103126116f8575180151581036116f85790565b91909173ffffffffffffffffffffffffffffffffffffffff92604051928460208501927fa9059cbb0000000000000000000000000000000000000000000000000000000084521660248501526044840152604483526080830183811067ffffffffffffffff82111761184c57600094859485926040525193165af1611ce9611971565b81611d55575b5015611cf757565b60646040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600f60248201527f5452414e534645525f4641494c454400000000000000000000000000000000006044820152fd5b8051801592508215611d6a575b505038611cef565b611d7d9250602080918301019101611c4e565b3880611d62565b80600052600460205260406000203360005260205260ff6040600020541615611daa5750565b604490604051907fe2517d3f0000000000000000000000000000000000000000000000000000000082523360048301526024820152fd5b73ffffffffffffffffffffffffffffffffffffffff1660008181527f2fb794d17134dfdec181ddbac1babb5ab1eb140204ef4d982f294e7fc8b6902260205260408120549091907fdf8b4c520ffe197c5343c6f5aec59570151ef9a492f2c624fd45ddde6135ec429060ff16611eba578083526004602052604083208284526020526040832060017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff008254161790557f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d339380a4600190565b505090565b90600091808352600460205273ffffffffffffffffffffffffffffffffffffffff6040842092169182845260205260ff60408420541615600014611eba578083526004602052604083208284526020526040832060017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff008254161790557f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d339380a4600190565b73ffffffffffffffffffffffffffffffffffffffff1660008181527f2fb794d17134dfdec181ddbac1babb5ab1eb140204ef4d982f294e7fc8b6902260205260408120549091907fdf8b4c520ffe197c5343c6f5aec59570151ef9a492f2c624fd45ddde6135ec429060ff1615611eba57808352600460205260408320828452602052604083207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0081541690557ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b339380a4600190565b90600091808352600460205273ffffffffffffffffffffffffffffffffffffffff6040842092169182845260205260ff604084205416600014611eba57808352600460205260408320828452602052604083207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0081541690557ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b339380a4600190565b9295949093919573ffffffffffffffffffffffffffffffffffffffff96876006541695888116968714600014612262578134036122045783858484612128945b33908b611aad565b9760405196610100880188811067ffffffffffffffff82111761184c57600797839160405216885260208801908152604088019133835260608901926000845260808a0194855260a08a0195865260c08a0196875260e08a01978c895260005260086020528160406000209a5116927fffffffffffffffffffffffff000000000000000000000000000000000000000093848c5416178b558260018c01915116848254161790558160028b0191511683825416179055600389019251169082541617905551600486015551600585015551600684015551910155565b60646040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601960248201527f43543a206e6174697665544f4e206e65656420616d6f756e74000000000000006044820152fd5b604051602081017f23b872dd0000000000000000000000000000000000000000000000000000000081523360248301523060448301528360648301526064825260a082019082821067ffffffffffffffff83111761184c5760009283926040525190828b5af16122d0611971565b81612347575b50156122e9578385848461212894612120565b60646040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601460248201527f5452414e534645525f46524f4d5f4641494c45440000000000000000000000006044820152fd5b805180159250821561235c575b5050386122d6565b61236f9250602080918301019101611c4e565b388061235456fea26469706673582212204342bf19eb75ab6ac4d63439a0b5e189e59089db964a9afe69c57daa6844ec5b64736f6c63430008180033