ETH Price: $3,350.01 (-1.15%)

Contract

0x2277e5723E9F2E099Ed77D16f50a7aCd7ec7b18c
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To

There are no matching entries

Please try again later

Advanced mode:
Parent Transaction Hash Block
From
To
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
Puppet

Compiler Version
v0.8.28+commit.7893614a

Optimization Enabled:
Yes with 200 runs

Other Settings:
paris EvmVersion, MIT license
/**
 *Submitted for verification at Etherscan.io on 2024-12-26
*/

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

/**
 * @dev Simple contract that would execute any transactions from specific origin
 */
contract Puppet {
    address public immutable admin;

    constructor(address _admin) {
        admin = _admin;
    }

    function callTo(address payable _to, bytes calldata _data) public payable returns (bytes memory) {
        require(msg.sender == admin, 'NOT_ADMIN');

        (bool sent, bytes memory data) = _to.call{ value: msg.value }(_data);

        if (!sent) {
            assembly {
                let size := mload(data)
                revert(add(32, data), size)
            }
        }

        return data;
    }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_admin","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"admin","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address payable","name":"_to","type":"address"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"callTo","outputs":[{"internalType":"bytes","name":"","type":"bytes"}],"stateMutability":"payable","type":"function"}]

60a0604052348015600f57600080fd5b5060405161033a38038061033a833981016040819052602c91603c565b6001600160a01b0316608052606a565b600060208284031215604d57600080fd5b81516001600160a01b0381168114606357600080fd5b9392505050565b6080516102b061008a600039600081816069015260b001526102b06000f3fe6080604052600436106100295760003560e01c806393d3a7b61461002e578063f851a44014610057575b600080fd5b61004161003c366004610189565b6100a3565b60405161004e919061021c565b60405180910390f35b34801561006357600080fd5b5061008b7f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b03909116815260200161004e565b6060336001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000161461010d5760405162461bcd60e51b81526020600482015260096024820152682727aa2fa0a226a4a760b91b604482015260640160405180910390fd5b600080856001600160a01b031634868660405161012b92919061026a565b60006040518083038185875af1925050503d8060008114610168576040519150601f19603f3d011682016040523d82523d6000602084013e61016d565b606091505b5091509150816101805780518082602001fd5b95945050505050565b60008060006040848603121561019e57600080fd5b83356001600160a01b03811681146101b557600080fd5b9250602084013567ffffffffffffffff8111156101d157600080fd5b8401601f810186136101e257600080fd5b803567ffffffffffffffff8111156101f957600080fd5b86602082840101111561020b57600080fd5b939660209190910195509293505050565b602081526000825180602084015260005b8181101561024a576020818601810151604086840101520161022d565b506000604082850101526040601f19601f83011684010191505092915050565b818382376000910190815291905056fea2646970667358221220a59bd7923916c28a1f219d9f7ad5d273a8f39e92c3a61dd74e32cf7e4c5f358a64736f6c634300081c00330000000000000000000000005efda50f22d34f262c29268506c5fa42cb56a1ce

Deployed Bytecode

0x6080604052600436106100295760003560e01c806393d3a7b61461002e578063f851a44014610057575b600080fd5b61004161003c366004610189565b6100a3565b60405161004e919061021c565b60405180910390f35b34801561006357600080fd5b5061008b7f0000000000000000000000005efda50f22d34f262c29268506c5fa42cb56a1ce81565b6040516001600160a01b03909116815260200161004e565b6060336001600160a01b037f0000000000000000000000005efda50f22d34f262c29268506c5fa42cb56a1ce161461010d5760405162461bcd60e51b81526020600482015260096024820152682727aa2fa0a226a4a760b91b604482015260640160405180910390fd5b600080856001600160a01b031634868660405161012b92919061026a565b60006040518083038185875af1925050503d8060008114610168576040519150601f19603f3d011682016040523d82523d6000602084013e61016d565b606091505b5091509150816101805780518082602001fd5b95945050505050565b60008060006040848603121561019e57600080fd5b83356001600160a01b03811681146101b557600080fd5b9250602084013567ffffffffffffffff8111156101d157600080fd5b8401601f810186136101e257600080fd5b803567ffffffffffffffff8111156101f957600080fd5b86602082840101111561020b57600080fd5b939660209190910195509293505050565b602081526000825180602084015260005b8181101561024a576020818601810151604086840101520161022d565b506000604082850101526040601f19601f83011684010191505092915050565b818382376000910190815291905056fea2646970667358221220a59bd7923916c28a1f219d9f7ad5d273a8f39e92c3a61dd74e32cf7e4c5f358a64736f6c634300081c0033

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

0000000000000000000000005efda50f22d34f262c29268506c5fa42cb56a1ce

-----Decoded View---------------
Arg [0] : _admin (address): 0x5efda50f22d34F262c29268506C5Fa42cB56A1Ce

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 0000000000000000000000005efda50f22d34f262c29268506c5fa42cb56a1ce


Deployed Bytecode Sourcemap

153:556:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;284:422;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;176:30;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;1481:32:1;;;1463:51;;1451:2;1436:18;176:30:0;1317:203:1;284:422:0;367:12;400:10;-1:-1:-1;;;;;414:5:0;400:19;;392:41;;;;-1:-1:-1;;;392:41:0;;1727:2:1;392:41:0;;;1709:21:1;1766:1;1746:18;;;1739:29;-1:-1:-1;;;1784:18:1;;;1777:39;1833:18;;392:41:0;;;;;;;;447:9;458:17;479:3;-1:-1:-1;;;;;479:8:0;496:9;508:5;;479:35;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;446:68;;;;532:4;527:148;;599:4;593:11;644:4;637;633:2;629:13;622:27;527:148;694:4;284:422;-1:-1:-1;;;;;284:422:0:o;14:768:1:-;101:6;109;117;170:2;158:9;149:7;145:23;141:32;138:52;;;186:1;183;176:12;138:52;212:23;;-1:-1:-1;;;;;264:31:1;;254:42;;244:70;;310:1;307;300:12;244:70;333:5;-1:-1:-1;389:2:1;374:18;;361:32;416:18;405:30;;402:50;;;448:1;445;438:12;402:50;471:22;;524:4;516:13;;512:27;-1:-1:-1;502:55:1;;553:1;550;543:12;502:55;593:2;580:16;619:18;611:6;608:30;605:50;;;651:1;648;641:12;605:50;696:7;691:2;682:6;678:2;674:15;670:24;667:37;664:57;;;717:1;714;707:12;664:57;14:768;;748:2;740:11;;;;;-1:-1:-1;770:6:1;;-1:-1:-1;;;14:768:1:o;787:525::-;934:2;923:9;916:21;897:4;966:6;960:13;1009:6;1004:2;993:9;989:18;982:34;1034:1;1044:140;1058:6;1055:1;1052:13;1044:140;;;1169:2;1153:14;;;1149:23;;1143:30;1138:2;1119:17;;;1115:26;1108:66;1073:10;1044:140;;;1048:3;1233:1;1228:2;1219:6;1208:9;1204:22;1200:31;1193:42;1303:2;1296;1292:7;1287:2;1279:6;1275:15;1271:29;1260:9;1256:45;1252:54;1244:62;;;787:525;;;;:::o;1862:271::-;2045:6;2037;2032:3;2019:33;2001:3;2071:16;;2096:13;;;2071:16;1862:271;-1:-1:-1;1862:271:1:o

Swarm Source

ipfs://a59bd7923916c28a1f219d9f7ad5d273a8f39e92c3a61dd74e32cf7e4c5f358a

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

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.