ETH Price: $3,377.25 (-1.94%)
Gas: 2 Gwei

Contract

0x00E72F33155C23735a74df525DaF25A47aA9F899
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Value
Burn161606952022-12-11 9:53:35565 days ago1670752415IN
0x00E72F33...47aA9F899
0 ETH0.001087914.33982252
Burn161606912022-12-11 9:52:47565 days ago1670752367IN
0x00E72F33...47aA9F899
0 ETH0.0012823315.89678853
Burn161596452022-12-11 6:22:35565 days ago1670739755IN
0x00E72F33...47aA9F899
0 ETH0.0017927414.92003187
Burn161594782022-12-11 5:48:47565 days ago1670737727IN
0x00E72F33...47aA9F899
0 ETH0.0010551413.08036122
Burn161588872022-12-11 3:49:47565 days ago1670730587IN
0x00E72F33...47aA9F899
0 ETH0.0009612816.55450995
Burn161588862022-12-11 3:49:35565 days ago1670730575IN
0x00E72F33...47aA9F899
0 ETH0.0015499916.67268868
Burn161585692022-12-11 2:45:23565 days ago1670726723IN
0x00E72F33...47aA9F899
0 ETH0.0020790414.90727518
Burn161580822022-12-11 1:07:11565 days ago1670720831IN
0x00E72F33...47aA9F899
0 ETH0.0014453115.54673704
Burn161580692022-12-11 1:04:35565 days ago1670720675IN
0x00E72F33...47aA9F899
0 ETH0.0015114516.25815091
Burn161579102022-12-11 0:32:35565 days ago1670718755IN
0x00E72F33...47aA9F899
0 ETH0.0012781115.84691664
Burn161577852022-12-11 0:07:35565 days ago1670717255IN
0x00E72F33...47aA9F899
0 ETH0.0022793716.34369069
Burn161577242022-12-10 23:55:23565 days ago1670716523IN
0x00E72F33...47aA9F899
0 ETH0.0014043915.10850071
Burn161576482022-12-10 23:39:59565 days ago1670715599IN
0x00E72F33...47aA9F899
0 ETH0.0011597615.28705204
Burn161576392022-12-10 23:38:11565 days ago1670715491IN
0x00E72F33...47aA9F899
0 ETH0.0014495414.82668122
Burn161576392022-12-10 23:38:11565 days ago1670715491IN
0x00E72F33...47aA9F899
0 ETH0.0014495414.82668122
Burn161576362022-12-10 23:37:35565 days ago1670715455IN
0x00E72F33...47aA9F899
0 ETH0.0012952313.93238438
Burn161575862022-12-10 23:27:35565 days ago1670714855IN
0x00E72F33...47aA9F899
0 ETH0.0010994614.49452827
Burn161575832022-12-10 23:26:59565 days ago1670714819IN
0x00E72F33...47aA9F899
0 ETH0.001377114.08744887
Burn161575302022-12-10 23:16:23565 days ago1670714183IN
0x00E72F33...47aA9F899
0 ETH0.0015498415.17136518
Burn161573852022-12-10 22:47:23565 days ago1670712443IN
0x00E72F33...47aA9F899
0 ETH0.0017735314.23831595
Burn161572952022-12-10 22:29:23565 days ago1670711363IN
0x00E72F33...47aA9F899
0 ETH0.0010348812.82925045
Burn161556612022-12-10 17:00:47566 days ago1670691647IN
0x00E72F33...47aA9F899
0 ETH0.0013202616.36704603
Burn161542722022-12-10 12:21:47566 days ago1670674907IN
0x00E72F33...47aA9F899
0 ETH0.0013259416.43751633
Burn161534622022-12-10 9:39:35566 days ago1670665175IN
0x00E72F33...47aA9F899
0 ETH0.0018126915.41089399
Burn161534372022-12-10 9:34:35566 days ago1670664875IN
0x00E72F33...47aA9F899
0 ETH0.0022836915.63222219
View all transactions

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
JcodeBurnContract

Compiler Version
v0.8.17+commit.8df45f5f

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MIT license

Contract Source Code (Solidity Multiple files format)

File 1 of 11: BurnContract.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.17;

import "./ERC721.sol";
import "./IERC721A.sol";

/// @title A contract to burn NFTs during specific windows
/// @author @smartcontrart
/// @notice The contract allows to open and close burn windows with some options (change burn address, limit the number of burns per window)
/// @dev The contract uses a transfer to 0xDead as the proxy implementation didn't implement the burn function.

contract JcodeBurnContract {
    bool public burnOpened;
    uint256 public burnLimitPerCollector;
    uint256 public totalBurnLimit;
    uint256 public currentBurnWindow;
    address public burnAddress;
    address public nftAddress;

    mapping (address => bool) public isAdmin;
    mapping (address => mapping (uint256 => uint256)) public burnPerWindow; // Evo Owner to burn Window ID to quantity burnt
    mapping (uint256 => uint256) public currentBurntForWindow;
    
    constructor(){
        burnAddress = 0x000000000000000000000000000000000000dEaD;
        isAdmin[msg.sender] = true;
        currentBurnWindow = 0;
        nftAddress = 0x06Af6dD59354a40358091B9644DB7A72B3A2297d;
    }
    
    modifier adminOnly(){
        require(isAdmin[msg.sender], 'Only admins can calll this functiono');
        _;
    }

    function toggleAdmin(address _admin) external adminOnly{
        isAdmin[_admin] = !isAdmin[_admin];
    }

    function setBurnAdress(address _burnAddress) external adminOnly{
        burnAddress = _burnAddress;
    }

    function toggleBurnOpened() external adminOnly{
        burnOpened = !burnOpened;
    }

    function setNFTAddress(address _nftAddress) external adminOnly{
        nftAddress = _nftAddress;
    }

    function setBurnLimitPerCollector(uint256 _burnLimitPerCollector) external adminOnly{
        burnLimitPerCollector = _burnLimitPerCollector;
    }

    function setNewBurnWindow(address _burnAddress, uint256 _burnLimitPerCollector, uint256 _maxBurnNumber, bool _startsImmediately) external adminOnly{
        currentBurnWindow ++;
        burnAddress = _burnAddress;
        burnLimitPerCollector = _burnLimitPerCollector;
        burnOpened = _startsImmediately;
        totalBurnLimit = _maxBurnNumber;
        currentBurntForWindow[currentBurnWindow] = 0;
    }

    function updateCurrentBurnWindow(address _burnAddress, uint256 _burnLimitPerCollector, uint256 _maxBurnNumber, bool _isOpened) external adminOnly{
        burnAddress = _burnAddress;
        burnLimitPerCollector = _burnLimitPerCollector;
        totalBurnLimit = _maxBurnNumber;
        burnOpened = _isOpened;
    }

    function getBurnByAddress(address collector) external view returns(uint){
        return burnPerWindow[collector][currentBurnWindow];
    }

    function getRemainingBurnsForCurrentWindow() external view returns(uint){
        return totalBurnLimit - currentBurntForWindow[currentBurnWindow];
    }

    function setMaxBurnLimit(uint256 _totalBurnLimit) external adminOnly{
        totalBurnLimit = _totalBurnLimit;
    }

    function burn(uint256 tokenId)external{
        require(burnOpened, "Burn currently closed");
        if(totalBurnLimit > 0){
            require(currentBurntForWindow[currentBurnWindow] < totalBurnLimit, "Max burn number reached");
        }
        if(burnLimitPerCollector > 0){
            require(burnPerWindow[msg.sender][currentBurnWindow] < burnLimitPerCollector, 'Maximum number of tokens already burnt for this window');
        }
        currentBurntForWindow[currentBurnWindow] ++;
        burnPerWindow[msg.sender][currentBurnWindow] ++;
        IERC721A(nftAddress).safeTransferFrom(
            msg.sender, 
            burnAddress, 
            tokenId
        );
    }


}

File 2 of 11: Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (utils/Address.sol)

pragma solidity ^0.8.1;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     *
     * [IMPORTANT]
     * ====
     * You shouldn't rely on `isContract` to protect against flash loan attacks!
     *
     * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets
     * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract
     * constructor.
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize/address.code.length, which returns 0
        // for contracts in construction, since the code is only stored at the end
        // of the constructor execution.

        return account.code.length > 0;
    }

    /**
     * @dev Replacement for Solidity's `transfer`: sends `amount` wei to
     * `recipient`, forwarding all available gas and reverting on errors.
     *
     * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
     * of certain opcodes, possibly making contracts go over the 2300 gas limit
     * imposed by `transfer`, making them unable to receive funds via
     * `transfer`. {sendValue} removes this limitation.
     *
     * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].
     *
     * IMPORTANT: because control is transferred to `recipient`, care must be
     * taken to not create reentrancy vulnerabilities. Consider using
     * {ReentrancyGuard} or the
     * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
     */
    function sendValue(address payable recipient, uint256 amount) internal {
        require(address(this).balance >= amount, "Address: insufficient balance");

        (bool success, ) = recipient.call{value: amount}("");
        require(success, "Address: unable to send value, recipient may have reverted");
    }

    /**
     * @dev Performs a Solidity function call using a low level `call`. A
     * plain `call` is an unsafe replacement for a function call: use this
     * function instead.
     *
     * If `target` reverts with a revert reason, it is bubbled up by this
     * function (like regular Solidity function calls).
     *
     * Returns the raw returned data. To convert to the expected return value,
     * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
     *
     * Requirements:
     *
     * - `target` must be a contract.
     * - calling `target` with `data` must not revert.
     *
     * _Available since v3.1._
     */
    function functionCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionCall(target, data, "Address: low-level call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
     * `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        return functionCallWithValue(target, data, 0, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but also transferring `value` wei to `target`.
     *
     * Requirements:
     *
     * - the calling contract must have an ETH balance of at least `value`.
     * - the called Solidity function must be `payable`.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(
        address target,
        bytes memory data,
        uint256 value
    ) internal returns (bytes memory) {
        return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
    }

    /**
     * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
     * with `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(
        address target,
        bytes memory data,
        uint256 value,
        string memory errorMessage
    ) internal returns (bytes memory) {
        require(address(this).balance >= value, "Address: insufficient balance for call");
        require(isContract(target), "Address: call to non-contract");

        (bool success, bytes memory returndata) = target.call{value: value}(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
        return functionStaticCall(target, data, "Address: low-level static call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        require(isContract(target), "Address: static call to non-contract");

        (bool success, bytes memory returndata) = target.staticcall(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionDelegateCall(target, data, "Address: low-level delegate call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        require(isContract(target), "Address: delegate call to non-contract");

        (bool success, bytes memory returndata) = target.delegatecall(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason using the provided one.
     *
     * _Available since v4.3._
     */
    function verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal pure returns (bytes memory) {
        if (success) {
            return returndata;
        } else {
            // Look for revert reason and bubble it up if present
            if (returndata.length > 0) {
                // The easiest way to bubble the revert reason is using memory via assembly
                /// @solidity memory-safe-assembly
                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

File 3 of 11: Context.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)

pragma solidity ^0.8.0;

/**
 * @dev Provides information about the current execution context, including the
 * sender of the transaction and its data. While these are generally available
 * via msg.sender and msg.data, they should not be accessed in such a direct
 * manner, since when dealing with meta-transactions the account sending and
 * paying for execution may not be the actual sender (as far as an application
 * is concerned).
 *
 * This contract is only required for intermediate, library-like contracts.
 */
abstract contract Context {
    function _msgSender() internal view virtual returns (address) {
        return msg.sender;
    }

    function _msgData() internal view virtual returns (bytes calldata) {
        return msg.data;
    }
}

File 4 of 11: ERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol)

pragma solidity ^0.8.0;

import "./IERC165.sol";

/**
 * @dev Implementation of the {IERC165} interface.
 *
 * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check
 * for the additional interface id that will be supported. For example:
 *
 * ```solidity
 * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
 *     return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId);
 * }
 * ```
 *
 * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation.
 */
abstract contract ERC165 is IERC165 {
    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
        return interfaceId == type(IERC165).interfaceId;
    }
}

File 5 of 11: ERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (token/ERC721/ERC721.sol)

pragma solidity ^0.8.0;

import "./IERC721.sol";
import "./IERC721Receiver.sol";
import "./IERC721Metadata.sol";
import "./Address.sol";
import "./Context.sol";
import "./Strings.sol";
import "./ERC165.sol";

/**
 * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
 * the Metadata extension, but not including the Enumerable extension, which is available separately as
 * {ERC721Enumerable}.
 */
contract ERC721 is Context, ERC165, IERC721, IERC721Metadata {
    using Address for address;
    using Strings for uint256;

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

    // Mapping from token ID to owner address
    mapping(uint256 => address) private _owners;

    // Mapping owner address to token count
    mapping(address => uint256) private _balances;

    // Mapping from token ID to approved address
    mapping(uint256 => address) private _tokenApprovals;

    // Mapping from owner to operator approvals
    mapping(address => mapping(address => bool)) private _operatorApprovals;

    /**
     * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection.
     */
    constructor(string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
    }

    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) {
        return
            interfaceId == type(IERC721).interfaceId ||
            interfaceId == type(IERC721Metadata).interfaceId ||
            super.supportsInterface(interfaceId);
    }

    /**
     * @dev See {IERC721-balanceOf}.
     */
    function balanceOf(address owner) public view virtual override returns (uint256) {
        require(owner != address(0), "ERC721: address zero is not a valid owner");
        return _balances[owner];
    }

    /**
     * @dev See {IERC721-ownerOf}.
     */
    function ownerOf(uint256 tokenId) public view virtual override returns (address) {
        address owner = _owners[tokenId];
        require(owner != address(0), "ERC721: invalid token ID");
        return owner;
    }

    /**
     * @dev See {IERC721Metadata-name}.
     */
    function name() public view virtual override returns (string memory) {
        return _name;
    }

    /**
     * @dev See {IERC721Metadata-symbol}.
     */
    function symbol() public view virtual override returns (string memory) {
        return _symbol;
    }

    /**
     * @dev See {IERC721Metadata-tokenURI}.
     */
    function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
        _requireMinted(tokenId);

        string memory baseURI = _baseURI();
        return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : "";
    }

    /**
     * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each
     * token will be the concatenation of the `baseURI` and the `tokenId`. Empty
     * by default, can be overridden in child contracts.
     */
    function _baseURI() internal view virtual returns (string memory) {
        return "";
    }

    /**
     * @dev See {IERC721-approve}.
     */
    function approve(address to, uint256 tokenId) public virtual override {
        address owner = ERC721.ownerOf(tokenId);
        require(to != owner, "ERC721: approval to current owner");

        require(
            _msgSender() == owner || isApprovedForAll(owner, _msgSender()),
            "ERC721: approve caller is not token owner nor approved for all"
        );

        _approve(to, tokenId);
    }

    /**
     * @dev See {IERC721-getApproved}.
     */
    function getApproved(uint256 tokenId) public view virtual override returns (address) {
        _requireMinted(tokenId);

        return _tokenApprovals[tokenId];
    }

    /**
     * @dev See {IERC721-setApprovalForAll}.
     */
    function setApprovalForAll(address operator, bool approved) public virtual override {
        _setApprovalForAll(_msgSender(), operator, approved);
    }

    /**
     * @dev See {IERC721-isApprovedForAll}.
     */
    function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) {
        return _operatorApprovals[owner][operator];
    }

    /**
     * @dev See {IERC721-transferFrom}.
     */
    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public virtual override {
        //solhint-disable-next-line max-line-length
        require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: caller is not token owner nor approved");

        _transfer(from, to, tokenId);
    }

    /**
     * @dev See {IERC721-safeTransferFrom}.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public virtual override {
        safeTransferFrom(from, to, tokenId, "");
    }

    /**
     * @dev See {IERC721-safeTransferFrom}.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId,
        bytes memory data
    ) public virtual override {
        require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: caller is not token owner nor approved");
        _safeTransfer(from, to, tokenId, data);
    }

    /**
     * @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.
     *
     * `data` is additional data, it has no specified format and it is sent in call to `to`.
     *
     * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g.
     * implement alternative mechanisms to perform token transfer, such as signature-based.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function _safeTransfer(
        address from,
        address to,
        uint256 tokenId,
        bytes memory data
    ) internal virtual {
        _transfer(from, to, tokenId);
        require(_checkOnERC721Received(from, to, tokenId, data), "ERC721: transfer to non ERC721Receiver implementer");
    }

    /**
     * @dev Returns whether `tokenId` exists.
     *
     * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}.
     *
     * Tokens start existing when they are minted (`_mint`),
     * and stop existing when they are burned (`_burn`).
     */
    function _exists(uint256 tokenId) internal view virtual returns (bool) {
        return _owners[tokenId] != address(0);
    }

    /**
     * @dev Returns whether `spender` is allowed to manage `tokenId`.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) {
        address owner = ERC721.ownerOf(tokenId);
        return (spender == owner || isApprovedForAll(owner, spender) || getApproved(tokenId) == spender);
    }

    /**
     * @dev Safely mints `tokenId` and transfers it to `to`.
     *
     * Requirements:
     *
     * - `tokenId` must not exist.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function _safeMint(address to, uint256 tokenId) internal virtual {
        _safeMint(to, tokenId, "");
    }

    /**
     * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is
     * forwarded in {IERC721Receiver-onERC721Received} to contract recipients.
     */
    function _safeMint(
        address to,
        uint256 tokenId,
        bytes memory data
    ) internal virtual {
        _mint(to, tokenId);
        require(
            _checkOnERC721Received(address(0), to, tokenId, data),
            "ERC721: transfer to non ERC721Receiver implementer"
        );
    }

    /**
     * @dev Mints `tokenId` and transfers it to `to`.
     *
     * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible
     *
     * Requirements:
     *
     * - `tokenId` must not exist.
     * - `to` cannot be the zero address.
     *
     * Emits a {Transfer} event.
     */
    function _mint(address to, uint256 tokenId) internal virtual {
        require(to != address(0), "ERC721: mint to the zero address");
        require(!_exists(tokenId), "ERC721: token already minted");

        _beforeTokenTransfer(address(0), to, tokenId);

        _balances[to] += 1;
        _owners[tokenId] = to;

        emit Transfer(address(0), to, tokenId);

        _afterTokenTransfer(address(0), to, tokenId);
    }

    /**
     * @dev Destroys `tokenId`.
     * The approval is cleared when the token is burned.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     *
     * Emits a {Transfer} event.
     */
    function _burn(uint256 tokenId) internal virtual {
        address owner = ERC721.ownerOf(tokenId);

        _beforeTokenTransfer(owner, address(0), tokenId);

        // Clear approvals
        _approve(address(0), tokenId);

        _balances[owner] -= 1;
        delete _owners[tokenId];

        emit Transfer(owner, address(0), tokenId);

        _afterTokenTransfer(owner, address(0), tokenId);
    }

    /**
     * @dev Transfers `tokenId` from `from` to `to`.
     *  As opposed to {transferFrom}, this imposes no restrictions on msg.sender.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - `tokenId` token must be owned by `from`.
     *
     * Emits a {Transfer} event.
     */
    function _transfer(
        address from,
        address to,
        uint256 tokenId
    ) internal virtual {
        require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer from incorrect owner");
        require(to != address(0), "ERC721: transfer to the zero address");

        _beforeTokenTransfer(from, to, tokenId);

        // Clear approvals from the previous owner
        _approve(address(0), tokenId);

        _balances[from] -= 1;
        _balances[to] += 1;
        _owners[tokenId] = to;

        emit Transfer(from, to, tokenId);

        _afterTokenTransfer(from, to, tokenId);
    }

    /**
     * @dev Approve `to` to operate on `tokenId`
     *
     * Emits an {Approval} event.
     */
    function _approve(address to, uint256 tokenId) internal virtual {
        _tokenApprovals[tokenId] = to;
        emit Approval(ERC721.ownerOf(tokenId), to, tokenId);
    }

    /**
     * @dev Approve `operator` to operate on all of `owner` tokens
     *
     * Emits an {ApprovalForAll} event.
     */
    function _setApprovalForAll(
        address owner,
        address operator,
        bool approved
    ) internal virtual {
        require(owner != operator, "ERC721: approve to caller");
        _operatorApprovals[owner][operator] = approved;
        emit ApprovalForAll(owner, operator, approved);
    }

    /**
     * @dev Reverts if the `tokenId` has not been minted yet.
     */
    function _requireMinted(uint256 tokenId) internal view virtual {
        require(_exists(tokenId), "ERC721: invalid token ID");
    }

    /**
     * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address.
     * The call is not executed if the target address is not a contract.
     *
     * @param from address representing the previous owner of the given token ID
     * @param to target address that will receive the tokens
     * @param tokenId uint256 ID of the token to be transferred
     * @param data bytes optional data to send along with the call
     * @return bool whether the call correctly returned the expected magic value
     */
    function _checkOnERC721Received(
        address from,
        address to,
        uint256 tokenId,
        bytes memory data
    ) private returns (bool) {
        if (to.isContract()) {
            try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, data) returns (bytes4 retval) {
                return retval == IERC721Receiver.onERC721Received.selector;
            } catch (bytes memory reason) {
                if (reason.length == 0) {
                    revert("ERC721: transfer to non ERC721Receiver implementer");
                } else {
                    /// @solidity memory-safe-assembly
                    assembly {
                        revert(add(32, reason), mload(reason))
                    }
                }
            }
        } else {
            return true;
        }
    }

    /**
     * @dev Hook that is called before any token transfer. This includes minting
     * and burning.
     *
     * Calling conditions:
     *
     * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be
     * transferred to `to`.
     * - When `from` is zero, `tokenId` will be minted for `to`.
     * - When `to` is zero, ``from``'s `tokenId` will be burned.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _beforeTokenTransfer(
        address from,
        address to,
        uint256 tokenId
    ) internal virtual {}

    /**
     * @dev Hook that is called after any transfer of tokens. This includes
     * minting and burning.
     *
     * Calling conditions:
     *
     * - when `from` and `to` are both non-zero.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _afterTokenTransfer(
        address from,
        address to,
        uint256 tokenId
    ) internal virtual {}
}

File 6 of 11: IERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC165 standard, as defined in the
 * https://eips.ethereum.org/EIPS/eip-165[EIP].
 *
 * Implementers can declare support of contract interfaces, which can then be
 * queried by others ({ERC165Checker}).
 *
 * For an implementation, see {ERC165}.
 */
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);
}

File 7 of 11: IERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (token/ERC721/IERC721.sol)

pragma solidity ^0.8.0;

import "./IERC165.sol";

/**
 * @dev Required interface of an ERC721 compliant contract.
 */
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`.
     *
     * 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;

    /**
     * @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 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 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 the account approved for `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function getApproved(uint256 tokenId) external view returns (address operator);

    /**
     * @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);
}

File 8 of 11: IERC721A.sol
// SPDX-License-Identifier: MIT
// ERC721A Contracts v4.2.3
// Creator: Chiru Labs

pragma solidity ^0.8.4;

/**
 * @dev Interface of ERC721A.
 */
interface IERC721A {
    /**
     * The caller must own the token or be an approved operator.
     */
    error ApprovalCallerNotOwnerNorApproved();

    /**
     * The token does not exist.
     */
    error ApprovalQueryForNonexistentToken();

    /**
     * Cannot query the balance for the zero address.
     */
    error BalanceQueryForZeroAddress();

    /**
     * Cannot mint to the zero address.
     */
    error MintToZeroAddress();

    /**
     * The quantity of tokens minted must be more than zero.
     */
    error MintZeroQuantity();

    /**
     * The token does not exist.
     */
    error OwnerQueryForNonexistentToken();

    /**
     * The caller must own the token or be an approved operator.
     */
    error TransferCallerNotOwnerNorApproved();

    /**
     * The token must be owned by `from`.
     */
    error TransferFromIncorrectOwner();

    /**
     * Cannot safely transfer to a contract that does not implement the
     * ERC721Receiver interface.
     */
    error TransferToNonERC721ReceiverImplementer();

    /**
     * Cannot transfer to the zero address.
     */
    error TransferToZeroAddress();

    /**
     * The token does not exist.
     */
    error URIQueryForNonexistentToken();

    /**
     * The `quantity` minted with ERC2309 exceeds the safety limit.
     */
    error MintERC2309QuantityExceedsLimit();

    /**
     * The `extraData` cannot be set on an unintialized ownership slot.
     */
    error OwnershipNotInitializedForExtraData();

    // =============================================================
    //                            STRUCTS
    // =============================================================

    struct TokenOwnership {
        // The address of the owner.
        address addr;
        // Stores the start time of ownership with minimal overhead for tokenomics.
        uint64 startTimestamp;
        // Whether the token has been burned.
        bool burned;
        // Arbitrary data similar to `startTimestamp` that can be set via {_extraData}.
        uint24 extraData;
    }

    // =============================================================
    //                         TOKEN COUNTERS
    // =============================================================

    /**
     * @dev Returns the total number of tokens in existence.
     * Burned tokens will reduce the count.
     * To get the total number of tokens minted, please see {_totalMinted}.
     */
    function totalSupply() external view returns (uint256);

    // =============================================================
    //                            IERC165
    // =============================================================

    /**
     * @dev Returns true if this contract implements the interface defined by
     * `interfaceId`. See the corresponding
     * [EIP section](https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified)
     * to learn more about how these ids are created.
     *
     * This function call must use less than 30000 gas.
     */
    function supportsInterface(bytes4 interfaceId) external view returns (bool);

    // =============================================================
    //                            IERC721
    // =============================================================

    /**
     * @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,
        bytes calldata data
    ) external payable;

    /**
     * @dev Equivalent to `safeTransferFrom(from, to, tokenId, '')`.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId
    ) external payable;

    /**
     * @dev Transfers `tokenId` 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 payable;

    /**
     * @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 payable;

    /**
     * @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 the account approved for `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function getApproved(uint256 tokenId) external view returns (address operator);

    /**
     * @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);

    // =============================================================
    //                        IERC721Metadata
    // =============================================================

    /**
     * @dev Returns the token collection name.
     */
    function name() external view returns (string memory);

    /**
     * @dev Returns the token collection symbol.
     */
    function symbol() external view returns (string memory);

    /**
     * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token.
     */
    function tokenURI(uint256 tokenId) external view returns (string memory);

    // =============================================================
    //                           IERC2309
    // =============================================================

    /**
     * @dev Emitted when tokens in `fromTokenId` to `toTokenId`
     * (inclusive) is transferred from `from` to `to`, as defined in the
     * [ERC2309](https://eips.ethereum.org/EIPS/eip-2309) standard.
     *
     * See {_mintERC2309} for more details.
     */
    event ConsecutiveTransfer(uint256 indexed fromTokenId, uint256 toTokenId, address indexed from, address indexed to);
}

File 9 of 11: IERC721Metadata.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol)

pragma solidity ^0.8.0;

import "./IERC721.sol";

/**
 * @title ERC-721 Non-Fungible Token Standard, optional metadata extension
 * @dev See https://eips.ethereum.org/EIPS/eip-721
 */
interface IERC721Metadata is IERC721 {
    /**
     * @dev Returns the token collection name.
     */
    function name() external view returns (string memory);

    /**
     * @dev Returns the token collection symbol.
     */
    function symbol() external view returns (string memory);

    /**
     * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token.
     */
    function tokenURI(uint256 tokenId) external view returns (string memory);
}

File 10 of 11: IERC721Receiver.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721Receiver.sol)

pragma solidity ^0.8.0;

/**
 * @title ERC721 token receiver interface
 * @dev Interface for any contract that wants to support safeTransfers
 * from ERC721 asset contracts.
 */
interface IERC721Receiver {
    /**
     * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom}
     * by `operator` from `from`, this function is called.
     *
     * It must return its Solidity selector to confirm the token transfer.
     * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted.
     *
     * The selector can be obtained in Solidity with `IERC721Receiver.onERC721Received.selector`.
     */
    function onERC721Received(
        address operator,
        address from,
        uint256 tokenId,
        bytes calldata data
    ) external returns (bytes4);
}

File 11 of 11: Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (utils/Strings.sol)

pragma solidity ^0.8.0;

/**
 * @dev String operations.
 */
library Strings {
    bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef";
    uint8 private constant _ADDRESS_LENGTH = 20;

    /**
     * @dev Converts a `uint256` to its ASCII `string` decimal representation.
     */
    function toString(uint256 value) internal pure returns (string memory) {
        // Inspired by OraclizeAPI's implementation - MIT licence
        // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol

        if (value == 0) {
            return "0";
        }
        uint256 temp = value;
        uint256 digits;
        while (temp != 0) {
            digits++;
            temp /= 10;
        }
        bytes memory buffer = new bytes(digits);
        while (value != 0) {
            digits -= 1;
            buffer[digits] = bytes1(uint8(48 + uint256(value % 10)));
            value /= 10;
        }
        return string(buffer);
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.
     */
    function toHexString(uint256 value) internal pure returns (string memory) {
        if (value == 0) {
            return "0x00";
        }
        uint256 temp = value;
        uint256 length = 0;
        while (temp != 0) {
            length++;
            temp >>= 8;
        }
        return toHexString(value, length);
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.
     */
    function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {
        bytes memory buffer = new bytes(2 * length + 2);
        buffer[0] = "0";
        buffer[1] = "x";
        for (uint256 i = 2 * length + 1; i > 1; --i) {
            buffer[i] = _HEX_SYMBOLS[value & 0xf];
            value >>= 4;
        }
        require(value == 0, "Strings: hex length insufficient");
        return string(buffer);
    }

    /**
     * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation.
     */
    function toHexString(address addr) internal pure returns (string memory) {
        return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH);
    }
}

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"burnAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"burnLimitPerCollector","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"burnOpened","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"burnPerWindow","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"currentBurnWindow","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"currentBurntForWindow","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"collector","type":"address"}],"name":"getBurnByAddress","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getRemainingBurnsForCurrentWindow","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"isAdmin","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"nftAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_burnAddress","type":"address"}],"name":"setBurnAdress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_burnLimitPerCollector","type":"uint256"}],"name":"setBurnLimitPerCollector","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_totalBurnLimit","type":"uint256"}],"name":"setMaxBurnLimit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_nftAddress","type":"address"}],"name":"setNFTAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_burnAddress","type":"address"},{"internalType":"uint256","name":"_burnLimitPerCollector","type":"uint256"},{"internalType":"uint256","name":"_maxBurnNumber","type":"uint256"},{"internalType":"bool","name":"_startsImmediately","type":"bool"}],"name":"setNewBurnWindow","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_admin","type":"address"}],"name":"toggleAdmin","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"toggleBurnOpened","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"totalBurnLimit","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_burnAddress","type":"address"},{"internalType":"uint256","name":"_burnLimitPerCollector","type":"uint256"},{"internalType":"uint256","name":"_maxBurnNumber","type":"uint256"},{"internalType":"bool","name":"_isOpened","type":"bool"}],"name":"updateCurrentBurnWindow","outputs":[],"stateMutability":"nonpayable","type":"function"}]

608060405234801561001057600080fd5b50600480546001600160a01b031990811661dead17909155336000908152600660205260408120805460ff19166001179055600355600580549091167306af6dd59354a40358091b9644db7a72b3a2297d17905561096e806100736000396000f3fe608060405234801561001057600080fd5b506004361061012c5760003560e01c806378fde153116100ad578063d3b8614111610071578063d3b861411461028c578063d91a5b5d1461029f578063e1e51117146102d5578063f161d004146102e8578063fa93a4ec146102f557600080fd5b806378fde153146102425780639745a0fe146102555780639f4b3f6e1461025d578063a305969614610270578063b11253f71461028357600080fd5b80635bf8633a116100f45780635bf8633a146101be57806362710687146101e957806369d037381461021457806370d5ae051461022757806373e43e961461023a57600080fd5b8063088bd7ea1461013157806315e2c32d1461014d57806324d7806c1461016d57806334c1f1d2146101a057806342966c68146101a9575b600080fd5b61013a60035481565b6040519081526020015b60405180910390f35b61013a61015b3660046107de565b60086020526000908152604090205481565b61019061017b366004610813565b60066020526000908152604090205460ff1681565b6040519015158152602001610144565b61013a60025481565b6101bc6101b73660046107de565b610308565b005b6005546101d1906001600160a01b031681565b6040516001600160a01b039091168152602001610144565b61013a6101f7366004610835565b600760209081526000928352604080842090915290825290205481565b6101bc610222366004610813565b610519565b6004546101d1906001600160a01b031681565b61013a61056a565b6101bc6102503660046107de565b61058e565b6101bc6105c2565b6101bc61026b366004610813565b610605565b6101bc61027e3660046107de565b610656565b61013a60015481565b6101bc61029a366004610813565b61068a565b61013a6102ad366004610813565b6001600160a01b03166000908152600760209081526040808320600354845290915290205490565b6101bc6102e336600461085f565b6106e2565b6000546101909060ff1681565b6101bc61030336600461085f565b61074e565b60005460ff166103575760405162461bcd60e51b8152602060048201526015602482015274109d5c9b8818dd5c9c995b9d1b1e4818db1bdcd959605a1b60448201526064015b60405180910390fd5b600254156103c157600254600354600090815260086020526040902054106103c15760405162461bcd60e51b815260206004820152601760248201527f4d6178206275726e206e756d6265722072656163686564000000000000000000604482015260640161034e565b60015415610455576001543360009081526007602090815260408083206003548452909152902054106104555760405162461bcd60e51b815260206004820152603660248201527f4d6178696d756d206e756d626572206f6620746f6b656e7320616c7265616479604482015275206275726e7420666f7220746869732077696e646f7760501b606482015260840161034e565b6003546000908152600860205260408120805491610472836108c2565b90915550503360009081526007602090815260408083206003548452909152812080549161049f836108c2565b909155505060055460048054604051632142170760e11b815233928101929092526001600160a01b03908116602483015260448201849052909116906342842e0e90606401600060405180830381600087803b1580156104fe57600080fd5b505af1158015610512573d6000803e3d6000fd5b5050505050565b3360009081526006602052604090205460ff166105485760405162461bcd60e51b815260040161034e906108db565b600580546001600160a01b0319166001600160a01b0392909216919091179055565b600354600090815260086020526040812054600254610589919061091f565b905090565b3360009081526006602052604090205460ff166105bd5760405162461bcd60e51b815260040161034e906108db565b600255565b3360009081526006602052604090205460ff166105f15760405162461bcd60e51b815260040161034e906108db565b6000805460ff19811660ff90911615179055565b3360009081526006602052604090205460ff166106345760405162461bcd60e51b815260040161034e906108db565b600480546001600160a01b0319166001600160a01b0392909216919091179055565b3360009081526006602052604090205460ff166106855760405162461bcd60e51b815260040161034e906108db565b600155565b3360009081526006602052604090205460ff166106b95760405162461bcd60e51b815260040161034e906108db565b6001600160a01b03166000908152600660205260409020805460ff19811660ff90911615179055565b3360009081526006602052604090205460ff166107115760405162461bcd60e51b815260040161034e906108db565b600480546001600160a01b0319166001600160a01b0395909516949094179093556001919091556002556000805460ff1916911515919091179055565b3360009081526006602052604090205460ff1661077d5760405162461bcd60e51b815260040161034e906108db565b6003805490600061078d836108c2565b9091555050600480546001600160a01b0319166001600160a01b0395909516949094179093556001919091556000805460ff1916921515929092178255600255600354815260086020526040812055565b6000602082840312156107f057600080fd5b5035919050565b80356001600160a01b038116811461080e57600080fd5b919050565b60006020828403121561082557600080fd5b61082e826107f7565b9392505050565b6000806040838503121561084857600080fd5b610851836107f7565b946020939093013593505050565b6000806000806080858703121561087557600080fd5b61087e856107f7565b93506020850135925060408501359150606085013580151581146108a157600080fd5b939692955090935050565b634e487b7160e01b600052601160045260246000fd5b6000600182016108d4576108d46108ac565b5060010190565b60208082526024908201527f4f6e6c792061646d696e732063616e2063616c6c6c20746869732066756e6374604082015263696f6e6f60e01b606082015260800190565b81810381811115610932576109326108ac565b9291505056fea2646970667358221220a869432f96378f76ff0186356706c7a45ee5dfbca2b0768948df8f06137d3c0d64736f6c63430008110033

Deployed Bytecode

0x608060405234801561001057600080fd5b506004361061012c5760003560e01c806378fde153116100ad578063d3b8614111610071578063d3b861411461028c578063d91a5b5d1461029f578063e1e51117146102d5578063f161d004146102e8578063fa93a4ec146102f557600080fd5b806378fde153146102425780639745a0fe146102555780639f4b3f6e1461025d578063a305969614610270578063b11253f71461028357600080fd5b80635bf8633a116100f45780635bf8633a146101be57806362710687146101e957806369d037381461021457806370d5ae051461022757806373e43e961461023a57600080fd5b8063088bd7ea1461013157806315e2c32d1461014d57806324d7806c1461016d57806334c1f1d2146101a057806342966c68146101a9575b600080fd5b61013a60035481565b6040519081526020015b60405180910390f35b61013a61015b3660046107de565b60086020526000908152604090205481565b61019061017b366004610813565b60066020526000908152604090205460ff1681565b6040519015158152602001610144565b61013a60025481565b6101bc6101b73660046107de565b610308565b005b6005546101d1906001600160a01b031681565b6040516001600160a01b039091168152602001610144565b61013a6101f7366004610835565b600760209081526000928352604080842090915290825290205481565b6101bc610222366004610813565b610519565b6004546101d1906001600160a01b031681565b61013a61056a565b6101bc6102503660046107de565b61058e565b6101bc6105c2565b6101bc61026b366004610813565b610605565b6101bc61027e3660046107de565b610656565b61013a60015481565b6101bc61029a366004610813565b61068a565b61013a6102ad366004610813565b6001600160a01b03166000908152600760209081526040808320600354845290915290205490565b6101bc6102e336600461085f565b6106e2565b6000546101909060ff1681565b6101bc61030336600461085f565b61074e565b60005460ff166103575760405162461bcd60e51b8152602060048201526015602482015274109d5c9b8818dd5c9c995b9d1b1e4818db1bdcd959605a1b60448201526064015b60405180910390fd5b600254156103c157600254600354600090815260086020526040902054106103c15760405162461bcd60e51b815260206004820152601760248201527f4d6178206275726e206e756d6265722072656163686564000000000000000000604482015260640161034e565b60015415610455576001543360009081526007602090815260408083206003548452909152902054106104555760405162461bcd60e51b815260206004820152603660248201527f4d6178696d756d206e756d626572206f6620746f6b656e7320616c7265616479604482015275206275726e7420666f7220746869732077696e646f7760501b606482015260840161034e565b6003546000908152600860205260408120805491610472836108c2565b90915550503360009081526007602090815260408083206003548452909152812080549161049f836108c2565b909155505060055460048054604051632142170760e11b815233928101929092526001600160a01b03908116602483015260448201849052909116906342842e0e90606401600060405180830381600087803b1580156104fe57600080fd5b505af1158015610512573d6000803e3d6000fd5b5050505050565b3360009081526006602052604090205460ff166105485760405162461bcd60e51b815260040161034e906108db565b600580546001600160a01b0319166001600160a01b0392909216919091179055565b600354600090815260086020526040812054600254610589919061091f565b905090565b3360009081526006602052604090205460ff166105bd5760405162461bcd60e51b815260040161034e906108db565b600255565b3360009081526006602052604090205460ff166105f15760405162461bcd60e51b815260040161034e906108db565b6000805460ff19811660ff90911615179055565b3360009081526006602052604090205460ff166106345760405162461bcd60e51b815260040161034e906108db565b600480546001600160a01b0319166001600160a01b0392909216919091179055565b3360009081526006602052604090205460ff166106855760405162461bcd60e51b815260040161034e906108db565b600155565b3360009081526006602052604090205460ff166106b95760405162461bcd60e51b815260040161034e906108db565b6001600160a01b03166000908152600660205260409020805460ff19811660ff90911615179055565b3360009081526006602052604090205460ff166107115760405162461bcd60e51b815260040161034e906108db565b600480546001600160a01b0319166001600160a01b0395909516949094179093556001919091556002556000805460ff1916911515919091179055565b3360009081526006602052604090205460ff1661077d5760405162461bcd60e51b815260040161034e906108db565b6003805490600061078d836108c2565b9091555050600480546001600160a01b0319166001600160a01b0395909516949094179093556001919091556000805460ff1916921515929092178255600255600354815260086020526040812055565b6000602082840312156107f057600080fd5b5035919050565b80356001600160a01b038116811461080e57600080fd5b919050565b60006020828403121561082557600080fd5b61082e826107f7565b9392505050565b6000806040838503121561084857600080fd5b610851836107f7565b946020939093013593505050565b6000806000806080858703121561087557600080fd5b61087e856107f7565b93506020850135925060408501359150606085013580151581146108a157600080fd5b939692955090935050565b634e487b7160e01b600052601160045260246000fd5b6000600182016108d4576108d46108ac565b5060010190565b60208082526024908201527f4f6e6c792061646d696e732063616e2063616c6c6c20746869732066756e6374604082015263696f6e6f60e01b606082015260800190565b81810381811115610932576109326108ac565b9291505056fea2646970667358221220a869432f96378f76ff0186356706c7a45ee5dfbca2b0768948df8f06137d3c0d64736f6c63430008110033

Deployed Bytecode Sourcemap

448:3265:1:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;586:32;;;;;;;;;160:25:11;;;148:2;133:18;586:32:1;;;;;;;;859:57;;;;;;:::i;:::-;;;;;;;;;;;;;;688:40;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;915:14:11;;908:22;890:41;;878:2;863:18;688:40:1;750:187:11;551:29:1;;;;;;3024:685;;;;;;:::i;:::-;;:::i;:::-;;656:25;;;;;-1:-1:-1;;;;;656:25:1;;;;;;-1:-1:-1;;;;;1106:32:11;;;1088:51;;1076:2;1061:18;656:25:1;942:203:11;734:70:1;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;1594:103;;;;;;:::i;:::-;;:::i;624:26::-;;;;;-1:-1:-1;;;;;624:26:1;;;2742:153;;;:::i;2901:117::-;;;;;;:::i;:::-;;:::i;1501:87::-;;;:::i;1389:106::-;;;;;;:::i;:::-;;:::i;1703:147::-;;;;;;:::i;:::-;;:::i;509:36::-;;;;;;1277:106;;;;;;:::i;:::-;;:::i;2597:139::-;;;;;;:::i;:::-;-1:-1:-1;;;;;2686:24:1;2664:4;2686:24;;;:13;:24;;;;;;;;2711:17;;2686:43;;;;;;;;;2597:139;2274:317;;;;;;:::i;:::-;;:::i;481:22::-;;;;;;;;;1856:412;;;;;;:::i;:::-;;:::i;3024:685::-;3080:10;;;;3072:44;;;;-1:-1:-1;;;3072:44:1;;2100:2:11;3072:44:1;;;2082:21:11;2139:2;2119:18;;;2112:30;-1:-1:-1;;;2158:18:11;;;2151:51;2219:18;;3072:44:1;;;;;;;;;3129:14;;:18;3126:140;;3213:14;;3192:17;;3170:40;;;;:21;:40;;;;;;:57;3162:93;;;;-1:-1:-1;;;3162:93:1;;2450:2:11;3162:93:1;;;2432:21:11;2489:2;2469:18;;;2462:30;2528:25;2508:18;;;2501:53;2571:18;;3162:93:1;2248:347:11;3162:93:1;3278:21;;:25;3275:189;;3373:21;;3340:10;3326:25;;;;:13;:25;;;;;;;;3352:17;;3326:44;;;;;;;;:68;3318:135;;;;-1:-1:-1;;;3318:135:1;;2802:2:11;3318:135:1;;;2784:21:11;2841:2;2821:18;;;2814:30;2880:34;2860:18;;;2853:62;-1:-1:-1;;;2931:18:11;;;2924:52;2993:19;;3318:135:1;2600:418:11;3318:135:1;3495:17;;3473:40;;;;:21;:40;;;;;:43;;;;;;:::i;:::-;;;;-1:-1:-1;;3540:10:1;3526:25;;;;:13;:25;;;;;;;;3552:17;;3526:44;;;;;;;:47;;;;;;:::i;:::-;;;;-1:-1:-1;;3592:10:1;;3659:11;;;3583:119;;-1:-1:-1;;;3583:119:1;;3634:10;3583:119;;;3535:34:11;;;;-1:-1:-1;;;;;3659:11:1;;;3585:18:11;;;3578:43;3637:18;;;3630:34;;;3592:10:1;;;;3583:37;;3470:18:11;;3583:119:1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3024:685;:::o;1594:103::-;1201:10;1193:19;;;;:7;:19;;;;;;;;1185:68;;;;-1:-1:-1;;;1185:68:1;;;;;;;:::i;:::-;1666:10:::1;:24:::0;;-1:-1:-1;;;;;;1666:24:1::1;-1:-1:-1::0;;;;;1666:24:1;;;::::1;::::0;;;::::1;::::0;;1594:103::o;2742:153::-;2870:17;;2809:4;2848:40;;;:21;:40;;;;;;2831:14;;:57;;2848:40;2831:57;:::i;:::-;2824:64;;2742:153;:::o;2901:117::-;1201:10;1193:19;;;;:7;:19;;;;;;;;1185:68;;;;-1:-1:-1;;;1185:68:1;;;;;;;:::i;:::-;2979:14:::1;:32:::0;2901:117::o;1501:87::-;1201:10;1193:19;;;;:7;:19;;;;;;;;1185:68;;;;-1:-1:-1;;;1185:68:1;;;;;;;:::i;:::-;1571:10:::1;::::0;;-1:-1:-1;;1557:24:1;::::1;1571:10;::::0;;::::1;1570:11;1557:24;::::0;;1501:87::o;1389:106::-;1201:10;1193:19;;;;:7;:19;;;;;;;;1185:68;;;;-1:-1:-1;;;1185:68:1;;;;;;;:::i;:::-;1462:11:::1;:26:::0;;-1:-1:-1;;;;;;1462:26:1::1;-1:-1:-1::0;;;;;1462:26:1;;;::::1;::::0;;;::::1;::::0;;1389:106::o;1703:147::-;1201:10;1193:19;;;;:7;:19;;;;;;;;1185:68;;;;-1:-1:-1;;;1185:68:1;;;;;;;:::i;:::-;1797:21:::1;:46:::0;1703:147::o;1277:106::-;1201:10;1193:19;;;;:7;:19;;;;;;;;1185:68;;;;-1:-1:-1;;;1185:68:1;;;;;;;:::i;:::-;-1:-1:-1;;;;;1361:15:1::1;;::::0;;;:7:::1;:15;::::0;;;;;;-1:-1:-1;;1342:34:1;::::1;1361:15;::::0;;::::1;1360:16;1342:34;::::0;;1277:106::o;2274:317::-;1201:10;1193:19;;;;:7;:19;;;;;;;;1185:68;;;;-1:-1:-1;;;1185:68:1;;;;;;;:::i;:::-;2429:11:::1;:26:::0;;-1:-1:-1;;;;;;2429:26:1::1;-1:-1:-1::0;;;;;2429:26:1;;;::::1;::::0;;;::::1;::::0;;;-1:-1:-1;2465:46:1;;;;2521:14:::1;:31:::0;-1:-1:-1;2562:22:1;;-1:-1:-1;;2562:22:1::1;::::0;::::1;;::::0;;;::::1;::::0;;2274:317::o;1856:412::-;1201:10;1193:19;;;;:7;:19;;;;;;;;1185:68;;;;-1:-1:-1;;;1185:68:1;;;;;;;:::i;:::-;2013:17:::1;:20:::0;;;:17:::1;:20;::::0;::::1;:::i;:::-;::::0;;;-1:-1:-1;;2043:11:1::1;:26:::0;;-1:-1:-1;;;;;;2043:26:1::1;-1:-1:-1::0;;;;;2043:26:1;;;::::1;::::0;;;::::1;::::0;;;-1:-1:-1;2079:46:1;;;;-1:-1:-1;2135:31:1;;-1:-1:-1;;2135:31:1::1;::::0;::::1;;::::0;;;::::1;::::0;;2176:14:::1;:31:::0;-1:-1:-1;2239:17:1;2217:40;;:21:::1;:40;::::0;;;;:44;1856:412::o;196:180:11:-;255:6;308:2;296:9;287:7;283:23;279:32;276:52;;;324:1;321;314:12;276:52;-1:-1:-1;347:23:11;;196:180;-1:-1:-1;196:180:11:o;381:173::-;449:20;;-1:-1:-1;;;;;498:31:11;;488:42;;478:70;;544:1;541;534:12;478:70;381:173;;;:::o;559:186::-;618:6;671:2;659:9;650:7;646:23;642:32;639:52;;;687:1;684;677:12;639:52;710:29;729:9;710:29;:::i;:::-;700:39;559:186;-1:-1:-1;;;559:186:11:o;1150:254::-;1218:6;1226;1279:2;1267:9;1258:7;1254:23;1250:32;1247:52;;;1295:1;1292;1285:12;1247:52;1318:29;1337:9;1318:29;:::i;:::-;1308:39;1394:2;1379:18;;;;1366:32;;-1:-1:-1;;;1150:254:11:o;1409:484::-;1492:6;1500;1508;1516;1569:3;1557:9;1548:7;1544:23;1540:33;1537:53;;;1586:1;1583;1576:12;1537:53;1609:29;1628:9;1609:29;:::i;:::-;1599:39;;1685:2;1674:9;1670:18;1657:32;1647:42;;1736:2;1725:9;1721:18;1708:32;1698:42;;1790:2;1779:9;1775:18;1762:32;1837:5;1830:13;1823:21;1816:5;1813:32;1803:60;;1859:1;1856;1849:12;1803:60;1409:484;;;;-1:-1:-1;1409:484:11;;-1:-1:-1;;1409:484:11:o;3023:127::-;3084:10;3079:3;3075:20;3072:1;3065:31;3115:4;3112:1;3105:15;3139:4;3136:1;3129:15;3155:135;3194:3;3215:17;;;3212:43;;3235:18;;:::i;:::-;-1:-1:-1;3282:1:11;3271:13;;3155:135::o;3675:400::-;3877:2;3859:21;;;3916:2;3896:18;;;3889:30;3955:34;3950:2;3935:18;;3928:62;-1:-1:-1;;;4021:2:11;4006:18;;3999:34;4065:3;4050:19;;3675:400::o;4080:128::-;4147:9;;;4168:11;;;4165:37;;;4182:18;;:::i;:::-;4080:128;;;;:::o

Swarm Source

ipfs://a869432f96378f76ff0186356706c7a45ee5dfbca2b0768948df8f06137d3c0d

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.