ETH Price: $2,202.06 (-5.32%)

Contract

0xc2d2Cb3c09Ab0393d4EdFDC6b8B90E1DBb3E577a
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

More Info

Private Name Tags

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To

There are no matching entries

Please try again later

Advanced mode:
Parent Transaction Hash Method Block
From
To
View All Internal Transactions
Loading...
Loading
Loading...
Loading
Cross-Chain Transactions

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
UnordinalsBurner

Compiler Version
v0.8.19+commit.7dd6d404

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
// SPDX-License-Identifier: GPL-3.0

/*

##     ## ##    ##  #######  ########  ########  #### ##    ##    ###    ##        ######
##     ## ###   ## ##     ## ##     ## ##     ##  ##  ###   ##   ## ##   ##       ##    ##
##     ## ####  ## ##     ## ##     ## ##     ##  ##  ####  ##  ##   ##  ##       ##
##     ## ## ## ## ##     ## ########  ##     ##  ##  ## ## ## ##     ## ##        ######
##     ## ##  #### ##     ## ##   ##   ##     ##  ##  ##  #### ######### ##             ##
##     ## ##   ### ##     ## ##    ##  ##     ##  ##  ##   ### ##     ## ##       ##    ##
 #######  ##    ##  #######  ##     ## ########  #### ##    ## ##     ## ########  ######

*/

pragma solidity ^0.8.19;

import "@openzeppelin/contracts/access/Ownable.sol";
import "./BitcoinBridgeV1.sol";

error CallerNotOwner();
error ArrayLengthMistmatch();

struct BurnRecord {
    address owner;
    uint128 tokenId;
    uint128 timestamp;
    string btcReceiverAddress;
    string btcTransactionHash;
}

interface IUnordinals {
    function setBurnEnabled(bool) external;
    function BurnToken(uint256[] calldata) external;
    function ownerOf(uint256) external view returns (address);
    function transferOwnership(address) external;
    function owner() external view returns (address);
}

interface IUnordinalsBitcoinBridge {
    function transferOwnership(address) external;
    function owner() external view returns (address);
    function adminBurnOverride(uint256, BurnRecord calldata) external;
    function burnRecords(uint256) external view returns (BurnRecord memory);
}

contract UnordinalsBurner is Ownable {
    IUnordinals public constant UNORDINALS_V1 =
        IUnordinals(0xd1C1ab59cB16984184388d5411d6644C07a0B575);
    IUnordinalsBitcoinBridge public constant UNORDINALS_BITCOIN_BRIDGE =
        IUnordinalsBitcoinBridge(0xFe45476B69f8c50428DCe63A84eD3d76D3dd1aEb);

    function burnV1(uint256[] calldata tokenIds) external onlyOwner {
        require(UNORDINALS_V1.owner() == address(this));
        UNORDINALS_V1.setBurnEnabled(true);
        UNORDINALS_V1.BurnToken(tokenIds);
        UNORDINALS_V1.setBurnEnabled(false);
    }

    function burnForOrdinal(uint256[] calldata tokenIds, string[] calldata btcReceiverAddresses) external {
        if (tokenIds.length != btcReceiverAddresses.length) revert ArrayLengthMistmatch();

        UNORDINALS_V1.setBurnEnabled(true);
        for (uint256 i = 0; i < tokenIds.length;) {
            if (UNORDINALS_V1.ownerOf(tokenIds[i]) != msg.sender) revert CallerNotOwner();
            unchecked { ++i; }
        }
        UNORDINALS_V1.BurnToken(tokenIds);
        UNORDINALS_V1.setBurnEnabled(false);
    }

    function reclaimOwnership() external onlyOwner {
        UNORDINALS_V1.transferOwnership(msg.sender);
        UNORDINALS_BITCOIN_BRIDGE.transferOwnership((msg.sender));
    }
}

// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.17;

import '@openzeppelin/contracts/token/ERC721/extensions/IERC721Enumerable.sol';
import '@openzeppelin/contracts/access/Ownable.sol';

interface Unordinals is IERC721Enumerable {
    function BurnToken(uint256[] calldata tokenIds) external;

    function setBurnEnabled(bool _state) external;

    function owner() external view returns (address);

    function burn(uint256 tokenId) external;

    function mint(uint256 _mintAmount) external payable;

    function cost() external view returns (uint256);
}

contract UnordinalsBitcoinBridge is Ownable {
    Unordinals public immutable UNORDINALS;

    struct BurnRecord {
        address owner;
        uint128 tokenId;
        uint128 timestamp;
        string btcReceiverAddress;
        string btcTransactionHash;
    }

    mapping(uint256 => BurnRecord) public burnRecords;
    uint256[] public burntTokenIds;
    bool public burnEnabled;

    constructor(Unordinals unordinals) {
        UNORDINALS = unordinals;
    }

    function burn(uint256 tokenId, string calldata btcReceiverAddress) public {
        require(burnEnabled, 'Burn is disabled');
        require(msg.sender == UNORDINALS.ownerOf(tokenId), 'not owner');

        UNORDINALS.burn(tokenId);

        burnRecords[tokenId] = BurnRecord({
            owner: msg.sender,
            tokenId: uint128(tokenId),
            timestamp: uint128(block.timestamp),
            btcReceiverAddress: btcReceiverAddress,
            btcTransactionHash: ''
        });

        burntTokenIds.push(tokenId);
    }

    function batchBurn(
        uint256[] calldata tokenIds,
        string[] calldata btcReceiverAddresses
    ) external {
        require(tokenIds.length == btcReceiverAddresses.length, 'Invalid input');
        for (uint256 i; i < tokenIds.length; ) {
            burn(tokenIds[i], btcReceiverAddresses[i]);
            unchecked {
                i++;
            }
        }
    }

    function linkBtcTransactions(
        uint256[] calldata tokenIds,
        string[] calldata btcTransactionHash
    ) external onlyOwner {
        require(tokenIds.length == btcTransactionHash.length, 'Invalid input');

        for (uint256 i; i < tokenIds.length; ) {
            burnRecords[tokenIds[i]].btcTransactionHash = btcTransactionHash[i];
            unchecked {
                i++;
            }
        }
    }

    function getBurntTokenIds() external view returns (uint256[] memory) {
        return burntTokenIds;
    }

    function getBurnRecord(uint256 tokenId) external view returns (BurnRecord memory) {
        return burnRecords[tokenId];
    }

    function getBurnRecords(
        uint256[] calldata tokenId
    ) external view returns (BurnRecord[] memory records) {
        records = new BurnRecord[](tokenId.length);
        for (uint256 i; i < tokenId.length; ) {
            records[i] = burnRecords[tokenId[i]];
            unchecked {
                i++;
            }
        }
    }

    function getBurnRecords() external view returns (BurnRecord[] memory records) {
        uint256 n = burntTokenIds.length;
        records = new BurnRecord[](n);
        for (uint256 i; i < n; ) {
            records[i] = burnRecords[burntTokenIds[i]];
            unchecked {
                i++;
            }
        }
    }

    function setBurnEnabled(bool state) external onlyOwner {
        burnEnabled = state;
    }

    function adminBurnOverride(uint256 tokenId, BurnRecord calldata record) external onlyOwner {
        if (burnRecords[tokenId].timestamp == 0) {
            burntTokenIds.push(tokenId);
        }
        burnRecords[tokenId] = record;
    }
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol)

pragma solidity ^0.8.0;

import "../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.
 *
 * By default, the owner account will be the one that deploys the contract. 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;

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

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor() {
        _transferOwnership(_msgSender());
    }

    /**
     * @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 {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
    }

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions anymore. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby removing 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 {
        require(newOwner != address(0), "Ownable: new owner is the zero address");
        _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);
    }
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC721/extensions/IERC721Enumerable.sol)

pragma solidity ^0.8.0;

import "../IERC721.sol";

/**
 * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension
 * @dev See https://eips.ethereum.org/EIPS/eip-721
 */
interface IERC721Enumerable is IERC721 {
    /**
     * @dev Returns the total amount of tokens stored by the contract.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns a token ID owned by `owner` at a given `index` of its token list.
     * Use along with {balanceOf} to enumerate all of ``owner``'s tokens.
     */
    function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256);

    /**
     * @dev Returns a token ID at a given `index` of all the tokens stored by the contract.
     * Use along with {totalSupply} to enumerate all tokens.
     */
    function tokenByIndex(uint256 index) external view returns (uint256);
}

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

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (token/ERC721/IERC721.sol)

pragma solidity ^0.8.0;

import "../../utils/introspection/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: Note that the caller is responsible to confirm that the recipient is capable of receiving ERC721
     * 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 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);
}

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

Settings
{
  "optimizer": {
    "enabled": true,
    "runs": 200
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  }
}

Contract Security Audit

Contract ABI

API
[{"inputs":[],"name":"ArrayLengthMistmatch","type":"error"},{"inputs":[],"name":"CallerNotOwner","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"inputs":[],"name":"UNORDINALS_BITCOIN_BRIDGE","outputs":[{"internalType":"contract IUnordinalsBitcoinBridge","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"UNORDINALS_V1","outputs":[{"internalType":"contract IUnordinals","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"},{"internalType":"string[]","name":"btcReceiverAddresses","type":"string[]"}],"name":"burnForOrdinal","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"burnV1","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"reclaimOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]

608060405234801561001057600080fd5b5061001a3361001f565b61006f565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b61091a8061007e6000396000f3fe608060405234801561001057600080fd5b50600436106100875760003560e01c806374e5ec021161005b57806374e5ec02146100fb5780638da5cb5b1461010e578063c1c8277f1461011f578063f2fde38b1461012757600080fd5b8062593f4d1461008c5780630d15a728146100c35780634b9c4efc146100de578063715018a6146100f3575b600080fd5b6100a773d1c1ab59cb16984184388d5411d6644c07a0b57581565b6040516001600160a01b03909116815260200160405180910390f35b6100a773fe45476b69f8c50428dce63a84ed3d76d3dd1aeb81565b6100f16100ec366004610791565b61013a565b005b6100f1610363565b6100f16101093660046107fd565b610377565b6000546001600160a01b03166100a7565b6100f161054b565b6100f1610135366004610854565b61061d565b82811461015a57604051638703789960e01b815260040160405180910390fd5b604051637b2c835f60e01b81526001600482015273d1c1ab59cb16984184388d5411d6644c07a0b57590637b2c835f90602401600060405180830381600087803b1580156101a757600080fd5b505af11580156101bb573d6000803e3d6000fd5b5050505060005b8381101561028c573373d1c1ab59cb16984184388d5411d6644c07a0b575636352211e8787858181106101f7576101f7610878565b905060200201356040518263ffffffff1660e01b815260040161021c91815260200190565b602060405180830381865afa158015610239573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061025d919061088e565b6001600160a01b03161461028457604051632e6c18c960e11b815260040160405180910390fd5b6001016101c2565b506040516371bf97b560e11b815273d1c1ab59cb16984184388d5411d6644c07a0b5759063e37f2f6a906102c690879087906004016108ab565b600060405180830381600087803b1580156102e057600080fd5b505af11580156102f4573d6000803e3d6000fd5b5050604051637b2c835f60e01b81526000600482015273d1c1ab59cb16984184388d5411d6644c07a0b5759250637b2c835f9150602401600060405180830381600087803b15801561034557600080fd5b505af1158015610359573d6000803e3d6000fd5b5050505050505050565b61036b61069b565b61037560006106f5565b565b61037f61069b565b306001600160a01b031673d1c1ab59cb16984184388d5411d6644c07a0b5756001600160a01b0316638da5cb5b6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156103db573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103ff919061088e565b6001600160a01b03161461041257600080fd5b604051637b2c835f60e01b81526001600482015273d1c1ab59cb16984184388d5411d6644c07a0b57590637b2c835f90602401600060405180830381600087803b15801561045f57600080fd5b505af1158015610473573d6000803e3d6000fd5b50506040516371bf97b560e11b815273d1c1ab59cb16984184388d5411d6644c07a0b575925063e37f2f6a91506104b090859085906004016108ab565b600060405180830381600087803b1580156104ca57600080fd5b505af11580156104de573d6000803e3d6000fd5b5050604051637b2c835f60e01b81526000600482015273d1c1ab59cb16984184388d5411d6644c07a0b5759250637b2c835f9150602401600060405180830381600087803b15801561052f57600080fd5b505af1158015610543573d6000803e3d6000fd5b505050505050565b61055361069b565b60405163f2fde38b60e01b815233600482015273d1c1ab59cb16984184388d5411d6644c07a0b5759063f2fde38b90602401600060405180830381600087803b15801561059f57600080fd5b505af11580156105b3573d6000803e3d6000fd5b505060405163f2fde38b60e01b815233600482015273fe45476b69f8c50428dce63a84ed3d76d3dd1aeb925063f2fde38b9150602401600060405180830381600087803b15801561060357600080fd5b505af1158015610617573d6000803e3d6000fd5b50505050565b61062561069b565b6001600160a01b03811661068f5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084015b60405180910390fd5b610698816106f5565b50565b6000546001600160a01b031633146103755760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610686565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60008083601f84011261075757600080fd5b50813567ffffffffffffffff81111561076f57600080fd5b6020830191508360208260051b850101111561078a57600080fd5b9250929050565b600080600080604085870312156107a757600080fd5b843567ffffffffffffffff808211156107bf57600080fd5b6107cb88838901610745565b909650945060208701359150808211156107e457600080fd5b506107f187828801610745565b95989497509550505050565b6000806020838503121561081057600080fd5b823567ffffffffffffffff81111561082757600080fd5b61083385828601610745565b90969095509350505050565b6001600160a01b038116811461069857600080fd5b60006020828403121561086657600080fd5b81356108718161083f565b9392505050565b634e487b7160e01b600052603260045260246000fd5b6000602082840312156108a057600080fd5b81516108718161083f565b6020808252810182905260006001600160fb1b038311156108cb57600080fd5b8260051b8085604085013791909101604001939250505056fea2646970667358221220625c94db4b3acb16023d977f6f1120af71ed49b6344081d536c865207ba6b9ec64736f6c63430008130033

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106100875760003560e01c806374e5ec021161005b57806374e5ec02146100fb5780638da5cb5b1461010e578063c1c8277f1461011f578063f2fde38b1461012757600080fd5b8062593f4d1461008c5780630d15a728146100c35780634b9c4efc146100de578063715018a6146100f3575b600080fd5b6100a773d1c1ab59cb16984184388d5411d6644c07a0b57581565b6040516001600160a01b03909116815260200160405180910390f35b6100a773fe45476b69f8c50428dce63a84ed3d76d3dd1aeb81565b6100f16100ec366004610791565b61013a565b005b6100f1610363565b6100f16101093660046107fd565b610377565b6000546001600160a01b03166100a7565b6100f161054b565b6100f1610135366004610854565b61061d565b82811461015a57604051638703789960e01b815260040160405180910390fd5b604051637b2c835f60e01b81526001600482015273d1c1ab59cb16984184388d5411d6644c07a0b57590637b2c835f90602401600060405180830381600087803b1580156101a757600080fd5b505af11580156101bb573d6000803e3d6000fd5b5050505060005b8381101561028c573373d1c1ab59cb16984184388d5411d6644c07a0b575636352211e8787858181106101f7576101f7610878565b905060200201356040518263ffffffff1660e01b815260040161021c91815260200190565b602060405180830381865afa158015610239573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061025d919061088e565b6001600160a01b03161461028457604051632e6c18c960e11b815260040160405180910390fd5b6001016101c2565b506040516371bf97b560e11b815273d1c1ab59cb16984184388d5411d6644c07a0b5759063e37f2f6a906102c690879087906004016108ab565b600060405180830381600087803b1580156102e057600080fd5b505af11580156102f4573d6000803e3d6000fd5b5050604051637b2c835f60e01b81526000600482015273d1c1ab59cb16984184388d5411d6644c07a0b5759250637b2c835f9150602401600060405180830381600087803b15801561034557600080fd5b505af1158015610359573d6000803e3d6000fd5b5050505050505050565b61036b61069b565b61037560006106f5565b565b61037f61069b565b306001600160a01b031673d1c1ab59cb16984184388d5411d6644c07a0b5756001600160a01b0316638da5cb5b6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156103db573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103ff919061088e565b6001600160a01b03161461041257600080fd5b604051637b2c835f60e01b81526001600482015273d1c1ab59cb16984184388d5411d6644c07a0b57590637b2c835f90602401600060405180830381600087803b15801561045f57600080fd5b505af1158015610473573d6000803e3d6000fd5b50506040516371bf97b560e11b815273d1c1ab59cb16984184388d5411d6644c07a0b575925063e37f2f6a91506104b090859085906004016108ab565b600060405180830381600087803b1580156104ca57600080fd5b505af11580156104de573d6000803e3d6000fd5b5050604051637b2c835f60e01b81526000600482015273d1c1ab59cb16984184388d5411d6644c07a0b5759250637b2c835f9150602401600060405180830381600087803b15801561052f57600080fd5b505af1158015610543573d6000803e3d6000fd5b505050505050565b61055361069b565b60405163f2fde38b60e01b815233600482015273d1c1ab59cb16984184388d5411d6644c07a0b5759063f2fde38b90602401600060405180830381600087803b15801561059f57600080fd5b505af11580156105b3573d6000803e3d6000fd5b505060405163f2fde38b60e01b815233600482015273fe45476b69f8c50428dce63a84ed3d76d3dd1aeb925063f2fde38b9150602401600060405180830381600087803b15801561060357600080fd5b505af1158015610617573d6000803e3d6000fd5b50505050565b61062561069b565b6001600160a01b03811661068f5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084015b60405180910390fd5b610698816106f5565b50565b6000546001600160a01b031633146103755760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610686565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60008083601f84011261075757600080fd5b50813567ffffffffffffffff81111561076f57600080fd5b6020830191508360208260051b850101111561078a57600080fd5b9250929050565b600080600080604085870312156107a757600080fd5b843567ffffffffffffffff808211156107bf57600080fd5b6107cb88838901610745565b909650945060208701359150808211156107e457600080fd5b506107f187828801610745565b95989497509550505050565b6000806020838503121561081057600080fd5b823567ffffffffffffffff81111561082757600080fd5b61083385828601610745565b90969095509350505050565b6001600160a01b038116811461069857600080fd5b60006020828403121561086657600080fd5b81356108718161083f565b9392505050565b634e487b7160e01b600052603260045260246000fd5b6000602082840312156108a057600080fd5b81516108718161083f565b6020808252810182905260006001600160fb1b038311156108cb57600080fd5b8260051b8085604085013791909101604001939250505056fea2646970667358221220625c94db4b3acb16023d977f6f1120af71ed49b6344081d536c865207ba6b9ec64736f6c63430008130033

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading
Loading...
Loading

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.