ETH Price: $3,375.85 (-1.98%)
Gas: 3 Gwei

Token

Fud Token (FUD)
 

Overview

Max Total Supply

6,662 FUD

Holders

1,633

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Filtered by Token Holder
inthearenatryingthings.eth
0xb6d19afe6de6c1ab49b964e202ebbf6b8e590a33
Loading...
Loading
Loading...
Loading
Loading...
Loading

Click here to update the token information / general information
# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
FudToken

Compiler Version
v0.8.10+commit.fc410830

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 15 : Fud.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 FudToken contract
 * @dev Extends ERC1155 contract 
 * @author @FrankPoncelet
 * @dev @FuegoNFT
 */

contract FudToken is ERC1155Supply, Ownable, ERC1155Pausable, ERC1155Burnable{
    using SafeMath for uint256;
        
    bool public saleIsActive;
    uint256 public tokenPrice = 0.025 ether; 
    uint256 private mintedTokens;
    uint constant TOKEN_ID = 7123;
    uint constant MAX_TOKENS = 10000;
    
    address private constant MIKE = 0xf6a39754ab1a18D19d2cF01dd1941c4b0D2bCF15;
    address private constant FUEGO = 0xADDaF99990b665D8553f08653966fa8995Cc1209;
    address private constant CHICK = 0x0b8F4C4E7626A91460dac057eB43e0de59d5b44F;
    address private constant TMAS = 0x756624F2c0816bFb6a09E6d463c695b39a146629;
    address public attentionFudContract;
    
    event priceChange(address _by, uint256 price);
    event PaymentReleased(address to, uint256 amount);

    constructor() ERC1155("ipfs://QmbqE73ZCmMW7eVfrkp8qEgHj6xZRG67Vhm3dsgqVM9cGd") { 
        _mint(FUEGO,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 "Fud Token";
    }

    function symbol() public pure returns (string memory) {
        return "FUD";
    }
    
    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 Fud attention contract.
     */
    function joinFUD() public{
        setApprovalForAll(attentionFudContract,true);
    }
    
    /**
     * Allow to change the Attention crontract in case of updates.
     */
    function setAttentionContract(address contractAddress) public onlyOwner{
        attentionFudContract=contractAddress;
    }
    /**
     * mint the requested numer of tokens.
     * MAX 20!
     * 
     */
    function mint(uint numberOfTokens) external payable{
        require(saleIsActive, "FUD: Sale must be active to mint Tokens!");
        require(mintedTokens + numberOfTokens <= MAX_TOKENS, "FUD: Purchase would exceed max supply of tokens!");
        require(!paused(), "FUD: Minting is paused");
        require(tokenPrice.mul(numberOfTokens) <= msg.value, "FUD: Ether value sent is not correct");
        require(numberOfTokens<=20,"FUD: You can only mint 20 tokens at a time");
        mintedTokens += numberOfTokens;
        _mint(msg.sender,TOKEN_ID,numberOfTokens , "");
    }
    
    function withdrawAll() public onlyOwner {
        uint256 balance = address(this).balance;
        require(balance > 0, "Insufficent balance");
        _withdraw(MIKE, ((balance * 10) / 100));
        _withdraw(FUEGO, ((balance * 15) / 100));
        _withdraw(CHICK, ((balance * 35) / 100));
        _withdraw(TMAS, address(this).balance);
    }

    function _withdraw(address _address, uint256 _amount) private {
        (bool success, ) = _address.call{ value: _amount }("");
        require(success, "Failed to widthdraw Ether");
    }

}

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":"attentionFudContract","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":"joinFUD","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":"withdrawAll","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60806040526658d15e176280006005553480156200001c57600080fd5b50604051806060016040528060358152602001620031296035913962000042816200009d565b506200004e33620000b6565b6004805460ff60a01b19169055604080516020810190915260008152620000929073addaf99990b665d8553f08653966fa8995cc120990611bd39060019062000108565b600160065562000858565b8051620000b290600290602084019062000572565b5050565b600480546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b62000121848484846200012760201b620010b51760201c565b50505050565b62000140848484846200016b60201b620010ea1760201c565b600083815260036020526040812080548492906200016090849062000618565b909155505050505050565b6001600160a01b038416620001d15760405162461bcd60e51b815260206004820152602160248201527f455243313135353a206d696e7420746f20746865207a65726f206164647265736044820152607360f81b60648201526084015b60405180910390fd5b33620001f781600087620001e58862000292565b620001f08862000292565b87620002e0565b6000848152602081815260408083206001600160a01b0389168452909152812080548592906200022990849062000618565b909155505060408051858152602081018590526001600160a01b0380881692600092918516917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a46200028b8160008787878762000303565b5050505050565b60408051600180825281830190925260609160009190602080830190803683370190505090508281600081518110620002cf57620002cf6200063f565b602090810291909101015292915050565b620002fb868686868686620004d960201b620011fa1760201c565b505050505050565b62000322846001600160a01b03166200056c60201b620012711760201c565b15620002fb5760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e61906200035e9089908990889088908890600401620006a5565b6020604051808303816000875af19250505080156200039c575060408051601f3d908101601f191682019092526200039991810190620006ec565b60015b6200045d57620003ab6200071f565b806308c379a01415620003ec5750620003c362000777565b80620003d05750620003ee565b8060405162461bcd60e51b8152600401620001c8919062000806565b505b60405162461bcd60e51b815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e204552433131353560448201527f526563656976657220696d706c656d656e7465720000000000000000000000006064820152608401620001c8565b6001600160e01b0319811663f23a6e6160e01b14620004d05760405162461bcd60e51b815260206004820152602860248201527f455243313135353a204552433131353552656365697665722072656a656374656044820152676420746f6b656e7360c01b6064820152608401620001c8565b50505050505050565b620004f4868686868686620002fb60201b620012691760201c565b62000508600454600160a01b900460ff1690565b15620002fb5760405162461bcd60e51b815260206004820152602c60248201527f455243313135355061757361626c653a20746f6b656e207472616e736665722060448201526b1dda1a5b19481c185d5cd95960a21b6064820152608401620001c8565b3b151590565b82805462000580906200081b565b90600052602060002090601f016020900481019282620005a45760008555620005ef565b82601f10620005bf57805160ff1916838001178555620005ef565b82800160010185558215620005ef579182015b82811115620005ef578251825591602001919060010190620005d2565b50620005fd92915062000601565b5090565b5b80821115620005fd576000815560010162000602565b600082198211156200063a57634e487b7160e01b600052601160045260246000fd5b500190565b634e487b7160e01b600052603260045260246000fd5b6000815180845260005b818110156200067d576020818501810151868301820152016200065f565b8181111562000690576000602083870101525b50601f01601f19169290920160200192915050565b6001600160a01b03868116825285166020820152604081018490526060810183905260a060808201819052600090620006e19083018462000655565b979650505050505050565b600060208284031215620006ff57600080fd5b81516001600160e01b0319811681146200071857600080fd5b9392505050565b600060033d1115620007395760046000803e5060005160e01c5b90565b601f8201601f191681016001600160401b03811182821017156200077057634e487b7160e01b600052604160045260246000fd5b6040525050565b600060443d1015620007865790565b6040516003193d81016004833e81513d6001600160401b038083116024840183101715620007b657505050505090565b8285019150815181811115620007cf5750505050505090565b843d8701016020828501011115620007ea5750505050505090565b620007fb602082860101876200073c565b509095945050505050565b60208152600062000718602083018462000655565b600181811c908216806200083057607f821691505b602082108114156200085257634e487b7160e01b600052602260045260246000fd5b50919050565b6128c180620008686000396000f3fe6080604052600436106101cc5760003560e01c80638456cb59116100f7578063a22cb46511610095578063eb8d244411610064578063eb8d24441461056b578063f242432a1461058c578063f2fde38b146105ac578063f5298aca146105cc57600080fd5b8063a22cb465146104c0578063bd85b039146104e0578063e47b7f131461050d578063e985e9c51461052257600080fd5b806391b7f5ed116100d157806391b7f5ed1461044157806395d89b41146104615780639f9cdacf1461048d578063a0712d68146104ad57600080fd5b80638456cb59146103f9578063853828b61461040e5780638da5cb5b1461042357600080fd5b806334918dfd1161016f5780635c975abb1161013e5780635c975abb1461038f5780636b20c454146103ae578063715018a6146103ce5780637ff9b596146103e357600080fd5b806334918dfd146103095780633f4ba83a1461031e5780634e1273f4146103335780634f558e791461036057600080fd5b806306fdde03116101ab57806306fdde03146102565780630e89341c1461029157806311b064ab146102b15780632eb2c2d6146102e957600080fd5b8062fdd58e146101d157806301ffc9a71461020457806302fe530514610234575b600080fd5b3480156101dd57600080fd5b506101f16101ec366004611e0b565b6105ec565b6040519081526020015b60405180910390f35b34801561021057600080fd5b5061022461021f366004611e4b565b610683565b60405190151581526020016101fb565b34801561024057600080fd5b5061025461024f366004611f09565b6106d5565b005b34801561026257600080fd5b50604080518082019091526009815268233ab2102a37b5b2b760b91b60208201525b6040516101fb9190611fa7565b34801561029d57600080fd5b506102846102ac366004611fba565b61070b565b3480156102bd57600080fd5b506007546102d1906001600160a01b031681565b6040516001600160a01b0390911681526020016101fb565b3480156102f557600080fd5b50610254610304366004612088565b61079f565b34801561031557600080fd5b50610254610836565b34801561032a57600080fd5b50610254610881565b34801561033f57600080fd5b5061035361034e366004612132565b6108b5565b6040516101fb9190612238565b34801561036c57600080fd5b5061022461037b366004611fba565b600090815260036020526040902054151590565b34801561039b57600080fd5b50600454600160a01b900460ff16610224565b3480156103ba57600080fd5b506102546103c936600461224b565b6109df565b3480156103da57600080fd5b50610254610a27565b3480156103ef57600080fd5b506101f160055481565b34801561040557600080fd5b50610254610a5b565b34801561041a57600080fd5b50610254610aae565b34801561042f57600080fd5b506004546001600160a01b03166102d1565b34801561044d57600080fd5b5061025461045c366004611fba565b610bb8565b34801561046d57600080fd5b5060408051808201909152600381526211955160ea1b6020820152610284565b34801561049957600080fd5b506102546104a83660046122bf565b610c23565b6102546104bb366004611fba565b610c6f565b3480156104cc57600080fd5b506102546104db3660046122da565b610ea7565b3480156104ec57600080fd5b506101f16104fb366004611fba565b60009081526003602052604090205490565b34801561051957600080fd5b50610254610f7e565b34801561052e57600080fd5b5061022461053d366004612316565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205460ff1690565b34801561057757600080fd5b5060045461022490600160a81b900460ff1681565b34801561059857600080fd5b506102546105a7366004612349565b610f95565b3480156105b857600080fd5b506102546105c73660046122bf565b610fda565b3480156105d857600080fd5b506102546105e73660046123ae565b611072565b60006001600160a01b03831661065d5760405162461bcd60e51b815260206004820152602b60248201527f455243313135353a2062616c616e636520717565727920666f7220746865207a60448201526a65726f206164647265737360a81b60648201526084015b60405180910390fd5b506000908152602081815260408083206001600160a01b03949094168352929052205490565b60006001600160e01b03198216636cdb3d1360e11b14806106b457506001600160e01b031982166303a24d0760e21b145b806106cf57506301ffc9a760e01b6001600160e01b03198316145b92915050565b6004546001600160a01b031633146106ff5760405162461bcd60e51b8152600401610654906123e1565b61070881611277565b50565b60606002805461071a90612416565b80601f016020809104026020016040519081016040528092919081815260200182805461074690612416565b80156107935780601f1061076857610100808354040283529160200191610793565b820191906000526020600020905b81548152906001019060200180831161077657829003601f168201915b50505050509050919050565b6001600160a01b0385163314806107bb57506107bb853361053d565b6108225760405162461bcd60e51b815260206004820152603260248201527f455243313135353a207472616e736665722063616c6c6572206973206e6f74206044820152711bdddb995c881b9bdc88185c1c1c9bdd995960721b6064820152608401610654565b61082f858585858561128e565b5050505050565b6004546001600160a01b031633146108605760405162461bcd60e51b8152600401610654906123e1565b6004805460ff60a81b198116600160a81b9182900460ff1615909102179055565b6004546001600160a01b031633146108ab5760405162461bcd60e51b8152600401610654906123e1565b6108b3611430565b565b6060815183511461091a5760405162461bcd60e51b815260206004820152602960248201527f455243313135353a206163636f756e747320616e6420696473206c656e677468604482015268040dad2e6dac2e8c6d60bb1b6064820152608401610654565b6000835167ffffffffffffffff81111561093657610936611e68565b60405190808252806020026020018201604052801561095f578160200160208202803683370190505b50905060005b84518110156109d7576109aa85828151811061098357610983612451565b602002602001015185838151811061099d5761099d612451565b60200260200101516105ec565b8282815181106109bc576109bc612451565b60209081029190910101526109d08161247d565b9050610965565b509392505050565b6001600160a01b0383163314806109fb57506109fb833361053d565b610a175760405162461bcd60e51b815260040161065490612498565b610a228383836114cd565b505050565b6004546001600160a01b03163314610a515760405162461bcd60e51b8152600401610654906123e1565b6108b360006114d8565b6004546001600160a01b03163314610a855760405162461bcd60e51b8152600401610654906123e1565b610a8d61152a565b600454600160a81b900460ff16156108b3576004805460ff60a81b19169055565b6004546001600160a01b03163314610ad85760405162461bcd60e51b8152600401610654906123e1565b4780610b1c5760405162461bcd60e51b8152602060048201526013602482015272496e737566666963656e742062616c616e636560681b6044820152606401610654565b610b5073f6a39754ab1a18d19d2cf01dd1941c4b0d2bcf156064610b4184600a6124e1565b610b4b9190612500565b6115b2565b610b7573addaf99990b665d8553f08653966fa8995cc12096064610b4184600f6124e1565b610b9a730b8f4c4e7626a91460dac057eb43e0de59d5b44f6064610b418460236124e1565b61070873756624f2c0816bfb6a09e6d463c695b39a146629476115b2565b6004546001600160a01b03163314610be25760405162461bcd60e51b8152600401610654906123e1565b600581905560408051338152602081018390527f2a270679203ad5c6be2af882c755f81ff060752614a378c1804df57dd7d2add0910160405180910390a150565b6004546001600160a01b03163314610c4d5760405162461bcd60e51b8152600401610654906123e1565b600780546001600160a01b0319166001600160a01b0392909216919091179055565b600454600160a81b900460ff16610cd95760405162461bcd60e51b815260206004820152602860248201527f4655443a2053616c65206d7573742062652061637469766520746f206d696e7460448201526720546f6b656e732160c01b6064820152608401610654565b61271081600654610cea9190612522565b1115610d515760405162461bcd60e51b815260206004820152603060248201527f4655443a20507572636861736520776f756c6420657863656564206d6178207360448201526f7570706c79206f6620746f6b656e732160801b6064820152608401610654565b600454600160a01b900460ff1615610da45760405162461bcd60e51b81526020600482015260166024820152751195510e88135a5b9d1a5b99c81a5cc81c185d5cd95960521b6044820152606401610654565b6005543490610db39083611655565b1115610e0d5760405162461bcd60e51b8152602060048201526024808201527f4655443a2045746865722076616c75652073656e74206973206e6f7420636f726044820152631c9958dd60e21b6064820152608401610654565b6014811115610e715760405162461bcd60e51b815260206004820152602a60248201527f4655443a20596f752063616e206f6e6c79206d696e7420323020746f6b656e7360448201526920617420612074696d6560b01b6064820152608401610654565b8060066000828254610e839190612522565b9250508190555061070833611bd38360405180602001604052806000815250611668565b336001600160a01b0383161415610f125760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2073657474696e6720617070726f76616c20737461747573604482015268103337b91039b2b63360b91b6064820152608401610654565b3360008181526001602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6007546108b3906001600160a01b03166001610ea7565b6001600160a01b038516331480610fb15750610fb1853361053d565b610fcd5760405162461bcd60e51b815260040161065490612498565b61082f858585858561167a565b6004546001600160a01b031633146110045760405162461bcd60e51b8152600401610654906123e1565b6001600160a01b0381166110695760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610654565b610708816114d8565b6001600160a01b03831633148061108e575061108e833361053d565b6110aa5760405162461bcd60e51b815260040161065490612498565b610a22838383611797565b6110c1848484846110ea565b600083815260036020526040812080548492906110df908490612522565b909155505050505050565b6001600160a01b03841661114a5760405162461bcd60e51b815260206004820152602160248201527f455243313135353a206d696e7420746f20746865207a65726f206164647265736044820152607360f81b6064820152608401610654565b3361116a8160008761115b886117a2565b611164886117a2565b876117ed565b6000848152602081815260408083206001600160a01b03891684529091528120805485929061119a908490612522565b909155505060408051858152602081018590526001600160a01b0380881692600092918516917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a461082f816000878787876117fb565b600454600160a01b900460ff16156112695760405162461bcd60e51b815260206004820152602c60248201527f455243313135355061757361626c653a20746f6b656e207472616e736665722060448201526b1dda1a5b19481c185d5cd95960a21b6064820152608401610654565b505050505050565b3b151590565b805161128a906002906020840190611d56565b5050565b81518351146112af5760405162461bcd60e51b81526004016106549061253a565b6001600160a01b0384166112d55760405162461bcd60e51b815260040161065490612582565b336112e48187878787876117ed565b60005b84518110156113ca57600085828151811061130457611304612451565b60200260200101519050600085838151811061132257611322612451565b602090810291909101810151600084815280835260408082206001600160a01b038e1683529093529190912054909150818110156113725760405162461bcd60e51b8152600401610654906125c7565b6000838152602081815260408083206001600160a01b038e8116855292528083208585039055908b168252812080548492906113af908490612522565b92505081905550505050806113c39061247d565b90506112e7565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb878760405161141a929190612611565b60405180910390a4611269818787878787611957565b600454600160a01b900460ff166114805760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b6044820152606401610654565b6004805460ff60a01b191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b610a22838383611a12565b600480546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600454600160a01b900460ff16156115775760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610654565b6004805460ff60a01b1916600160a01b1790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586114b03390565b6000826001600160a01b03168260405160006040518083038185875af1925050503d80600081146115ff576040519150601f19603f3d011682016040523d82523d6000602084013e611604565b606091505b5050905080610a225760405162461bcd60e51b815260206004820152601960248201527f4661696c656420746f20776964746864726177204574686572000000000000006044820152606401610654565b600061166182846124e1565b9392505050565b611674848484846110b5565b50505050565b6001600160a01b0384166116a05760405162461bcd60e51b815260040161065490612582565b336116b081878761115b886117a2565b6000848152602081815260408083206001600160a01b038a168452909152902054838110156116f15760405162461bcd60e51b8152600401610654906125c7565b6000858152602081815260408083206001600160a01b038b811685529252808320878503905590881682528120805486929061172e908490612522565b909155505060408051868152602081018690526001600160a01b03808916928a821692918616917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a461178e8288888888886117fb565b50505050505050565b610a22838383611a94565b604080516001808252818301909252606091600091906020808301908036833701905050905082816000815181106117dc576117dc612451565b602090810291909101015292915050565b6112698686868686866111fa565b6001600160a01b0384163b156112695760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e619061183f908990899088908890889060040161263f565b6020604051808303816000875af192505050801561187a575060408051601f3d908101601f1916820190925261187791810190612684565b60015b611927576118866126a1565b806308c379a014156118c0575061189b6126bd565b806118a657506118c2565b8060405162461bcd60e51b81526004016106549190611fa7565b505b60405162461bcd60e51b815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e20455243313135356044820152732932b1b2b4bb32b91034b6b83632b6b2b73a32b960611b6064820152608401610654565b6001600160e01b0319811663f23a6e6160e01b1461178e5760405162461bcd60e51b815260040161065490612747565b6001600160a01b0384163b156112695760405163bc197c8160e01b81526001600160a01b0385169063bc197c819061199b908990899088908890889060040161278f565b6020604051808303816000875af19250505080156119d6575060408051601f3d908101601f191682019092526119d391810190612684565b60015b6119e2576118866126a1565b6001600160e01b0319811663bc197c8160e01b1461178e5760405162461bcd60e51b815260040161065490612747565b611a1d838383611ac7565b60005b825181101561167457818181518110611a3b57611a3b612451565b602002602001015160036000858481518110611a5957611a59612451565b602002602001015181526020019081526020016000206000828254611a7e91906127ed565b90915550611a8d90508161247d565b9050611a20565b611a9f838383611c55565b60008281526003602052604081208054839290611abd9084906127ed565b9091555050505050565b6001600160a01b038316611aed5760405162461bcd60e51b815260040161065490612804565b8051825114611b0e5760405162461bcd60e51b81526004016106549061253a565b6000339050611b31818560008686604051806020016040528060008152506117ed565b60005b8351811015611bf6576000848281518110611b5157611b51612451565b602002602001015190506000848381518110611b6f57611b6f612451565b602090810291909101810151600084815280835260408082206001600160a01b038c168352909352919091205490915081811015611bbf5760405162461bcd60e51b815260040161065490612847565b6000928352602083815260408085206001600160a01b038b1686529091529092209103905580611bee8161247d565b915050611b34565b5060006001600160a01b0316846001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8686604051611c47929190612611565b60405180910390a450505050565b6001600160a01b038316611c7b5760405162461bcd60e51b815260040161065490612804565b33611caa81856000611c8c876117a2565b611c95876117a2565b604051806020016040528060008152506117ed565b6000838152602081815260408083206001600160a01b038816845290915290205482811015611ceb5760405162461bcd60e51b815260040161065490612847565b6000848152602081815260408083206001600160a01b03898116808652918452828520888703905582518981529384018890529092908616917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a45050505050565b828054611d6290612416565b90600052602060002090601f016020900481019282611d845760008555611dca565b82601f10611d9d57805160ff1916838001178555611dca565b82800160010185558215611dca579182015b82811115611dca578251825591602001919060010190611daf565b50611dd6929150611dda565b5090565b5b80821115611dd65760008155600101611ddb565b80356001600160a01b0381168114611e0657600080fd5b919050565b60008060408385031215611e1e57600080fd5b611e2783611def565b946020939093013593505050565b6001600160e01b03198116811461070857600080fd5b600060208284031215611e5d57600080fd5b813561166181611e35565b634e487b7160e01b600052604160045260246000fd5b601f8201601f1916810167ffffffffffffffff81118282101715611ea457611ea4611e68565b6040525050565b600067ffffffffffffffff831115611ec557611ec5611e68565b604051611edc601f8501601f191660200182611e7e565b809150838152848484011115611ef157600080fd5b83836020830137600060208583010152509392505050565b600060208284031215611f1b57600080fd5b813567ffffffffffffffff811115611f3257600080fd5b8201601f81018413611f4357600080fd5b611f5284823560208401611eab565b949350505050565b6000815180845260005b81811015611f8057602081850181015186830182015201611f64565b81811115611f92576000602083870101525b50601f01601f19169290920160200192915050565b6020815260006116616020830184611f5a565b600060208284031215611fcc57600080fd5b5035919050565b600067ffffffffffffffff821115611fed57611fed611e68565b5060051b60200190565b600082601f83011261200857600080fd5b8135602061201582611fd3565b6040516120228282611e7e565b83815260059390931b850182019282810191508684111561204257600080fd5b8286015b8481101561205d5780358352918301918301612046565b509695505050505050565b600082601f83011261207957600080fd5b61166183833560208501611eab565b600080600080600060a086880312156120a057600080fd5b6120a986611def565b94506120b760208701611def565b9350604086013567ffffffffffffffff808211156120d457600080fd5b6120e089838a01611ff7565b945060608801359150808211156120f657600080fd5b61210289838a01611ff7565b9350608088013591508082111561211857600080fd5b5061212588828901612068565b9150509295509295909350565b6000806040838503121561214557600080fd5b823567ffffffffffffffff8082111561215d57600080fd5b818501915085601f83011261217157600080fd5b8135602061217e82611fd3565b60405161218b8282611e7e565b83815260059390931b85018201928281019150898411156121ab57600080fd5b948201945b838610156121d0576121c186611def565b825294820194908201906121b0565b965050860135925050808211156121e657600080fd5b506121f385828601611ff7565b9150509250929050565b600081518084526020808501945080840160005b8381101561222d57815187529582019590820190600101612211565b509495945050505050565b60208152600061166160208301846121fd565b60008060006060848603121561226057600080fd5b61226984611def565b9250602084013567ffffffffffffffff8082111561228657600080fd5b61229287838801611ff7565b935060408601359150808211156122a857600080fd5b506122b586828701611ff7565b9150509250925092565b6000602082840312156122d157600080fd5b61166182611def565b600080604083850312156122ed57600080fd5b6122f683611def565b91506020830135801515811461230b57600080fd5b809150509250929050565b6000806040838503121561232957600080fd5b61233283611def565b915061234060208401611def565b90509250929050565b600080600080600060a0868803121561236157600080fd5b61236a86611def565b945061237860208701611def565b93506040860135925060608601359150608086013567ffffffffffffffff8111156123a257600080fd5b61212588828901612068565b6000806000606084860312156123c357600080fd5b6123cc84611def565b95602085013595506040909401359392505050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b600181811c9082168061242a57607f821691505b6020821081141561244b57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b600060001982141561249157612491612467565b5060010190565b60208082526029908201527f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260408201526808185c1c1c9bdd995960ba1b606082015260800190565b60008160001904831182151516156124fb576124fb612467565b500290565b60008261251d57634e487b7160e01b600052601260045260246000fd5b500490565b6000821982111561253557612535612467565b500190565b60208082526028908201527f455243313135353a2069647320616e6420616d6f756e7473206c656e677468206040820152670dad2e6dac2e8c6d60c31b606082015260800190565b60208082526025908201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604082015264647265737360d81b606082015260800190565b6020808252602a908201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60408201526939103a3930b739b332b960b11b606082015260800190565b60408152600061262460408301856121fd565b828103602084015261263681856121fd565b95945050505050565b6001600160a01b03868116825285166020820152604081018490526060810183905260a06080820181905260009061267990830184611f5a565b979650505050505050565b60006020828403121561269657600080fd5b815161166181611e35565b600060033d11156126ba5760046000803e5060005160e01c5b90565b600060443d10156126cb5790565b6040516003193d81016004833e81513d67ffffffffffffffff81602484011181841117156126fb57505050505090565b82850191508151818111156127135750505050505090565b843d870101602082850101111561272d5750505050505090565b61273c60208286010187611e7e565b509095945050505050565b60208082526028908201527f455243313135353a204552433131353552656365697665722072656a656374656040820152676420746f6b656e7360c01b606082015260800190565b6001600160a01b0386811682528516602082015260a0604082018190526000906127bb908301866121fd565b82810360608401526127cd81866121fd565b905082810360808401526127e18185611f5a565b98975050505050505050565b6000828210156127ff576127ff612467565b500390565b60208082526023908201527f455243313135353a206275726e2066726f6d20746865207a65726f206164647260408201526265737360e81b606082015260800190565b60208082526024908201527f455243313135353a206275726e20616d6f756e7420657863656564732062616c604082015263616e636560e01b60608201526080019056fea26469706673582212208dea5e067ddac93b5a58699ea9e93c0f155b601010e7371116ea0d3b8af8eba764736f6c634300080a0033697066733a2f2f516d62714537335a436d4d5737655666726b7038714567486a36785a5247363756686d3364736771564d39634764

Deployed Bytecode

0x6080604052600436106101cc5760003560e01c80638456cb59116100f7578063a22cb46511610095578063eb8d244411610064578063eb8d24441461056b578063f242432a1461058c578063f2fde38b146105ac578063f5298aca146105cc57600080fd5b8063a22cb465146104c0578063bd85b039146104e0578063e47b7f131461050d578063e985e9c51461052257600080fd5b806391b7f5ed116100d157806391b7f5ed1461044157806395d89b41146104615780639f9cdacf1461048d578063a0712d68146104ad57600080fd5b80638456cb59146103f9578063853828b61461040e5780638da5cb5b1461042357600080fd5b806334918dfd1161016f5780635c975abb1161013e5780635c975abb1461038f5780636b20c454146103ae578063715018a6146103ce5780637ff9b596146103e357600080fd5b806334918dfd146103095780633f4ba83a1461031e5780634e1273f4146103335780634f558e791461036057600080fd5b806306fdde03116101ab57806306fdde03146102565780630e89341c1461029157806311b064ab146102b15780632eb2c2d6146102e957600080fd5b8062fdd58e146101d157806301ffc9a71461020457806302fe530514610234575b600080fd5b3480156101dd57600080fd5b506101f16101ec366004611e0b565b6105ec565b6040519081526020015b60405180910390f35b34801561021057600080fd5b5061022461021f366004611e4b565b610683565b60405190151581526020016101fb565b34801561024057600080fd5b5061025461024f366004611f09565b6106d5565b005b34801561026257600080fd5b50604080518082019091526009815268233ab2102a37b5b2b760b91b60208201525b6040516101fb9190611fa7565b34801561029d57600080fd5b506102846102ac366004611fba565b61070b565b3480156102bd57600080fd5b506007546102d1906001600160a01b031681565b6040516001600160a01b0390911681526020016101fb565b3480156102f557600080fd5b50610254610304366004612088565b61079f565b34801561031557600080fd5b50610254610836565b34801561032a57600080fd5b50610254610881565b34801561033f57600080fd5b5061035361034e366004612132565b6108b5565b6040516101fb9190612238565b34801561036c57600080fd5b5061022461037b366004611fba565b600090815260036020526040902054151590565b34801561039b57600080fd5b50600454600160a01b900460ff16610224565b3480156103ba57600080fd5b506102546103c936600461224b565b6109df565b3480156103da57600080fd5b50610254610a27565b3480156103ef57600080fd5b506101f160055481565b34801561040557600080fd5b50610254610a5b565b34801561041a57600080fd5b50610254610aae565b34801561042f57600080fd5b506004546001600160a01b03166102d1565b34801561044d57600080fd5b5061025461045c366004611fba565b610bb8565b34801561046d57600080fd5b5060408051808201909152600381526211955160ea1b6020820152610284565b34801561049957600080fd5b506102546104a83660046122bf565b610c23565b6102546104bb366004611fba565b610c6f565b3480156104cc57600080fd5b506102546104db3660046122da565b610ea7565b3480156104ec57600080fd5b506101f16104fb366004611fba565b60009081526003602052604090205490565b34801561051957600080fd5b50610254610f7e565b34801561052e57600080fd5b5061022461053d366004612316565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205460ff1690565b34801561057757600080fd5b5060045461022490600160a81b900460ff1681565b34801561059857600080fd5b506102546105a7366004612349565b610f95565b3480156105b857600080fd5b506102546105c73660046122bf565b610fda565b3480156105d857600080fd5b506102546105e73660046123ae565b611072565b60006001600160a01b03831661065d5760405162461bcd60e51b815260206004820152602b60248201527f455243313135353a2062616c616e636520717565727920666f7220746865207a60448201526a65726f206164647265737360a81b60648201526084015b60405180910390fd5b506000908152602081815260408083206001600160a01b03949094168352929052205490565b60006001600160e01b03198216636cdb3d1360e11b14806106b457506001600160e01b031982166303a24d0760e21b145b806106cf57506301ffc9a760e01b6001600160e01b03198316145b92915050565b6004546001600160a01b031633146106ff5760405162461bcd60e51b8152600401610654906123e1565b61070881611277565b50565b60606002805461071a90612416565b80601f016020809104026020016040519081016040528092919081815260200182805461074690612416565b80156107935780601f1061076857610100808354040283529160200191610793565b820191906000526020600020905b81548152906001019060200180831161077657829003601f168201915b50505050509050919050565b6001600160a01b0385163314806107bb57506107bb853361053d565b6108225760405162461bcd60e51b815260206004820152603260248201527f455243313135353a207472616e736665722063616c6c6572206973206e6f74206044820152711bdddb995c881b9bdc88185c1c1c9bdd995960721b6064820152608401610654565b61082f858585858561128e565b5050505050565b6004546001600160a01b031633146108605760405162461bcd60e51b8152600401610654906123e1565b6004805460ff60a81b198116600160a81b9182900460ff1615909102179055565b6004546001600160a01b031633146108ab5760405162461bcd60e51b8152600401610654906123e1565b6108b3611430565b565b6060815183511461091a5760405162461bcd60e51b815260206004820152602960248201527f455243313135353a206163636f756e747320616e6420696473206c656e677468604482015268040dad2e6dac2e8c6d60bb1b6064820152608401610654565b6000835167ffffffffffffffff81111561093657610936611e68565b60405190808252806020026020018201604052801561095f578160200160208202803683370190505b50905060005b84518110156109d7576109aa85828151811061098357610983612451565b602002602001015185838151811061099d5761099d612451565b60200260200101516105ec565b8282815181106109bc576109bc612451565b60209081029190910101526109d08161247d565b9050610965565b509392505050565b6001600160a01b0383163314806109fb57506109fb833361053d565b610a175760405162461bcd60e51b815260040161065490612498565b610a228383836114cd565b505050565b6004546001600160a01b03163314610a515760405162461bcd60e51b8152600401610654906123e1565b6108b360006114d8565b6004546001600160a01b03163314610a855760405162461bcd60e51b8152600401610654906123e1565b610a8d61152a565b600454600160a81b900460ff16156108b3576004805460ff60a81b19169055565b6004546001600160a01b03163314610ad85760405162461bcd60e51b8152600401610654906123e1565b4780610b1c5760405162461bcd60e51b8152602060048201526013602482015272496e737566666963656e742062616c616e636560681b6044820152606401610654565b610b5073f6a39754ab1a18d19d2cf01dd1941c4b0d2bcf156064610b4184600a6124e1565b610b4b9190612500565b6115b2565b610b7573addaf99990b665d8553f08653966fa8995cc12096064610b4184600f6124e1565b610b9a730b8f4c4e7626a91460dac057eb43e0de59d5b44f6064610b418460236124e1565b61070873756624f2c0816bfb6a09e6d463c695b39a146629476115b2565b6004546001600160a01b03163314610be25760405162461bcd60e51b8152600401610654906123e1565b600581905560408051338152602081018390527f2a270679203ad5c6be2af882c755f81ff060752614a378c1804df57dd7d2add0910160405180910390a150565b6004546001600160a01b03163314610c4d5760405162461bcd60e51b8152600401610654906123e1565b600780546001600160a01b0319166001600160a01b0392909216919091179055565b600454600160a81b900460ff16610cd95760405162461bcd60e51b815260206004820152602860248201527f4655443a2053616c65206d7573742062652061637469766520746f206d696e7460448201526720546f6b656e732160c01b6064820152608401610654565b61271081600654610cea9190612522565b1115610d515760405162461bcd60e51b815260206004820152603060248201527f4655443a20507572636861736520776f756c6420657863656564206d6178207360448201526f7570706c79206f6620746f6b656e732160801b6064820152608401610654565b600454600160a01b900460ff1615610da45760405162461bcd60e51b81526020600482015260166024820152751195510e88135a5b9d1a5b99c81a5cc81c185d5cd95960521b6044820152606401610654565b6005543490610db39083611655565b1115610e0d5760405162461bcd60e51b8152602060048201526024808201527f4655443a2045746865722076616c75652073656e74206973206e6f7420636f726044820152631c9958dd60e21b6064820152608401610654565b6014811115610e715760405162461bcd60e51b815260206004820152602a60248201527f4655443a20596f752063616e206f6e6c79206d696e7420323020746f6b656e7360448201526920617420612074696d6560b01b6064820152608401610654565b8060066000828254610e839190612522565b9250508190555061070833611bd38360405180602001604052806000815250611668565b336001600160a01b0383161415610f125760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2073657474696e6720617070726f76616c20737461747573604482015268103337b91039b2b63360b91b6064820152608401610654565b3360008181526001602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6007546108b3906001600160a01b03166001610ea7565b6001600160a01b038516331480610fb15750610fb1853361053d565b610fcd5760405162461bcd60e51b815260040161065490612498565b61082f858585858561167a565b6004546001600160a01b031633146110045760405162461bcd60e51b8152600401610654906123e1565b6001600160a01b0381166110695760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610654565b610708816114d8565b6001600160a01b03831633148061108e575061108e833361053d565b6110aa5760405162461bcd60e51b815260040161065490612498565b610a22838383611797565b6110c1848484846110ea565b600083815260036020526040812080548492906110df908490612522565b909155505050505050565b6001600160a01b03841661114a5760405162461bcd60e51b815260206004820152602160248201527f455243313135353a206d696e7420746f20746865207a65726f206164647265736044820152607360f81b6064820152608401610654565b3361116a8160008761115b886117a2565b611164886117a2565b876117ed565b6000848152602081815260408083206001600160a01b03891684529091528120805485929061119a908490612522565b909155505060408051858152602081018590526001600160a01b0380881692600092918516917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a461082f816000878787876117fb565b600454600160a01b900460ff16156112695760405162461bcd60e51b815260206004820152602c60248201527f455243313135355061757361626c653a20746f6b656e207472616e736665722060448201526b1dda1a5b19481c185d5cd95960a21b6064820152608401610654565b505050505050565b3b151590565b805161128a906002906020840190611d56565b5050565b81518351146112af5760405162461bcd60e51b81526004016106549061253a565b6001600160a01b0384166112d55760405162461bcd60e51b815260040161065490612582565b336112e48187878787876117ed565b60005b84518110156113ca57600085828151811061130457611304612451565b60200260200101519050600085838151811061132257611322612451565b602090810291909101810151600084815280835260408082206001600160a01b038e1683529093529190912054909150818110156113725760405162461bcd60e51b8152600401610654906125c7565b6000838152602081815260408083206001600160a01b038e8116855292528083208585039055908b168252812080548492906113af908490612522565b92505081905550505050806113c39061247d565b90506112e7565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb878760405161141a929190612611565b60405180910390a4611269818787878787611957565b600454600160a01b900460ff166114805760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b6044820152606401610654565b6004805460ff60a01b191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b610a22838383611a12565b600480546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600454600160a01b900460ff16156115775760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610654565b6004805460ff60a01b1916600160a01b1790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586114b03390565b6000826001600160a01b03168260405160006040518083038185875af1925050503d80600081146115ff576040519150601f19603f3d011682016040523d82523d6000602084013e611604565b606091505b5050905080610a225760405162461bcd60e51b815260206004820152601960248201527f4661696c656420746f20776964746864726177204574686572000000000000006044820152606401610654565b600061166182846124e1565b9392505050565b611674848484846110b5565b50505050565b6001600160a01b0384166116a05760405162461bcd60e51b815260040161065490612582565b336116b081878761115b886117a2565b6000848152602081815260408083206001600160a01b038a168452909152902054838110156116f15760405162461bcd60e51b8152600401610654906125c7565b6000858152602081815260408083206001600160a01b038b811685529252808320878503905590881682528120805486929061172e908490612522565b909155505060408051868152602081018690526001600160a01b03808916928a821692918616917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a461178e8288888888886117fb565b50505050505050565b610a22838383611a94565b604080516001808252818301909252606091600091906020808301908036833701905050905082816000815181106117dc576117dc612451565b602090810291909101015292915050565b6112698686868686866111fa565b6001600160a01b0384163b156112695760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e619061183f908990899088908890889060040161263f565b6020604051808303816000875af192505050801561187a575060408051601f3d908101601f1916820190925261187791810190612684565b60015b611927576118866126a1565b806308c379a014156118c0575061189b6126bd565b806118a657506118c2565b8060405162461bcd60e51b81526004016106549190611fa7565b505b60405162461bcd60e51b815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e20455243313135356044820152732932b1b2b4bb32b91034b6b83632b6b2b73a32b960611b6064820152608401610654565b6001600160e01b0319811663f23a6e6160e01b1461178e5760405162461bcd60e51b815260040161065490612747565b6001600160a01b0384163b156112695760405163bc197c8160e01b81526001600160a01b0385169063bc197c819061199b908990899088908890889060040161278f565b6020604051808303816000875af19250505080156119d6575060408051601f3d908101601f191682019092526119d391810190612684565b60015b6119e2576118866126a1565b6001600160e01b0319811663bc197c8160e01b1461178e5760405162461bcd60e51b815260040161065490612747565b611a1d838383611ac7565b60005b825181101561167457818181518110611a3b57611a3b612451565b602002602001015160036000858481518110611a5957611a59612451565b602002602001015181526020019081526020016000206000828254611a7e91906127ed565b90915550611a8d90508161247d565b9050611a20565b611a9f838383611c55565b60008281526003602052604081208054839290611abd9084906127ed565b9091555050505050565b6001600160a01b038316611aed5760405162461bcd60e51b815260040161065490612804565b8051825114611b0e5760405162461bcd60e51b81526004016106549061253a565b6000339050611b31818560008686604051806020016040528060008152506117ed565b60005b8351811015611bf6576000848281518110611b5157611b51612451565b602002602001015190506000848381518110611b6f57611b6f612451565b602090810291909101810151600084815280835260408082206001600160a01b038c168352909352919091205490915081811015611bbf5760405162461bcd60e51b815260040161065490612847565b6000928352602083815260408085206001600160a01b038b1686529091529092209103905580611bee8161247d565b915050611b34565b5060006001600160a01b0316846001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8686604051611c47929190612611565b60405180910390a450505050565b6001600160a01b038316611c7b5760405162461bcd60e51b815260040161065490612804565b33611caa81856000611c8c876117a2565b611c95876117a2565b604051806020016040528060008152506117ed565b6000838152602081815260408083206001600160a01b038816845290915290205482811015611ceb5760405162461bcd60e51b815260040161065490612847565b6000848152602081815260408083206001600160a01b03898116808652918452828520888703905582518981529384018890529092908616917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a45050505050565b828054611d6290612416565b90600052602060002090601f016020900481019282611d845760008555611dca565b82601f10611d9d57805160ff1916838001178555611dca565b82800160010185558215611dca579182015b82811115611dca578251825591602001919060010190611daf565b50611dd6929150611dda565b5090565b5b80821115611dd65760008155600101611ddb565b80356001600160a01b0381168114611e0657600080fd5b919050565b60008060408385031215611e1e57600080fd5b611e2783611def565b946020939093013593505050565b6001600160e01b03198116811461070857600080fd5b600060208284031215611e5d57600080fd5b813561166181611e35565b634e487b7160e01b600052604160045260246000fd5b601f8201601f1916810167ffffffffffffffff81118282101715611ea457611ea4611e68565b6040525050565b600067ffffffffffffffff831115611ec557611ec5611e68565b604051611edc601f8501601f191660200182611e7e565b809150838152848484011115611ef157600080fd5b83836020830137600060208583010152509392505050565b600060208284031215611f1b57600080fd5b813567ffffffffffffffff811115611f3257600080fd5b8201601f81018413611f4357600080fd5b611f5284823560208401611eab565b949350505050565b6000815180845260005b81811015611f8057602081850181015186830182015201611f64565b81811115611f92576000602083870101525b50601f01601f19169290920160200192915050565b6020815260006116616020830184611f5a565b600060208284031215611fcc57600080fd5b5035919050565b600067ffffffffffffffff821115611fed57611fed611e68565b5060051b60200190565b600082601f83011261200857600080fd5b8135602061201582611fd3565b6040516120228282611e7e565b83815260059390931b850182019282810191508684111561204257600080fd5b8286015b8481101561205d5780358352918301918301612046565b509695505050505050565b600082601f83011261207957600080fd5b61166183833560208501611eab565b600080600080600060a086880312156120a057600080fd5b6120a986611def565b94506120b760208701611def565b9350604086013567ffffffffffffffff808211156120d457600080fd5b6120e089838a01611ff7565b945060608801359150808211156120f657600080fd5b61210289838a01611ff7565b9350608088013591508082111561211857600080fd5b5061212588828901612068565b9150509295509295909350565b6000806040838503121561214557600080fd5b823567ffffffffffffffff8082111561215d57600080fd5b818501915085601f83011261217157600080fd5b8135602061217e82611fd3565b60405161218b8282611e7e565b83815260059390931b85018201928281019150898411156121ab57600080fd5b948201945b838610156121d0576121c186611def565b825294820194908201906121b0565b965050860135925050808211156121e657600080fd5b506121f385828601611ff7565b9150509250929050565b600081518084526020808501945080840160005b8381101561222d57815187529582019590820190600101612211565b509495945050505050565b60208152600061166160208301846121fd565b60008060006060848603121561226057600080fd5b61226984611def565b9250602084013567ffffffffffffffff8082111561228657600080fd5b61229287838801611ff7565b935060408601359150808211156122a857600080fd5b506122b586828701611ff7565b9150509250925092565b6000602082840312156122d157600080fd5b61166182611def565b600080604083850312156122ed57600080fd5b6122f683611def565b91506020830135801515811461230b57600080fd5b809150509250929050565b6000806040838503121561232957600080fd5b61233283611def565b915061234060208401611def565b90509250929050565b600080600080600060a0868803121561236157600080fd5b61236a86611def565b945061237860208701611def565b93506040860135925060608601359150608086013567ffffffffffffffff8111156123a257600080fd5b61212588828901612068565b6000806000606084860312156123c357600080fd5b6123cc84611def565b95602085013595506040909401359392505050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b600181811c9082168061242a57607f821691505b6020821081141561244b57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b600060001982141561249157612491612467565b5060010190565b60208082526029908201527f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260408201526808185c1c1c9bdd995960ba1b606082015260800190565b60008160001904831182151516156124fb576124fb612467565b500290565b60008261251d57634e487b7160e01b600052601260045260246000fd5b500490565b6000821982111561253557612535612467565b500190565b60208082526028908201527f455243313135353a2069647320616e6420616d6f756e7473206c656e677468206040820152670dad2e6dac2e8c6d60c31b606082015260800190565b60208082526025908201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604082015264647265737360d81b606082015260800190565b6020808252602a908201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60408201526939103a3930b739b332b960b11b606082015260800190565b60408152600061262460408301856121fd565b828103602084015261263681856121fd565b95945050505050565b6001600160a01b03868116825285166020820152604081018490526060810183905260a06080820181905260009061267990830184611f5a565b979650505050505050565b60006020828403121561269657600080fd5b815161166181611e35565b600060033d11156126ba5760046000803e5060005160e01c5b90565b600060443d10156126cb5790565b6040516003193d81016004833e81513d67ffffffffffffffff81602484011181841117156126fb57505050505090565b82850191508151818111156127135750505050505090565b843d870101602082850101111561272d5750505050505090565b61273c60208286010187611e7e565b509095945050505050565b60208082526028908201527f455243313135353a204552433131353552656365697665722072656a656374656040820152676420746f6b656e7360c01b606082015260800190565b6001600160a01b0386811682528516602082015260a0604082018190526000906127bb908301866121fd565b82810360608401526127cd81866121fd565b905082810360808401526127e18185611f5a565b98975050505050505050565b6000828210156127ff576127ff612467565b500390565b60208082526023908201527f455243313135353a206275726e2066726f6d20746865207a65726f206164647260408201526265737360e81b606082015260800190565b60208082526024908201527f455243313135353a206275726e20616d6f756e7420657863656564732062616c604082015263616e636560e01b60608201526080019056fea26469706673582212208dea5e067ddac93b5a58699ea9e93c0f155b601010e7371116ea0d3b8af8eba764736f6c634300080a0033

Loading...
Loading
Loading...
Loading
[ Download: CSV Export  ]
[ Download: CSV Export  ]

A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.