ETH Price: $2,668.37 (-1.31%)

Contract

0xA492583F6fe2FBcD21797D0C2904F7249ced79F8
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Reroll Dragons191082022024-01-28 23:06:11385 days ago1706483171IN
0xA492583F...49ced79F8
0 ETH0.000547058.65961141
Reroll Dragons191081902024-01-28 23:03:47385 days ago1706483027IN
0xA492583F...49ced79F8
0 ETH0.000588069.30884264
Reroll Dragons189891032024-01-12 6:42:59401 days ago1705041779IN
0xA492583F...49ced79F8
0 ETH0.0008672214.85666565
Reroll Dragons189891012024-01-12 6:42:35401 days ago1705041755IN
0xA492583F...49ced79F8
0 ETH0.0009162614.50408581
Reroll Dragons189890982024-01-12 6:41:59401 days ago1705041719IN
0xA492583F...49ced79F8
0 ETH0.0009202814.56775098
Reroll Dragons187315972023-12-07 2:59:59438 days ago1701917999IN
0xA492583F...49ced79F8
0 ETH0.0018275931.31533344
Reroll Dragons183893262023-10-20 5:02:59485 days ago1697778179IN
0xA492583F...49ced79F8
0 ETH0.000556068.22880129
Reroll Dragons182617102023-10-02 8:39:59503 days ago1696235999IN
0xA492583F...49ced79F8
0 ETH0.000480868.23773326
Reroll Dragons182617062023-10-02 8:39:11503 days ago1696235951IN
0xA492583F...49ced79F8
0 ETH0.000518.07322491
Reroll Dragons182617032023-10-02 8:38:35503 days ago1696235915IN
0xA492583F...49ced79F8
0 ETH0.000491397.77854156
Reroll Dragons182616862023-10-02 8:35:11503 days ago1696235711IN
0xA492583F...49ced79F8
0 ETH0.0004787.56660053
Reroll Dragons182616592023-10-02 8:29:47503 days ago1696235387IN
0xA492583F...49ced79F8
0 ETH0.000483927.66028166
Reroll Dragons182253542023-09-27 6:36:23508 days ago1695796583IN
0xA492583F...49ced79F8
0 ETH0.000445767.05621603
Reroll Dragons182253412023-09-27 6:33:47508 days ago1695796427IN
0xA492583F...49ced79F8
0 ETH0.000468717.4195428
Reroll Dragons182253222023-09-27 6:29:59508 days ago1695796199IN
0xA492583F...49ced79F8
0 ETH0.000414396.55970364
Reroll Dragons181110992023-09-11 5:42:59524 days ago1694410979IN
0xA492583F...49ced79F8
0 ETH0.000531268.40974454
Reroll Dragons180513972023-09-02 21:07:23533 days ago1693688843IN
0xA492583F...49ced79F8
0 ETH0.0006729811.52907724
Reroll Dragons179864782023-08-24 18:54:47542 days ago1692903287IN
0xA492583F...49ced79F8
0 ETH0.0011282519.32839212
Reroll Dragons179830092023-08-24 7:15:11542 days ago1692861311IN
0xA492583F...49ced79F8
0 ETH0.0010003715.83541913
Reroll Dragons179769252023-08-23 10:51:11543 days ago1692787871IN
0xA492583F...49ced79F8
0 ETH0.000961915.22645843
Reroll Dragons179669952023-08-22 1:32:23545 days ago1692667943IN
0xA492583F...49ced79F8
0 ETH0.0009507116.28691558
Reroll Dragons179658162023-08-21 21:34:47545 days ago1692653687IN
0xA492583F...49ced79F8
0 ETH0.0022374729.247339
Reroll Dragons179647752023-08-21 18:06:11545 days ago1692641171IN
0xA492583F...49ced79F8
0 ETH0.0019030130.12381139
Reroll Dragons179622432023-08-21 9:34:35545 days ago1692610475IN
0xA492583F...49ced79F8
0 ETH0.0008630314.78478677
Reroll Dragons179622402023-08-21 9:33:59545 days ago1692610439IN
0xA492583F...49ced79F8
0 ETH0.0009873815.62986045
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:
WeaponBurn

Compiler Version
v0.8.18+commit.87f61d96

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MIT license
/**
 *Submitted for verification at Etherscan.io on 2023-05-18
*/

// File: @openzeppelin/contracts/utils/Context.sol


// 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: @openzeppelin/contracts/access/Ownable.sol


// OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol)

pragma solidity ^0.8.0;


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

// File: erc721a/contracts/IERC721A.sol


// 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: erc721a/contracts/interfaces/IERC721A.sol


// ERC721A Contracts v4.2.3
// Creator: Chiru Labs

pragma solidity ^0.8.4;


// File: WeaponBurn.sol


pragma solidity ^0.8.18;



interface ILoot {
    function controlledBurn(address _from, uint256 _id, uint256 _amount) external;
}

contract WeaponBurn is Ownable {
    address public dragonsContract;
    address public weaponsContract;
    event Reroll(uint256[] _weaponIds, uint256[] _dragonIds);
    constructor(address _dragonsContract, address _weaponsContract){
        dragonsContract = _dragonsContract;
        weaponsContract = _weaponsContract;
    }

    function setDragonsContract(address _dragonsContract) public onlyOwner {
        dragonsContract = _dragonsContract;
    }

    function setLootContract(address _lootContract) public onlyOwner {
        weaponsContract = _lootContract;
    }

    function rerollDragons(uint256[] calldata _weaponIds, uint256[] calldata _dragonIds) public {
        for (uint256 i = 0; i < _weaponIds.length; i++) {
            require(IERC721A(dragonsContract).ownerOf(_dragonIds[i]) == msg.sender, "Dragon is not yours to re-roll!");
            ILoot(weaponsContract).controlledBurn(msg.sender, _weaponIds[i], 1);
        }
        emit Reroll(_weaponIds, _dragonIds);
    }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_dragonsContract","type":"address"},{"internalType":"address","name":"_weaponsContract","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"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":"uint256[]","name":"_weaponIds","type":"uint256[]"},{"indexed":false,"internalType":"uint256[]","name":"_dragonIds","type":"uint256[]"}],"name":"Reroll","type":"event"},{"inputs":[],"name":"dragonsContract","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"_weaponIds","type":"uint256[]"},{"internalType":"uint256[]","name":"_dragonIds","type":"uint256[]"}],"name":"rerollDragons","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_dragonsContract","type":"address"}],"name":"setDragonsContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_lootContract","type":"address"}],"name":"setLootContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"weaponsContract","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"}]

608060405234801561001057600080fd5b5060405161079738038061079783398101604081905261002f916100d5565b61003833610069565b600180546001600160a01b039384166001600160a01b03199182161790915560028054929093169116179055610108565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b80516001600160a01b03811681146100d057600080fd5b919050565b600080604083850312156100e857600080fd5b6100f1836100b9565b91506100ff602084016100b9565b90509250929050565b610680806101176000396000f3fe608060405234801561001057600080fd5b50600436106100885760003560e01c80638da5cb5b1161005b5780638da5cb5b146100ec578063bb940b94146100fd578063c037af6214610110578063f2fde38b1461012357600080fd5b80633505c67d1461008d57806370ee3e0d146100bc578063715018a6146100cf5780637cd22fc1146100d9575b600080fd5b6002546100a0906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b6001546100a0906001600160a01b031681565b6100d7610136565b005b6100d76100e73660046104b0565b61014a565b6000546001600160a01b03166100a0565b6100d761010b3660046104b0565b610174565b6100d761011e366004610520565b61019e565b6100d76101313660046104b0565b610378565b61013e6103f1565b610148600061044b565b565b6101526103f1565b600180546001600160a01b0319166001600160a01b0392909216919091179055565b61017c6103f1565b600280546001600160a01b0319166001600160a01b0392909216919091179055565b60005b838110156103345760015433906001600160a01b0316636352211e8585858181106101ce576101ce61058c565b905060200201356040518263ffffffff1660e01b81526004016101f391815260200190565b602060405180830381865afa158015610210573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061023491906105a2565b6001600160a01b03161461028f5760405162461bcd60e51b815260206004820152601f60248201527f447261676f6e206973206e6f7420796f75727320746f2072652d726f6c6c210060448201526064015b60405180910390fd5b6002546001600160a01b031663ee720065338787858181106102b3576102b361058c565b6040516001600160e01b031960e087901b1681526001600160a01b039094166004850152602002919091013560248301525060016044820152606401600060405180830381600087803b15801561030957600080fd5b505af115801561031d573d6000803e3d6000fd5b50505050808061032c906105bf565b9150506101a1565b507f5bf245604a4ce796bb52d63c3dd27a3cec1622fd801aa2c0d5b0e532df524e388484848460405161036a9493929190610618565b60405180910390a150505050565b6103806103f1565b6001600160a01b0381166103e55760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610286565b6103ee8161044b565b50565b6000546001600160a01b031633146101485760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610286565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6001600160a01b03811681146103ee57600080fd5b6000602082840312156104c257600080fd5b81356104cd8161049b565b9392505050565b60008083601f8401126104e657600080fd5b50813567ffffffffffffffff8111156104fe57600080fd5b6020830191508360208260051b850101111561051957600080fd5b9250929050565b6000806000806040858703121561053657600080fd5b843567ffffffffffffffff8082111561054e57600080fd5b61055a888389016104d4565b9096509450602087013591508082111561057357600080fd5b50610580878288016104d4565b95989497509550505050565b634e487b7160e01b600052603260045260246000fd5b6000602082840312156105b457600080fd5b81516104cd8161049b565b6000600182016105df57634e487b7160e01b600052601160045260246000fd5b5060010190565b81835260006001600160fb1b038311156105ff57600080fd5b8260051b80836020870137939093016020019392505050565b60408152600061062c6040830186886105e6565b828103602084015261063f8185876105e6565b97965050505050505056fea26469706673582212203ba78c13bafe86832148227b9dadbc452270bc3280346b7f2ef49fc33766967264736f6c634300081200330000000000000000000000006b5483b55b362697000d8774d8ea9c4429b261bb000000000000000000000000b6d460ac51b93bca63b694f099c4a8b3b1cf73b4

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106100885760003560e01c80638da5cb5b1161005b5780638da5cb5b146100ec578063bb940b94146100fd578063c037af6214610110578063f2fde38b1461012357600080fd5b80633505c67d1461008d57806370ee3e0d146100bc578063715018a6146100cf5780637cd22fc1146100d9575b600080fd5b6002546100a0906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b6001546100a0906001600160a01b031681565b6100d7610136565b005b6100d76100e73660046104b0565b61014a565b6000546001600160a01b03166100a0565b6100d761010b3660046104b0565b610174565b6100d761011e366004610520565b61019e565b6100d76101313660046104b0565b610378565b61013e6103f1565b610148600061044b565b565b6101526103f1565b600180546001600160a01b0319166001600160a01b0392909216919091179055565b61017c6103f1565b600280546001600160a01b0319166001600160a01b0392909216919091179055565b60005b838110156103345760015433906001600160a01b0316636352211e8585858181106101ce576101ce61058c565b905060200201356040518263ffffffff1660e01b81526004016101f391815260200190565b602060405180830381865afa158015610210573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061023491906105a2565b6001600160a01b03161461028f5760405162461bcd60e51b815260206004820152601f60248201527f447261676f6e206973206e6f7420796f75727320746f2072652d726f6c6c210060448201526064015b60405180910390fd5b6002546001600160a01b031663ee720065338787858181106102b3576102b361058c565b6040516001600160e01b031960e087901b1681526001600160a01b039094166004850152602002919091013560248301525060016044820152606401600060405180830381600087803b15801561030957600080fd5b505af115801561031d573d6000803e3d6000fd5b50505050808061032c906105bf565b9150506101a1565b507f5bf245604a4ce796bb52d63c3dd27a3cec1622fd801aa2c0d5b0e532df524e388484848460405161036a9493929190610618565b60405180910390a150505050565b6103806103f1565b6001600160a01b0381166103e55760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610286565b6103ee8161044b565b50565b6000546001600160a01b031633146101485760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610286565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6001600160a01b03811681146103ee57600080fd5b6000602082840312156104c257600080fd5b81356104cd8161049b565b9392505050565b60008083601f8401126104e657600080fd5b50813567ffffffffffffffff8111156104fe57600080fd5b6020830191508360208260051b850101111561051957600080fd5b9250929050565b6000806000806040858703121561053657600080fd5b843567ffffffffffffffff8082111561054e57600080fd5b61055a888389016104d4565b9096509450602087013591508082111561057357600080fd5b50610580878288016104d4565b95989497509550505050565b634e487b7160e01b600052603260045260246000fd5b6000602082840312156105b457600080fd5b81516104cd8161049b565b6000600182016105df57634e487b7160e01b600052601160045260246000fd5b5060010190565b81835260006001600160fb1b038311156105ff57600080fd5b8260051b80836020870137939093016020019392505050565b60408152600061062c6040830186886105e6565b828103602084015261063f8185876105e6565b97965050505050505056fea26469706673582212203ba78c13bafe86832148227b9dadbc452270bc3280346b7f2ef49fc33766967264736f6c63430008120033

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

0000000000000000000000006b5483b55b362697000d8774d8ea9c4429b261bb000000000000000000000000b6d460ac51b93bca63b694f099c4a8b3b1cf73b4

-----Decoded View---------------
Arg [0] : _dragonsContract (address): 0x6b5483b55b362697000d8774d8ea9c4429B261BB
Arg [1] : _weaponsContract (address): 0xb6d460aC51B93BCa63B694f099C4A8b3B1CF73B4

-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 0000000000000000000000006b5483b55b362697000d8774d8ea9c4429b261bb
Arg [1] : 000000000000000000000000b6d460ac51b93bca63b694f099c4a8b3b1cf73b4


Deployed Bytecode Sourcemap

12911:1021:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;12986:30;;;;;-1:-1:-1;;;;;12986:30:0;;;;;;-1:-1:-1;;;;;178:32:1;;;160:51;;148:2;133:18;12986:30:0;;;;;;;12949;;;;;-1:-1:-1;;;;;12949:30:0;;;2776:103;;;:::i;:::-;;13255:124;;;;;;:::i;:::-;;:::i;2128:87::-;2174:7;2201:6;-1:-1:-1;;;;;2201:6:0;2128:87;;13387:115;;;;;;:::i;:::-;;:::i;13510:419::-;;;;;;:::i;:::-;;:::i;3034:201::-;;;;;;:::i;:::-;;:::i;2776:103::-;2014:13;:11;:13::i;:::-;2841:30:::1;2868:1;2841:18;:30::i;:::-;2776:103::o:0;13255:124::-;2014:13;:11;:13::i;:::-;13337:15:::1;:34:::0;;-1:-1:-1;;;;;;13337:34:0::1;-1:-1:-1::0;;;;;13337:34:0;;;::::1;::::0;;;::::1;::::0;;13255:124::o;13387:115::-;2014:13;:11;:13::i;:::-;13463:15:::1;:31:::0;;-1:-1:-1;;;;;;13463:31:0::1;-1:-1:-1::0;;;;;13463:31:0;;;::::1;::::0;;;::::1;::::0;;13387:115::o;13510:419::-;13618:9;13613:263;13633:21;;;13613:263;;;13693:15;;13736:10;;-1:-1:-1;;;;;13693:15:0;13684:33;13718:10;;13729:1;13718:13;;;;;;;:::i;:::-;;;;;;;13684:48;;;;;;;;;;;;;2038:25:1;;2026:2;2011:18;;1892:177;13684:48:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1;;;;;13684:62:0;;13676:106;;;;-1:-1:-1;;;13676:106:0;;2532:2:1;13676:106:0;;;2514:21:1;2571:2;2551:18;;;2544:30;2610:33;2590:18;;;2583:61;2661:18;;13676:106:0;;;;;;;;;13803:15;;-1:-1:-1;;;;;13803:15:0;13797:37;13835:10;13847;;13858:1;13847:13;;;;;;;:::i;:::-;13797:67;;-1:-1:-1;;;;;;13797:67:0;;;;;;;-1:-1:-1;;;;;2918:32:1;;;13797:67:0;;;2900:51:1;13847:13:0;;;;;;;2967:18:1;;;2960:34;-1:-1:-1;13862:1:0;3010:18:1;;;3003:34;2873:18;;13797:67:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;13656:3;;;;;:::i;:::-;;;;13613:263;;;;13891:30;13898:10;;13910;;13891:30;;;;;;;;;:::i;:::-;;;;;;;;13510:419;;;;:::o;3034:201::-;2014:13;:11;:13::i;:::-;-1:-1:-1;;;;;3123:22:0;::::1;3115:73;;;::::0;-1:-1:-1;;;3115:73:0;;4327:2:1;3115:73:0::1;::::0;::::1;4309:21:1::0;4366:2;4346:18;;;4339:30;4405:34;4385:18;;;4378:62;-1:-1:-1;;;4456:18:1;;;4449:36;4502:19;;3115:73:0::1;4125:402:1::0;3115:73:0::1;3199:28;3218:8;3199:18;:28::i;:::-;3034:201:::0;:::o;2293:132::-;2174:7;2201:6;-1:-1:-1;;;;;2201:6:0;759:10;2357:23;2349:68;;;;-1:-1:-1;;;2349:68:0;;4734:2:1;2349:68:0;;;4716:21:1;;;4753:18;;;4746:30;4812:34;4792:18;;;4785:62;4864:18;;2349:68:0;4532:356:1;3395:191:0;3469:16;3488:6;;-1:-1:-1;;;;;3505:17:0;;;-1:-1:-1;;;;;;3505:17:0;;;;;;3538:40;;3488:6;;;;;;;3538:40;;3469:16;3538:40;3458:128;3395:191;:::o;222:131:1:-;-1:-1:-1;;;;;297:31:1;;287:42;;277:70;;343:1;340;333:12;358:247;417:6;470:2;458:9;449:7;445:23;441:32;438:52;;;486:1;483;476:12;438:52;525:9;512:23;544:31;569:5;544:31;:::i;:::-;594:5;358:247;-1:-1:-1;;;358:247:1:o;610:367::-;673:8;683:6;737:3;730:4;722:6;718:17;714:27;704:55;;755:1;752;745:12;704:55;-1:-1:-1;778:20:1;;821:18;810:30;;807:50;;;853:1;850;843:12;807:50;890:4;882:6;878:17;866:29;;950:3;943:4;933:6;930:1;926:14;918:6;914:27;910:38;907:47;904:67;;;967:1;964;957:12;904:67;610:367;;;;;:::o;982:773::-;1104:6;1112;1120;1128;1181:2;1169:9;1160:7;1156:23;1152:32;1149:52;;;1197:1;1194;1187:12;1149:52;1237:9;1224:23;1266:18;1307:2;1299:6;1296:14;1293:34;;;1323:1;1320;1313:12;1293:34;1362:70;1424:7;1415:6;1404:9;1400:22;1362:70;:::i;:::-;1451:8;;-1:-1:-1;1336:96:1;-1:-1:-1;1539:2:1;1524:18;;1511:32;;-1:-1:-1;1555:16:1;;;1552:36;;;1584:1;1581;1574:12;1552:36;;1623:72;1687:7;1676:8;1665:9;1661:24;1623:72;:::i;:::-;982:773;;;;-1:-1:-1;1714:8:1;-1:-1:-1;;;;982:773:1:o;1760:127::-;1821:10;1816:3;1812:20;1809:1;1802:31;1852:4;1849:1;1842:15;1876:4;1873:1;1866:15;2074:251;2144:6;2197:2;2185:9;2176:7;2172:23;2168:32;2165:52;;;2213:1;2210;2203:12;2165:52;2245:9;2239:16;2264:31;2289:5;2264:31;:::i;3048:232::-;3087:3;3108:17;;;3105:140;;3167:10;3162:3;3158:20;3155:1;3148:31;3202:4;3199:1;3192:15;3230:4;3227:1;3220:15;3105:140;-1:-1:-1;3272:1:1;3261:13;;3048:232::o;3285:311::-;3373:19;;;3355:3;-1:-1:-1;;;;;3404:31:1;;3401:51;;;3448:1;3445;3438:12;3401:51;3484:6;3481:1;3477:14;3536:8;3529:5;3522:4;3517:3;3513:14;3500:45;3565:18;;;;3585:4;3561:29;;3285:311;-1:-1:-1;;;3285:311:1:o;3601:519::-;3878:2;3867:9;3860:21;3841:4;3904:73;3973:2;3962:9;3958:18;3950:6;3942;3904:73;:::i;:::-;4025:9;4017:6;4013:22;4008:2;3997:9;3993:18;3986:50;4053:61;4107:6;4099;4091;4053:61;:::i;:::-;4045:69;3601:519;-1:-1:-1;;;;;;;3601:519:1:o

Swarm Source

ipfs://3ba78c13bafe86832148227b9dadbc452270bc3280346b7f2ef49fc337669672

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.