Contract Overview
Balance:
0 MATIC
MATIC Value:
$0.00
My Name Tag:
Not Available, login to update
[ Download CSV Export ]
Latest 9 internal transactions
[ Download CSV Export ]
This contract may be a proxy contract. Click on More Options and select Is this a proxy? to confirm and enable the "Read as Proxy" & "Write as Proxy" tabs.
Contract Name:
ERC721Factory
Compiler Version
v0.8.7+commit.e28d00a7
Contract Source Code (Solidity)
/** *Submitted for verification at polygonscan.com on 2022-09-14 */ // SPDX-License-Identifier: MIT pragma solidity ^0.8.0; interface IERC721Token { function initialize( address _owner, string memory _name, string memory _symbol ) external; } contract CloneFactory { function clone(address implementation, bytes32 salt) internal returns (address instance) { // solhint-disable-next-line no-inline-assembly assembly { let ptr := mload(0x40) mstore(ptr, 0x3d602d80600a3d3981f3363d3d373d3d3d363d73000000000000000000000000) mstore(add(ptr, 0x14), shl(0x60, implementation)) mstore(add(ptr, 0x28), 0x5af43d82803e903d91602b57fd5bf30000000000000000000000000000000000) instance := create2(0, ptr, 0x37, salt) } require(instance != address(0), "ERC1167: create2 failed"); } function computeClone( address implementation, bytes32 salt, address deployer ) internal pure returns (address computed) { assembly { let ptr := mload(0x40) mstore(ptr, 0x3d602d80600a3d3981f3363d3d373d3d3d363d73000000000000000000000000) mstore(add(ptr, 0x14), shl(0x60, implementation)) mstore(add(ptr, 0x28), 0x5af43d82803e903d91602b57fd5bf3ff00000000000000000000000000000000) mstore(add(ptr, 0x38), shl(0x60, deployer)) mstore(add(ptr, 0x4c), salt) mstore(add(ptr, 0x6c), keccak256(ptr, 0x37)) computed := keccak256(add(ptr, 0x37), 0x55) } } } contract ERC721Factory is CloneFactory { address public implementation; event ERC721Created(address erc721Token); constructor(address _implementation) { implementation = _implementation; } function createERC721( address _owner, string memory _name, string memory _symbol ) external returns (address erc721) { bytes32 finalSalt = keccak256(abi.encodePacked(_owner, _name, _symbol)); erc721 = clone(implementation, finalSalt); IERC721Token(erc721).initialize(_owner, _name, _symbol); emit ERC721Created(erc721); } function getERC721Address( address _owner, string memory _name, string memory _symbol ) external view returns (address erc721) { bytes32 finalSalt = keccak256(abi.encodePacked(_owner, _name, _symbol)); return computeClone(implementation, finalSalt, address(this)); } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"_implementation","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"erc721Token","type":"address"}],"name":"ERC721Created","type":"event"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"},{"internalType":"string","name":"_name","type":"string"},{"internalType":"string","name":"_symbol","type":"string"}],"name":"createERC721","outputs":[{"internalType":"address","name":"erc721","type":"address"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"},{"internalType":"string","name":"_name","type":"string"},{"internalType":"string","name":"_symbol","type":"string"}],"name":"getERC721Address","outputs":[{"internalType":"address","name":"erc721","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"implementation","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
608060405234801561001057600080fd5b5060405161095a38038061095a8339818101604052810190610032919061008d565b806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050610108565b600081519050610087816100f1565b92915050565b6000602082840312156100a3576100a26100ec565b5b60006100b184828501610078565b91505092915050565b60006100c5826100cc565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600080fd5b6100fa816100ba565b811461010557600080fd5b50565b610843806101176000396000f3fe608060405234801561001057600080fd5b50600436106100415760003560e01c8063426de85c1461004657806358743dd3146100765780635c60da1b146100a6575b600080fd5b610060600480360381019061005b9190610433565b6100c4565b60405161006d91906105a6565b60405180910390f35b610090600480360381019061008b9190610433565b6101ce565b60405161009d91906105a6565b60405180910390f35b6100ae610233565b6040516100bb91906105a6565b60405180910390f35b6000808484846040516020016100dc93929190610571565b60405160208183030381529060405280519060200120905061011e60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1682610257565b91508173ffffffffffffffffffffffffffffffffffffffff1663906571478686866040518463ffffffff1660e01b815260040161015d939291906105c1565b600060405180830381600087803b15801561017757600080fd5b505af115801561018b573d6000803e3d6000fd5b505050507f25b1a846e96937f571b6f2a73a73cd1925e5c62f86fa04e12d4e67022e09edec826040516101be91906105a6565b60405180910390a1509392505050565b6000808484846040516020016101e693929190610571565b60405160208183030381529060405280519060200120905061022960008054906101000a900473ffffffffffffffffffffffffffffffffffffffff16823061032e565b9150509392505050565b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60006040517f3d602d80600a3d3981f3363d3d373d3d3d363d7300000000000000000000000081528360601b60148201527f5af43d82803e903d91602b57fd5bf300000000000000000000000000000000006028820152826037826000f5915050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415610328576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161031f90610606565b60405180910390fd5b92915050565b60006040517f3d602d80600a3d3981f3363d3d373d3d3d363d7300000000000000000000000081528460601b60148201527f5af43d82803e903d91602b57fd5bf3ff0000000000000000000000000000000060288201528260601b603882015283604c82015260378120606c820152605560378201209150509392505050565b60006103c16103bc8461064b565b610626565b9050828152602081018484840111156103dd576103dc6107a0565b5b6103e88482856106d5565b509392505050565b6000813590506103ff816107f6565b92915050565b600082601f83011261041a5761041961079b565b5b813561042a8482602086016103ae565b91505092915050565b60008060006060848603121561044c5761044b6107aa565b5b600061045a868287016103f0565b935050602084013567ffffffffffffffff81111561047b5761047a6107a5565b5b61048786828701610405565b925050604084013567ffffffffffffffff8111156104a8576104a76107a5565b5b6104b486828701610405565b9150509250925092565b6104c7816106a3565b82525050565b6104de6104d9826106a3565b610748565b82525050565b60006104ef8261067c565b6104f98185610687565b93506105098185602086016106e4565b610512816107af565b840191505092915050565b60006105288261067c565b6105328185610698565b93506105428185602086016106e4565b80840191505092915050565b600061055b601783610687565b9150610566826107cd565b602082019050919050565b600061057d82866104cd565b60148201915061058d828561051d565b9150610599828461051d565b9150819050949350505050565b60006020820190506105bb60008301846104be565b92915050565b60006060820190506105d660008301866104be565b81810360208301526105e881856104e4565b905081810360408301526105fc81846104e4565b9050949350505050565b6000602082019050818103600083015261061f8161054e565b9050919050565b6000610630610641565b905061063c8282610717565b919050565b6000604051905090565b600067ffffffffffffffff8211156106665761066561076c565b5b61066f826107af565b9050602081019050919050565b600081519050919050565b600082825260208201905092915050565b600081905092915050565b60006106ae826106b5565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b82818337600083830152505050565b60005b838110156107025780820151818401526020810190506106e7565b83811115610711576000848401525b50505050565b610720826107af565b810181811067ffffffffffffffff8211171561073f5761073e61076c565b5b80604052505050565b60006107538261075a565b9050919050565b6000610765826107c0565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b60008160601b9050919050565b7f455243313136373a2063726561746532206661696c6564000000000000000000600082015250565b6107ff816106a3565b811461080a57600080fd5b5056fea264697066735822122081cfeeac58065c6697f62ef707bf9b7702378173ccd55e677ac8569a48bbf5c464736f6c634300080700330000000000000000000000005b58ae72a1422175419dccd70501a659bcd07e3f
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000005b58ae72a1422175419dccd70501a659bcd07e3f
-----Decoded View---------------
Arg [0] : _implementation (address): 0x5b58ae72a1422175419dccd70501a659bcd07e3f
-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 0000000000000000000000005b58ae72a1422175419dccd70501a659bcd07e3f
Deployed ByteCode Sourcemap
1431:884:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1646:363;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;2015:297;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;1475:29;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;1646:363;1766:14;1789:17;1836:6;1844:5;1851:7;1819:40;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;1809:51;;;;;;1789:71;;1876:32;1882:14;;;;;;;;;;1898:9;1876:5;:32::i;:::-;1867:41;;1928:6;1915:31;;;1947:6;1955:5;1962:7;1915:55;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1982:21;1996:6;1982:21;;;;;;:::i;:::-;;;;;;;;1782:227;1646:363;;;;;:::o;2015:297::-;2144:14;2167:17;2214:6;2222:5;2229:7;2197:40;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;2187:51;;;;;;2167:71;;2252:54;2265:14;;;;;;;;;;2281:9;2300:4;2252:12;:54::i;:::-;2245:61;;;2015:297;;;;;:::o;1475:29::-;;;;;;;;;;;;:::o;233:555::-;304:16;417:4;411:11;442:66;437:3;430:79;550:14;544:4;540:25;533:4;528:3;524:14;517:49;597:66;590:4;585:3;581:14;574:90;706:4;700;695:3;692:1;684:27;672:39;;391:327;752:1;732:22;;:8;:22;;;;724:58;;;;;;;;;;;;:::i;:::-;;;;;;;;;233:555;;;;:::o;794:630::-;915:16;975:4;969:11;1000:66;995:3;988:79;1108:14;1102:4;1098:25;1091:4;1086:3;1082:14;1075:49;1155:66;1148:4;1143:3;1139:14;1132:90;1263:8;1257:4;1253:19;1246:4;1241:3;1237:14;1230:43;1304:4;1297;1292:3;1288:14;1281:28;1355:4;1350:3;1340:20;1333:4;1328:3;1324:14;1317:44;1407:4;1400;1395:3;1391:14;1381:31;1369:43;;949:470;794:630;;;;;:::o;7:412:1:-;85:5;110:66;126:49;168:6;126:49;:::i;:::-;110:66;:::i;:::-;101:75;;199:6;192:5;185:21;237:4;230:5;226:16;275:3;266:6;261:3;257:16;254:25;251:112;;;282:79;;:::i;:::-;251:112;372:41;406:6;401:3;396;372:41;:::i;:::-;91:328;7:412;;;;;:::o;425:139::-;471:5;509:6;496:20;487:29;;525:33;552:5;525:33;:::i;:::-;425:139;;;;:::o;584:340::-;640:5;689:3;682:4;674:6;670:17;666:27;656:122;;697:79;;:::i;:::-;656:122;814:6;801:20;839:79;914:3;906:6;899:4;891:6;887:17;839:79;:::i;:::-;830:88;;646:278;584:340;;;;:::o;930:979::-;1027:6;1035;1043;1092:2;1080:9;1071:7;1067:23;1063:32;1060:119;;;1098:79;;:::i;:::-;1060:119;1218:1;1243:53;1288:7;1279:6;1268:9;1264:22;1243:53;:::i;:::-;1233:63;;1189:117;1373:2;1362:9;1358:18;1345:32;1404:18;1396:6;1393:30;1390:117;;;1426:79;;:::i;:::-;1390:117;1531:63;1586:7;1577:6;1566:9;1562:22;1531:63;:::i;:::-;1521:73;;1316:288;1671:2;1660:9;1656:18;1643:32;1702:18;1694:6;1691:30;1688:117;;;1724:79;;:::i;:::-;1688:117;1829:63;1884:7;1875:6;1864:9;1860:22;1829:63;:::i;:::-;1819:73;;1614:288;930:979;;;;;:::o;1915:118::-;2002:24;2020:5;2002:24;:::i;:::-;1997:3;1990:37;1915:118;;:::o;2039:157::-;2144:45;2164:24;2182:5;2164:24;:::i;:::-;2144:45;:::i;:::-;2139:3;2132:58;2039:157;;:::o;2202:364::-;2290:3;2318:39;2351:5;2318:39;:::i;:::-;2373:71;2437:6;2432:3;2373:71;:::i;:::-;2366:78;;2453:52;2498:6;2493:3;2486:4;2479:5;2475:16;2453:52;:::i;:::-;2530:29;2552:6;2530:29;:::i;:::-;2525:3;2521:39;2514:46;;2294:272;2202:364;;;;:::o;2572:377::-;2678:3;2706:39;2739:5;2706:39;:::i;:::-;2761:89;2843:6;2838:3;2761:89;:::i;:::-;2754:96;;2859:52;2904:6;2899:3;2892:4;2885:5;2881:16;2859:52;:::i;:::-;2936:6;2931:3;2927:16;2920:23;;2682:267;2572:377;;;;:::o;2955:366::-;3097:3;3118:67;3182:2;3177:3;3118:67;:::i;:::-;3111:74;;3194:93;3283:3;3194:93;:::i;:::-;3312:2;3307:3;3303:12;3296:19;;2955:366;;;:::o;3327:576::-;3535:3;3550:75;3621:3;3612:6;3550:75;:::i;:::-;3650:2;3645:3;3641:12;3634:19;;3670:95;3761:3;3752:6;3670:95;:::i;:::-;3663:102;;3782:95;3873:3;3864:6;3782:95;:::i;:::-;3775:102;;3894:3;3887:10;;3327:576;;;;;;:::o;3909:222::-;4002:4;4040:2;4029:9;4025:18;4017:26;;4053:71;4121:1;4110:9;4106:17;4097:6;4053:71;:::i;:::-;3909:222;;;;:::o;4137:624::-;4326:4;4364:2;4353:9;4349:18;4341:26;;4377:71;4445:1;4434:9;4430:17;4421:6;4377:71;:::i;:::-;4495:9;4489:4;4485:20;4480:2;4469:9;4465:18;4458:48;4523:78;4596:4;4587:6;4523:78;:::i;:::-;4515:86;;4648:9;4642:4;4638:20;4633:2;4622:9;4618:18;4611:48;4676:78;4749:4;4740:6;4676:78;:::i;:::-;4668:86;;4137:624;;;;;;:::o;4767:419::-;4933:4;4971:2;4960:9;4956:18;4948:26;;5020:9;5014:4;5010:20;5006:1;4995:9;4991:17;4984:47;5048:131;5174:4;5048:131;:::i;:::-;5040:139;;4767:419;;;:::o;5192:129::-;5226:6;5253:20;;:::i;:::-;5243:30;;5282:33;5310:4;5302:6;5282:33;:::i;:::-;5192:129;;;:::o;5327:75::-;5360:6;5393:2;5387:9;5377:19;;5327:75;:::o;5408:308::-;5470:4;5560:18;5552:6;5549:30;5546:56;;;5582:18;;:::i;:::-;5546:56;5620:29;5642:6;5620:29;:::i;:::-;5612:37;;5704:4;5698;5694:15;5686:23;;5408:308;;;:::o;5722:99::-;5774:6;5808:5;5802:12;5792:22;;5722:99;;;:::o;5827:169::-;5911:11;5945:6;5940:3;5933:19;5985:4;5980:3;5976:14;5961:29;;5827:169;;;;:::o;6002:148::-;6104:11;6141:3;6126:18;;6002:148;;;;:::o;6156:96::-;6193:7;6222:24;6240:5;6222:24;:::i;:::-;6211:35;;6156:96;;;:::o;6258:126::-;6295:7;6335:42;6328:5;6324:54;6313:65;;6258:126;;;:::o;6390:154::-;6474:6;6469:3;6464;6451:30;6536:1;6527:6;6522:3;6518:16;6511:27;6390:154;;;:::o;6550:307::-;6618:1;6628:113;6642:6;6639:1;6636:13;6628:113;;;6727:1;6722:3;6718:11;6712:18;6708:1;6703:3;6699:11;6692:39;6664:2;6661:1;6657:10;6652:15;;6628:113;;;6759:6;6756:1;6753:13;6750:101;;;6839:1;6830:6;6825:3;6821:16;6814:27;6750:101;6599:258;6550:307;;;:::o;6863:281::-;6946:27;6968:4;6946:27;:::i;:::-;6938:6;6934:40;7076:6;7064:10;7061:22;7040:18;7028:10;7025:34;7022:62;7019:88;;;7087:18;;:::i;:::-;7019:88;7127:10;7123:2;7116:22;6906:238;6863:281;;:::o;7150:100::-;7189:7;7218:26;7238:5;7218:26;:::i;:::-;7207:37;;7150:100;;;:::o;7256:94::-;7295:7;7324:20;7338:5;7324:20;:::i;:::-;7313:31;;7256:94;;;:::o;7356:180::-;7404:77;7401:1;7394:88;7501:4;7498:1;7491:15;7525:4;7522:1;7515:15;7542:117;7651:1;7648;7641:12;7665:117;7774:1;7771;7764:12;7788:117;7897:1;7894;7887:12;7911:117;8020:1;8017;8010:12;8034:102;8075:6;8126:2;8122:7;8117:2;8110:5;8106:14;8102:28;8092:38;;8034:102;;;:::o;8142:94::-;8175:8;8223:5;8219:2;8215:14;8194:35;;8142:94;;;:::o;8242:173::-;8382:25;8378:1;8370:6;8366:14;8359:49;8242:173;:::o;8421:122::-;8494:24;8512:5;8494:24;:::i;:::-;8487:5;8484:35;8474:63;;8533:1;8530;8523:12;8474:63;8421:122;:::o
Swarm Source
ipfs://81cfeeac58065c6697f62ef707bf9b7702378173ccd55e677ac8569a48bbf5c4
Age | Block | Fee Address | BC Fee Address | Voting Power | Jailed | Incoming |
---|
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.