Contract

0x62e496FadB33c5B96111B38B6e091c95212D4795

Overview

SOPH Balance

Sophon LogoSophon LogoSophon Logo0 SOPH

SOPH Value

-

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To

There are no matching entries

1 Internal Transaction found.

Latest 1 internal transaction

Parent Transaction Hash Block From To
561132024-12-18 17:37:3179 days ago1734543451  Contract Creation0 SOPH
Loading...
Loading

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

Contract Name:
SafeProxy

Compiler Version
v0.7.6+commit.7338295f

ZkSolc Version
v1.5.4

Optimization Enabled:
Yes with Mode 3

Other Settings:
default evmVersion
File 1 of 1 : SafeProxy.sol
// SPDX-License-Identifier: LGPL-3.0-only
pragma solidity >=0.7.0 <0.9.0;

/**
 * @title IProxy - Helper interface to access the singleton address of the Proxy on-chain.
 * @author Richard Meissner - @rmeissner
 */
interface IProxy {
    function masterCopy() external view returns (address);
}

/**
 * @title SafeProxy - Generic proxy contract allows to execute all transactions applying the code of a master contract.
 * @author Stefan George - <[email protected]>
 * @author Richard Meissner - <[email protected]>
 */
contract SafeProxy {
    // Singleton always needs to be first declared variable, to ensure that it is at the same location in the contracts to which calls are delegated.
    // To reduce deployment costs this variable is internal and needs to be retrieved via `getStorageAt`
    address internal singleton;

    /**
     * @notice Constructor function sets address of singleton contract.
     * @param _singleton Singleton address.
     */
    constructor(address _singleton) {
        require(_singleton != address(0), "Invalid singleton address provided");
        singleton = _singleton;
    }

    /// @dev Fallback function forwards all transactions and returns all received return data.
    fallback() external payable {
        // solhint-disable-next-line no-inline-assembly
        assembly {
            let _singleton := and(sload(0), 0xffffffffffffffffffffffffffffffffffffffff)
            // 0xa619486e == keccak("masterCopy()"). The value is right padded to 32-bytes with 0s
            if eq(calldataload(0), 0xa619486e00000000000000000000000000000000000000000000000000000000) {
                mstore(0, _singleton)
                return(0, 0x20)
            }
            calldatacopy(0, 0, calldatasize())
            let success := delegatecall(gas(), _singleton, 0, calldatasize(), 0, 0)
            returndatacopy(0, 0, returndatasize())
            if eq(success, 0) {
                revert(0, returndatasize())
            }
            return(0, returndatasize())
        }
    }
}

Settings
{
  "optimizer": {
    "enabled": true,
    "mode": "3"
  },
  "outputSelection": {
    "*": {
      "*": [
        "abi"
      ]
    }
  },
  "forceEVMLA": false,
  "detectMissingLibraries": false,
  "enableEraVMExtensions": false,
  "libraries": {}
}

Contract Security Audit

Contract ABI

API
[{"inputs":[{"internalType":"address","name":"_singleton","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"stateMutability":"payable","type":"fallback"}]

Deployed Bytecode

0x00010000000000020000008004000039000000400040043f000000000301001900000060033002700000002e033001970000000100200190000000100000c13d000000000200041a0000003002200197000000000401043b000000360040009c0000004b0000c13d000000000020043f0000003701000041000000b40001042e0000000002000416000000000002004b000000490000c13d0000001f0530018f0000002f0630019800000080026000390000001c0000613d000000000701034f000000007807043c0000000004840436000000000024004b000000180000c13d000000000005004b000000290000613d000000000161034f0000000304500210000000000502043300000000054501cf000000000545022f000000000101043b0000010004400089000000000141022f00000000014101cf000000000151019f00000000001204350000008001300039000000400010043f000000200030008c000000490000413d000000800200043d0000003002200198000000a30000c13d00000033020000410000000000210435000000e40130003900000034020000410000000000210435000000c40130003900000035020000410000000000210435000000a40130003900000022020000390000000000210435000000840130003900000020020000390000000000210435000000400100043d000000000213004900000104022000390000002e0020009c0000002e0200804100000060022002100000002e0010009c0000002e010080410000004001100210000000000112019f000000b5000104300000000001000019000000b5000104300000001f0530018f0000002f04300198000000540000613d000000000601034f0000000007000019000000006806043c0000000007870436000000000047004b000000500000c13d000000000005004b000000610000613d000000000641034f0000000305500210000000000704043300000000075701cf000000000757022f000000000606043b0000010005500089000000000656022f00000000055601cf000000000575019f00000000005404350000000004000414000000040020008c0000007d0000c13d000000000331034f000000000100003100000038021001980000001f0410018f0000006f0000613d000000000503034f0000000006000019000000005705043c0000000006760436000000000026004b0000006b0000c13d000000000004004b0000009f0000613d000000000323034f0000000304400210000000000502043300000000054501cf000000000545022f000000000303043b0000010004400089000000000343022f00000000034301cf000000000353019f00000000003204350000009f0000013d00000060013002100000002e0040009c0000002e04008041000000c003400210000000000113019f00b300ae0000040f000000000301001900000060033002700000001f0530018f0000002e0030019d0000002f043001980000008f0000613d000000000601034f0000000007000019000000006806043c0000000007870436000000000047004b0000008b0000c13d000000000005004b0000009c0000613d000000000141034f0000000305500210000000000604043300000000065601cf000000000656022f000000000101043b0000010005500089000000000151022f00000000015101cf000000000161019f00000000001404350000002e013001970000000100200190000000ac0000613d0000002e0010009c0000002e010080410000006001100210000000b40001042e000000000100041a0000003101100197000000000121019f000000000010041b0000002001000039000001000010044300000120000004430000003201000041000000b40001042e0000006001100210000000b500010430000000b1002104250000000102000039000000000001042d0000000002000019000000000001042d000000b300000432000000b40001042e000000b5000104300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000ffffffff00000000000000000000000000000000000000000000000000000000ffffffe0000000000000000000000000ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0000000000000000000000000000000000000000000000020000000000000000000000000000004000000100000000000000000008c379a0000000000000000000000000000000000000000000000000000000006564000000000000000000000000000000000000000000000000000000000000496e76616c69642073696e676c65746f6e20616464726573732070726f766964a619486e000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000020000000000000000000000000ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe000000000000000000000000000000000000000000000000000000000000000004d3d6ac1ca9bd3d9ab93e603de7967da33803409d7b4500e28f36ce7e4dd5a21

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
[ 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.