OP Sepolia Testnet

Contract

0xADF5aadbe080819209BF641fDf03748bb495c6f3

Overview

ETH Balance

0 ETH

More Info

Multichain Info

N/A
Transaction Hash
Method
Block
From
To
Amount
0x01000000355979882025-11-13 1:48:3621 secs ago1762998516IN
0xADF5aadb...bb495c6f3
0 ETH0.0000000660430.00100025
0x01000000355979572025-11-13 1:47:341 min ago1762998454IN
0xADF5aadb...bb495c6f3
0 ETH0.0000000659950.00100025
0x01000000355979262025-11-13 1:46:322 mins ago1762998392IN
0xADF5aadb...bb495c6f3
0 ETH0.0000002339210.00100025
0x01000000355978952025-11-13 1:45:303 mins ago1762998330IN
0xADF5aadb...bb495c6f3
0 ETH0.0000000660430.00100025
0x01000000355978642025-11-13 1:44:284 mins ago1762998268IN
0xADF5aadb...bb495c6f3
0 ETH0.0000000484670.00100025
0x01000000355978332025-11-13 1:43:265 mins ago1762998206IN
0xADF5aadb...bb495c6f3
0 ETH0.0000007832450.00100025
0x01000000355978022025-11-13 1:42:246 mins ago1762998144IN
0xADF5aadb...bb495c6f3
0 ETH0.0000021354280.00100025
0x01000000355977712025-11-13 1:41:227 mins ago1762998082IN
0xADF5aadb...bb495c6f3
0 ETH0.0000002218780.00100025
0x01000000355977402025-11-13 1:40:208 mins ago1762998020IN
0xADF5aadb...bb495c6f3
0 ETH0.0000000484790.00100025
0x01000000355977092025-11-13 1:39:189 mins ago1762997958IN
0xADF5aadb...bb495c6f3
0 ETH0.0000000660430.00100025
0x01000000355976782025-11-13 1:38:1610 mins ago1762997896IN
0xADF5aadb...bb495c6f3
0 ETH0.0000000660430.00100025
0x01000000355976472025-11-13 1:37:1411 mins ago1762997834IN
0xADF5aadb...bb495c6f3
0 ETH0.0000000484790.00100025
0x01000000355976162025-11-13 1:36:1212 mins ago1762997772IN
0xADF5aadb...bb495c6f3
0 ETH0.0000002280010.00100025
0x01000000355975852025-11-13 1:35:1013 mins ago1762997710IN
0xADF5aadb...bb495c6f3
0 ETH0.0000000660430.00100025
0x01000000355975542025-11-13 1:34:0814 mins ago1762997648IN
0xADF5aadb...bb495c6f3
0 ETH0.0000002270940.00100025
0x01000000355975232025-11-13 1:33:0615 mins ago1762997586IN
0xADF5aadb...bb495c6f3
0 ETH0.0000000660430.00100025
0x01000000355974922025-11-13 1:32:0416 mins ago1762997524IN
0xADF5aadb...bb495c6f3
0 ETH0.0000000484790.00100025
0x01000000355974612025-11-13 1:31:0217 mins ago1762997462IN
0xADF5aadb...bb495c6f3
0 ETH0.0000000660430.00100025
0x01000000355974302025-11-13 1:30:0018 mins ago1762997400IN
0xADF5aadb...bb495c6f3
0 ETH0.000001379190.00100025
0x01000000355973992025-11-13 1:28:5819 mins ago1762997338IN
0xADF5aadb...bb495c6f3
0 ETH0.0000021639280.00100025
0x01000000355973682025-11-13 1:27:5621 mins ago1762997276IN
0xADF5aadb...bb495c6f3
0 ETH0.0000000660430.00100025
0x01000000355973372025-11-13 1:26:5422 mins ago1762997214IN
0xADF5aadb...bb495c6f3
0 ETH0.0000000660430.00100025
0x01000000355973062025-11-13 1:25:5223 mins ago1762997152IN
0xADF5aadb...bb495c6f3
0 ETH0.0000001460940.00100025
0x01000000355972752025-11-13 1:24:5024 mins ago1762997090IN
0xADF5aadb...bb495c6f3
0 ETH0.0000000660430.00100025
0x01000000355972442025-11-13 1:23:4825 mins ago1762997028IN
0xADF5aadb...bb495c6f3
0 ETH0.0000000660430.00100025
View all transactions

Latest 1 internal transaction

Parent Transaction Hash Block From To Amount
301751672025-07-10 13:07:54125 days ago1752152874  Contract Creation0 ETH
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
UpgradeableProxyADFS

Compiler Version
v0.8.28+commit.7893614a

Optimization Enabled:
Yes with 200 runs

Other Settings:
paris EvmVersion

Contract Source Code (Solidity Standard Json-Input format)

// SPDX-License-Identifier: MIT
// SPDX-FileCopyrightText: Copyright (c) 2024-2025 Schelling Point Labs Inc.
pragma solidity ^0.8.28;

//    ___  __         __                           _  __    __                  __
//   / _ )/ /__  ____/ /__ ___ ___ ___  ___ ___   / |/ /__ / /__    _____  ____/ /__
//  / _  / / _ \/ __/  '_/(_-</ -_) _ \(_-</ -_) /    / -_) __/ |/|/ / _ \/ __/  '_/
// /____/_/\___/\__/_/\_\/___/\__/_//_/___/\__/ /_/|_/\__/\__/|__,__/\___/_/ /_/\_\
//    _____   ____  ___    ___   ___  ________
//   / __/ | / /  |/  /   / _ | / _ \/ __/ __/
//  / _/ | |/ / /|_/ /   / __ |/ // / _/_\ \
// /___/ |___/_/  /_/   /_/ |_/____/_/ /___/
//
// Website:         https://blocksense.network/
// Git Repository:  https://github.com/blocksense-network/blocksense

/// @title UpgradeableProxyADFS
/// @author Aneta Tsvetkova
/// @notice Implements an upgradeable proxy for the Blocksense
/// Aggregated Data Feed Store (ADFS) contract.
///
/// @dev Non-management calls are delegated to the contract address stored in
/// IMPLEMENTATION_SLOT, which is upgradeable by the admin stored in the
/// ADMIN_SLOT.
///
/// Storage layout:
///   * Management space: [0 to 2**128-2**116)
///   * ADFS data space:  [2**128-2**116 to 2**160)
///
/// This contract intentionally deviates from the EIP-1967 slot scheme.
/// It was co-designed with ADFS to accommodate its custom low-level
/// storage management requirements.
///
/// Note that this deviation has implications on storage isolation and
/// upgrade safety.
contract UpgradeableProxyADFS {
  /// @notice Storage slot for the implementation address.
  /// @dev Non-management calls are delegated to this address.
  bytes32 internal constant IMPLEMENTATION_SLOT =
    0x0000000000000000000000000000000000000000000000000000000000000001;

  /// @notice Storage slot for the admin address of the upgradeable proxy.
  /// @dev This address is authorized to perform management operations, such as
  /// upgrading the implementation.
  bytes32 internal constant ADMIN_SLOT =
    0x0000000000000000000000000000000000000000000000000000000000000002;

  /// @notice The selector for the _upgradeToAndCall function.
  bytes4 internal constant UPGRADE_TO_AND_CALL_SELECTOR = 0x00000001;

  /// @notice The selector for the _setAdmin function.
  bytes4 internal constant SET_ADMIN_SELECTOR = 0x00000002;

  /// @notice Emitted when the implementation is upgraded
  /// @param implementation The new implementation address
  event Upgraded(address indexed implementation);

  /// @notice Emitted when the admin is changed
  /// @param newAdmin The new admin address
  event AdminSet(address indexed newAdmin);

  /// @notice Thrown when a non-admin attempts to perform an admin-only action.
  error ProxyDeniedAdminAccess();

  /// @notice Thrown when attempting to upgrade to an invalid implementation address.
  /// @param value The address that was attempted for upgrade
  error InvalidUpgrade(address value);

  /// @notice Thrown when an upgrade function sees `msg.value > 0` that may be lost.
  error ERC1967NonPayable();

  /// @notice Construct the UpgradeableProxy contract
  /// @param owner The address of the admin
  constructor(address owner) payable {
    _setAdmin(owner);
  }

  /// @notice Fallback function
  /// @dev Fallback function for delegating calls to the implementation contract.
  ///
  /// This function delegates non-management calls to the implementation address.
  ///
  /// Management operations are reserved for calls whose first 4 bytes (msg.sig) equal:
  ///   * 0x00000001 - _upgradeToAndCall(address newImplementation, bytes memory data)
  ///   * 0x00000002 - _setAdmin(address newAdmin)
  /// Only the admin is allowed to execute these management operations;
  /// all others will revert with ProxyDeniedAdminAccess.
  ///
  /// Note: Unlike OpenZeppelin's Transparent Proxy, the admin can invoke both
  /// management functions and delegate calls. The implementation contract is responsible
  /// for enforcing any further security measures.
  ///
  /// Note: The 0x00 prefix in the calldata helps avoid clashes in ADFS' custom
  /// function selector.
  fallback() external payable {
    if (
      msg.sig == UPGRADE_TO_AND_CALL_SELECTOR || msg.sig == SET_ADMIN_SELECTOR
    ) {
      bool isAdmin;

      assembly {
        isAdmin := eq(caller(), sload(ADMIN_SLOT))
      }

      if (!isAdmin) revert ProxyDeniedAdminAccess();

      if (msg.sig == UPGRADE_TO_AND_CALL_SELECTOR) {
        _upgradeToAndCall(address(bytes20(msg.data[4:])), msg.data[24:]);
        return;
      } else if (msg.sig == SET_ADMIN_SELECTOR) {
        _setAdmin(address(bytes20(msg.data[4:])));
        return;
      }
    }

    assembly {
      // Copy msg.data. We take full control of memory in this inline assembly
      // block because it will not return to Solidity code. We overwrite the
      // Solidity scratch pad at memory position 0.
      calldatacopy(0, 0, calldatasize())

      // Call the implementation.
      // out and outsize are 0 because we don't know the size yet.
      let result := delegatecall(
        gas(),
        sload(IMPLEMENTATION_SLOT),
        0,
        calldatasize(),
        0,
        0
      )

      if iszero(result) {
        revert(0, returndatasize())
      }

      // Copy the returned data.
      returndatacopy(0, 0, returndatasize())

      return(0, returndatasize())
    }
  }

  /// @notice Upgrades the implementation to a new contract.
  /// @param newImplementation The address of the new implementation
  /// @dev Validates that the new address contains contract code before
  /// storing.
  function _upgradeToAndCall(
    address newImplementation,
    bytes memory data
  ) internal {
    if (newImplementation.code.length == 0) {
      revert InvalidUpgrade(newImplementation);
    }

    assembly {
      sstore(IMPLEMENTATION_SLOT, newImplementation)
    }
    emit Upgraded(newImplementation);

    if (data.length > 0) {
      assembly {
        let result := delegatecall(
          gas(),
          newImplementation,
          add(data, 0x20),
          mload(data),
          0,
          0
        )
        if iszero(result) {
          revert(0, 0)
        }
      }
    } else if (msg.value > 0) {
      revert ERC1967NonPayable();
    }
  }

  /// @notice Sets a new admin address for the proxy.
  /// @param newAdmin The address of the new admin.
  /// @dev Passing address(0) revokes further upgrade permissions.
  function _setAdmin(address newAdmin) internal {
    assembly {
      sstore(ADMIN_SLOT, newAdmin)
    }
    emit AdminSet(newAdmin);
  }
}

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

Contract ABI

API
[{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"stateMutability":"payable","type":"constructor"},{"inputs":[],"name":"ERC1967NonPayable","type":"error"},{"inputs":[{"internalType":"address","name":"value","type":"address"}],"name":"InvalidUpgrade","type":"error"},{"inputs":[],"name":"ProxyDeniedAdminAccess","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"newAdmin","type":"address"}],"name":"AdminSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"implementation","type":"address"}],"name":"Upgraded","type":"event"},{"stateMutability":"payable","type":"fallback"}]

608060405260405161037d38038061037d8339810160408190526020916068565b602781602c565b506096565b60028190556040516001600160a01b038216907f8fe72c3e0020beb3234e76ae6676fa576fbfcae600af1c4fea44784cf0db329c90600090a250565b600060208284031215607957600080fd5b81516001600160a01b0381168114608f57600080fd5b9392505050565b6102d8806100a56000396000f3fe60806040526000356001600160e01b031916600160e01b148061003157506000356001600160e01b031916600160e11b145b1561011257600254331480610059576040516334ad5dbb60e21b815260040160405180910390fd5b6001600160e01b03196000358116016100d3576100d161007d36600481600061022b565b61008691610255565b60601c61009736601881600061022b565b8080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061013792505050565b005b6001600160e11b03196000356001600160e01b03191601610110576100d16100ff36600481600061022b565b61010891610255565b60601c6101ef565b505b36600080376000803660006001545af48061012c573d6000fd5b503d6000803e3d6000f35b816001600160a01b03163b6000036101715760405163c72492e960e01b81526001600160a01b038316600482015260240160405180910390fd5b60018290556040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a28051156101cc57600080825160208401855af4806101c757600080fd5b505050565b34156101eb5760405163b398979f60e01b815260040160405180910390fd5b5050565b60028190556040516001600160a01b038216907f8fe72c3e0020beb3234e76ae6676fa576fbfcae600af1c4fea44784cf0db329c90600090a250565b6000808585111561023b57600080fd5b8386111561024857600080fd5b5050820193919092039150565b80356bffffffffffffffffffffffff19811690601484101561029b576bffffffffffffffffffffffff196bffffffffffffffffffffffff198560140360031b1b82161691505b509291505056fea2646970667358221220ee6afe6f70e3f9ad43bbba2deef819367c3918c08f465c79969256686fff85b764736f6c634300081c003300000000000000000000000053adbdaa3ee8725de80bf97173b1f1a0a48036de

Deployed Bytecode

0x60806040526000356001600160e01b031916600160e01b148061003157506000356001600160e01b031916600160e11b145b1561011257600254331480610059576040516334ad5dbb60e21b815260040160405180910390fd5b6001600160e01b03196000358116016100d3576100d161007d36600481600061022b565b61008691610255565b60601c61009736601881600061022b565b8080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061013792505050565b005b6001600160e11b03196000356001600160e01b03191601610110576100d16100ff36600481600061022b565b61010891610255565b60601c6101ef565b505b36600080376000803660006001545af48061012c573d6000fd5b503d6000803e3d6000f35b816001600160a01b03163b6000036101715760405163c72492e960e01b81526001600160a01b038316600482015260240160405180910390fd5b60018290556040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a28051156101cc57600080825160208401855af4806101c757600080fd5b505050565b34156101eb5760405163b398979f60e01b815260040160405180910390fd5b5050565b60028190556040516001600160a01b038216907f8fe72c3e0020beb3234e76ae6676fa576fbfcae600af1c4fea44784cf0db329c90600090a250565b6000808585111561023b57600080fd5b8386111561024857600080fd5b5050820193919092039150565b80356bffffffffffffffffffffffff19811690601484101561029b576bffffffffffffffffffffffff196bffffffffffffffffffffffff198560140360031b1b82161691505b509291505056fea2646970667358221220ee6afe6f70e3f9ad43bbba2deef819367c3918c08f465c79969256686fff85b764736f6c634300081c0033

Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)

00000000000000000000000053adbdaa3ee8725de80bf97173b1f1a0a48036de

-----Decoded View---------------
Arg [0] : owner (address): 0x53AdbDAA3EE8725De80Bf97173B1f1A0a48036De

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 00000000000000000000000053adbdaa3ee8725de80bf97173b1f1a0a48036de


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
0xADF5aadbe080819209BF641fDf03748bb495c6f3
Loading...
Loading
Loading...
Loading
[ 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.