ETH Price: $1,797.25 (+13.89%)

Contract

0xec9A7fb6CbC2E41926127929c2dcE6e9c5D33Bec

Overview

ETH Balance

0 ETH

ETH Value

$0.00

Token Holdings

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Publish New Subg...3292516122025-04-23 3:53:487 mins ago1745380428IN
0xec9A7fb6...9c5D33Bec
0 ETH0.000003460.01
Publish New Subg...3292508692025-04-23 3:50:4311 mins ago1745380243IN
0xec9A7fb6...9c5D33Bec
0 ETH0.000004180.01
Publish New Vers...3292481352025-04-23 3:39:2422 mins ago1745379564IN
0xec9A7fb6...9c5D33Bec
0 ETH0.000002240.01
Publish New Subg...3292478572025-04-23 3:38:1423 mins ago1745379494IN
0xec9A7fb6...9c5D33Bec
0 ETH0.000004090.01
Publish New Subg...3292477042025-04-23 3:37:3524 mins ago1745379455IN
0xec9A7fb6...9c5D33Bec
0 ETH0.000004090.01
Publish New Subg...3292475692025-04-23 3:37:0224 mins ago1745379422IN
0xec9A7fb6...9c5D33Bec
0 ETH0.000004090.01
Publish New Subg...3292471212025-04-23 3:35:0926 mins ago1745379309IN
0xec9A7fb6...9c5D33Bec
0 ETH0.000004080.01
Publish New Subg...3292468952025-04-23 3:34:1327 mins ago1745379253IN
0xec9A7fb6...9c5D33Bec
0 ETH0.000004090.01
Publish New Subg...3292459222025-04-23 3:30:1231 mins ago1745379012IN
0xec9A7fb6...9c5D33Bec
0 ETH0.000004570.01
Publish New Subg...3292457682025-04-23 3:29:3432 mins ago1745378974IN
0xec9A7fb6...9c5D33Bec
0 ETH0.000004570.01
Publish New Subg...3292455642025-04-23 3:28:4233 mins ago1745378922IN
0xec9A7fb6...9c5D33Bec
0 ETH0.000004570.01
Publish New Subg...3292454312025-04-23 3:28:0933 mins ago1745378889IN
0xec9A7fb6...9c5D33Bec
0 ETH0.000004570.01
Publish New Subg...3292452582025-04-23 3:27:2534 mins ago1745378845IN
0xec9A7fb6...9c5D33Bec
0 ETH0.000004570.01
Publish New Subg...3292451412025-04-23 3:26:5534 mins ago1745378815IN
0xec9A7fb6...9c5D33Bec
0 ETH0.000004570.01
Publish New Subg...3292451212025-04-23 3:26:5034 mins ago1745378810IN
0xec9A7fb6...9c5D33Bec
0 ETH0.000004570.01
Publish New Vers...3292396552025-04-23 3:04:0457 mins ago1745377444IN
0xec9A7fb6...9c5D33Bec
0 ETH0.00000810.01
Publish New Vers...3292395362025-04-23 3:03:3458 mins ago1745377414IN
0xec9A7fb6...9c5D33Bec
0 ETH0.00000380.01
Publish New Subg...3292383542025-04-23 2:58:421 hr ago1745377122IN
0xec9A7fb6...9c5D33Bec
0 ETH0.000004420.01
Publish New Subg...3292382292025-04-23 2:58:111 hr ago1745377091IN
0xec9A7fb6...9c5D33Bec
0 ETH0.000004420.01
Publish New Subg...3292380982025-04-23 2:57:381 hr ago1745377058IN
0xec9A7fb6...9c5D33Bec
0 ETH0.000004420.01
Publish New Subg...3292379662025-04-23 2:57:031 hr ago1745377023IN
0xec9A7fb6...9c5D33Bec
0 ETH0.000004420.01
Publish New Subg...3292378402025-04-23 2:56:301 hr ago1745376990IN
0xec9A7fb6...9c5D33Bec
0 ETH0.000004480.010253
Publish New Subg...3292376762025-04-23 2:55:491 hr ago1745376949IN
0xec9A7fb6...9c5D33Bec
0 ETH0.000004790.011498
Publish New Subg...3292374992025-04-23 2:55:041 hr ago1745376904IN
0xec9A7fb6...9c5D33Bec
0 ETH0.000005140.012851
Publish New Subg...3292373132025-04-23 2:54:221 hr ago1745376862IN
0xec9A7fb6...9c5D33Bec
0 ETH0.000005380.012859
View all transactions

Latest 25 internal transactions (View All)

Advanced mode:
Parent Transaction Hash Block From To
719138142023-03-20 22:18:12764 days ago1679350692
0xec9A7fb6...9c5D33Bec
0 ETH
719138142023-03-20 22:18:12764 days ago1679350692
0xec9A7fb6...9c5D33Bec
0 ETH
719138142023-03-20 22:18:12764 days ago1679350692
0xec9A7fb6...9c5D33Bec
0 ETH
719138142023-03-20 22:18:12764 days ago1679350692
0xec9A7fb6...9c5D33Bec
0 ETH
705528872023-03-16 22:59:04768 days ago1679007544
0xec9A7fb6...9c5D33Bec
0 ETH
705528872023-03-16 22:59:04768 days ago1679007544
0xec9A7fb6...9c5D33Bec
0 ETH
705528872023-03-16 22:59:04768 days ago1679007544
0xec9A7fb6...9c5D33Bec
0 ETH
705528872023-03-16 22:59:04768 days ago1679007544
0xec9A7fb6...9c5D33Bec
0 ETH
705521772023-03-16 22:55:41768 days ago1679007341
0xec9A7fb6...9c5D33Bec
0 ETH
705521772023-03-16 22:55:41768 days ago1679007341
0xec9A7fb6...9c5D33Bec
0 ETH
705521772023-03-16 22:55:41768 days ago1679007341
0xec9A7fb6...9c5D33Bec
0 ETH
705521772023-03-16 22:55:41768 days ago1679007341
0xec9A7fb6...9c5D33Bec
0 ETH
705521772023-03-16 22:55:41768 days ago1679007341
0xec9A7fb6...9c5D33Bec
0 ETH
705521772023-03-16 22:55:41768 days ago1679007341
0xec9A7fb6...9c5D33Bec
0 ETH
705521772023-03-16 22:55:41768 days ago1679007341
0xec9A7fb6...9c5D33Bec
0 ETH
705521772023-03-16 22:55:41768 days ago1679007341
0xec9A7fb6...9c5D33Bec
0 ETH
705521772023-03-16 22:55:41768 days ago1679007341
0xec9A7fb6...9c5D33Bec
0 ETH
705513892023-03-16 22:52:08768 days ago1679007128
0xec9A7fb6...9c5D33Bec
0 ETH
705513892023-03-16 22:52:08768 days ago1679007128
0xec9A7fb6...9c5D33Bec
0 ETH
705513892023-03-16 22:52:08768 days ago1679007128
0xec9A7fb6...9c5D33Bec
0 ETH
705513892023-03-16 22:52:08768 days ago1679007128
0xec9A7fb6...9c5D33Bec
0 ETH
705513892023-03-16 22:52:08768 days ago1679007128
0xec9A7fb6...9c5D33Bec
0 ETH
705488862023-03-16 22:40:56768 days ago1679006456
0xec9A7fb6...9c5D33Bec
0 ETH
705488862023-03-16 22:40:56768 days ago1679006456
0xec9A7fb6...9c5D33Bec
0 ETH
705488862023-03-16 22:40:56768 days ago1679006456
0xec9A7fb6...9c5D33Bec
0 ETH
View All Internal Transactions

Latest 25 Deposits

L2 Txn Hash L1 Deposit Txn Value Token
0x300c5a73ae808b32b1c477b136d3b4adbec785899ef8f8ce2b005dc1171742eb2024-08-07 6:22:47258 days ago17230117672,000.469306452290513296 Graph Token (GRT)
0xdb26ec13a0f73f02b0b59223564a6f4d450ee22da8d2d03f6f84ce257b485c7d2024-08-07 6:20:47258 days ago17230116471,743.086236944733609292 Graph Token (GRT)
0x23b08d5cefece28f61706a41f4ca58f6385b1719926b2429a41a168535d268c42024-08-07 6:20:11258 days ago1723011611896.452818062916781322 Graph Token (GRT)
0x00983b45f9fb386210db1fdbb003e11075e0e3b7e82eb03696f619fce8aeb8f02024-08-07 6:16:59258 days ago17230114192,846.036604611666131597 Graph Token (GRT)
0x59c977b7b8eeaa6cd01357753a5b034ecf596f398b30925abf6438498d94bd072024-08-01 20:44:35264 days ago17225450752.476985851702686158 Graph Token (GRT)
0x05aa40f3bf2bb3b6ceddb8602c3aa19cd996d194fa91e1c9cfb38066cc5b95972024-07-18 15:27:47278 days ago1721316467378.508809638450107293 Graph Token (GRT)
0x5a60e82a08d9293f38408c58cdb1f6805507adccf2c3f912f305e50901c831e72024-07-15 5:47:35281 days ago172102245599 Graph Token (GRT)
0x5b1a5f53bde7529caa93605f443788f714c384db7ac35259b8dbe2b3746b662d2024-06-26 18:38:47300 days ago171942712724.837082809143628073 Graph Token (GRT)
0xdb81a440dca7528cbb6b6080a35da99a5051773c291b446243b74d17362471022024-06-20 8:55:11306 days ago171887371113,559.852842636751079856 Graph Token (GRT)
0x20cfecb50998145089f2230708744705118f70fa6ad933d7766478a609281db32024-06-11 16:47:23315 days ago1718124443990 Graph Token (GRT)
0xb5eb91acdf82871ff68e58a4e304cd42978989029e36dbaaa1461bac962f6ba12024-06-11 16:47:23315 days ago171812444313,200.165 Graph Token (GRT)
0xa3889642bfec0f0f217249dea1a875d1bca07cf5ae17b5b23719979cd7dbaa142024-06-11 16:47:23315 days ago171812444313,134.168190153478435256 Graph Token (GRT)
0x2ee9d7af9b1d3116e932d89d2454784a61b983962685b4ef5844ef351a8cf5092024-06-11 16:47:23315 days ago17181244437,425 Graph Token (GRT)
0xa74b963272cacfd01f41a302976b8c23a9a601e520364d025069c93edbf8d9482024-06-11 16:47:23315 days ago17181244437,889.198454254181812072 Graph Token (GRT)
0xb60adb5242b7f7d9410a7380a8e34c404cf1a2b5f766745a6423ef6b73e044ea2024-06-11 16:47:23315 days ago171812444312,784.014315207028064688 Graph Token (GRT)
0x3b3389d29d9f1736b24e6f892f3021d73b1f2168c16fe9ecdbd4e0c9e21bb9b82024-06-03 7:43:59323 days ago1717400639298.227731062740118317 Graph Token (GRT)
0x48dd08e1480002de20eb801764613c93072e79c9e46c167cbd5dfc8aed51df552024-05-24 14:58:11333 days ago17165626919,804.908175792655864061 Graph Token (GRT)
0xc107ea2fb1cca63aff0cb0b9100c87354886d3aebfaefe8a0c368297d8b01c3c2024-05-24 14:55:47333 days ago17165625479,850.5 Graph Token (GRT)
0x1c498703f4f56cfd107c9ef9beda190da308445630a6f19133f80cb1bae1f0ef2024-05-21 9:11:59336 days ago17162827191,087.02 Graph Token (GRT)
0xccc4229b8ac1039a120e402aa33049e4ffade509b24f9c003203311854d366722024-05-17 9:30:23340 days ago1715938223625.715067259212880145 Graph Token (GRT)
0xb46afbbd0221c9dc447294b42aa0739e88e3876cbe2a410a01de1a6bb0c4e4ef2024-05-17 9:29:11340 days ago17159381511,034.378887818933605446 Graph Token (GRT)
0xfa09d314eb2a44977cc9c64337179f0c35be2e5e121315163ba1b8db4c8371292024-05-03 17:14:35354 days ago17147564757,739.402924350943180636 Graph Token (GRT)
0xf64535ae1dd2b599185661ad4c4f1623bd68c62c7caf6032f4b3e4d17fb252712024-05-01 19:44:23356 days ago17145926639,784.786706830129660634 Graph Token (GRT)
0x634caea1555ea6efd59660d4ae9cf8989c9b639a4de891cf9499e0ee223e3f402024-05-01 19:27:59356 days ago17145916798,316.082840816406373903 Graph Token (GRT)
0x4e7cb8bc8e4a8c3d8a9417706c647ad9ecafd9e1139e6fba58fefbfd705633352024-04-23 9:47:11364 days ago17138656319,900 Graph Token (GRT)
View All Deposits

Loading...
Loading

Similar Match Source Code
This contract matches the deployed Bytecode of the Source Code for Contract 0x5A843145...f131bB281
The constructor portion of the code might be different and could alter the actual behaviour of the contract

Contract Name:
GraphProxy

Compiler Version
v0.7.6+commit.7338295f

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 4 : GraphProxy.sol
// SPDX-License-Identifier: GPL-2.0-or-later

pragma solidity ^0.7.6;

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

import { GraphProxyStorage } from "./GraphProxyStorage.sol";

import { IGraphProxy } from "./IGraphProxy.sol";

/**
 * @title Graph Proxy
 * @dev Graph Proxy contract used to delegate call implementation contracts and support upgrades.
 * This contract should NOT define storage as it is managed by GraphProxyStorage.
 * This contract implements a proxy that is upgradeable by an admin.
 * https://docs.openzeppelin.com/upgrades-plugins/1.x/proxies#transparent-proxies-and-function-clashes
 */
contract GraphProxy is GraphProxyStorage, IGraphProxy {
    /**
     * @dev Modifier used internally that will delegate the call to the implementation unless
     * the sender is the admin.
     */
    modifier ifAdmin() {
        if (msg.sender == _getAdmin()) {
            _;
        } else {
            _fallback();
        }
    }

    /**
     * @dev Modifier used internally that will delegate the call to the implementation unless
     * the sender is the admin or pending implementation.
     */
    modifier ifAdminOrPendingImpl() {
        if (msg.sender == _getAdmin() || msg.sender == _getPendingImplementation()) {
            _;
        } else {
            _fallback();
        }
    }

    /**
     * @notice GraphProxy contract constructor.
     * @param _impl Address of the initial implementation
     * @param _admin Address of the proxy admin
     */
    constructor(address _impl, address _admin) {
        assert(ADMIN_SLOT == bytes32(uint256(keccak256("eip1967.proxy.admin")) - 1));
        assert(
            IMPLEMENTATION_SLOT == bytes32(uint256(keccak256("eip1967.proxy.implementation")) - 1)
        );
        assert(
            PENDING_IMPLEMENTATION_SLOT ==
                bytes32(uint256(keccak256("eip1967.proxy.pendingImplementation")) - 1)
        );

        _setAdmin(_admin);
        _setPendingImplementation(_impl);
    }

    /**
     * @notice Fallback function that delegates calls to implementation. Will run if call data
     * is empty.
     */
    receive() external payable {
        _fallback();
    }

    /**
     * @notice Fallback function that delegates calls to implementation. Will run if no other
     * function in the contract matches the call data.
     */
    fallback() external payable {
        _fallback();
    }

    /**
     * @notice Get the current admin
     *
     * @dev NOTE: Only the admin and implementation can call this function.
     *
     * TIP: To get this value clients can read directly from the storage slot shown below (specified by EIP1967) using the
     * https://eth.wiki/json-rpc/API#eth_getstorageat[`eth_getStorageAt`] RPC call.
     * `0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103`
     *
     * @return The address of the current admin
     */
    function admin() external override ifAdminOrPendingImpl returns (address) {
        return _getAdmin();
    }

    /**
     * @notice Get the current implementation.
     *
     * @dev NOTE: Only the admin can call this function.
     *
     * TIP: To get this value clients can read directly from the storage slot shown below (specified by EIP1967) using the
     * https://eth.wiki/json-rpc/API#eth_getstorageat[`eth_getStorageAt`] RPC call.
     * `0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc`
     *
     * @return The address of the current implementation for this proxy
     */
    function implementation() external override ifAdminOrPendingImpl returns (address) {
        return _getImplementation();
    }

    /**
     * @notice Get the current pending implementation.
     *
     * @dev NOTE: Only the admin can call this function.
     *
     * TIP: To get this value clients can read directly from the storage slot shown below (specified by EIP1967) using the
     * https://eth.wiki/json-rpc/API#eth_getstorageat[`eth_getStorageAt`] RPC call.
     * `0x9e5eddc59e0b171f57125ab86bee043d9128098c3a6b9adb4f2e86333c2f6f8c`
     *
     * @return The address of the current pending implementation for this proxy
     */
    function pendingImplementation() external override ifAdminOrPendingImpl returns (address) {
        return _getPendingImplementation();
    }

    /**
     * @notice Changes the admin of the proxy.
     *
     * @dev NOTE: Only the admin can call this function.
     *
     * @param _newAdmin Address of the new admin
     */
    function setAdmin(address _newAdmin) external override ifAdmin {
        require(_newAdmin != address(0), "Admin cant be the zero address");
        _setAdmin(_newAdmin);
    }

    /**
     * @notice Upgrades to a new implementation contract.
     * @dev NOTE: Only the admin can call this function.
     * @param _newImplementation Address of implementation contract
     */
    function upgradeTo(address _newImplementation) external override ifAdmin {
        _setPendingImplementation(_newImplementation);
    }

    /**
     * @notice Admin function for new implementation to accept its role as implementation.
     */
    function acceptUpgrade() external override ifAdminOrPendingImpl {
        _acceptUpgrade();
    }

    /**
     * @notice Admin function for new implementation to accept its role as implementation,
     * calling a function on the new implementation.
     * @param data Calldata (including selector) for the function to delegatecall into the implementation
     */
    function acceptUpgradeAndCall(bytes calldata data) external override ifAdminOrPendingImpl {
        _acceptUpgrade();
        // solhint-disable-next-line avoid-low-level-calls
        (bool success, ) = _getImplementation().delegatecall(data);
        require(success, "Impl call failed");
    }

    /**
     * @dev Admin function for new implementation to accept its role as implementation.
     */
    function _acceptUpgrade() internal {
        address _pendingImplementation = _getPendingImplementation();
        require(Address.isContract(_pendingImplementation), "Impl must be a contract");
        require(_pendingImplementation != address(0), "Impl cannot be zero address");
        require(msg.sender == _pendingImplementation, "Only pending implementation");

        _setImplementation(_pendingImplementation);
        _setPendingImplementation(address(0));
    }

    /**
     * @dev Delegates the current call to implementation.
     * This function does not return to its internal call site, it will return directly to the
     * external caller.
     */
    function _fallback() internal {
        require(msg.sender != _getAdmin(), "Cannot fallback to proxy target");

        // solhint-disable-next-line no-inline-assembly
        assembly {
            // (a) get free memory pointer
            let ptr := mload(0x40)

            // (b) get address of the implementation
            let impl := and(sload(IMPLEMENTATION_SLOT), 0xffffffffffffffffffffffffffffffffffffffff)

            // (1) copy incoming call data
            calldatacopy(ptr, 0, calldatasize())

            // (2) forward call to logic contract
            let result := delegatecall(gas(), impl, ptr, calldatasize(), 0, 0)
            let size := returndatasize()

            // (3) retrieve return data
            returndatacopy(ptr, 0, size)

            // (4) forward return data back to caller
            switch result
            case 0 {
                revert(ptr, size)
            }
            default {
                return(ptr, size)
            }
        }
    }
}

File 2 of 4 : Address.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.2 <0.8.0;

/**
 * @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
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize, which returns 0 for contracts in
        // construction, since the code is only stored at the end of the
        // constructor execution.

        uint256 size;
        // solhint-disable-next-line no-inline-assembly
        assembly { size := extcodesize(account) }
        return size > 0;
    }

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

        // solhint-disable-next-line avoid-low-level-calls, avoid-call-value
        (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");

        // solhint-disable-next-line avoid-low-level-calls
        (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");

        // solhint-disable-next-line avoid-low-level-calls
        (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");

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = target.delegatecall(data);
        return _verifyCallResult(success, returndata, errorMessage);
    }

    function _verifyCallResult(bool success, bytes memory returndata, string memory errorMessage) private 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

                // solhint-disable-next-line no-inline-assembly
                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

File 3 of 4 : GraphProxyStorage.sol
// SPDX-License-Identifier: GPL-2.0-or-later

pragma solidity ^0.7.6;

/**
 * @title Graph Proxy Storage
 * @dev Contract functions related to getting and setting proxy storage.
 * This contract does not actually define state variables managed by the compiler
 * but uses fixed slot locations.
 */
abstract contract GraphProxyStorage {
    /**
     * @dev Storage slot with the address of the current implementation.
     * This is the keccak-256 hash of "eip1967.proxy.implementation" subtracted by 1, and is
     * validated in the constructor.
     */
    bytes32 internal constant IMPLEMENTATION_SLOT =
        0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;

    /**
     * @dev Storage slot with the address of the pending implementation.
     * This is the keccak-256 hash of "eip1967.proxy.pendingImplementation" subtracted by 1, and is
     * validated in the constructor.
     */
    bytes32 internal constant PENDING_IMPLEMENTATION_SLOT =
        0x9e5eddc59e0b171f57125ab86bee043d9128098c3a6b9adb4f2e86333c2f6f8c;

    /**
     * @dev Storage slot with the admin of the contract.
     * This is the keccak-256 hash of "eip1967.proxy.admin" subtracted by 1, and is
     * validated in the constructor.
     */
    bytes32 internal constant ADMIN_SLOT =
        0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103;

    /**
     * @dev Emitted when pendingImplementation is changed.
     */
    event PendingImplementationUpdated(
        address indexed oldPendingImplementation,
        address indexed newPendingImplementation
    );

    /**
     * @dev Emitted when pendingImplementation is accepted,
     * which means contract implementation is updated.
     */
    event ImplementationUpdated(
        address indexed oldImplementation,
        address indexed newImplementation
    );

    /**
     * @dev Emitted when the admin account has changed.
     */
    event AdminUpdated(address indexed oldAdmin, address indexed newAdmin);

    /**
     * @dev Modifier to check whether the `msg.sender` is the admin.
     */
    modifier onlyAdmin() {
        require(msg.sender == _getAdmin(), "Caller must be admin");
        _;
    }

    /**
     * @return adm The admin slot.
     */
    function _getAdmin() internal view returns (address adm) {
        bytes32 slot = ADMIN_SLOT;
        // solhint-disable-next-line no-inline-assembly
        assembly {
            adm := sload(slot)
        }
    }

    /**
     * @dev Sets the address of the proxy admin.
     * @param _newAdmin Address of the new proxy admin
     */
    function _setAdmin(address _newAdmin) internal {
        address oldAdmin = _getAdmin();
        bytes32 slot = ADMIN_SLOT;
        // solhint-disable-next-line no-inline-assembly
        assembly {
            sstore(slot, _newAdmin)
        }

        emit AdminUpdated(oldAdmin, _newAdmin);
    }

    /**
     * @dev Returns the current implementation.
     * @return impl Address of the current implementation
     */
    function _getImplementation() internal view returns (address impl) {
        bytes32 slot = IMPLEMENTATION_SLOT;
        // solhint-disable-next-line no-inline-assembly
        assembly {
            impl := sload(slot)
        }
    }

    /**
     * @dev Returns the current pending implementation.
     * @return impl Address of the current pending implementation
     */
    function _getPendingImplementation() internal view returns (address impl) {
        bytes32 slot = PENDING_IMPLEMENTATION_SLOT;
        // solhint-disable-next-line no-inline-assembly
        assembly {
            impl := sload(slot)
        }
    }

    /**
     * @dev Sets the implementation address of the proxy.
     * @param _newImplementation Address of the new implementation
     */
    function _setImplementation(address _newImplementation) internal {
        address oldImplementation = _getImplementation();

        bytes32 slot = IMPLEMENTATION_SLOT;
        // solhint-disable-next-line no-inline-assembly
        assembly {
            sstore(slot, _newImplementation)
        }

        emit ImplementationUpdated(oldImplementation, _newImplementation);
    }

    /**
     * @dev Sets the pending implementation address of the proxy.
     * @param _newImplementation Address of the new pending implementation
     */
    function _setPendingImplementation(address _newImplementation) internal {
        address oldPendingImplementation = _getPendingImplementation();

        bytes32 slot = PENDING_IMPLEMENTATION_SLOT;
        // solhint-disable-next-line no-inline-assembly
        assembly {
            sstore(slot, _newImplementation)
        }

        emit PendingImplementationUpdated(oldPendingImplementation, _newImplementation);
    }
}

File 4 of 4 : IGraphProxy.sol
// SPDX-License-Identifier: GPL-2.0-or-later

pragma solidity ^0.7.6;

interface IGraphProxy {
    function admin() external returns (address);

    function setAdmin(address _newAdmin) external;

    function implementation() external returns (address);

    function pendingImplementation() external returns (address);

    function upgradeTo(address _newImplementation) external;

    function acceptUpgrade() external;

    function acceptUpgradeAndCall(bytes calldata data) external;
}

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

Contract Security Audit

Contract ABI

API
[{"inputs":[{"internalType":"address","name":"_impl","type":"address"},{"internalType":"address","name":"_admin","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"oldAdmin","type":"address"},{"indexed":true,"internalType":"address","name":"newAdmin","type":"address"}],"name":"AdminUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"oldImplementation","type":"address"},{"indexed":true,"internalType":"address","name":"newImplementation","type":"address"}],"name":"ImplementationUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"oldPendingImplementation","type":"address"},{"indexed":true,"internalType":"address","name":"newPendingImplementation","type":"address"}],"name":"PendingImplementationUpdated","type":"event"},{"stateMutability":"payable","type":"fallback"},{"inputs":[],"name":"acceptUpgrade","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes","name":"data","type":"bytes"}],"name":"acceptUpgradeAndCall","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"admin","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"implementation","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"pendingImplementation","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_newAdmin","type":"address"}],"name":"setAdmin","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_newImplementation","type":"address"}],"name":"upgradeTo","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]

Deployed Bytecode

0x6080604052600436106100745760003560e01c80635c60da1b1161004e5780635c60da1b14610104578063623faf6114610119578063704b6c0214610196578063f851a440146101c957610083565b80633659cfe61461008b578063396f7b23146100be57806359fc20bb146100ef57610083565b36610083576100816101de565b005b6100816101de565b34801561009757600080fd5b50610081600480360360208110156100ae57600080fd5b50356001600160a01b031661029e565b3480156100ca57600080fd5b506100d36102d8565b604080516001600160a01b039092168252519081900360200190f35b3480156100fb57600080fd5b50610081610338565b34801561011057600080fd5b506100d3610393565b34801561012557600080fd5b506100816004803603602081101561013c57600080fd5b81019060208101813564010000000081111561015757600080fd5b82018360208201111561016957600080fd5b8035906020019184600183028401116401000000008311171561018b57600080fd5b5090925090506103e1565b3480156101a257600080fd5b50610081600480360360208110156101b957600080fd5b50356001600160a01b03166104f1565b3480156101d557600080fd5b506100d3610576565b6101e66105c0565b6001600160a01b0316336001600160a01b0316141561024c576040805162461bcd60e51b815260206004820152601f60248201527f43616e6e6f742066616c6c6261636b20746f2070726f78792074617267657400604482015290519081900360640190fd5b6040516001600160a01b037f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc541636600083376000803684845af490503d806000843e81801561029a578184f35b8184fd5b6102a66105c0565b6001600160a01b0316336001600160a01b031614156102cd576102c8816105e5565b6102d5565b6102d56101de565b50565b60006102e26105c0565b6001600160a01b0316336001600160a01b031614806103195750610304610655565b6001600160a01b0316336001600160a01b0316145b1561032d57610326610655565b9050610335565b6103356101de565b90565b6103406105c0565b6001600160a01b0316336001600160a01b031614806103775750610362610655565b6001600160a01b0316336001600160a01b0316145b156103895761038461067a565b610391565b6103916101de565b565b600061039d6105c0565b6001600160a01b0316336001600160a01b031614806103d457506103bf610655565b6001600160a01b0316336001600160a01b0316145b1561032d576103266107ab565b6103e96105c0565b6001600160a01b0316336001600160a01b03161480610420575061040b610655565b6001600160a01b0316336001600160a01b0316145b156104e55761042d61067a565b60006104376107ab565b6001600160a01b031683836040518083838082843760405192019450600093509091505080830381855af49150503d8060008114610491576040519150601f19603f3d011682016040523d82523d6000602084013e610496565b606091505b50509050806104df576040805162461bcd60e51b815260206004820152601060248201526f125b5c1b0818d85b1b0819985a5b195960821b604482015290519081900360640190fd5b506104ed565b6104ed6101de565b5050565b6104f96105c0565b6001600160a01b0316336001600160a01b031614156102cd576001600160a01b03811661056d576040805162461bcd60e51b815260206004820152601e60248201527f41646d696e2063616e7420626520746865207a65726f20616464726573730000604482015290519081900360640190fd5b6102c8816107d0565b60006105806105c0565b6001600160a01b0316336001600160a01b031614806105b757506105a2610655565b6001600160a01b0316336001600160a01b0316145b1561032d576103265b7fb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d61035490565b60006105ef610655565b7f9e5eddc59e0b171f57125ab86bee043d9128098c3a6b9adb4f2e86333c2f6f8c838155604051919250906001600160a01b0380851691908416907f980c0d30fe97457c47903527d88b7009a1643be6de24d2af664214919f0540a190600090a3505050565b7f9e5eddc59e0b171f57125ab86bee043d9128098c3a6b9adb4f2e86333c2f6f8c5490565b6000610684610655565b905061068f81610840565b6106e0576040805162461bcd60e51b815260206004820152601760248201527f496d706c206d757374206265206120636f6e7472616374000000000000000000604482015290519081900360640190fd5b6001600160a01b03811661073b576040805162461bcd60e51b815260206004820152601b60248201527f496d706c2063616e6e6f74206265207a65726f20616464726573730000000000604482015290519081900360640190fd5b336001600160a01b03821614610798576040805162461bcd60e51b815260206004820152601b60248201527f4f6e6c792070656e64696e6720696d706c656d656e746174696f6e0000000000604482015290519081900360640190fd5b6107a181610846565b6102d560006105e5565b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc5490565b60006107da6105c0565b7fb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103838155604051919250906001600160a01b0380851691908416907f101b8081ff3b56bbf45deb824d86a3b0fd38b7e3dd42421105cf8abe9106db0b90600090a3505050565b3b151590565b60006108506107ab565b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc838155604051919250906001600160a01b0380851691908416907faa3f731066a578e5f39b4215468d826cdd15373cbc0dfc9cb9bdc649718ef7da90600090a350505056fea264697066735822122038d030963e494066ab07b2854a3532b18fa3c2bb579ce105781bfebdde9c7aa664736f6c63430007060033

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
[ Download: CSV Export  ]
[ Download: CSV Export  ]
[ 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.