Holesky Testnet

Contract

0x3fa99AFEAEf47C44fEC866EC0edB77EC237A1aA1

Overview

ETH Balance

0 ETH

Token Holdings

Multichain Info

N/A
Transaction Hash
Method
Block
From
To
Fill Buy Order31562812025-01-16 9:58:4895 days ago1737021528IN
0x3fa99AFE...C237A1aA1
0 ETH0.001121193.78176609
Create Buy Order31561252025-01-16 9:25:1295 days ago1737019512IN
0x3fa99AFE...C237A1aA1
0 ETH0.001326144.67580791
Cancel Sell Orde...31553082025-01-16 6:30:2496 days ago1737009024IN
0x3fa99AFE...C237A1aA1
0 ETH0.000648132.51588473
Create Buy Order31550952025-01-16 5:44:4896 days ago1737006288IN
0x3fa99AFE...C237A1aA1
0 ETH0.000712342.51164925
Create Sell Orde...31550652025-01-16 5:38:3696 days ago1737005916IN
0x3fa99AFE...C237A1aA1
0 ETH0.001013292.50978271
Create Sell Orde...31549432025-01-16 5:12:2496 days ago1737004344IN
0x3fa99AFE...C237A1aA1
0 ETH0.00101152.50534772
Create Buy Order31499842025-01-15 11:22:3696 days ago1736940156IN
0x3fa99AFE...C237A1aA1
0 ETH0.001058493.73212853
Fill Sell Order31494652025-01-15 9:33:2496 days ago1736933604IN
0x3fa99AFE...C237A1aA1
0 ETH0.00128734.34202408
Create Sell Orde...31493552025-01-15 9:09:2497 days ago1736932164IN
0x3fa99AFE...C237A1aA1
0 ETH0.001302823.22690883
Create Buy Order31493502025-01-15 9:08:1297 days ago1736932092IN
0x3fa99AFE...C237A1aA1
0 ETH0.000922413.25233235
Create Buy Order31493472025-01-15 9:07:2497 days ago1736932044IN
0x3fa99AFE...C237A1aA1
0 ETH0.000970973.42354607
Fill Buy Order31485872025-01-15 6:20:0097 days ago1736922000IN
0x3fa99AFE...C237A1aA1
0 ETH0.000790712.66706404
Fill Sell Order31485742025-01-15 6:17:1297 days ago1736921832IN
0x3fa99AFE...C237A1aA1
0 ETH0.000811782.73811455
Create Sell Orde...31483082025-01-15 5:17:2497 days ago1736918244IN
0x3fa99AFE...C237A1aA1
0 ETH0.001012892.50879803
Create Buy Order31482952025-01-15 5:14:2497 days ago1736918064IN
0x3fa99AFE...C237A1aA1
0 ETH0.000710852.50637545
Create Buy Order31481542025-01-15 4:43:4897 days ago1736916228IN
0x3fa99AFE...C237A1aA1
0 ETH0.000711462.50852014
Create Buy Order31481512025-01-15 4:43:1297 days ago1736916192IN
0x3fa99AFE...C237A1aA1
0 ETH0.000711832.50983291
Fill Buy Order31435952025-01-14 12:29:4897 days ago1736857788IN
0x3fa99AFE...C237A1aA1
0 ETH0.000741182.50000002
Create Buy Order31435862025-01-14 12:27:2497 days ago1736857644IN
0x3fa99AFE...C237A1aA1
0 ETH0.000709042.50000002
Create Sell Orde...31435202025-01-14 12:13:1297 days ago1736856792IN
0x3fa99AFE...C237A1aA1
0 ETH0.001009342.50000001
Create Buy Order31427812025-01-14 9:33:1297 days ago1736847192IN
0x3fa99AFE...C237A1aA1
0 ETH0.000709042.50000001
Create Sell Orde...31426572025-01-14 9:06:3698 days ago1736845596IN
0x3fa99AFE...C237A1aA1
0 ETH0.001009342.50000001
Create Buy Order31426512025-01-14 9:05:2498 days ago1736845524IN
0x3fa99AFE...C237A1aA1
0 ETH0.000708952.50000002
Create Buy Order31417222025-01-14 5:47:4898 days ago1736833668IN
0x3fa99AFE...C237A1aA1
0 ETH0.000708982.50000001
Create Sell Orde...31416842025-01-14 5:40:1298 days ago1736833212IN
0x3fa99AFE...C237A1aA1
0 ETH0.001009342.50000001
View all transactions

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading

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

Contract Name:
P2PProxy

Compiler Version
v0.8.20+commit.a1b79de6

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 1 : P2PProxy.sol
// SPDX-License-Identifier: Apache-2.0

pragma solidity ^0.8.0; 


/**
 * @title P2PProxy
 * @dev This contract combines an upgradeability proxy with basic authorization control functionalities
 */
 
contract P2PProxy {
    /**
     * @dev Event to show ownership has been transferred
     * @param previousOwner representing the address of the previous owner
     * @param newOwner representing the address of the new owner
     */
    event ProxyOwnershipTransferred(address previousOwner, address newOwner);

    /**
     * @dev This event will be emitted every time the implementation gets upgraded
     * @param implementation representing the address of the upgraded implementation
     */
    event Upgraded(address indexed implementation);

    // Storage position of the address of the maintenance boolean
    bytes32 private constant maintenancePosition = keccak256("com.proxy.maintenance");
    // Storage position of the address of the current implementation
    bytes32 private constant implementationPosition = keccak256("com.proxy.implementation");
    // Storage position of the owner of the contract
    bytes32 private constant proxyOwnerPosition = keccak256("com.proxy.owner");

    /**
     * @dev the constructor sets the original owner of the contract to the sender account.
     */
    constructor() {
        setUpgradeabilityOwner(msg.sender);
    }

    /**
     * @dev Tells if contract is on maintenance
     * @return _maintenance if contract is on maintenance
     */
    function maintenance() public view returns (bool _maintenance) {
        bytes32 position = maintenancePosition;
        assembly {
            _maintenance := sload(position)
        }
    }

    /**
     * @dev Sets if contract is on maintenance
     */
    function setMaintenance(bool _maintenance) external onlyProxyOwner {
        bytes32 position = maintenancePosition;
        assembly {
            sstore(position, _maintenance)
        }
    }

    /**
     * @dev Tells the address of the owner
     * @return owner the address of the owner
     */
    function proxyOwner() public view returns (address owner) {
        bytes32 position = proxyOwnerPosition;
        assembly {
            owner := sload(position)
        }
    }

    /**
     * @dev Sets the address of the owner
     */
    function setUpgradeabilityOwner(address newProxyOwner) internal {
        bytes32 position = proxyOwnerPosition;
        assembly {
            sstore(position, newProxyOwner)
        }
    }

    /**
     * @dev Allows the current owner to transfer control of the contract to a newOwner.
     * @param newOwner The address to transfer ownership to.
     */
    function transferProxyOwnership(address newOwner) public onlyProxyOwner {
        require(newOwner != address(0), 'OwnedUpgradeabilityProxy: INVALID');
        emit ProxyOwnershipTransferred(proxyOwner(), newOwner);
        setUpgradeabilityOwner(newOwner);
    }

    /*
     * @dev Allows the proxy owner to upgrade the current version of the proxy.
     * @param implementation representing the address of the new implementation to be set.
     */
    function upgradeTo(address newImplementation) public onlyProxyOwner {
        _upgradeTo(newImplementation);
    }

    /*
     * @dev Allows the proxy owner to upgrade the current version of the proxy and call the new implementation
     * to initialize whatever is needed through a low level call.
     * @param implementation representing the address of the new implementation to be set.
     * @param data represents the msg.data to bet sent in the low level call. This parameter may include the function
     * signature of the implementation to be called with the needed payload
     */
    function upgradeToAndCall(address newImplementation, bytes memory data) payable public onlyProxyOwner {
        upgradeTo(newImplementation);
        (bool success, ) = address(this).call{ value: msg.value }(data);
        require(success, "OwnedUpgradeabilityProxy: INVALID");
    }

    /**
     * @dev Fallback function allowing to perform a delegatecall to the given implementation.
     * This function will return whatever the implementation call returns
     */
    fallback() external payable {
        _fallback();
    }

    receive () external payable {
        _fallback();
    }

    /**
     * @dev Tells the address of the current implementation
     * @return impl address of the current implementation
     */
    function implementation() public view returns (address impl) {
        bytes32 position = implementationPosition;
        assembly {
            impl := sload(position)
        }
    }

    /**
     * @dev Sets the address of the current implementation
     * @param newImplementation address representing the new implementation to be set
     */
    function setImplementation(address newImplementation) internal {
        bytes32 position = implementationPosition;
        assembly {
            sstore(position, newImplementation)
        }
    }

    /**
     * @dev Upgrades the implementation address
     * @param newImplementation representing the address of the new implementation to be set
     */
    function _upgradeTo(address newImplementation) internal {
        address currentImplementation = implementation();
        require(currentImplementation != newImplementation, 'OwnedUpgradeabilityProxy: INVALID');
        setImplementation(newImplementation);
        emit Upgraded(newImplementation);
    }

    function _fallback() internal {
        if (maintenance()) {
            require(msg.sender == proxyOwner(), 'OwnedUpgradeabilityProxy: FORBIDDEN');
        }
        address _impl = implementation();
        require(_impl != address(0), 'OwnedUpgradeabilityProxy: INVALID');
        assembly {
            let ptr := mload(0x40)
            calldatacopy(ptr, 0, calldatasize())
            let result := delegatecall(gas(), _impl, ptr, calldatasize(), 0, 0)
            let size := returndatasize()
            returndatacopy(ptr, 0, size)

            switch result
            case 0 { revert(ptr, size) }
            default { return(ptr, size) }
        }
    }

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyProxyOwner() {
        require(msg.sender == proxyOwner(), 'OwnedUpgradeabilityProxy: FORBIDDEN');
        _;
    }
}

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

Contract ABI

API
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":false,"internalType":"address","name":"newOwner","type":"address"}],"name":"ProxyOwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"implementation","type":"address"}],"name":"Upgraded","type":"event"},{"stateMutability":"payable","type":"fallback"},{"inputs":[],"name":"implementation","outputs":[{"internalType":"address","name":"impl","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maintenance","outputs":[{"internalType":"bool","name":"_maintenance","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"proxyOwner","outputs":[{"internalType":"address","name":"owner","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bool","name":"_maintenance","type":"bool"}],"name":"setMaintenance","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferProxyOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newImplementation","type":"address"}],"name":"upgradeTo","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newImplementation","type":"address"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"upgradeToAndCall","outputs":[],"stateMutability":"payable","type":"function"},{"stateMutability":"payable","type":"receive"}]

Deployed Bytecode

0x608060405260043610610073575f3560e01c80635c60da1b1161004d5780635c60da1b146100f5578063612f2f37146101155780636c376cc514610134578063f1739cae1461017257610082565b8063025313a21461008a5780633659cfe6146100c35780634f1ef286146100e257610082565b3661008257610080610191565b005b610080610191565b348015610095575f80fd5b505f80516020610717833981519152545b6040516001600160a01b0390911681526020015b60405180910390f35b3480156100ce575f80fd5b506100806100dd366004610557565b610260565b6100806100f036600461058b565b6102ab565b348015610100575f80fd5b505f80516020610737833981519152546100a6565b348015610120575f80fd5b5061008061012f366004610647565b610372565b34801561013f575f80fd5b507fce60c5db904241f4fe710c6b7d7c2e6f59bb4f2afc9ad1549ac9b29eb7f522b65460405190151581526020016100ba565b34801561017d575f80fd5b5061008061018c366004610557565b6103d5565b7fce60c5db904241f4fe710c6b7d7c2e6f59bb4f2afc9ad1549ac9b29eb7f522b65415610200575f80516020610717833981519152546001600160a01b0316336001600160a01b0316146102005760405162461bcd60e51b81526004016101f790610666565b60405180910390fd5b5f6102165f805160206107378339815191525490565b90506001600160a01b03811661023e5760405162461bcd60e51b81526004016101f7906106a9565b604051365f82375f803683855af43d805f843e81801561025c578184f35b8184fd5b5f80516020610717833981519152546001600160a01b0316336001600160a01b03161461029f5760405162461bcd60e51b81526004016101f790610666565b6102a8816104a7565b50565b5f80516020610717833981519152546001600160a01b0316336001600160a01b0316146102ea5760405162461bcd60e51b81526004016101f790610666565b6102f382610260565b5f306001600160a01b0316348360405161030d91906106ea565b5f6040518083038185875af1925050503d805f8114610347576040519150601f19603f3d011682016040523d82523d5f602084013e61034c565b606091505b505090508061036d5760405162461bcd60e51b81526004016101f7906106a9565b505050565b5f80516020610717833981519152546001600160a01b0316336001600160a01b0316146103b15760405162461bcd60e51b81526004016101f790610666565b7fce60c5db904241f4fe710c6b7d7c2e6f59bb4f2afc9ad1549ac9b29eb7f522b655565b5f80516020610717833981519152546001600160a01b0316336001600160a01b0316146104145760405162461bcd60e51b81526004016101f790610666565b6001600160a01b03811661043a5760405162461bcd60e51b81526004016101f7906106a9565b7f5a3e66efaa1e445ebd894728a69d6959842ea1e97bd79b892797106e270efcd96104705f805160206107178339815191525490565b604080516001600160a01b03928316815291841660208301520160405180910390a16102a8815f8051602061071783398151915255565b5f6104bd5f805160206107378339815191525490565b9050816001600160a01b0316816001600160a01b0316036104f05760405162461bcd60e51b81526004016101f7906106a9565b610505825f8051602061073783398151915255565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a25050565b80356001600160a01b0381168114610552575f80fd5b919050565b5f60208284031215610567575f80fd5b6105708261053c565b9392505050565b634e487b7160e01b5f52604160045260245ffd5b5f806040838503121561059c575f80fd5b6105a58361053c565b9150602083013567ffffffffffffffff808211156105c1575f80fd5b818501915085601f8301126105d4575f80fd5b8135818111156105e6576105e6610577565b604051601f8201601f19908116603f0116810190838211818310171561060e5761060e610577565b81604052828152886020848701011115610626575f80fd5b826020860160208301375f6020848301015280955050505050509250929050565b5f60208284031215610657575f80fd5b81358015158114610570575f80fd5b60208082526023908201527f4f776e6564557067726164656162696c69747950726f78793a20464f524249446040820152622222a760e91b606082015260800190565b60208082526021908201527f4f776e6564557067726164656162696c69747950726f78793a20494e56414c496040820152601160fa1b606082015260800190565b5f82515f5b8181101561070957602081860181015185830152016106ef565b505f92019182525091905056fe85bd7031deaf76b80f9733e7da132fe310adf86a8e73260691b76988b4b7e35df968882b178b4a61d620bde63916829c95f3e1b54eb01ef03837ff1b870f4076a2646970667358221220564fa2bb20b28db1013ff955266e0244e482a6c963f7ec517201c712ad4d1c4f64736f6c63430008140033

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading
Loading...
Loading
[ Download: CSV Export  ]

A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.