ETH Price: $3,630.50 (+4.89%)
 

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:
Testing

Compiler Version
v0.8.18+commit.87f61d96

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, None license
/**
 *Submitted for verification at Etherscan.io on 2023-02-26
*/

pragma solidity ^0.8.18;
contract Testing {
    IPunkBlocks pb; // 0x58E90596C2065BEfD3060767736C829C18F3474c

    constructor(address _b) {
        pb = IPunkBlocks(_b);
    }

    function doesntWork() external view returns(IPunkBlocks.Block memory) {
        // This works if you call the contract's pb.blocks() method directly via web3
        // https://etherscan.io/address/0x58E90596C2065BEfD3060767736C829C18F3474c#readContract
        // 0x1885.. is a valid key, it exists.
        IPunkBlocks.Block memory test = pb.blocks(0x1885fe71e225eade934ab7040d533bd49efc5d66e8f2d4b5aa42477ae9892ec9);
        return test;
    }

    function works() external view returns(IPunkBlocks.Block memory) {
        IPunkBlocks.Block memory test = pb.blocks(0x1BB61A688FEA4953CB586BAA1EADB220020829A1E284BE38D2EA8FB996DD7286);
        return test;
    }

}

interface IPunkBlocks {
    enum Layer {
        Base,      // 0 Base is the face. Determines if m or f version will be used to render the remaining layers
        Cheeks,    // 1 (Rosy Cheeks)
        Blemish,   // 2 (Mole, Spots)
        Hair,      // 3 (Purple Hair, Shaved Head, Pigtails, ...)
        Beard,     // 4 (Big Beard, Front Beard, Goat, ...)
        Eyes,      // 5 (Clown Eyes Green, Green Eye Shadow, ...)
        Eyewear,   // 6 (VR, 3D Glass, Eye Mask, Regular Shades, Welding Glasses, ...)
        Nose,      // 7 (Clown Nose)
        Mouth,     // 8 (Hot Lipstick, Smile, Buck Teeth, ...)
        MouthProp, // 9 (Medical Mask, Cigarette, ...)
        Earring,   // 10 (Earring)
        Headgear,  // 11 (Beanie, Fedora, Hoodie, Police Cap, Tiara, Headband, ...)
        Neck       // 12 (Choker, Silver Chain, Gold Chain)
    }
    struct Block {
        Layer layer;     // 13 possible layers
        bytes dataMale;  // male version of this attribute
        bytes dataFemale;// female version of this attribute
    }
    function blocks(bytes32) external view returns(Block memory);
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_b","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"doesntWork","outputs":[{"components":[{"internalType":"enum IPunkBlocks.Layer","name":"layer","type":"uint8"},{"internalType":"bytes","name":"dataMale","type":"bytes"},{"internalType":"bytes","name":"dataFemale","type":"bytes"}],"internalType":"struct IPunkBlocks.Block","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"works","outputs":[{"components":[{"internalType":"enum IPunkBlocks.Layer","name":"layer","type":"uint8"},{"internalType":"bytes","name":"dataMale","type":"bytes"},{"internalType":"bytes","name":"dataFemale","type":"bytes"}],"internalType":"struct IPunkBlocks.Block","name":"","type":"tuple"}],"stateMutability":"view","type":"function"}]

608060405234801561001057600080fd5b5060405161048838038061048883398101604081905261002f91610054565b600080546001600160a01b0319166001600160a01b0392909216919091179055610084565b60006020828403121561006657600080fd5b81516001600160a01b038116811461007d57600080fd5b9392505050565b6103f5806100936000396000f3fe608060405234801561001057600080fd5b50600436106100365760003560e01c8063a6055e531461003b578063f00b018b14610059575b600080fd5b610043610061565b60405161005091906101e4565b60405180910390f35b61004361011e565b6100866040805160608101909152806000815260200160608152602001606081525090565b60008054604051637ac454b560e11b81527f1885fe71e225eade934ab7040d533bd49efc5d66e8f2d4b5aa42477ae9892ec960048201526001600160a01b039091169063f588a96a906024015b600060405180830381865afa1580156100f0573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526101189190810190610317565b92915050565b6101436040805160608101909152806000815260200160608152602001606081525090565b60008054604051637ac454b560e11b81527f1bb61a688fea4953cb586baa1eadb220020829a1e284be38d2ea8fb996dd728660048201526001600160a01b039091169063f588a96a906024016100d3565b60005b838110156101af578181015183820152602001610197565b50506000910152565b600081518084526101d0816020860160208601610194565b601f01601f19169290920160200192915050565b6020815260008251600d811061020a57634e487b7160e01b600052602160045260246000fd5b8060208401525060208301516060604084015261022a60808401826101b8565b90506040840151601f1984830301606085015261024782826101b8565b95945050505050565b634e487b7160e01b600052604160045260246000fd5b6040516060810167ffffffffffffffff8111828210171561028957610289610250565b60405290565b600082601f8301126102a057600080fd5b815167ffffffffffffffff808211156102bb576102bb610250565b604051601f8301601f19908116603f011681019082821181831017156102e3576102e3610250565b816040528381528660208588010111156102fc57600080fd5b61030d846020830160208901610194565b9695505050505050565b60006020828403121561032957600080fd5b815167ffffffffffffffff8082111561034157600080fd5b908301906060828603121561035557600080fd5b61035d610266565b8251600d811061036c57600080fd5b815260208301518281111561038057600080fd5b61038c8782860161028f565b6020830152506040830151828111156103a457600080fd5b6103b08782860161028f565b6040830152509594505050505056fea2646970667358221220106e92e2650a908058bb1605cd05d6c8bd01ceb8d6e6ca0f98b842c6fb6184eb64736f6c6343000812003300000000000000000000000058e90596c2065befd3060767736c829c18f3474c

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106100365760003560e01c8063a6055e531461003b578063f00b018b14610059575b600080fd5b610043610061565b60405161005091906101e4565b60405180910390f35b61004361011e565b6100866040805160608101909152806000815260200160608152602001606081525090565b60008054604051637ac454b560e11b81527f1885fe71e225eade934ab7040d533bd49efc5d66e8f2d4b5aa42477ae9892ec960048201526001600160a01b039091169063f588a96a906024015b600060405180830381865afa1580156100f0573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526101189190810190610317565b92915050565b6101436040805160608101909152806000815260200160608152602001606081525090565b60008054604051637ac454b560e11b81527f1bb61a688fea4953cb586baa1eadb220020829a1e284be38d2ea8fb996dd728660048201526001600160a01b039091169063f588a96a906024016100d3565b60005b838110156101af578181015183820152602001610197565b50506000910152565b600081518084526101d0816020860160208601610194565b601f01601f19169290920160200192915050565b6020815260008251600d811061020a57634e487b7160e01b600052602160045260246000fd5b8060208401525060208301516060604084015261022a60808401826101b8565b90506040840151601f1984830301606085015261024782826101b8565b95945050505050565b634e487b7160e01b600052604160045260246000fd5b6040516060810167ffffffffffffffff8111828210171561028957610289610250565b60405290565b600082601f8301126102a057600080fd5b815167ffffffffffffffff808211156102bb576102bb610250565b604051601f8301601f19908116603f011681019082821181831017156102e3576102e3610250565b816040528381528660208588010111156102fc57600080fd5b61030d846020830160208901610194565b9695505050505050565b60006020828403121561032957600080fd5b815167ffffffffffffffff8082111561034157600080fd5b908301906060828603121561035557600080fd5b61035d610266565b8251600d811061036c57600080fd5b815260208301518281111561038057600080fd5b61038c8782860161028f565b6020830152506040830151828111156103a457600080fd5b6103b08782860161028f565b6040830152509594505050505056fea2646970667358221220106e92e2650a908058bb1605cd05d6c8bd01ceb8d6e6ca0f98b842c6fb6184eb64736f6c63430008120033

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

00000000000000000000000058e90596c2065befd3060767736c829c18f3474c

-----Decoded View---------------
Arg [0] : _b (address): 0x58E90596C2065BEfD3060767736C829C18F3474c

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 00000000000000000000000058e90596c2065befd3060767736c829c18f3474c


Deployed Bytecode Sourcemap

26:844:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;190:452;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;650:215;;;:::i;190:452::-;234:24;-1:-1:-1;;;;;;;;;;;;;;;;;;;;;;;;;;234:24:0;503:29;535:2;;:77;;-1:-1:-1;;;535:77:0;;545:66;535:77;;;1663:25:1;-1:-1:-1;;;;;535:2:0;;;;:9;;1636:18:1;;535:77:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;535:77:0;;;;;;;;;;;;:::i;:::-;503:109;190:452;-1:-1:-1;;190:452:0:o;650:215::-;689:24;-1:-1:-1;;;;;;;;;;;;;;;;;;;;;;;;;;689:24:0;726:29;758:2;;:77;;-1:-1:-1;;;758:77:0;;768:66;758:77;;;1663:25:1;-1:-1:-1;;;;;758:2:0;;;;:9;;1636:18:1;;758:77:0;1433:261:1;146:250;231:1;241:113;255:6;252:1;249:13;241:113;;;331:11;;;325:18;312:11;;;305:39;277:2;270:10;241:113;;;-1:-1:-1;;388:1:1;370:16;;363:27;146:250::o;401:270::-;442:3;480:5;474:12;507:6;502:3;495:19;523:76;592:6;585:4;580:3;576:14;569:4;562:5;558:16;523:76;:::i;:::-;653:2;632:15;-1:-1:-1;;628:29:1;619:39;;;;660:4;615:50;;401:270;-1:-1:-1;;401:270:1:o;676:752::-;847:2;836:9;829:21;810:4;875:6;869:13;908:2;904;901:10;891:141;;954:10;949:3;945:20;942:1;935:31;989:4;986:1;979:15;1017:4;1014:1;1007:15;891:141;1068:2;1063;1052:9;1048:18;1041:30;;1118:2;1110:6;1106:15;1100:22;1158:4;1153:2;1142:9;1138:18;1131:32;1186:51;1232:3;1221:9;1217:19;1203:12;1186:51;:::i;:::-;1172:65;;1286:2;1278:6;1274:15;1268:22;1360:2;1356:7;1344:9;1336:6;1332:22;1328:36;1321:4;1310:9;1306:20;1299:66;1382:40;1415:6;1399:14;1382:40;:::i;:::-;1374:48;676:752;-1:-1:-1;;;;;676:752:1:o;1699:127::-;1760:10;1755:3;1751:20;1748:1;1741:31;1791:4;1788:1;1781:15;1815:4;1812:1;1805:15;1831:248;1898:2;1892:9;1940:4;1928:17;;1975:18;1960:34;;1996:22;;;1957:62;1954:88;;;2022:18;;:::i;:::-;2058:2;2051:22;1831:248;:::o;2084:698::-;2137:5;2190:3;2183:4;2175:6;2171:17;2167:27;2157:55;;2208:1;2205;2198:12;2157:55;2237:6;2231:13;2263:18;2300:2;2296;2293:10;2290:36;;;2306:18;;:::i;:::-;2381:2;2375:9;2349:2;2435:13;;-1:-1:-1;;2431:22:1;;;2455:2;2427:31;2423:40;2411:53;;;2479:18;;;2499:22;;;2476:46;2473:72;;;2525:18;;:::i;:::-;2565:10;2561:2;2554:22;2600:2;2592:6;2585:18;2646:3;2639:4;2634:2;2626:6;2622:15;2618:26;2615:35;2612:55;;;2663:1;2660;2653:12;2612:55;2676:76;2749:2;2742:4;2734:6;2730:17;2723:4;2715:6;2711:17;2676:76;:::i;:::-;2770:6;2084:698;-1:-1:-1;;;;;;2084:698:1:o;2787:917::-;2878:6;2931:2;2919:9;2910:7;2906:23;2902:32;2899:52;;;2947:1;2944;2937:12;2899:52;2980:9;2974:16;3009:18;3050:2;3042:6;3039:14;3036:34;;;3066:1;3063;3056:12;3036:34;3089:22;;;;3145:4;3127:16;;;3123:27;3120:47;;;3163:1;3160;3153:12;3120:47;3189:17;;:::i;:::-;3236:2;3230:9;3270:2;3261:7;3258:15;3248:43;;3287:1;3284;3277:12;3248:43;3300:22;;3361:2;3353:11;;3347:18;3377:16;;;3374:36;;;3406:1;3403;3396:12;3374:36;3442:55;3489:7;3478:8;3474:2;3470:17;3442:55;:::i;:::-;3437:2;3430:5;3426:14;3419:79;;3537:2;3533;3529:11;3523:18;3566:2;3556:8;3553:16;3550:36;;;3582:1;3579;3572:12;3550:36;3618:55;3665:7;3654:8;3650:2;3646:17;3618:55;:::i;:::-;3613:2;3602:14;;3595:79;-1:-1:-1;3606:5:1;2787:917;-1:-1:-1;;;;;2787:917:1:o

Swarm Source

ipfs://106e92e2650a908058bb1605cd05d6c8bd01ceb8d6e6ca0f98b842c6fb6184eb

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.