Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Name:
UnordinalsBurner
Compiler Version
v0.8.19+commit.7dd6d404
Optimization Enabled:
No with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: GPL-3.0 /* ## ## ## ## ####### ######## ######## #### ## ## ### ## ###### ## ## ### ## ## ## ## ## ## ## ## ### ## ## ## ## ## ## ## ## #### ## ## ## ## ## ## ## ## #### ## ## ## ## ## ## ## ## ## ## ## ## ######## ## ## ## ## ## ## ## ## ## ###### ## ## ## #### ## ## ## ## ## ## ## ## #### ######### ## ## ## ## ## ### ## ## ## ## ## ## ## ## ### ## ## ## ## ## ####### ## ## ####### ## ## ######## #### ## ## ## ## ######## ###### */ pragma solidity ^0.8.19; import "@openzeppelin/contracts/access/Ownable.sol"; interface IUnordinals { function setBurnEnabled(bool) external; function BurnToken(uint256[] calldata) external; function transferOwnership(address) external; } contract UnordinalsBurner is Ownable { IUnordinals public UNORDINALS_V1 = IUnordinals(0xd1C1ab59cB16984184388d5411d6644C07a0B575); function burnV1(uint256[] calldata tokenIds) external onlyOwner { UNORDINALS_V1.setBurnEnabled(true); UNORDINALS_V1.BurnToken(tokenIds); UNORDINALS_V1.setBurnEnabled(false); } function reclaimOwnership() external onlyOwner { UNORDINALS_V1.transferOwnership(msg.sender); } }
// 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 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; } }
{ "optimizer": { "enabled": false, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"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_V1","outputs":[{"internalType":"contract IUnordinals","name":"","type":"address"}],"stateMutability":"view","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"}]
Contract Creation Code
608060405273d1c1ab59cb16984184388d5411d6644c07a0b575600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555034801561006557600080fd5b5061008261007761008760201b60201c565b61008f60201b60201c565b610153565b600033905090565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b610971806101626000396000f3fe608060405234801561001057600080fd5b50600436106100615760003560e01c8062593f4d14610066578063715018a61461008457806374e5ec021461008e5780638da5cb5b146100aa578063c1c8277f146100c8578063f2fde38b146100d2575b600080fd5b61006e6100ee565b60405161007b91906105eb565b60405180910390f35b61008c610114565b005b6100a860048036038101906100a39190610675565b610128565b005b6100b26102df565b6040516100bf91906106e3565b60405180910390f35b6100d0610308565b005b6100ec60048036038101906100e7919061072a565b61039f565b005b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b61011c610422565b61012660006104a0565b565b610130610422565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16637b2c835f60016040518263ffffffff1660e01b815260040161018c9190610772565b600060405180830381600087803b1580156101a657600080fd5b505af11580156101ba573d6000803e3d6000fd5b50505050600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663e37f2f6a83836040518363ffffffff1660e01b815260040161021b929190610808565b600060405180830381600087803b15801561023557600080fd5b505af1158015610249573d6000803e3d6000fd5b50505050600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16637b2c835f60006040518263ffffffff1660e01b81526004016102a99190610772565b600060405180830381600087803b1580156102c357600080fd5b505af11580156102d7573d6000803e3d6000fd5b505050505050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b610310610422565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663f2fde38b336040518263ffffffff1660e01b815260040161036b91906106e3565b600060405180830381600087803b15801561038557600080fd5b505af1158015610399573d6000803e3d6000fd5b50505050565b6103a7610422565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610416576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161040d906108af565b60405180910390fd5b61041f816104a0565b50565b61042a610564565b73ffffffffffffffffffffffffffffffffffffffff166104486102df565b73ffffffffffffffffffffffffffffffffffffffff161461049e576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016104959061091b565b60405180910390fd5b565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600033905090565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b60006105b16105ac6105a78461056c565b61058c565b61056c565b9050919050565b60006105c382610596565b9050919050565b60006105d5826105b8565b9050919050565b6105e5816105ca565b82525050565b600060208201905061060060008301846105dc565b92915050565b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b60008083601f84011261063557610634610610565b5b8235905067ffffffffffffffff81111561065257610651610615565b5b60208301915083602082028301111561066e5761066d61061a565b5b9250929050565b6000806020838503121561068c5761068b610606565b5b600083013567ffffffffffffffff8111156106aa576106a961060b565b5b6106b68582860161061f565b92509250509250929050565b60006106cd8261056c565b9050919050565b6106dd816106c2565b82525050565b60006020820190506106f860008301846106d4565b92915050565b610707816106c2565b811461071257600080fd5b50565b600081359050610724816106fe565b92915050565b6000602082840312156107405761073f610606565b5b600061074e84828501610715565b91505092915050565b60008115159050919050565b61076c81610757565b82525050565b60006020820190506107876000830184610763565b92915050565b600082825260208201905092915050565b600080fd5b82818337505050565b60006107b8838561078d565b93507f07ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8311156107eb576107ea61079e565b5b6020830292506107fc8385846107a3565b82840190509392505050565b600060208201905081810360008301526108238184866107ac565b90509392505050565b600082825260208201905092915050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b600061089960268361082c565b91506108a48261083d565b604082019050919050565b600060208201905081810360008301526108c88161088c565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b600061090560208361082c565b9150610910826108cf565b602082019050919050565b60006020820190508181036000830152610934816108f8565b905091905056fea2646970667358221220d216263a6bf41aedefbfa51e1072e19248dd732bba31a965d9d09c76b429294664736f6c63430008130033
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106100615760003560e01c8062593f4d14610066578063715018a61461008457806374e5ec021461008e5780638da5cb5b146100aa578063c1c8277f146100c8578063f2fde38b146100d2575b600080fd5b61006e6100ee565b60405161007b91906105eb565b60405180910390f35b61008c610114565b005b6100a860048036038101906100a39190610675565b610128565b005b6100b26102df565b6040516100bf91906106e3565b60405180910390f35b6100d0610308565b005b6100ec60048036038101906100e7919061072a565b61039f565b005b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b61011c610422565b61012660006104a0565b565b610130610422565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16637b2c835f60016040518263ffffffff1660e01b815260040161018c9190610772565b600060405180830381600087803b1580156101a657600080fd5b505af11580156101ba573d6000803e3d6000fd5b50505050600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663e37f2f6a83836040518363ffffffff1660e01b815260040161021b929190610808565b600060405180830381600087803b15801561023557600080fd5b505af1158015610249573d6000803e3d6000fd5b50505050600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16637b2c835f60006040518263ffffffff1660e01b81526004016102a99190610772565b600060405180830381600087803b1580156102c357600080fd5b505af11580156102d7573d6000803e3d6000fd5b505050505050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b610310610422565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663f2fde38b336040518263ffffffff1660e01b815260040161036b91906106e3565b600060405180830381600087803b15801561038557600080fd5b505af1158015610399573d6000803e3d6000fd5b50505050565b6103a7610422565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610416576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161040d906108af565b60405180910390fd5b61041f816104a0565b50565b61042a610564565b73ffffffffffffffffffffffffffffffffffffffff166104486102df565b73ffffffffffffffffffffffffffffffffffffffff161461049e576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016104959061091b565b60405180910390fd5b565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600033905090565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b60006105b16105ac6105a78461056c565b61058c565b61056c565b9050919050565b60006105c382610596565b9050919050565b60006105d5826105b8565b9050919050565b6105e5816105ca565b82525050565b600060208201905061060060008301846105dc565b92915050565b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b60008083601f84011261063557610634610610565b5b8235905067ffffffffffffffff81111561065257610651610615565b5b60208301915083602082028301111561066e5761066d61061a565b5b9250929050565b6000806020838503121561068c5761068b610606565b5b600083013567ffffffffffffffff8111156106aa576106a961060b565b5b6106b68582860161061f565b92509250509250929050565b60006106cd8261056c565b9050919050565b6106dd816106c2565b82525050565b60006020820190506106f860008301846106d4565b92915050565b610707816106c2565b811461071257600080fd5b50565b600081359050610724816106fe565b92915050565b6000602082840312156107405761073f610606565b5b600061074e84828501610715565b91505092915050565b60008115159050919050565b61076c81610757565b82525050565b60006020820190506107876000830184610763565b92915050565b600082825260208201905092915050565b600080fd5b82818337505050565b60006107b8838561078d565b93507f07ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8311156107eb576107ea61079e565b5b6020830292506107fc8385846107a3565b82840190509392505050565b600060208201905081810360008301526108238184866107ac565b90509392505050565b600082825260208201905092915050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b600061089960268361082c565b91506108a48261083d565b604082019050919050565b600060208201905081810360008301526108c88161088c565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b600061090560208361082c565b9150610910826108cf565b602082019050919050565b60006020820190508181036000830152610934816108f8565b905091905056fea2646970667358221220d216263a6bf41aedefbfa51e1072e19248dd732bba31a965d9d09c76b429294664736f6c63430008130033
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.