ETH Price: $3,363.18 (-2.36%)
Gas: 2 Gwei

Contract

0x009763528e2232D644C50Da15D70A8d15288a90a
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Value
Batch Burn202196572024-07-02 15:14:4715 hrs ago1719933287IN
0x00976352...15288a90a
0 ETH0.002400229.7883702
Batch Burn202133462024-07-01 18:05:3536 hrs ago1719857135IN
0x00976352...15288a90a
0 ETH0.0014779311.76448195
Batch Burn202091622024-07-01 4:04:112 days ago1719806651IN
0x00976352...15288a90a
0 ETH0.000338822.69708544
Batch Burn202079742024-07-01 0:05:112 days ago1719792311IN
0x00976352...15288a90a
0 ETH0.000301652.40120581
Batch Burn202026612024-06-30 6:18:233 days ago1719728303IN
0x00976352...15288a90a
0 ETH0.000256552.04219105
Batch Burn202026352024-06-30 6:13:113 days ago1719727991IN
0x00976352...15288a90a
0 ETH0.000254442.02542149
Batch Burn202025392024-06-30 5:53:593 days ago1719726839IN
0x00976352...15288a90a
0 ETH0.000247281.96841592
Batch Burn202025292024-06-30 5:51:593 days ago1719726719IN
0x00976352...15288a90a
0 ETH0.000233221.85649661
Batch Burn201943252024-06-29 2:21:234 days ago1719627683IN
0x00976352...15288a90a
0 ETH0.000250331.99268339
Batch Burn201913062024-06-28 16:13:234 days ago1719591203IN
0x00976352...15288a90a
0 ETH0.004123178.05709881
Batch Burn201845252024-06-27 17:29:595 days ago1719509399IN
0x00976352...15288a90a
0 ETH0.0172316226.71532711
Batch Burn201837712024-06-27 14:58:115 days ago1719500291IN
0x00976352...15288a90a
0 ETH0.0034427614.03994118
Batch Burn201834292024-06-27 13:49:235 days ago1719496163IN
0x00976352...15288a90a
0 ETH0.0026446610.78521723
Batch Burn201821472024-06-27 9:31:475 days ago1719480707IN
0x00976352...15288a90a
0 ETH0.003621385.08877814
Batch Burn201809712024-06-27 5:35:356 days ago1719466535IN
0x00976352...15288a90a
0 ETH0.000558674.44708257
Batch Burn201755492024-06-26 11:25:116 days ago1719401111IN
0x00976352...15288a90a
0 ETH0.000313832.49817881
Batch Burn201737942024-06-26 5:32:357 days ago1719379955IN
0x00976352...15288a90a
0 ETH0.000291912.32365481
Batch Burn201727882024-06-26 2:10:237 days ago1719367823IN
0x00976352...15288a90a
0 ETH0.001740633.91057083
Batch Burn201727292024-06-26 1:58:357 days ago1719367115IN
0x00976352...15288a90a
0 ETH0.00362813.70906165
Batch Burn201701912024-06-25 17:28:477 days ago1719336527IN
0x00976352...15288a90a
0 ETH0.001009998.03965487
Batch Burn201680972024-06-25 10:27:477 days ago1719311267IN
0x00976352...15288a90a
0 ETH0.00373324.79682557
Batch Burn201555302024-06-23 16:17:479 days ago1719159467IN
0x00976352...15288a90a
0 ETH0.000889577.08108652
Batch Burn201534032024-06-23 9:09:599 days ago1719133799IN
0x00976352...15288a90a
0 ETH0.000698283.91021435
Batch Burn201530612024-06-23 7:59:119 days ago1719129551IN
0x00976352...15288a90a
0 ETH0.000345112.74713631
Batch Burn201519332024-06-23 4:12:1110 days ago1719115931IN
0x00976352...15288a90a
0 ETH0.000216171.72076206
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:
ChipBurner

Compiler Version
v0.8.20+commit.a1b79de6

Optimization Enabled:
Yes with 200 runs

Other Settings:
paris EvmVersion
File 1 of 9 : ChipBurner.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.20;

import {Ownable} from "@openzeppelin/contracts/access/Ownable.sol";
import {Ownable2Step} from "@openzeppelin/contracts/access/Ownable2Step.sol";
import {Pausable} from "@openzeppelin/contracts/utils/Pausable.sol";
import {ReentrancyGuard} from "@openzeppelin/contracts/utils/ReentrancyGuard.sol";
import {IERC721Burnable} from "../interface/IERC721Burnable.sol";

contract ChipBurner is Ownable2Step, Pausable, ReentrancyGuard {
    error ExceedMaxBatchSize();

    event MaxBatchSizeUpdated(uint256 size);

    event ChipBurned(uint256 tokenId, address owner);

    IERC721Burnable public immutable chip;

    uint256 public maxBatchSize = 50;

    mapping(uint256 => address) public burnedTokenOwners;

    mapping(address => uint256) public userBurnedCount;

    constructor(address chip_) Ownable(_msgSender()) {
        chip = IERC721Burnable(chip_);
    }

    function pause() external onlyOwner {
        _pause();
    }

    function unpause() external onlyOwner {
        _unpause();
    }

    function setMaxBatchSize(uint256 newSize) external onlyOwner {
        maxBatchSize = newSize;
        emit MaxBatchSizeUpdated(newSize);
    }

    function batchBurn(uint256[] calldata tokenIds) external whenNotPaused nonReentrant {
        uint256 tokenSize = tokenIds.length;
        if (tokenSize > maxBatchSize) {
            revert ExceedMaxBatchSize();
        }

        userBurnedCount[_msgSender()] = userBurnedCount[_msgSender()] + tokenSize;

        for (uint256 i = 0; i < tokenSize; i++) {
            uint256 tokenId = tokenIds[i];
            chip.transferFrom(_msgSender(), address(this), tokenId);
            chip.burn(tokenId);
            burnedTokenOwners[tokenId] = _msgSender();
            emit ChipBurned(tokenId, _msgSender());
        }
    }
}

File 2 of 9 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)

pragma solidity ^0.8.20;

import {Context} from "../utils/Context.sol";

/**
 * @dev Contract module which provides a basic access control mechanism, where
 * there is an account (an owner) that can be granted exclusive access to
 * specific functions.
 *
 * The initial owner is set to the address provided by the deployer. This can
 * later be changed with {transferOwnership}.
 *
 * This module is used through inheritance. It will make available the modifier
 * `onlyOwner`, which can be applied to your functions to restrict their use to
 * the owner.
 */
abstract contract Ownable is Context {
    address private _owner;

    /**
     * @dev The caller account is not authorized to perform an operation.
     */
    error OwnableUnauthorizedAccount(address account);

    /**
     * @dev The owner is not a valid owner account. (eg. `address(0)`)
     */
    error OwnableInvalidOwner(address owner);

    event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);

    /**
     * @dev Initializes the contract setting the address provided by the deployer as the initial owner.
     */
    constructor(address initialOwner) {
        if (initialOwner == address(0)) {
            revert OwnableInvalidOwner(address(0));
        }
        _transferOwnership(initialOwner);
    }

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        _checkOwner();
        _;
    }

    /**
     * @dev Returns the address of the current owner.
     */
    function owner() public view virtual returns (address) {
        return _owner;
    }

    /**
     * @dev Throws if the sender is not the owner.
     */
    function _checkOwner() internal view virtual {
        if (owner() != _msgSender()) {
            revert OwnableUnauthorizedAccount(_msgSender());
        }
    }

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby disabling any functionality that is only available to the owner.
     */
    function renounceOwnership() public virtual onlyOwner {
        _transferOwnership(address(0));
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public virtual onlyOwner {
        if (newOwner == address(0)) {
            revert OwnableInvalidOwner(address(0));
        }
        _transferOwnership(newOwner);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Internal function without access restriction.
     */
    function _transferOwnership(address newOwner) internal virtual {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

File 3 of 9 : Ownable2Step.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable2Step.sol)

pragma solidity ^0.8.20;

import {Ownable} from "./Ownable.sol";

/**
 * @dev Contract module which provides access control mechanism, where
 * there is an account (an owner) that can be granted exclusive access to
 * specific functions.
 *
 * This extension of the {Ownable} contract includes a two-step mechanism to transfer
 * ownership, where the new owner must call {acceptOwnership} in order to replace the
 * old one. This can help prevent common mistakes, such as transfers of ownership to
 * incorrect accounts, or to contracts that are unable to interact with the
 * permission system.
 *
 * The initial owner is specified at deployment time in the constructor for `Ownable`. This
 * can later be changed with {transferOwnership} and {acceptOwnership}.
 *
 * This module is used through inheritance. It will make available all functions
 * from parent (Ownable).
 */
abstract contract Ownable2Step is Ownable {
    address private _pendingOwner;

    event OwnershipTransferStarted(address indexed previousOwner, address indexed newOwner);

    /**
     * @dev Returns the address of the pending owner.
     */
    function pendingOwner() public view virtual returns (address) {
        return _pendingOwner;
    }

    /**
     * @dev Starts the ownership transfer of the contract to a new account. Replaces the pending transfer if there is one.
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public virtual override onlyOwner {
        _pendingOwner = newOwner;
        emit OwnershipTransferStarted(owner(), newOwner);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`) and deletes any pending owner.
     * Internal function without access restriction.
     */
    function _transferOwnership(address newOwner) internal virtual override {
        delete _pendingOwner;
        super._transferOwnership(newOwner);
    }

    /**
     * @dev The new owner accepts the ownership transfer.
     */
    function acceptOwnership() public virtual {
        address sender = _msgSender();
        if (pendingOwner() != sender) {
            revert OwnableUnauthorizedAccount(sender);
        }
        _transferOwnership(sender);
    }
}

File 4 of 9 : Pausable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/Pausable.sol)

pragma solidity ^0.8.20;

import {Context} from "../utils/Context.sol";

/**
 * @dev Contract module which allows children to implement an emergency stop
 * mechanism that can be triggered by an authorized account.
 *
 * This module is used through inheritance. It will make available the
 * modifiers `whenNotPaused` and `whenPaused`, which can be applied to
 * the functions of your contract. Note that they will not be pausable by
 * simply including this module, only once the modifiers are put in place.
 */
abstract contract Pausable is Context {
    bool private _paused;

    /**
     * @dev Emitted when the pause is triggered by `account`.
     */
    event Paused(address account);

    /**
     * @dev Emitted when the pause is lifted by `account`.
     */
    event Unpaused(address account);

    /**
     * @dev The operation failed because the contract is paused.
     */
    error EnforcedPause();

    /**
     * @dev The operation failed because the contract is not paused.
     */
    error ExpectedPause();

    /**
     * @dev Initializes the contract in unpaused state.
     */
    constructor() {
        _paused = false;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is not paused.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    modifier whenNotPaused() {
        _requireNotPaused();
        _;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is paused.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    modifier whenPaused() {
        _requirePaused();
        _;
    }

    /**
     * @dev Returns true if the contract is paused, and false otherwise.
     */
    function paused() public view virtual returns (bool) {
        return _paused;
    }

    /**
     * @dev Throws if the contract is paused.
     */
    function _requireNotPaused() internal view virtual {
        if (paused()) {
            revert EnforcedPause();
        }
    }

    /**
     * @dev Throws if the contract is not paused.
     */
    function _requirePaused() internal view virtual {
        if (!paused()) {
            revert ExpectedPause();
        }
    }

    /**
     * @dev Triggers stopped state.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    function _pause() internal virtual whenNotPaused {
        _paused = true;
        emit Paused(_msgSender());
    }

    /**
     * @dev Returns to normal state.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    function _unpause() internal virtual whenPaused {
        _paused = false;
        emit Unpaused(_msgSender());
    }
}

File 5 of 9 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/ReentrancyGuard.sol)

pragma solidity ^0.8.20;

/**
 * @dev Contract module that helps prevent reentrant calls to a function.
 *
 * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier
 * available, which can be applied to functions to make sure there are no nested
 * (reentrant) calls to them.
 *
 * Note that because there is a single `nonReentrant` guard, functions marked as
 * `nonReentrant` may not call one another. This can be worked around by making
 * those functions `private`, and then adding `external` `nonReentrant` entry
 * points to them.
 *
 * TIP: If you would like to learn more about reentrancy and alternative ways
 * to protect against it, check out our blog post
 * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].
 */
abstract contract ReentrancyGuard {
    // Booleans are more expensive than uint256 or any type that takes up a full
    // word because each write operation emits an extra SLOAD to first read the
    // slot's contents, replace the bits taken up by the boolean, and then write
    // back. This is the compiler's defense against contract upgrades and
    // pointer aliasing, and it cannot be disabled.

    // The values being non-zero value makes deployment a bit more expensive,
    // but in exchange the refund on every call to nonReentrant will be lower in
    // amount. Since refunds are capped to a percentage of the total
    // transaction's gas, it is best to keep them low in cases like this one, to
    // increase the likelihood of the full refund coming into effect.
    uint256 private constant NOT_ENTERED = 1;
    uint256 private constant ENTERED = 2;

    uint256 private _status;

    /**
     * @dev Unauthorized reentrant call.
     */
    error ReentrancyGuardReentrantCall();

    constructor() {
        _status = NOT_ENTERED;
    }

    /**
     * @dev Prevents a contract from calling itself, directly or indirectly.
     * Calling a `nonReentrant` function from another `nonReentrant`
     * function is not supported. It is possible to prevent this from happening
     * by making the `nonReentrant` function external, and making it call a
     * `private` function that does the actual work.
     */
    modifier nonReentrant() {
        _nonReentrantBefore();
        _;
        _nonReentrantAfter();
    }

    function _nonReentrantBefore() private {
        // On the first call to nonReentrant, _status will be NOT_ENTERED
        if (_status == ENTERED) {
            revert ReentrancyGuardReentrantCall();
        }

        // Any calls to nonReentrant after this point will fail
        _status = ENTERED;
    }

    function _nonReentrantAfter() private {
        // By storing the original value once again, a refund is triggered (see
        // https://eips.ethereum.org/EIPS/eip-2200)
        _status = NOT_ENTERED;
    }

    /**
     * @dev Returns true if the reentrancy guard is currently set to "entered", which indicates there is a
     * `nonReentrant` function in the call stack.
     */
    function _reentrancyGuardEntered() internal view returns (bool) {
        return _status == ENTERED;
    }
}

File 6 of 9 : IERC721Burnable.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.20;

import {IERC721} from "@openzeppelin/contracts/token/ERC721/IERC721.sol";

interface IERC721Burnable is IERC721 {
    function burn(uint256 tokenId) external;
}

File 7 of 9 : Context.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)

pragma solidity ^0.8.20;

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

    function _contextSuffixLength() internal view virtual returns (uint256) {
        return 0;
    }
}

File 8 of 9 : IERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC721/IERC721.sol)

pragma solidity ^0.8.20;

import {IERC165} from "../../utils/introspection/IERC165.sol";

/**
 * @dev Required interface of an ERC-721 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 ERC-721 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: Note that the caller is responsible to confirm that the recipient is capable of receiving ERC-721
     * or else they may be permanently lost. Usage of {safeTransferFrom} prevents loss, though the caller must
     * understand this adds an external call which potentially creates a reentrancy vulnerability.
     *
     * 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 address zero.
     *
     * 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 9 of 9 : IERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/introspection/IERC165.sol)

pragma solidity ^0.8.20;

/**
 * @dev Interface of the ERC-165 standard, as defined in the
 * https://eips.ethereum.org/EIPS/eip-165[ERC].
 *
 * 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[ERC 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);
}

Settings
{
  "remappings": [
    "ds-test/=lib/forge-std/lib/ds-test/src/",
    "erc4626-tests/=lib/openzeppelin-contracts/lib/erc4626-tests/",
    "forge-std/=lib/forge-std/src/",
    "@openzeppelin/contracts/=lib/openzeppelin-contracts/contracts/",
    "openzeppelin-contracts/=lib/openzeppelin-contracts/"
  ],
  "optimizer": {
    "enabled": true,
    "runs": 200
  },
  "metadata": {
    "useLiteralContent": false,
    "bytecodeHash": "ipfs",
    "appendCBOR": true
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "evmVersion": "paris",
  "libraries": {}
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"chip_","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"EnforcedPause","type":"error"},{"inputs":[],"name":"ExceedMaxBatchSize","type":"error"},{"inputs":[],"name":"ExpectedPause","type":"error"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"OwnableInvalidOwner","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"OwnableUnauthorizedAccount","type":"error"},{"inputs":[],"name":"ReentrancyGuardReentrantCall","type":"error"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"address","name":"owner","type":"address"}],"name":"ChipBurned","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"size","type":"uint256"}],"name":"MaxBatchSizeUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferStarted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[],"name":"acceptOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"batchBurn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"burnedTokenOwners","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"chip","outputs":[{"internalType":"contract IERC721Burnable","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxBatchSize","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pendingOwner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newSize","type":"uint256"}],"name":"setMaxBatchSize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"userBurnedCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"}]

60a0604052603260035534801561001557600080fd5b506040516109dd3803806109dd833981016040819052610034916100f1565b338061005a57604051631e4fbdf760e01b81526000600482015260240160405180910390fd5b61006381610085565b506001805460ff60a01b191681556002556001600160a01b0316608052610121565b600180546001600160a01b031916905561009e816100a1565b50565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60006020828403121561010357600080fd5b81516001600160a01b038116811461011a57600080fd5b9392505050565b60805161089361014a600039600081816101d401528181610378015261042601526108936000f3fe608060405234801561001057600080fd5b50600436106100ea5760003560e01c80638456cb591161008c578063b61500e411610066578063b61500e4146101cf578063dc8e92ea146101f6578063e30c397814610209578063f2fde38b1461021a57600080fd5b80638456cb5914610196578063880c29fd1461019e5780638da5cb5b146101be57600080fd5b80635c975abb116100c85780635c975abb14610128578063715018a61461014557806379ba50971461014d57806381b86a181461015557600080fd5b80632913daa0146100ef5780632b26a6bf1461010b5780633f4ba83a14610120575b600080fd5b6100f860035481565b6040519081526020015b60405180910390f35b61011e610119366004610741565b61022d565b005b61011e610270565b600154600160a01b900460ff166040519015158152602001610102565b61011e610282565b61011e610294565b61017e610163366004610741565b6004602052600090815260409020546001600160a01b031681565b6040516001600160a01b039091168152602001610102565b61011e6102dd565b6100f86101ac36600461075a565b60056020526000908152604090205481565b6000546001600160a01b031661017e565b61017e7f000000000000000000000000000000000000000000000000000000000000000081565b61011e61020436600461078a565b6102ed565b6001546001600160a01b031661017e565b61011e61022836600461075a565b610525565b610235610596565b60038190556040518181527f25076f5d56ad1441963ac802aaa2f7a64f6ac48af52f929a5be59810a74d71d49060200160405180910390a150565b610278610596565b6102806105c3565b565b61028a610596565b6102806000610618565b60015433906001600160a01b031681146102d15760405163118cdaa760e01b81526001600160a01b03821660048201526024015b60405180910390fd5b6102da81610618565b50565b6102e5610596565b610280610631565b6102f5610674565b6102fd61069f565b60035481908111156103225760405163022209af60e11b815260040160405180910390fd5b3360009081526005602052604090205461033d908290610815565b336000908152600560205260408120919091555b8181101561051557600084848381811061036d5761036d61082e565b9050602002013590507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166323b872dd6103ac3390565b6040516001600160e01b031960e084901b1681526001600160a01b03909116600482015230602482015260448101849052606401600060405180830381600087803b1580156103fa57600080fd5b505af115801561040e573d6000803e3d6000fd5b5050604051630852cd8d60e31b8152600481018490527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031692506342966c689150602401600060405180830381600087803b15801561047457600080fd5b505af1158015610488573d6000803e3d6000fd5b505050506104933390565b600082815260046020526040902080546001600160a01b0319166001600160a01b03929092169190911790557fb18851cd4e618965a2317b58e3c6c48436d45bfc0f05d1ef415322fb5a1df1258133604080519283526001600160a01b0390911660208301520160405180910390a1508061050d81610844565b915050610351565b50506105216001600255565b5050565b61052d610596565b600180546001600160a01b0383166001600160a01b0319909116811790915561055e6000546001600160a01b031690565b6001600160a01b03167f38d16b8cac22d99fc7c124b9cd0de2d3fa1faef420bfe791d8c362d765e2270060405160405180910390a350565b6000546001600160a01b031633146102805760405163118cdaa760e01b81523360048201526024016102c8565b6105cb6106c7565b6001805460ff60a01b191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b600180546001600160a01b03191690556102da816106f1565b610639610674565b6001805460ff60a01b1916600160a01b1790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586105fb3390565b600154600160a01b900460ff16156102805760405163d93c066560e01b815260040160405180910390fd5b60028054036106c157604051633ee5aeb560e01b815260040160405180910390fd5b60028055565b600154600160a01b900460ff1661028057604051638dfc202b60e01b815260040160405180910390fd5b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60006020828403121561075357600080fd5b5035919050565b60006020828403121561076c57600080fd5b81356001600160a01b038116811461078357600080fd5b9392505050565b6000806020838503121561079d57600080fd5b823567ffffffffffffffff808211156107b557600080fd5b818501915085601f8301126107c957600080fd5b8135818111156107d857600080fd5b8660208260051b85010111156107ed57600080fd5b60209290920196919550909350505050565b634e487b7160e01b600052601160045260246000fd5b80820180821115610828576108286107ff565b92915050565b634e487b7160e01b600052603260045260246000fd5b600060018201610856576108566107ff565b506001019056fea264697066735822122087325b580a4c17f16bbca90093db48022ff8b2d16939e70da0a41f6979d2a28464736f6c63430008140033000000000000000000000000eb127cfb2972f56093862525023e117cf9dc8c38

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106100ea5760003560e01c80638456cb591161008c578063b61500e411610066578063b61500e4146101cf578063dc8e92ea146101f6578063e30c397814610209578063f2fde38b1461021a57600080fd5b80638456cb5914610196578063880c29fd1461019e5780638da5cb5b146101be57600080fd5b80635c975abb116100c85780635c975abb14610128578063715018a61461014557806379ba50971461014d57806381b86a181461015557600080fd5b80632913daa0146100ef5780632b26a6bf1461010b5780633f4ba83a14610120575b600080fd5b6100f860035481565b6040519081526020015b60405180910390f35b61011e610119366004610741565b61022d565b005b61011e610270565b600154600160a01b900460ff166040519015158152602001610102565b61011e610282565b61011e610294565b61017e610163366004610741565b6004602052600090815260409020546001600160a01b031681565b6040516001600160a01b039091168152602001610102565b61011e6102dd565b6100f86101ac36600461075a565b60056020526000908152604090205481565b6000546001600160a01b031661017e565b61017e7f000000000000000000000000eb127cfb2972f56093862525023e117cf9dc8c3881565b61011e61020436600461078a565b6102ed565b6001546001600160a01b031661017e565b61011e61022836600461075a565b610525565b610235610596565b60038190556040518181527f25076f5d56ad1441963ac802aaa2f7a64f6ac48af52f929a5be59810a74d71d49060200160405180910390a150565b610278610596565b6102806105c3565b565b61028a610596565b6102806000610618565b60015433906001600160a01b031681146102d15760405163118cdaa760e01b81526001600160a01b03821660048201526024015b60405180910390fd5b6102da81610618565b50565b6102e5610596565b610280610631565b6102f5610674565b6102fd61069f565b60035481908111156103225760405163022209af60e11b815260040160405180910390fd5b3360009081526005602052604090205461033d908290610815565b336000908152600560205260408120919091555b8181101561051557600084848381811061036d5761036d61082e565b9050602002013590507f000000000000000000000000eb127cfb2972f56093862525023e117cf9dc8c386001600160a01b03166323b872dd6103ac3390565b6040516001600160e01b031960e084901b1681526001600160a01b03909116600482015230602482015260448101849052606401600060405180830381600087803b1580156103fa57600080fd5b505af115801561040e573d6000803e3d6000fd5b5050604051630852cd8d60e31b8152600481018490527f000000000000000000000000eb127cfb2972f56093862525023e117cf9dc8c386001600160a01b031692506342966c689150602401600060405180830381600087803b15801561047457600080fd5b505af1158015610488573d6000803e3d6000fd5b505050506104933390565b600082815260046020526040902080546001600160a01b0319166001600160a01b03929092169190911790557fb18851cd4e618965a2317b58e3c6c48436d45bfc0f05d1ef415322fb5a1df1258133604080519283526001600160a01b0390911660208301520160405180910390a1508061050d81610844565b915050610351565b50506105216001600255565b5050565b61052d610596565b600180546001600160a01b0383166001600160a01b0319909116811790915561055e6000546001600160a01b031690565b6001600160a01b03167f38d16b8cac22d99fc7c124b9cd0de2d3fa1faef420bfe791d8c362d765e2270060405160405180910390a350565b6000546001600160a01b031633146102805760405163118cdaa760e01b81523360048201526024016102c8565b6105cb6106c7565b6001805460ff60a01b191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b600180546001600160a01b03191690556102da816106f1565b610639610674565b6001805460ff60a01b1916600160a01b1790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586105fb3390565b600154600160a01b900460ff16156102805760405163d93c066560e01b815260040160405180910390fd5b60028054036106c157604051633ee5aeb560e01b815260040160405180910390fd5b60028055565b600154600160a01b900460ff1661028057604051638dfc202b60e01b815260040160405180910390fd5b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60006020828403121561075357600080fd5b5035919050565b60006020828403121561076c57600080fd5b81356001600160a01b038116811461078357600080fd5b9392505050565b6000806020838503121561079d57600080fd5b823567ffffffffffffffff808211156107b557600080fd5b818501915085601f8301126107c957600080fd5b8135818111156107d857600080fd5b8660208260051b85010111156107ed57600080fd5b60209290920196919550909350505050565b634e487b7160e01b600052601160045260246000fd5b80820180821115610828576108286107ff565b92915050565b634e487b7160e01b600052603260045260246000fd5b600060018201610856576108566107ff565b506001019056fea264697066735822122087325b580a4c17f16bbca90093db48022ff8b2d16939e70da0a41f6979d2a28464736f6c63430008140033

Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)

000000000000000000000000eb127cfb2972f56093862525023e117cf9dc8c38

-----Decoded View---------------
Arg [0] : chip_ (address): 0xEB127cFb2972F56093862525023e117CF9dc8C38

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 000000000000000000000000eb127cfb2972f56093862525023e117cf9dc8c38


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.