Sepolia Testnet

Contract

0x6CCAb0f985887ee38e5482aacBfFcC02D72FF00f

Overview

ETH Balance

0 ETH

Token Holdings

Multichain Info

N/A
Transaction Hash
Method
Block
From
To
Create Clone62878432024-07-11 5:44:489 days ago1720676688IN
0x6CCAb0f9...2D72FF00f
0 ETH0.0036872115.29494348
Create Clone62878372024-07-11 5:43:129 days ago1720676592IN
0x6CCAb0f9...2D72FF00f
0 ETH0.0035777613.86375974
0x6080604062877502024-07-11 5:25:009 days ago1720675500IN
 Create: MinimalProxy
0 ETH0.0086349320.20684609

Latest 2 internal transactions

Advanced mode:
Parent Transaction Hash Block From To
62878432024-07-11 5:44:489 days ago1720676688
0x6CCAb0f9...2D72FF00f
 Contract Creation0 ETH
62878372024-07-11 5:43:129 days ago1720676592
0x6CCAb0f9...2D72FF00f
 Contract Creation0 ETH
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
MinimalProxy

Compiler Version
v0.8.26+commit.8a97fa7a

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, None license
/**
 *Submitted for verification at Etherscan.io on 2024-07-11
*/

/**
 *Submitted for verification at testnet.bscscan.com on 2024-03-19
*/

/**
 *Submitted for verification at Etherscan.io on 2023-09-29
*/

// SPDX-License-Identifier: MIT
pragma solidity ^0.8.19;

contract MinimalProxy {
    address public logic;
    address public owner;
    bool public isPause;
    address[] public proxies;

    event CreateNEWContract(address indexed newContract, address indexed Creator, uint256 TimeStamp);

    constructor(address _logicContract){
        logic = _logicContract;
        // owner = msg.sender;
    }

    modifier OnlyOnwer() {
        require(msg.sender == owner,"Only Owner");
        _;
    }

    function transferOwnership(address _newOwner) external OnlyOnwer {
        owner = _newOwner;
    }

    function setLogicContract(address _newLogic) external OnlyOnwer {
        logic = _newLogic;
    }

    function pause() external OnlyOnwer {
        isPause = true;
    }

     function unPause() external OnlyOnwer {
        isPause = false;
    }

    function createClone(string memory _name, string memory _symbol, address _owner) external {
        require(!isPause,"contract paused");

        bytes20 implementationContractInBytes = bytes20(
            logic
        );

        address proxy;

        assembly {
            
            let clone := mload(0x40)
            mstore( clone,0x3d602d80600a3d3981f3363d3d373d3d3d363d73000000000000000000000000)

            mstore(add(clone, 0x14), implementationContractInBytes)

            mstore( add(clone, 0x28),0x5af43d82803e903d91602b57fd5bf30000000000000000000000000000000000)
            proxy := create(0, clone, 0x37)
        }
       
        IERC20Contract(proxy).initialize(_name, _symbol, _owner);
        proxies.push(proxy);
        emit CreateNEWContract(proxy, msg.sender, block.timestamp);
    }

}
 
interface IERC20Contract {
    //initializer function that will be called once, during deployment.
    function initialize(string memory name, string memory symbol,address owner) external; 
   
}

Contract ABI

[{"inputs":[{"internalType":"address","name":"_logicContract","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"newContract","type":"address"},{"indexed":true,"internalType":"address","name":"Creator","type":"address"},{"indexed":false,"internalType":"uint256","name":"TimeStamp","type":"uint256"}],"name":"CreateNEWContract","type":"event"},{"inputs":[{"internalType":"string","name":"_name","type":"string"},{"internalType":"string","name":"_symbol","type":"string"},{"internalType":"address","name":"_owner","type":"address"}],"name":"createClone","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"isPause","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"logic","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"proxies","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_newLogic","type":"address"}],"name":"setLogicContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unPause","outputs":[],"stateMutability":"nonpayable","type":"function"}]

6080604052348015600e575f80fd5b506040516106d73803806106d7833981016040819052602b91604e565b5f80546001600160a01b0319166001600160a01b03929092169190911790556079565b5f60208284031215605d575f80fd5b81516001600160a01b03811681146072575f80fd5b9392505050565b610651806100865f395ff3fe608060405234801561000f575f80fd5b5060043610610090575f3560e01c8063abd90f8511610063578063abd90f85146100f4578063d7dfa0dd14610107578063f2fde38b14610119578063f7b188a51461012c578063ff0938a714610134575f80fd5b8063205e84b2146100945780635aa4470f146100a95780638456cb59146100bc5780638da5cb5b146100c4575b5f80fd5b6100a76100a23660046104e1565b610158565b005b6100a76100b7366004610555565b6102f0565b6100a761033b565b6001546100d7906001600160a01b031681565b6040516001600160a01b0390911681526020015b60405180910390f35b6100d7610102366004610575565b61037a565b5f546100d7906001600160a01b031681565b6100a7610127366004610555565b6103a2565b6100a76103ee565b60015461014890600160a01b900460ff1681565b60405190151581526020016100eb565b600154600160a01b900460ff16156101a95760405162461bcd60e51b815260206004820152600f60248201526e18dbdb9d1c9858dd081c185d5cd959608a1b60448201526064015b60405180910390fd5b5f8054604051733d602d80600a3d3981f3363d3d373d3d3d363d7360601b815260609190911b6bffffffffffffffffffffffff1916601482018190526e5af43d82803e903d91602b57fd5bf360881b6028830152919060378183f06040516303bf912560e11b81529092506001600160a01b038316915063077f224a90610238908890889088906004016105ba565b5f604051808303815f87803b15801561024f575f80fd5b505af1158015610261573d5f803e3d5ffd5b5050600280546001810182555f919091527f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ace0180546001600160a01b0319166001600160a01b0385169081179091556040514281523393509091507f8e532784bb0a6d84ab9e70c1386bdeb5aa6075c50ed83f011045a2968f4b0c169060200160405180910390a35050505050565b6001546001600160a01b0316331461031a5760405162461bcd60e51b81526004016101a0906105f7565b5f80546001600160a01b0319166001600160a01b0392909216919091179055565b6001546001600160a01b031633146103655760405162461bcd60e51b81526004016101a0906105f7565b6001805460ff60a01b1916600160a01b179055565b60028181548110610389575f80fd5b5f918252602090912001546001600160a01b0316905081565b6001546001600160a01b031633146103cc5760405162461bcd60e51b81526004016101a0906105f7565b600180546001600160a01b0319166001600160a01b0392909216919091179055565b6001546001600160a01b031633146104185760405162461bcd60e51b81526004016101a0906105f7565b6001805460ff60a01b19169055565b634e487b7160e01b5f52604160045260245ffd5b5f82601f83011261044a575f80fd5b813567ffffffffffffffff81111561046457610464610427565b604051601f8201601f19908116603f0116810167ffffffffffffffff8111828210171561049357610493610427565b6040528181528382016020018510156104aa575f80fd5b816020850160208301375f918101602001919091529392505050565b80356001600160a01b03811681146104dc575f80fd5b919050565b5f805f606084860312156104f3575f80fd5b833567ffffffffffffffff811115610509575f80fd5b6105158682870161043b565b935050602084013567ffffffffffffffff811115610531575f80fd5b61053d8682870161043b565b92505061054c604085016104c6565b90509250925092565b5f60208284031215610565575f80fd5b61056e826104c6565b9392505050565b5f60208284031215610585575f80fd5b5035919050565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b606081525f6105cc606083018661058c565b82810360208401526105de818661058c565b91505060018060a01b0383166040830152949350505050565b6020808252600a908201526927b7363c9027bbb732b960b11b60408201526060019056fea264697066735822122018460439dab46e2904e237d023452c2c2f8aeae783b45d73cf7f6332edc42ea864736f6c634300081a0033000000000000000000000000d1346aee330671fcba5defa89d79639f923b3f52

Deployed Bytecode

0x608060405234801561000f575f80fd5b5060043610610090575f3560e01c8063abd90f8511610063578063abd90f85146100f4578063d7dfa0dd14610107578063f2fde38b14610119578063f7b188a51461012c578063ff0938a714610134575f80fd5b8063205e84b2146100945780635aa4470f146100a95780638456cb59146100bc5780638da5cb5b146100c4575b5f80fd5b6100a76100a23660046104e1565b610158565b005b6100a76100b7366004610555565b6102f0565b6100a761033b565b6001546100d7906001600160a01b031681565b6040516001600160a01b0390911681526020015b60405180910390f35b6100d7610102366004610575565b61037a565b5f546100d7906001600160a01b031681565b6100a7610127366004610555565b6103a2565b6100a76103ee565b60015461014890600160a01b900460ff1681565b60405190151581526020016100eb565b600154600160a01b900460ff16156101a95760405162461bcd60e51b815260206004820152600f60248201526e18dbdb9d1c9858dd081c185d5cd959608a1b60448201526064015b60405180910390fd5b5f8054604051733d602d80600a3d3981f3363d3d373d3d3d363d7360601b815260609190911b6bffffffffffffffffffffffff1916601482018190526e5af43d82803e903d91602b57fd5bf360881b6028830152919060378183f06040516303bf912560e11b81529092506001600160a01b038316915063077f224a90610238908890889088906004016105ba565b5f604051808303815f87803b15801561024f575f80fd5b505af1158015610261573d5f803e3d5ffd5b5050600280546001810182555f919091527f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ace0180546001600160a01b0319166001600160a01b0385169081179091556040514281523393509091507f8e532784bb0a6d84ab9e70c1386bdeb5aa6075c50ed83f011045a2968f4b0c169060200160405180910390a35050505050565b6001546001600160a01b0316331461031a5760405162461bcd60e51b81526004016101a0906105f7565b5f80546001600160a01b0319166001600160a01b0392909216919091179055565b6001546001600160a01b031633146103655760405162461bcd60e51b81526004016101a0906105f7565b6001805460ff60a01b1916600160a01b179055565b60028181548110610389575f80fd5b5f918252602090912001546001600160a01b0316905081565b6001546001600160a01b031633146103cc5760405162461bcd60e51b81526004016101a0906105f7565b600180546001600160a01b0319166001600160a01b0392909216919091179055565b6001546001600160a01b031633146104185760405162461bcd60e51b81526004016101a0906105f7565b6001805460ff60a01b19169055565b634e487b7160e01b5f52604160045260245ffd5b5f82601f83011261044a575f80fd5b813567ffffffffffffffff81111561046457610464610427565b604051601f8201601f19908116603f0116810167ffffffffffffffff8111828210171561049357610493610427565b6040528181528382016020018510156104aa575f80fd5b816020850160208301375f918101602001919091529392505050565b80356001600160a01b03811681146104dc575f80fd5b919050565b5f805f606084860312156104f3575f80fd5b833567ffffffffffffffff811115610509575f80fd5b6105158682870161043b565b935050602084013567ffffffffffffffff811115610531575f80fd5b61053d8682870161043b565b92505061054c604085016104c6565b90509250925092565b5f60208284031215610565575f80fd5b61056e826104c6565b9392505050565b5f60208284031215610585575f80fd5b5035919050565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b606081525f6105cc606083018661058c565b82810360208401526105de818661058c565b91505060018060a01b0383166040830152949350505050565b6020808252600a908201526927b7363c9027bbb732b960b11b60408201526060019056fea264697066735822122018460439dab46e2904e237d023452c2c2f8aeae783b45d73cf7f6332edc42ea864736f6c634300081a0033

Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)

000000000000000000000000d1346aee330671fcba5defa89d79639f923b3f52

-----Decoded View---------------
Arg [0] : _logicContract (address): 0xd1346Aee330671fCBa5DeFa89d79639f923B3f52

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 000000000000000000000000d1346aee330671fcba5defa89d79639f923b3f52


Deployed Bytecode Sourcemap

210:1684:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1049:840;;;;;;:::i;:::-;;:::i;:::-;;783:100;;;;;;:::i;:::-;;:::i;891:69::-;;;:::i;266:20::-;;;;;-1:-1:-1;;;;;266:20:0;;;;;;-1:-1:-1;;;;;2027:32:1;;;2009:51;;1997:2;1982:18;266:20:0;;;;;;;;319:24;;;;;;:::i;:::-;;:::i;239:20::-;;;;;-1:-1:-1;;;;;239:20:0;;;674:101;;;;;;:::i;:::-;;:::i;969:72::-;;;:::i;293:19::-;;;;;-1:-1:-1;;;293:19:0;;;;;;;;;2421:14:1;;2414:22;2396:41;;2384:2;2369:18;293:19:0;2256:187:1;1049:840:0;1159:7;;-1:-1:-1;;;1159:7:0;;;;1158:8;1150:35;;;;-1:-1:-1;;;1150:35:0;;2650:2:1;1150:35:0;;;2632:21:1;2689:2;2669:18;;;2662:30;-1:-1:-1;;;2708:18:1;;;2701:45;2763:18;;1150:35:0;;;;;;;;;1198:37;1260:5;;1372:4;1366:11;-1:-1:-1;;;1391:81:0;;1238:38;;;;;-1:-1:-1;;1238:38:0;1506:4;1495:16;;1488:55;;;-1:-1:-1;;;1578:4:0;1567:16;;1559:92;1238:38;1198:37;1691:4;1366:11;1198:37;1674:22;1726:56;;-1:-1:-1;;;1726:56:0;;1665:31;;-1:-1:-1;;;;;;1726:32:0;;;-1:-1:-1;1726:32:0;;:56;;1759:5;;1766:7;;1775:6;;1726:56;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;1793:7:0;:19;;;;;;;-1:-1:-1;1793:19:0;;;;;;;;-1:-1:-1;;;;;;1793:19:0;-1:-1:-1;;;;;1793:19:0;;;;;;;;1828:53;;1865:15;3717:25:1;;1853:10:0;;-1:-1:-1;1793:19:0;;-1:-1:-1;1828:53:0;;3705:2:1;3690:18;1828:53:0;;;;;;;1139:750;;1049:840;;;:::o;783:100::-;627:5;;-1:-1:-1;;;;;627:5:0;613:10;:19;605:41;;;;-1:-1:-1;;;605:41:0;;;;;;;:::i;:::-;858:5:::1;:17:::0;;-1:-1:-1;;;;;;858:17:0::1;-1:-1:-1::0;;;;;858:17:0;;;::::1;::::0;;;::::1;::::0;;783:100::o;891:69::-;627:5;;-1:-1:-1;;;;;627:5:0;613:10;:19;605:41;;;;-1:-1:-1;;;605:41:0;;;;;;;:::i;:::-;948:4:::1;938:14:::0;;-1:-1:-1;;;;938:14:0::1;-1:-1:-1::0;;;938:14:0::1;::::0;;891:69::o;319:24::-;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;319:24:0;;-1:-1:-1;319:24:0;:::o;674:101::-;627:5;;-1:-1:-1;;;;;627:5:0;613:10;:19;605:41;;;;-1:-1:-1;;;605:41:0;;;;;;;:::i;:::-;750:5:::1;:17:::0;;-1:-1:-1;;;;;;750:17:0::1;-1:-1:-1::0;;;;;750:17:0;;;::::1;::::0;;;::::1;::::0;;674:101::o;969:72::-;627:5;;-1:-1:-1;;;;;627:5:0;613:10;:19;605:41;;;;-1:-1:-1;;;605:41:0;;;;;;;:::i;:::-;1018:7:::1;:15:::0;;-1:-1:-1;;;;1018:15:0::1;::::0;;969:72::o;14:127:1:-;75:10;70:3;66:20;63:1;56:31;106:4;103:1;96:15;130:4;127:1;120:15;146:726;189:5;242:3;235:4;227:6;223:17;219:27;209:55;;260:1;257;250:12;209:55;300:6;287:20;330:18;322:6;319:30;316:56;;;352:18;;:::i;:::-;401:2;395:9;493:2;455:17;;-1:-1:-1;;451:31:1;;;484:2;447:40;443:54;431:67;;528:18;513:34;;549:22;;;510:62;507:88;;;575:18;;:::i;:::-;611:2;604:22;635;;;676:19;;;697:4;672:30;669:39;-1:-1:-1;666:59:1;;;721:1;718;711:12;666:59;785:6;778:4;770:6;766:17;759:4;751:6;747:17;734:58;840:1;812:19;;;833:4;808:30;801:41;;;;816:6;146:726;-1:-1:-1;;;146:726:1:o;877:173::-;945:20;;-1:-1:-1;;;;;994:31:1;;984:42;;974:70;;1040:1;1037;1030:12;974:70;877:173;;;:::o;1055:612::-;1152:6;1160;1168;1221:2;1209:9;1200:7;1196:23;1192:32;1189:52;;;1237:1;1234;1227:12;1189:52;1277:9;1264:23;1310:18;1302:6;1299:30;1296:50;;;1342:1;1339;1332:12;1296:50;1365;1407:7;1398:6;1387:9;1383:22;1365:50;:::i;:::-;1355:60;;;1468:2;1457:9;1453:18;1440:32;1497:18;1487:8;1484:32;1481:52;;;1529:1;1526;1519:12;1481:52;1552;1596:7;1585:8;1574:9;1570:24;1552:52;:::i;:::-;1542:62;;;1623:38;1657:2;1646:9;1642:18;1623:38;:::i;:::-;1613:48;;1055:612;;;;;:::o;1672:186::-;1731:6;1784:2;1772:9;1763:7;1759:23;1755:32;1752:52;;;1800:1;1797;1790:12;1752:52;1823:29;1842:9;1823:29;:::i;:::-;1813:39;1672:186;-1:-1:-1;;;1672:186:1:o;2071:180::-;2130:6;2183:2;2171:9;2162:7;2158:23;2154:32;2151:52;;;2199:1;2196;2189:12;2151:52;-1:-1:-1;2222:23:1;;2071:180;-1:-1:-1;2071:180:1:o;2792:289::-;2834:3;2872:5;2866:12;2899:6;2894:3;2887:19;2955:6;2948:4;2941:5;2937:16;2930:4;2925:3;2921:14;2915:47;3007:1;3000:4;2991:6;2986:3;2982:16;2978:27;2971:38;3070:4;3063:2;3059:7;3054:2;3046:6;3042:15;3038:29;3033:3;3029:39;3025:50;3018:57;;;2792:289;;;;:::o;3086:480::-;3311:2;3300:9;3293:21;3274:4;3337:45;3378:2;3367:9;3363:18;3355:6;3337:45;:::i;:::-;3430:9;3422:6;3418:22;3413:2;3402:9;3398:18;3391:50;3458:33;3484:6;3476;3458:33;:::i;:::-;3450:41;;;3556:1;3552;3547:3;3543:11;3539:19;3531:6;3527:32;3522:2;3511:9;3507:18;3500:60;3086:480;;;;;;:::o;3753:334::-;3955:2;3937:21;;;3994:2;3974:18;;;3967:30;-1:-1:-1;;;4028:2:1;4013:18;;4006:40;4078:2;4063:18;;3753:334::o

Swarm Source

ipfs://18460439dab46e2904e237d023452c2c2f8aeae783b45d73cf7f6332edc42ea8

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