Mumbai Testnet

Contract

0x466b375cE0D1161aEb3e69f92B2B9c365f7877BE

Overview

MATIC Balance

Multichain Info

N/A
Transaction Hash
Method
Block
From
To
Value
Execute318449322023-02-08 11:01:51493 days ago1675854111IN
0x466b375c...65f7877BE
0 MATIC0.000123862.42500001
Execute314126872023-01-26 2:32:09507 days ago1674700329IN
0x466b375c...65f7877BE
0 MATIC0.000070311.649
Execute314126872023-01-26 2:32:09507 days ago1674700329IN
0x466b375c...65f7877BE
0 MATIC0.000069521.649
Execute313833702023-01-25 9:09:08507 days ago1674637748IN
0x466b375c...65f7877BE
0 MATIC0.000063961.50000001
Execute313833692023-01-25 9:09:06507 days ago1674637746IN
0x466b375c...65f7877BE
0 MATIC0.000063241.50000001
Execute313832122023-01-25 9:03:32507 days ago1674637412IN
0x466b375c...65f7877BE
0 MATIC0.000063961.50000001
Execute313832112023-01-25 9:03:30507 days ago1674637410IN
0x466b375c...65f7877BE
0 MATIC0.000063241.50000001
Execute313790172023-01-25 6:34:28508 days ago1674628468IN
0x466b375c...65f7877BE
0 MATIC0.000068221.6
Execute313790172023-01-25 6:34:28508 days ago1674628468IN
0x466b375c...65f7877BE
0 MATIC0.000067461.6
Execute313784692023-01-25 6:15:01508 days ago1674627301IN
0x466b375c...65f7877BE
0 MATIC0.000077241.81163441
Execute313784682023-01-25 6:14:59508 days ago1674627299IN
0x466b375c...65f7877BE
0 MATIC0.000076381.81163441
Execute313766792023-01-25 5:11:19508 days ago1674623479IN
0x466b375c...65f7877BE
0 MATIC0.000142582.00000001
Execute313389552023-01-24 6:52:24508 days ago1674543144IN
0x466b375c...65f7877BE
0 MATIC0.000105132.35225003
Execute313388572023-01-24 6:48:56509 days ago1674542936IN
0x466b375c...65f7877BE
0 MATIC0.000139482.35225003
Execute313054042023-01-23 11:00:40509 days ago1674471640IN
0x466b375c...65f7877BE
0 MATIC0.000088352.35225001
Execute313032432023-01-23 9:44:08509 days ago1674467048IN
0x466b375c...65f7877BE
0 MATIC0.000144932.44414815
Execute313023442023-01-23 9:12:18509 days ago1674465138IN
0x466b375c...65f7877BE
0 MATIC0.000113151.90814389
Execute311830312023-01-20 10:39:24512 days ago1674211164IN
0x466b375c...65f7877BE
0 MATIC0.000095611.50000001
Grant Role311829982023-01-20 10:38:14512 days ago1674211094IN
0x466b375c...65f7877BE
0 MATIC0.000076631.50000001
Execute311829232023-01-20 10:35:34512 days ago1674210934IN
0x466b375c...65f7877BE
0 MATIC0.00009661.50000001
Execute311829172023-01-20 10:35:22512 days ago1674210922IN
0x466b375c...65f7877BE
0 MATIC0.00009661.50000001
Execute311829082023-01-20 10:35:02512 days ago1674210902IN
0x466b375c...65f7877BE
0 MATIC0.000096021.50000001
Execute311395372023-01-19 8:57:59513 days ago1674118679IN
0x466b375c...65f7877BE
0 MATIC0.000063821.50000001
Execute311395372023-01-19 8:57:59513 days ago1674118679IN
0x466b375c...65f7877BE
0 MATIC0.000063141.50000001
Execute311018412023-01-18 10:42:41514 days ago1674038561IN
0x466b375c...65f7877BE
0 MATIC0.000063791.50000001
View all transactions

Parent Transaction Hash Block From To Value
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
GnosisMock

Compiler Version
v0.8.11+commit.d7f03943

Optimization Enabled:
Yes with 0 runs

Other Settings:
default evmVersion

Contract Source Code (Solidity Standard Json-Input format)

File 1 of 8 : GnosisMock.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.11;

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

contract GnosisMock is AccessControl{
    using Address for address;

    constructor() {
        _grantRole(DEFAULT_ADMIN_ROLE, msg.sender);
    }

    function execute(
        address to,
        uint256 value,
        bytes memory data
    ) external onlyRole(DEFAULT_ADMIN_ROLE) {
        to.functionCallWithValue(data, value);
    }

    receive() external payable {

    }
}

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

pragma solidity ^0.8.0;

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

/**
 * @dev Contract module that allows children to implement role-based access
 * control mechanisms. This is a lightweight version that doesn't allow enumerating role
 * members except through off-chain means by accessing the contract event logs. Some
 * applications may benefit from on-chain enumerability, for those cases see
 * {AccessControlEnumerable}.
 *
 * Roles are referred to by their `bytes32` identifier. These should be exposed
 * in the external API and be unique. The best way to achieve this is by
 * using `public constant` hash digests:
 *
 * ```
 * 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 AccessControl is Context, IAccessControl, ERC165 {
    struct RoleData {
        mapping(address => bool) members;
        bytes32 adminRole;
    }

    mapping(bytes32 => RoleData) private _roles;

    bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00;

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

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

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

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

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

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

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    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());
        }
    }
}

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

File 1 of 8 : Address.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 Address {
    /**
     * @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 Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionDelegateCall(target, data, "Address: low-level delegate call failed");
    }

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

        (bool success, bytes memory returndata) = target.delegatecall(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 1 of 8 : Context.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)

pragma solidity ^0.8.0;

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

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

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

pragma solidity ^0.8.0;

import "./IERC165.sol";

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

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

pragma solidity ^0.8.0;

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

File 1 of 8 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Strings.sol)

pragma solidity ^0.8.0;

/**
 * @dev String operations.
 */
library Strings {
    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);
    }
}

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

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"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"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"execute","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"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":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"stateMutability":"payable","type":"receive"}]

608060405234801561001057600080fd5b5061001c600033610021565b6100c0565b6000828152602081815260408083206001600160a01b038516845290915290205460ff166100bc576000828152602081815260408083206001600160a01b03851684529091529020805460ff1916600117905561007b3390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b610ab1806100cf6000396000f3fe60806040526004361061006f5760003560e01c806301ffc9a71461007b578063248a9ca3146100b05780632f2ff15d146100de57806336568abe1461010057806391d1485414610120578063a217fddf14610140578063b61d27f614610155578063d547741f1461017557600080fd5b3661007657005b600080fd5b34801561008757600080fd5b5061009b61009636600461077f565b610195565b60405190151581526020015b60405180910390f35b3480156100bc57600080fd5b506100d06100cb3660046107a9565b6101cc565b6040519081526020016100a7565b3480156100ea57600080fd5b506100fe6100f93660046107de565b6101e1565b005b34801561010c57600080fd5b506100fe61011b3660046107de565b610202565b34801561012c57600080fd5b5061009b61013b3660046107de565b610285565b34801561014c57600080fd5b506100d0600081565b34801561016157600080fd5b506100fe610170366004610820565b6102ae565b34801561018157600080fd5b506100fe6101903660046107de565b6102d4565b60006001600160e01b03198216637965db0b60e01b14806101c657506301ffc9a760e01b6001600160e01b03198316145b92915050565b60009081526020819052604090206001015490565b6101ea826101cc565b6101f3816102f0565b6101fd83836102fd565b505050565b6001600160a01b03811633146102775760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b60648201526084015b60405180910390fd5b6102818282610381565b5050565b6000918252602082815260408084206001600160a01b0393909316845291905290205460ff1690565b60006102b9816102f0565b6102cd6001600160a01b03851683856103e6565b5050505050565b6102dd826101cc565b6102e6816102f0565b6101fd8383610381565b6102fa8133610416565b50565b6103078282610285565b610281576000828152602081815260408083206001600160a01b03851684529091529020805460ff1916600117905561033d3390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b61038b8282610285565b15610281576000828152602081815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b606061040c848484604051806060016040528060298152602001610a536029913961047a565b90505b9392505050565b6104208282610285565b61028157610438816001600160a01b031660146105ab565b6104438360206105ab565b60405160200161045492919061091a565b60408051601f198184030181529082905262461bcd60e51b825261026e91600401610989565b6060824710156104db5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b606482015260840161026e565b6001600160a01b0385163b6105325760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015260640161026e565b600080866001600160a01b0316858760405161054e91906109bc565b60006040518083038185875af1925050503d806000811461058b576040519150601f19603f3d011682016040523d82523d6000602084013e610590565b606091505b50915091506105a0828286610746565b979650505050505050565b606060006105ba8360026109ee565b6105c5906002610a0d565b6001600160401b038111156105dc576105dc61080a565b6040519080825280601f01601f191660200182016040528015610606576020820181803683370190505b509050600360fc1b8160008151811061062157610621610a25565b60200101906001600160f81b031916908160001a905350600f60fb1b8160018151811061065057610650610a25565b60200101906001600160f81b031916908160001a90535060006106748460026109ee565b61067f906001610a0d565b90505b60018111156106f7576f181899199a1a9b1b9c1cb0b131b232b360811b85600f16601081106106b3576106b3610a25565b1a60f81b8282815181106106c9576106c9610a25565b60200101906001600160f81b031916908160001a90535060049490941c936106f081610a3b565b9050610682565b50831561040f5760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e74604482015260640161026e565b6060831561075557508161040f565b8251156107655782518084602001fd5b8160405162461bcd60e51b815260040161026e9190610989565b60006020828403121561079157600080fd5b81356001600160e01b03198116811461040f57600080fd5b6000602082840312156107bb57600080fd5b5035919050565b80356001600160a01b03811681146107d957600080fd5b919050565b600080604083850312156107f157600080fd5b82359150610801602084016107c2565b90509250929050565b634e487b7160e01b600052604160045260246000fd5b60008060006060848603121561083557600080fd5b61083e846107c2565b92506020840135915060408401356001600160401b038082111561086157600080fd5b818601915086601f83011261087557600080fd5b8135818111156108875761088761080a565b604051601f8201601f19908116603f011681019083821181831017156108af576108af61080a565b816040528281528960208487010111156108c857600080fd5b8260208601602083013760006020848301015280955050505050509250925092565b60005b838110156109055781810151838201526020016108ed565b83811115610914576000848401525b50505050565b76020b1b1b2b9b9a1b7b73a3937b61d1030b1b1b7bab73a1604d1b81526000835161094c8160178501602088016108ea565b7001034b99036b4b9b9b4b733903937b6329607d1b601791840191820152835161097d8160288401602088016108ea565b01602801949350505050565b60208152600082518060208401526109a88160408501602087016108ea565b601f01601f19169190910160400192915050565b600082516109ce8184602087016108ea565b9190910192915050565b634e487b7160e01b600052601160045260246000fd5b6000816000190483118215151615610a0857610a086109d8565b500290565b60008219821115610a2057610a206109d8565b500190565b634e487b7160e01b600052603260045260246000fd5b600081610a4a57610a4a6109d8565b50600019019056fe416464726573733a206c6f772d6c6576656c2063616c6c20776974682076616c7565206661696c6564a2646970667358221220395538c7fe8185c034df615c94de575aca022a4464c0a973568ba883e7f15b3e64736f6c634300080b0033

Deployed Bytecode

0x60806040526004361061006f5760003560e01c806301ffc9a71461007b578063248a9ca3146100b05780632f2ff15d146100de57806336568abe1461010057806391d1485414610120578063a217fddf14610140578063b61d27f614610155578063d547741f1461017557600080fd5b3661007657005b600080fd5b34801561008757600080fd5b5061009b61009636600461077f565b610195565b60405190151581526020015b60405180910390f35b3480156100bc57600080fd5b506100d06100cb3660046107a9565b6101cc565b6040519081526020016100a7565b3480156100ea57600080fd5b506100fe6100f93660046107de565b6101e1565b005b34801561010c57600080fd5b506100fe61011b3660046107de565b610202565b34801561012c57600080fd5b5061009b61013b3660046107de565b610285565b34801561014c57600080fd5b506100d0600081565b34801561016157600080fd5b506100fe610170366004610820565b6102ae565b34801561018157600080fd5b506100fe6101903660046107de565b6102d4565b60006001600160e01b03198216637965db0b60e01b14806101c657506301ffc9a760e01b6001600160e01b03198316145b92915050565b60009081526020819052604090206001015490565b6101ea826101cc565b6101f3816102f0565b6101fd83836102fd565b505050565b6001600160a01b03811633146102775760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b60648201526084015b60405180910390fd5b6102818282610381565b5050565b6000918252602082815260408084206001600160a01b0393909316845291905290205460ff1690565b60006102b9816102f0565b6102cd6001600160a01b03851683856103e6565b5050505050565b6102dd826101cc565b6102e6816102f0565b6101fd8383610381565b6102fa8133610416565b50565b6103078282610285565b610281576000828152602081815260408083206001600160a01b03851684529091529020805460ff1916600117905561033d3390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b61038b8282610285565b15610281576000828152602081815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b606061040c848484604051806060016040528060298152602001610a536029913961047a565b90505b9392505050565b6104208282610285565b61028157610438816001600160a01b031660146105ab565b6104438360206105ab565b60405160200161045492919061091a565b60408051601f198184030181529082905262461bcd60e51b825261026e91600401610989565b6060824710156104db5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b606482015260840161026e565b6001600160a01b0385163b6105325760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015260640161026e565b600080866001600160a01b0316858760405161054e91906109bc565b60006040518083038185875af1925050503d806000811461058b576040519150601f19603f3d011682016040523d82523d6000602084013e610590565b606091505b50915091506105a0828286610746565b979650505050505050565b606060006105ba8360026109ee565b6105c5906002610a0d565b6001600160401b038111156105dc576105dc61080a565b6040519080825280601f01601f191660200182016040528015610606576020820181803683370190505b509050600360fc1b8160008151811061062157610621610a25565b60200101906001600160f81b031916908160001a905350600f60fb1b8160018151811061065057610650610a25565b60200101906001600160f81b031916908160001a90535060006106748460026109ee565b61067f906001610a0d565b90505b60018111156106f7576f181899199a1a9b1b9c1cb0b131b232b360811b85600f16601081106106b3576106b3610a25565b1a60f81b8282815181106106c9576106c9610a25565b60200101906001600160f81b031916908160001a90535060049490941c936106f081610a3b565b9050610682565b50831561040f5760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e74604482015260640161026e565b6060831561075557508161040f565b8251156107655782518084602001fd5b8160405162461bcd60e51b815260040161026e9190610989565b60006020828403121561079157600080fd5b81356001600160e01b03198116811461040f57600080fd5b6000602082840312156107bb57600080fd5b5035919050565b80356001600160a01b03811681146107d957600080fd5b919050565b600080604083850312156107f157600080fd5b82359150610801602084016107c2565b90509250929050565b634e487b7160e01b600052604160045260246000fd5b60008060006060848603121561083557600080fd5b61083e846107c2565b92506020840135915060408401356001600160401b038082111561086157600080fd5b818601915086601f83011261087557600080fd5b8135818111156108875761088761080a565b604051601f8201601f19908116603f011681019083821181831017156108af576108af61080a565b816040528281528960208487010111156108c857600080fd5b8260208601602083013760006020848301015280955050505050509250925092565b60005b838110156109055781810151838201526020016108ed565b83811115610914576000848401525b50505050565b76020b1b1b2b9b9a1b7b73a3937b61d1030b1b1b7bab73a1604d1b81526000835161094c8160178501602088016108ea565b7001034b99036b4b9b9b4b733903937b6329607d1b601791840191820152835161097d8160288401602088016108ea565b01602801949350505050565b60208152600082518060208401526109a88160408501602087016108ea565b601f01601f19169190910160400192915050565b600082516109ce8184602087016108ea565b9190910192915050565b634e487b7160e01b600052601160045260246000fd5b6000816000190483118215151615610a0857610a086109d8565b500290565b60008219821115610a2057610a206109d8565b500190565b634e487b7160e01b600052603260045260246000fd5b600081610a4a57610a4a6109d8565b50600019019056fe416464726573733a206c6f772d6c6576656c2063616c6c20776974682076616c7565206661696c6564a2646970667358221220395538c7fe8185c034df615c94de575aca022a4464c0a973568ba883e7f15b3e64736f6c634300080b0033

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

Txn Hash Block Value Eth2 PubKey Valid
View All Deposits
[ 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.