ETH Price: $3,640.26 (+8.24%)

Contract

0x18C4545274721940985e93b1991CC651B1A41a8b
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Set Space Operat...212737092024-11-26 18:26:4732 hrs ago1732645607IN
0x18C45452...1B1A41a8b
0 ETH0.0008413517.3704918
Grant Role212737052024-11-26 18:25:5932 hrs ago1732645559IN
0x18C45452...1B1A41a8b
0 ETH0.0009137317.74525769
Set Space Operat...176798362023-07-12 20:25:35504 days ago1689193535IN
0x18C45452...1B1A41a8b
0 ETH0.0014549430.03857672
Set Space Operat...169982262023-04-07 17:56:23600 days ago1680890183IN
0x18C45452...1B1A41a8b
0 ETH0.0012158125.10146402
Set Space Operat...169857672023-04-05 23:21:35602 days ago1680736895IN
0x18C45452...1B1A41a8b
0 ETH0.0014645130.23614201
Set Space Operat...168287442023-03-14 21:04:23624 days ago1678827863IN
0x18C45452...1B1A41a8b
0 ETH0.0019042639.31513481
Set Space Operat...168272762023-03-14 16:07:35624 days ago1678810055IN
0x18C45452...1B1A41a8b
0 ETH0.0026627454.97453828
Batch Set Space ...167708762023-03-06 17:44:23632 days ago1678124663IN
0x18C45452...1B1A41a8b
0 ETH0.0055385444.13637149
Batch Set Space ...167493052023-03-03 16:55:59635 days ago1677862559IN
0x18C45452...1B1A41a8b
0 ETH0.0031501131.46366809
Batch Set Space ...167492792023-03-03 16:50:47635 days ago1677862247IN
0x18C45452...1B1A41a8b
0 ETH0.001128432.263285
Batch Set Space ...167358942023-03-01 19:38:23637 days ago1677699503IN
0x18C45452...1B1A41a8b
0 ETH0.0032165943.01704741
Set Space Operat...167357532023-03-01 19:09:35637 days ago1677697775IN
0x18C45452...1B1A41a8b
0 ETH0.0018238637.65523075
Set Space Operat...166355772023-02-15 17:17:11651 days ago1676481431IN
0x18C45452...1B1A41a8b
0 ETH0.0028253658.3319031
Set Space Operat...166228022023-02-13 22:25:11653 days ago1676327111IN
0x18C45452...1B1A41a8b
0 ETH0.0009314819.23130239
Set Space Operat...166223712023-02-13 20:58:47653 days ago1676321927IN
0x18C45452...1B1A41a8b
0 ETH0.0010906422.52284159
Set Space Operat...165369202023-02-01 22:22:35665 days ago1675290155IN
0x18C45452...1B1A41a8b
0 ETH0.00221545.73055526
Batch Set Space ...164358822023-01-18 19:48:59679 days ago1674071339IN
0x18C45452...1B1A41a8b
0 ETH0.0088487529.20582347
Batch Set Space ...163852022023-01-11 17:58:11686 days ago1673459891IN
0x18C45452...1B1A41a8b
0 ETH0.0152870723.23437227
Grant Role163851332023-01-11 17:43:35686 days ago1673459015IN
0x18C45452...1B1A41a8b
0 ETH0.001511929.36200124
Grant Role163851312023-01-11 17:43:11686 days ago1673458991IN
0x18C45452...1B1A41a8b
0 ETH0.0016055731.18098388
Grant Role163851302023-01-11 17:42:59686 days ago1673458979IN
0x18C45452...1B1A41a8b
0 ETH0.0008560829.26588579
Grant Role163851272023-01-11 17:42:23686 days ago1673458943IN
0x18C45452...1B1A41a8b
0 ETH0.0015523230.14684011
Grant Role163851192023-01-11 17:40:23686 days ago1673458823IN
0x18C45452...1B1A41a8b
0 ETH0.0013983827.36145644
Grant Role163850692023-01-11 17:29:59686 days ago1673458199IN
0x18C45452...1B1A41a8b
0 ETH0.0017056233.37286005
Initialize163849672023-01-11 17:08:47686 days ago1673456927IN
0x18C45452...1B1A41a8b
0 ETH0.0065155768.76963358
View all transactions

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
SpaceOperatorRegistry

Compiler Version
v0.8.10+commit.fc410830

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 10 : SpaceOperatorRegistry.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.10;

import {AccessControlUpgradeable} from "openzeppelin-contracts-upgradeable/access/AccessControlUpgradeable.sol";
import {ISpaceOperatorRegistry} from "./interfaces/ISpaceOperatorRegistry.sol";

contract SpaceOperatorRegistry is
    ISpaceOperatorRegistry,
    AccessControlUpgradeable
{
    bytes32 public constant SPACE_OPERATOR_REGISTER_ROLE =
        keccak256("SPACE_OPERATOR_REGISTER_ROLE");

    event SpaceOperatorApproved(
        address indexed _operator,
        address indexed _approver,
        bool _approved
    );

    mapping(address => bool) public isApprovedOperator;

    function initialize() public initializer {
        __AccessControl_init();
        _setupRole(DEFAULT_ADMIN_ROLE, msg.sender);
        _setupRole(SPACE_OPERATOR_REGISTER_ROLE, msg.sender);
    }

    function getPlatformCommission(address)
        external
        pure
        override
        returns (uint8)
    {
        return 5;
    }

    function setPlatformCommission(address, uint8) external override {}

    function isApprovedSpaceOperator(address _operator)
        external
        view
        override
        returns (bool)
    {
        return isApprovedOperator[_operator];
    }

    function setSpaceOperatorApproved(address _operator, bool _approved)
        external
        override
    {
        require(hasRole(SPACE_OPERATOR_REGISTER_ROLE, msg.sender));
        isApprovedOperator[_operator] = _approved;
        emit SpaceOperatorApproved(_operator, msg.sender, _approved);
    }

    function batchSetSpaceOperatorApproved(
        address[] calldata _operators,
        bool _approved
    ) external {
        for (uint256 i = 0; i < _operators.length; i++) {
            require(hasRole(SPACE_OPERATOR_REGISTER_ROLE, msg.sender));
            isApprovedOperator[_operators[i]] = _approved;
            emit SpaceOperatorApproved(_operators[i], msg.sender, _approved);
        }
    }
}

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

pragma solidity ^0.8.0;

import "./IAccessControlUpgradeable.sol";
import "../utils/ContextUpgradeable.sol";
import "../utils/StringsUpgradeable.sol";
import "../utils/introspection/ERC165Upgradeable.sol";
import "../proxy/utils/Initializable.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:
 *
 * ```
 * 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}:
 *
 * ```
 * 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.
 */
abstract contract AccessControlUpgradeable is Initializable, ContextUpgradeable, IAccessControlUpgradeable, ERC165Upgradeable {
    function __AccessControl_init() internal onlyInitializing {
    }

    function __AccessControl_init_unchained() internal onlyInitializing {
    }
    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(IAccessControlUpgradeable).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 ",
                        StringsUpgradeable.toHexString(uint160(account), 20),
                        " is missing role ",
                        StringsUpgradeable.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.
     */
    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.
     */
    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`.
     */
    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.
     *
     * [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.
     */
    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.
     */
    function _revokeRole(bytes32 role, address account) internal virtual {
        if (hasRole(role, account)) {
            _roles[role].members[account] = false;
            emit RoleRevoked(role, account, _msgSender());
        }
    }

    /**
     * @dev This empty reserved space is put in place to allow future versions to add new
     * variables without shifting down storage in the inheritance chain.
     * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps
     */
    uint256[49] private __gap;
}

File 3 of 10 : IAccessControlUpgradeable.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 IAccessControlUpgradeable {
    /**
     * @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 10 : Initializable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (proxy/utils/Initializable.sol)

pragma solidity ^0.8.2;

import "../../utils/AddressUpgradeable.sol";

/**
 * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed
 * behind a proxy. Since proxied contracts do not make use of a constructor, it's common to move constructor logic to an
 * external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer
 * function so it can only be called once. The {initializer} modifier provided by this contract will have this effect.
 *
 * The initialization functions use a version number. Once a version number is used, it is consumed and cannot be
 * reused. This mechanism prevents re-execution of each "step" but allows the creation of new initialization steps in
 * case an upgrade adds a module that needs to be initialized.
 *
 * For example:
 *
 * [.hljs-theme-light.nopadding]
 * ```
 * contract MyToken is ERC20Upgradeable {
 *     function initialize() initializer public {
 *         __ERC20_init("MyToken", "MTK");
 *     }
 * }
 * contract MyTokenV2 is MyToken, ERC20PermitUpgradeable {
 *     function initializeV2() reinitializer(2) public {
 *         __ERC20Permit_init("MyToken");
 *     }
 * }
 * ```
 *
 * TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as
 * possible by providing the encoded function call as the `_data` argument to {ERC1967Proxy-constructor}.
 *
 * CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure
 * that all initializers are idempotent. This is not verified automatically as constructors are by Solidity.
 *
 * [CAUTION]
 * ====
 * Avoid leaving a contract uninitialized.
 *
 * An uninitialized contract can be taken over by an attacker. This applies to both a proxy and its implementation
 * contract, which may impact the proxy. To prevent the implementation contract from being used, you should invoke
 * the {_disableInitializers} function in the constructor to automatically lock it when it is deployed:
 *
 * [.hljs-theme-light.nopadding]
 * ```
 * /// @custom:oz-upgrades-unsafe-allow constructor
 * constructor() {
 *     _disableInitializers();
 * }
 * ```
 * ====
 */
abstract contract Initializable {
    /**
     * @dev Indicates that the contract has been initialized.
     * @custom:oz-retyped-from bool
     */
    uint8 private _initialized;

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

    /**
     * @dev Triggered when the contract has been initialized or reinitialized.
     */
    event Initialized(uint8 version);

    /**
     * @dev A modifier that defines a protected initializer function that can be invoked at most once. In its scope,
     * `onlyInitializing` functions can be used to initialize parent contracts. Equivalent to `reinitializer(1)`.
     */
    modifier initializer() {
        bool isTopLevelCall = _setInitializedVersion(1);
        if (isTopLevelCall) {
            _initializing = true;
        }
        _;
        if (isTopLevelCall) {
            _initializing = false;
            emit Initialized(1);
        }
    }

    /**
     * @dev A modifier that defines a protected reinitializer function that can be invoked at most once, and only if the
     * contract hasn't been initialized to a greater version before. In its scope, `onlyInitializing` functions can be
     * used to initialize parent contracts.
     *
     * `initializer` is equivalent to `reinitializer(1)`, so a reinitializer may be used after the original
     * initialization step. This is essential to configure modules that are added through upgrades and that require
     * initialization.
     *
     * Note that versions can jump in increments greater than 1; this implies that if multiple reinitializers coexist in
     * a contract, executing them in the right order is up to the developer or operator.
     */
    modifier reinitializer(uint8 version) {
        bool isTopLevelCall = _setInitializedVersion(version);
        if (isTopLevelCall) {
            _initializing = true;
        }
        _;
        if (isTopLevelCall) {
            _initializing = false;
            emit Initialized(version);
        }
    }

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

    /**
     * @dev Locks the contract, preventing any future reinitialization. This cannot be part of an initializer call.
     * Calling this in the constructor of a contract will prevent that contract from being initialized or reinitialized
     * to any version. It is recommended to use this to lock implementation contracts that are designed to be called
     * through proxies.
     */
    function _disableInitializers() internal virtual {
        _setInitializedVersion(type(uint8).max);
    }

    function _setInitializedVersion(uint8 version) private returns (bool) {
        // If the contract is initializing we ignore whether _initialized is set in order to support multiple
        // inheritance patterns, but we only do this in the context of a constructor, and for the lowest level
        // of initializers, because in other contexts the contract may have been reentered.
        if (_initializing) {
            require(
                version == 1 && !AddressUpgradeable.isContract(address(this)),
                "Initializable: contract is already initialized"
            );
            return false;
        } else {
            require(_initialized < version, "Initializable: contract is already initialized");
            _initialized = version;
            return true;
        }
    }
}

File 5 of 10 : AddressUpgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol)

pragma solidity ^0.8.1;

/**
 * @dev Collection of functions related to the address type
 */
library AddressUpgradeable {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     *
     * [IMPORTANT]
     * ====
     * You shouldn't rely on `isContract` to protect against flash loan attacks!
     *
     * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets
     * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract
     * constructor.
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize/address.code.length, which returns 0
        // for contracts in construction, since the code is only stored at the end
        // of the constructor execution.

        return account.code.length > 0;
    }

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

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

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

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

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

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

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

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

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

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

    /**
     * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason using the provided one.
     *
     * _Available since v4.3._
     */
    function verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal pure returns (bytes memory) {
        if (success) {
            return returndata;
        } else {
            // Look for revert reason and bubble it up if present
            if (returndata.length > 0) {
                // The easiest way to bubble the revert reason is using memory via assembly

                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

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

pragma solidity ^0.8.0;
import "../proxy/utils/Initializable.sol";

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

    function __Context_init_unchained() internal onlyInitializing {
    }
    function _msgSender() internal view virtual returns (address) {
        return msg.sender;
    }

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

    /**
     * @dev This empty reserved space is put in place to allow future versions to add new
     * variables without shifting down storage in the inheritance chain.
     * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps
     */
    uint256[50] private __gap;
}

File 7 of 10 : StringsUpgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Strings.sol)

pragma solidity ^0.8.0;

/**
 * @dev String operations.
 */
library StringsUpgradeable {
    bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef";

    /**
     * @dev Converts a `uint256` to its ASCII `string` decimal representation.
     */
    function toString(uint256 value) internal pure returns (string memory) {
        // Inspired by OraclizeAPI's implementation - MIT licence
        // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol

        if (value == 0) {
            return "0";
        }
        uint256 temp = value;
        uint256 digits;
        while (temp != 0) {
            digits++;
            temp /= 10;
        }
        bytes memory buffer = new bytes(digits);
        while (value != 0) {
            digits -= 1;
            buffer[digits] = bytes1(uint8(48 + uint256(value % 10)));
            value /= 10;
        }
        return string(buffer);
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.
     */
    function toHexString(uint256 value) internal pure returns (string memory) {
        if (value == 0) {
            return "0x00";
        }
        uint256 temp = value;
        uint256 length = 0;
        while (temp != 0) {
            length++;
            temp >>= 8;
        }
        return toHexString(value, length);
    }

    /**
     * @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] = _HEX_SYMBOLS[value & 0xf];
            value >>= 4;
        }
        require(value == 0, "Strings: hex length insufficient");
        return string(buffer);
    }
}

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

pragma solidity ^0.8.0;

import "./IERC165Upgradeable.sol";
import "../../proxy/utils/Initializable.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 ERC165Upgradeable is Initializable, IERC165Upgradeable {
    function __ERC165_init() internal onlyInitializing {
    }

    function __ERC165_init_unchained() internal onlyInitializing {
    }
    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
        return interfaceId == type(IERC165Upgradeable).interfaceId;
    }

    /**
     * @dev This empty reserved space is put in place to allow future versions to add new
     * variables without shifting down storage in the inheritance chain.
     * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps
     */
    uint256[50] private __gap;
}

File 9 of 10 : IERC165Upgradeable.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 IERC165Upgradeable {
    /**
     * @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 10 : ISpaceOperatorRegistry.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.10;

/// @author koloz
/// @title ISpaceOperatorRegistry
/// @notice The interface for the SpaceOperatorRegistry
interface ISpaceOperatorRegistry {
    function getPlatformCommission(address _operator)
        external
        view
        returns (uint8);

    function setPlatformCommission(address _operator, uint8 _commission)
        external;

    function isApprovedSpaceOperator(address _operator)
        external
        view
        returns (bool);

    function setSpaceOperatorApproved(address _operator, bool _approved)
        external;
}

Settings
{
  "remappings": [
    "ds-test/=lib/ds-test/src/",
    "forge-std/=lib/forge-std/src/",
    "openzeppelin-contracts-upgradeable/=lib/openzeppelin-contracts-upgradeable/contracts/",
    "openzeppelin-contracts/=lib/openzeppelin-contracts/contracts/"
  ],
  "optimizer": {
    "enabled": true,
    "runs": 200
  },
  "metadata": {
    "bytecodeHash": "ipfs"
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "evmVersion": "london",
  "libraries": {}
}

Contract Security Audit

Contract ABI

[{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint8","name":"version","type":"uint8"}],"name":"Initialized","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":true,"internalType":"address","name":"_operator","type":"address"},{"indexed":true,"internalType":"address","name":"_approver","type":"address"},{"indexed":false,"internalType":"bool","name":"_approved","type":"bool"}],"name":"SpaceOperatorApproved","type":"event"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"SPACE_OPERATOR_REGISTER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"_operators","type":"address[]"},{"internalType":"bool","name":"_approved","type":"bool"}],"name":"batchSetSpaceOperatorApproved","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"getPlatformCommission","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"pure","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":[],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"isApprovedOperator","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_operator","type":"address"}],"name":"isApprovedSpaceOperator","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","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":"","type":"address"},{"internalType":"uint8","name":"","type":"uint8"}],"name":"setPlatformCommission","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_operator","type":"address"},{"internalType":"bool","name":"_approved","type":"bool"}],"name":"setSpaceOperatorApproved","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"}]

608060405234801561001057600080fd5b50610d83806100206000396000f3fe608060405234801561001057600080fd5b50600436106100f55760003560e01c80635a7d11d3116100975780638c479012116100665780638c4790121461023357806391d1485414610245578063a217fddf14610258578063d547741f1461026057600080fd5b80635a7d11d3146101c75780635dc22eff146101ea5780636ef90741146102165780638129fc1c1461022b57600080fd5b80632260494f116100d35780632260494f1461014a578063248a9ca3146101705780632f2ff15d146101a157806336568abe146101b457600080fd5b806301ffc9a7146100fa5780630d7fc28014610122578063153875f314610137575b600080fd5b61010d6101083660046109c4565b610273565b60405190151581526020015b60405180910390f35b6101356101303660046109fe565b6102aa565b005b610135610145366004610a99565b6103ae565b61015e610158366004610acc565b50600590565b60405160ff9091168152602001610119565b61019361017e366004610ae7565b60009081526065602052604090206001015490565b604051908152602001610119565b6101356101af366004610b00565b610431565b6101356101c2366004610b00565b61045b565b61010d6101d5366004610acc565b60976020526000908152604090205460ff1681565b61010d6101f8366004610acc565b6001600160a01b031660009081526097602052604090205460ff1690565b610193600080516020610d2e83398151915281565b6101356104da565b610135610241366004610b23565b5050565b61010d610253366004610b00565b610572565b610193600081565b61013561026e366004610b00565b61059d565b60006001600160e01b03198216637965db0b60e01b14806102a457506301ffc9a760e01b6001600160e01b03198316145b92915050565b60005b828110156103a8576102cd600080516020610d2e83398151915233610572565b6102d657600080fd5b81609760008686858181106102ed576102ed610b60565b90506020020160208101906103029190610acc565b6001600160a01b031681526020810191909152604001600020805460ff19169115159190911790553384848381811061033d5761033d610b60565b90506020020160208101906103529190610acc565b6001600160a01b03167f73c6c46c16b828775364ea7d6e753e704d29e8d5d57372459c0f0e699b5cdc198460405161038e911515815260200190565b60405180910390a3806103a081610b8c565b9150506102ad565b50505050565b6103c6600080516020610d2e83398151915233610572565b6103cf57600080fd5b6001600160a01b038216600081815260976020908152604091829020805460ff191685151590811790915591519182523392917f73c6c46c16b828775364ea7d6e753e704d29e8d5d57372459c0f0e699b5cdc19910160405180910390a35050565b60008281526065602052604090206001015461044c816105c2565b61045683836105cc565b505050565b6001600160a01b03811633146104d05760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b60648201526084015b60405180910390fd5b6102418282610652565b60006104e660016106b9565b905080156104fe576000805461ff0019166101001790555b610506610746565b6105116000336107b3565b610529600080516020610d2e833981519152336107b3565b801561056f576000805461ff0019169055604051600181527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a15b50565b60009182526065602090815260408084206001600160a01b0393909316845291905290205460ff1690565b6000828152606560205260409020600101546105b8816105c2565b6104568383610652565b61056f81336107bd565b6105d68282610572565b6102415760008281526065602090815260408083206001600160a01b03851684529091529020805460ff1916600117905561060e3390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b61065c8282610572565b156102415760008281526065602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b60008054610100900460ff1615610700578160ff1660011480156106dc5750303b155b6106f85760405162461bcd60e51b81526004016104c790610ba7565b506000919050565b60005460ff8084169116106107275760405162461bcd60e51b81526004016104c790610ba7565b506000805460ff191660ff92909216919091179055600190565b919050565b600054610100900460ff166107b15760405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201526a6e697469616c697a696e6760a81b60648201526084016104c7565b565b61024182826105cc565b6107c78282610572565b610241576107df816001600160a01b03166014610821565b6107ea836020610821565b6040516020016107fb929190610c21565b60408051601f198184030181529082905262461bcd60e51b82526104c791600401610c96565b60606000610830836002610cc9565b61083b906002610ce8565b67ffffffffffffffff81111561085357610853610d00565b6040519080825280601f01601f19166020018201604052801561087d576020820181803683370190505b509050600360fc1b8160008151811061089857610898610b60565b60200101906001600160f81b031916908160001a905350600f60fb1b816001815181106108c7576108c7610b60565b60200101906001600160f81b031916908160001a90535060006108eb846002610cc9565b6108f6906001610ce8565b90505b600181111561096e576f181899199a1a9b1b9c1cb0b131b232b360811b85600f166010811061092a5761092a610b60565b1a60f81b82828151811061094057610940610b60565b60200101906001600160f81b031916908160001a90535060049490941c9361096781610d16565b90506108f9565b5083156109bd5760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e7460448201526064016104c7565b9392505050565b6000602082840312156109d657600080fd5b81356001600160e01b0319811681146109bd57600080fd5b8035801515811461074157600080fd5b600080600060408486031215610a1357600080fd5b833567ffffffffffffffff80821115610a2b57600080fd5b818601915086601f830112610a3f57600080fd5b813581811115610a4e57600080fd5b8760208260051b8501011115610a6357600080fd5b602092830195509350610a7991860190506109ee565b90509250925092565b80356001600160a01b038116811461074157600080fd5b60008060408385031215610aac57600080fd5b610ab583610a82565b9150610ac3602084016109ee565b90509250929050565b600060208284031215610ade57600080fd5b6109bd82610a82565b600060208284031215610af957600080fd5b5035919050565b60008060408385031215610b1357600080fd5b82359150610ac360208401610a82565b60008060408385031215610b3657600080fd5b610b3f83610a82565b9150602083013560ff81168114610b5557600080fd5b809150509250929050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b6000600019821415610ba057610ba0610b76565b5060010190565b6020808252602e908201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160408201526d191e481a5b9a5d1a585b1a5e995960921b606082015260800190565b60005b83811015610c10578181015183820152602001610bf8565b838111156103a85750506000910152565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000815260008351610c59816017850160208801610bf5565b7001034b99036b4b9b9b4b733903937b6329607d1b6017918401918201528351610c8a816028840160208801610bf5565b01602801949350505050565b6020815260008251806020840152610cb5816040850160208701610bf5565b601f01601f19169190910160400192915050565b6000816000190483118215151615610ce357610ce3610b76565b500290565b60008219821115610cfb57610cfb610b76565b500190565b634e487b7160e01b600052604160045260246000fd5b600081610d2557610d25610b76565b50600019019056fe57527c1536e7f33d6b842314905b9307508ae79cb438bc0e1a0315e90266ae7fa26469706673582212208fa2dec735a349bfdc26eda1f0bc08a51041c0ef5292da574521cc4f46f71cf164736f6c634300080a0033

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106100f55760003560e01c80635a7d11d3116100975780638c479012116100665780638c4790121461023357806391d1485414610245578063a217fddf14610258578063d547741f1461026057600080fd5b80635a7d11d3146101c75780635dc22eff146101ea5780636ef90741146102165780638129fc1c1461022b57600080fd5b80632260494f116100d35780632260494f1461014a578063248a9ca3146101705780632f2ff15d146101a157806336568abe146101b457600080fd5b806301ffc9a7146100fa5780630d7fc28014610122578063153875f314610137575b600080fd5b61010d6101083660046109c4565b610273565b60405190151581526020015b60405180910390f35b6101356101303660046109fe565b6102aa565b005b610135610145366004610a99565b6103ae565b61015e610158366004610acc565b50600590565b60405160ff9091168152602001610119565b61019361017e366004610ae7565b60009081526065602052604090206001015490565b604051908152602001610119565b6101356101af366004610b00565b610431565b6101356101c2366004610b00565b61045b565b61010d6101d5366004610acc565b60976020526000908152604090205460ff1681565b61010d6101f8366004610acc565b6001600160a01b031660009081526097602052604090205460ff1690565b610193600080516020610d2e83398151915281565b6101356104da565b610135610241366004610b23565b5050565b61010d610253366004610b00565b610572565b610193600081565b61013561026e366004610b00565b61059d565b60006001600160e01b03198216637965db0b60e01b14806102a457506301ffc9a760e01b6001600160e01b03198316145b92915050565b60005b828110156103a8576102cd600080516020610d2e83398151915233610572565b6102d657600080fd5b81609760008686858181106102ed576102ed610b60565b90506020020160208101906103029190610acc565b6001600160a01b031681526020810191909152604001600020805460ff19169115159190911790553384848381811061033d5761033d610b60565b90506020020160208101906103529190610acc565b6001600160a01b03167f73c6c46c16b828775364ea7d6e753e704d29e8d5d57372459c0f0e699b5cdc198460405161038e911515815260200190565b60405180910390a3806103a081610b8c565b9150506102ad565b50505050565b6103c6600080516020610d2e83398151915233610572565b6103cf57600080fd5b6001600160a01b038216600081815260976020908152604091829020805460ff191685151590811790915591519182523392917f73c6c46c16b828775364ea7d6e753e704d29e8d5d57372459c0f0e699b5cdc19910160405180910390a35050565b60008281526065602052604090206001015461044c816105c2565b61045683836105cc565b505050565b6001600160a01b03811633146104d05760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b60648201526084015b60405180910390fd5b6102418282610652565b60006104e660016106b9565b905080156104fe576000805461ff0019166101001790555b610506610746565b6105116000336107b3565b610529600080516020610d2e833981519152336107b3565b801561056f576000805461ff0019169055604051600181527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a15b50565b60009182526065602090815260408084206001600160a01b0393909316845291905290205460ff1690565b6000828152606560205260409020600101546105b8816105c2565b6104568383610652565b61056f81336107bd565b6105d68282610572565b6102415760008281526065602090815260408083206001600160a01b03851684529091529020805460ff1916600117905561060e3390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b61065c8282610572565b156102415760008281526065602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b60008054610100900460ff1615610700578160ff1660011480156106dc5750303b155b6106f85760405162461bcd60e51b81526004016104c790610ba7565b506000919050565b60005460ff8084169116106107275760405162461bcd60e51b81526004016104c790610ba7565b506000805460ff191660ff92909216919091179055600190565b919050565b600054610100900460ff166107b15760405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201526a6e697469616c697a696e6760a81b60648201526084016104c7565b565b61024182826105cc565b6107c78282610572565b610241576107df816001600160a01b03166014610821565b6107ea836020610821565b6040516020016107fb929190610c21565b60408051601f198184030181529082905262461bcd60e51b82526104c791600401610c96565b60606000610830836002610cc9565b61083b906002610ce8565b67ffffffffffffffff81111561085357610853610d00565b6040519080825280601f01601f19166020018201604052801561087d576020820181803683370190505b509050600360fc1b8160008151811061089857610898610b60565b60200101906001600160f81b031916908160001a905350600f60fb1b816001815181106108c7576108c7610b60565b60200101906001600160f81b031916908160001a90535060006108eb846002610cc9565b6108f6906001610ce8565b90505b600181111561096e576f181899199a1a9b1b9c1cb0b131b232b360811b85600f166010811061092a5761092a610b60565b1a60f81b82828151811061094057610940610b60565b60200101906001600160f81b031916908160001a90535060049490941c9361096781610d16565b90506108f9565b5083156109bd5760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e7460448201526064016104c7565b9392505050565b6000602082840312156109d657600080fd5b81356001600160e01b0319811681146109bd57600080fd5b8035801515811461074157600080fd5b600080600060408486031215610a1357600080fd5b833567ffffffffffffffff80821115610a2b57600080fd5b818601915086601f830112610a3f57600080fd5b813581811115610a4e57600080fd5b8760208260051b8501011115610a6357600080fd5b602092830195509350610a7991860190506109ee565b90509250925092565b80356001600160a01b038116811461074157600080fd5b60008060408385031215610aac57600080fd5b610ab583610a82565b9150610ac3602084016109ee565b90509250929050565b600060208284031215610ade57600080fd5b6109bd82610a82565b600060208284031215610af957600080fd5b5035919050565b60008060408385031215610b1357600080fd5b82359150610ac360208401610a82565b60008060408385031215610b3657600080fd5b610b3f83610a82565b9150602083013560ff81168114610b5557600080fd5b809150509250929050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b6000600019821415610ba057610ba0610b76565b5060010190565b6020808252602e908201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160408201526d191e481a5b9a5d1a585b1a5e995960921b606082015260800190565b60005b83811015610c10578181015183820152602001610bf8565b838111156103a85750506000910152565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000815260008351610c59816017850160208801610bf5565b7001034b99036b4b9b9b4b733903937b6329607d1b6017918401918201528351610c8a816028840160208801610bf5565b01602801949350505050565b6020815260008251806020840152610cb5816040850160208701610bf5565b601f01601f19169190910160400192915050565b6000816000190483118215151615610ce357610ce3610b76565b500290565b60008219821115610cfb57610cfb610b76565b500190565b634e487b7160e01b600052604160045260246000fd5b600081610d2557610d25610b76565b50600019019056fe57527c1536e7f33d6b842314905b9307508ae79cb438bc0e1a0315e90266ae7fa26469706673582212208fa2dec735a349bfdc26eda1f0bc08a51041c0ef5292da574521cc4f46f71cf164736f6c634300080a0033

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.