Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
Loading...
Loading
Contract Name:
burn
Compiler Version
v0.8.7+commit.e28d00a7
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2022-08-14 */ // SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC1155/ERC1155.sol) pragma solidity ^0.8.0; interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); } interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; } contract burn{ uint256 maxSupply = 444; uint256[] burnedTokens; address owner = 0xb44d3dF4fa349906188a49aAF324491B3B808B8C; modifier ownerOnly(){ require(msg.sender == owner); _; } function AddBurned(uint256 id) external ownerOnly{ burnedTokens.push(id - 1); } function getOwned() external view returns(bool[] memory){ IERC721 contr = IERC721(0x3d899e0Ce7Ce47888d86595b5f7254eFB53fa4db); bool[] memory tokens = new bool[](maxSupply); for(uint256 i = 0; i < maxSupply; i++){ if(contr.ownerOf(i) == msg.sender){ tokens[i] = true; } } return tokens; } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"AddBurned","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"getOwned","outputs":[{"internalType":"bool[]","name":"","type":"bool[]"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
60806040526101bc60005573b44d3df4fa349906188a49aaf324491b3b808b8c600260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555034801561006b57600080fd5b506105c58061007b6000396000f3fe608060405234801561001057600080fd5b50600436106100365760003560e01c80633a07a48b1461003b578063c302752514610057575b600080fd5b610055600480360381019061005091906102d3565b610075565b005b61005f610106565b60405161006c9190610394565b60405180910390f35b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146100cf57600080fd5b600180826100dd919061040a565b908060018154018082558091505060019003906000526020600020016000909190919091505550565b60606000733d899e0ce7ce47888d86595b5f7254efb53fa4db90506000805467ffffffffffffffff81111561013e5761013d61052d565b5b60405190808252806020026020018201604052801561016c5781602001602082028036833780820191505090505b50905060005b600054811015610273573373ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16636352211e836040518263ffffffff1660e01b81526004016101cc91906103b6565b60206040518083038186803b1580156101e457600080fd5b505afa1580156101f8573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061021c91906102a6565b73ffffffffffffffffffffffffffffffffffffffff16141561026057600182828151811061024d5761024c6104fe565b5b6020026020010190151590811515815250505b808061026b90610486565b915050610172565b50809250505090565b60008151905061028b81610561565b92915050565b6000813590506102a081610578565b92915050565b6000602082840312156102bc576102bb61055c565b5b60006102ca8482850161027c565b91505092915050565b6000602082840312156102e9576102e861055c565b5b60006102f784828501610291565b91505092915050565b600061030c8383610376565b60208301905092915050565b6000610323826103e1565b61032d81856103f9565b9350610338836103d1565b8060005b838110156103695781516103508882610300565b975061035b836103ec565b92505060018101905061033c565b5085935050505092915050565b61037f81610450565b82525050565b61038e8161047c565b82525050565b600060208201905081810360008301526103ae8184610318565b905092915050565b60006020820190506103cb6000830184610385565b92915050565b6000819050602082019050919050565b600081519050919050565b6000602082019050919050565b600082825260208201905092915050565b60006104158261047c565b91506104208361047c565b925082821015610433576104326104cf565b5b828203905092915050565b60006104498261045c565b9050919050565b60008115159050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b60006104918261047c565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8214156104c4576104c36104cf565b5b600182019050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600080fd5b61056a8161043e565b811461057557600080fd5b50565b6105818161047c565b811461058c57600080fd5b5056fea2646970667358221220bb4f832d84999d3e980bf0ff143f225c1a365cb4873e9e2c83b4d746983ff44b64736f6c63430008070033
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106100365760003560e01c80633a07a48b1461003b578063c302752514610057575b600080fd5b610055600480360381019061005091906102d3565b610075565b005b61005f610106565b60405161006c9190610394565b60405180910390f35b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146100cf57600080fd5b600180826100dd919061040a565b908060018154018082558091505060019003906000526020600020016000909190919091505550565b60606000733d899e0ce7ce47888d86595b5f7254efb53fa4db90506000805467ffffffffffffffff81111561013e5761013d61052d565b5b60405190808252806020026020018201604052801561016c5781602001602082028036833780820191505090505b50905060005b600054811015610273573373ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16636352211e836040518263ffffffff1660e01b81526004016101cc91906103b6565b60206040518083038186803b1580156101e457600080fd5b505afa1580156101f8573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061021c91906102a6565b73ffffffffffffffffffffffffffffffffffffffff16141561026057600182828151811061024d5761024c6104fe565b5b6020026020010190151590811515815250505b808061026b90610486565b915050610172565b50809250505090565b60008151905061028b81610561565b92915050565b6000813590506102a081610578565b92915050565b6000602082840312156102bc576102bb61055c565b5b60006102ca8482850161027c565b91505092915050565b6000602082840312156102e9576102e861055c565b5b60006102f784828501610291565b91505092915050565b600061030c8383610376565b60208301905092915050565b6000610323826103e1565b61032d81856103f9565b9350610338836103d1565b8060005b838110156103695781516103508882610300565b975061035b836103ec565b92505060018101905061033c565b5085935050505092915050565b61037f81610450565b82525050565b61038e8161047c565b82525050565b600060208201905081810360008301526103ae8184610318565b905092915050565b60006020820190506103cb6000830184610385565b92915050565b6000819050602082019050919050565b600081519050919050565b6000602082019050919050565b600082825260208201905092915050565b60006104158261047c565b91506104208361047c565b925082821015610433576104326104cf565b5b828203905092915050565b60006104498261045c565b9050919050565b60008115159050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b60006104918261047c565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8214156104c4576104c36104cf565b5b600182019050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600080fd5b61056a8161043e565b811461057557600080fd5b50565b6105818161047c565b811461058c57600080fd5b5056fea2646970667358221220bb4f832d84999d3e980bf0ff143f225c1a365cb4873e9e2c83b4d746983ff44b64736f6c63430008070033
Deployed Bytecode Sourcemap
5240:659:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5445:87;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;5537:359;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;5445:87;5422:5;;;;;;;;;;;5408:19;;:10;:19;;;5400:28;;;;;;5502:12:::1;5525:1:::0;5520:2:::1;:6;;;;:::i;:::-;5502:25;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5445:87:::0;:::o;5537:359::-;5579:13;5601;5625:42;5601:67;;5676:20;5710:9;;5699:21;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5676:44;;5734:9;5730:137;5753:9;;5749:1;:13;5730:137;;;5803:10;5783:30;;:5;:13;;;5797:1;5783:16;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:30;;;5780:79;;;5842:4;5830:6;5837:1;5830:9;;;;;;;;:::i;:::-;;;;;;;:16;;;;;;;;;;;5780:79;5764:3;;;;;:::i;:::-;;;;5730:137;;;;5883:6;5876:13;;;;5537:359;:::o;7:143:1:-;64:5;95:6;89:13;80:22;;111:33;138:5;111:33;:::i;:::-;7:143;;;;:::o;156:139::-;202:5;240:6;227:20;218:29;;256:33;283:5;256:33;:::i;:::-;156:139;;;;:::o;301:351::-;371:6;420:2;408:9;399:7;395:23;391:32;388:119;;;426:79;;:::i;:::-;388:119;546:1;571:64;627:7;618:6;607:9;603:22;571:64;:::i;:::-;561:74;;517:128;301:351;;;;:::o;658:329::-;717:6;766:2;754:9;745:7;741:23;737:32;734:119;;;772:79;;:::i;:::-;734:119;892:1;917:53;962:7;953:6;942:9;938:22;917:53;:::i;:::-;907:63;;863:117;658:329;;;;:::o;993:167::-;1056:10;1077:40;1113:3;1105:6;1077:40;:::i;:::-;1149:4;1144:3;1140:14;1126:28;;993:167;;;;:::o;1190:708::-;1303:3;1332:51;1377:5;1332:51;:::i;:::-;1399:83;1475:6;1470:3;1399:83;:::i;:::-;1392:90;;1506:53;1553:5;1506:53;:::i;:::-;1582:7;1613:1;1598:275;1623:6;1620:1;1617:13;1598:275;;;1699:6;1693:13;1726:57;1779:3;1764:13;1726:57;:::i;:::-;1719:64;;1806:57;1856:6;1806:57;:::i;:::-;1796:67;;1658:215;1645:1;1642;1638:9;1633:14;;1598:275;;;1602:14;1889:3;1882:10;;1308:590;;;1190:708;;;;:::o;1904:99::-;1975:21;1990:5;1975:21;:::i;:::-;1970:3;1963:34;1904:99;;:::o;2009:118::-;2096:24;2114:5;2096:24;:::i;:::-;2091:3;2084:37;2009:118;;:::o;2133:361::-;2270:4;2308:2;2297:9;2293:18;2285:26;;2357:9;2351:4;2347:20;2343:1;2332:9;2328:17;2321:47;2385:102;2482:4;2473:6;2385:102;:::i;:::-;2377:110;;2133:361;;;;:::o;2500:222::-;2593:4;2631:2;2620:9;2616:18;2608:26;;2644:71;2712:1;2701:9;2697:17;2688:6;2644:71;:::i;:::-;2500:222;;;;:::o;2809:129::-;2873:4;2896:3;2888:11;;2926:4;2921:3;2917:14;2909:22;;2809:129;;;:::o;2944:111::-;3008:6;3042:5;3036:12;3026:22;;2944:111;;;:::o;3061:110::-;3128:4;3160;3155:3;3151:14;3143:22;;3061:110;;;:::o;3177:181::-;3273:11;3307:6;3302:3;3295:19;3347:4;3342:3;3338:14;3323:29;;3177:181;;;;:::o;3364:191::-;3404:4;3424:20;3442:1;3424:20;:::i;:::-;3419:25;;3458:20;3476:1;3458:20;:::i;:::-;3453:25;;3497:1;3494;3491:8;3488:34;;;3502:18;;:::i;:::-;3488:34;3547:1;3544;3540:9;3532:17;;3364:191;;;;:::o;3561:96::-;3598:7;3627:24;3645:5;3627:24;:::i;:::-;3616:35;;3561:96;;;:::o;3663:90::-;3697:7;3740:5;3733:13;3726:21;3715:32;;3663:90;;;:::o;3759:126::-;3796:7;3836:42;3829:5;3825:54;3814:65;;3759:126;;;:::o;3891:77::-;3928:7;3957:5;3946:16;;3891:77;;;:::o;3974:233::-;4013:3;4036:24;4054:5;4036:24;:::i;:::-;4027:33;;4082:66;4075:5;4072:77;4069:103;;;4152:18;;:::i;:::-;4069:103;4199:1;4192:5;4188:13;4181:20;;3974:233;;;:::o;4213:180::-;4261:77;4258:1;4251:88;4358:4;4355:1;4348:15;4382:4;4379:1;4372:15;4399:180;4447:77;4444:1;4437:88;4544:4;4541:1;4534:15;4568:4;4565:1;4558:15;4585:180;4633:77;4630:1;4623:88;4730:4;4727:1;4720:15;4754:4;4751:1;4744:15;4894:117;5003:1;5000;4993:12;5017:122;5090:24;5108:5;5090:24;:::i;:::-;5083:5;5080:35;5070:63;;5129:1;5126;5119:12;5070:63;5017:122;:::o;5145:::-;5218:24;5236:5;5218:24;:::i;:::-;5211:5;5208:35;5198:63;;5257:1;5254;5247:12;5198:63;5145:122;:::o
Swarm Source
ipfs://bb4f832d84999d3e980bf0ff143f225c1a365cb4873e9e2c83b4d746983ff44b
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 26 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
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.