ETH Price: $3,418.67 (-0.08%)

Contract

0x7973bf63218d305f908307FCD5A89b093b88C594
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Set Approval For...208483982024-09-28 10:00:4759 days ago1727517647IN
0x7973bf63...93b88C594
0 ETH0.000185047.6
Set Approval For...204952842024-08-10 2:40:23109 days ago1723257623IN
0x7973bf63...93b88C594
0 ETH0.000053461.15786163
Set Approval For...197507432024-04-28 2:09:59213 days ago1714270199IN
0x7973bf63...93b88C594
0 ETH0.000226854.91279542
Set Approval For...197469612024-04-27 13:27:47213 days ago1714224467IN
0x7973bf63...93b88C594
0 ETH0.000317086.85433002
Safe Transfer Fr...196928012024-04-19 23:37:35221 days ago1713569855IN
0x7973bf63...93b88C594
0 ETH0.000282578.09273052
Safe Transfer Fr...196927832024-04-19 23:33:59221 days ago1713569639IN
0x7973bf63...93b88C594
0 ETH0.000368267.0797534
Set Approval For...191324112024-02-01 8:30:59299 days ago1706776259IN
0x7973bf63...93b88C594
0 ETH0.0004349917.86569018
Set Approval For...187993272023-12-16 14:50:35346 days ago1702738235IN
0x7973bf63...93b88C594
0 ETH0.001390457.10544289
Set Approval For...186416992023-11-24 12:54:59368 days ago1700830499IN
0x7973bf63...93b88C594
0 ETH0.0006969328.72283508
Set Approval For...177656602023-07-24 21:31:23491 days ago1690234283IN
0x7973bf63...93b88C594
0 ETH0.001002941.19045586
Set Approval For...175515542023-06-24 19:49:23521 days ago1687636163IN
0x7973bf63...93b88C594
0 ETH0.0005575812.07527152
Safe Transfer Fr...172981252023-05-20 4:00:47557 days ago1684555247IN
0x7973bf63...93b88C594
0 ETH0.001074130.89626679
Set Approval For...171646392023-05-01 7:57:47575 days ago1682927867IN
0x7973bf63...93b88C594
0 ETH0.00185440.08839104
Set Approval For...165170992023-01-30 3:57:47667 days ago1675051067IN
0x7973bf63...93b88C594
0 ETH0.0003559114.61773994
Safe Transfer Fr...165064102023-01-28 16:08:11668 days ago1674922091IN
0x7973bf63...93b88C594
0 ETH0.0008524616.32795572
Set Approval For...164140872023-01-15 18:48:11681 days ago1673808491IN
0x7973bf63...93b88C594
0 ETH0.0004317517.73254389
Set Approval For...163784562023-01-10 19:19:35686 days ago1673378375IN
0x7973bf63...93b88C594
0 ETH0.0007265129.83894973
Set Approval For...163499532023-01-06 19:52:59690 days ago1673034779IN
0x7973bf63...93b88C594
0 ETH0.0005852424.03653848
Set Approval For...163231252023-01-03 1:59:23694 days ago1672711163IN
0x7973bf63...93b88C594
0 ETH0.0003260513.39127569
Set Approval For...162854422022-12-28 19:47:59699 days ago1672256879IN
0x7973bf63...93b88C594
0 ETH0.0004967620.40259966
Set Approval For...162785712022-12-27 20:48:35700 days ago1672174115IN
0x7973bf63...93b88C594
0 ETH0.0003956716.25075021
Safe Transfer Fr...160657092022-11-28 3:11:47730 days ago1669605107IN
0x7973bf63...93b88C594
0 ETH0.0006019911.58106265
Set Approval For...160275532022-11-22 19:13:23735 days ago1669144403IN
0x7973bf63...93b88C594
0 ETH0.000791632.51218513
Set Approval For...159652512022-11-14 2:20:35744 days ago1668392435IN
0x7973bf63...93b88C594
0 ETH0.0003520914.46078476
Set Approval For...159258692022-11-08 14:19:35749 days ago1667917175IN
0x7973bf63...93b88C594
0 ETH0.0004504318.56386252
View all transactions

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
Airdrops

Compiler Version
v0.8.15+commit.e14f2714

Optimization Enabled:
Yes with 1000 runs

Other Settings:
default evmVersion
File 1 of 17 : Airdrops.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0 <0.9.0;

import "./library/Mintable.sol";
import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/v4.6.0/contracts/token/ERC1155/extensions/ERC1155Supply.sol";
import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/v4.6.0/contracts/token/ERC1155/extensions/ERC1155Burnable.sol";
import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/v4.6.0/contracts/token/ERC1155/extensions/ERC1155Pausable.sol";
import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/v4.6.0/contracts/token/ERC721/IERC721.sol";


/**
 * @title Airdrops
 * @dev Extends ERC1155 , ERC1155Supply, ERC1155Burnable, ERC1155Pausable
 * @author @FrankNFT.eth
 */

contract Airdrops is ERC1155Supply, ERC1155Burnable, Mintable {

    mapping(uint256 => string) private tokenUri;
    mapping(uint256 => bool) private saleIsActive;
    mapping(uint256 => mapping(uint256 => bool)) tokenUsed;

    IERC721 leaderContract;
    
    string constant private _name="Kiki Exchange Center";
    string constant private _symbol="KEC";

    constructor() ERC1155("ipfs://") {
        leaderContract = IERC721(0x2f5524b0973aEA012F9Afa0DF87d3b5BBA21130E);
    }

    /**
    *  @dev set contract 
    */
    function setContract(address token) external onlyOwner {
        leaderContract = IERC721(token);
    }

    /**
    *  @dev mint a reserve
    */
    function mintReserve(uint256 token, uint256 amount) external onlyMinter {
        _mint(msg.sender, token, amount, "");
    }
    
    /**
     * @dev airdrop a specific token to a list of addresses
     */
    function airdrop(address[] calldata addresses, uint256 token, uint amt_each) external onlyMinter {
        uint length = addresses.length;
        for (uint i=0; i < length;) {
            _mint(addresses[i], token, amt_each, "");
            unchecked{ i++;}
        }
    }

    /**
    * @dev allows to mint a tokens to the wallet of the msg.sender if he holds OneOnes
    */
    function mint(uint256 token, uint[] calldata tokenIds) external{
        require(saleIsActive[token],"Sale NOT active");
        uint length = tokenIds.length;
        require(length != 0, "numberOfNfts cannot be 0");
        uint amount;
        for (uint i=0; i < length;) {
            if (!tokenUsed[token][tokenIds[i]] && leaderContract.ownerOf(tokenIds[i])==msg.sender){ 
                tokenUsed[token][tokenIds[i]]=true;
                unchecked{ amount++;}
            }
            unchecked{ i++;}
        }
        require(amount != 0, "no Valid id's");
        _mint(msg.sender, token, amount, "");
    }

    /**
     * Pause sale if active, make active if paused for a specific token
     */
    function flipSaleState(uint256 token) external onlyOwner {
        saleIsActive[token] = !saleIsActive[token];
    }

    function isSaleActive(uint256 token) external view returns(bool){
        return saleIsActive[token];
    }

   function oneOneUsed(uint256 oneOnetoken, uint256 token) external view returns(bool){
        return tokenUsed[token][oneOnetoken];
    }

    /**
    *  @dev set token base uri
    */
    function setURI(string memory baseURI) public onlyOwner {
        _setURI(baseURI);
    }
    
    /**
    *  @dev set token hash
    */
    function setTokenURI(uint256 token, string memory tokenURI) public onlyMinter {
        tokenUri[token]=tokenURI;
    }    
    
    /**
     * @dev removing the token substituion and replacing it with the implementation of the ERC721
     */
    function uri(uint256 token) public view virtual override returns (string memory) {
        string memory baseURI = super.uri(token);
        return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenUri[token])) : "";
    }
    
    ///////////// Add name and symbol for etherscan /////////////////
    function name() public pure returns (string memory) {
        return _name;
    }

    function symbol() public pure returns (string memory) {
        return _symbol;
    }

   ///////////// Overwrites /////////////
    function _beforeTokenTransfer(
        address operator,
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) internal virtual override(ERC1155, ERC1155Supply) {
        super._beforeTokenTransfer(operator, from, to, ids, amounts, data);
    }
}

File 2 of 17 : IERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721.sol)

pragma solidity ^0.8.0;

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

/**
 * @dev Required interface of an ERC721 compliant contract.
 */
interface IERC721 is IERC165 {
    /**
     * @dev Emitted when `tokenId` token is transferred from `from` to `to`.
     */
    event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);

    /**
     * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token.
     */
    event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId);

    /**
     * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets.
     */
    event ApprovalForAll(address indexed owner, address indexed operator, bool approved);

    /**
     * @dev Returns the number of tokens in ``owner``'s account.
     */
    function balanceOf(address owner) external view returns (uint256 balance);

    /**
     * @dev Returns the owner of the `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function ownerOf(uint256 tokenId) external view returns (address owner);

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId,
        bytes calldata data
    ) external;

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients
     * are aware of the ERC721 protocol to prevent tokens from being forever locked.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId
    ) external;

    /**
     * @dev Transfers `tokenId` token from `from` to `to`.
     *
     * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must be owned by `from`.
     * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) external;

    /**
     * @dev Gives permission to `to` to transfer `tokenId` token to another account.
     * The approval is cleared when the token is transferred.
     *
     * Only a single account can be approved at a time, so approving the zero address clears previous approvals.
     *
     * Requirements:
     *
     * - The caller must own the token or be an approved operator.
     * - `tokenId` must exist.
     *
     * Emits an {Approval} event.
     */
    function approve(address to, uint256 tokenId) external;

    /**
     * @dev Approve or remove `operator` as an operator for the caller.
     * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller.
     *
     * Requirements:
     *
     * - The `operator` cannot be the caller.
     *
     * Emits an {ApprovalForAll} event.
     */
    function setApprovalForAll(address operator, bool _approved) external;

    /**
     * @dev Returns the account approved for `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function getApproved(uint256 tokenId) external view returns (address operator);

    /**
     * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`.
     *
     * See {setApprovalForAll}
     */
    function isApprovedForAll(address owner, address operator) external view returns (bool);
}

File 3 of 17 : ERC1155Pausable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC1155/extensions/ERC1155Pausable.sol)

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 4 of 17 : ERC1155Burnable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC1155/extensions/ERC1155Burnable.sol)

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 5 of 17 : ERC1155Supply.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC1155/extensions/ERC1155Supply.sol)

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 whether 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-_beforeTokenTransfer}.
     */
    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);

        if (from == address(0)) {
            for (uint256 i = 0; i < ids.length; ++i) {
                _totalSupply[ids[i]] += amounts[i];
            }
        }

        if (to == address(0)) {
            for (uint256 i = 0; i < ids.length; ++i) {
                uint256 id = ids[i];
                uint256 amount = amounts[i];
                uint256 supply = _totalSupply[id];
                require(supply >= amount, "ERC1155: burn amount exceeds totalSupply");
                unchecked {
                    _totalSupply[id] = supply - amount;
                }
            }
        }
    }
}

File 6 of 17 : Mintable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.9;

import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/v4.6.0/contracts/access/Ownable.sol";
import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/v4.6.0/contracts/utils/structs/EnumerableSet.sol";

/**
 * @dev Contract module which provides a basic access control mechanism, where
 * there is an account (an minter) that can be granted exclusive access to
 * specific functions.
 *
 * By default, the minter account will be the one that deploys the contract. This
 * can later be changed with {setMinter}.
 *
 * This module is used through inheritance. It will make available the modifier
 * `onlyMinter`, which can be applied to your functions to restrict their use to
 * the owner.
 */
abstract contract Mintable is Ownable {
    using EnumerableSet for EnumerableSet.AddressSet;
    // Track registered minters
    EnumerableSet.AddressSet private _minters;

    /**
     * @dev Initializes the contract setting the deployer as the initial minter.
     */
    constructor() {
    }

    /**
     * @dev Returns the address of the current minters.
     */
    function getMinters() external view returns (address[] memory minters) {
        minters = new address[](_minters.length());
        for (uint i = 0; i < _minters.length(); i++) {
            minters[i] = _minters.at(i);
        }
        return minters;
    }

    /**
     * @dev Throws if called by any account other than the Minter.
     */
    modifier onlyMinter() {
        require(owner() == _msgSender() || _minters.contains(msg.sender), "Mintable: caller is not the owner or minter");
        _;
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Can only be called by the current owner.
     */
    function addMinter(address newMinter) external virtual onlyOwner {
        require(newMinter != address(0), "Mintable: new minter is the zero address.");
        require(!_minters.contains(newMinter),"Mintable: Minter already exists.");
        _addMinter(newMinter);
    }
    
    /**
     * @dev Revoke a minter
     */
    function revokeMinter(address minter) external onlyOwner {
        if (_minters.contains(minter)) {
            _minters.remove(minter);
        }
    }

    function _addMinter(address newMinter) private {
        _minters.add(newMinter);
    }
}

File 7 of 17 : IERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC165 standard, as defined in the
 * https://eips.ethereum.org/EIPS/eip-165[EIP].
 *
 * Implementers can declare support of contract interfaces, which can then be
 * queried by others ({ERC165Checker}).
 *
 * For an implementation, see {ERC165}.
 */
interface IERC165 {
    /**
     * @dev Returns true if this contract implements the interface defined by
     * `interfaceId`. See the corresponding
     * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section]
     * to learn more about how these ids are created.
     *
     * This function call must use less than 30 000 gas.
     */
    function supportsInterface(bytes4 interfaceId) external view returns (bool);
}

File 8 of 17 : ERC1155.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC1155/ERC1155.sol)

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 {
        _setApprovalForAll(_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();
        uint256[] memory ids = _asSingletonArray(id);
        uint256[] memory amounts = _asSingletonArray(amount);

        _beforeTokenTransfer(operator, from, to, ids, amounts, 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);

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

        _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);

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

        _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 `to`.
     *
     * Emits a {TransferSingle} event.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the
     * acceptance magic value.
     */
    function _mint(
        address to,
        uint256 id,
        uint256 amount,
        bytes memory data
    ) internal virtual {
        require(to != address(0), "ERC1155: mint to the zero address");

        address operator = _msgSender();
        uint256[] memory ids = _asSingletonArray(id);
        uint256[] memory amounts = _asSingletonArray(amount);

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

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

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

        _doSafeTransferAcceptanceCheck(operator, address(0), to, 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);

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

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

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

        address operator = _msgSender();
        uint256[] memory ids = _asSingletonArray(id);
        uint256[] memory amounts = _asSingletonArray(amount);

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

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

        emit TransferSingle(operator, from, address(0), id, amount);

        _afterTokenTransfer(operator, from, address(0), ids, amounts, "");
    }

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

        address operator = _msgSender();

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

        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: burn amount exceeds balance");
            unchecked {
                _balances[id][from] = fromBalance - amount;
            }
        }

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

        _afterTokenTransfer(operator, from, address(0), ids, amounts, "");
    }

    /**
     * @dev Approve `operator` to operate on all of `owner` tokens
     *
     * Emits a {ApprovalForAll} event.
     */
    function _setApprovalForAll(
        address owner,
        address operator,
        bool approved
    ) internal virtual {
        require(owner != operator, "ERC1155: setting approval status for self");
        _operatorApprovals[owner][operator] = approved;
        emit ApprovalForAll(owner, operator, approved);
    }

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

    /**
     * @dev Hook that is called after 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 _afterTokenTransfer(
        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.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.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 9 of 17 : Pausable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (security/Pausable.sol)

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 10 of 17 : EnumerableSet.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (utils/structs/EnumerableSet.sol)

pragma solidity ^0.8.0;

/**
 * @dev Library for managing
 * https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive
 * types.
 *
 * Sets have the following properties:
 *
 * - Elements are added, removed, and checked for existence in constant time
 * (O(1)).
 * - Elements are enumerated in O(n). No guarantees are made on the ordering.
 *
 * ```
 * contract Example {
 *     // Add the library methods
 *     using EnumerableSet for EnumerableSet.AddressSet;
 *
 *     // Declare a set state variable
 *     EnumerableSet.AddressSet private mySet;
 * }
 * ```
 *
 * As of v3.3.0, sets of type `bytes32` (`Bytes32Set`), `address` (`AddressSet`)
 * and `uint256` (`UintSet`) are supported.
 */
library EnumerableSet {
    // To implement this library for multiple types with as little code
    // repetition as possible, we write it in terms of a generic Set type with
    // bytes32 values.
    // The Set implementation uses private functions, and user-facing
    // implementations (such as AddressSet) are just wrappers around the
    // underlying Set.
    // This means that we can only create new EnumerableSets for types that fit
    // in bytes32.

    struct Set {
        // Storage of set values
        bytes32[] _values;
        // Position of the value in the `values` array, plus 1 because index 0
        // means a value is not in the set.
        mapping(bytes32 => uint256) _indexes;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function _add(Set storage set, bytes32 value) private returns (bool) {
        if (!_contains(set, value)) {
            set._values.push(value);
            // The value is stored at length-1, but we add 1 to all indexes
            // and use 0 as a sentinel value
            set._indexes[value] = set._values.length;
            return true;
        } else {
            return false;
        }
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function _remove(Set storage set, bytes32 value) private returns (bool) {
        // We read and store the value's index to prevent multiple reads from the same storage slot
        uint256 valueIndex = set._indexes[value];

        if (valueIndex != 0) {
            // Equivalent to contains(set, value)
            // To delete an element from the _values array in O(1), we swap the element to delete with the last one in
            // the array, and then remove the last element (sometimes called as 'swap and pop').
            // This modifies the order of the array, as noted in {at}.

            uint256 toDeleteIndex = valueIndex - 1;
            uint256 lastIndex = set._values.length - 1;

            if (lastIndex != toDeleteIndex) {
                bytes32 lastValue = set._values[lastIndex];

                // Move the last value to the index where the value to delete is
                set._values[toDeleteIndex] = lastValue;
                // Update the index for the moved value
                set._indexes[lastValue] = valueIndex; // Replace lastValue's index to valueIndex
            }

            // Delete the slot where the moved value was stored
            set._values.pop();

            // Delete the index for the deleted slot
            delete set._indexes[value];

            return true;
        } else {
            return false;
        }
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function _contains(Set storage set, bytes32 value) private view returns (bool) {
        return set._indexes[value] != 0;
    }

    /**
     * @dev Returns the number of values on the set. O(1).
     */
    function _length(Set storage set) private view returns (uint256) {
        return set._values.length;
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function _at(Set storage set, uint256 index) private view returns (bytes32) {
        return set._values[index];
    }

    /**
     * @dev Return the entire set in an array
     *
     * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
     * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
     * this function has an unbounded cost, and using it as part of a state-changing function may render the function
     * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
     */
    function _values(Set storage set) private view returns (bytes32[] memory) {
        return set._values;
    }

    // Bytes32Set

    struct Bytes32Set {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(Bytes32Set storage set, bytes32 value) internal returns (bool) {
        return _add(set._inner, value);
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(Bytes32Set storage set, bytes32 value) internal returns (bool) {
        return _remove(set._inner, value);
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(Bytes32Set storage set, bytes32 value) internal view returns (bool) {
        return _contains(set._inner, value);
    }

    /**
     * @dev Returns the number of values in the set. O(1).
     */
    function length(Bytes32Set storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function at(Bytes32Set storage set, uint256 index) internal view returns (bytes32) {
        return _at(set._inner, index);
    }

    /**
     * @dev Return the entire set in an array
     *
     * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
     * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
     * this function has an unbounded cost, and using it as part of a state-changing function may render the function
     * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
     */
    function values(Bytes32Set storage set) internal view returns (bytes32[] memory) {
        return _values(set._inner);
    }

    // AddressSet

    struct AddressSet {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(AddressSet storage set, address value) internal returns (bool) {
        return _add(set._inner, bytes32(uint256(uint160(value))));
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(AddressSet storage set, address value) internal returns (bool) {
        return _remove(set._inner, bytes32(uint256(uint160(value))));
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(AddressSet storage set, address value) internal view returns (bool) {
        return _contains(set._inner, bytes32(uint256(uint160(value))));
    }

    /**
     * @dev Returns the number of values in the set. O(1).
     */
    function length(AddressSet storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function at(AddressSet storage set, uint256 index) internal view returns (address) {
        return address(uint160(uint256(_at(set._inner, index))));
    }

    /**
     * @dev Return the entire set in an array
     *
     * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
     * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
     * this function has an unbounded cost, and using it as part of a state-changing function may render the function
     * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
     */
    function values(AddressSet storage set) internal view returns (address[] memory) {
        bytes32[] memory store = _values(set._inner);
        address[] memory result;

        assembly {
            result := store
        }

        return result;
    }

    // UintSet

    struct UintSet {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(UintSet storage set, uint256 value) internal returns (bool) {
        return _add(set._inner, bytes32(value));
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(UintSet storage set, uint256 value) internal returns (bool) {
        return _remove(set._inner, bytes32(value));
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(UintSet storage set, uint256 value) internal view returns (bool) {
        return _contains(set._inner, bytes32(value));
    }

    /**
     * @dev Returns the number of values on the set. O(1).
     */
    function length(UintSet storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function at(UintSet storage set, uint256 index) internal view returns (uint256) {
        return uint256(_at(set._inner, index));
    }

    /**
     * @dev Return the entire set in an array
     *
     * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
     * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
     * this function has an unbounded cost, and using it as part of a state-changing function may render the function
     * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
     */
    function values(UintSet storage set) internal view returns (uint256[] memory) {
        bytes32[] memory store = _values(set._inner);
        uint256[] memory result;

        assembly {
            result := store
        }

        return result;
    }
}

File 11 of 17 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (access/Ownable.sol)

pragma solidity ^0.8.0;

import "../utils/Context.sol";

/**
 * @dev Contract module which provides a basic access control mechanism, where
 * there is an account (an owner) that can be granted exclusive access to
 * specific functions.
 *
 * By default, the owner account will be the one that deploys the contract. This
 * can later be changed with {transferOwnership}.
 *
 * This module is used through inheritance. It will make available the modifier
 * `onlyOwner`, which can be applied to your functions to restrict their use to
 * the owner.
 */
abstract contract Ownable is Context {
    address private _owner;

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

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

    /**
     * @dev 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 {
        _transferOwnership(address(0));
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public virtual onlyOwner {
        require(newOwner != address(0), "Ownable: new owner is the zero address");
        _transferOwnership(newOwner);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Internal function without access restriction.
     */
    function _transferOwnership(address newOwner) internal virtual {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

File 12 of 17 : ERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol)

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 13 of 17 : Context.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)

pragma solidity ^0.8.0;

/**
 * @dev Provides information about the current execution context, including the
 * sender of the transaction and its data. While these are generally available
 * via msg.sender and msg.data, they should not be accessed in such a direct
 * manner, since when dealing with meta-transactions the account sending and
 * paying for execution may not be the actual sender (as far as an application
 * is concerned).
 *
 * This contract is only required for intermediate, library-like contracts.
 */
abstract contract Context {
    function _msgSender() internal view virtual returns (address) {
        return msg.sender;
    }

    function _msgData() internal view virtual returns (bytes calldata) {
        return msg.data;
    }
}

File 14 of 17 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol)

pragma solidity ^0.8.1;

/**
 * @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
     * ====
     *
     * [IMPORTANT]
     * ====
     * You shouldn't rely on `isContract` to protect against flash loan attacks!
     *
     * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets
     * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract
     * constructor.
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize/address.code.length, which returns 0
        // for contracts in construction, since the code is only stored at the end
        // of the constructor execution.

        return account.code.length > 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);
    }

    /**
     * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason using the provided one.
     *
     * _Available since v4.3._
     */
    function verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal 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 15 of 17 : IERC1155MetadataURI.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC1155/extensions/IERC1155MetadataURI.sol)

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 16 of 17 : IERC1155Receiver.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC1155/IERC1155Receiver.sol)

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.
     *
     * NOTE: 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.
     *
     * NOTE: 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 17 of 17 : IERC1155.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC1155/IERC1155.sol)

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

Settings
{
  "optimizer": {
    "enabled": true,
    "runs": 1000
  },
  "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":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"},{"inputs":[{"internalType":"address","name":"newMinter","type":"address"}],"name":"addMinter","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"addresses","type":"address[]"},{"internalType":"uint256","name":"token","type":"uint256"},{"internalType":"uint256","name":"amt_each","type":"uint256"}],"name":"airdrop","outputs":[],"stateMutability":"nonpayable","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":[{"internalType":"uint256","name":"token","type":"uint256"}],"name":"flipSaleState","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"getMinters","outputs":[{"internalType":"address[]","name":"minters","type":"address[]"}],"stateMutability":"view","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":[{"internalType":"uint256","name":"token","type":"uint256"}],"name":"isSaleActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"token","type":"uint256"},{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"token","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"mintReserve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"oneOnetoken","type":"uint256"},{"internalType":"uint256","name":"token","type":"uint256"}],"name":"oneOneUsed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"minter","type":"address"}],"name":"revokeMinter","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":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"}],"name":"setContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"token","type":"uint256"},{"internalType":"string","name":"tokenURI","type":"string"}],"name":"setTokenURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"baseURI","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":[{"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":[{"internalType":"uint256","name":"token","type":"uint256"}],"name":"uri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"}]

60806040523480156200001157600080fd5b50604080518082019091526007815266697066733a2f2f60c81b60208201526200003b8162000073565b50620000473362000085565b600a80546001600160a01b031916732f5524b0973aea012f9afa0df87d3b5bba21130e17905562000248565b60026200008182826200017c565b5050565b600480546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b634e487b7160e01b600052604160045260246000fd5b600181811c908216806200010257607f821691505b6020821081036200012357634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200017757600081815260208120601f850160051c81016020861015620001525750805b601f850160051c820191505b8181101562000173578281556001016200015e565b5050505b505050565b81516001600160401b03811115620001985762000198620000d7565b620001b081620001a98454620000ed565b8462000129565b602080601f831160018114620001e85760008415620001cf5750858301515b600019600386901b1c1916600185901b17855562000173565b600085815260208120601f198616915b828110156200021957888601518255948401946001909101908401620001f8565b5085821015620002385787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b6130f280620002586000396000f3fe608060405234801561001057600080fd5b50600436106101ce5760003560e01c80636b32810b11610104578063a496dedf116100a2578063e985e9c511610071578063e985e9c51461047a578063f242432a146104b6578063f2fde38b146104c9578063f5298aca146104dc57600080fd5b8063a496dedf14610407578063bd85b0391461041a578063c52c10281461043a578063cfbd48851461046757600080fd5b80638da5cb5b116100de5780638da5cb5b1461038d57806395d89b41146103a8578063983b2d56146103e1578063a22cb465146103f457600080fd5b80636b32810b1461035d578063715018a61461037257806375f890ab1461037a57600080fd5b80632d69044f116101715780634e1273f41161014b5780634e1273f4146102f55780634f558e79146103155780635e2da7e2146103375780636b20c4541461034a57600080fd5b80632d69044f146102bc5780632eb2c2d6146102cf578063313112ce146102e257600080fd5b806306fdde03116101ad57806306fdde03146102315780630e89341c14610273578063162094c414610286578063285f12391461029957600080fd5b8062fdd58e146101d357806301ffc9a7146101f957806302fe53051461021c575b600080fd5b6101e66101e136600461254f565b6104ef565b6040519081526020015b60405180910390f35b61020c610207366004612591565b61059b565b60405190151581526020016101f0565b61022f61022a366004612665565b610636565b005b60408051808201909152601481527f4b696b692045786368616e67652043656e74657200000000000000000000000060208201525b6040516101f091906126fa565b61026661028136600461270d565b61069c565b61022f610294366004612726565b610705565b61020c6102a736600461270d565b60009081526008602052604090205460ff1690565b61022f6102ca3660046127b9565b6107a1565b61022f6102dd36600461289a565b610a11565b61022f6102f036600461270d565b610aac565b610308610303366004612948565b610b26565b6040516101f09190612a46565b61020c61032336600461270d565b600090815260036020526040902054151590565b61022f610345366004612a59565b610c64565b61022f610358366004612a7b565b610d02565b610365610d87565b6040516101f09190612af1565b61022f610e36565b61022f610388366004612b3e565b610e9c565b6004546040516001600160a01b0390911681526020016101f0565b60408051808201909152600381527f4b454300000000000000000000000000000000000000000000000000000000006020820152610266565b61022f6103ef366004612b3e565b610f25565b61022f610402366004612b5b565b61105c565b61022f610415366004612b99565b611067565b6101e661042836600461270d565b60009081526003602052604090205490565b61020c610448366004612a59565b6000908152600960209081526040808320938352929052205460ff1690565b61022f610475366004612b3e565b611143565b61020c610488366004612bea565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205460ff1690565b61022f6104c4366004612c18565b6111b8565b61022f6104d7366004612b3e565b61123f565b61022f6104ea366004612c81565b61131e565b60006001600160a01b0383166105725760405162461bcd60e51b815260206004820152602b60248201527f455243313135353a2062616c616e636520717565727920666f7220746865207a60448201527f65726f206164647265737300000000000000000000000000000000000000000060648201526084015b60405180910390fd5b506000818152602081815260408083206001600160a01b03861684529091529020545b92915050565b60006001600160e01b031982167fd9b67a260000000000000000000000000000000000000000000000000000000014806105fe57506001600160e01b031982167f0e89341c00000000000000000000000000000000000000000000000000000000145b8061059557507f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b0319831614610595565b6004546001600160a01b031633146106905760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610569565b610699816113a3565b50565b606060006106a9836113af565b905060008151116106c957604051806020016040528060008152506106fe565b80600760008581526020019081526020016000206040516020016106ee929190612cf0565b6040516020818303038152906040525b9392505050565b6004546001600160a01b03163314806107245750610724600533611443565b6107845760405162461bcd60e51b815260206004820152602b60248201527f4d696e7461626c653a2063616c6c6572206973206e6f7420746865206f776e6560448201526a391037b91036b4b73a32b960a91b6064820152608401610569565b600082815260076020526040902061079c8282612dc3565b505050565b60008381526008602052604090205460ff166107ff5760405162461bcd60e51b815260206004820152600f60248201527f53616c65204e4f542061637469766500000000000000000000000000000000006044820152606401610569565b8060008190036108515760405162461bcd60e51b815260206004820152601860248201527f6e756d6265724f664e6674732063616e6e6f74206265203000000000000000006044820152606401610569565b6000805b8281101561099e5760008681526009602052604081209086868481811061087e5761087e612e83565b602090810292909201358352508101919091526040016000205460ff161580156109395750600a5433906001600160a01b0316636352211e8787858181106108c8576108c8612e83565b905060200201356040518263ffffffff1660e01b81526004016108ed91815260200190565b602060405180830381865afa15801561090a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061092e9190612e99565b6001600160a01b0316145b1561099657600086815260096020526040812060019187878581811061096157610961612e83565b90506020020135815260200190815260200160002060006101000a81548160ff02191690831515021790555081806001019250505b600101610855565b50806000036109ef5760405162461bcd60e51b815260206004820152600d60248201527f6e6f2056616c69642069642773000000000000000000000000000000000000006044820152606401610569565b610a0a33868360405180602001604052806000815250611465565b5050505050565b6001600160a01b038516331480610a2d5750610a2d8533610488565b610a9f5760405162461bcd60e51b815260206004820152603260248201527f455243313135353a207472616e736665722063616c6c6572206973206e6f742060448201527f6f776e6572206e6f7220617070726f76656400000000000000000000000000006064820152608401610569565b610a0a85858585856115a4565b6004546001600160a01b03163314610b065760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610569565b6000908152600860205260409020805460ff19811660ff90911615179055565b60608151835114610b9f5760405162461bcd60e51b815260206004820152602960248201527f455243313135353a206163636f756e747320616e6420696473206c656e67746860448201527f206d69736d6174636800000000000000000000000000000000000000000000006064820152608401610569565b6000835167ffffffffffffffff811115610bbb57610bbb6125ae565b604051908082528060200260200182016040528015610be4578160200160208202803683370190505b50905060005b8451811015610c5c57610c2f858281518110610c0857610c08612e83565b6020026020010151858381518110610c2257610c22612e83565b60200260200101516104ef565b828281518110610c4157610c41612e83565b6020908102919091010152610c5581612ecc565b9050610bea565b509392505050565b6004546001600160a01b0316331480610c835750610c83600533611443565b610ce35760405162461bcd60e51b815260206004820152602b60248201527f4d696e7461626c653a2063616c6c6572206973206e6f7420746865206f776e6560448201526a391037b91036b4b73a32b960a91b6064820152608401610569565b610cfe33838360405180602001604052806000815250611465565b5050565b6001600160a01b038316331480610d1e5750610d1e8333610488565b610d7c5760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260448201526808185c1c1c9bdd995960ba1b6064820152608401610569565b61079c838383611808565b6060610d936005611a5f565b67ffffffffffffffff811115610dab57610dab6125ae565b604051908082528060200260200182016040528015610dd4578160200160208202803683370190505b50905060005b610de46005611a5f565b811015610e3257610df6600582611a69565b828281518110610e0857610e08612e83565b6001600160a01b039092166020928302919091019091015280610e2a81612ecc565b915050610dda565b5090565b6004546001600160a01b03163314610e905760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610569565b610e9a6000611a75565b565b6004546001600160a01b03163314610ef65760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610569565b600a805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b6004546001600160a01b03163314610f7f5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610569565b6001600160a01b038116610ffb5760405162461bcd60e51b815260206004820152602960248201527f4d696e7461626c653a206e6577206d696e74657220697320746865207a65726f60448201527f20616464726573732e00000000000000000000000000000000000000000000006064820152608401610569565b611006600582611443565b156110535760405162461bcd60e51b815260206004820181905260248201527f4d696e7461626c653a204d696e74657220616c7265616479206578697374732e6044820152606401610569565b61069981611ad4565b610cfe338383611adf565b6004546001600160a01b03163314806110865750611086600533611443565b6110e65760405162461bcd60e51b815260206004820152602b60248201527f4d696e7461626c653a2063616c6c6572206973206e6f7420746865206f776e6560448201526a391037b91036b4b73a32b960a91b6064820152608401610569565b8260005b8181101561113b5761113386868381811061110757611107612e83565b905060200201602081019061111c9190612b3e565b858560405180602001604052806000815250611465565b6001016110ea565b505050505050565b6004546001600160a01b0316331461119d5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610569565b6111a8600582611443565b1561069957610cfe600582611bd3565b6001600160a01b0385163314806111d457506111d48533610488565b6112325760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260448201526808185c1c1c9bdd995960ba1b6064820152608401610569565b610a0a8585858585611be8565b6004546001600160a01b031633146112995760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610569565b6001600160a01b0381166113155760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610569565b61069981611a75565b6001600160a01b03831633148061133a575061133a8333610488565b6113985760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260448201526808185c1c1c9bdd995960ba1b6064820152608401610569565b61079c838383611da1565b6002610cfe8282612dc3565b6060600280546113be90612cb6565b80601f01602080910402602001604051908101604052809291908181526020018280546113ea90612cb6565b80156114375780601f1061140c57610100808354040283529160200191611437565b820191906000526020600020905b81548152906001019060200180831161141a57829003601f168201915b50505050509050919050565b6001600160a01b038116600090815260018301602052604081205415156106fe565b6001600160a01b0384166114e15760405162461bcd60e51b815260206004820152602160248201527f455243313135353a206d696e7420746f20746865207a65726f2061646472657360448201527f73000000000000000000000000000000000000000000000000000000000000006064820152608401610569565b3360006114ed85611f31565b905060006114fa85611f31565b905061150b83600089858589611f7c565b6000868152602081815260408083206001600160a01b038b1684529091528120805487929061153b908490612ee5565b909155505060408051878152602081018790526001600160a01b03808a1692600092918716917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a461159b83600089898989611f8a565b50505050505050565b81518351146116065760405162461bcd60e51b815260206004820152602860248201527f455243313135353a2069647320616e6420616d6f756e7473206c656e677468206044820152670dad2e6dac2e8c6d60c31b6064820152608401610569565b6001600160a01b03841661166a5760405162461bcd60e51b815260206004820152602560248201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604482015264647265737360d81b6064820152608401610569565b33611679818787878787611f7c565b60005b84518110156117a257600085828151811061169957611699612e83565b6020026020010151905060008583815181106116b7576116b7612e83565b602090810291909101810151600084815280835260408082206001600160a01b038e16835290935291909120549091508181101561174a5760405162461bcd60e51b815260206004820152602a60248201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60448201526939103a3930b739b332b960b11b6064820152608401610569565b6000838152602081815260408083206001600160a01b038e8116855292528083208585039055908b16825281208054849290611787908490612ee5565b925050819055505050508061179b90612ecc565b905061167c565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb87876040516117f2929190612efd565b60405180910390a461113b81878787878761212f565b6001600160a01b03831661186a5760405162461bcd60e51b815260206004820152602360248201527f455243313135353a206275726e2066726f6d20746865207a65726f206164647260448201526265737360e81b6064820152608401610569565b80518251146118cc5760405162461bcd60e51b815260206004820152602860248201527f455243313135353a2069647320616e6420616d6f756e7473206c656e677468206044820152670dad2e6dac2e8c6d60c31b6064820152608401610569565b60003390506118ef81856000868660405180602001604052806000815250611f7c565b60005b83518110156119f057600084828151811061190f5761190f612e83565b60200260200101519050600084838151811061192d5761192d612e83565b602090810291909101810151600084815280835260408082206001600160a01b038c1683529093529190912054909150818110156119b95760405162461bcd60e51b8152602060048201526024808201527f455243313135353a206275726e20616d6f756e7420657863656564732062616c604482015263616e636560e01b6064820152608401610569565b6000928352602083815260408085206001600160a01b038b16865290915290922091039055806119e881612ecc565b9150506118f2565b5060006001600160a01b0316846001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8686604051611a41929190612efd565b60405180910390a46040805160208101909152600090525b50505050565b6000610595825490565b60006106fe838361222b565b600480546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b610cfe600582612255565b816001600160a01b0316836001600160a01b031603611b665760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2073657474696e6720617070726f76616c2073746174757360448201527f20666f722073656c6600000000000000000000000000000000000000000000006064820152608401610569565b6001600160a01b03838116600081815260016020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b60006106fe836001600160a01b03841661226a565b6001600160a01b038416611c4c5760405162461bcd60e51b815260206004820152602560248201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604482015264647265737360d81b6064820152608401610569565b336000611c5885611f31565b90506000611c6585611f31565b9050611c75838989858589611f7c565b6000868152602081815260408083206001600160a01b038c16845290915290205485811015611cf95760405162461bcd60e51b815260206004820152602a60248201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60448201526939103a3930b739b332b960b11b6064820152608401610569565b6000878152602081815260408083206001600160a01b038d8116855292528083208985039055908a16825281208054889290611d36908490612ee5565b909155505060408051888152602081018890526001600160a01b03808b16928c821692918816917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4611d96848a8a8a8a8a611f8a565b505050505050505050565b6001600160a01b038316611e035760405162461bcd60e51b815260206004820152602360248201527f455243313135353a206275726e2066726f6d20746865207a65726f206164647260448201526265737360e81b6064820152608401610569565b336000611e0f84611f31565b90506000611e1c84611f31565b9050611e3c83876000858560405180602001604052806000815250611f7c565b6000858152602081815260408083206001600160a01b038a16845290915290205484811015611eb95760405162461bcd60e51b8152602060048201526024808201527f455243313135353a206275726e20616d6f756e7420657863656564732062616c604482015263616e636560e01b6064820152608401610569565b6000868152602081815260408083206001600160a01b038b81168086529184528285208a8703905582518b81529384018a90529092908816917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a460408051602081019091526000905261159b565b60408051600180825281830190925260609160009190602080830190803683370190505090508281600081518110611f6b57611f6b612e83565b602090810291909101015292915050565b61113b86868686868661235d565b6001600160a01b0384163b1561113b5760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e6190611fce9089908990889088908890600401612f2b565b6020604051808303816000875af1925050508015612009575060408051601f3d908101601f1916820190925261200691810190612f6e565b60015b6120be57612015612f8b565b806308c379a00361204e5750612029612fa7565b806120345750612050565b8060405162461bcd60e51b815260040161056991906126fa565b505b60405162461bcd60e51b815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e204552433131353560448201527f526563656976657220696d706c656d656e7465720000000000000000000000006064820152608401610569565b6001600160e01b0319811663f23a6e6160e01b1461159b5760405162461bcd60e51b815260206004820152602860248201527f455243313135353a204552433131353552656365697665722072656a656374656044820152676420746f6b656e7360c01b6064820152608401610569565b6001600160a01b0384163b1561113b5760405163bc197c8160e01b81526001600160a01b0385169063bc197c81906121739089908990889088908890600401613031565b6020604051808303816000875af19250505080156121ae575060408051601f3d908101601f191682019092526121ab91810190612f6e565b60015b6121ba57612015612f8b565b6001600160e01b0319811663bc197c8160e01b1461159b5760405162461bcd60e51b815260206004820152602860248201527f455243313135353a204552433131353552656365697665722072656a656374656044820152676420746f6b656e7360c01b6064820152608401610569565b600082600001828154811061224257612242612e83565b9060005260206000200154905092915050565b60006106fe836001600160a01b0384166124eb565b6000818152600183016020526040812054801561235357600061228e60018361308f565b85549091506000906122a29060019061308f565b90508181146123075760008660000182815481106122c2576122c2612e83565b90600052602060002001549050808760000184815481106122e5576122e5612e83565b6000918252602080832090910192909255918252600188019052604090208390555b8554869080612318576123186130a6565b600190038181906000526020600020016000905590558560010160008681526020019081526020016000206000905560019350505050610595565b6000915050610595565b6001600160a01b0385166123e45760005b83518110156123e25782818151811061238957612389612e83565b6020026020010151600360008684815181106123a7576123a7612e83565b6020026020010151815260200190815260200160002060008282546123cc9190612ee5565b909155506123db905081612ecc565b905061236e565b505b6001600160a01b03841661113b5760005b835181101561159b57600084828151811061241257612412612e83565b60200260200101519050600084838151811061243057612430612e83565b60200260200101519050600060036000848152602001908152602001600020549050818110156124c85760405162461bcd60e51b815260206004820152602860248201527f455243313135353a206275726e20616d6f756e74206578636565647320746f7460448201527f616c537570706c790000000000000000000000000000000000000000000000006064820152608401610569565b600092835260036020526040909220910390556124e481612ecc565b90506123f5565b600081815260018301602052604081205461253257508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155610595565b506000610595565b6001600160a01b038116811461069957600080fd5b6000806040838503121561256257600080fd5b823561256d8161253a565b946020939093013593505050565b6001600160e01b03198116811461069957600080fd5b6000602082840312156125a357600080fd5b81356106fe8161257b565b634e487b7160e01b600052604160045260246000fd5b601f8201601f1916810167ffffffffffffffff811182821017156125ea576125ea6125ae565b6040525050565b600082601f83011261260257600080fd5b813567ffffffffffffffff81111561261c5761261c6125ae565b604051612633601f8301601f1916602001826125c4565b81815284602083860101111561264857600080fd5b816020850160208301376000918101602001919091529392505050565b60006020828403121561267757600080fd5b813567ffffffffffffffff81111561268e57600080fd5b61269a848285016125f1565b949350505050565b60005b838110156126bd5781810151838201526020016126a5565b83811115611a595750506000910152565b600081518084526126e68160208601602086016126a2565b601f01601f19169290920160200192915050565b6020815260006106fe60208301846126ce565b60006020828403121561271f57600080fd5b5035919050565b6000806040838503121561273957600080fd5b82359150602083013567ffffffffffffffff81111561275757600080fd5b612763858286016125f1565b9150509250929050565b60008083601f84011261277f57600080fd5b50813567ffffffffffffffff81111561279757600080fd5b6020830191508360208260051b85010111156127b257600080fd5b9250929050565b6000806000604084860312156127ce57600080fd5b83359250602084013567ffffffffffffffff8111156127ec57600080fd5b6127f88682870161276d565b9497909650939450505050565b600067ffffffffffffffff82111561281f5761281f6125ae565b5060051b60200190565b600082601f83011261283a57600080fd5b8135602061284782612805565b60405161285482826125c4565b83815260059390931b850182019282810191508684111561287457600080fd5b8286015b8481101561288f5780358352918301918301612878565b509695505050505050565b600080600080600060a086880312156128b257600080fd5b85356128bd8161253a565b945060208601356128cd8161253a565b9350604086013567ffffffffffffffff808211156128ea57600080fd5b6128f689838a01612829565b9450606088013591508082111561290c57600080fd5b61291889838a01612829565b9350608088013591508082111561292e57600080fd5b5061293b888289016125f1565b9150509295509295909350565b6000806040838503121561295b57600080fd5b823567ffffffffffffffff8082111561297357600080fd5b818501915085601f83011261298757600080fd5b8135602061299482612805565b6040516129a182826125c4565b83815260059390931b85018201928281019150898411156129c157600080fd5b948201945b838610156129e85785356129d98161253a565b825294820194908201906129c6565b965050860135925050808211156129fe57600080fd5b5061276385828601612829565b600081518084526020808501945080840160005b83811015612a3b57815187529582019590820190600101612a1f565b509495945050505050565b6020815260006106fe6020830184612a0b565b60008060408385031215612a6c57600080fd5b50508035926020909101359150565b600080600060608486031215612a9057600080fd5b8335612a9b8161253a565b9250602084013567ffffffffffffffff80821115612ab857600080fd5b612ac487838801612829565b93506040860135915080821115612ada57600080fd5b50612ae786828701612829565b9150509250925092565b6020808252825182820181905260009190848201906040850190845b81811015612b325783516001600160a01b031683529284019291840191600101612b0d565b50909695505050505050565b600060208284031215612b5057600080fd5b81356106fe8161253a565b60008060408385031215612b6e57600080fd5b8235612b798161253a565b915060208301358015158114612b8e57600080fd5b809150509250929050565b60008060008060608587031215612baf57600080fd5b843567ffffffffffffffff811115612bc657600080fd5b612bd28782880161276d565b90989097506020870135966040013595509350505050565b60008060408385031215612bfd57600080fd5b8235612c088161253a565b91506020830135612b8e8161253a565b600080600080600060a08688031215612c3057600080fd5b8535612c3b8161253a565b94506020860135612c4b8161253a565b93506040860135925060608601359150608086013567ffffffffffffffff811115612c7557600080fd5b61293b888289016125f1565b600080600060608486031215612c9657600080fd5b8335612ca18161253a565b95602085013595506040909401359392505050565b600181811c90821680612cca57607f821691505b602082108103612cea57634e487b7160e01b600052602260045260246000fd5b50919050565b600083516020612d0382858389016126a2565b818401915060008554612d1581612cb6565b60018281168015612d2d5760018114612d4257612d6e565b60ff1984168752821515830287019450612d6e565b896000528560002060005b84811015612d6657815489820152908301908701612d4d565b505082870194505b50929998505050505050505050565b601f82111561079c57600081815260208120601f850160051c81016020861015612da45750805b601f850160051c820191505b8181101561113b57828155600101612db0565b815167ffffffffffffffff811115612ddd57612ddd6125ae565b612df181612deb8454612cb6565b84612d7d565b602080601f831160018114612e265760008415612e0e5750858301515b600019600386901b1c1916600185901b17855561113b565b600085815260208120601f198616915b82811015612e5557888601518255948401946001909101908401612e36565b5085821015612e735787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b634e487b7160e01b600052603260045260246000fd5b600060208284031215612eab57600080fd5b81516106fe8161253a565b634e487b7160e01b600052601160045260246000fd5b600060018201612ede57612ede612eb6565b5060010190565b60008219821115612ef857612ef8612eb6565b500190565b604081526000612f106040830185612a0b565b8281036020840152612f228185612a0b565b95945050505050565b60006001600160a01b03808816835280871660208401525084604083015283606083015260a06080830152612f6360a08301846126ce565b979650505050505050565b600060208284031215612f8057600080fd5b81516106fe8161257b565b600060033d1115612fa45760046000803e5060005160e01c5b90565b600060443d1015612fb55790565b6040516003193d81016004833e81513d67ffffffffffffffff8160248401118184111715612fe557505050505090565b8285019150815181811115612ffd5750505050505090565b843d87010160208285010111156130175750505050505090565b613026602082860101876125c4565b509095945050505050565b60006001600160a01b03808816835280871660208401525060a0604083015261305d60a0830186612a0b565b828103606084015261306f8186612a0b565b9050828103608084015261308381856126ce565b98975050505050505050565b6000828210156130a1576130a1612eb6565b500390565b634e487b7160e01b600052603160045260246000fdfea264697066735822122044dab784b9bbc4fc73b70cfb40447fc03a4b2e6ed85ac8324c99070cb26ad9c464736f6c634300080f0033

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106101ce5760003560e01c80636b32810b11610104578063a496dedf116100a2578063e985e9c511610071578063e985e9c51461047a578063f242432a146104b6578063f2fde38b146104c9578063f5298aca146104dc57600080fd5b8063a496dedf14610407578063bd85b0391461041a578063c52c10281461043a578063cfbd48851461046757600080fd5b80638da5cb5b116100de5780638da5cb5b1461038d57806395d89b41146103a8578063983b2d56146103e1578063a22cb465146103f457600080fd5b80636b32810b1461035d578063715018a61461037257806375f890ab1461037a57600080fd5b80632d69044f116101715780634e1273f41161014b5780634e1273f4146102f55780634f558e79146103155780635e2da7e2146103375780636b20c4541461034a57600080fd5b80632d69044f146102bc5780632eb2c2d6146102cf578063313112ce146102e257600080fd5b806306fdde03116101ad57806306fdde03146102315780630e89341c14610273578063162094c414610286578063285f12391461029957600080fd5b8062fdd58e146101d357806301ffc9a7146101f957806302fe53051461021c575b600080fd5b6101e66101e136600461254f565b6104ef565b6040519081526020015b60405180910390f35b61020c610207366004612591565b61059b565b60405190151581526020016101f0565b61022f61022a366004612665565b610636565b005b60408051808201909152601481527f4b696b692045786368616e67652043656e74657200000000000000000000000060208201525b6040516101f091906126fa565b61026661028136600461270d565b61069c565b61022f610294366004612726565b610705565b61020c6102a736600461270d565b60009081526008602052604090205460ff1690565b61022f6102ca3660046127b9565b6107a1565b61022f6102dd36600461289a565b610a11565b61022f6102f036600461270d565b610aac565b610308610303366004612948565b610b26565b6040516101f09190612a46565b61020c61032336600461270d565b600090815260036020526040902054151590565b61022f610345366004612a59565b610c64565b61022f610358366004612a7b565b610d02565b610365610d87565b6040516101f09190612af1565b61022f610e36565b61022f610388366004612b3e565b610e9c565b6004546040516001600160a01b0390911681526020016101f0565b60408051808201909152600381527f4b454300000000000000000000000000000000000000000000000000000000006020820152610266565b61022f6103ef366004612b3e565b610f25565b61022f610402366004612b5b565b61105c565b61022f610415366004612b99565b611067565b6101e661042836600461270d565b60009081526003602052604090205490565b61020c610448366004612a59565b6000908152600960209081526040808320938352929052205460ff1690565b61022f610475366004612b3e565b611143565b61020c610488366004612bea565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205460ff1690565b61022f6104c4366004612c18565b6111b8565b61022f6104d7366004612b3e565b61123f565b61022f6104ea366004612c81565b61131e565b60006001600160a01b0383166105725760405162461bcd60e51b815260206004820152602b60248201527f455243313135353a2062616c616e636520717565727920666f7220746865207a60448201527f65726f206164647265737300000000000000000000000000000000000000000060648201526084015b60405180910390fd5b506000818152602081815260408083206001600160a01b03861684529091529020545b92915050565b60006001600160e01b031982167fd9b67a260000000000000000000000000000000000000000000000000000000014806105fe57506001600160e01b031982167f0e89341c00000000000000000000000000000000000000000000000000000000145b8061059557507f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b0319831614610595565b6004546001600160a01b031633146106905760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610569565b610699816113a3565b50565b606060006106a9836113af565b905060008151116106c957604051806020016040528060008152506106fe565b80600760008581526020019081526020016000206040516020016106ee929190612cf0565b6040516020818303038152906040525b9392505050565b6004546001600160a01b03163314806107245750610724600533611443565b6107845760405162461bcd60e51b815260206004820152602b60248201527f4d696e7461626c653a2063616c6c6572206973206e6f7420746865206f776e6560448201526a391037b91036b4b73a32b960a91b6064820152608401610569565b600082815260076020526040902061079c8282612dc3565b505050565b60008381526008602052604090205460ff166107ff5760405162461bcd60e51b815260206004820152600f60248201527f53616c65204e4f542061637469766500000000000000000000000000000000006044820152606401610569565b8060008190036108515760405162461bcd60e51b815260206004820152601860248201527f6e756d6265724f664e6674732063616e6e6f74206265203000000000000000006044820152606401610569565b6000805b8281101561099e5760008681526009602052604081209086868481811061087e5761087e612e83565b602090810292909201358352508101919091526040016000205460ff161580156109395750600a5433906001600160a01b0316636352211e8787858181106108c8576108c8612e83565b905060200201356040518263ffffffff1660e01b81526004016108ed91815260200190565b602060405180830381865afa15801561090a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061092e9190612e99565b6001600160a01b0316145b1561099657600086815260096020526040812060019187878581811061096157610961612e83565b90506020020135815260200190815260200160002060006101000a81548160ff02191690831515021790555081806001019250505b600101610855565b50806000036109ef5760405162461bcd60e51b815260206004820152600d60248201527f6e6f2056616c69642069642773000000000000000000000000000000000000006044820152606401610569565b610a0a33868360405180602001604052806000815250611465565b5050505050565b6001600160a01b038516331480610a2d5750610a2d8533610488565b610a9f5760405162461bcd60e51b815260206004820152603260248201527f455243313135353a207472616e736665722063616c6c6572206973206e6f742060448201527f6f776e6572206e6f7220617070726f76656400000000000000000000000000006064820152608401610569565b610a0a85858585856115a4565b6004546001600160a01b03163314610b065760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610569565b6000908152600860205260409020805460ff19811660ff90911615179055565b60608151835114610b9f5760405162461bcd60e51b815260206004820152602960248201527f455243313135353a206163636f756e747320616e6420696473206c656e67746860448201527f206d69736d6174636800000000000000000000000000000000000000000000006064820152608401610569565b6000835167ffffffffffffffff811115610bbb57610bbb6125ae565b604051908082528060200260200182016040528015610be4578160200160208202803683370190505b50905060005b8451811015610c5c57610c2f858281518110610c0857610c08612e83565b6020026020010151858381518110610c2257610c22612e83565b60200260200101516104ef565b828281518110610c4157610c41612e83565b6020908102919091010152610c5581612ecc565b9050610bea565b509392505050565b6004546001600160a01b0316331480610c835750610c83600533611443565b610ce35760405162461bcd60e51b815260206004820152602b60248201527f4d696e7461626c653a2063616c6c6572206973206e6f7420746865206f776e6560448201526a391037b91036b4b73a32b960a91b6064820152608401610569565b610cfe33838360405180602001604052806000815250611465565b5050565b6001600160a01b038316331480610d1e5750610d1e8333610488565b610d7c5760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260448201526808185c1c1c9bdd995960ba1b6064820152608401610569565b61079c838383611808565b6060610d936005611a5f565b67ffffffffffffffff811115610dab57610dab6125ae565b604051908082528060200260200182016040528015610dd4578160200160208202803683370190505b50905060005b610de46005611a5f565b811015610e3257610df6600582611a69565b828281518110610e0857610e08612e83565b6001600160a01b039092166020928302919091019091015280610e2a81612ecc565b915050610dda565b5090565b6004546001600160a01b03163314610e905760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610569565b610e9a6000611a75565b565b6004546001600160a01b03163314610ef65760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610569565b600a805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b6004546001600160a01b03163314610f7f5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610569565b6001600160a01b038116610ffb5760405162461bcd60e51b815260206004820152602960248201527f4d696e7461626c653a206e6577206d696e74657220697320746865207a65726f60448201527f20616464726573732e00000000000000000000000000000000000000000000006064820152608401610569565b611006600582611443565b156110535760405162461bcd60e51b815260206004820181905260248201527f4d696e7461626c653a204d696e74657220616c7265616479206578697374732e6044820152606401610569565b61069981611ad4565b610cfe338383611adf565b6004546001600160a01b03163314806110865750611086600533611443565b6110e65760405162461bcd60e51b815260206004820152602b60248201527f4d696e7461626c653a2063616c6c6572206973206e6f7420746865206f776e6560448201526a391037b91036b4b73a32b960a91b6064820152608401610569565b8260005b8181101561113b5761113386868381811061110757611107612e83565b905060200201602081019061111c9190612b3e565b858560405180602001604052806000815250611465565b6001016110ea565b505050505050565b6004546001600160a01b0316331461119d5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610569565b6111a8600582611443565b1561069957610cfe600582611bd3565b6001600160a01b0385163314806111d457506111d48533610488565b6112325760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260448201526808185c1c1c9bdd995960ba1b6064820152608401610569565b610a0a8585858585611be8565b6004546001600160a01b031633146112995760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610569565b6001600160a01b0381166113155760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610569565b61069981611a75565b6001600160a01b03831633148061133a575061133a8333610488565b6113985760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260448201526808185c1c1c9bdd995960ba1b6064820152608401610569565b61079c838383611da1565b6002610cfe8282612dc3565b6060600280546113be90612cb6565b80601f01602080910402602001604051908101604052809291908181526020018280546113ea90612cb6565b80156114375780601f1061140c57610100808354040283529160200191611437565b820191906000526020600020905b81548152906001019060200180831161141a57829003601f168201915b50505050509050919050565b6001600160a01b038116600090815260018301602052604081205415156106fe565b6001600160a01b0384166114e15760405162461bcd60e51b815260206004820152602160248201527f455243313135353a206d696e7420746f20746865207a65726f2061646472657360448201527f73000000000000000000000000000000000000000000000000000000000000006064820152608401610569565b3360006114ed85611f31565b905060006114fa85611f31565b905061150b83600089858589611f7c565b6000868152602081815260408083206001600160a01b038b1684529091528120805487929061153b908490612ee5565b909155505060408051878152602081018790526001600160a01b03808a1692600092918716917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a461159b83600089898989611f8a565b50505050505050565b81518351146116065760405162461bcd60e51b815260206004820152602860248201527f455243313135353a2069647320616e6420616d6f756e7473206c656e677468206044820152670dad2e6dac2e8c6d60c31b6064820152608401610569565b6001600160a01b03841661166a5760405162461bcd60e51b815260206004820152602560248201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604482015264647265737360d81b6064820152608401610569565b33611679818787878787611f7c565b60005b84518110156117a257600085828151811061169957611699612e83565b6020026020010151905060008583815181106116b7576116b7612e83565b602090810291909101810151600084815280835260408082206001600160a01b038e16835290935291909120549091508181101561174a5760405162461bcd60e51b815260206004820152602a60248201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60448201526939103a3930b739b332b960b11b6064820152608401610569565b6000838152602081815260408083206001600160a01b038e8116855292528083208585039055908b16825281208054849290611787908490612ee5565b925050819055505050508061179b90612ecc565b905061167c565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb87876040516117f2929190612efd565b60405180910390a461113b81878787878761212f565b6001600160a01b03831661186a5760405162461bcd60e51b815260206004820152602360248201527f455243313135353a206275726e2066726f6d20746865207a65726f206164647260448201526265737360e81b6064820152608401610569565b80518251146118cc5760405162461bcd60e51b815260206004820152602860248201527f455243313135353a2069647320616e6420616d6f756e7473206c656e677468206044820152670dad2e6dac2e8c6d60c31b6064820152608401610569565b60003390506118ef81856000868660405180602001604052806000815250611f7c565b60005b83518110156119f057600084828151811061190f5761190f612e83565b60200260200101519050600084838151811061192d5761192d612e83565b602090810291909101810151600084815280835260408082206001600160a01b038c1683529093529190912054909150818110156119b95760405162461bcd60e51b8152602060048201526024808201527f455243313135353a206275726e20616d6f756e7420657863656564732062616c604482015263616e636560e01b6064820152608401610569565b6000928352602083815260408085206001600160a01b038b16865290915290922091039055806119e881612ecc565b9150506118f2565b5060006001600160a01b0316846001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8686604051611a41929190612efd565b60405180910390a46040805160208101909152600090525b50505050565b6000610595825490565b60006106fe838361222b565b600480546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b610cfe600582612255565b816001600160a01b0316836001600160a01b031603611b665760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2073657474696e6720617070726f76616c2073746174757360448201527f20666f722073656c6600000000000000000000000000000000000000000000006064820152608401610569565b6001600160a01b03838116600081815260016020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b60006106fe836001600160a01b03841661226a565b6001600160a01b038416611c4c5760405162461bcd60e51b815260206004820152602560248201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604482015264647265737360d81b6064820152608401610569565b336000611c5885611f31565b90506000611c6585611f31565b9050611c75838989858589611f7c565b6000868152602081815260408083206001600160a01b038c16845290915290205485811015611cf95760405162461bcd60e51b815260206004820152602a60248201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60448201526939103a3930b739b332b960b11b6064820152608401610569565b6000878152602081815260408083206001600160a01b038d8116855292528083208985039055908a16825281208054889290611d36908490612ee5565b909155505060408051888152602081018890526001600160a01b03808b16928c821692918816917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4611d96848a8a8a8a8a611f8a565b505050505050505050565b6001600160a01b038316611e035760405162461bcd60e51b815260206004820152602360248201527f455243313135353a206275726e2066726f6d20746865207a65726f206164647260448201526265737360e81b6064820152608401610569565b336000611e0f84611f31565b90506000611e1c84611f31565b9050611e3c83876000858560405180602001604052806000815250611f7c565b6000858152602081815260408083206001600160a01b038a16845290915290205484811015611eb95760405162461bcd60e51b8152602060048201526024808201527f455243313135353a206275726e20616d6f756e7420657863656564732062616c604482015263616e636560e01b6064820152608401610569565b6000868152602081815260408083206001600160a01b038b81168086529184528285208a8703905582518b81529384018a90529092908816917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a460408051602081019091526000905261159b565b60408051600180825281830190925260609160009190602080830190803683370190505090508281600081518110611f6b57611f6b612e83565b602090810291909101015292915050565b61113b86868686868661235d565b6001600160a01b0384163b1561113b5760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e6190611fce9089908990889088908890600401612f2b565b6020604051808303816000875af1925050508015612009575060408051601f3d908101601f1916820190925261200691810190612f6e565b60015b6120be57612015612f8b565b806308c379a00361204e5750612029612fa7565b806120345750612050565b8060405162461bcd60e51b815260040161056991906126fa565b505b60405162461bcd60e51b815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e204552433131353560448201527f526563656976657220696d706c656d656e7465720000000000000000000000006064820152608401610569565b6001600160e01b0319811663f23a6e6160e01b1461159b5760405162461bcd60e51b815260206004820152602860248201527f455243313135353a204552433131353552656365697665722072656a656374656044820152676420746f6b656e7360c01b6064820152608401610569565b6001600160a01b0384163b1561113b5760405163bc197c8160e01b81526001600160a01b0385169063bc197c81906121739089908990889088908890600401613031565b6020604051808303816000875af19250505080156121ae575060408051601f3d908101601f191682019092526121ab91810190612f6e565b60015b6121ba57612015612f8b565b6001600160e01b0319811663bc197c8160e01b1461159b5760405162461bcd60e51b815260206004820152602860248201527f455243313135353a204552433131353552656365697665722072656a656374656044820152676420746f6b656e7360c01b6064820152608401610569565b600082600001828154811061224257612242612e83565b9060005260206000200154905092915050565b60006106fe836001600160a01b0384166124eb565b6000818152600183016020526040812054801561235357600061228e60018361308f565b85549091506000906122a29060019061308f565b90508181146123075760008660000182815481106122c2576122c2612e83565b90600052602060002001549050808760000184815481106122e5576122e5612e83565b6000918252602080832090910192909255918252600188019052604090208390555b8554869080612318576123186130a6565b600190038181906000526020600020016000905590558560010160008681526020019081526020016000206000905560019350505050610595565b6000915050610595565b6001600160a01b0385166123e45760005b83518110156123e25782818151811061238957612389612e83565b6020026020010151600360008684815181106123a7576123a7612e83565b6020026020010151815260200190815260200160002060008282546123cc9190612ee5565b909155506123db905081612ecc565b905061236e565b505b6001600160a01b03841661113b5760005b835181101561159b57600084828151811061241257612412612e83565b60200260200101519050600084838151811061243057612430612e83565b60200260200101519050600060036000848152602001908152602001600020549050818110156124c85760405162461bcd60e51b815260206004820152602860248201527f455243313135353a206275726e20616d6f756e74206578636565647320746f7460448201527f616c537570706c790000000000000000000000000000000000000000000000006064820152608401610569565b600092835260036020526040909220910390556124e481612ecc565b90506123f5565b600081815260018301602052604081205461253257508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155610595565b506000610595565b6001600160a01b038116811461069957600080fd5b6000806040838503121561256257600080fd5b823561256d8161253a565b946020939093013593505050565b6001600160e01b03198116811461069957600080fd5b6000602082840312156125a357600080fd5b81356106fe8161257b565b634e487b7160e01b600052604160045260246000fd5b601f8201601f1916810167ffffffffffffffff811182821017156125ea576125ea6125ae565b6040525050565b600082601f83011261260257600080fd5b813567ffffffffffffffff81111561261c5761261c6125ae565b604051612633601f8301601f1916602001826125c4565b81815284602083860101111561264857600080fd5b816020850160208301376000918101602001919091529392505050565b60006020828403121561267757600080fd5b813567ffffffffffffffff81111561268e57600080fd5b61269a848285016125f1565b949350505050565b60005b838110156126bd5781810151838201526020016126a5565b83811115611a595750506000910152565b600081518084526126e68160208601602086016126a2565b601f01601f19169290920160200192915050565b6020815260006106fe60208301846126ce565b60006020828403121561271f57600080fd5b5035919050565b6000806040838503121561273957600080fd5b82359150602083013567ffffffffffffffff81111561275757600080fd5b612763858286016125f1565b9150509250929050565b60008083601f84011261277f57600080fd5b50813567ffffffffffffffff81111561279757600080fd5b6020830191508360208260051b85010111156127b257600080fd5b9250929050565b6000806000604084860312156127ce57600080fd5b83359250602084013567ffffffffffffffff8111156127ec57600080fd5b6127f88682870161276d565b9497909650939450505050565b600067ffffffffffffffff82111561281f5761281f6125ae565b5060051b60200190565b600082601f83011261283a57600080fd5b8135602061284782612805565b60405161285482826125c4565b83815260059390931b850182019282810191508684111561287457600080fd5b8286015b8481101561288f5780358352918301918301612878565b509695505050505050565b600080600080600060a086880312156128b257600080fd5b85356128bd8161253a565b945060208601356128cd8161253a565b9350604086013567ffffffffffffffff808211156128ea57600080fd5b6128f689838a01612829565b9450606088013591508082111561290c57600080fd5b61291889838a01612829565b9350608088013591508082111561292e57600080fd5b5061293b888289016125f1565b9150509295509295909350565b6000806040838503121561295b57600080fd5b823567ffffffffffffffff8082111561297357600080fd5b818501915085601f83011261298757600080fd5b8135602061299482612805565b6040516129a182826125c4565b83815260059390931b85018201928281019150898411156129c157600080fd5b948201945b838610156129e85785356129d98161253a565b825294820194908201906129c6565b965050860135925050808211156129fe57600080fd5b5061276385828601612829565b600081518084526020808501945080840160005b83811015612a3b57815187529582019590820190600101612a1f565b509495945050505050565b6020815260006106fe6020830184612a0b565b60008060408385031215612a6c57600080fd5b50508035926020909101359150565b600080600060608486031215612a9057600080fd5b8335612a9b8161253a565b9250602084013567ffffffffffffffff80821115612ab857600080fd5b612ac487838801612829565b93506040860135915080821115612ada57600080fd5b50612ae786828701612829565b9150509250925092565b6020808252825182820181905260009190848201906040850190845b81811015612b325783516001600160a01b031683529284019291840191600101612b0d565b50909695505050505050565b600060208284031215612b5057600080fd5b81356106fe8161253a565b60008060408385031215612b6e57600080fd5b8235612b798161253a565b915060208301358015158114612b8e57600080fd5b809150509250929050565b60008060008060608587031215612baf57600080fd5b843567ffffffffffffffff811115612bc657600080fd5b612bd28782880161276d565b90989097506020870135966040013595509350505050565b60008060408385031215612bfd57600080fd5b8235612c088161253a565b91506020830135612b8e8161253a565b600080600080600060a08688031215612c3057600080fd5b8535612c3b8161253a565b94506020860135612c4b8161253a565b93506040860135925060608601359150608086013567ffffffffffffffff811115612c7557600080fd5b61293b888289016125f1565b600080600060608486031215612c9657600080fd5b8335612ca18161253a565b95602085013595506040909401359392505050565b600181811c90821680612cca57607f821691505b602082108103612cea57634e487b7160e01b600052602260045260246000fd5b50919050565b600083516020612d0382858389016126a2565b818401915060008554612d1581612cb6565b60018281168015612d2d5760018114612d4257612d6e565b60ff1984168752821515830287019450612d6e565b896000528560002060005b84811015612d6657815489820152908301908701612d4d565b505082870194505b50929998505050505050505050565b601f82111561079c57600081815260208120601f850160051c81016020861015612da45750805b601f850160051c820191505b8181101561113b57828155600101612db0565b815167ffffffffffffffff811115612ddd57612ddd6125ae565b612df181612deb8454612cb6565b84612d7d565b602080601f831160018114612e265760008415612e0e5750858301515b600019600386901b1c1916600185901b17855561113b565b600085815260208120601f198616915b82811015612e5557888601518255948401946001909101908401612e36565b5085821015612e735787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b634e487b7160e01b600052603260045260246000fd5b600060208284031215612eab57600080fd5b81516106fe8161253a565b634e487b7160e01b600052601160045260246000fd5b600060018201612ede57612ede612eb6565b5060010190565b60008219821115612ef857612ef8612eb6565b500190565b604081526000612f106040830185612a0b565b8281036020840152612f228185612a0b565b95945050505050565b60006001600160a01b03808816835280871660208401525084604083015283606083015260a06080830152612f6360a08301846126ce565b979650505050505050565b600060208284031215612f8057600080fd5b81516106fe8161257b565b600060033d1115612fa45760046000803e5060005160e01c5b90565b600060443d1015612fb55790565b6040516003193d81016004833e81513d67ffffffffffffffff8160248401118184111715612fe557505050505090565b8285019150815181811115612ffd5750505050505090565b843d87010160208285010111156130175750505050505090565b613026602082860101876125c4565b509095945050505050565b60006001600160a01b03808816835280871660208401525060a0604083015261305d60a0830186612a0b565b828103606084015261306f8186612a0b565b9050828103608084015261308381856126ce565b98975050505050505050565b6000828210156130a1576130a1612eb6565b500390565b634e487b7160e01b600052603160045260246000fdfea264697066735822122044dab784b9bbc4fc73b70cfb40447fc03a4b2e6ed85ac8324c99070cb26ad9c464736f6c634300080f0033

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

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

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading
[ Download: CSV Export  ]

A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.