ETH Price: $3,155.64 (+1.41%)

Contract

0x74a2867c2740bd3F12B4A5a78A9b6938782c445a
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Add Me To Allow ...141496722022-02-06 2:11:401017 days ago1644113500IN
0x74a2867c...8782c445a
0 ETH0.0102389141.95667476
Add Me To Allow ...141496662022-02-06 2:09:001017 days ago1644113340IN
0x74a2867c...8782c445a
0 ETH0.00817079106.2149333
Add Me To Allow ...141496012022-02-06 1:57:391017 days ago1644112659IN
0x74a2867c...8782c445a
0 ETH0.0046997461.0935694
Add Me To Allow ...141495702022-02-06 1:51:031017 days ago1644112263IN
0x74a2867c...8782c445a
0 ETH0.004138753.80037598
Add Me To Allow ...141495472022-02-06 1:46:121017 days ago1644111972IN
0x74a2867c...8782c445a
0 ETH0.0051801467.33841792
Add Me To Allow ...141495162022-02-06 1:39:061017 days ago1644111546IN
0x74a2867c...8782c445a
0 ETH0.0050193665.24837131
Add Me To Allow ...141495142022-02-06 1:38:421017 days ago1644111522IN
0x74a2867c...8782c445a
0 ETH0.0049035463.74281105
Add Me To Allow ...141495122022-02-06 1:38:031017 days ago1644111483IN
0x74a2867c...8782c445a
0 ETH0.0047473161.71200598
Add Me To Allow ...141494962022-02-06 1:33:481017 days ago1644111228IN
0x74a2867c...8782c445a
0 ETH0.003842349.94747613
Add Me To Allow ...141494932022-02-06 1:33:191017 days ago1644111199IN
0x74a2867c...8782c445a
0 ETH0.0037609648.89009815
Add Me To Allow ...141494862022-02-06 1:32:301017 days ago1644111150IN
0x74a2867c...8782c445a
0 ETH0.0041754654.27822574
Add Me To Allow ...141494562022-02-06 1:25:261017 days ago1644110726IN
0x74a2867c...8782c445a
0 ETH0.0044672858.07171399
Add Me To Allow ...141494532022-02-06 1:25:001017 days ago1644110700IN
0x74a2867c...8782c445a
0 ETH0.0049231163.9972692
Add Me To Allow ...141494532022-02-06 1:25:001017 days ago1644110700IN
0x74a2867c...8782c445a
0 ETH0.0049231163.9972692
Add Me To Allow ...141494492022-02-06 1:23:481017 days ago1644110628IN
0x74a2867c...8782c445a
0 ETH0.0048660563.25550366
Add Me To Allow ...141494302022-02-06 1:18:351017 days ago1644110315IN
0x74a2867c...8782c445a
0 ETH0.0040496152.64235974
Add Me To Allow ...141494242022-02-06 1:18:011017 days ago1644110281IN
0x74a2867c...8782c445a
0 ETH0.0043132256.06910041
Add Me To Allow ...141494032022-02-06 1:14:061017 days ago1644110046IN
0x74a2867c...8782c445a
0 ETH0.0052279767.96022192
Add Me To Allow ...141493962022-02-06 1:12:011017 days ago1644109921IN
0x74a2867c...8782c445a
0 ETH0.0049929164.90454522
Add Me To Allow ...141493642022-02-06 1:04:301017 days ago1644109470IN
0x74a2867c...8782c445a
0 ETH0.0069405690.22271204
Add Me To Allow ...141493622022-02-06 1:03:431017 days ago1644109423IN
0x74a2867c...8782c445a
0 ETH0.0065402185.01850163
Add Me To Allow ...141493572022-02-06 1:01:071017 days ago1644109267IN
0x74a2867c...8782c445a
0 ETH0.0045800959.53814404
Add Me To Allow ...141493572022-02-06 1:01:071017 days ago1644109267IN
0x74a2867c...8782c445a
0 ETH0.0045800959.53814404
Add Me To Allow ...141493512022-02-06 0:59:431017 days ago1644109183IN
0x74a2867c...8782c445a
0 ETH0.0042226754.89200125
Add Me To Allow ...141493482022-02-06 0:59:081017 days ago1644109148IN
0x74a2867c...8782c445a
0 ETH0.0042158454.80315499
View all transactions

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

Contract Source Code Verified (Exact Match)

Contract Name:
NounCaterpillarV1

Compiler Version
v0.8.10+commit.fc410830

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion, MIT license
/**
 *Submitted for verification at Etherscan.io on 2022-01-21
*/

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

// Contract by: @backseats_eth


// This is an experimental implementation of an allow list game for NounCats (NounCats.com / @NounCats on Twitter).
// Periodically, this contract will open up and anyone can add themselves to the allow list before we mint on February 14, 2022.

// DISCLAIMER: This costs gas to add yourself to the allow list via this method. Yes, there are better and gasless ways to run an allow list (like a Google Form, lol). 
// This is not our only way of taking addresses before mint. It's just a fun one. 
contract NounCaterpillarV1 {
    
    // How many open slots are currently available in this contract
    uint8 public openSlots;
    
    // Using a bytes32 array rather than an array of addresses to save space and save the user on gas costs. These will eventually be used in a Merkle tree which the bytes32[] also lends itself to.
    bytes32[] public addresses;

    // A mapping to make sure you haven't been here before
    mapping(bytes32 => bool) private addressMapping;

    // A simplified implementation of Ownable 
    address private owner = 0x3a6372B2013f9876a84761187d933DEe0653E377;

    modifier onlyOwner { 
        require(msg.sender == owner, "Not owner");
        _;
    }

    // A function that only costs gas to add yourself to the allow list
    function addMeToAllowList() external {
        require(openSlots > 0, "Wait for spots to open up");
        bytes32 encoded = keccak256(abi.encodePacked(msg.sender));
        require(!addressMapping[encoded], "Already on list");
        addressMapping[encoded] = true;
        openSlots -= 1;
        addresses.push(encoded);
        delete encoded;
    }

    // A function that allows the owner to open up new spots
    function extendCaterpillar(uint8 _newSlots) external onlyOwner { 
        openSlots += _newSlots;
    }

}

Contract Security Audit

Contract ABI

[{"inputs":[],"name":"addMeToAllowList","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"addresses","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint8","name":"_newSlots","type":"uint8"}],"name":"extendCaterpillar","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"openSlots","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"}]

6080604052733a6372b2013f9876a84761187d933dee0653e377600360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555034801561006557600080fd5b5061071a806100756000396000f3fe608060405234801561001057600080fd5b506004361061004c5760003560e01c80631b1a3bf114610051578063746ebb381461005b578063dec1367d14610077578063edf26d9b14610095575b600080fd5b6100596100c5565b005b61007560048036038101906100709190610372565b610237565b005b61007f6102ff565b60405161008c91906103ae565b60405180910390f35b6100af60048036038101906100aa91906103ff565b610310565b6040516100bc9190610445565b60405180910390f35b60008060009054906101000a900460ff1660ff1611610119576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610110906104bd565b60405180910390fd5b60003360405160200161012c9190610557565b6040516020818303038152906040528051906020012090506002600082815260200190815260200160002060009054906101000a900460ff16156101a5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161019c906105be565b60405180910390fd5b60016002600083815260200190815260200160002060006101000a81548160ff02191690831515021790555060016000808282829054906101000a900460ff166101ef919061060d565b92506101000a81548160ff021916908360ff16021790555060018190806001815401808255809150506001900390600052602060002001600090919091909150556000905050565b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146102c7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016102be9061068d565b60405180910390fd5b806000808282829054906101000a900460ff166102e491906106ad565b92506101000a81548160ff021916908360ff16021790555050565b60008054906101000a900460ff1681565b6001818154811061032057600080fd5b906000526020600020016000915090505481565b600080fd5b600060ff82169050919050565b61034f81610339565b811461035a57600080fd5b50565b60008135905061036c81610346565b92915050565b60006020828403121561038857610387610334565b5b60006103968482850161035d565b91505092915050565b6103a881610339565b82525050565b60006020820190506103c3600083018461039f565b92915050565b6000819050919050565b6103dc816103c9565b81146103e757600080fd5b50565b6000813590506103f9816103d3565b92915050565b60006020828403121561041557610414610334565b5b6000610423848285016103ea565b91505092915050565b6000819050919050565b61043f8161042c565b82525050565b600060208201905061045a6000830184610436565b92915050565b600082825260208201905092915050565b7f5761697420666f722073706f747320746f206f70656e20757000000000000000600082015250565b60006104a7601983610460565b91506104b282610471565b602082019050919050565b600060208201905081810360008301526104d68161049a565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000610508826104dd565b9050919050565b60008160601b9050919050565b60006105278261050f565b9050919050565b60006105398261051c565b9050919050565b61055161054c826104fd565b61052e565b82525050565b60006105638284610540565b60148201915081905092915050565b7f416c7265616479206f6e206c6973740000000000000000000000000000000000600082015250565b60006105a8600f83610460565b91506105b382610572565b602082019050919050565b600060208201905081810360008301526105d78161059b565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600061061882610339565b915061062383610339565b925082821015610636576106356105de565b5b828203905092915050565b7f4e6f74206f776e65720000000000000000000000000000000000000000000000600082015250565b6000610677600983610460565b915061068282610641565b602082019050919050565b600060208201905081810360008301526106a68161066a565b9050919050565b60006106b882610339565b91506106c383610339565b92508260ff038211156106d9576106d86105de565b5b82820190509291505056fea2646970667358221220b386c94214f15ac31f596c4052489332ece931554db25fb68f63732461c4f9fd64736f6c634300080a0033

Deployed Bytecode

0x608060405234801561001057600080fd5b506004361061004c5760003560e01c80631b1a3bf114610051578063746ebb381461005b578063dec1367d14610077578063edf26d9b14610095575b600080fd5b6100596100c5565b005b61007560048036038101906100709190610372565b610237565b005b61007f6102ff565b60405161008c91906103ae565b60405180910390f35b6100af60048036038101906100aa91906103ff565b610310565b6040516100bc9190610445565b60405180910390f35b60008060009054906101000a900460ff1660ff1611610119576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610110906104bd565b60405180910390fd5b60003360405160200161012c9190610557565b6040516020818303038152906040528051906020012090506002600082815260200190815260200160002060009054906101000a900460ff16156101a5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161019c906105be565b60405180910390fd5b60016002600083815260200190815260200160002060006101000a81548160ff02191690831515021790555060016000808282829054906101000a900460ff166101ef919061060d565b92506101000a81548160ff021916908360ff16021790555060018190806001815401808255809150506001900390600052602060002001600090919091909150556000905050565b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146102c7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016102be9061068d565b60405180910390fd5b806000808282829054906101000a900460ff166102e491906106ad565b92506101000a81548160ff021916908360ff16021790555050565b60008054906101000a900460ff1681565b6001818154811061032057600080fd5b906000526020600020016000915090505481565b600080fd5b600060ff82169050919050565b61034f81610339565b811461035a57600080fd5b50565b60008135905061036c81610346565b92915050565b60006020828403121561038857610387610334565b5b60006103968482850161035d565b91505092915050565b6103a881610339565b82525050565b60006020820190506103c3600083018461039f565b92915050565b6000819050919050565b6103dc816103c9565b81146103e757600080fd5b50565b6000813590506103f9816103d3565b92915050565b60006020828403121561041557610414610334565b5b6000610423848285016103ea565b91505092915050565b6000819050919050565b61043f8161042c565b82525050565b600060208201905061045a6000830184610436565b92915050565b600082825260208201905092915050565b7f5761697420666f722073706f747320746f206f70656e20757000000000000000600082015250565b60006104a7601983610460565b91506104b282610471565b602082019050919050565b600060208201905081810360008301526104d68161049a565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000610508826104dd565b9050919050565b60008160601b9050919050565b60006105278261050f565b9050919050565b60006105398261051c565b9050919050565b61055161054c826104fd565b61052e565b82525050565b60006105638284610540565b60148201915081905092915050565b7f416c7265616479206f6e206c6973740000000000000000000000000000000000600082015250565b60006105a8600f83610460565b91506105b382610572565b602082019050919050565b600060208201905081810360008301526105d78161059b565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600061061882610339565b915061062383610339565b925082821015610636576106356105de565b5b828203905092915050565b7f4e6f74206f776e65720000000000000000000000000000000000000000000000600082015250565b6000610677600983610460565b915061068282610641565b602082019050919050565b600060208201905081810360008301526106a68161066a565b9050919050565b60006106b882610339565b91506106c383610339565b92508260ff038211156106d9576106d86105de565b5b82820190509291505056fea2646970667358221220b386c94214f15ac31f596c4052489332ece931554db25fb68f63732461c4f9fd64736f6c634300080a0033

Deployed Bytecode Sourcemap

599:1333:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1389:363;;;:::i;:::-;;1822:105;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;708:22;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;942:26;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;1389:363;1457:1;1445:9;;;;;;;;;;;:13;;;1437:51;;;;;;;;;;;;:::i;:::-;;;;;;;;;1499:15;1544:10;1527:28;;;;;;;;:::i;:::-;;;;;;;;;;;;;1517:39;;;;;;1499:57;;1576:14;:23;1591:7;1576:23;;;;;;;;;;;;;;;;;;;;;1575:24;1567:52;;;;;;;;;;;;:::i;:::-;;;;;;;;;1656:4;1630:14;:23;1645:7;1630:23;;;;;;;;;;;;:30;;;;;;;;;;;;;;;;;;1684:1;1671:9;;:14;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;1696:9;1711:7;1696:23;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1730:14;;;1426:326;1389:363::o;1822:105::-;1269:5;;;;;;;;;;;1255:19;;:10;:19;;;1247:41;;;;;;;;;;;;:::i;:::-;;;;;;;;;1910:9:::1;1897;::::0;:22:::1;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;1822:105:::0;:::o;708:22::-;;;;;;;;;;;;:::o;942:26::-;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;88:117:1:-;197:1;194;187:12;334:86;369:7;409:4;402:5;398:16;387:27;;334:86;;;:::o;426:118::-;497:22;513:5;497:22;:::i;:::-;490:5;487:33;477:61;;534:1;531;524:12;477:61;426:118;:::o;550:135::-;594:5;632:6;619:20;610:29;;648:31;673:5;648:31;:::i;:::-;550:135;;;;:::o;691:325::-;748:6;797:2;785:9;776:7;772:23;768:32;765:119;;;803:79;;:::i;:::-;765:119;923:1;948:51;991:7;982:6;971:9;967:22;948:51;:::i;:::-;938:61;;894:115;691:325;;;;:::o;1022:112::-;1105:22;1121:5;1105:22;:::i;:::-;1100:3;1093:35;1022:112;;:::o;1140:214::-;1229:4;1267:2;1256:9;1252:18;1244:26;;1280:67;1344:1;1333:9;1329:17;1320:6;1280:67;:::i;:::-;1140:214;;;;:::o;1360:77::-;1397:7;1426:5;1415:16;;1360:77;;;:::o;1443:122::-;1516:24;1534:5;1516:24;:::i;:::-;1509:5;1506:35;1496:63;;1555:1;1552;1545:12;1496:63;1443:122;:::o;1571:139::-;1617:5;1655:6;1642:20;1633:29;;1671:33;1698:5;1671:33;:::i;:::-;1571:139;;;;:::o;1716:329::-;1775:6;1824:2;1812:9;1803:7;1799:23;1795:32;1792:119;;;1830:79;;:::i;:::-;1792:119;1950:1;1975:53;2020:7;2011:6;2000:9;1996:22;1975:53;:::i;:::-;1965:63;;1921:117;1716:329;;;;:::o;2051:77::-;2088:7;2117:5;2106:16;;2051:77;;;:::o;2134:118::-;2221:24;2239:5;2221:24;:::i;:::-;2216:3;2209:37;2134:118;;:::o;2258:222::-;2351:4;2389:2;2378:9;2374:18;2366:26;;2402:71;2470:1;2459:9;2455:17;2446:6;2402:71;:::i;:::-;2258:222;;;;:::o;2486:169::-;2570:11;2604:6;2599:3;2592:19;2644:4;2639:3;2635:14;2620:29;;2486:169;;;;:::o;2661:175::-;2801:27;2797:1;2789:6;2785:14;2778:51;2661:175;:::o;2842:366::-;2984:3;3005:67;3069:2;3064:3;3005:67;:::i;:::-;2998:74;;3081:93;3170:3;3081:93;:::i;:::-;3199:2;3194:3;3190:12;3183:19;;2842:366;;;:::o;3214:419::-;3380:4;3418:2;3407:9;3403:18;3395:26;;3467:9;3461:4;3457:20;3453:1;3442:9;3438:17;3431:47;3495:131;3621:4;3495:131;:::i;:::-;3487:139;;3214:419;;;:::o;3639:126::-;3676:7;3716:42;3709:5;3705:54;3694:65;;3639:126;;;:::o;3771:96::-;3808:7;3837:24;3855:5;3837:24;:::i;:::-;3826:35;;3771:96;;;:::o;3873:94::-;3906:8;3954:5;3950:2;3946:14;3925:35;;3873:94;;;:::o;3973:::-;4012:7;4041:20;4055:5;4041:20;:::i;:::-;4030:31;;3973:94;;;:::o;4073:100::-;4112:7;4141:26;4161:5;4141:26;:::i;:::-;4130:37;;4073:100;;;:::o;4179:157::-;4284:45;4304:24;4322:5;4304:24;:::i;:::-;4284:45;:::i;:::-;4279:3;4272:58;4179:157;;:::o;4342:256::-;4454:3;4469:75;4540:3;4531:6;4469:75;:::i;:::-;4569:2;4564:3;4560:12;4553:19;;4589:3;4582:10;;4342:256;;;;:::o;4604:165::-;4744:17;4740:1;4732:6;4728:14;4721:41;4604:165;:::o;4775:366::-;4917:3;4938:67;5002:2;4997:3;4938:67;:::i;:::-;4931:74;;5014:93;5103:3;5014:93;:::i;:::-;5132:2;5127:3;5123:12;5116:19;;4775:366;;;:::o;5147:419::-;5313:4;5351:2;5340:9;5336:18;5328:26;;5400:9;5394:4;5390:20;5386:1;5375:9;5371:17;5364:47;5428:131;5554:4;5428:131;:::i;:::-;5420:139;;5147:419;;;:::o;5572:180::-;5620:77;5617:1;5610:88;5717:4;5714:1;5707:15;5741:4;5738:1;5731:15;5758:185;5796:4;5816:18;5832:1;5816:18;:::i;:::-;5811:23;;5848:18;5864:1;5848:18;:::i;:::-;5843:23;;5885:1;5882;5879:8;5876:34;;;5890:18;;:::i;:::-;5876:34;5935:1;5932;5928:9;5920:17;;5758:185;;;;:::o;5949:159::-;6089:11;6085:1;6077:6;6073:14;6066:35;5949:159;:::o;6114:365::-;6256:3;6277:66;6341:1;6336:3;6277:66;:::i;:::-;6270:73;;6352:93;6441:3;6352:93;:::i;:::-;6470:2;6465:3;6461:12;6454:19;;6114:365;;;:::o;6485:419::-;6651:4;6689:2;6678:9;6674:18;6666:26;;6738:9;6732:4;6728:20;6724:1;6713:9;6709:17;6702:47;6766:131;6892:4;6766:131;:::i;:::-;6758:139;;6485:419;;;:::o;6910:237::-;6948:3;6967:18;6983:1;6967:18;:::i;:::-;6962:23;;6999:18;7015:1;6999:18;:::i;:::-;6994:23;;7089:1;7083:4;7079:12;7076:1;7073:19;7070:45;;;7095:18;;:::i;:::-;7070:45;7139:1;7136;7132:9;7125:16;;6910:237;;;;:::o

Swarm Source

ipfs://b386c94214f15ac31f596c4052489332ece931554db25fb68f63732461c4f9fd

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.