More Info
Private Name Tags
ContractCreator
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Loading...
Loading
This contract may be a proxy contract. Click on More Options and select Is this a proxy? to confirm and enable the "Read as Proxy" & "Write as Proxy" tabs.
Similar Match Source Code This contract matches the deployed Bytecode of the Source Code for Contract 0x33333333...cec2797AE The constructor portion of the code might be different and could alter the actual behaviour of the contract
Contract Name:
GnosisSafeProxy
Compiler Version
v0.7.6+commit.7338295f
Contract Source Code (Solidity)
/** *Submitted for verification at berascan.com on 2025-02-07 */ /** *Submitted for verification at Etherscan.io on 2021-07-09 */ // SPDX-License-Identifier: LGPL-3.0-only pragma solidity >=0.7.0 <0.9.0; /// @title IProxy - Helper interface to access masterCopy of the Proxy on-chain /// @author Richard Meissner - <[email protected]> interface IProxy { function masterCopy() external view returns (address); } /// @title GnosisSafeProxy - 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 GnosisSafeProxy { // 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; /// @dev 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()) } } } /// @title Proxy Factory - Allows to create new proxy contact and execute a message call to the new proxy within one transaction. /// @author Stefan George - <[email protected]> contract GnosisSafeProxyFactory { event ProxyCreation(GnosisSafeProxy proxy, address singleton); /// @dev Allows to create new proxy contact and execute a message call to the new proxy within one transaction. /// @param singleton Address of singleton contract. /// @param data Payload for message call sent to new proxy contract. function createProxy(address singleton, bytes memory data) public returns (GnosisSafeProxy proxy) { proxy = new GnosisSafeProxy(singleton); if (data.length > 0) // solhint-disable-next-line no-inline-assembly assembly { if eq(call(gas(), proxy, 0, add(data, 0x20), mload(data), 0, 0), 0) { revert(0, 0) } } emit ProxyCreation(proxy, singleton); } /// @dev Allows to retrieve the runtime code of a deployed Proxy. This can be used to check that the expected Proxy was deployed. function proxyRuntimeCode() public pure returns (bytes memory) { return type(GnosisSafeProxy).runtimeCode; } /// @dev Allows to retrieve the creation code used for the Proxy deployment. With this it is easily possible to calculate predicted address. function proxyCreationCode() public pure returns (bytes memory) { return type(GnosisSafeProxy).creationCode; } /// @dev Allows to create new proxy contact using CREATE2 but it doesn't run the initializer. /// This method is only meant as an utility to be called from other methods /// @param _singleton Address of singleton contract. /// @param initializer Payload for message call sent to new proxy contract. /// @param saltNonce Nonce that will be used to generate the salt to calculate the address of the new proxy contract. function deployProxyWithNonce( address _singleton, bytes memory initializer, uint256 saltNonce ) internal returns (GnosisSafeProxy proxy) { // If the initializer changes the proxy address should change too. Hashing the initializer data is cheaper than just concatinating it bytes32 salt = keccak256(abi.encodePacked(keccak256(initializer), saltNonce)); bytes memory deploymentData = abi.encodePacked(type(GnosisSafeProxy).creationCode, uint256(uint160(_singleton))); // solhint-disable-next-line no-inline-assembly assembly { proxy := create2(0x0, add(0x20, deploymentData), mload(deploymentData), salt) } require(address(proxy) != address(0), "Create2 call failed"); } /// @dev Allows to create new proxy contact and execute a message call to the new proxy within one transaction. /// @param _singleton Address of singleton contract. /// @param initializer Payload for message call sent to new proxy contract. /// @param saltNonce Nonce that will be used to generate the salt to calculate the address of the new proxy contract. function createProxyWithNonce( address _singleton, bytes memory initializer, uint256 saltNonce ) public returns (GnosisSafeProxy proxy) { proxy = deployProxyWithNonce(_singleton, initializer, saltNonce); if (initializer.length > 0) // solhint-disable-next-line no-inline-assembly assembly { if eq(call(gas(), proxy, 0, add(initializer, 0x20), mload(initializer), 0, 0), 0) { revert(0, 0) } } emit ProxyCreation(proxy, _singleton); } /// @dev Allows to create new proxy contact, execute a message call to the new proxy and call a specified callback within one transaction /// @param _singleton Address of singleton contract. /// @param initializer Payload for message call sent to new proxy contract. /// @param saltNonce Nonce that will be used to generate the salt to calculate the address of the new proxy contract. /// @param callback Callback that will be invoced after the new proxy contract has been successfully deployed and initialized. function createProxyWithCallback( address _singleton, bytes memory initializer, uint256 saltNonce, IProxyCreationCallback callback ) public returns (GnosisSafeProxy proxy) { uint256 saltNonceWithCallback = uint256(keccak256(abi.encodePacked(saltNonce, callback))); proxy = createProxyWithNonce(_singleton, initializer, saltNonceWithCallback); if (address(callback) != address(0)) callback.proxyCreated(proxy, _singleton, initializer, saltNonce); } /// @dev Allows to get the address for a new proxy contact created via `createProxyWithNonce` /// This method is only meant for address calculation purpose when you use an initializer that would revert, /// therefore the response is returned with a revert. When calling this method set `from` to the address of the proxy factory. /// @param _singleton Address of singleton contract. /// @param initializer Payload for message call sent to new proxy contract. /// @param saltNonce Nonce that will be used to generate the salt to calculate the address of the new proxy contract. function calculateCreateProxyWithNonceAddress( address _singleton, bytes calldata initializer, uint256 saltNonce ) external returns (GnosisSafeProxy proxy) { proxy = deployProxyWithNonce(_singleton, initializer, saltNonce); revert(string(abi.encodePacked(proxy))); } } interface IProxyCreationCallback { function proxyCreated( GnosisSafeProxy proxy, address _singleton, bytes calldata initializer, uint256 saltNonce ) external; }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[{"internalType":"address","name":"_singleton","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"stateMutability":"payable","type":"fallback"}]
Deployed Bytecode
0x608060405273ffffffffffffffffffffffffffffffffffffffff600054167fa619486e0000000000000000000000000000000000000000000000000000000060003514156050578060005260206000f35b3660008037600080366000845af43d6000803e60008114156070573d6000fd5b3d6000f3fea2646970667358221220d1429297349653a4918076d650332de1a1068c5f3e07c5c82360c277770b955264736f6c63430007060033
Deployed Bytecode Sourcemap
595:1528:0:-:0;;;1447:42;1443:1;1437:8;1433:57;1627:66;1623:1;1610:15;1607:87;1604:2;;;1724:10;1721:1;1714:21;1763:4;1760:1;1753:15;1604:2;1816:14;1813:1;1810;1797:34;1914:1;1911;1895:14;1892:1;1880:10;1873:5;1860:56;1951:16;1948:1;1945;1930:38;1997:1;1988:7;1985:14;1982:2;;;2029:16;2026:1;2019:27;1982:2;2085:16;2082:1;2075:27
Swarm Source
ipfs://d1429297349653a4918076d650332de1a1068c5f3e07c5c82360c277770b9552
Latest 25 blocks (From a total of 140,300 blocks with 525.64 BERA in fees)
Block | Transaction | Gas Used | Reward | |
---|---|---|---|---|
4088228 | 36 secs ago | 26 | 7,240,156 (24.13%) | 0.026114352155459915 BERA |
4088204 | 1 min ago | 46 | 8,824,067 (29.41%) | 0.014554582335165662 BERA |
4088183 | 2 mins ago | 14 | 6,390,536 (21.30%) | 0.002088399590505401 BERA |
4088161 | 2 mins ago | 5 | 2,353,781 (7.85%) | 0.00065176146861555 BERA |
4088139 | 3 mins ago | 5 | 1,683,007 (5.61%) | 0.000658912358063228 BERA |
4088117 | 4 mins ago | 3 | 259,077 (0.86%) | 0.0003886155 BERA |
4088094 | 5 mins ago | 1 | 98,440 (0.33%) | 0.00014766 BERA |
4088072 | 5 mins ago | 4 | 1,742,075 (5.81%) | 0.00065366385 BERA |
4088049 | 6 mins ago | 6 | 2,484,417 (8.28%) | 0.001414503792573372 BERA |
4088027 | 7 mins ago | 5 | 1,292,267 (4.31%) | 0.00073639945 BERA |
4088005 | 8 mins ago | 3 | 1,235,643 (4.12%) | 0.0006780245 BERA |
4087982 | 8 mins ago | 2 | 954,247 (3.18%) | 0.0005779605 BERA |
4087958 | 9 mins ago | 1 | 1,281,124 (4.27%) | 0.000640562 BERA |
4087934 | 10 mins ago | 2 | 857,141 (2.86%) | 0.000128571331212492 BERA |
4087912 | 11 mins ago | 2 | 1,502,226 (5.01%) | 0.00051506705 BERA |
4087889 | 11 mins ago | 2 | 71,975 (0.24%) | 0.000029031321339375 BERA |
4087868 | 12 mins ago | 0 | 0 (0.00%) | 0 BERA |
4087846 | 13 mins ago | 3 | 1,724,459 (5.75%) | 0.00052110049302404 BERA |
4087825 | 14 mins ago | 1 | 853,422 (2.84%) | 0.000426711 BERA |
4087800 | 14 mins ago | 1 | 853,422 (2.84%) | 0.000426711 BERA |
4087779 | 15 mins ago | 3 | 835,121 (2.78%) | 0.00034267215 BERA |
4087755 | 16 mins ago | 4 | 1,224,891 (4.08%) | 0.00049321895134995 BERA |
4087731 | 17 mins ago | 31 | 8,039,217 (26.80%) | 0.01093384763612242 BERA |
4087711 | 17 mins ago | 3 | 1,483,085 (4.94%) | 0.00050547975 BERA |
4087688 | 18 mins ago | 1 | 674,465 (2.25%) | 0.00010116975 BERA |
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 34 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|---|---|---|---|---|
BASE | 84.58% | $0.027054 | 2,334,652.6078 | $63,160.85 | |
BASE | 5.98% | $0.278718 | 16,009.8011 | $4,462.22 | |
BASE | 0.05% | $1,799.85 | 0.02 | $36 | |
BERA | 2.62% | $3.72 | 525.7484 | $1,957.15 | |
BERA | 2.24% | $5.63 | 297.5425 | $1,675.16 | |
BERA | 2.00% | $3.72 | 401.2381 | $1,492.61 | |
BERA | 1.81% | $5.92 | 228.6245 | $1,353.46 | |
BERA | 0.43% | $1.01 | 316.0059 | $317.59 | |
BERA | 0.23% | $1 | 174.0464 | $174.05 | |
BERA | 0.03% | $0.999756 | 25.9839 | $25.98 | |
ETH | 0.02% | $1,802.07 | 0.00989527 | $17.83 |
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.