ETH Price: $3,283.57 (+1.40%)

Contract

0xD6f3bc91DAe206A727445D6C953779C03E35fA7f
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Set Approval For...214345422024-12-19 5:40:3523 days ago1734586835IN
0xD6f3bc91...03E35fA7f
0 ETH0.0005025810.90320027
Set Approval For...210540412024-10-27 2:41:2377 days ago1729996883IN
0xD6f3bc91...03E35fA7f
0 ETH0.000202664.39777136
Set Approval For...198898672024-05-17 13:03:47239 days ago1715951027IN
0xD6f3bc91...03E35fA7f
0 ETH0.000238749.11835816
Set Approval For...198898652024-05-17 13:03:23239 days ago1715951003IN
0xD6f3bc91...03E35fA7f
0 ETH0.000432599.38740727
Set Approval For...195561212024-03-31 20:04:35286 days ago1711915475IN
0xD6f3bc91...03E35fA7f
0 ETH0.0005417222.33458412
Set Approval For...195561212024-03-31 20:04:35286 days ago1711915475IN
0xD6f3bc91...03E35fA7f
0 ETH0.0005417222.33458412
Set Approval For...192219512024-02-13 22:08:11333 days ago1707862091IN
0xD6f3bc91...03E35fA7f
0 ETH0.0008536835.21354701
Set Approval For...189112442024-01-01 7:55:59376 days ago1704095759IN
0xD6f3bc91...03E35fA7f
0 ETH0.0004924610.66707396
Set Approval For...188631592023-12-25 13:52:59383 days ago1703512379IN
0xD6f3bc91...03E35fA7f
0 ETH0.0019155941.56842677
Set Approval For...187684282023-12-12 6:50:11396 days ago1702363811IN
0xD6f3bc91...03E35fA7f
0 ETH0.0016862236.53395584
Set Approval For...179646872023-08-21 17:48:23509 days ago1692640103IN
0xD6f3bc91...03E35fA7f
0 ETH0.0013403729.03326989
Set Approval For...164148372023-01-15 21:19:23727 days ago1673817563IN
0xD6f3bc91...03E35fA7f
0 ETH0.0004778319.70038809
Set Approval For...163734772023-01-10 2:40:23733 days ago1673318423IN
0xD6f3bc91...03E35fA7f
0 ETH0.0005472422.56200153
Set Approval For...163092342023-01-01 3:29:47742 days ago1672543787IN
0xD6f3bc91...03E35fA7f
0 ETH0.0007567716.39645565
Set Approval For...163056842022-12-31 15:37:35742 days ago1672501055IN
0xD6f3bc91...03E35fA7f
0 ETH0.0007865817.04228197
Set Approval For...163037342022-12-31 9:04:59742 days ago1672477499IN
0xD6f3bc91...03E35fA7f
0 ETH0.0007723116.73316318
Set Approval For...162990322022-12-30 17:19:11743 days ago1672420751IN
0xD6f3bc91...03E35fA7f
0 ETH0.0014958132.40860826
Set Approval For...162957562022-12-30 6:20:23743 days ago1672381223IN
0xD6f3bc91...03E35fA7f
0 ETH0.0006214413.48525358
Set Approval For...162712352022-12-26 20:11:59747 days ago1672085519IN
0xD6f3bc91...03E35fA7f
0 ETH0.000456359.88738183
Set Approval For...161704412022-12-12 18:34:23761 days ago1670870063IN
0xD6f3bc91...03E35fA7f
0 ETH0.0004741319.5479475
Set Approval For...160799542022-11-30 2:55:11774 days ago1669776911IN
0xD6f3bc91...03E35fA7f
0 ETH0.0006043113.09311378
Set Approval For...160799492022-11-30 2:54:11774 days ago1669776851IN
0xD6f3bc91...03E35fA7f
0 ETH0.0006244313.52903985
Safe Transfer Fr...159541452022-11-12 13:10:47791 days ago1668258647IN
0xD6f3bc91...03E35fA7f
0 ETH0.0006110316.53600381
Set Approval For...159231722022-11-08 5:18:11795 days ago1667884691IN
0xD6f3bc91...03E35fA7f
0 ETH0.0005466922.53927565
Set Approval For...156362882022-09-29 3:22:35836 days ago1664421755IN
0xD6f3bc91...03E35fA7f
0 ETH0.0004736410.26208921
View all transactions

Latest 1 internal transaction

Advanced mode:
Parent Transaction Hash Block
From
To
135820422021-11-09 12:03:541159 days ago1636459434
0xD6f3bc91...03E35fA7f
3.021 ETH
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
Token2476

Compiler Version
v0.8.9+commit.e5eed63a

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 15 : Token2476.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.9 <0.9.0;

import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/v4.2.0/contracts/access/Ownable.sol";
import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/v4.2.0/contracts/token/ERC1155/ERC1155.sol";
import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/v4.2.0/contracts/token/ERC1155/extensions/ERC1155Supply.sol";
import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/v4.2.0/contracts/token/ERC1155/extensions/ERC1155Pausable.sol";
import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/v4.2.0/contracts/token/ERC1155/extensions/ERC1155Burnable.sol";
import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/v4.2.0/contracts/utils/math/SafeMath.sol";


/**
 * @title Token2476 contract
 * @dev Extends ERC1155 contract 
 * @author @FrankPoncelet
 * Owner Artchick
 */
contract Token2476 is ERC1155Supply, Ownable, ERC1155Pausable, ERC1155Burnable{
    using SafeMath for uint256;
        
    bool public saleIsActive;
    uint256 public tokenPrice = 1 ether; 
    uint256 private mintedTokens;
    uint constant TOKEN_ID = 2476;
    uint constant MAX_TOKENS = 10000;
    
    address private constant FRANK = 0xF40Fd88ac59A206D009A07F8c09828a01e2ACC0d;
    address private constant WALLET2476 = 0x0b8F4C4E7626A91460dac057eB43e0de59d5b44F;
    address public attention2476Contract;
    
    event priceChange(address _by, uint256 price);
    event PaymentReleased(address to, uint256 amount);

    constructor() ERC1155("ipfs://QmRuSYR65tcM3vG5Tjyi32vW3CCthX9MNwVaVooZ5KNoeJ") { 
        _mint(FRANK,TOKEN_ID,1, "");
        mintedTokens = 1;
    }
    
    function pause() external onlyOwner {
        _pause();
        if(saleIsActive){
            saleIsActive = false;
        }
    }

    function unpause() external onlyOwner {
        _unpause();
    }
    
    function name() public pure returns (string memory) {
        return "Token 2476";
    }

    function symbol() public pure returns (string memory) {
        return "2476";
    }
    
    function _burn(
        address account,
        uint256 id,
        uint256 amount
    ) internal virtual override(ERC1155, ERC1155Supply) {
        super._burn(account, id, amount);
    }
    
    function _mint(
        address account,
        uint256 id,
        uint256 amount,
        bytes memory data
    ) internal virtual override(ERC1155, ERC1155Supply) {
        super._mint(account, id, amount, data);
    }

    function _mintBatch(
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) internal virtual override(ERC1155, ERC1155Supply) {
        super._mintBatch(to, ids, amounts, data);
    }
    
    function _burnBatch(
        address account,
        uint256[] memory ids,
        uint256[] memory amounts
    ) internal virtual override(ERC1155, ERC1155Supply) {
        super._burnBatch(account, ids, amounts);
    } 
    
    function _beforeTokenTransfer(
        address operator,
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) internal virtual override(ERC1155Pausable, ERC1155) {
        super._beforeTokenTransfer(operator, from, to, ids, amounts, data);
    }  
    
    function flipSaleState() external onlyOwner {
        saleIsActive = !saleIsActive;
    }
    
    function setURI(string memory newuri) external onlyOwner {
        _setURI(newuri);
    }
    
    /**     
    * Set price to new value
    */
    function setPrice(uint256 price) public onlyOwner {
        tokenPrice = price;
        emit priceChange(msg.sender, tokenPrice);
    }
    
    /**
     * Join the 2476 attention contract.
     */
    function join2476() public{
        setApprovalForAll(attention2476Contract,true);
    }
    
    /**
     * Allow to change the Attention crontract in case of updates.
     */
    function setAttentionContract(address contractAddress) public onlyOwner{
        attention2476Contract=contractAddress;
    }
    /**
     * mint the requested numer of tokens.
     * MAX 20!
     * 
     */
    function mint(uint numberOfTokens) external payable{
        require(saleIsActive, "2476: Sale must be active to mint Tokens!");
        require(mintedTokens + numberOfTokens <= MAX_TOKENS, "2476: Purchase would exceed max supply of tokens!");
        require(!paused(), "2476: Minting is paused");
        require(tokenPrice.mul(numberOfTokens) <= msg.value, "2476: Ether value sent is not correct");
        require(numberOfTokens<=20,"2476: You can only mint 20 tokens at a time");
        mintedTokens += numberOfTokens;
        _mint(msg.sender,TOKEN_ID,numberOfTokens , "");
    }
    
    function withdraw() public onlyOwner {
        uint256 balance = address(this).balance;
        require(payable(WALLET2476).send(balance));
        emit PaymentReleased(owner(), balance);
    }

}

File 2 of 15 : SafeMath.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

// CAUTION
// This version of SafeMath should only be used with Solidity 0.8 or later,
// because it relies on the compiler's built in overflow checks.

/**
 * @dev Wrappers over Solidity's arithmetic operations.
 *
 * NOTE: `SafeMath` is no longer needed starting with Solidity 0.8. The compiler
 * now has built in overflow checking.
 */
library SafeMath {
    /**
     * @dev Returns the addition of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            uint256 c = a + b;
            if (c < a) return (false, 0);
            return (true, c);
        }
    }

    /**
     * @dev Returns the substraction of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b > a) return (false, 0);
            return (true, a - b);
        }
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            // Gas optimization: this is cheaper than requiring 'a' not being zero, but the
            // benefit is lost if 'b' is also tested.
            // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
            if (a == 0) return (true, 0);
            uint256 c = a * b;
            if (c / a != b) return (false, 0);
            return (true, c);
        }
    }

    /**
     * @dev Returns the division of two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a / b);
        }
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a % b);
        }
    }

    /**
     * @dev Returns the addition of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `+` operator.
     *
     * Requirements:
     *
     * - Addition cannot overflow.
     */
    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        return a + b;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b) internal pure returns (uint256) {
        return a - b;
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `*` operator.
     *
     * Requirements:
     *
     * - Multiplication cannot overflow.
     */
    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        return a * b;
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator.
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        return a / b;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting when dividing by zero.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b) internal pure returns (uint256) {
        return a % b;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {trySub}.
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b <= a, errorMessage);
            return a - b;
        }
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting with custom message on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b > 0, errorMessage);
            return a / b;
        }
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting with custom message when dividing by zero.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {tryMod}.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b > 0, errorMessage);
            return a % b;
        }
    }
}

File 3 of 15 : ERC1155Burnable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../ERC1155.sol";

/**
 * @dev Extension of {ERC1155} that allows token holders to destroy both their
 * own tokens and those that they have been approved to use.
 *
 * _Available since v3.1._
 */
abstract contract ERC1155Burnable is ERC1155 {
    function burn(
        address account,
        uint256 id,
        uint256 value
    ) public virtual {
        require(
            account == _msgSender() || isApprovedForAll(account, _msgSender()),
            "ERC1155: caller is not owner nor approved"
        );

        _burn(account, id, value);
    }

    function burnBatch(
        address account,
        uint256[] memory ids,
        uint256[] memory values
    ) public virtual {
        require(
            account == _msgSender() || isApprovedForAll(account, _msgSender()),
            "ERC1155: caller is not owner nor approved"
        );

        _burnBatch(account, ids, values);
    }
}

File 4 of 15 : ERC1155Pausable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../ERC1155.sol";
import "../../../security/Pausable.sol";

/**
 * @dev ERC1155 token with pausable token transfers, minting and burning.
 *
 * Useful for scenarios such as preventing trades until the end of an evaluation
 * period, or having an emergency switch for freezing all token transfers in the
 * event of a large bug.
 *
 * _Available since v3.1._
 */
abstract contract ERC1155Pausable is ERC1155, Pausable {
    /**
     * @dev See {ERC1155-_beforeTokenTransfer}.
     *
     * Requirements:
     *
     * - the contract must not be paused.
     */
    function _beforeTokenTransfer(
        address operator,
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) internal virtual override {
        super._beforeTokenTransfer(operator, from, to, ids, amounts, data);

        require(!paused(), "ERC1155Pausable: token transfer while paused");
    }
}

File 5 of 15 : ERC1155Supply.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../ERC1155.sol";

/**
 * @dev Extension of ERC1155 that adds tracking of total supply per id.
 *
 * Useful for scenarios where Fungible and Non-fungible tokens have to be
 * clearly identified. Note: While a totalSupply of 1 might mean the
 * corresponding is an NFT, there is no guarantees that no other token with the
 * same id are not going to be minted.
 */
abstract contract ERC1155Supply is ERC1155 {
    mapping(uint256 => uint256) private _totalSupply;

    /**
     * @dev Total amount of tokens in with a given id.
     */
    function totalSupply(uint256 id) public view virtual returns (uint256) {
        return _totalSupply[id];
    }

    /**
     * @dev Indicates weither any token exist with a given id, or not.
     */
    function exists(uint256 id) public view virtual returns (bool) {
        return ERC1155Supply.totalSupply(id) > 0;
    }

    /**
     * @dev See {ERC1155-_mint}.
     */
    function _mint(
        address account,
        uint256 id,
        uint256 amount,
        bytes memory data
    ) internal virtual override {
        super._mint(account, id, amount, data);
        _totalSupply[id] += amount;
    }

    /**
     * @dev See {ERC1155-_mintBatch}.
     */
    function _mintBatch(
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) internal virtual override {
        super._mintBatch(to, ids, amounts, data);
        for (uint256 i = 0; i < ids.length; ++i) {
            _totalSupply[ids[i]] += amounts[i];
        }
    }

    /**
     * @dev See {ERC1155-_burn}.
     */
    function _burn(
        address account,
        uint256 id,
        uint256 amount
    ) internal virtual override {
        super._burn(account, id, amount);
        _totalSupply[id] -= amount;
    }

    /**
     * @dev See {ERC1155-_burnBatch}.
     */
    function _burnBatch(
        address account,
        uint256[] memory ids,
        uint256[] memory amounts
    ) internal virtual override {
        super._burnBatch(account, ids, amounts);
        for (uint256 i = 0; i < ids.length; ++i) {
            _totalSupply[ids[i]] -= amounts[i];
        }
    }
}

File 6 of 15 : ERC1155.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "./IERC1155.sol";
import "./IERC1155Receiver.sol";
import "./extensions/IERC1155MetadataURI.sol";
import "../../utils/Address.sol";
import "../../utils/Context.sol";
import "../../utils/introspection/ERC165.sol";

/**
 * @dev Implementation of the basic standard multi-token.
 * See https://eips.ethereum.org/EIPS/eip-1155
 * Originally based on code by Enjin: https://github.com/enjin/erc-1155
 *
 * _Available since v3.1._
 */
contract ERC1155 is Context, ERC165, IERC1155, IERC1155MetadataURI {
    using Address for address;

    // Mapping from token ID to account balances
    mapping(uint256 => mapping(address => uint256)) private _balances;

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

    // Used as the URI for all token types by relying on ID substitution, e.g. https://token-cdn-domain/{id}.json
    string private _uri;

    /**
     * @dev See {_setURI}.
     */
    constructor(string memory uri_) {
        _setURI(uri_);
    }

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

    /**
     * @dev See {IERC1155MetadataURI-uri}.
     *
     * This implementation returns the same URI for *all* token types. It relies
     * on the token type ID substitution mechanism
     * https://eips.ethereum.org/EIPS/eip-1155#metadata[defined in the EIP].
     *
     * Clients calling this function must replace the `\{id\}` substring with the
     * actual token type ID.
     */
    function uri(uint256) public view virtual override returns (string memory) {
        return _uri;
    }

    /**
     * @dev See {IERC1155-balanceOf}.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     */
    function balanceOf(address account, uint256 id) public view virtual override returns (uint256) {
        require(account != address(0), "ERC1155: balance query for the zero address");
        return _balances[id][account];
    }

    /**
     * @dev See {IERC1155-balanceOfBatch}.
     *
     * Requirements:
     *
     * - `accounts` and `ids` must have the same length.
     */
    function balanceOfBatch(address[] memory accounts, uint256[] memory ids)
        public
        view
        virtual
        override
        returns (uint256[] memory)
    {
        require(accounts.length == ids.length, "ERC1155: accounts and ids length mismatch");

        uint256[] memory batchBalances = new uint256[](accounts.length);

        for (uint256 i = 0; i < accounts.length; ++i) {
            batchBalances[i] = balanceOf(accounts[i], ids[i]);
        }

        return batchBalances;
    }

    /**
     * @dev See {IERC1155-setApprovalForAll}.
     */
    function setApprovalForAll(address operator, bool approved) public virtual override {
        require(_msgSender() != operator, "ERC1155: setting approval status for self");

        _operatorApprovals[_msgSender()][operator] = approved;
        emit ApprovalForAll(_msgSender(), operator, approved);
    }

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

    /**
     * @dev See {IERC1155-safeTransferFrom}.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 id,
        uint256 amount,
        bytes memory data
    ) public virtual override {
        require(
            from == _msgSender() || isApprovedForAll(from, _msgSender()),
            "ERC1155: caller is not owner nor approved"
        );
        _safeTransferFrom(from, to, id, amount, data);
    }

    /**
     * @dev See {IERC1155-safeBatchTransferFrom}.
     */
    function safeBatchTransferFrom(
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) public virtual override {
        require(
            from == _msgSender() || isApprovedForAll(from, _msgSender()),
            "ERC1155: transfer caller is not owner nor approved"
        );
        _safeBatchTransferFrom(from, to, ids, amounts, data);
    }

    /**
     * @dev Transfers `amount` tokens of token type `id` from `from` to `to`.
     *
     * Emits a {TransferSingle} event.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - `from` must have a balance of tokens of type `id` of at least `amount`.
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the
     * acceptance magic value.
     */
    function _safeTransferFrom(
        address from,
        address to,
        uint256 id,
        uint256 amount,
        bytes memory data
    ) internal virtual {
        require(to != address(0), "ERC1155: transfer to the zero address");

        address operator = _msgSender();

        _beforeTokenTransfer(operator, from, to, _asSingletonArray(id), _asSingletonArray(amount), data);

        uint256 fromBalance = _balances[id][from];
        require(fromBalance >= amount, "ERC1155: insufficient balance for transfer");
        unchecked {
            _balances[id][from] = fromBalance - amount;
        }
        _balances[id][to] += amount;

        emit TransferSingle(operator, from, to, id, amount);

        _doSafeTransferAcceptanceCheck(operator, from, to, id, amount, data);
    }

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_safeTransferFrom}.
     *
     * Emits a {TransferBatch} event.
     *
     * Requirements:
     *
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the
     * acceptance magic value.
     */
    function _safeBatchTransferFrom(
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) internal virtual {
        require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch");
        require(to != address(0), "ERC1155: transfer to the zero address");

        address operator = _msgSender();

        _beforeTokenTransfer(operator, from, to, ids, amounts, data);

        for (uint256 i = 0; i < ids.length; ++i) {
            uint256 id = ids[i];
            uint256 amount = amounts[i];

            uint256 fromBalance = _balances[id][from];
            require(fromBalance >= amount, "ERC1155: insufficient balance for transfer");
            unchecked {
                _balances[id][from] = fromBalance - amount;
            }
            _balances[id][to] += amount;
        }

        emit TransferBatch(operator, from, to, ids, amounts);

        _doSafeBatchTransferAcceptanceCheck(operator, from, to, ids, amounts, data);
    }

    /**
     * @dev Sets a new URI for all token types, by relying on the token type ID
     * substitution mechanism
     * https://eips.ethereum.org/EIPS/eip-1155#metadata[defined in the EIP].
     *
     * By this mechanism, any occurrence of the `\{id\}` substring in either the
     * URI or any of the amounts in the JSON file at said URI will be replaced by
     * clients with the token type ID.
     *
     * For example, the `https://token-cdn-domain/\{id\}.json` URI would be
     * interpreted by clients as
     * `https://token-cdn-domain/000000000000000000000000000000000000000000000000000000000004cce0.json`
     * for token type ID 0x4cce0.
     *
     * See {uri}.
     *
     * Because these URIs cannot be meaningfully represented by the {URI} event,
     * this function emits no events.
     */
    function _setURI(string memory newuri) internal virtual {
        _uri = newuri;
    }

    /**
     * @dev Creates `amount` tokens of token type `id`, and assigns them to `account`.
     *
     * Emits a {TransferSingle} event.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     * - If `account` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the
     * acceptance magic value.
     */
    function _mint(
        address account,
        uint256 id,
        uint256 amount,
        bytes memory data
    ) internal virtual {
        require(account != address(0), "ERC1155: mint to the zero address");

        address operator = _msgSender();

        _beforeTokenTransfer(operator, address(0), account, _asSingletonArray(id), _asSingletonArray(amount), data);

        _balances[id][account] += amount;
        emit TransferSingle(operator, address(0), account, id, amount);

        _doSafeTransferAcceptanceCheck(operator, address(0), account, id, amount, data);
    }

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_mint}.
     *
     * Requirements:
     *
     * - `ids` and `amounts` must have the same length.
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the
     * acceptance magic value.
     */
    function _mintBatch(
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) internal virtual {
        require(to != address(0), "ERC1155: mint to the zero address");
        require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch");

        address operator = _msgSender();

        _beforeTokenTransfer(operator, address(0), to, ids, amounts, data);

        for (uint256 i = 0; i < ids.length; i++) {
            _balances[ids[i]][to] += amounts[i];
        }

        emit TransferBatch(operator, address(0), to, ids, amounts);

        _doSafeBatchTransferAcceptanceCheck(operator, address(0), to, ids, amounts, data);
    }

    /**
     * @dev Destroys `amount` tokens of token type `id` from `account`
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     * - `account` must have at least `amount` tokens of token type `id`.
     */
    function _burn(
        address account,
        uint256 id,
        uint256 amount
    ) internal virtual {
        require(account != address(0), "ERC1155: burn from the zero address");

        address operator = _msgSender();

        _beforeTokenTransfer(operator, account, address(0), _asSingletonArray(id), _asSingletonArray(amount), "");

        uint256 accountBalance = _balances[id][account];
        require(accountBalance >= amount, "ERC1155: burn amount exceeds balance");
        unchecked {
            _balances[id][account] = accountBalance - amount;
        }

        emit TransferSingle(operator, account, address(0), id, amount);
    }

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_burn}.
     *
     * Requirements:
     *
     * - `ids` and `amounts` must have the same length.
     */
    function _burnBatch(
        address account,
        uint256[] memory ids,
        uint256[] memory amounts
    ) internal virtual {
        require(account != address(0), "ERC1155: burn from the zero address");
        require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch");

        address operator = _msgSender();

        _beforeTokenTransfer(operator, account, address(0), ids, amounts, "");

        for (uint256 i = 0; i < ids.length; i++) {
            uint256 id = ids[i];
            uint256 amount = amounts[i];

            uint256 accountBalance = _balances[id][account];
            require(accountBalance >= amount, "ERC1155: burn amount exceeds balance");
            unchecked {
                _balances[id][account] = accountBalance - amount;
            }
        }

        emit TransferBatch(operator, account, address(0), ids, amounts);
    }

    /**
     * @dev Hook that is called before any token transfer. This includes minting
     * and burning, as well as batched variants.
     *
     * The same hook is called on both single and batched variants. For single
     * transfers, the length of the `id` and `amount` arrays will be 1.
     *
     * Calling conditions (for each `id` and `amount` pair):
     *
     * - When `from` and `to` are both non-zero, `amount` of ``from``'s tokens
     * of token type `id` will be  transferred to `to`.
     * - When `from` is zero, `amount` tokens of token type `id` will be minted
     * for `to`.
     * - when `to` is zero, `amount` of ``from``'s tokens of token type `id`
     * will be burned.
     * - `from` and `to` are never both zero.
     * - `ids` and `amounts` have the same, non-zero length.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _beforeTokenTransfer(
        address operator,
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) internal virtual {}

    function _doSafeTransferAcceptanceCheck(
        address operator,
        address from,
        address to,
        uint256 id,
        uint256 amount,
        bytes memory data
    ) private {
        if (to.isContract()) {
            try IERC1155Receiver(to).onERC1155Received(operator, from, id, amount, data) returns (bytes4 response) {
                if (response != IERC1155Receiver(to).onERC1155Received.selector) {
                    revert("ERC1155: ERC1155Receiver rejected tokens");
                }
            } catch Error(string memory reason) {
                revert(reason);
            } catch {
                revert("ERC1155: transfer to non ERC1155Receiver implementer");
            }
        }
    }

    function _doSafeBatchTransferAcceptanceCheck(
        address operator,
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) private {
        if (to.isContract()) {
            try IERC1155Receiver(to).onERC1155BatchReceived(operator, from, ids, amounts, data) returns (
                bytes4 response
            ) {
                if (response != IERC1155Receiver(to).onERC1155BatchReceived.selector) {
                    revert("ERC1155: ERC1155Receiver rejected tokens");
                }
            } catch Error(string memory reason) {
                revert(reason);
            } catch {
                revert("ERC1155: transfer to non ERC1155Receiver implementer");
            }
        }
    }

    function _asSingletonArray(uint256 element) private pure returns (uint256[] memory) {
        uint256[] memory array = new uint256[](1);
        array[0] = element;

        return array;
    }
}

File 7 of 15 : Ownable.sol
// SPDX-License-Identifier: MIT

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() {
        _setOwner(_msgSender());
    }

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

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        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 {
        _setOwner(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");
        _setOwner(newOwner);
    }

    function _setOwner(address newOwner) private {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

File 8 of 15 : Pausable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../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 {
    /**
     * @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);

    bool private _paused;

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

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

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

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

    /**
     * @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 9 of 15 : ERC165.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "./IERC165.sol";

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

File 10 of 15 : Context.sol
// SPDX-License-Identifier: MIT

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 11 of 15 : Address.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize, which returns 0 for contracts in
        // construction, since the code is only stored at the end of the
        // constructor execution.

        uint256 size;
        assembly {
            size := extcodesize(account)
        }
        return size > 0;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

    function _verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) private pure returns (bytes memory) {
        if (success) {
            return returndata;
        } else {
            // Look for revert reason and bubble it up if present
            if (returndata.length > 0) {
                // The easiest way to bubble the revert reason is using memory via assembly

                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

File 12 of 15 : IERC1155MetadataURI.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../IERC1155.sol";

/**
 * @dev Interface of the optional ERC1155MetadataExtension interface, as defined
 * in the https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[EIP].
 *
 * _Available since v3.1._
 */
interface IERC1155MetadataURI is IERC1155 {
    /**
     * @dev Returns the URI for token type `id`.
     *
     * If the `\{id\}` substring is present in the URI, it must be replaced by
     * clients with the actual token type ID.
     */
    function uri(uint256 id) external view returns (string memory);
}

File 13 of 15 : IERC1155Receiver.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../../utils/introspection/IERC165.sol";

/**
 * @dev _Available since v3.1._
 */
interface IERC1155Receiver is IERC165 {
    /**
        @dev Handles the receipt of a single ERC1155 token type. This function is
        called at the end of a `safeTransferFrom` after the balance has been updated.
        To accept the transfer, this must return
        `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))`
        (i.e. 0xf23a6e61, or its own function selector).
        @param operator The address which initiated the transfer (i.e. msg.sender)
        @param from The address which previously owned the token
        @param id The ID of the token being transferred
        @param value The amount of tokens being transferred
        @param data Additional data with no specified format
        @return `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))` if transfer is allowed
    */
    function onERC1155Received(
        address operator,
        address from,
        uint256 id,
        uint256 value,
        bytes calldata data
    ) external returns (bytes4);

    /**
        @dev Handles the receipt of a multiple ERC1155 token types. This function
        is called at the end of a `safeBatchTransferFrom` after the balances have
        been updated. To accept the transfer(s), this must return
        `bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))`
        (i.e. 0xbc197c81, or its own function selector).
        @param operator The address which initiated the batch transfer (i.e. msg.sender)
        @param from The address which previously owned the token
        @param ids An array containing ids of each token being transferred (order and length must match values array)
        @param values An array containing amounts of each token being transferred (order and length must match ids array)
        @param data Additional data with no specified format
        @return `bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))` if transfer is allowed
    */
    function onERC1155BatchReceived(
        address operator,
        address from,
        uint256[] calldata ids,
        uint256[] calldata values,
        bytes calldata data
    ) external returns (bytes4);
}

File 14 of 15 : IERC1155.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../../utils/introspection/IERC165.sol";

/**
 * @dev Required interface of an ERC1155 compliant contract, as defined in the
 * https://eips.ethereum.org/EIPS/eip-1155[EIP].
 *
 * _Available since v3.1._
 */
interface IERC1155 is IERC165 {
    /**
     * @dev Emitted when `value` tokens of token type `id` are transferred from `from` to `to` by `operator`.
     */
    event TransferSingle(address indexed operator, address indexed from, address indexed to, uint256 id, uint256 value);

    /**
     * @dev Equivalent to multiple {TransferSingle} events, where `operator`, `from` and `to` are the same for all
     * transfers.
     */
    event TransferBatch(
        address indexed operator,
        address indexed from,
        address indexed to,
        uint256[] ids,
        uint256[] values
    );

    /**
     * @dev Emitted when `account` grants or revokes permission to `operator` to transfer their tokens, according to
     * `approved`.
     */
    event ApprovalForAll(address indexed account, address indexed operator, bool approved);

    /**
     * @dev Emitted when the URI for token type `id` changes to `value`, if it is a non-programmatic URI.
     *
     * If an {URI} event was emitted for `id`, the standard
     * https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[guarantees] that `value` will equal the value
     * returned by {IERC1155MetadataURI-uri}.
     */
    event URI(string value, uint256 indexed id);

    /**
     * @dev Returns the amount of tokens of token type `id` owned by `account`.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     */
    function balanceOf(address account, uint256 id) external view returns (uint256);

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {balanceOf}.
     *
     * Requirements:
     *
     * - `accounts` and `ids` must have the same length.
     */
    function balanceOfBatch(address[] calldata accounts, uint256[] calldata ids)
        external
        view
        returns (uint256[] memory);

    /**
     * @dev Grants or revokes permission to `operator` to transfer the caller's tokens, according to `approved`,
     *
     * Emits an {ApprovalForAll} event.
     *
     * Requirements:
     *
     * - `operator` cannot be the caller.
     */
    function setApprovalForAll(address operator, bool approved) external;

    /**
     * @dev Returns true if `operator` is approved to transfer ``account``'s tokens.
     *
     * See {setApprovalForAll}.
     */
    function isApprovedForAll(address account, address operator) external view returns (bool);

    /**
     * @dev Transfers `amount` tokens of token type `id` from `from` to `to`.
     *
     * Emits a {TransferSingle} event.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - If the caller is not `from`, it must be have been approved to spend ``from``'s tokens via {setApprovalForAll}.
     * - `from` must have a balance of tokens of type `id` of at least `amount`.
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the
     * acceptance magic value.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 id,
        uint256 amount,
        bytes calldata data
    ) external;

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {safeTransferFrom}.
     *
     * Emits a {TransferBatch} event.
     *
     * Requirements:
     *
     * - `ids` and `amounts` must have the same length.
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the
     * acceptance magic value.
     */
    function safeBatchTransferFrom(
        address from,
        address to,
        uint256[] calldata ids,
        uint256[] calldata amounts,
        bytes calldata data
    ) external;
}

File 15 of 15 : IERC165.sol
// SPDX-License-Identifier: MIT

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

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","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":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"PaymentReleased","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"indexed":false,"internalType":"uint256[]","name":"values","type":"uint256[]"}],"name":"TransferBatch","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"id","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"TransferSingle","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"value","type":"string"},{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"}],"name":"URI","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"_by","type":"address"},{"indexed":false,"internalType":"uint256","name":"price","type":"uint256"}],"name":"priceChange","type":"event"},{"inputs":[],"name":"attention2476Contract","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"accounts","type":"address[]"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"}],"name":"balanceOfBatch","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"values","type":"uint256[]"}],"name":"burnBatch","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"exists","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"flipSaleState","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"join2476","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"numberOfTokens","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"pure","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":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeBatchTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"saleIsActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"contractAddress","type":"address"}],"name":"setAttentionContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"price","type":"uint256"}],"name":"setPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"newuri","type":"string"}],"name":"setURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"tokenPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","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":"uint256","name":"","type":"uint256"}],"name":"uri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

6080604052670de0b6b3a76400006005553480156200001d57600080fd5b506040518060600160405280603581526020016200304e6035913962000043816200009e565b506200004f33620000b7565b6004805460ff60a01b19169055604080516020810190915260008152620000939073f40fd88ac59a206d009a07f8c09828a01e2acc0d906109ac9060019062000109565b600160065562000869565b8051620000b390600290602084019062000583565b5050565b600480546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b62000122848484846200012860201b620010701760201c565b50505050565b62000141848484846200016c60201b620010a51760201c565b600083815260036020526040812080548492906200016190849062000629565b909155505050505050565b6001600160a01b038416620001d25760405162461bcd60e51b815260206004820152602160248201527f455243313135353a206d696e7420746f20746865207a65726f206164647265736044820152607360f81b60648201526084015b60405180910390fd5b33620001f881600087620001e68862000293565b620001f18862000293565b87620002e1565b6000848152602081815260408083206001600160a01b0389168452909152812080548592906200022a90849062000629565b909155505060408051858152602081018590526001600160a01b0380881692600092918516917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a46200028c8160008787878762000304565b5050505050565b60408051600180825281830190925260609160009190602080830190803683370190505090508281600081518110620002d057620002d062000650565b602090810291909101015292915050565b620002fc868686868686620004ea60201b620011b51760201c565b505050505050565b62000323846001600160a01b03166200057d60201b6200122c1760201c565b15620002fc5760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e61906200035f9089908990889088908890600401620006b6565b602060405180830381600087803b1580156200037a57600080fd5b505af1925050508015620003ad575060408051601f3d908101601f19168201909252620003aa91810190620006fd565b60015b6200046e57620003bc62000730565b806308c379a01415620003fd5750620003d462000788565b80620003e15750620003ff565b8060405162461bcd60e51b8152600401620001c9919062000817565b505b60405162461bcd60e51b815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e204552433131353560448201527f526563656976657220696d706c656d656e7465720000000000000000000000006064820152608401620001c9565b6001600160e01b0319811663f23a6e6160e01b14620004e15760405162461bcd60e51b815260206004820152602860248201527f455243313135353a204552433131353552656365697665722072656a656374656044820152676420746f6b656e7360c01b6064820152608401620001c9565b50505050505050565b62000505868686868686620002fc60201b620012241760201c565b62000519600454600160a01b900460ff1690565b15620002fc5760405162461bcd60e51b815260206004820152602c60248201527f455243313135355061757361626c653a20746f6b656e207472616e736665722060448201526b1dda1a5b19481c185d5cd95960a21b6064820152608401620001c9565b3b151590565b82805462000591906200082c565b90600052602060002090601f016020900481019282620005b5576000855562000600565b82601f10620005d057805160ff191683800117855562000600565b8280016001018555821562000600579182015b8281111562000600578251825591602001919060010190620005e3565b506200060e92915062000612565b5090565b5b808211156200060e576000815560010162000613565b600082198211156200064b57634e487b7160e01b600052601160045260246000fd5b500190565b634e487b7160e01b600052603260045260246000fd5b6000815180845260005b818110156200068e5760208185018101518683018201520162000670565b81811115620006a1576000602083870101525b50601f01601f19169290920160200192915050565b6001600160a01b03868116825285166020820152604081018490526060810183905260a060808201819052600090620006f29083018462000666565b979650505050505050565b6000602082840312156200071057600080fd5b81516001600160e01b0319811681146200072957600080fd5b9392505050565b600060033d11156200074a5760046000803e5060005160e01c5b90565b601f8201601f191681016001600160401b03811182821017156200078157634e487b7160e01b600052604160045260246000fd5b6040525050565b600060443d1015620007975790565b6040516003193d81016004833e81513d6001600160401b038083116024840183101715620007c757505050505090565b8285019150815181811115620007e05750505050505090565b843d8701016020828501011115620007fb5750505050505090565b6200080c602082860101876200074d565b509095945050505050565b60208152600062000729602083018462000666565b600181811c908216806200084157607f821691505b602082108114156200086357634e487b7160e01b600052602260045260246000fd5b50919050565b6127d580620008796000396000f3fe6080604052600436106101cc5760003560e01c8063715018a6116100f7578063a0712d6811610095578063eb8d244411610064578063eb8d24441461056d578063f242432a1461058e578063f2fde38b146105ae578063f5298aca146105ce57600080fd5b8063a0712d68146104c4578063a22cb465146104d7578063bd85b039146104f7578063e985e9c51461052457600080fd5b80638da5cb5b116100d15780638da5cb5b1461043957806391b7f5ed1461045757806395d89b41146104775780639f9cdacf146104a457600080fd5b8063715018a6146103f95780637ff9b5961461040e5780638456cb591461042457600080fd5b806334918dfd1161016f5780634f558e791161013e5780634f558e79146103535780635299fbc1146103825780635c975abb146103ba5780636b20c454146103d957600080fd5b806334918dfd146102e75780633ccfd60b146102fc5780633f4ba83a146103115780634e1273f41461032657600080fd5b80630669b1e5116101ab5780630669b1e51461025657806306fdde031461026b5780630e89341c146102a75780632eb2c2d6146102c757600080fd5b8062fdd58e146101d157806301ffc9a71461020457806302fe530514610234575b600080fd5b3480156101dd57600080fd5b506101f16101ec366004611d41565b6105ee565b6040519081526020015b60405180910390f35b34801561021057600080fd5b5061022461021f366004611d81565b610685565b60405190151581526020016101fb565b34801561024057600080fd5b5061025461024f366004611e3f565b6106d7565b005b34801561026257600080fd5b5061025461070d565b34801561027757600080fd5b5060408051808201909152600a8152692a37b5b2b710191a1b9b60b11b60208201525b6040516101fb9190611edd565b3480156102b357600080fd5b5061029a6102c2366004611ef0565b610726565b3480156102d357600080fd5b506102546102e2366004611fbe565b6107ba565b3480156102f357600080fd5b50610254610851565b34801561030857600080fd5b5061025461089c565b34801561031d57600080fd5b50610254610959565b34801561033257600080fd5b50610346610341366004612068565b61098b565b6040516101fb919061216e565b34801561035f57600080fd5b5061022461036e366004611ef0565b600090815260036020526040902054151590565b34801561038e57600080fd5b506007546103a2906001600160a01b031681565b6040516001600160a01b0390911681526020016101fb565b3480156103c657600080fd5b50600454600160a01b900460ff16610224565b3480156103e557600080fd5b506102546103f4366004612181565b610ab5565b34801561040557600080fd5b50610254610afd565b34801561041a57600080fd5b506101f160055481565b34801561043057600080fd5b50610254610b31565b34801561044557600080fd5b506004546001600160a01b03166103a2565b34801561046357600080fd5b50610254610472366004611ef0565b610b84565b34801561048357600080fd5b50604080518082019091526004815263191a1b9b60e11b602082015261029a565b3480156104b057600080fd5b506102546104bf3660046121f5565b610be9565b6102546104d2366004611ef0565b610c35565b3480156104e357600080fd5b506102546104f2366004612210565b610e79565b34801561050357600080fd5b506101f1610512366004611ef0565b60009081526003602052604090205490565b34801561053057600080fd5b5061022461053f36600461224c565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205460ff1690565b34801561057957600080fd5b5060045461022490600160a81b900460ff1681565b34801561059a57600080fd5b506102546105a936600461227f565b610f50565b3480156105ba57600080fd5b506102546105c93660046121f5565b610f95565b3480156105da57600080fd5b506102546105e93660046122e4565b61102d565b60006001600160a01b03831661065f5760405162461bcd60e51b815260206004820152602b60248201527f455243313135353a2062616c616e636520717565727920666f7220746865207a60448201526a65726f206164647265737360a81b60648201526084015b60405180910390fd5b506000908152602081815260408083206001600160a01b03949094168352929052205490565b60006001600160e01b03198216636cdb3d1360e11b14806106b657506001600160e01b031982166303a24d0760e21b145b806106d157506301ffc9a760e01b6001600160e01b03198316145b92915050565b6004546001600160a01b031633146107015760405162461bcd60e51b815260040161065690612317565b61070a81611232565b50565b600754610724906001600160a01b03166001610e79565b565b6060600280546107359061234c565b80601f01602080910402602001604051908101604052809291908181526020018280546107619061234c565b80156107ae5780601f10610783576101008083540402835291602001916107ae565b820191906000526020600020905b81548152906001019060200180831161079157829003601f168201915b50505050509050919050565b6001600160a01b0385163314806107d657506107d6853361053f565b61083d5760405162461bcd60e51b815260206004820152603260248201527f455243313135353a207472616e736665722063616c6c6572206973206e6f74206044820152711bdddb995c881b9bdc88185c1c1c9bdd995960721b6064820152608401610656565b61084a8585858585611249565b5050505050565b6004546001600160a01b0316331461087b5760405162461bcd60e51b815260040161065690612317565b6004805460ff60a81b198116600160a81b9182900460ff1615909102179055565b6004546001600160a01b031633146108c65760405162461bcd60e51b815260040161065690612317565b6040514790730b8f4c4e7626a91460dac057eb43e0de59d5b44f9082156108fc029083906000818181858888f1935050505061090157600080fd5b7fdf20fd1e76bc69d672e4814fafb2c449bba3a5369d8359adf9e05e6fde87b0566109346004546001600160a01b031690565b604080516001600160a01b03909216825260208201849052015b60405180910390a150565b6004546001600160a01b031633146109835760405162461bcd60e51b815260040161065690612317565b6107246113eb565b606081518351146109f05760405162461bcd60e51b815260206004820152602960248201527f455243313135353a206163636f756e747320616e6420696473206c656e677468604482015268040dad2e6dac2e8c6d60bb1b6064820152608401610656565b6000835167ffffffffffffffff811115610a0c57610a0c611d9e565b604051908082528060200260200182016040528015610a35578160200160208202803683370190505b50905060005b8451811015610aad57610a80858281518110610a5957610a59612387565b6020026020010151858381518110610a7357610a73612387565b60200260200101516105ee565b828281518110610a9257610a92612387565b6020908102919091010152610aa6816123b3565b9050610a3b565b509392505050565b6001600160a01b038316331480610ad15750610ad1833361053f565b610aed5760405162461bcd60e51b8152600401610656906123ce565b610af8838383611488565b505050565b6004546001600160a01b03163314610b275760405162461bcd60e51b815260040161065690612317565b6107246000611493565b6004546001600160a01b03163314610b5b5760405162461bcd60e51b815260040161065690612317565b610b636114e5565b600454600160a81b900460ff1615610724576004805460ff60a81b19169055565b6004546001600160a01b03163314610bae5760405162461bcd60e51b815260040161065690612317565b600581905560408051338152602081018390527f2a270679203ad5c6be2af882c755f81ff060752614a378c1804df57dd7d2add0910161094e565b6004546001600160a01b03163314610c135760405162461bcd60e51b815260040161065690612317565b600780546001600160a01b0319166001600160a01b0392909216919091179055565b600454600160a81b900460ff16610ca05760405162461bcd60e51b815260206004820152602960248201527f323437363a2053616c65206d7573742062652061637469766520746f206d696e6044820152687420546f6b656e732160b81b6064820152608401610656565b61271081600654610cb19190612417565b1115610d195760405162461bcd60e51b815260206004820152603160248201527f323437363a20507572636861736520776f756c6420657863656564206d617820604482015270737570706c79206f6620746f6b656e732160781b6064820152608401610656565b600454600160a01b900460ff1615610d735760405162461bcd60e51b815260206004820152601760248201527f323437363a204d696e74696e67206973207061757365640000000000000000006044820152606401610656565b6005543490610d82908361156d565b1115610dde5760405162461bcd60e51b815260206004820152602560248201527f323437363a2045746865722076616c75652073656e74206973206e6f7420636f6044820152641c9c9958dd60da1b6064820152608401610656565b6014811115610e435760405162461bcd60e51b815260206004820152602b60248201527f323437363a20596f752063616e206f6e6c79206d696e7420323020746f6b656e60448201526a7320617420612074696d6560a81b6064820152608401610656565b8060066000828254610e559190612417565b9250508190555061070a336109ac8360405180602001604052806000815250611580565b336001600160a01b0383161415610ee45760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2073657474696e6720617070726f76616c20737461747573604482015268103337b91039b2b63360b91b6064820152608401610656565b3360008181526001602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6001600160a01b038516331480610f6c5750610f6c853361053f565b610f885760405162461bcd60e51b8152600401610656906123ce565b61084a8585858585611592565b6004546001600160a01b03163314610fbf5760405162461bcd60e51b815260040161065690612317565b6001600160a01b0381166110245760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610656565b61070a81611493565b6001600160a01b0383163314806110495750611049833361053f565b6110655760405162461bcd60e51b8152600401610656906123ce565b610af88383836116af565b61107c848484846110a5565b6000838152600360205260408120805484929061109a908490612417565b909155505050505050565b6001600160a01b0384166111055760405162461bcd60e51b815260206004820152602160248201527f455243313135353a206d696e7420746f20746865207a65726f206164647265736044820152607360f81b6064820152608401610656565b3361112581600087611116886116ba565b61111f886116ba565b87611705565b6000848152602081815260408083206001600160a01b038916845290915281208054859290611155908490612417565b909155505060408051858152602081018590526001600160a01b0380881692600092918516917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a461084a81600087878787611713565b600454600160a01b900460ff16156112245760405162461bcd60e51b815260206004820152602c60248201527f455243313135355061757361626c653a20746f6b656e207472616e736665722060448201526b1dda1a5b19481c185d5cd95960a21b6064820152608401610656565b505050505050565b3b151590565b8051611245906002906020840190611c8c565b5050565b815183511461126a5760405162461bcd60e51b81526004016106569061242f565b6001600160a01b0384166112905760405162461bcd60e51b815260040161065690612477565b3361129f818787878787611705565b60005b84518110156113855760008582815181106112bf576112bf612387565b6020026020010151905060008583815181106112dd576112dd612387565b602090810291909101810151600084815280835260408082206001600160a01b038e16835290935291909120549091508181101561132d5760405162461bcd60e51b8152600401610656906124bc565b6000838152602081815260408083206001600160a01b038e8116855292528083208585039055908b1682528120805484929061136a908490612417565b925050819055505050508061137e906123b3565b90506112a2565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb87876040516113d5929190612506565b60405180910390a461122481878787878761187e565b600454600160a01b900460ff1661143b5760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b6044820152606401610656565b6004805460ff60a01b191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b610af8838383611948565b600480546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600454600160a01b900460ff16156115325760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610656565b6004805460ff60a01b1916600160a01b1790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a25861146b3390565b60006115798284612534565b9392505050565b61158c84848484611070565b50505050565b6001600160a01b0384166115b85760405162461bcd60e51b815260040161065690612477565b336115c8818787611116886116ba565b6000848152602081815260408083206001600160a01b038a168452909152902054838110156116095760405162461bcd60e51b8152600401610656906124bc565b6000858152602081815260408083206001600160a01b038b8116855292528083208785039055908816825281208054869290611646908490612417565b909155505060408051868152602081018690526001600160a01b03808916928a821692918616917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a46116a6828888888888611713565b50505050505050565b610af88383836119ca565b604080516001808252818301909252606091600091906020808301908036833701905050905082816000815181106116f4576116f4612387565b602090810291909101015292915050565b6112248686868686866111b5565b6001600160a01b0384163b156112245760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e61906117579089908990889088908890600401612553565b602060405180830381600087803b15801561177157600080fd5b505af19250505080156117a1575060408051601f3d908101601f1916820190925261179e91810190612598565b60015b61184e576117ad6125b5565b806308c379a014156117e757506117c26125d1565b806117cd57506117e9565b8060405162461bcd60e51b81526004016106569190611edd565b505b60405162461bcd60e51b815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e20455243313135356044820152732932b1b2b4bb32b91034b6b83632b6b2b73a32b960611b6064820152608401610656565b6001600160e01b0319811663f23a6e6160e01b146116a65760405162461bcd60e51b81526004016106569061265b565b6001600160a01b0384163b156112245760405163bc197c8160e01b81526001600160a01b0385169063bc197c81906118c290899089908890889088906004016126a3565b602060405180830381600087803b1580156118dc57600080fd5b505af192505050801561190c575060408051601f3d908101601f1916820190925261190991810190612598565b60015b611918576117ad6125b5565b6001600160e01b0319811663bc197c8160e01b146116a65760405162461bcd60e51b81526004016106569061265b565b6119538383836119fd565b60005b825181101561158c5781818151811061197157611971612387565b60200260200101516003600085848151811061198f5761198f612387565b6020026020010151815260200190815260200160002060008282546119b49190612701565b909155506119c39050816123b3565b9050611956565b6119d5838383611b8b565b600082815260036020526040812080548392906119f3908490612701565b9091555050505050565b6001600160a01b038316611a235760405162461bcd60e51b815260040161065690612718565b8051825114611a445760405162461bcd60e51b81526004016106569061242f565b6000339050611a6781856000868660405180602001604052806000815250611705565b60005b8351811015611b2c576000848281518110611a8757611a87612387565b602002602001015190506000848381518110611aa557611aa5612387565b602090810291909101810151600084815280835260408082206001600160a01b038c168352909352919091205490915081811015611af55760405162461bcd60e51b81526004016106569061275b565b6000928352602083815260408085206001600160a01b038b1686529091529092209103905580611b24816123b3565b915050611a6a565b5060006001600160a01b0316846001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8686604051611b7d929190612506565b60405180910390a450505050565b6001600160a01b038316611bb15760405162461bcd60e51b815260040161065690612718565b33611be081856000611bc2876116ba565b611bcb876116ba565b60405180602001604052806000815250611705565b6000838152602081815260408083206001600160a01b038816845290915290205482811015611c215760405162461bcd60e51b81526004016106569061275b565b6000848152602081815260408083206001600160a01b03898116808652918452828520888703905582518981529384018890529092908616917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a45050505050565b828054611c989061234c565b90600052602060002090601f016020900481019282611cba5760008555611d00565b82601f10611cd357805160ff1916838001178555611d00565b82800160010185558215611d00579182015b82811115611d00578251825591602001919060010190611ce5565b50611d0c929150611d10565b5090565b5b80821115611d0c5760008155600101611d11565b80356001600160a01b0381168114611d3c57600080fd5b919050565b60008060408385031215611d5457600080fd5b611d5d83611d25565b946020939093013593505050565b6001600160e01b03198116811461070a57600080fd5b600060208284031215611d9357600080fd5b813561157981611d6b565b634e487b7160e01b600052604160045260246000fd5b601f8201601f1916810167ffffffffffffffff81118282101715611dda57611dda611d9e565b6040525050565b600067ffffffffffffffff831115611dfb57611dfb611d9e565b604051611e12601f8501601f191660200182611db4565b809150838152848484011115611e2757600080fd5b83836020830137600060208583010152509392505050565b600060208284031215611e5157600080fd5b813567ffffffffffffffff811115611e6857600080fd5b8201601f81018413611e7957600080fd5b611e8884823560208401611de1565b949350505050565b6000815180845260005b81811015611eb657602081850181015186830182015201611e9a565b81811115611ec8576000602083870101525b50601f01601f19169290920160200192915050565b6020815260006115796020830184611e90565b600060208284031215611f0257600080fd5b5035919050565b600067ffffffffffffffff821115611f2357611f23611d9e565b5060051b60200190565b600082601f830112611f3e57600080fd5b81356020611f4b82611f09565b604051611f588282611db4565b83815260059390931b8501820192828101915086841115611f7857600080fd5b8286015b84811015611f935780358352918301918301611f7c565b509695505050505050565b600082601f830112611faf57600080fd5b61157983833560208501611de1565b600080600080600060a08688031215611fd657600080fd5b611fdf86611d25565b9450611fed60208701611d25565b9350604086013567ffffffffffffffff8082111561200a57600080fd5b61201689838a01611f2d565b9450606088013591508082111561202c57600080fd5b61203889838a01611f2d565b9350608088013591508082111561204e57600080fd5b5061205b88828901611f9e565b9150509295509295909350565b6000806040838503121561207b57600080fd5b823567ffffffffffffffff8082111561209357600080fd5b818501915085601f8301126120a757600080fd5b813560206120b482611f09565b6040516120c18282611db4565b83815260059390931b85018201928281019150898411156120e157600080fd5b948201945b83861015612106576120f786611d25565b825294820194908201906120e6565b9650508601359250508082111561211c57600080fd5b5061212985828601611f2d565b9150509250929050565b600081518084526020808501945080840160005b8381101561216357815187529582019590820190600101612147565b509495945050505050565b6020815260006115796020830184612133565b60008060006060848603121561219657600080fd5b61219f84611d25565b9250602084013567ffffffffffffffff808211156121bc57600080fd5b6121c887838801611f2d565b935060408601359150808211156121de57600080fd5b506121eb86828701611f2d565b9150509250925092565b60006020828403121561220757600080fd5b61157982611d25565b6000806040838503121561222357600080fd5b61222c83611d25565b91506020830135801515811461224157600080fd5b809150509250929050565b6000806040838503121561225f57600080fd5b61226883611d25565b915061227660208401611d25565b90509250929050565b600080600080600060a0868803121561229757600080fd5b6122a086611d25565b94506122ae60208701611d25565b93506040860135925060608601359150608086013567ffffffffffffffff8111156122d857600080fd5b61205b88828901611f9e565b6000806000606084860312156122f957600080fd5b61230284611d25565b95602085013595506040909401359392505050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b600181811c9082168061236057607f821691505b6020821081141561238157634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b60006000198214156123c7576123c761239d565b5060010190565b60208082526029908201527f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260408201526808185c1c1c9bdd995960ba1b606082015260800190565b6000821982111561242a5761242a61239d565b500190565b60208082526028908201527f455243313135353a2069647320616e6420616d6f756e7473206c656e677468206040820152670dad2e6dac2e8c6d60c31b606082015260800190565b60208082526025908201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604082015264647265737360d81b606082015260800190565b6020808252602a908201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60408201526939103a3930b739b332b960b11b606082015260800190565b6040815260006125196040830185612133565b828103602084015261252b8185612133565b95945050505050565b600081600019048311821515161561254e5761254e61239d565b500290565b6001600160a01b03868116825285166020820152604081018490526060810183905260a06080820181905260009061258d90830184611e90565b979650505050505050565b6000602082840312156125aa57600080fd5b815161157981611d6b565b600060033d11156125ce5760046000803e5060005160e01c5b90565b600060443d10156125df5790565b6040516003193d81016004833e81513d67ffffffffffffffff816024840111818411171561260f57505050505090565b82850191508151818111156126275750505050505090565b843d87010160208285010111156126415750505050505090565b61265060208286010187611db4565b509095945050505050565b60208082526028908201527f455243313135353a204552433131353552656365697665722072656a656374656040820152676420746f6b656e7360c01b606082015260800190565b6001600160a01b0386811682528516602082015260a0604082018190526000906126cf90830186612133565b82810360608401526126e18186612133565b905082810360808401526126f58185611e90565b98975050505050505050565b6000828210156127135761271361239d565b500390565b60208082526023908201527f455243313135353a206275726e2066726f6d20746865207a65726f206164647260408201526265737360e81b606082015260800190565b60208082526024908201527f455243313135353a206275726e20616d6f756e7420657863656564732062616c604082015263616e636560e01b60608201526080019056fea2646970667358221220fadac0908c8d1e2ed21aacd776aa784703fd10e5c6c84cb3132e405fae49dfe164736f6c63430008090033697066733a2f2f516d5275535952363574634d33764735546a796933327657334343746858394d4e775661566f6f5a354b4e6f654a

Deployed Bytecode

0x6080604052600436106101cc5760003560e01c8063715018a6116100f7578063a0712d6811610095578063eb8d244411610064578063eb8d24441461056d578063f242432a1461058e578063f2fde38b146105ae578063f5298aca146105ce57600080fd5b8063a0712d68146104c4578063a22cb465146104d7578063bd85b039146104f7578063e985e9c51461052457600080fd5b80638da5cb5b116100d15780638da5cb5b1461043957806391b7f5ed1461045757806395d89b41146104775780639f9cdacf146104a457600080fd5b8063715018a6146103f95780637ff9b5961461040e5780638456cb591461042457600080fd5b806334918dfd1161016f5780634f558e791161013e5780634f558e79146103535780635299fbc1146103825780635c975abb146103ba5780636b20c454146103d957600080fd5b806334918dfd146102e75780633ccfd60b146102fc5780633f4ba83a146103115780634e1273f41461032657600080fd5b80630669b1e5116101ab5780630669b1e51461025657806306fdde031461026b5780630e89341c146102a75780632eb2c2d6146102c757600080fd5b8062fdd58e146101d157806301ffc9a71461020457806302fe530514610234575b600080fd5b3480156101dd57600080fd5b506101f16101ec366004611d41565b6105ee565b6040519081526020015b60405180910390f35b34801561021057600080fd5b5061022461021f366004611d81565b610685565b60405190151581526020016101fb565b34801561024057600080fd5b5061025461024f366004611e3f565b6106d7565b005b34801561026257600080fd5b5061025461070d565b34801561027757600080fd5b5060408051808201909152600a8152692a37b5b2b710191a1b9b60b11b60208201525b6040516101fb9190611edd565b3480156102b357600080fd5b5061029a6102c2366004611ef0565b610726565b3480156102d357600080fd5b506102546102e2366004611fbe565b6107ba565b3480156102f357600080fd5b50610254610851565b34801561030857600080fd5b5061025461089c565b34801561031d57600080fd5b50610254610959565b34801561033257600080fd5b50610346610341366004612068565b61098b565b6040516101fb919061216e565b34801561035f57600080fd5b5061022461036e366004611ef0565b600090815260036020526040902054151590565b34801561038e57600080fd5b506007546103a2906001600160a01b031681565b6040516001600160a01b0390911681526020016101fb565b3480156103c657600080fd5b50600454600160a01b900460ff16610224565b3480156103e557600080fd5b506102546103f4366004612181565b610ab5565b34801561040557600080fd5b50610254610afd565b34801561041a57600080fd5b506101f160055481565b34801561043057600080fd5b50610254610b31565b34801561044557600080fd5b506004546001600160a01b03166103a2565b34801561046357600080fd5b50610254610472366004611ef0565b610b84565b34801561048357600080fd5b50604080518082019091526004815263191a1b9b60e11b602082015261029a565b3480156104b057600080fd5b506102546104bf3660046121f5565b610be9565b6102546104d2366004611ef0565b610c35565b3480156104e357600080fd5b506102546104f2366004612210565b610e79565b34801561050357600080fd5b506101f1610512366004611ef0565b60009081526003602052604090205490565b34801561053057600080fd5b5061022461053f36600461224c565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205460ff1690565b34801561057957600080fd5b5060045461022490600160a81b900460ff1681565b34801561059a57600080fd5b506102546105a936600461227f565b610f50565b3480156105ba57600080fd5b506102546105c93660046121f5565b610f95565b3480156105da57600080fd5b506102546105e93660046122e4565b61102d565b60006001600160a01b03831661065f5760405162461bcd60e51b815260206004820152602b60248201527f455243313135353a2062616c616e636520717565727920666f7220746865207a60448201526a65726f206164647265737360a81b60648201526084015b60405180910390fd5b506000908152602081815260408083206001600160a01b03949094168352929052205490565b60006001600160e01b03198216636cdb3d1360e11b14806106b657506001600160e01b031982166303a24d0760e21b145b806106d157506301ffc9a760e01b6001600160e01b03198316145b92915050565b6004546001600160a01b031633146107015760405162461bcd60e51b815260040161065690612317565b61070a81611232565b50565b600754610724906001600160a01b03166001610e79565b565b6060600280546107359061234c565b80601f01602080910402602001604051908101604052809291908181526020018280546107619061234c565b80156107ae5780601f10610783576101008083540402835291602001916107ae565b820191906000526020600020905b81548152906001019060200180831161079157829003601f168201915b50505050509050919050565b6001600160a01b0385163314806107d657506107d6853361053f565b61083d5760405162461bcd60e51b815260206004820152603260248201527f455243313135353a207472616e736665722063616c6c6572206973206e6f74206044820152711bdddb995c881b9bdc88185c1c1c9bdd995960721b6064820152608401610656565b61084a8585858585611249565b5050505050565b6004546001600160a01b0316331461087b5760405162461bcd60e51b815260040161065690612317565b6004805460ff60a81b198116600160a81b9182900460ff1615909102179055565b6004546001600160a01b031633146108c65760405162461bcd60e51b815260040161065690612317565b6040514790730b8f4c4e7626a91460dac057eb43e0de59d5b44f9082156108fc029083906000818181858888f1935050505061090157600080fd5b7fdf20fd1e76bc69d672e4814fafb2c449bba3a5369d8359adf9e05e6fde87b0566109346004546001600160a01b031690565b604080516001600160a01b03909216825260208201849052015b60405180910390a150565b6004546001600160a01b031633146109835760405162461bcd60e51b815260040161065690612317565b6107246113eb565b606081518351146109f05760405162461bcd60e51b815260206004820152602960248201527f455243313135353a206163636f756e747320616e6420696473206c656e677468604482015268040dad2e6dac2e8c6d60bb1b6064820152608401610656565b6000835167ffffffffffffffff811115610a0c57610a0c611d9e565b604051908082528060200260200182016040528015610a35578160200160208202803683370190505b50905060005b8451811015610aad57610a80858281518110610a5957610a59612387565b6020026020010151858381518110610a7357610a73612387565b60200260200101516105ee565b828281518110610a9257610a92612387565b6020908102919091010152610aa6816123b3565b9050610a3b565b509392505050565b6001600160a01b038316331480610ad15750610ad1833361053f565b610aed5760405162461bcd60e51b8152600401610656906123ce565b610af8838383611488565b505050565b6004546001600160a01b03163314610b275760405162461bcd60e51b815260040161065690612317565b6107246000611493565b6004546001600160a01b03163314610b5b5760405162461bcd60e51b815260040161065690612317565b610b636114e5565b600454600160a81b900460ff1615610724576004805460ff60a81b19169055565b6004546001600160a01b03163314610bae5760405162461bcd60e51b815260040161065690612317565b600581905560408051338152602081018390527f2a270679203ad5c6be2af882c755f81ff060752614a378c1804df57dd7d2add0910161094e565b6004546001600160a01b03163314610c135760405162461bcd60e51b815260040161065690612317565b600780546001600160a01b0319166001600160a01b0392909216919091179055565b600454600160a81b900460ff16610ca05760405162461bcd60e51b815260206004820152602960248201527f323437363a2053616c65206d7573742062652061637469766520746f206d696e6044820152687420546f6b656e732160b81b6064820152608401610656565b61271081600654610cb19190612417565b1115610d195760405162461bcd60e51b815260206004820152603160248201527f323437363a20507572636861736520776f756c6420657863656564206d617820604482015270737570706c79206f6620746f6b656e732160781b6064820152608401610656565b600454600160a01b900460ff1615610d735760405162461bcd60e51b815260206004820152601760248201527f323437363a204d696e74696e67206973207061757365640000000000000000006044820152606401610656565b6005543490610d82908361156d565b1115610dde5760405162461bcd60e51b815260206004820152602560248201527f323437363a2045746865722076616c75652073656e74206973206e6f7420636f6044820152641c9c9958dd60da1b6064820152608401610656565b6014811115610e435760405162461bcd60e51b815260206004820152602b60248201527f323437363a20596f752063616e206f6e6c79206d696e7420323020746f6b656e60448201526a7320617420612074696d6560a81b6064820152608401610656565b8060066000828254610e559190612417565b9250508190555061070a336109ac8360405180602001604052806000815250611580565b336001600160a01b0383161415610ee45760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2073657474696e6720617070726f76616c20737461747573604482015268103337b91039b2b63360b91b6064820152608401610656565b3360008181526001602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6001600160a01b038516331480610f6c5750610f6c853361053f565b610f885760405162461bcd60e51b8152600401610656906123ce565b61084a8585858585611592565b6004546001600160a01b03163314610fbf5760405162461bcd60e51b815260040161065690612317565b6001600160a01b0381166110245760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610656565b61070a81611493565b6001600160a01b0383163314806110495750611049833361053f565b6110655760405162461bcd60e51b8152600401610656906123ce565b610af88383836116af565b61107c848484846110a5565b6000838152600360205260408120805484929061109a908490612417565b909155505050505050565b6001600160a01b0384166111055760405162461bcd60e51b815260206004820152602160248201527f455243313135353a206d696e7420746f20746865207a65726f206164647265736044820152607360f81b6064820152608401610656565b3361112581600087611116886116ba565b61111f886116ba565b87611705565b6000848152602081815260408083206001600160a01b038916845290915281208054859290611155908490612417565b909155505060408051858152602081018590526001600160a01b0380881692600092918516917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a461084a81600087878787611713565b600454600160a01b900460ff16156112245760405162461bcd60e51b815260206004820152602c60248201527f455243313135355061757361626c653a20746f6b656e207472616e736665722060448201526b1dda1a5b19481c185d5cd95960a21b6064820152608401610656565b505050505050565b3b151590565b8051611245906002906020840190611c8c565b5050565b815183511461126a5760405162461bcd60e51b81526004016106569061242f565b6001600160a01b0384166112905760405162461bcd60e51b815260040161065690612477565b3361129f818787878787611705565b60005b84518110156113855760008582815181106112bf576112bf612387565b6020026020010151905060008583815181106112dd576112dd612387565b602090810291909101810151600084815280835260408082206001600160a01b038e16835290935291909120549091508181101561132d5760405162461bcd60e51b8152600401610656906124bc565b6000838152602081815260408083206001600160a01b038e8116855292528083208585039055908b1682528120805484929061136a908490612417565b925050819055505050508061137e906123b3565b90506112a2565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb87876040516113d5929190612506565b60405180910390a461122481878787878761187e565b600454600160a01b900460ff1661143b5760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b6044820152606401610656565b6004805460ff60a01b191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b610af8838383611948565b600480546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600454600160a01b900460ff16156115325760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610656565b6004805460ff60a01b1916600160a01b1790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a25861146b3390565b60006115798284612534565b9392505050565b61158c84848484611070565b50505050565b6001600160a01b0384166115b85760405162461bcd60e51b815260040161065690612477565b336115c8818787611116886116ba565b6000848152602081815260408083206001600160a01b038a168452909152902054838110156116095760405162461bcd60e51b8152600401610656906124bc565b6000858152602081815260408083206001600160a01b038b8116855292528083208785039055908816825281208054869290611646908490612417565b909155505060408051868152602081018690526001600160a01b03808916928a821692918616917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a46116a6828888888888611713565b50505050505050565b610af88383836119ca565b604080516001808252818301909252606091600091906020808301908036833701905050905082816000815181106116f4576116f4612387565b602090810291909101015292915050565b6112248686868686866111b5565b6001600160a01b0384163b156112245760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e61906117579089908990889088908890600401612553565b602060405180830381600087803b15801561177157600080fd5b505af19250505080156117a1575060408051601f3d908101601f1916820190925261179e91810190612598565b60015b61184e576117ad6125b5565b806308c379a014156117e757506117c26125d1565b806117cd57506117e9565b8060405162461bcd60e51b81526004016106569190611edd565b505b60405162461bcd60e51b815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e20455243313135356044820152732932b1b2b4bb32b91034b6b83632b6b2b73a32b960611b6064820152608401610656565b6001600160e01b0319811663f23a6e6160e01b146116a65760405162461bcd60e51b81526004016106569061265b565b6001600160a01b0384163b156112245760405163bc197c8160e01b81526001600160a01b0385169063bc197c81906118c290899089908890889088906004016126a3565b602060405180830381600087803b1580156118dc57600080fd5b505af192505050801561190c575060408051601f3d908101601f1916820190925261190991810190612598565b60015b611918576117ad6125b5565b6001600160e01b0319811663bc197c8160e01b146116a65760405162461bcd60e51b81526004016106569061265b565b6119538383836119fd565b60005b825181101561158c5781818151811061197157611971612387565b60200260200101516003600085848151811061198f5761198f612387565b6020026020010151815260200190815260200160002060008282546119b49190612701565b909155506119c39050816123b3565b9050611956565b6119d5838383611b8b565b600082815260036020526040812080548392906119f3908490612701565b9091555050505050565b6001600160a01b038316611a235760405162461bcd60e51b815260040161065690612718565b8051825114611a445760405162461bcd60e51b81526004016106569061242f565b6000339050611a6781856000868660405180602001604052806000815250611705565b60005b8351811015611b2c576000848281518110611a8757611a87612387565b602002602001015190506000848381518110611aa557611aa5612387565b602090810291909101810151600084815280835260408082206001600160a01b038c168352909352919091205490915081811015611af55760405162461bcd60e51b81526004016106569061275b565b6000928352602083815260408085206001600160a01b038b1686529091529092209103905580611b24816123b3565b915050611a6a565b5060006001600160a01b0316846001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8686604051611b7d929190612506565b60405180910390a450505050565b6001600160a01b038316611bb15760405162461bcd60e51b815260040161065690612718565b33611be081856000611bc2876116ba565b611bcb876116ba565b60405180602001604052806000815250611705565b6000838152602081815260408083206001600160a01b038816845290915290205482811015611c215760405162461bcd60e51b81526004016106569061275b565b6000848152602081815260408083206001600160a01b03898116808652918452828520888703905582518981529384018890529092908616917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a45050505050565b828054611c989061234c565b90600052602060002090601f016020900481019282611cba5760008555611d00565b82601f10611cd357805160ff1916838001178555611d00565b82800160010185558215611d00579182015b82811115611d00578251825591602001919060010190611ce5565b50611d0c929150611d10565b5090565b5b80821115611d0c5760008155600101611d11565b80356001600160a01b0381168114611d3c57600080fd5b919050565b60008060408385031215611d5457600080fd5b611d5d83611d25565b946020939093013593505050565b6001600160e01b03198116811461070a57600080fd5b600060208284031215611d9357600080fd5b813561157981611d6b565b634e487b7160e01b600052604160045260246000fd5b601f8201601f1916810167ffffffffffffffff81118282101715611dda57611dda611d9e565b6040525050565b600067ffffffffffffffff831115611dfb57611dfb611d9e565b604051611e12601f8501601f191660200182611db4565b809150838152848484011115611e2757600080fd5b83836020830137600060208583010152509392505050565b600060208284031215611e5157600080fd5b813567ffffffffffffffff811115611e6857600080fd5b8201601f81018413611e7957600080fd5b611e8884823560208401611de1565b949350505050565b6000815180845260005b81811015611eb657602081850181015186830182015201611e9a565b81811115611ec8576000602083870101525b50601f01601f19169290920160200192915050565b6020815260006115796020830184611e90565b600060208284031215611f0257600080fd5b5035919050565b600067ffffffffffffffff821115611f2357611f23611d9e565b5060051b60200190565b600082601f830112611f3e57600080fd5b81356020611f4b82611f09565b604051611f588282611db4565b83815260059390931b8501820192828101915086841115611f7857600080fd5b8286015b84811015611f935780358352918301918301611f7c565b509695505050505050565b600082601f830112611faf57600080fd5b61157983833560208501611de1565b600080600080600060a08688031215611fd657600080fd5b611fdf86611d25565b9450611fed60208701611d25565b9350604086013567ffffffffffffffff8082111561200a57600080fd5b61201689838a01611f2d565b9450606088013591508082111561202c57600080fd5b61203889838a01611f2d565b9350608088013591508082111561204e57600080fd5b5061205b88828901611f9e565b9150509295509295909350565b6000806040838503121561207b57600080fd5b823567ffffffffffffffff8082111561209357600080fd5b818501915085601f8301126120a757600080fd5b813560206120b482611f09565b6040516120c18282611db4565b83815260059390931b85018201928281019150898411156120e157600080fd5b948201945b83861015612106576120f786611d25565b825294820194908201906120e6565b9650508601359250508082111561211c57600080fd5b5061212985828601611f2d565b9150509250929050565b600081518084526020808501945080840160005b8381101561216357815187529582019590820190600101612147565b509495945050505050565b6020815260006115796020830184612133565b60008060006060848603121561219657600080fd5b61219f84611d25565b9250602084013567ffffffffffffffff808211156121bc57600080fd5b6121c887838801611f2d565b935060408601359150808211156121de57600080fd5b506121eb86828701611f2d565b9150509250925092565b60006020828403121561220757600080fd5b61157982611d25565b6000806040838503121561222357600080fd5b61222c83611d25565b91506020830135801515811461224157600080fd5b809150509250929050565b6000806040838503121561225f57600080fd5b61226883611d25565b915061227660208401611d25565b90509250929050565b600080600080600060a0868803121561229757600080fd5b6122a086611d25565b94506122ae60208701611d25565b93506040860135925060608601359150608086013567ffffffffffffffff8111156122d857600080fd5b61205b88828901611f9e565b6000806000606084860312156122f957600080fd5b61230284611d25565b95602085013595506040909401359392505050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b600181811c9082168061236057607f821691505b6020821081141561238157634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b60006000198214156123c7576123c761239d565b5060010190565b60208082526029908201527f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260408201526808185c1c1c9bdd995960ba1b606082015260800190565b6000821982111561242a5761242a61239d565b500190565b60208082526028908201527f455243313135353a2069647320616e6420616d6f756e7473206c656e677468206040820152670dad2e6dac2e8c6d60c31b606082015260800190565b60208082526025908201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604082015264647265737360d81b606082015260800190565b6020808252602a908201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60408201526939103a3930b739b332b960b11b606082015260800190565b6040815260006125196040830185612133565b828103602084015261252b8185612133565b95945050505050565b600081600019048311821515161561254e5761254e61239d565b500290565b6001600160a01b03868116825285166020820152604081018490526060810183905260a06080820181905260009061258d90830184611e90565b979650505050505050565b6000602082840312156125aa57600080fd5b815161157981611d6b565b600060033d11156125ce5760046000803e5060005160e01c5b90565b600060443d10156125df5790565b6040516003193d81016004833e81513d67ffffffffffffffff816024840111818411171561260f57505050505090565b82850191508151818111156126275750505050505090565b843d87010160208285010111156126415750505050505090565b61265060208286010187611db4565b509095945050505050565b60208082526028908201527f455243313135353a204552433131353552656365697665722072656a656374656040820152676420746f6b656e7360c01b606082015260800190565b6001600160a01b0386811682528516602082015260a0604082018190526000906126cf90830186612133565b82810360608401526126e18186612133565b905082810360808401526126f58185611e90565b98975050505050505050565b6000828210156127135761271361239d565b500390565b60208082526023908201527f455243313135353a206275726e2066726f6d20746865207a65726f206164647260408201526265737360e81b606082015260800190565b60208082526024908201527f455243313135353a206275726e20616d6f756e7420657863656564732062616c604082015263616e636560e01b60608201526080019056fea2646970667358221220fadac0908c8d1e2ed21aacd776aa784703fd10e5c6c84cb3132e405fae49dfe164736f6c63430008090033

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  ]
[ 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.