ETH Price: $2,337.00 (-6.92%)
Gas: 1.64 Gwei

Contract

0x452C31d60883F0CB51744Ab9fd01685d7443CA6f
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Deploy And Call194703052024-03-19 17:33:59344 days ago1710869639IN
0x452C31d6...d7443CA6f
0 ETH0.0342352139.91337341
Deploy And Call193389982024-03-01 8:01:23362 days ago1709280083IN
0x452C31d6...d7443CA6f
0 ETH0.0198076947.01297752
Deploy And Call192703592024-02-20 17:20:11372 days ago1708449611IN
0x452C31d6...d7443CA6f
0 ETH0.0232309547.52485279
Deploy And Call192305602024-02-15 3:09:47377 days ago1707966587IN
0x452C31d6...d7443CA6f
0 ETH0.0082629419.23919935
Deploy And Call191431882024-02-02 20:47:47390 days ago1706906867IN
0x452C31d6...d7443CA6f
0 ETH0.0017283716.11413813
Deploy And Call191431882024-02-02 20:47:47390 days ago1706906867IN
0x452C31d6...d7443CA6f
0 ETH0.0017283716.11413813
Deploy And Call191431882024-02-02 20:47:47390 days ago1706906867IN
0x452C31d6...d7443CA6f
0 ETH0.0017367616.11413813
Deploy And Call190936372024-01-26 22:05:11396 days ago1706306711IN
0x452C31d6...d7443CA6f
0 ETH0.0054211812.21043114
Deploy And Call190931022024-01-26 20:17:35397 days ago1706300255IN
0x452C31d6...d7443CA6f
0 ETH0.0077946915.15235989
Deploy And Call190930992024-01-26 20:16:59397 days ago1706300219IN
0x452C31d6...d7443CA6f
0 ETH0.0092183916.25544797
Deploy And Call188667262023-12-26 1:54:23428 days ago1703555663IN
0x452C31d6...d7443CA6f
0 ETH0.004684411.38070423
Deploy And Call184837412023-11-02 10:14:47482 days ago1698920087IN
0x452C31d6...d7443CA6f
0 ETH0.0091601618.78877364
Deploy And Call184837412023-11-02 10:14:47482 days ago1698920087IN
0x452C31d6...d7443CA6f
0 ETH0.0091698718.78877364
Deploy And Call179393042023-08-18 4:29:59558 days ago1692332999IN
0x452C31d6...d7443CA6f
0 ETH0.0091345522.17522193
Deploy And Call179155802023-08-14 20:49:59562 days ago1692046199IN
0x452C31d6...d7443CA6f
0 ETH0.009777325.88355971
Deploy And Call171963042023-05-05 18:46:11663 days ago1683312371IN
0x452C31d6...d7443CA6f
0 ETH0.05063618160.13924228
Deploy And Call171925702023-05-05 6:12:23663 days ago1683267143IN
0x452C31d6...d7443CA6f
0 ETH0.0331940876.97911414
Deploy And Call171461042023-04-28 17:26:47670 days ago1682702807IN
0x452C31d6...d7443CA6f
0 ETH0.014711637.41173849
Deploy And Call171204972023-04-25 3:06:35673 days ago1682391995IN
0x452C31d6...d7443CA6f
0 ETH0.0111507133.79159433
Deploy And Call171154812023-04-24 10:14:23674 days ago1682331263IN
0x452C31d6...d7443CA6f
0 ETH0.0135183938.00792425
Deploy And Call171067972023-04-23 5:00:11675 days ago1682226011IN
0x452C31d6...d7443CA6f
0 ETH0.0034714332.36528553
Deploy And Call171067972023-04-23 5:00:11675 days ago1682226011IN
0x452C31d6...d7443CA6f
0 ETH0.0034882932.36528553
Deploy And Call170779052023-04-19 3:10:35679 days ago1681873835IN
0x452C31d6...d7443CA6f
0 ETH0.0144167346.25953219
Deploy And Call170465542023-04-14 16:23:59684 days ago1681489439IN
0x452C31d6...d7443CA6f
0 ETH0.0115936129.90103346
Deploy And Call170465532023-04-14 16:23:47684 days ago1681489427IN
0x452C31d6...d7443CA6f
0 ETH0.0101927230.89452303
View all transactions

Latest 25 internal transactions (View All)

Advanced mode:
Parent Transaction Hash Block
From
To
194703052024-03-19 17:33:59344 days ago1710869639
0x452C31d6...d7443CA6f
0 ETH
194703052024-03-19 17:33:59344 days ago1710869639
0x452C31d6...d7443CA6f
0 ETH
193389982024-03-01 8:01:23362 days ago1709280083
0x452C31d6...d7443CA6f
0 ETH
193389982024-03-01 8:01:23362 days ago1709280083
0x452C31d6...d7443CA6f
0 ETH
192703592024-02-20 17:20:11372 days ago1708449611
0x452C31d6...d7443CA6f
0 ETH
192703592024-02-20 17:20:11372 days ago1708449611
0x452C31d6...d7443CA6f
0 ETH
192305602024-02-15 3:09:47377 days ago1707966587
0x452C31d6...d7443CA6f
0 ETH
192305602024-02-15 3:09:47377 days ago1707966587
0x452C31d6...d7443CA6f
0 ETH
191431882024-02-02 20:47:47390 days ago1706906867
0x452C31d6...d7443CA6f
0 ETH
191431882024-02-02 20:47:47390 days ago1706906867
0x452C31d6...d7443CA6f
0 ETH
191431882024-02-02 20:47:47390 days ago1706906867
0x452C31d6...d7443CA6f
0 ETH
191431882024-02-02 20:47:47390 days ago1706906867
0x452C31d6...d7443CA6f
0 ETH
190936372024-01-26 22:05:11396 days ago1706306711
0x452C31d6...d7443CA6f
0 ETH
190936372024-01-26 22:05:11396 days ago1706306711
0x452C31d6...d7443CA6f
0 ETH
190931022024-01-26 20:17:35397 days ago1706300255
0x452C31d6...d7443CA6f
0 ETH
190931022024-01-26 20:17:35397 days ago1706300255
0x452C31d6...d7443CA6f
0 ETH
190930992024-01-26 20:16:59397 days ago1706300219
0x452C31d6...d7443CA6f
0 ETH
190930992024-01-26 20:16:59397 days ago1706300219
0x452C31d6...d7443CA6f
0 ETH
188667262023-12-26 1:54:23428 days ago1703555663
0x452C31d6...d7443CA6f
0 ETH
188667262023-12-26 1:54:23428 days ago1703555663
0x452C31d6...d7443CA6f
0 ETH
184837412023-11-02 10:14:47482 days ago1698920087
0x452C31d6...d7443CA6f
0 ETH
184837412023-11-02 10:14:47482 days ago1698920087
0x452C31d6...d7443CA6f
0 ETH
184837412023-11-02 10:14:47482 days ago1698920087
0x452C31d6...d7443CA6f
0 ETH
179393042023-08-18 4:29:59558 days ago1692332999
0x452C31d6...d7443CA6f
0 ETH
179393042023-08-18 4:29:59558 days ago1692332999
0x452C31d6...d7443CA6f
0 ETH
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
DeployAndCall

Compiler Version
v0.8.10+commit.fc410830

Optimization Enabled:
Yes with 800 runs

Other Settings:
default evmVersion
File 1 of 2 : DeployAndCall.sol
// SPDX-License-Identifier: GPL-3.0-or-later
pragma solidity =0.8.10;
pragma abicoder v1;

/**
 *    ,,                           ,,                                
 *   *MM                           db                      `7MM      
 *    MM                                                     MM      
 *    MM,dMMb.      `7Mb,od8     `7MM      `7MMpMMMb.        MM  ,MP'
 *    MM    `Mb       MM' "'       MM        MM    MM        MM ;Y   
 *    MM     M8       MM           MM        MM    MM        MM;Mm   
 *    MM.   ,M9       MM           MM        MM    MM        MM `Mb. 
 *    P^YbmdP'      .JMML.       .JMML.    .JMML  JMML.    .JMML. YA.
 *
 *    DeployAndCall.sol :: 0x452C31d60883F0CB51744Ab9fd01685d7443CA6f
 *    etherscan.io verified 2021-12-18
 */ 

import "../Account/AccountFactory.sol";

/// @title DeployAndCall
/// @notice This contract contains a function to batch account deploy and call into one transaction
contract DeployAndCall {
  /// @dev The AccountFactory to use for account deployments
  AccountFactory constant ACCOUNT_FACTORY = AccountFactory(0xe925f84cA9Dd5b3844fC424861D7bDf9485761B6);

  /// @dev Deploys an account for the given owner and executes callData on the account
  /// @param owner Address of the account owner
  /// @param callData The call to execute on the account after deployment
  function deployAndCall(address owner, bytes memory callData) external payable {
    address account = ACCOUNT_FACTORY.deployAccount(owner);

    if (callData.length > 0) {
      assembly {
        let result := call(gas(), account, callvalue(), add(callData, 0x20), mload(callData), 0, 0)
        returndatacopy(0, 0, returndatasize())
        switch result
        case 0 {
          revert(0, returndatasize())
        }
        default {
          return(0, returndatasize())
        }
      }
    }
  }
}

File 2 of 2 : AccountFactory.sol
// SPDX-License-Identifier: GPL-3.0-or-later
pragma solidity =0.8.10;
pragma abicoder v1;

/**
 *    ,,                           ,,                                
 *   *MM                           db                      `7MM      
 *    MM                                                     MM      
 *    MM,dMMb.      `7Mb,od8     `7MM      `7MMpMMMb.        MM  ,MP'
 *    MM    `Mb       MM' "'       MM        MM    MM        MM ;Y   
 *    MM     M8       MM           MM        MM    MM        MM;Mm   
 *    MM.   ,M9       MM           MM        MM    MM        MM `Mb. 
 *    P^YbmdP'      .JMML.       .JMML.    .JMML  JMML.    .JMML. YA.
 *
 *    AccountFactory.sol :: 0xe925f84cA9Dd5b3844fC424861D7bDf9485761B6
 *    etherscan.io verified 2021-12-18
 */ 

/// @title Brink account factory
/// @notice This is a factory contract used for deployment of Brink proxy accounts
contract AccountFactory {
  error DeployFailed();

  /// @dev Deploys a Proxy account for the given owner
  /// @param owner Owner of the Proxy account
  /// @return account Address of the deployed Proxy account
  /// @notice This deploys a "minimal proxy" contract with the proxy owner address added to the deployed bytecode. The
  /// owner address can be read within a delegatecall by using `extcodecopy`. Minimal proxy bytecode is from
  /// https://medium.com/coinmonks/the-more-minimal-proxy-5756ae08ee48 and https://eips.ethereum.org/EIPS/eip-1167. It
  /// utilizes the "vanity address optimization" from EIP 1167
  function deployAccount(address owner) external returns (address account) {
    bytes memory initCode = abi.encodePacked(
      //  [* constructor **] [** minimal proxy ***] [******* implementation *******] [**** minimal proxy *****]
      hex'603c3d8160093d39f3_3d3d3d3d363d3d37363d6f_afcbce78c080f96032a5c1cb1b832d7b_5af43d3d93803e602657fd5bf3',
      owner
    );
    assembly {
      account := create2(0, add(initCode, 0x20), mload(initCode), 0)
    }
    if(account == address(0)) {
      revert DeployFailed();
    }
  }
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"bytes","name":"callData","type":"bytes"}],"name":"deployAndCall","outputs":[],"stateMutability":"payable","type":"function"}]

608060405234801561001057600080fd5b506101c3806100206000396000f3fe60806040526004361061001e5760003560e01c8063ade8090514610023575b600080fd5b6100e66004803603604081101561003957600080fd5b73ffffffffffffffffffffffffffffffffffffffff823516919081019060408101602082013564010000000081111561007157600080fd5b82018360208201111561008357600080fd5b803590602001918460018302840111640100000000831117156100a557600080fd5b91908080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509295506100e8945050505050565b005b600073e925f84ca9dd5b3844fc424861d7bdf9485761b673ffffffffffffffffffffffffffffffffffffffff1663da9fc1ae846040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff1681526020019150506020604051808303816000875af115801561016c573d6000803e3d6000fd5b505050506040513d602081101561018257600080fd5b50518251909150156101b15760008083516020850134855af13d6000803e8080156101ac573d6000f35b3d6000fd5b50505056fea164736f6c634300080a000a

Deployed Bytecode

0x60806040526004361061001e5760003560e01c8063ade8090514610023575b600080fd5b6100e66004803603604081101561003957600080fd5b73ffffffffffffffffffffffffffffffffffffffff823516919081019060408101602082013564010000000081111561007157600080fd5b82018360208201111561008357600080fd5b803590602001918460018302840111640100000000831117156100a557600080fd5b91908080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509295506100e8945050505050565b005b600073e925f84ca9dd5b3844fc424861d7bdf9485761b673ffffffffffffffffffffffffffffffffffffffff1663da9fc1ae846040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff1681526020019150506020604051808303816000875af115801561016c573d6000803e3d6000fd5b505050506040513d602081101561018257600080fd5b50518251909150156101b15760008083516020850134855af13d6000803e8080156101ac573d6000f35b3d6000fd5b50505056fea164736f6c634300080a000a

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