Contract

0xcc536552A6214d6667fBC3EC38965F7f556A6391

Overview

S Balance

Sonic LogoSonic LogoSonic Logo0 S

S Value

-

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Deploy5827132024-12-18 16:18:343 days ago1734538714IN
0xcc536552...f556A6391
0 S0.000484431
Deploy5177702024-12-17 13:50:074 days ago1734443407IN
0xcc536552...f556A6391
0 S0.58879596110.01
Deploy5177612024-12-17 13:49:434 days ago1734443383IN
0xcc536552...f556A6391
0 S0.06144927110.01
Deploy5177502024-12-17 13:49:134 days ago1734443353IN
0xcc536552...f556A6391
0 S0.04317111110.01

Latest 4 internal transactions

Parent Transaction Hash Block From To
5827132024-12-18 16:18:343 days ago1734538714
0xcc536552...f556A6391
 Contract Creation0 S
5177702024-12-17 13:50:074 days ago1734443407
0xcc536552...f556A6391
 Contract Creation0 S
5177612024-12-17 13:49:434 days ago1734443383
0xcc536552...f556A6391
 Contract Creation0 S
5177502024-12-17 13:49:134 days ago1734443353
0xcc536552...f556A6391
 Contract Creation0 S
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
BeefyContractDeployer

Compiler Version
v0.8.26+commit.8a97fa7a

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion, MIT license
/**
 *Submitted for verification at SonicScan.org on 2024-12-17
*/

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

contract BeefyContractDeployer {

    event ContractDeployed(bytes32 indexed salt, address deploymentAddress);

    // Deploy a contract, if this address matches contract deployer on other chains it should match deployment address if salt/bytecode match., 
    function deploy(bytes32 _salt, bytes memory _bytecode) external returns (address deploymentAddress) {
        address addr;
        assembly {
            addr := create2(0, add(_bytecode, 0x20), mload(_bytecode), _salt)
            if iszero(extcodesize(addr)) {
                 revert(0, 0)
            }
        }

        emit ContractDeployed(_salt, addr);
        return addr;
    }

    // Get address by salt and bytecode.
    function getAddress(bytes32 _salt, bytes memory _bytecode) external view returns (address) {
        bytes32 hash = keccak256(
            abi.encodePacked(
                bytes1(0xff), address(this), _salt, keccak256(_bytecode)
            )
        );
        return address (uint160(uint(hash)));
    }

    // Creat salt by int or string.
    function createSalt(uint _num, string calldata _string) external pure returns (bytes32) {
        return _num > 0 ? keccak256(abi.encode(_num)) : keccak256(abi.encode(_string));
    }
}

Contract Security Audit

Contract ABI

[{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"salt","type":"bytes32"},{"indexed":false,"internalType":"address","name":"deploymentAddress","type":"address"}],"name":"ContractDeployed","type":"event"},{"inputs":[{"internalType":"uint256","name":"_num","type":"uint256"},{"internalType":"string","name":"_string","type":"string"}],"name":"createSalt","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_salt","type":"bytes32"},{"internalType":"bytes","name":"_bytecode","type":"bytes"}],"name":"deploy","outputs":[{"internalType":"address","name":"deploymentAddress","type":"address"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_salt","type":"bytes32"},{"internalType":"bytes","name":"_bytecode","type":"bytes"}],"name":"getAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"}]

6080604052348015600e575f80fd5b506106db8061001c5f395ff3fe608060405234801561000f575f80fd5b506004361061003f575f3560e01c8063c0de77a314610043578063cdcb760a14610073578063d959fd0e146100a3575b5f80fd5b61005d60048036038101906100589190610280565b6100d3565b60405161006a91906102f5565b60405180910390f35b61008d60048036038101906100889190610470565b61013a565b60405161009a9190610509565b60405180910390f35b6100bd60048036038101906100b89190610470565b610193565b6040516100ca9190610509565b60405180910390f35b5f8084116101095782826040516020016100ee92919061055e565b60405160208183030381529060405280519060200120610131565b8360405160200161011a919061058f565b604051602081830303815290604052805190602001205b90509392505050565b5f80838351602085015ff59050803b610151575f80fd5b837f12ccd8746b21e48b266b2ebaa7453f5e499cb6bd6e810a13e0a22187f97f78e9826040516101819190610509565b60405180910390a28091505092915050565b5f8060ff60f81b308585805190602001206040516020016101b79493929190610658565b604051602081830303815290604052805190602001209050805f1c91505092915050565b5f604051905090565b5f80fd5b5f80fd5b5f819050919050565b6101fe816101ec565b8114610208575f80fd5b50565b5f81359050610219816101f5565b92915050565b5f80fd5b5f80fd5b5f80fd5b5f8083601f8401126102405761023f61021f565b5b8235905067ffffffffffffffff81111561025d5761025c610223565b5b60208301915083600182028301111561027957610278610227565b5b9250929050565b5f805f60408486031215610297576102966101e4565b5b5f6102a48682870161020b565b935050602084013567ffffffffffffffff8111156102c5576102c46101e8565b5b6102d18682870161022b565b92509250509250925092565b5f819050919050565b6102ef816102dd565b82525050565b5f6020820190506103085f8301846102e6565b92915050565b610317816102dd565b8114610321575f80fd5b50565b5f813590506103328161030e565b92915050565b5f80fd5b5f601f19601f8301169050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b6103828261033c565b810181811067ffffffffffffffff821117156103a1576103a061034c565b5b80604052505050565b5f6103b36101db565b90506103bf8282610379565b919050565b5f67ffffffffffffffff8211156103de576103dd61034c565b5b6103e78261033c565b9050602081019050919050565b828183375f83830152505050565b5f61041461040f846103c4565b6103aa565b9050828152602081018484840111156104305761042f610338565b5b61043b8482856103f4565b509392505050565b5f82601f8301126104575761045661021f565b5b8135610467848260208601610402565b91505092915050565b5f8060408385031215610486576104856101e4565b5b5f61049385828601610324565b925050602083013567ffffffffffffffff8111156104b4576104b36101e8565b5b6104c085828601610443565b9150509250929050565b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f6104f3826104ca565b9050919050565b610503816104e9565b82525050565b5f60208201905061051c5f8301846104fa565b92915050565b5f82825260208201905092915050565b5f61053d8385610522565b935061054a8385846103f4565b6105538361033c565b840190509392505050565b5f6020820190508181035f830152610577818486610532565b90509392505050565b610589816101ec565b82525050565b5f6020820190506105a25f830184610580565b92915050565b5f7fff0000000000000000000000000000000000000000000000000000000000000082169050919050565b5f819050919050565b6105ed6105e8826105a8565b6105d3565b82525050565b5f8160601b9050919050565b5f610609826105f3565b9050919050565b5f61061a826105ff565b9050919050565b61063261062d826104e9565b610610565b82525050565b5f819050919050565b61065261064d826102dd565b610638565b82525050565b5f61066382876105dc565b6001820191506106738286610621565b6014820191506106838285610641565b6020820191506106938284610641565b6020820191508190509594505050505056fea2646970667358221220fab90ad83a96dcae9de7fa8d48fd19d169f14ab87626c5554d1ef4e5f119b18b64736f6c634300081a0033

Deployed Bytecode

0x608060405234801561000f575f80fd5b506004361061003f575f3560e01c8063c0de77a314610043578063cdcb760a14610073578063d959fd0e146100a3575b5f80fd5b61005d60048036038101906100589190610280565b6100d3565b60405161006a91906102f5565b60405180910390f35b61008d60048036038101906100889190610470565b61013a565b60405161009a9190610509565b60405180910390f35b6100bd60048036038101906100b89190610470565b610193565b6040516100ca9190610509565b60405180910390f35b5f8084116101095782826040516020016100ee92919061055e565b60405160208183030381529060405280519060200120610131565b8360405160200161011a919061058f565b604051602081830303815290604052805190602001205b90509392505050565b5f80838351602085015ff59050803b610151575f80fd5b837f12ccd8746b21e48b266b2ebaa7453f5e499cb6bd6e810a13e0a22187f97f78e9826040516101819190610509565b60405180910390a28091505092915050565b5f8060ff60f81b308585805190602001206040516020016101b79493929190610658565b604051602081830303815290604052805190602001209050805f1c91505092915050565b5f604051905090565b5f80fd5b5f80fd5b5f819050919050565b6101fe816101ec565b8114610208575f80fd5b50565b5f81359050610219816101f5565b92915050565b5f80fd5b5f80fd5b5f80fd5b5f8083601f8401126102405761023f61021f565b5b8235905067ffffffffffffffff81111561025d5761025c610223565b5b60208301915083600182028301111561027957610278610227565b5b9250929050565b5f805f60408486031215610297576102966101e4565b5b5f6102a48682870161020b565b935050602084013567ffffffffffffffff8111156102c5576102c46101e8565b5b6102d18682870161022b565b92509250509250925092565b5f819050919050565b6102ef816102dd565b82525050565b5f6020820190506103085f8301846102e6565b92915050565b610317816102dd565b8114610321575f80fd5b50565b5f813590506103328161030e565b92915050565b5f80fd5b5f601f19601f8301169050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b6103828261033c565b810181811067ffffffffffffffff821117156103a1576103a061034c565b5b80604052505050565b5f6103b36101db565b90506103bf8282610379565b919050565b5f67ffffffffffffffff8211156103de576103dd61034c565b5b6103e78261033c565b9050602081019050919050565b828183375f83830152505050565b5f61041461040f846103c4565b6103aa565b9050828152602081018484840111156104305761042f610338565b5b61043b8482856103f4565b509392505050565b5f82601f8301126104575761045661021f565b5b8135610467848260208601610402565b91505092915050565b5f8060408385031215610486576104856101e4565b5b5f61049385828601610324565b925050602083013567ffffffffffffffff8111156104b4576104b36101e8565b5b6104c085828601610443565b9150509250929050565b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f6104f3826104ca565b9050919050565b610503816104e9565b82525050565b5f60208201905061051c5f8301846104fa565b92915050565b5f82825260208201905092915050565b5f61053d8385610522565b935061054a8385846103f4565b6105538361033c565b840190509392505050565b5f6020820190508181035f830152610577818486610532565b90509392505050565b610589816101ec565b82525050565b5f6020820190506105a25f830184610580565b92915050565b5f7fff0000000000000000000000000000000000000000000000000000000000000082169050919050565b5f819050919050565b6105ed6105e8826105a8565b6105d3565b82525050565b5f8160601b9050919050565b5f610609826105f3565b9050919050565b5f61061a826105ff565b9050919050565b61063261062d826104e9565b610610565b82525050565b5f819050919050565b61065261064d826102dd565b610638565b82525050565b5f61066382876105dc565b6001820191506106738286610621565b6014820191506106838285610641565b6020820191506106938284610641565b6020820191508190509594505050505056fea2646970667358221220fab90ad83a96dcae9de7fa8d48fd19d169f14ab87626c5554d1ef4e5f119b18b64736f6c634300081a0033

Deployed Bytecode Sourcemap

60:1262:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1134:185;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;326:400;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;776:313;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;1134:185;1213:7;1247:1;1240:4;:8;:71;;1302:7;;1291:19;;;;;;;;;:::i;:::-;;;;;;;;;;;;;1281:30;;;;;;1240:71;;;1272:4;1261:16;;;;;;;;:::i;:::-;;;;;;;;;;;;;1251:27;;;;;;1240:71;1233:78;;1134:185;;;;;:::o;326:400::-;399:25;437:12;543:5;531:9;525:16;518:4;507:9;503:20;500:1;492:57;484:65;;585:4;573:17;563:76;;622:1;619;612:12;563:76;684:5;667:29;691:4;667:29;;;;;;:::i;:::-;;;;;;;;714:4;707:11;;;326:400;;;;:::o;776:313::-;858:7;878:12;959:4;952:12;;974:4;981:5;998:9;988:20;;;;;;917:106;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;893:141;;;;;;878:156;;1074:4;1069:10;;1045:36;;;776:313;;;;:::o;7:75:1:-;40:6;73:2;67:9;57:19;;7:75;:::o;88:117::-;197:1;194;187:12;211:117;320:1;317;310:12;334:77;371:7;400:5;389:16;;334:77;;;:::o;417:122::-;490:24;508:5;490:24;:::i;:::-;483:5;480:35;470:63;;529:1;526;519:12;470:63;417:122;:::o;545:139::-;591:5;629:6;616:20;607:29;;645:33;672:5;645:33;:::i;:::-;545:139;;;;:::o;690:117::-;799:1;796;789:12;813:117;922:1;919;912:12;936:117;1045:1;1042;1035:12;1073:553;1131:8;1141:6;1191:3;1184:4;1176:6;1172:17;1168:27;1158:122;;1199:79;;:::i;:::-;1158:122;1312:6;1299:20;1289:30;;1342:18;1334:6;1331:30;1328:117;;;1364:79;;:::i;:::-;1328:117;1478:4;1470:6;1466:17;1454:29;;1532:3;1524:4;1516:6;1512:17;1502:8;1498:32;1495:41;1492:128;;;1539:79;;:::i;:::-;1492:128;1073:553;;;;;:::o;1632:674::-;1712:6;1720;1728;1777:2;1765:9;1756:7;1752:23;1748:32;1745:119;;;1783:79;;:::i;:::-;1745:119;1903:1;1928:53;1973:7;1964:6;1953:9;1949:22;1928:53;:::i;:::-;1918:63;;1874:117;2058:2;2047:9;2043:18;2030:32;2089:18;2081:6;2078:30;2075:117;;;2111:79;;:::i;:::-;2075:117;2224:65;2281:7;2272:6;2261:9;2257:22;2224:65;:::i;:::-;2206:83;;;;2001:298;1632:674;;;;;:::o;2312:77::-;2349:7;2378:5;2367:16;;2312:77;;;:::o;2395:118::-;2482:24;2500:5;2482:24;:::i;:::-;2477:3;2470:37;2395:118;;:::o;2519:222::-;2612:4;2650:2;2639:9;2635:18;2627:26;;2663:71;2731:1;2720:9;2716:17;2707:6;2663:71;:::i;:::-;2519:222;;;;:::o;2747:122::-;2820:24;2838:5;2820:24;:::i;:::-;2813:5;2810:35;2800:63;;2859:1;2856;2849:12;2800:63;2747:122;:::o;2875:139::-;2921:5;2959:6;2946:20;2937:29;;2975:33;3002:5;2975:33;:::i;:::-;2875:139;;;;:::o;3020:117::-;3129:1;3126;3119:12;3143:102;3184:6;3235:2;3231:7;3226:2;3219:5;3215:14;3211:28;3201:38;;3143:102;;;:::o;3251:180::-;3299:77;3296:1;3289:88;3396:4;3393:1;3386:15;3420:4;3417:1;3410:15;3437:281;3520:27;3542:4;3520:27;:::i;:::-;3512:6;3508:40;3650:6;3638:10;3635:22;3614:18;3602:10;3599:34;3596:62;3593:88;;;3661:18;;:::i;:::-;3593:88;3701:10;3697:2;3690:22;3480:238;3437:281;;:::o;3724:129::-;3758:6;3785:20;;:::i;:::-;3775:30;;3814:33;3842:4;3834:6;3814:33;:::i;:::-;3724:129;;;:::o;3859:307::-;3920:4;4010:18;4002:6;3999:30;3996:56;;;4032:18;;:::i;:::-;3996:56;4070:29;4092:6;4070:29;:::i;:::-;4062:37;;4154:4;4148;4144:15;4136:23;;3859:307;;;:::o;4172:148::-;4270:6;4265:3;4260;4247:30;4311:1;4302:6;4297:3;4293:16;4286:27;4172:148;;;:::o;4326:423::-;4403:5;4428:65;4444:48;4485:6;4444:48;:::i;:::-;4428:65;:::i;:::-;4419:74;;4516:6;4509:5;4502:21;4554:4;4547:5;4543:16;4592:3;4583:6;4578:3;4574:16;4571:25;4568:112;;;4599:79;;:::i;:::-;4568:112;4689:54;4736:6;4731:3;4726;4689:54;:::i;:::-;4409:340;4326:423;;;;;:::o;4768:338::-;4823:5;4872:3;4865:4;4857:6;4853:17;4849:27;4839:122;;4880:79;;:::i;:::-;4839:122;4997:6;4984:20;5022:78;5096:3;5088:6;5081:4;5073:6;5069:17;5022:78;:::i;:::-;5013:87;;4829:277;4768:338;;;;:::o;5112:652::-;5189:6;5197;5246:2;5234:9;5225:7;5221:23;5217:32;5214:119;;;5252:79;;:::i;:::-;5214:119;5372:1;5397:53;5442:7;5433:6;5422:9;5418:22;5397:53;:::i;:::-;5387:63;;5343:117;5527:2;5516:9;5512:18;5499:32;5558:18;5550:6;5547:30;5544:117;;;5580:79;;:::i;:::-;5544:117;5685:62;5739:7;5730:6;5719:9;5715:22;5685:62;:::i;:::-;5675:72;;5470:287;5112:652;;;;;:::o;5770:126::-;5807:7;5847:42;5840:5;5836:54;5825:65;;5770:126;;;:::o;5902:96::-;5939:7;5968:24;5986:5;5968:24;:::i;:::-;5957:35;;5902:96;;;:::o;6004:118::-;6091:24;6109:5;6091:24;:::i;:::-;6086:3;6079:37;6004:118;;:::o;6128:222::-;6221:4;6259:2;6248:9;6244:18;6236:26;;6272:71;6340:1;6329:9;6325:17;6316:6;6272:71;:::i;:::-;6128:222;;;;:::o;6356:169::-;6440:11;6474:6;6469:3;6462:19;6514:4;6509:3;6505:14;6490:29;;6356:169;;;;:::o;6555:317::-;6653:3;6674:71;6738:6;6733:3;6674:71;:::i;:::-;6667:78;;6755:56;6804:6;6799:3;6792:5;6755:56;:::i;:::-;6836:29;6858:6;6836:29;:::i;:::-;6831:3;6827:39;6820:46;;6555:317;;;;;:::o;6878:333::-;7001:4;7039:2;7028:9;7024:18;7016:26;;7088:9;7082:4;7078:20;7074:1;7063:9;7059:17;7052:47;7116:88;7199:4;7190:6;7182;7116:88;:::i;:::-;7108:96;;6878:333;;;;;:::o;7217:118::-;7304:24;7322:5;7304:24;:::i;:::-;7299:3;7292:37;7217:118;;:::o;7341:222::-;7434:4;7472:2;7461:9;7457:18;7449:26;;7485:71;7553:1;7542:9;7538:17;7529:6;7485:71;:::i;:::-;7341:222;;;;:::o;7569:149::-;7605:7;7645:66;7638:5;7634:78;7623:89;;7569:149;;;:::o;7724:78::-;7762:7;7791:5;7780:16;;7724:78;;;:::o;7808:153::-;7911:43;7930:23;7947:5;7930:23;:::i;:::-;7911:43;:::i;:::-;7906:3;7899:56;7808:153;;:::o;7967:94::-;8000:8;8048:5;8044:2;8040:14;8019:35;;7967:94;;;:::o;8067:::-;8106:7;8135:20;8149:5;8135:20;:::i;:::-;8124:31;;8067:94;;;:::o;8167:100::-;8206:7;8235:26;8255:5;8235:26;:::i;:::-;8224:37;;8167:100;;;:::o;8273:157::-;8378:45;8398:24;8416:5;8398:24;:::i;:::-;8378:45;:::i;:::-;8373:3;8366:58;8273:157;;:::o;8436:79::-;8475:7;8504:5;8493:16;;8436:79;;;:::o;8521:157::-;8626:45;8646:24;8664:5;8646:24;:::i;:::-;8626:45;:::i;:::-;8621:3;8614:58;8521:157;;:::o;8684:674::-;8878:3;8893:73;8962:3;8953:6;8893:73;:::i;:::-;8991:1;8986:3;8982:11;8975:18;;9003:75;9074:3;9065:6;9003:75;:::i;:::-;9103:2;9098:3;9094:12;9087:19;;9116:75;9187:3;9178:6;9116:75;:::i;:::-;9216:2;9211:3;9207:12;9200:19;;9229:75;9300:3;9291:6;9229:75;:::i;:::-;9329:2;9324:3;9320:12;9313:19;;9349:3;9342:10;;8684:674;;;;;;;:::o

Swarm Source

ipfs://fab90ad83a96dcae9de7fa8d48fd19d169f14ab87626c5554d1ef4e5f119b18b

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