Abstract Testnet

Contract

0xADF5aadbe080819209BF641fDf03748bb495c6f3
Source Code
EVM
 

Overview

ETH Balance

0 ETH

More Info

Multichain Info

N/A
Transaction Hash
Method
Block
From
To
Amount
0x01000000158523092025-12-07 15:44:224 secs ago1765122262IN
0xADF5aadb...bb495c6f3
0 ETH0.000016790.025
0x01000000158523082025-12-07 15:44:1115 secs ago1765122251IN
0xADF5aadb...bb495c6f3
0 ETH0.000005360.025
0x01000000158523072025-12-07 15:44:0125 secs ago1765122241IN
0xADF5aadb...bb495c6f3
0 ETH0.000005360.025
0x01000000158523062025-12-07 15:43:5333 secs ago1765122233IN
0xADF5aadb...bb495c6f3
0 ETH0.000011180.025
0x01000000158523042025-12-07 15:43:4442 secs ago1765122224IN
0xADF5aadb...bb495c6f3
0 ETH0.000005360.025
0x01000000158523032025-12-07 15:43:3848 secs ago1765122218IN
0xADF5aadb...bb495c6f3
0 ETH0.000005360.025
0x01000000158523022025-12-07 15:43:3353 secs ago1765122213IN
0xADF5aadb...bb495c6f3
0 ETH0.000040410.025
0x01000000158523002025-12-07 15:43:261 min ago1765122206IN
0xADF5aadb...bb495c6f3
0 ETH0.000174940.025
0x01000000158522982025-12-07 15:43:111 min ago1765122191IN
0xADF5aadb...bb495c6f3
0 ETH0.000005360.025
0x01000000158522962025-12-07 15:43:021 min ago1765122182IN
0xADF5aadb...bb495c6f3
0 ETH0.000005360.025
0x01000000158522942025-12-07 15:42:521 min ago1765122172IN
0xADF5aadb...bb495c6f3
0 ETH0.000011180.025
0x01000000158522922025-12-07 15:42:411 min ago1765122161IN
0xADF5aadb...bb495c6f3
0 ETH0.000005360.025
0x01000000158522882025-12-07 15:42:311 min ago1765122151IN
0xADF5aadb...bb495c6f3
0 ETH0.000005360.025
0x01000000158522872025-12-07 15:42:222 mins ago1765122142IN
0xADF5aadb...bb495c6f3
0 ETH0.000017340.025
0x01000000158522862025-12-07 15:42:122 mins ago1765122132IN
0xADF5aadb...bb495c6f3
0 ETH0.000005360.025
0x01000000158522832025-12-07 15:42:022 mins ago1765122122IN
0xADF5aadb...bb495c6f3
0 ETH0.000005360.025
0x01000000158522822025-12-07 15:41:572 mins ago1765122117IN
0xADF5aadb...bb495c6f3
0 ETH0.000121990.025
0x01000000158522792025-12-07 15:41:412 mins ago1765122101IN
0xADF5aadb...bb495c6f3
0 ETH0.000005360.025
0x01000000158522752025-12-07 15:41:322 mins ago1765122092IN
0xADF5aadb...bb495c6f3
0 ETH0.000005360.025
0x01000000158522732025-12-07 15:41:223 mins ago1765122082IN
0xADF5aadb...bb495c6f3
0 ETH0.000017340.025
0x01000000158522722025-12-07 15:41:113 mins ago1765122071IN
0xADF5aadb...bb495c6f3
0 ETH0.000005360.025
0x01000000158522712025-12-07 15:41:023 mins ago1765122062IN
0xADF5aadb...bb495c6f3
0 ETH0.000005360.025
0x01000000158522692025-12-07 15:40:533 mins ago1765122053IN
0xADF5aadb...bb495c6f3
0 ETH0.000011330.025
0x01000000158522682025-12-07 15:40:463 mins ago1765122046IN
0xADF5aadb...bb495c6f3
0 ETH0.000005360.025
0x01000000158522672025-12-07 15:40:413 mins ago1765122041IN
0xADF5aadb...bb495c6f3
0 ETH0.000005360.025
View all transactions

Latest 25 internal transactions (View All)

Parent Transaction Hash Block From To Amount
158523082025-12-07 15:44:1115 secs ago1765122251
0xADF5aadb...bb495c6f3
0 ETH
158523082025-12-07 15:44:1115 secs ago1765122251
0xADF5aadb...bb495c6f3
0 ETH
158523082025-12-07 15:44:1115 secs ago1765122251
0xADF5aadb...bb495c6f3
0 ETH
158523082025-12-07 15:44:1115 secs ago1765122251
0xADF5aadb...bb495c6f3
0 ETH
158523082025-12-07 15:44:1115 secs ago1765122251
0xADF5aadb...bb495c6f3
0 ETH
158523082025-12-07 15:44:1115 secs ago1765122251
0xADF5aadb...bb495c6f3
0 ETH
158523082025-12-07 15:44:1115 secs ago1765122251
0xADF5aadb...bb495c6f3
0 ETH
158523082025-12-07 15:44:1115 secs ago1765122251
0xADF5aadb...bb495c6f3
0 ETH
158523082025-12-07 15:44:1115 secs ago1765122251
0xADF5aadb...bb495c6f3
0 ETH
158523082025-12-07 15:44:1115 secs ago1765122251
0xADF5aadb...bb495c6f3
0 ETH
158523082025-12-07 15:44:1115 secs ago1765122251
0xADF5aadb...bb495c6f3
0 ETH
158523082025-12-07 15:44:1115 secs ago1765122251
0xADF5aadb...bb495c6f3
0 ETH
158523082025-12-07 15:44:1115 secs ago1765122251
0xADF5aadb...bb495c6f3
0 ETH
158523082025-12-07 15:44:1115 secs ago1765122251
0xADF5aadb...bb495c6f3
0 ETH
158523082025-12-07 15:44:1115 secs ago1765122251
0xADF5aadb...bb495c6f3
0 ETH
158523082025-12-07 15:44:1115 secs ago1765122251
0xADF5aadb...bb495c6f3
0 ETH
158523082025-12-07 15:44:1115 secs ago1765122251
0xADF5aadb...bb495c6f3
0 ETH
158523082025-12-07 15:44:1115 secs ago1765122251
0xADF5aadb...bb495c6f3
0 ETH
158523082025-12-07 15:44:1115 secs ago1765122251
0xADF5aadb...bb495c6f3
0 ETH
158523082025-12-07 15:44:1115 secs ago1765122251
0xADF5aadb...bb495c6f3
0 ETH
158523082025-12-07 15:44:1115 secs ago1765122251
0xADF5aadb...bb495c6f3
0 ETH
158523082025-12-07 15:44:1115 secs ago1765122251
0xADF5aadb...bb495c6f3
0 ETH
158523082025-12-07 15:44:1115 secs ago1765122251
0xADF5aadb...bb495c6f3
0 ETH
158523082025-12-07 15:44:1115 secs ago1765122251
0xADF5aadb...bb495c6f3
0 ETH
158523082025-12-07 15:44:1115 secs ago1765122251
0xADF5aadb...bb495c6f3
0 ETH
View All Internal Transactions
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 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.