Skip to content
Verified contractExactMIT

TransparentUpgradeableProxy

Address0xd75ab4b69f2edfb072fdfd7e2d15a875f95ae5ae
Balance

0 ETH

 

Transactions

33

 

Compiler

solc 0.8.20

 

Same code

1,298 more contracts

 

Details

Compiler
solc 0.8.20+commit.a1b79de6
Language
solidity
Optimization
Yes, 200 runs
EVM version
paris
License
MIT
Match
Exactcreation code: yes, runtime code: yes
Verified on Sourcify
Created in block
21,853,673
Creation transaction
0xb37e190e08…3bcb276f48
Proxy implementation
0xe1f4c214…ca1e5076source code not verified
Main copy (most transactions)
0xda5e1988…847cbef6

112 files

The source code is large: one file is shown at a time. Choose a file in the list.

contracts/NFT/ERC721V2.sol

// SPDX-License-Identifier: BSD-3-Clause
pragma solidity ^0.8.20;

import {ERC721V1} from "./ERC721V1.sol";
import {BurnRegistryV1} from "./burnRegistry/BurnRegistryV1.sol";

contract ERC721V2 is ERC721V1 {
  address payable internal _burnRegistry;

  event ERC721V2BurnRegistryChanged();

  error ERC721V2InvalidBurnRegistry();

  constructor() {
    _disableInitializers();
  }

  function migrateToV2(address payable __burnRegistry) public {
    if (_burnRegistry != address(0)) revert ERC721V2InvalidBurnRegistry();

    _burnRegistry = __burnRegistry;
  }

  function burnRegistry() public view returns (address) {
    return _burnRegistry;
  }

  function changeBurnRegistry(address payable __burnRegistry) public onlyOwner {
    if (__burnRegistry == address(0)) revert ERC721V2InvalidBurnRegistry();

    _burnRegistry = __burnRegistry;

    emit ERC721V2BurnRegistryChanged();
  }

  function burn(uint256 tokenId) public nonReentrant {
    address sender = _msgSender();
    if (ownerOf(tokenId) != sender) revert ERC721V1TransferForbidden();

    _burn(tokenId);
    BurnRegistryV1(_burnRegistry).burn(sender, tokenId);
  }
}
Compiler settingsShow
{
  "metadata": {
    "bytecodeHash": "ipfs"
  },
  "libraries": {},
  "optimizer": {
    "runs": 200,
    "enabled": true
  },
  "evmVersion": "paris",
  "remappings": []
}

Source code and metadata: Sourcify.

The source code belongs to the authors of the contract.