ETH Price: $2,436.14 (+6.16%)

Token

ToxicGame (TXC)
 

Overview

Max Total Supply

1 TXC

Holders

1

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A

Other Info

Balance
1 TXC
0x8d7D3Bde545D97fC80a6e268e08F4e09b0A51b69
Loading...
Loading
Loading...
Loading
Loading...
Loading

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

Contract Source Code Verified (Exact Match)

Contract Name:
TestTGame

Compiler Version
v0.8.20+commit.a1b79de6

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 21 : TestTGame.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.20;

import "./ERC721Op.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@openzeppelin/contracts/utils/Address.sol";
import "@openzeppelin/contracts/utils/Base64.sol";
import "@openzeppelin/contracts/utils/Strings.sol";


contract TestTGame is ERC721Op, Ownable, ReentrancyGuard {
    using Strings for uint256;

    uint32 public currentRound;
    bool public isMintOpen = true;

    string public _baseTokenURI;


    struct Player {
        uint16 tokenId;
        uint32 balance;
        uint32 currentBid;
        uint8 sideChosen; 
        bool isDefeated;
    }

    // token => Player
    mapping(uint256 => Player) private players;


    struct Round {
        uint32 sideACoins;
        uint32 sideBCoins;
        bool isActive;
    }


    mapping(uint256 => Round) public rounds;

    event Locked(uint256 tokenId);
    event Unlocked(uint256 tokenId);
    
    constructor(string memory baseURI) ERC721Op("ToxicGame", "TXC") {
        _baseTokenURI = baseURI;
        _setDefaultRoyalty(msg.sender, 750);
    }

    function getP(uint256 tokenId) public view returns (Player memory) {
        require(_exists(tokenId), "no exist");
        return players[tokenId];
    }


    function startRound() public onlyOwner {
        currentRound++;
        Round storage r = rounds[currentRound];
        r.sideACoins = 0;
        r.sideBCoins = 0;
        r.isActive = true;
    }


    function cancelRound(uint32 fromToken, uint32 toToken) public onlyOwner {
        for (uint i = fromToken; i < toToken;) {
            Player storage _player = players[i];
            if (_player.sideChosen < 2) {
                _player.balance = _player.currentBid;
                _player.currentBid = 0;
                _player.sideChosen = 2;
            }
            emit Unlocked(i);
            unchecked { i++; }
        }
    }


    function participate(uint256 tokenId, uint256 side) public nonReentrant {
        Round storage round = rounds[currentRound];
        Player storage _player = players[tokenId];
        
        if (side == 0) {
            round.sideACoins += _player.balance;
            _player.sideChosen = 0;
        } else {
            round.sideBCoins += _player.balance;
            _player.sideChosen = 1;
        }  

        _player.currentBid = _player.balance;
        _player.balance = 0;
        emit Locked(tokenId);
    }


    function publicMint() public payable nonReentrant {
        require(isMintOpen, "Mint is closed");
        uint256 _tokenId = totalSupply();
        _safeMint(_msgSender(), _tokenId);
        Player storage _player = players[_tokenId];
        _player.tokenId = uint16(_tokenId);
        _player.balance = 20;
        _player.sideChosen = 2;
        _player.isDefeated = false;
    }

    function changeMintState() public onlyOwner {
        isMintOpen = !isMintOpen;
    }

    function setBaseURI(string memory newuri) public onlyOwner {
        _baseTokenURI = newuri;
    }

    function withdrawTo(uint256 amount, address payable to) public onlyOwner {
        require(address(this).balance > 0, "Insufficient balance");
        Address.sendValue(to, amount);
    }

     function setDefaultRoyalty(address receiver, uint96 feeNumerator) public onlyOwner {
        _setDefaultRoyalty(receiver, feeNumerator);
    }

    function _baseURI() internal view virtual returns (string memory) {
	    return _baseTokenURI;
	}

    function tokenURI(uint256 tokenId) public view override returns (string memory) {
		require(_exists(tokenId), "Token does not exist");
        Player storage _player = players[tokenId];
        string memory _isDead = "No";
        if (_player.isDefeated) {
            _isDead = "Yes";
        }
		return string(
			abi.encodePacked(
				'data:application/json;base64,',
				Base64.encode(
					abi.encodePacked(
						'{',
                            '"image": "', _baseURI(), tokenId.toString(), '"',
                            '"attributes": [{"trait_type": "Balance", "value": ', _player.balance,'}, {"trait_type": "Is Dead", "value": "', _isDead, '"}]'
						'}' 
					)
				)
			)
		);
    }

    function _beforeTokenTransfer(address from, address to, uint256 tokenId) internal override {
        if (currentRound > 0) {
            require(players[tokenId].sideChosen == 2, "Player can not be transferred while participating in the round");
        }
    }
}

File 2 of 21 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (access/Ownable.sol)

pragma solidity ^0.8.0;

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

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

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

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

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        _checkOwner();
        _;
    }

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

    /**
     * @dev Throws if the sender is not the owner.
     */
    function _checkOwner() internal view virtual {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
    }

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby disabling 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 3 of 21 : IERC2981.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (interfaces/IERC2981.sol)

pragma solidity ^0.8.0;

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

/**
 * @dev Interface for the NFT Royalty Standard.
 *
 * A standardized way to retrieve royalty payment information for non-fungible tokens (NFTs) to enable universal
 * support for royalty payments across all NFT marketplaces and ecosystem participants.
 *
 * _Available since v4.5._
 */
interface IERC2981 is IERC165 {
    /**
     * @dev Returns how much royalty is owed and to whom, based on a sale price that may be denominated in any unit of
     * exchange. The royalty amount is denominated and should be paid in that same unit of exchange.
     */
    function royaltyInfo(
        uint256 tokenId,
        uint256 salePrice
    ) external view returns (address receiver, uint256 royaltyAmount);
}

File 4 of 21 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (security/ReentrancyGuard.sol)

pragma solidity ^0.8.0;

/**
 * @dev Contract module that helps prevent reentrant calls to a function.
 *
 * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier
 * available, which can be applied to functions to make sure there are no nested
 * (reentrant) calls to them.
 *
 * Note that because there is a single `nonReentrant` guard, functions marked as
 * `nonReentrant` may not call one another. This can be worked around by making
 * those functions `private`, and then adding `external` `nonReentrant` entry
 * points to them.
 *
 * TIP: If you would like to learn more about reentrancy and alternative ways
 * to protect against it, check out our blog post
 * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].
 */
abstract contract ReentrancyGuard {
    // Booleans are more expensive than uint256 or any type that takes up a full
    // word because each write operation emits an extra SLOAD to first read the
    // slot's contents, replace the bits taken up by the boolean, and then write
    // back. This is the compiler's defense against contract upgrades and
    // pointer aliasing, and it cannot be disabled.

    // The values being non-zero value makes deployment a bit more expensive,
    // but in exchange the refund on every call to nonReentrant will be lower in
    // amount. Since refunds are capped to a percentage of the total
    // transaction's gas, it is best to keep them low in cases like this one, to
    // increase the likelihood of the full refund coming into effect.
    uint256 private constant _NOT_ENTERED = 1;
    uint256 private constant _ENTERED = 2;

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

    /**
     * @dev Prevents a contract from calling itself, directly or indirectly.
     * Calling a `nonReentrant` function from another `nonReentrant`
     * function is not supported. It is possible to prevent this from happening
     * by making the `nonReentrant` function external, and making it call a
     * `private` function that does the actual work.
     */
    modifier nonReentrant() {
        _nonReentrantBefore();
        _;
        _nonReentrantAfter();
    }

    function _nonReentrantBefore() private {
        // On the first call to nonReentrant, _status will be _NOT_ENTERED
        require(_status != _ENTERED, "ReentrancyGuard: reentrant call");

        // Any calls to nonReentrant after this point will fail
        _status = _ENTERED;
    }

    function _nonReentrantAfter() private {
        // By storing the original value once again, a refund is triggered (see
        // https://eips.ethereum.org/EIPS/eip-2200)
        _status = _NOT_ENTERED;
    }

    /**
     * @dev Returns true if the reentrancy guard is currently set to "entered", which indicates there is a
     * `nonReentrant` function in the call stack.
     */
    function _reentrancyGuardEntered() internal view returns (bool) {
        return _status == _ENTERED;
    }
}

File 5 of 21 : ERC2981.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (token/common/ERC2981.sol)

pragma solidity ^0.8.0;

import "../../interfaces/IERC2981.sol";
import "../../utils/introspection/ERC165.sol";

/**
 * @dev Implementation of the NFT Royalty Standard, a standardized way to retrieve royalty payment information.
 *
 * Royalty information can be specified globally for all token ids via {_setDefaultRoyalty}, and/or individually for
 * specific token ids via {_setTokenRoyalty}. The latter takes precedence over the first.
 *
 * Royalty is specified as a fraction of sale price. {_feeDenominator} is overridable but defaults to 10000, meaning the
 * fee is specified in basis points by default.
 *
 * IMPORTANT: ERC-2981 only specifies a way to signal royalty information and does not enforce its payment. See
 * https://eips.ethereum.org/EIPS/eip-2981#optional-royalty-payments[Rationale] in the EIP. Marketplaces are expected to
 * voluntarily pay royalties together with sales, but note that this standard is not yet widely supported.
 *
 * _Available since v4.5._
 */
abstract contract ERC2981 is IERC2981, ERC165 {
    struct RoyaltyInfo {
        address receiver;
        uint96 royaltyFraction;
    }

    RoyaltyInfo private _defaultRoyaltyInfo;
    mapping(uint256 => RoyaltyInfo) private _tokenRoyaltyInfo;

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

    /**
     * @inheritdoc IERC2981
     */
    function royaltyInfo(uint256 tokenId, uint256 salePrice) public view virtual override returns (address, uint256) {
        RoyaltyInfo memory royalty = _tokenRoyaltyInfo[tokenId];

        if (royalty.receiver == address(0)) {
            royalty = _defaultRoyaltyInfo;
        }

        uint256 royaltyAmount = (salePrice * royalty.royaltyFraction) / _feeDenominator();

        return (royalty.receiver, royaltyAmount);
    }

    /**
     * @dev The denominator with which to interpret the fee set in {_setTokenRoyalty} and {_setDefaultRoyalty} as a
     * fraction of the sale price. Defaults to 10000 so fees are expressed in basis points, but may be customized by an
     * override.
     */
    function _feeDenominator() internal pure virtual returns (uint96) {
        return 10000;
    }

    /**
     * @dev Sets the royalty information that all ids in this contract will default to.
     *
     * Requirements:
     *
     * - `receiver` cannot be the zero address.
     * - `feeNumerator` cannot be greater than the fee denominator.
     */
    function _setDefaultRoyalty(address receiver, uint96 feeNumerator) internal virtual {
        require(feeNumerator <= _feeDenominator(), "ERC2981: royalty fee will exceed salePrice");
        require(receiver != address(0), "ERC2981: invalid receiver");

        _defaultRoyaltyInfo = RoyaltyInfo(receiver, feeNumerator);
    }

    /**
     * @dev Removes default royalty information.
     */
    function _deleteDefaultRoyalty() internal virtual {
        delete _defaultRoyaltyInfo;
    }

    /**
     * @dev Sets the royalty information for a specific token id, overriding the global default.
     *
     * Requirements:
     *
     * - `receiver` cannot be the zero address.
     * - `feeNumerator` cannot be greater than the fee denominator.
     */
    function _setTokenRoyalty(uint256 tokenId, address receiver, uint96 feeNumerator) internal virtual {
        require(feeNumerator <= _feeDenominator(), "ERC2981: royalty fee will exceed salePrice");
        require(receiver != address(0), "ERC2981: Invalid parameters");

        _tokenRoyaltyInfo[tokenId] = RoyaltyInfo(receiver, feeNumerator);
    }

    /**
     * @dev Resets royalty information for the token id back to the global default.
     */
    function _resetTokenRoyalty(uint256 tokenId) internal virtual {
        delete _tokenRoyaltyInfo[tokenId];
    }
}

File 6 of 21 : IERC721Metadata.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol)

pragma solidity ^0.8.0;

import "../IERC721.sol";

/**
 * @title ERC-721 Non-Fungible Token Standard, optional metadata extension
 * @dev See https://eips.ethereum.org/EIPS/eip-721
 */
interface IERC721Metadata is IERC721 {
    /**
     * @dev Returns the token collection name.
     */
    function name() external view returns (string memory);

    /**
     * @dev Returns the token collection symbol.
     */
    function symbol() external view returns (string memory);

    /**
     * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token.
     */
    function tokenURI(uint256 tokenId) external view returns (string memory);
}

File 7 of 21 : IERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.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 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: Note that the caller is responsible to confirm that the recipient is capable of receiving ERC721
     * or else they may be permanently lost. Usage of {safeTransferFrom} prevents loss, though the caller must
     * understand this adds an external call which potentially creates a reentrancy vulnerability.
     *
     * 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 8 of 21 : IERC721Receiver.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721Receiver.sol)

pragma solidity ^0.8.0;

/**
 * @title ERC721 token receiver interface
 * @dev Interface for any contract that wants to support safeTransfers
 * from ERC721 asset contracts.
 */
interface IERC721Receiver {
    /**
     * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom}
     * by `operator` from `from`, this function is called.
     *
     * It must return its Solidity selector to confirm the token transfer.
     * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted.
     *
     * The selector can be obtained in Solidity with `IERC721Receiver.onERC721Received.selector`.
     */
    function onERC721Received(
        address operator,
        address from,
        uint256 tokenId,
        bytes calldata data
    ) external returns (bytes4);
}

File 9 of 21 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.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
     *
     * Furthermore, `isContract` will also return true if the target contract within
     * the same transaction is already scheduled for destruction by `SELFDESTRUCT`,
     * which only has an effect at the end of a transaction.
     * ====
     *
     * [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://consensys.net/diligence/blog/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.8.0/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 functionCallWithValue(target, data, 0, "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");
        (bool success, bytes memory returndata) = target.call{value: value}(data);
        return verifyCallResultFromTarget(target, 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) {
        (bool success, bytes memory returndata) = target.staticcall(data);
        return verifyCallResultFromTarget(target, 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) {
        (bool success, bytes memory returndata) = target.delegatecall(data);
        return verifyCallResultFromTarget(target, success, returndata, errorMessage);
    }

    /**
     * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling
     * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract.
     *
     * _Available since v4.8._
     */
    function verifyCallResultFromTarget(
        address target,
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        if (success) {
            if (returndata.length == 0) {
                // only check isContract if the call was successful and the return data is empty
                // otherwise we already know that it was a contract
                require(isContract(target), "Address: call to non-contract");
            }
            return returndata;
        } else {
            _revert(returndata, errorMessage);
        }
    }

    /**
     * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason or 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 {
            _revert(returndata, errorMessage);
        }
    }

    function _revert(bytes memory returndata, string memory errorMessage) private pure {
        // 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
            /// @solidity memory-safe-assembly
            assembly {
                let returndata_size := mload(returndata)
                revert(add(32, returndata), returndata_size)
            }
        } else {
            revert(errorMessage);
        }
    }
}

File 10 of 21 : Base64.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (utils/Base64.sol)

pragma solidity ^0.8.0;

/**
 * @dev Provides a set of functions to operate with Base64 strings.
 *
 * _Available since v4.5._
 */
library Base64 {
    /**
     * @dev Base64 Encoding/Decoding Table
     */
    string internal constant _TABLE = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";

    /**
     * @dev Converts a `bytes` to its Bytes64 `string` representation.
     */
    function encode(bytes memory data) internal pure returns (string memory) {
        /**
         * Inspired by Brecht Devos (Brechtpd) implementation - MIT licence
         * https://github.com/Brechtpd/base64/blob/e78d9fd951e7b0977ddca77d92dc85183770daf4/base64.sol
         */
        if (data.length == 0) return "";

        // Loads the table into memory
        string memory table = _TABLE;

        // Encoding takes 3 bytes chunks of binary data from `bytes` data parameter
        // and split into 4 numbers of 6 bits.
        // The final Base64 length should be `bytes` data length multiplied by 4/3 rounded up
        // - `data.length + 2`  -> Round up
        // - `/ 3`              -> Number of 3-bytes chunks
        // - `4 *`              -> 4 characters for each chunk
        string memory result = new string(4 * ((data.length + 2) / 3));

        /// @solidity memory-safe-assembly
        assembly {
            // Prepare the lookup table (skip the first "length" byte)
            let tablePtr := add(table, 1)

            // Prepare result pointer, jump over length
            let resultPtr := add(result, 32)

            // Run over the input, 3 bytes at a time
            for {
                let dataPtr := data
                let endPtr := add(data, mload(data))
            } lt(dataPtr, endPtr) {

            } {
                // Advance 3 bytes
                dataPtr := add(dataPtr, 3)
                let input := mload(dataPtr)

                // To write each character, shift the 3 bytes (18 bits) chunk
                // 4 times in blocks of 6 bits for each character (18, 12, 6, 0)
                // and apply logical AND with 0x3F which is the number of
                // the previous character in the ASCII table prior to the Base64 Table
                // The result is then added to the table to get the character to write,
                // and finally write it in the result pointer but with a left shift
                // of 256 (1 byte) - 8 (1 ASCII char) = 248 bits

                mstore8(resultPtr, mload(add(tablePtr, and(shr(18, input), 0x3F))))
                resultPtr := add(resultPtr, 1) // Advance

                mstore8(resultPtr, mload(add(tablePtr, and(shr(12, input), 0x3F))))
                resultPtr := add(resultPtr, 1) // Advance

                mstore8(resultPtr, mload(add(tablePtr, and(shr(6, input), 0x3F))))
                resultPtr := add(resultPtr, 1) // Advance

                mstore8(resultPtr, mload(add(tablePtr, and(input, 0x3F))))
                resultPtr := add(resultPtr, 1) // Advance
            }

            // When data `bytes` is not exactly 3 bytes long
            // it is padded with `=` characters at the end
            switch mod(mload(data), 3)
            case 1 {
                mstore8(sub(resultPtr, 1), 0x3d)
                mstore8(sub(resultPtr, 2), 0x3d)
            }
            case 2 {
                mstore8(sub(resultPtr, 1), 0x3d)
            }
        }

        return result;
    }
}

File 11 of 21 : 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 12 of 21 : 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 21 : 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 14 of 21 : Math.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (utils/math/Math.sol)

pragma solidity ^0.8.0;

/**
 * @dev Standard math utilities missing in the Solidity language.
 */
library Math {
    enum Rounding {
        Down, // Toward negative infinity
        Up, // Toward infinity
        Zero // Toward zero
    }

    /**
     * @dev Returns the largest of two numbers.
     */
    function max(uint256 a, uint256 b) internal pure returns (uint256) {
        return a > b ? a : b;
    }

    /**
     * @dev Returns the smallest of two numbers.
     */
    function min(uint256 a, uint256 b) internal pure returns (uint256) {
        return a < b ? a : b;
    }

    /**
     * @dev Returns the average of two numbers. The result is rounded towards
     * zero.
     */
    function average(uint256 a, uint256 b) internal pure returns (uint256) {
        // (a + b) / 2 can overflow.
        return (a & b) + (a ^ b) / 2;
    }

    /**
     * @dev Returns the ceiling of the division of two numbers.
     *
     * This differs from standard division with `/` in that it rounds up instead
     * of rounding down.
     */
    function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) {
        // (a + b - 1) / b can overflow on addition, so we distribute.
        return a == 0 ? 0 : (a - 1) / b + 1;
    }

    /**
     * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or denominator == 0
     * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv)
     * with further edits by Uniswap Labs also under MIT license.
     */
    function mulDiv(uint256 x, uint256 y, uint256 denominator) internal pure returns (uint256 result) {
        unchecked {
            // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use
            // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256
            // variables such that product = prod1 * 2^256 + prod0.
            uint256 prod0; // Least significant 256 bits of the product
            uint256 prod1; // Most significant 256 bits of the product
            assembly {
                let mm := mulmod(x, y, not(0))
                prod0 := mul(x, y)
                prod1 := sub(sub(mm, prod0), lt(mm, prod0))
            }

            // Handle non-overflow cases, 256 by 256 division.
            if (prod1 == 0) {
                // Solidity will revert if denominator == 0, unlike the div opcode on its own.
                // The surrounding unchecked block does not change this fact.
                // See https://docs.soliditylang.org/en/latest/control-structures.html#checked-or-unchecked-arithmetic.
                return prod0 / denominator;
            }

            // Make sure the result is less than 2^256. Also prevents denominator == 0.
            require(denominator > prod1, "Math: mulDiv overflow");

            ///////////////////////////////////////////////
            // 512 by 256 division.
            ///////////////////////////////////////////////

            // Make division exact by subtracting the remainder from [prod1 prod0].
            uint256 remainder;
            assembly {
                // Compute remainder using mulmod.
                remainder := mulmod(x, y, denominator)

                // Subtract 256 bit number from 512 bit number.
                prod1 := sub(prod1, gt(remainder, prod0))
                prod0 := sub(prod0, remainder)
            }

            // Factor powers of two out of denominator and compute largest power of two divisor of denominator. Always >= 1.
            // See https://cs.stackexchange.com/q/138556/92363.

            // Does not overflow because the denominator cannot be zero at this stage in the function.
            uint256 twos = denominator & (~denominator + 1);
            assembly {
                // Divide denominator by twos.
                denominator := div(denominator, twos)

                // Divide [prod1 prod0] by twos.
                prod0 := div(prod0, twos)

                // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one.
                twos := add(div(sub(0, twos), twos), 1)
            }

            // Shift in bits from prod1 into prod0.
            prod0 |= prod1 * twos;

            // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such
            // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for
            // four bits. That is, denominator * inv = 1 mod 2^4.
            uint256 inverse = (3 * denominator) ^ 2;

            // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also works
            // in modular arithmetic, doubling the correct bits in each step.
            inverse *= 2 - denominator * inverse; // inverse mod 2^8
            inverse *= 2 - denominator * inverse; // inverse mod 2^16
            inverse *= 2 - denominator * inverse; // inverse mod 2^32
            inverse *= 2 - denominator * inverse; // inverse mod 2^64
            inverse *= 2 - denominator * inverse; // inverse mod 2^128
            inverse *= 2 - denominator * inverse; // inverse mod 2^256

            // Because the division is now exact we can divide by multiplying with the modular inverse of denominator.
            // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is
            // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1
            // is no longer required.
            result = prod0 * inverse;
            return result;
        }
    }

    /**
     * @notice Calculates x * y / denominator with full precision, following the selected rounding direction.
     */
    function mulDiv(uint256 x, uint256 y, uint256 denominator, Rounding rounding) internal pure returns (uint256) {
        uint256 result = mulDiv(x, y, denominator);
        if (rounding == Rounding.Up && mulmod(x, y, denominator) > 0) {
            result += 1;
        }
        return result;
    }

    /**
     * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded down.
     *
     * Inspired by Henry S. Warren, Jr.'s "Hacker's Delight" (Chapter 11).
     */
    function sqrt(uint256 a) internal pure returns (uint256) {
        if (a == 0) {
            return 0;
        }

        // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target.
        //
        // We know that the "msb" (most significant bit) of our target number `a` is a power of 2 such that we have
        // `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`.
        //
        // This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)`
        // → `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))`
        // → `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)`
        //
        // Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit.
        uint256 result = 1 << (log2(a) >> 1);

        // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128,
        // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at
        // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision
        // into the expected uint128 result.
        unchecked {
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            return min(result, a / result);
        }
    }

    /**
     * @notice Calculates sqrt(a), following the selected rounding direction.
     */
    function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = sqrt(a);
            return result + (rounding == Rounding.Up && result * result < a ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 2, rounded down, of a positive value.
     * Returns 0 if given 0.
     */
    function log2(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >> 128 > 0) {
                value >>= 128;
                result += 128;
            }
            if (value >> 64 > 0) {
                value >>= 64;
                result += 64;
            }
            if (value >> 32 > 0) {
                value >>= 32;
                result += 32;
            }
            if (value >> 16 > 0) {
                value >>= 16;
                result += 16;
            }
            if (value >> 8 > 0) {
                value >>= 8;
                result += 8;
            }
            if (value >> 4 > 0) {
                value >>= 4;
                result += 4;
            }
            if (value >> 2 > 0) {
                value >>= 2;
                result += 2;
            }
            if (value >> 1 > 0) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 2, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log2(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log2(value);
            return result + (rounding == Rounding.Up && 1 << result < value ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 10, rounded down, of a positive value.
     * Returns 0 if given 0.
     */
    function log10(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >= 10 ** 64) {
                value /= 10 ** 64;
                result += 64;
            }
            if (value >= 10 ** 32) {
                value /= 10 ** 32;
                result += 32;
            }
            if (value >= 10 ** 16) {
                value /= 10 ** 16;
                result += 16;
            }
            if (value >= 10 ** 8) {
                value /= 10 ** 8;
                result += 8;
            }
            if (value >= 10 ** 4) {
                value /= 10 ** 4;
                result += 4;
            }
            if (value >= 10 ** 2) {
                value /= 10 ** 2;
                result += 2;
            }
            if (value >= 10 ** 1) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 10, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log10(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log10(value);
            return result + (rounding == Rounding.Up && 10 ** result < value ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 256, rounded down, of a positive value.
     * Returns 0 if given 0.
     *
     * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string.
     */
    function log256(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >> 128 > 0) {
                value >>= 128;
                result += 16;
            }
            if (value >> 64 > 0) {
                value >>= 64;
                result += 8;
            }
            if (value >> 32 > 0) {
                value >>= 32;
                result += 4;
            }
            if (value >> 16 > 0) {
                value >>= 16;
                result += 2;
            }
            if (value >> 8 > 0) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 256, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log256(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log256(value);
            return result + (rounding == Rounding.Up && 1 << (result << 3) < value ? 1 : 0);
        }
    }
}

File 15 of 21 : SignedMath.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (utils/math/SignedMath.sol)

pragma solidity ^0.8.0;

/**
 * @dev Standard signed math utilities missing in the Solidity language.
 */
library SignedMath {
    /**
     * @dev Returns the largest of two signed numbers.
     */
    function max(int256 a, int256 b) internal pure returns (int256) {
        return a > b ? a : b;
    }

    /**
     * @dev Returns the smallest of two signed numbers.
     */
    function min(int256 a, int256 b) internal pure returns (int256) {
        return a < b ? a : b;
    }

    /**
     * @dev Returns the average of two signed numbers without overflow.
     * The result is rounded towards zero.
     */
    function average(int256 a, int256 b) internal pure returns (int256) {
        // Formula from the book "Hacker's Delight"
        int256 x = (a & b) + ((a ^ b) >> 1);
        return x + (int256(uint256(x) >> 255) & (a ^ b));
    }

    /**
     * @dev Returns the absolute unsigned value of a signed value.
     */
    function abs(int256 n) internal pure returns (uint256) {
        unchecked {
            // must be unchecked in order to support `n = type(int256).min`
            return uint256(n >= 0 ? n : -n);
        }
    }
}

File 16 of 21 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (utils/Strings.sol)

pragma solidity ^0.8.0;

import "./math/Math.sol";
import "./math/SignedMath.sol";

/**
 * @dev String operations.
 */
library Strings {
    bytes16 private constant _SYMBOLS = "0123456789abcdef";
    uint8 private constant _ADDRESS_LENGTH = 20;

    /**
     * @dev Converts a `uint256` to its ASCII `string` decimal representation.
     */
    function toString(uint256 value) internal pure returns (string memory) {
        unchecked {
            uint256 length = Math.log10(value) + 1;
            string memory buffer = new string(length);
            uint256 ptr;
            /// @solidity memory-safe-assembly
            assembly {
                ptr := add(buffer, add(32, length))
            }
            while (true) {
                ptr--;
                /// @solidity memory-safe-assembly
                assembly {
                    mstore8(ptr, byte(mod(value, 10), _SYMBOLS))
                }
                value /= 10;
                if (value == 0) break;
            }
            return buffer;
        }
    }

    /**
     * @dev Converts a `int256` to its ASCII `string` decimal representation.
     */
    function toString(int256 value) internal pure returns (string memory) {
        return string(abi.encodePacked(value < 0 ? "-" : "", toString(SignedMath.abs(value))));
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.
     */
    function toHexString(uint256 value) internal pure returns (string memory) {
        unchecked {
            return toHexString(value, Math.log256(value) + 1);
        }
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.
     */
    function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {
        bytes memory buffer = new bytes(2 * length + 2);
        buffer[0] = "0";
        buffer[1] = "x";
        for (uint256 i = 2 * length + 1; i > 1; --i) {
            buffer[i] = _SYMBOLS[value & 0xf];
            value >>= 4;
        }
        require(value == 0, "Strings: hex length insufficient");
        return string(buffer);
    }

    /**
     * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation.
     */
    function toHexString(address addr) internal pure returns (string memory) {
        return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH);
    }

    /**
     * @dev Returns true if the two strings are equal.
     */
    function equal(string memory a, string memory b) internal pure returns (bool) {
        return keccak256(bytes(a)) == keccak256(bytes(b));
    }
}

File 17 of 21 : ERC721Op.sol
// SPDX-License-Identifier: GPL-3.0
pragma solidity ^0.8.20;
import "@openzeppelin/contracts/token/ERC721/IERC721.sol";
import "@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol";
import "@openzeppelin/contracts/token/common/ERC2981.sol";
import "@openzeppelin/contracts/utils/Address.sol";
import "@openzeppelin/contracts/utils/Context.sol";
import "@openzeppelin/contracts/utils/introspection/ERC165.sol";
import "operator-filter-registry/src/DefaultOperatorFilterer.sol";


abstract contract ERC721Op is DefaultOperatorFilterer, Context, ERC165, IERC721, IERC721Metadata, ERC2981 {
    using Address for address;
    string private _name;
    string private _symbol;
    address[] internal _owners;
    mapping(uint256 => address) private _tokenApprovals;
    mapping(address => mapping(address => bool)) private _operatorApprovals;     
    constructor(string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
    }     

    function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165, ERC2981) returns (bool) {
        return
            interfaceId == type(IERC721).interfaceId ||
            interfaceId == type(IERC721Metadata).interfaceId ||
            interfaceId == type(ERC2981).interfaceId ||
            super.supportsInterface(interfaceId);
    }

    
    function balanceOf(address owner) public view virtual override returns (uint256) {
        require(owner != address(0), "ERC721: balance query for the zero address");
        uint count = 0;
        uint length = _owners.length;
        for( uint i = 0; i < length; ++i ){
          if( owner == _owners[i] ){
            ++count;
          }
        }
        delete length;
        return count;
    }

    function getOwners() public view virtual returns (address[] memory) {
        return _owners;
    }

    function totalSupply() public view virtual returns (uint256) {
        return _owners.length;
    }

    function ownerOf(uint256 tokenId) public view virtual override returns (address) {
        address owner = _owners[tokenId];
        require(owner != address(0), "ERC721: owner query for nonexistent token");
        return owner;
    }

    function name() public view virtual override returns (string memory) {
        return _name;
    }

    function symbol() public view virtual override returns (string memory) {
        return _symbol;
    }

    function approve(address to, uint256 tokenId) public virtual override onlyAllowedOperatorApproval(to) {
        address owner = ERC721Op.ownerOf(tokenId);
        require(to != owner, "ERC721: approval to current owner");

        require(
            _msgSender() == owner || isApprovedForAll(owner, _msgSender()),
            "ERC721: approve caller is not owner nor approved for all"
        );

        _approve(to, tokenId);
    }

    function getApproved(uint256 tokenId) public view virtual override returns (address) {
        require(_exists(tokenId), "ERC721: approved query for nonexistent token");

        return _tokenApprovals[tokenId];
    }

    function setApprovalForAll(address operator, bool approved) public virtual override onlyAllowedOperatorApproval(operator) {
        require(operator != _msgSender(), "ERC721: approve to caller");
        _operatorApprovals[_msgSender()][operator] = approved;
        emit ApprovalForAll(_msgSender(), operator, approved);
    }

    function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) {
        return _operatorApprovals[owner][operator];
    }

    function transferFrom(address from, address to, uint256 tokenId) public virtual override onlyAllowedOperator(from) {
        require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved");
        _transfer(from, to, tokenId);
    }

    function safeTransferFrom(address from, address to, uint256 tokenId) public virtual override onlyAllowedOperator(from) {
        safeTransferFrom(from, to, tokenId, "");
    }

    function safeTransferFrom(address from, address to, uint256 tokenId, bytes memory _data) public virtual override onlyAllowedOperator(from) {
        require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved");
        _safeTransfer(from, to, tokenId, _data);
    }

    function _safeTransfer(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) internal virtual {
        _transfer(from, to, tokenId);
        require(_checkOnERC721Received(from, to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer");
    }

	function _exists(uint256 tokenId) internal view virtual returns (bool) {
        return tokenId < _owners.length && _owners[tokenId] != address(0);
    }

	function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) {
        require(_exists(tokenId), "ERC721: operator query for nonexistent token");
        address owner = ERC721Op.ownerOf(tokenId);
        return (spender == owner || getApproved(tokenId) == spender || isApprovedForAll(owner, spender));
    }

	function _safeMint(address to, uint256 tokenId) internal virtual {
        _safeMint(to, tokenId, "");
    }
	function _safeMint(
        address to,
        uint256 tokenId,
        bytes memory _data
    ) internal virtual {
        _mint(to, tokenId);
        require(
            _checkOnERC721Received(address(0), to, tokenId, _data),
            "ERC721: transfer to non ERC721Receiver implementer"
        );
    }

	function _mint(address to, uint256 tokenId) internal virtual {
        require(to != address(0), "ERC721: mint to the zero address");
        require(!_exists(tokenId), "ERC721: token already minted");

        _beforeTokenTransfer(address(0), to, tokenId);
        _owners.push(to);

        emit Transfer(address(0), to, tokenId);
    }

	function _burn(uint256 tokenId) internal virtual {
        address owner = ERC721Op.ownerOf(tokenId);

        _beforeTokenTransfer(owner, address(0), tokenId);

        // Clear approvals
        _approve(address(0), tokenId);
        _owners[tokenId] = address(0);

        emit Transfer(owner, address(0), tokenId);
    }

	function _transfer(
        address from,
        address to,
        uint256 tokenId
    ) internal virtual {
        require(ERC721Op.ownerOf(tokenId) == from, "ERC721: transfer of token that is not own");
        require(to != address(0), "ERC721: transfer to the zero address");

        _beforeTokenTransfer(from, to, tokenId);

        // Clear approvals from the previous owner
        _approve(address(0), tokenId);
        _owners[tokenId] = to;

        emit Transfer(from, to, tokenId);
    }

	function _approve(address to, uint256 tokenId) internal virtual {
        _tokenApprovals[tokenId] = to;
        emit Approval(ERC721Op.ownerOf(tokenId), to, tokenId);
    }

	function _checkOnERC721Received(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) private returns (bool) {
        if (to.isContract()) {
            try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) {
                return retval == IERC721Receiver.onERC721Received.selector;
            } catch (bytes memory reason) {
                if (reason.length == 0) {
                    revert("ERC721: transfer to non ERC721Receiver implementer");
                } else {
                    assembly {
                        revert(add(32, reason), mload(reason))
                    }
                }
            }
        } else {
            return true;
        }
    }
    
	function _beforeTokenTransfer(
        address from,
        address to,
        uint256 tokenId
    ) internal virtual {}
}

File 18 of 21 : DefaultOperatorFilterer.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.13;

import {OperatorFilterer} from "./OperatorFilterer.sol";
import {CANONICAL_CORI_SUBSCRIPTION} from "./lib/Constants.sol";
/**
 * @title  DefaultOperatorFilterer
 * @notice Inherits from OperatorFilterer and automatically subscribes to the default OpenSea subscription.
 * @dev    Please note that if your token contract does not provide an owner with EIP-173, it must provide
 *         administration methods on the contract itself to interact with the registry otherwise the subscription
 *         will be locked to the options set during construction.
 */

abstract contract DefaultOperatorFilterer is OperatorFilterer {
    /// @dev The constructor that is called when the contract is being deployed.
    constructor() OperatorFilterer(CANONICAL_CORI_SUBSCRIPTION, true) {}
}

File 19 of 21 : IOperatorFilterRegistry.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.13;

interface IOperatorFilterRegistry {
    /**
     * @notice Returns true if operator is not filtered for a given token, either by address or codeHash. Also returns
     *         true if supplied registrant address is not registered.
     */
    function isOperatorAllowed(address registrant, address operator) external view returns (bool);

    /**
     * @notice Registers an address with the registry. May be called by address itself or by EIP-173 owner.
     */
    function register(address registrant) external;

    /**
     * @notice Registers an address with the registry and "subscribes" to another address's filtered operators and codeHashes.
     */
    function registerAndSubscribe(address registrant, address subscription) external;

    /**
     * @notice Registers an address with the registry and copies the filtered operators and codeHashes from another
     *         address without subscribing.
     */
    function registerAndCopyEntries(address registrant, address registrantToCopy) external;

    /**
     * @notice Unregisters an address with the registry and removes its subscription. May be called by address itself or by EIP-173 owner.
     *         Note that this does not remove any filtered addresses or codeHashes.
     *         Also note that any subscriptions to this registrant will still be active and follow the existing filtered addresses and codehashes.
     */
    function unregister(address addr) external;

    /**
     * @notice Update an operator address for a registered address - when filtered is true, the operator is filtered.
     */
    function updateOperator(address registrant, address operator, bool filtered) external;

    /**
     * @notice Update multiple operators for a registered address - when filtered is true, the operators will be filtered. Reverts on duplicates.
     */
    function updateOperators(address registrant, address[] calldata operators, bool filtered) external;

    /**
     * @notice Update a codeHash for a registered address - when filtered is true, the codeHash is filtered.
     */
    function updateCodeHash(address registrant, bytes32 codehash, bool filtered) external;

    /**
     * @notice Update multiple codeHashes for a registered address - when filtered is true, the codeHashes will be filtered. Reverts on duplicates.
     */
    function updateCodeHashes(address registrant, bytes32[] calldata codeHashes, bool filtered) external;

    /**
     * @notice Subscribe an address to another registrant's filtered operators and codeHashes. Will remove previous
     *         subscription if present.
     *         Note that accounts with subscriptions may go on to subscribe to other accounts - in this case,
     *         subscriptions will not be forwarded. Instead the former subscription's existing entries will still be
     *         used.
     */
    function subscribe(address registrant, address registrantToSubscribe) external;

    /**
     * @notice Unsubscribe an address from its current subscribed registrant, and optionally copy its filtered operators and codeHashes.
     */
    function unsubscribe(address registrant, bool copyExistingEntries) external;

    /**
     * @notice Get the subscription address of a given registrant, if any.
     */
    function subscriptionOf(address addr) external returns (address registrant);

    /**
     * @notice Get the set of addresses subscribed to a given registrant.
     *         Note that order is not guaranteed as updates are made.
     */
    function subscribers(address registrant) external returns (address[] memory);

    /**
     * @notice Get the subscriber at a given index in the set of addresses subscribed to a given registrant.
     *         Note that order is not guaranteed as updates are made.
     */
    function subscriberAt(address registrant, uint256 index) external returns (address);

    /**
     * @notice Copy filtered operators and codeHashes from a different registrantToCopy to addr.
     */
    function copyEntriesOf(address registrant, address registrantToCopy) external;

    /**
     * @notice Returns true if operator is filtered by a given address or its subscription.
     */
    function isOperatorFiltered(address registrant, address operator) external returns (bool);

    /**
     * @notice Returns true if the hash of an address's code is filtered by a given address or its subscription.
     */
    function isCodeHashOfFiltered(address registrant, address operatorWithCode) external returns (bool);

    /**
     * @notice Returns true if a codeHash is filtered by a given address or its subscription.
     */
    function isCodeHashFiltered(address registrant, bytes32 codeHash) external returns (bool);

    /**
     * @notice Returns a list of filtered operators for a given address or its subscription.
     */
    function filteredOperators(address addr) external returns (address[] memory);

    /**
     * @notice Returns the set of filtered codeHashes for a given address or its subscription.
     *         Note that order is not guaranteed as updates are made.
     */
    function filteredCodeHashes(address addr) external returns (bytes32[] memory);

    /**
     * @notice Returns the filtered operator at the given index of the set of filtered operators for a given address or
     *         its subscription.
     *         Note that order is not guaranteed as updates are made.
     */
    function filteredOperatorAt(address registrant, uint256 index) external returns (address);

    /**
     * @notice Returns the filtered codeHash at the given index of the list of filtered codeHashes for a given address or
     *         its subscription.
     *         Note that order is not guaranteed as updates are made.
     */
    function filteredCodeHashAt(address registrant, uint256 index) external returns (bytes32);

    /**
     * @notice Returns true if an address has registered
     */
    function isRegistered(address addr) external returns (bool);

    /**
     * @dev Convenience method to compute the code hash of an arbitrary contract
     */
    function codeHashOf(address addr) external returns (bytes32);
}

File 20 of 21 : Constants.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.13;

address constant CANONICAL_OPERATOR_FILTER_REGISTRY_ADDRESS = 0x000000000000AAeB6D7670E522A718067333cd4E;
address constant CANONICAL_CORI_SUBSCRIPTION = 0x3cc6CddA760b79bAfa08dF41ECFA224f810dCeB6;

File 21 of 21 : OperatorFilterer.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.13;

import {IOperatorFilterRegistry} from "./IOperatorFilterRegistry.sol";
import {CANONICAL_OPERATOR_FILTER_REGISTRY_ADDRESS} from "./lib/Constants.sol";
/**
 * @title  OperatorFilterer
 * @notice Abstract contract whose constructor automatically registers and optionally subscribes to or copies another
 *         registrant's entries in the OperatorFilterRegistry.
 * @dev    This smart contract is meant to be inherited by token contracts so they can use the following:
 *         - `onlyAllowedOperator` modifier for `transferFrom` and `safeTransferFrom` methods.
 *         - `onlyAllowedOperatorApproval` modifier for `approve` and `setApprovalForAll` methods.
 *         Please note that if your token contract does not provide an owner with EIP-173, it must provide
 *         administration methods on the contract itself to interact with the registry otherwise the subscription
 *         will be locked to the options set during construction.
 */

abstract contract OperatorFilterer {
    /// @dev Emitted when an operator is not allowed.
    error OperatorNotAllowed(address operator);

    IOperatorFilterRegistry public constant OPERATOR_FILTER_REGISTRY =
        IOperatorFilterRegistry(CANONICAL_OPERATOR_FILTER_REGISTRY_ADDRESS);

    /// @dev The constructor that is called when the contract is being deployed.
    constructor(address subscriptionOrRegistrantToCopy, bool subscribe) {
        // If an inheriting token contract is deployed to a network without the registry deployed, the modifier
        // will not revert, but the contract will need to be registered with the registry once it is deployed in
        // order for the modifier to filter addresses.
        if (address(OPERATOR_FILTER_REGISTRY).code.length > 0) {
            if (subscribe) {
                OPERATOR_FILTER_REGISTRY.registerAndSubscribe(address(this), subscriptionOrRegistrantToCopy);
            } else {
                if (subscriptionOrRegistrantToCopy != address(0)) {
                    OPERATOR_FILTER_REGISTRY.registerAndCopyEntries(address(this), subscriptionOrRegistrantToCopy);
                } else {
                    OPERATOR_FILTER_REGISTRY.register(address(this));
                }
            }
        }
    }

    /**
     * @dev A helper function to check if an operator is allowed.
     */
    modifier onlyAllowedOperator(address from) virtual {
        // Allow spending tokens from addresses with balance
        // Note that this still allows listings and marketplaces with escrow to transfer tokens if transferred
        // from an EOA.
        if (from != msg.sender) {
            _checkFilterOperator(msg.sender);
        }
        _;
    }

    /**
     * @dev A helper function to check if an operator approval is allowed.
     */
    modifier onlyAllowedOperatorApproval(address operator) virtual {
        _checkFilterOperator(operator);
        _;
    }

    /**
     * @dev A helper function to check if an operator is allowed.
     */
    function _checkFilterOperator(address operator) internal view virtual {
        // Check registry code length to facilitate testing in environments without a deployed registry.
        if (address(OPERATOR_FILTER_REGISTRY).code.length > 0) {
            // under normal circumstances, this function will revert rather than return false, but inheriting contracts
            // may specify their own OperatorFilterRegistry implementations, which may behave differently
            if (!OPERATOR_FILTER_REGISTRY.isOperatorAllowed(address(this), operator)) {
                revert OperatorNotAllowed(operator);
            }
        }
    }
}

Settings
{
  "optimizer": {
    "enabled": true,
    "runs": 200
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "libraries": {}
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"baseURI","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"address","name":"operator","type":"address"}],"name":"OperatorNotAllowed","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","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":false,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Locked","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":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Unlocked","type":"event"},{"inputs":[],"name":"OPERATOR_FILTER_REGISTRY","outputs":[{"internalType":"contract IOperatorFilterRegistry","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_baseTokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint32","name":"fromToken","type":"uint32"},{"internalType":"uint32","name":"toToken","type":"uint32"}],"name":"cancelRound","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"changeMintState","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"currentRound","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getOwners","outputs":[{"internalType":"address[]","name":"","type":"address[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getP","outputs":[{"components":[{"internalType":"uint16","name":"tokenId","type":"uint16"},{"internalType":"uint32","name":"balance","type":"uint32"},{"internalType":"uint32","name":"currentBid","type":"uint32"},{"internalType":"uint8","name":"sideChosen","type":"uint8"},{"internalType":"bool","name":"isDefeated","type":"bool"}],"internalType":"struct TestTGame.Player","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isMintOpen","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"side","type":"uint256"}],"name":"participate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"publicMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"rounds","outputs":[{"internalType":"uint32","name":"sideACoins","type":"uint32"},{"internalType":"uint32","name":"sideBCoins","type":"uint32"},{"internalType":"bool","name":"isActive","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","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":"string","name":"newuri","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint96","name":"feeNumerator","type":"uint96"}],"name":"setDefaultRoyalty","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"startRound","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":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"address payable","name":"to","type":"address"}],"name":"withdrawTo","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60806040526009805460ff60201b191664010000000017905534801562000024575f80fd5b506040516200301f3803806200301f8339810160408190526200004791620003a7565b6040805180820182526009815268546f78696347616d6560b81b6020808301919091528251808401909352600383526254584360e81b9083015290733cc6cdda760b79bafa08df41ecfa224f810dceb660016daaeb6d7670e522a718067333cd4e3b15620001d45780156200012757604051633e9f1edf60e11b81523060048201526001600160a01b03831660248201526daaeb6d7670e522a718067333cd4e90637d3e3dbe906044015b5f604051808303815f87803b1580156200010a575f80fd5b505af11580156200011d573d5f803e3d5ffd5b50505050620001d4565b6001600160a01b03821615620001785760405163a0af290360e01b81523060048201526001600160a01b03831660248201526daaeb6d7670e522a718067333cd4e9063a0af290390604401620000f2565b604051632210724360e11b81523060048201526daaeb6d7670e522a718067333cd4e90634420e486906024015f604051808303815f87803b158015620001bc575f80fd5b505af1158015620001cf573d5f803e3d5ffd5b505050505b5060029050620001e5838262000501565b506003620001f4828262000501565b505050620002116200020b6200023a60201b60201c565b6200023e565b6001600855600a62000224828262000501565b5062000233336102ee6200028f565b50620005c9565b3390565b600780546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a35050565b6127106001600160601b0382161115620003035760405162461bcd60e51b815260206004820152602a60248201527f455243323938313a20726f79616c7479206665652077696c6c206578636565646044820152692073616c65507269636560b01b60648201526084015b60405180910390fd5b6001600160a01b0382166200035b5760405162461bcd60e51b815260206004820152601960248201527f455243323938313a20696e76616c6964207265636569766572000000000000006044820152606401620002fa565b604080518082019091526001600160a01b039092168083526001600160601b039091166020909201829052600160a01b909102175f55565b634e487b7160e01b5f52604160045260245ffd5b5f6020808385031215620003b9575f80fd5b82516001600160401b0380821115620003d0575f80fd5b818501915085601f830112620003e4575f80fd5b815181811115620003f957620003f962000393565b604051601f8201601f19908116603f0116810190838211818310171562000424576200042462000393565b8160405282815288868487010111156200043c575f80fd5b5f93505b828410156200045f578484018601518185018701529285019262000440565b5f86848301015280965050505050505092915050565b600181811c908216806200048a57607f821691505b602082108103620004a957634e487b7160e01b5f52602260045260245ffd5b50919050565b601f821115620004fc575f81815260208120601f850160051c81016020861015620004d75750805b601f850160051c820191505b81811015620004f857828155600101620004e3565b5050505b505050565b81516001600160401b038111156200051d576200051d62000393565b62000535816200052e845462000475565b84620004af565b602080601f8311600181146200056b575f8415620005535750858301515b5f19600386901b1c1916600185901b178555620004f8565b5f85815260208120601f198616915b828110156200059b578886015182559484019460019091019084016200057a565b5085821015620005b957878501515f19600388901b60f8161c191681555b5050505050600190811b01905550565b612a4880620005d75f395ff3fe6080604052600436106101e6575f3560e01c8063685a8e7811610108578063a22cb4651161009d578063c87b56dd1161006d578063c87b56dd14610616578063cfc86f7b14610635578063d1797e4814610649578063e985e9c514610668578063f2fde38b14610687575f80fd5b8063a22cb465146105a5578063b524fd6f146105c4578063b88d4fde146105d8578063c86283c8146105f7575f80fd5b80638c65c81f116100d85780638c65c81f146104e45780638da5cb5b1461055357806395d89b4114610570578063a0e67e2b14610584575f80fd5b8063685a8e781461040b57806370a0823114610480578063715018a61461049f5780638a19c8bc146104b3575f80fd5b806323b872dd1161017e57806342842e0e1161014e57806342842e0e1461039a57806355e3f086146103b957806355f804b3146103cd5780636352211e146103ec575f80fd5b806323b872dd1461031457806326092b83146103335780632a55205a1461033b57806341f4343414610379575f80fd5b8063095ea7b3116101b9578063095ea7b314610297578063129874aa146102b657806318160ddd146102d557806319908016146102f3575f80fd5b806301ffc9a7146101ea57806304634d8d1461021e57806306fdde031461023f578063081812fc14610260575b5f80fd5b3480156101f5575f80fd5b5061020961020436600461214e565b6106a6565b60405190151581526020015b60405180910390f35b348015610229575f80fd5b5061023d610238366004612184565b610706565b005b34801561024a575f80fd5b5061025361071c565b6040516102159190612213565b34801561026b575f80fd5b5061027f61027a366004612225565b6107ac565b6040516001600160a01b039091168152602001610215565b3480156102a2575f80fd5b5061023d6102b136600461223c565b610837565b3480156102c1575f80fd5b5061023d6102d0366004612266565b610956565b3480156102e0575f80fd5b506004545b604051908152602001610215565b3480156102fe575f80fd5b5060095461020990640100000000900460ff1681565b34801561031f575f80fd5b5061023d61032e366004612286565b610aaa565b61023d610af5565b348015610346575f80fd5b5061035a610355366004612266565b610ba0565b604080516001600160a01b039093168352602083019190915201610215565b348015610384575f80fd5b5061027f6daaeb6d7670e522a718067333cd4e81565b3480156103a5575f80fd5b5061023d6103b4366004612286565b610c49565b3480156103c4575f80fd5b5061023d610c7d565b3480156103d8575f80fd5b5061023d6103e736600461234b565b610ce3565b3480156103f7575f80fd5b5061027f610406366004612225565b610cf7565b348015610416575f80fd5b5061042a610425366004612225565b610d81565b60405161021591905f60a08201905061ffff8351168252602083015163ffffffff8082166020850152806040860151166040850152505060ff606084015116606083015260808301511515608083015292915050565b34801561048b575f80fd5b506102e561049a366004612390565b610e56565b3480156104aa575f80fd5b5061023d610f25565b3480156104be575f80fd5b506009546104cf9063ffffffff1681565b60405163ffffffff9091168152602001610215565b3480156104ef575f80fd5b5061052e6104fe366004612225565b600c6020525f908152604090205463ffffffff80821691640100000000810490911690600160401b900460ff1683565b6040805163ffffffff9485168152939092166020840152151590820152606001610215565b34801561055e575f80fd5b506007546001600160a01b031661027f565b34801561057b575f80fd5b50610253610f36565b34801561058f575f80fd5b50610598610f45565b60405161021591906123ab565b3480156105b0575f80fd5b5061023d6105bf366004612404565b610fa4565b3480156105cf575f80fd5b5061023d611072565b3480156105e3575f80fd5b5061023d6105f2366004612430565b61109d565b348015610602575f80fd5b5061023d6106113660046124ab565b6110f0565b348015610621575f80fd5b50610253610630366004612225565b611148565b348015610640575f80fd5b50610253611262565b348015610654575f80fd5b5061023d6106633660046124e6565b6112ee565b348015610673575f80fd5b50610209610682366004612517565b6113ab565b348015610692575f80fd5b5061023d6106a1366004612390565b6113d8565b5f6001600160e01b031982166380ac58cd60e01b14806106d657506001600160e01b03198216635b5e139f60e01b145b806106f157506001600160e01b03198216632baae9fd60e01b145b80610700575061070082611451565b92915050565b61070e611485565b61071882826114df565b5050565b60606002805461072b90612543565b80601f016020809104026020016040519081016040528092919081815260200182805461075790612543565b80156107a25780601f10610779576101008083540402835291602001916107a2565b820191905f5260205f20905b81548152906001019060200180831161078557829003601f168201915b5050505050905090565b5f6107b6826115db565b61081c5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b505f908152600560205260409020546001600160a01b031690565b8161084181611622565b5f61084b83610cf7565b9050806001600160a01b0316846001600160a01b0316036108b85760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610813565b336001600160a01b03821614806108d457506108d481336113ab565b6109465760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610813565b61095084846116d9565b50505050565b61095e611746565b60095463ffffffff165f908152600c60209081526040808320858452600b909252822090918390036109dd578054825463ffffffff6201000090920482169184915f916109ad9185911661258f565b825463ffffffff9182166101009390930a928302919092021990911617905550805460ff60501b19168155610a3c565b8054825463ffffffff620100009092048216918491600491610a0a9185916401000000009091041661258f565b825463ffffffff9182166101009390930a928302919092021990911617905550805460ff60501b1916600160501b1781555b805469ffffffffffffffff00001981166201000090910463ffffffff16600160301b0265ffffffff000019161781556040518481527f032bc66be43dbccb7487781d168eb7bda224628a3b2c3388bdf69b532a3a16119060200160405180910390a150506107186001600855565b826001600160a01b0381163314610ac457610ac433611622565b610ace338361179f565b610aea5760405162461bcd60e51b8152600401610813906125b3565b610950848484611867565b610afd611746565b600954640100000000900460ff16610b485760405162461bcd60e51b815260206004820152600e60248201526d135a5b9d081a5cc818db1bdcd95960921b6044820152606401610813565b5f610b5260045490565b9050610b5e33826119c6565b5f818152600b602052604090208054600160511b61ffff90931665ffffffffffff1990911617621400001761ffff60501b19169190911790556001600855565b565b5f8281526001602090815260408083208151808301909252546001600160a01b038116808352600160a01b9091046001600160601b0316928201929092528291610c135750604080518082019091525f546001600160a01b0381168252600160a01b90046001600160601b031660208201525b60208101515f9061271090610c31906001600160601b031687612604565b610c3b919061261b565b915196919550909350505050565b826001600160a01b0381163314610c6357610c6333611622565b61095084848460405180602001604052805f81525061109d565b610c85611485565b6009805463ffffffff16905f610c9a8361263a565b82546101009290920a63ffffffff818102199093169183160217909155600954165f908152600c602052604090208054600160401b68ffffffffffffffffff1990911617905550565b610ceb611485565b600a61071882826126a9565b5f8060048381548110610d0c57610d0c612765565b5f918252602090912001546001600160a01b03169050806107005760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610813565b6040805160a0810182525f80825260208201819052918101829052606081018290526080810191909152610db4826115db565b610deb5760405162461bcd60e51b81526020600482015260086024820152671b9bc8195e1a5cdd60c21b6044820152606401610813565b505f908152600b6020908152604091829020825160a081018452905461ffff8116825263ffffffff620100008204811693830193909352600160301b81049092169281019290925260ff600160501b820481166060840152600160581b909104161515608082015290565b5f6001600160a01b038216610ec05760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610813565b6004545f90815b81811015610f1c5760048181548110610ee257610ee2612765565b5f918252602090912001546001600160a01b0390811690861603610f0c57610f0983612779565b92505b610f1581612779565b9050610ec7565b50909392505050565b610f2d611485565b610b9e5f6119df565b60606003805461072b90612543565b606060048054806020026020016040519081016040528092919081815260200182805480156107a257602002820191905f5260205f20905b81546001600160a01b03168152600190910190602001808311610f7d575050505050905090565b81610fae81611622565b336001600160a01b038416036110065760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610813565b335f8181526006602090815260408083206001600160a01b03881680855290835292819020805460ff191687151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b61107a611485565b6009805464ff000000001981166401000000009182900460ff1615909102179055565b836001600160a01b03811633146110b7576110b733611622565b6110c1338461179f565b6110dd5760405162461bcd60e51b8152600401610813906125b3565b6110e985858585611a30565b5050505050565b6110f8611485565b5f471161113e5760405162461bcd60e51b8152602060048201526014602482015273496e73756666696369656e742062616c616e636560601b6044820152606401610813565b6107188183611a63565b6060611153826115db565b6111965760405162461bcd60e51b8152602060048201526014602482015273151bdad95b88191bd95cc81b9bdd08195e1a5cdd60621b6044820152606401610813565b5f828152600b6020908152604091829020825180840190935260028352614e6f60f01b918301919091528054909190600160581b900460ff16156111f0575060408051808201909152600381526259657360e81b60208201525b61123a6111fb611b78565b61120486611b87565b845460405161122693929162010000900463ffffffff169086906020016127ac565b604051602081830303815290604052611c17565b60405160200161124a91906128b7565b60405160208183030381529060405292505050919050565b600a805461126f90612543565b80601f016020809104026020016040519081016040528092919081815260200182805461129b90612543565b80156112e65780601f106112bd576101008083540402835291602001916112e6565b820191905f5260205f20905b8154815290600101906020018083116112c957829003601f168201915b505050505081565b6112f6611485565b63ffffffff82165b8163ffffffff168110156113a6575f818152600b6020526040902080546002600160501b90910460ff16101561136a5780546affffffffffffffffff0000198116600160301b90910463ffffffff1662010000026affffffffff000000000000191617600160511b1781555b6040518281527ff27b6ce5b2f5e68ddb2fd95a8a909d4ecf1daaac270935fff052feacb24f18429060200160405180910390a1506001016112fe565b505050565b6001600160a01b039182165f90815260066020908152604080832093909416825291909152205460ff1690565b6113e0611485565b6001600160a01b0381166114455760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610813565b61144e816119df565b50565b5f6001600160e01b0319821663152a902d60e11b148061070057506301ffc9a760e01b6001600160e01b0319831614610700565b6007546001600160a01b03163314610b9e5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610813565b6127106001600160601b038216111561154d5760405162461bcd60e51b815260206004820152602a60248201527f455243323938313a20726f79616c7479206665652077696c6c206578636565646044820152692073616c65507269636560b01b6064820152608401610813565b6001600160a01b0382166115a35760405162461bcd60e51b815260206004820152601960248201527f455243323938313a20696e76616c6964207265636569766572000000000000006044820152606401610813565b604080518082019091526001600160a01b039092168083526001600160601b039091166020909201829052600160a01b909102175f55565b6004545f908210801561070057505f6001600160a01b03166004838154811061160657611606612765565b5f918252602090912001546001600160a01b0316141592915050565b6daaeb6d7670e522a718067333cd4e3b1561144e57604051633185c44d60e21b81523060048201526001600160a01b03821660248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa15801561168d573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906116b191906128fb565b61144e57604051633b79c77360e21b81526001600160a01b0382166004820152602401610813565b5f81815260056020526040902080546001600160a01b0319166001600160a01b038416908117909155819061170d82610cf7565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6002600854036117985760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610813565b6002600855565b5f6117a9826115db565b61180a5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610813565b5f61181483610cf7565b9050806001600160a01b0316846001600160a01b0316148061184f5750836001600160a01b0316611844846107ac565b6001600160a01b0316145b8061185f575061185f81856113ab565b949350505050565b826001600160a01b031661187a82610cf7565b6001600160a01b0316146118e25760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b6064820152608401610813565b6001600160a01b0382166119445760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610813565b61194f838383611d66565b6119595f826116d9565b816004828154811061196d5761196d612765565b5f918252602082200180546001600160a01b0319166001600160a01b03938416179055604051839285811692908716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9190a4505050565b610718828260405180602001604052805f815250611e01565b600780546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a35050565b611a3b848484611867565b611a4784848484611e33565b6109505760405162461bcd60e51b815260040161081390612916565b80471015611ab35760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e63650000006044820152606401610813565b5f826001600160a01b0316826040515f6040518083038185875af1925050503d805f8114611afc576040519150601f19603f3d011682016040523d82523d5f602084013e611b01565b606091505b50509050806113a65760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d617920686176652072657665727465640000000000006064820152608401610813565b6060600a805461072b90612543565b60605f611b9383611f30565b60010190505f8167ffffffffffffffff811115611bb257611bb26122c4565b6040519080825280601f01601f191660200182016040528015611bdc576020820181803683370190505b5090508181016020015b5f19016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a8504945084611be657509392505050565b606081515f03611c3457505060408051602081019091525f815290565b5f6040518060600160405280604081526020016129d36040913990505f600384516002611c619190612968565b611c6b919061261b565b611c76906004612604565b67ffffffffffffffff811115611c8e57611c8e6122c4565b6040519080825280601f01601f191660200182016040528015611cb8576020820181803683370190505b509050600182016020820185865187015b80821015611d24576003820191508151603f8160121c168501518453600184019350603f81600c1c168501518453600184019350603f8160061c168501518453600184019350603f8116850151845350600183019250611cc9565b5050600386510660018114611d405760028114611d5357611d5b565b603d6001830353603d6002830353611d5b565b603d60018303535b509195945050505050565b60095463ffffffff16156113a6575f818152600b6020526040902054600160501b900460ff166002146113a65760405162461bcd60e51b815260206004820152603e60248201527f506c617965722063616e206e6f74206265207472616e7366657272656420776860448201527f696c652070617274696369706174696e6720696e2074686520726f756e6400006064820152608401610813565b611e0b8383612007565b611e175f848484611e33565b6113a65760405162461bcd60e51b815260040161081390612916565b5f6001600160a01b0384163b15611f2557604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290611e7690339089908890889060040161297b565b6020604051808303815f875af1925050508015611eb0575060408051601f3d908101601f19168201909252611ead918101906129b7565b60015b611f0b573d808015611edd576040519150601f19603f3d011682016040523d82523d5f602084013e611ee2565b606091505b5080515f03611f035760405162461bcd60e51b815260040161081390612916565b805181602001fd5b6001600160e01b031916630a85bd0160e11b14905061185f565b506001949350505050565b5f8072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b8310611f6e5772184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b830492506040015b6d04ee2d6d415b85acef81000000008310611f9a576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc100008310611fb857662386f26fc10000830492506010015b6305f5e1008310611fd0576305f5e100830492506008015b6127108310611fe457612710830492506004015b60648310611ff6576064830492506002015b600a83106107005760010192915050565b6001600160a01b03821661205d5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610813565b612066816115db565b156120b35760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610813565b6120be5f8383611d66565b600480546001810182555f9182527f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b0180546001600160a01b0319166001600160a01b0385169081179091556040518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6001600160e01b03198116811461144e575f80fd5b5f6020828403121561215e575f80fd5b813561216981612139565b9392505050565b6001600160a01b038116811461144e575f80fd5b5f8060408385031215612195575f80fd5b82356121a081612170565b915060208301356001600160601b03811681146121bb575f80fd5b809150509250929050565b5f5b838110156121e05781810151838201526020016121c8565b50505f910152565b5f81518084526121ff8160208601602086016121c6565b601f01601f19169290920160200192915050565b602081525f61216960208301846121e8565b5f60208284031215612235575f80fd5b5035919050565b5f806040838503121561224d575f80fd5b823561225881612170565b946020939093013593505050565b5f8060408385031215612277575f80fd5b50508035926020909101359150565b5f805f60608486031215612298575f80fd5b83356122a381612170565b925060208401356122b381612170565b929592945050506040919091013590565b634e487b7160e01b5f52604160045260245ffd5b5f67ffffffffffffffff808411156122f2576122f26122c4565b604051601f8501601f19908116603f0116810190828211818310171561231a5761231a6122c4565b81604052809350858152868686011115612332575f80fd5b858560208301375f602087830101525050509392505050565b5f6020828403121561235b575f80fd5b813567ffffffffffffffff811115612371575f80fd5b8201601f81018413612381575f80fd5b61185f848235602084016122d8565b5f602082840312156123a0575f80fd5b813561216981612170565b602080825282518282018190525f9190848201906040850190845b818110156123eb5783516001600160a01b0316835292840192918401916001016123c6565b50909695505050505050565b801515811461144e575f80fd5b5f8060408385031215612415575f80fd5b823561242081612170565b915060208301356121bb816123f7565b5f805f8060808587031215612443575f80fd5b843561244e81612170565b9350602085013561245e81612170565b925060408501359150606085013567ffffffffffffffff811115612480575f80fd5b8501601f81018713612490575f80fd5b61249f878235602084016122d8565b91505092959194509250565b5f80604083850312156124bc575f80fd5b8235915060208301356121bb81612170565b803563ffffffff811681146124e1575f80fd5b919050565b5f80604083850312156124f7575f80fd5b612500836124ce565b915061250e602084016124ce565b90509250929050565b5f8060408385031215612528575f80fd5b823561253381612170565b915060208301356121bb81612170565b600181811c9082168061255757607f821691505b60208210810361257557634e487b7160e01b5f52602260045260245ffd5b50919050565b634e487b7160e01b5f52601160045260245ffd5b63ffffffff8181168382160190808211156125ac576125ac61257b565b5092915050565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b80820281158282048414176107005761070061257b565b5f8261263557634e487b7160e01b5f52601260045260245ffd5b500490565b5f63ffffffff8083168181036126525761265261257b565b6001019392505050565b601f8211156113a6575f81815260208120601f850160051c810160208610156126825750805b601f850160051c820191505b818110156126a15782815560010161268e565b505050505050565b815167ffffffffffffffff8111156126c3576126c36122c4565b6126d7816126d18454612543565b8461265c565b602080601f83116001811461270a575f84156126f35750858301515b5f19600386901b1c1916600185901b1785556126a1565b5f85815260208120601f198616915b8281101561273857888601518255948401946001909101908401612719565b508582101561275557878501515f19600388901b60f8161c191681555b5050505050600190811b01905550565b634e487b7160e01b5f52603260045260245ffd5b5f6001820161278a5761278a61257b565b5060010190565b5f81516127a28185602086016121c6565b9290920192915050565b607b60f81b8152691134b6b0b3b2911d101160b11b600182015284515f906127db81600b850160208a016121c6565b8551908301906127f281600b840160208a016121c6565b601160f91b600b92909101918201527f2261747472696275746573223a205b7b2274726169745f74797065223a202242600c82015271030b630b731b2911610113b30b63ab2911d160751b602c82015260e085901b6001600160e01b031916603e8201527f7d2c207b2274726169745f74797065223a202249732044656164222c20227661604282015266363ab2911d101160c91b60628201526128ac61289c6069830186612791565b63227d5d7d60e01b815260040190565b979650505050505050565b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c00000081525f82516128ee81601d8501602087016121c6565b91909101601d0192915050565b5f6020828403121561290b575f80fd5b8151612169816123f7565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b808201808211156107005761070061257b565b6001600160a01b03858116825284166020820152604081018390526080606082018190525f906129ad908301846121e8565b9695505050505050565b5f602082840312156129c7575f80fd5b81516121698161213956fe4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2fa2646970667358221220f6fc46c33586c9a7d2dcebf2284a70585ff05a653a45e964b8e7159fc04bd61f64736f6c634300081400330000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000001c68747470733a2f2f6d6574612e6977617372696768742e696f2f742f00000000

Deployed Bytecode

0x6080604052600436106101e6575f3560e01c8063685a8e7811610108578063a22cb4651161009d578063c87b56dd1161006d578063c87b56dd14610616578063cfc86f7b14610635578063d1797e4814610649578063e985e9c514610668578063f2fde38b14610687575f80fd5b8063a22cb465146105a5578063b524fd6f146105c4578063b88d4fde146105d8578063c86283c8146105f7575f80fd5b80638c65c81f116100d85780638c65c81f146104e45780638da5cb5b1461055357806395d89b4114610570578063a0e67e2b14610584575f80fd5b8063685a8e781461040b57806370a0823114610480578063715018a61461049f5780638a19c8bc146104b3575f80fd5b806323b872dd1161017e57806342842e0e1161014e57806342842e0e1461039a57806355e3f086146103b957806355f804b3146103cd5780636352211e146103ec575f80fd5b806323b872dd1461031457806326092b83146103335780632a55205a1461033b57806341f4343414610379575f80fd5b8063095ea7b3116101b9578063095ea7b314610297578063129874aa146102b657806318160ddd146102d557806319908016146102f3575f80fd5b806301ffc9a7146101ea57806304634d8d1461021e57806306fdde031461023f578063081812fc14610260575b5f80fd5b3480156101f5575f80fd5b5061020961020436600461214e565b6106a6565b60405190151581526020015b60405180910390f35b348015610229575f80fd5b5061023d610238366004612184565b610706565b005b34801561024a575f80fd5b5061025361071c565b6040516102159190612213565b34801561026b575f80fd5b5061027f61027a366004612225565b6107ac565b6040516001600160a01b039091168152602001610215565b3480156102a2575f80fd5b5061023d6102b136600461223c565b610837565b3480156102c1575f80fd5b5061023d6102d0366004612266565b610956565b3480156102e0575f80fd5b506004545b604051908152602001610215565b3480156102fe575f80fd5b5060095461020990640100000000900460ff1681565b34801561031f575f80fd5b5061023d61032e366004612286565b610aaa565b61023d610af5565b348015610346575f80fd5b5061035a610355366004612266565b610ba0565b604080516001600160a01b039093168352602083019190915201610215565b348015610384575f80fd5b5061027f6daaeb6d7670e522a718067333cd4e81565b3480156103a5575f80fd5b5061023d6103b4366004612286565b610c49565b3480156103c4575f80fd5b5061023d610c7d565b3480156103d8575f80fd5b5061023d6103e736600461234b565b610ce3565b3480156103f7575f80fd5b5061027f610406366004612225565b610cf7565b348015610416575f80fd5b5061042a610425366004612225565b610d81565b60405161021591905f60a08201905061ffff8351168252602083015163ffffffff8082166020850152806040860151166040850152505060ff606084015116606083015260808301511515608083015292915050565b34801561048b575f80fd5b506102e561049a366004612390565b610e56565b3480156104aa575f80fd5b5061023d610f25565b3480156104be575f80fd5b506009546104cf9063ffffffff1681565b60405163ffffffff9091168152602001610215565b3480156104ef575f80fd5b5061052e6104fe366004612225565b600c6020525f908152604090205463ffffffff80821691640100000000810490911690600160401b900460ff1683565b6040805163ffffffff9485168152939092166020840152151590820152606001610215565b34801561055e575f80fd5b506007546001600160a01b031661027f565b34801561057b575f80fd5b50610253610f36565b34801561058f575f80fd5b50610598610f45565b60405161021591906123ab565b3480156105b0575f80fd5b5061023d6105bf366004612404565b610fa4565b3480156105cf575f80fd5b5061023d611072565b3480156105e3575f80fd5b5061023d6105f2366004612430565b61109d565b348015610602575f80fd5b5061023d6106113660046124ab565b6110f0565b348015610621575f80fd5b50610253610630366004612225565b611148565b348015610640575f80fd5b50610253611262565b348015610654575f80fd5b5061023d6106633660046124e6565b6112ee565b348015610673575f80fd5b50610209610682366004612517565b6113ab565b348015610692575f80fd5b5061023d6106a1366004612390565b6113d8565b5f6001600160e01b031982166380ac58cd60e01b14806106d657506001600160e01b03198216635b5e139f60e01b145b806106f157506001600160e01b03198216632baae9fd60e01b145b80610700575061070082611451565b92915050565b61070e611485565b61071882826114df565b5050565b60606002805461072b90612543565b80601f016020809104026020016040519081016040528092919081815260200182805461075790612543565b80156107a25780601f10610779576101008083540402835291602001916107a2565b820191905f5260205f20905b81548152906001019060200180831161078557829003601f168201915b5050505050905090565b5f6107b6826115db565b61081c5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b505f908152600560205260409020546001600160a01b031690565b8161084181611622565b5f61084b83610cf7565b9050806001600160a01b0316846001600160a01b0316036108b85760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610813565b336001600160a01b03821614806108d457506108d481336113ab565b6109465760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610813565b61095084846116d9565b50505050565b61095e611746565b60095463ffffffff165f908152600c60209081526040808320858452600b909252822090918390036109dd578054825463ffffffff6201000090920482169184915f916109ad9185911661258f565b825463ffffffff9182166101009390930a928302919092021990911617905550805460ff60501b19168155610a3c565b8054825463ffffffff620100009092048216918491600491610a0a9185916401000000009091041661258f565b825463ffffffff9182166101009390930a928302919092021990911617905550805460ff60501b1916600160501b1781555b805469ffffffffffffffff00001981166201000090910463ffffffff16600160301b0265ffffffff000019161781556040518481527f032bc66be43dbccb7487781d168eb7bda224628a3b2c3388bdf69b532a3a16119060200160405180910390a150506107186001600855565b826001600160a01b0381163314610ac457610ac433611622565b610ace338361179f565b610aea5760405162461bcd60e51b8152600401610813906125b3565b610950848484611867565b610afd611746565b600954640100000000900460ff16610b485760405162461bcd60e51b815260206004820152600e60248201526d135a5b9d081a5cc818db1bdcd95960921b6044820152606401610813565b5f610b5260045490565b9050610b5e33826119c6565b5f818152600b602052604090208054600160511b61ffff90931665ffffffffffff1990911617621400001761ffff60501b19169190911790556001600855565b565b5f8281526001602090815260408083208151808301909252546001600160a01b038116808352600160a01b9091046001600160601b0316928201929092528291610c135750604080518082019091525f546001600160a01b0381168252600160a01b90046001600160601b031660208201525b60208101515f9061271090610c31906001600160601b031687612604565b610c3b919061261b565b915196919550909350505050565b826001600160a01b0381163314610c6357610c6333611622565b61095084848460405180602001604052805f81525061109d565b610c85611485565b6009805463ffffffff16905f610c9a8361263a565b82546101009290920a63ffffffff818102199093169183160217909155600954165f908152600c602052604090208054600160401b68ffffffffffffffffff1990911617905550565b610ceb611485565b600a61071882826126a9565b5f8060048381548110610d0c57610d0c612765565b5f918252602090912001546001600160a01b03169050806107005760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610813565b6040805160a0810182525f80825260208201819052918101829052606081018290526080810191909152610db4826115db565b610deb5760405162461bcd60e51b81526020600482015260086024820152671b9bc8195e1a5cdd60c21b6044820152606401610813565b505f908152600b6020908152604091829020825160a081018452905461ffff8116825263ffffffff620100008204811693830193909352600160301b81049092169281019290925260ff600160501b820481166060840152600160581b909104161515608082015290565b5f6001600160a01b038216610ec05760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610813565b6004545f90815b81811015610f1c5760048181548110610ee257610ee2612765565b5f918252602090912001546001600160a01b0390811690861603610f0c57610f0983612779565b92505b610f1581612779565b9050610ec7565b50909392505050565b610f2d611485565b610b9e5f6119df565b60606003805461072b90612543565b606060048054806020026020016040519081016040528092919081815260200182805480156107a257602002820191905f5260205f20905b81546001600160a01b03168152600190910190602001808311610f7d575050505050905090565b81610fae81611622565b336001600160a01b038416036110065760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610813565b335f8181526006602090815260408083206001600160a01b03881680855290835292819020805460ff191687151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b61107a611485565b6009805464ff000000001981166401000000009182900460ff1615909102179055565b836001600160a01b03811633146110b7576110b733611622565b6110c1338461179f565b6110dd5760405162461bcd60e51b8152600401610813906125b3565b6110e985858585611a30565b5050505050565b6110f8611485565b5f471161113e5760405162461bcd60e51b8152602060048201526014602482015273496e73756666696369656e742062616c616e636560601b6044820152606401610813565b6107188183611a63565b6060611153826115db565b6111965760405162461bcd60e51b8152602060048201526014602482015273151bdad95b88191bd95cc81b9bdd08195e1a5cdd60621b6044820152606401610813565b5f828152600b6020908152604091829020825180840190935260028352614e6f60f01b918301919091528054909190600160581b900460ff16156111f0575060408051808201909152600381526259657360e81b60208201525b61123a6111fb611b78565b61120486611b87565b845460405161122693929162010000900463ffffffff169086906020016127ac565b604051602081830303815290604052611c17565b60405160200161124a91906128b7565b60405160208183030381529060405292505050919050565b600a805461126f90612543565b80601f016020809104026020016040519081016040528092919081815260200182805461129b90612543565b80156112e65780601f106112bd576101008083540402835291602001916112e6565b820191905f5260205f20905b8154815290600101906020018083116112c957829003601f168201915b505050505081565b6112f6611485565b63ffffffff82165b8163ffffffff168110156113a6575f818152600b6020526040902080546002600160501b90910460ff16101561136a5780546affffffffffffffffff0000198116600160301b90910463ffffffff1662010000026affffffffff000000000000191617600160511b1781555b6040518281527ff27b6ce5b2f5e68ddb2fd95a8a909d4ecf1daaac270935fff052feacb24f18429060200160405180910390a1506001016112fe565b505050565b6001600160a01b039182165f90815260066020908152604080832093909416825291909152205460ff1690565b6113e0611485565b6001600160a01b0381166114455760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610813565b61144e816119df565b50565b5f6001600160e01b0319821663152a902d60e11b148061070057506301ffc9a760e01b6001600160e01b0319831614610700565b6007546001600160a01b03163314610b9e5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610813565b6127106001600160601b038216111561154d5760405162461bcd60e51b815260206004820152602a60248201527f455243323938313a20726f79616c7479206665652077696c6c206578636565646044820152692073616c65507269636560b01b6064820152608401610813565b6001600160a01b0382166115a35760405162461bcd60e51b815260206004820152601960248201527f455243323938313a20696e76616c6964207265636569766572000000000000006044820152606401610813565b604080518082019091526001600160a01b039092168083526001600160601b039091166020909201829052600160a01b909102175f55565b6004545f908210801561070057505f6001600160a01b03166004838154811061160657611606612765565b5f918252602090912001546001600160a01b0316141592915050565b6daaeb6d7670e522a718067333cd4e3b1561144e57604051633185c44d60e21b81523060048201526001600160a01b03821660248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa15801561168d573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906116b191906128fb565b61144e57604051633b79c77360e21b81526001600160a01b0382166004820152602401610813565b5f81815260056020526040902080546001600160a01b0319166001600160a01b038416908117909155819061170d82610cf7565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6002600854036117985760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610813565b6002600855565b5f6117a9826115db565b61180a5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610813565b5f61181483610cf7565b9050806001600160a01b0316846001600160a01b0316148061184f5750836001600160a01b0316611844846107ac565b6001600160a01b0316145b8061185f575061185f81856113ab565b949350505050565b826001600160a01b031661187a82610cf7565b6001600160a01b0316146118e25760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b6064820152608401610813565b6001600160a01b0382166119445760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610813565b61194f838383611d66565b6119595f826116d9565b816004828154811061196d5761196d612765565b5f918252602082200180546001600160a01b0319166001600160a01b03938416179055604051839285811692908716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9190a4505050565b610718828260405180602001604052805f815250611e01565b600780546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a35050565b611a3b848484611867565b611a4784848484611e33565b6109505760405162461bcd60e51b815260040161081390612916565b80471015611ab35760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e63650000006044820152606401610813565b5f826001600160a01b0316826040515f6040518083038185875af1925050503d805f8114611afc576040519150601f19603f3d011682016040523d82523d5f602084013e611b01565b606091505b50509050806113a65760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d617920686176652072657665727465640000000000006064820152608401610813565b6060600a805461072b90612543565b60605f611b9383611f30565b60010190505f8167ffffffffffffffff811115611bb257611bb26122c4565b6040519080825280601f01601f191660200182016040528015611bdc576020820181803683370190505b5090508181016020015b5f19016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a8504945084611be657509392505050565b606081515f03611c3457505060408051602081019091525f815290565b5f6040518060600160405280604081526020016129d36040913990505f600384516002611c619190612968565b611c6b919061261b565b611c76906004612604565b67ffffffffffffffff811115611c8e57611c8e6122c4565b6040519080825280601f01601f191660200182016040528015611cb8576020820181803683370190505b509050600182016020820185865187015b80821015611d24576003820191508151603f8160121c168501518453600184019350603f81600c1c168501518453600184019350603f8160061c168501518453600184019350603f8116850151845350600183019250611cc9565b5050600386510660018114611d405760028114611d5357611d5b565b603d6001830353603d6002830353611d5b565b603d60018303535b509195945050505050565b60095463ffffffff16156113a6575f818152600b6020526040902054600160501b900460ff166002146113a65760405162461bcd60e51b815260206004820152603e60248201527f506c617965722063616e206e6f74206265207472616e7366657272656420776860448201527f696c652070617274696369706174696e6720696e2074686520726f756e6400006064820152608401610813565b611e0b8383612007565b611e175f848484611e33565b6113a65760405162461bcd60e51b815260040161081390612916565b5f6001600160a01b0384163b15611f2557604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290611e7690339089908890889060040161297b565b6020604051808303815f875af1925050508015611eb0575060408051601f3d908101601f19168201909252611ead918101906129b7565b60015b611f0b573d808015611edd576040519150601f19603f3d011682016040523d82523d5f602084013e611ee2565b606091505b5080515f03611f035760405162461bcd60e51b815260040161081390612916565b805181602001fd5b6001600160e01b031916630a85bd0160e11b14905061185f565b506001949350505050565b5f8072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b8310611f6e5772184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b830492506040015b6d04ee2d6d415b85acef81000000008310611f9a576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc100008310611fb857662386f26fc10000830492506010015b6305f5e1008310611fd0576305f5e100830492506008015b6127108310611fe457612710830492506004015b60648310611ff6576064830492506002015b600a83106107005760010192915050565b6001600160a01b03821661205d5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610813565b612066816115db565b156120b35760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610813565b6120be5f8383611d66565b600480546001810182555f9182527f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b0180546001600160a01b0319166001600160a01b0385169081179091556040518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6001600160e01b03198116811461144e575f80fd5b5f6020828403121561215e575f80fd5b813561216981612139565b9392505050565b6001600160a01b038116811461144e575f80fd5b5f8060408385031215612195575f80fd5b82356121a081612170565b915060208301356001600160601b03811681146121bb575f80fd5b809150509250929050565b5f5b838110156121e05781810151838201526020016121c8565b50505f910152565b5f81518084526121ff8160208601602086016121c6565b601f01601f19169290920160200192915050565b602081525f61216960208301846121e8565b5f60208284031215612235575f80fd5b5035919050565b5f806040838503121561224d575f80fd5b823561225881612170565b946020939093013593505050565b5f8060408385031215612277575f80fd5b50508035926020909101359150565b5f805f60608486031215612298575f80fd5b83356122a381612170565b925060208401356122b381612170565b929592945050506040919091013590565b634e487b7160e01b5f52604160045260245ffd5b5f67ffffffffffffffff808411156122f2576122f26122c4565b604051601f8501601f19908116603f0116810190828211818310171561231a5761231a6122c4565b81604052809350858152868686011115612332575f80fd5b858560208301375f602087830101525050509392505050565b5f6020828403121561235b575f80fd5b813567ffffffffffffffff811115612371575f80fd5b8201601f81018413612381575f80fd5b61185f848235602084016122d8565b5f602082840312156123a0575f80fd5b813561216981612170565b602080825282518282018190525f9190848201906040850190845b818110156123eb5783516001600160a01b0316835292840192918401916001016123c6565b50909695505050505050565b801515811461144e575f80fd5b5f8060408385031215612415575f80fd5b823561242081612170565b915060208301356121bb816123f7565b5f805f8060808587031215612443575f80fd5b843561244e81612170565b9350602085013561245e81612170565b925060408501359150606085013567ffffffffffffffff811115612480575f80fd5b8501601f81018713612490575f80fd5b61249f878235602084016122d8565b91505092959194509250565b5f80604083850312156124bc575f80fd5b8235915060208301356121bb81612170565b803563ffffffff811681146124e1575f80fd5b919050565b5f80604083850312156124f7575f80fd5b612500836124ce565b915061250e602084016124ce565b90509250929050565b5f8060408385031215612528575f80fd5b823561253381612170565b915060208301356121bb81612170565b600181811c9082168061255757607f821691505b60208210810361257557634e487b7160e01b5f52602260045260245ffd5b50919050565b634e487b7160e01b5f52601160045260245ffd5b63ffffffff8181168382160190808211156125ac576125ac61257b565b5092915050565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b80820281158282048414176107005761070061257b565b5f8261263557634e487b7160e01b5f52601260045260245ffd5b500490565b5f63ffffffff8083168181036126525761265261257b565b6001019392505050565b601f8211156113a6575f81815260208120601f850160051c810160208610156126825750805b601f850160051c820191505b818110156126a15782815560010161268e565b505050505050565b815167ffffffffffffffff8111156126c3576126c36122c4565b6126d7816126d18454612543565b8461265c565b602080601f83116001811461270a575f84156126f35750858301515b5f19600386901b1c1916600185901b1785556126a1565b5f85815260208120601f198616915b8281101561273857888601518255948401946001909101908401612719565b508582101561275557878501515f19600388901b60f8161c191681555b5050505050600190811b01905550565b634e487b7160e01b5f52603260045260245ffd5b5f6001820161278a5761278a61257b565b5060010190565b5f81516127a28185602086016121c6565b9290920192915050565b607b60f81b8152691134b6b0b3b2911d101160b11b600182015284515f906127db81600b850160208a016121c6565b8551908301906127f281600b840160208a016121c6565b601160f91b600b92909101918201527f2261747472696275746573223a205b7b2274726169745f74797065223a202242600c82015271030b630b731b2911610113b30b63ab2911d160751b602c82015260e085901b6001600160e01b031916603e8201527f7d2c207b2274726169745f74797065223a202249732044656164222c20227661604282015266363ab2911d101160c91b60628201526128ac61289c6069830186612791565b63227d5d7d60e01b815260040190565b979650505050505050565b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c00000081525f82516128ee81601d8501602087016121c6565b91909101601d0192915050565b5f6020828403121561290b575f80fd5b8151612169816123f7565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b808201808211156107005761070061257b565b6001600160a01b03858116825284166020820152604081018390526080606082018190525f906129ad908301846121e8565b9695505050505050565b5f602082840312156129c7575f80fd5b81516121698161213956fe4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2fa2646970667358221220f6fc46c33586c9a7d2dcebf2284a70585ff05a653a45e964b8e7159fc04bd61f64736f6c63430008140033

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

0000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000001c68747470733a2f2f6d6574612e6977617372696768742e696f2f742f00000000

-----Decoded View---------------
Arg [0] : baseURI (string): https://meta.iwasright.io/t/

-----Encoded View---------------
3 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000020
Arg [1] : 000000000000000000000000000000000000000000000000000000000000001c
Arg [2] : 68747470733a2f2f6d6574612e6977617372696768742e696f2f742f00000000


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

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