ETH Price: $2,573.68 (-1.64%)

Token

 

Overview

Max Total Supply

40

Holders

18

Total Transfers

-

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
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:
PixelmonSponsoredTrips

Compiler Version
v0.8.16+commit.07a7930e

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion
File 1 of 13 : PixelmonSponsoredTrips.sol
// SPDX-License-Identifier: UNLICENSED

pragma solidity ^0.8.16;

import "@openzeppelin/contracts/token/ERC1155/ERC1155.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/Strings.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";

///@notice Thrown when address is not registered as minter
error NotMinter();

///@notice Thrown when address input is 0x0
error InvalidAddress();

///@notice Thrown when isMintingAllowed value is false
error MintingIsDisabled();

///@notice Thrown when isBurningAllowed value is false
error BurningIsDisabled();

using Strings for uint8;

contract PixelmonSponsoredTrips is ERC1155, Ownable, ReentrancyGuard {
    uint8 constant TOKEN_ID = 1;

    ///@notice Token total supply in the contract
    ///@dev The value can't be less than equal to mintedTokenAmount
    uint256 public tokenTotalSupply;

    ///@notice Total token that's been minted by user
    ///@dev Increased every time mint method is called
    uint256 public mintedTokenAmount = 0;

    ///@notice Whether mint functionality is activated or not
    bool public isMintingAllowed = true;

    ///@notice Whether burn functionality is activated or not
    bool public isBurningAllowed;

    ///@notice List of address that is allowed to mint. 'false' means not allowed/registered, 'true' means allowed
    mapping(address => bool) public minterList;

    ///@notice Metadata base URI
    string public baseURI = "";

    constructor(uint256 _tokenTotalSupply, string memory metadataURI) ERC1155(baseURI) {
      baseURI = metadataURI;
      tokenTotalSupply = _tokenTotalSupply;
    }

    event Burn(address indexed from, uint8 indexed token, uint256 amount);
    event Mint(address indexed to, uint8 indexed token, uint256 amount);

    ///@dev Check whether address is allowed to mint, throw NotMinter if not allowed
    modifier onlyMinter() {
        if (!minterList[msg.sender]) {
            revert NotMinter();
        }
        _;
    }

    ///@dev Check whether address is 0x0, throw InvalidAddress if true
    ///@param _address Input address
    modifier validAddress(address _address) {
        if (_address == address(0)) {
            revert InvalidAddress();
        }
        _;
    }

    ///@notice Set available token supply. It's not allowed to set the supply less than mintedTokenAmount
    ///@dev Only owner can execute this function
    ///@param _newSupply amount of new supply
    function setTokenSupply(uint256 _newSupply) external onlyOwner {
        require(
            _newSupply >= mintedTokenAmount,
            "Supply can't be less than amount of minted token"
        );
        tokenTotalSupply = _newSupply;
    }

    ///@notice Set metadata base URI, it will override baseURI value.
    ///@dev Only owner can execute this function
    ///@param _newURI metadata URL
    function setURI(string memory _newURI) external onlyOwner {
        baseURI = _newURI;
    }

    ///@notice Activate/deactivate minting functionality, set 'true' to activate and 'false' to deactivate
    ///@param _status Whether user able to mint
    function setMintingStatus(bool _status) external onlyOwner {
        isMintingAllowed = _status;
    }

    ///@notice Activate/deactivate burning functionality, set 'true' to activate and 'false' to deactivate
    ///@param _status Whether user able to burn
    function setBurningStatus(bool _status) external onlyOwner {
        isBurningAllowed = _status;
    }

    ///@notice Set address permission to call mint method, set 'true' to allow and 'false' to disallow
    ///@dev Only owner can execute this function
    ///@param _address Minter address
    ///@param _mintingPermission Whether address is allowed to mint
    function setMinterAddress(address _address, bool _mintingPermission)
        external
        onlyOwner
        validAddress(_address)
    {
        minterList[_address] = _mintingPermission;
    }

    ///@notice Burn the caller's token
    ///@param _amount Amount of token to burn
    function burn(uint256 _amount) external virtual {
        if (!isBurningAllowed) {
            revert BurningIsDisabled();
        }

        _burn(msg.sender, TOKEN_ID, _amount);
        emit Burn(msg.sender, TOKEN_ID, _amount);
    }

    ///@notice Mint token to specified address
    ///@param _to Address who receives the token
    ///@param _to Amount of token to mint
    function mint(address _to, uint256 _amount)
        external
        nonReentrant
        onlyMinter
        validAddress(_to)
    {
        if (!isMintingAllowed) {
            revert MintingIsDisabled();
        }

        require(_amount > 0, "Can't mint 0 token");
        require(
            mintedTokenAmount + _amount <= tokenTotalSupply,
            "Can't mint more than total supply"
        );

        unchecked {
            mintedTokenAmount += _amount;
        }

        _mint(_to, TOKEN_ID, _amount, "");
        emit Mint(_to, TOKEN_ID, _amount);
    }

    ///@notice Token metadata URL, it won't return the expected token ID but token ID in smart contract
    ///@dev This function is to override the OpenZeppelin ERC1155 'uri' method
    function uri(uint256) public view virtual override returns (string memory) {
        return
            bytes(baseURI).length > 0
                ? string(abi.encodePacked(baseURI, TOKEN_ID.toString()))
                : "";
    }
}

File 2 of 13 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.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 anymore. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby removing any functionality that is only available to the owner.
     */
    function renounceOwnership() public virtual onlyOwner {
        _transferOwnership(address(0));
    }

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

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

File 3 of 13 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.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;
    }
}

File 4 of 13 : ERC1155.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (token/ERC1155/ERC1155.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

        return batchBalances;
    }

    /**
     * @dev See {IERC1155-setApprovalForAll}.
     */
    function setApprovalForAll(address operator, bool approved) public virtual override {
        _setApprovalForAll(_msgSender(), operator, approved);
    }

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

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

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

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

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

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

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

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

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

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

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

        address operator = _msgSender();

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        address operator = _msgSender();

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

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

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

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

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

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

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

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

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

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

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

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

        address operator = _msgSender();

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

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

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

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

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

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

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

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

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

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

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

        return array;
    }
}

File 5 of 13 : IERC1155MetadataURI.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC1155/extensions/IERC1155MetadataURI.sol)

pragma solidity ^0.8.0;

import "../IERC1155.sol";

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

File 6 of 13 : IERC1155.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (token/ERC1155/IERC1155.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

File 7 of 13 : IERC1155Receiver.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC1155/IERC1155Receiver.sol)

pragma solidity ^0.8.0;

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

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

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

File 8 of 13 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (utils/Address.sol)

pragma solidity ^0.8.1;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     *
     * [IMPORTANT]
     * ====
     * You shouldn't rely on `isContract` to protect against flash loan attacks!
     *
     * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets
     * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract
     * constructor.
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize/address.code.length, which returns 0
        // for contracts in construction, since the code is only stored at the end
        // of the constructor execution.

        return account.code.length > 0;
    }

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

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

    /**
     * @dev Performs a Solidity function call using a low level `call`. A
     * plain `call` is an unsafe replacement for a function call: use this
     * function instead.
     *
     * If `target` reverts with a revert reason, it is bubbled up by this
     * function (like regular Solidity function calls).
     *
     * Returns the raw returned data. To convert to the expected return value,
     * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
     *
     * Requirements:
     *
     * - `target` must be a contract.
     * - calling `target` with `data` must not revert.
     *
     * _Available since v3.1._
     */
    function functionCall(address target, bytes memory data) internal returns (bytes memory) {
        return 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 9 of 13 : 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 10 of 13 : 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 11 of 13 : 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 12 of 13 : Math.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.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) {
                return prod0 / denominator;
            }

            // Make sure the result is less than 2^256. Also prevents denominator == 0.
            require(denominator > prod1);

            ///////////////////////////////////////////////
            // 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 10, 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 * 8) < value ? 1 : 0);
        }
    }
}

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

pragma solidity ^0.8.0;

import "./math/Math.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 `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);
    }
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"uint256","name":"_tokenTotalSupply","type":"uint256"},{"internalType":"string","name":"metadataURI","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"BurningIsDisabled","type":"error"},{"inputs":[],"name":"InvalidAddress","type":"error"},{"inputs":[],"name":"MintingIsDisabled","type":"error"},{"inputs":[],"name":"NotMinter","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"uint8","name":"token","type":"uint8"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Burn","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint8","name":"token","type":"uint8"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Mint","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"indexed":false,"internalType":"uint256[]","name":"values","type":"uint256[]"}],"name":"TransferBatch","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"id","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"TransferSingle","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"value","type":"string"},{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"}],"name":"URI","type":"event"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"accounts","type":"address[]"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"}],"name":"balanceOfBatch","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isBurningAllowed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isMintingAllowed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"mintedTokenAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"minterList","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeBatchTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_status","type":"bool"}],"name":"setBurningStatus","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"},{"internalType":"bool","name":"_mintingPermission","type":"bool"}],"name":"setMinterAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_status","type":"bool"}],"name":"setMintingStatus","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newSupply","type":"uint256"}],"name":"setTokenSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_newURI","type":"string"}],"name":"setURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tokenTotalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"uri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"}]

608060405260006006556001600760006101000a81548160ff0219169083151502179055506040518060200160405280600081525060099081620000449190620004c3565b503480156200005257600080fd5b506040516200469c3803806200469c83398181016040528101906200007891906200073f565b600980546200008790620002b2565b80601f0160208091040260200160405190810160405280929190818152602001828054620000b590620002b2565b8015620001065780601f10620000da5761010080835404028352916020019162000106565b820191906000526020600020905b815481529060010190602001808311620000e857829003601f168201915b50505050506200011c816200016660201b60201c565b506200013d620001316200017b60201b60201c565b6200018360201b60201c565b60016004819055508060099081620001569190620004c3565b50816005819055505050620007a5565b8060029081620001779190620004c3565b5050565b600033905090565b6000600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600081519050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680620002cb57607f821691505b602082108103620002e157620002e062000283565b5b50919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b6000600883026200034b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff826200030c565b6200035786836200030c565b95508019841693508086168417925050509392505050565b6000819050919050565b6000819050919050565b6000620003a46200039e62000398846200036f565b62000379565b6200036f565b9050919050565b6000819050919050565b620003c08362000383565b620003d8620003cf82620003ab565b84845462000319565b825550505050565b600090565b620003ef620003e0565b620003fc818484620003b5565b505050565b5b81811015620004245762000418600082620003e5565b60018101905062000402565b5050565b601f82111562000473576200043d81620002e7565b6200044884620002fc565b8101602085101562000458578190505b620004706200046785620002fc565b83018262000401565b50505b505050565b600082821c905092915050565b6000620004986000198460080262000478565b1980831691505092915050565b6000620004b3838362000485565b9150826002028217905092915050565b620004ce8262000249565b67ffffffffffffffff811115620004ea57620004e962000254565b5b620004f68254620002b2565b6200050382828562000428565b600060209050601f8311600181146200053b576000841562000526578287015190505b620005328582620004a5565b865550620005a2565b601f1984166200054b86620002e7565b60005b8281101562000575578489015182556001820191506020850194506020810190506200054e565b8683101562000595578489015162000591601f89168262000485565b8355505b6001600288020188555050505b505050505050565b6000604051905090565b600080fd5b600080fd5b620005c9816200036f565b8114620005d557600080fd5b50565b600081519050620005e981620005be565b92915050565b600080fd5b600080fd5b6000601f19601f8301169050919050565b6200061582620005f9565b810181811067ffffffffffffffff8211171562000637576200063662000254565b5b80604052505050565b60006200064c620005aa565b90506200065a82826200060a565b919050565b600067ffffffffffffffff8211156200067d576200067c62000254565b5b6200068882620005f9565b9050602081019050919050565b60005b83811015620006b557808201518184015260208101905062000698565b60008484015250505050565b6000620006d8620006d2846200065f565b62000640565b905082815260208101848484011115620006f757620006f6620005f4565b5b6200070484828562000695565b509392505050565b600082601f830112620007245762000723620005ef565b5b815162000736848260208601620006c1565b91505092915050565b60008060408385031215620007595762000758620005b4565b5b60006200076985828601620005d8565b925050602083015167ffffffffffffffff8111156200078d576200078c620005b9565b5b6200079b858286016200070c565b9150509250929050565b613ee780620007b56000396000f3fe608060405234801561001057600080fd5b50600436106101575760003560e01c8063715018a6116100c3578063d1aa24521161007c578063d1aa2452146103ae578063e76af32e146103ca578063e985e9c5146103e8578063f242432a14610418578063f2fde38b14610434578063f7abab9e1461045057610157565b8063715018a6146103145780637420aa361461031e57806377a6f6881461033a5780638da5cb5b146103585780639bbf570314610376578063a22cb4651461039257610157565b80632eb2c2d6116101155780632eb2c2d61461024257806340c10f191461025e57806342966c681461027a5780634e1273f41461029657806352a5ec86146102c65780636c0360eb146102f657610157565b8062fdd58e1461015c57806301ffc9a71461018c57806302fe5305146101bc5780630e89341c146101d85780631be0d934146102085780632b48188314610224575b600080fd5b61017660048036038101906101719190612401565b61046e565b6040516101839190612450565b60405180910390f35b6101a660048036038101906101a191906124c3565b610536565b6040516101b3919061250b565b60405180910390f35b6101d660048036038101906101d1919061266c565b610618565b005b6101f260048036038101906101ed91906126b5565b610633565b6040516101ff9190612761565b60405180910390f35b610222600480360381019061021d91906127af565b610697565b005b61022c6106bc565b604051610239919061250b565b60405180910390f35b61025c60048036038101906102579190612945565b6106cf565b005b61027860048036038101906102739190612401565b610770565b005b610294600480360381019061028f91906126b5565b6109cc565b005b6102b060048036038101906102ab9190612ad7565b610a77565b6040516102bd9190612c0d565b60405180910390f35b6102e060048036038101906102db9190612c2f565b610b90565b6040516102ed919061250b565b60405180910390f35b6102fe610bb0565b60405161030b9190612761565b60405180910390f35b61031c610c3e565b005b610338600480360381019061033391906127af565b610c52565b005b610342610c77565b60405161034f9190612450565b60405180910390f35b610360610c7d565b60405161036d9190612c6b565b60405180910390f35b610390600480360381019061038b91906126b5565b610ca7565b005b6103ac60048036038101906103a79190612c86565b610cfe565b005b6103c860048036038101906103c39190612c86565b610d14565b005b6103d2610ddf565b6040516103df919061250b565b60405180910390f35b61040260048036038101906103fd9190612cc6565b610df2565b60405161040f919061250b565b60405180910390f35b610432600480360381019061042d9190612d06565b610e86565b005b61044e60048036038101906104499190612c2f565b610f27565b005b610458610faa565b6040516104659190612450565b60405180910390f35b60008073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036104de576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016104d590612e0f565b60405180910390fd5b60008083815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b60007fd9b67a26000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061060157507f0e89341c000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610611575061061082610fb0565b5b9050919050565b61062061101a565b806009908161062f919061303b565b5050565b606060006009805461064490612e5e565b9050116106605760405180602001604052806000815250610690565b600961066f600160ff16611098565b6040516020016106809291906131cc565b6040516020818303038152906040525b9050919050565b61069f61101a565b80600760016101000a81548160ff02191690831515021790555050565b600760009054906101000a900460ff1681565b6106d7611166565b73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff16148061071d575061071c85610717611166565b610df2565b5b61075c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161075390613262565b60405180910390fd5b610769858585858561116e565b5050505050565b61077861148f565b600860003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff166107fb576040517ff8d2906c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b81600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610862576040517fe6c4247b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600760009054906101000a900460ff166108a8576040517f2d9be49c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600082116108eb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108e2906132ce565b60405180910390fd5b600554826006546108fc919061331d565b111561093d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610934906133c3565b60405180910390fd5b8160066000828254019250508190555061096c83600160ff1684604051806020016040528060008152506114de565b600160ff168373ffffffffffffffffffffffffffffffffffffffff167ffe446fb36fbb8c47e4ee0d7e1e9fca431c3a2314854d8de0f3bb04fa156d6e71846040516109b79190612450565b60405180910390a3506109c861168e565b5050565b600760019054906101000a900460ff16610a12576040517f717e416800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610a2133600160ff1683611698565b600160ff163373ffffffffffffffffffffffffffffffffffffffff167fc636986af0b827e3e4ada15322a43b6ce78d917eac82abea24ab2e45ac84172c83604051610a6c9190612450565b60405180910390a350565b60608151835114610abd576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ab490613455565b60405180910390fd5b6000835167ffffffffffffffff811115610ada57610ad9612541565b5b604051908082528060200260200182016040528015610b085781602001602082028036833780820191505090505b50905060005b8451811015610b8557610b55858281518110610b2d57610b2c613475565b5b6020026020010151858381518110610b4857610b47613475565b5b602002602001015161046e565b828281518110610b6857610b67613475565b5b60200260200101818152505080610b7e906134a4565b9050610b0e565b508091505092915050565b60086020528060005260406000206000915054906101000a900460ff1681565b60098054610bbd90612e5e565b80601f0160208091040260200160405190810160405280929190818152602001828054610be990612e5e565b8015610c365780601f10610c0b57610100808354040283529160200191610c36565b820191906000526020600020905b815481529060010190602001808311610c1957829003601f168201915b505050505081565b610c4661101a565b610c5060006118de565b565b610c5a61101a565b80600760006101000a81548160ff02191690831515021790555050565b60065481565b6000600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b610caf61101a565b600654811015610cf4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ceb9061355e565b60405180910390fd5b8060058190555050565b610d10610d09611166565b83836119a4565b5050565b610d1c61101a565b81600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610d83576040517fe6c4247b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b81600860008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550505050565b600760019054906101000a900460ff1681565b6000600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b610e8e611166565b73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff161480610ed45750610ed385610ece611166565b610df2565b5b610f13576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f0a90613262565b60405180910390fd5b610f208585858585611b10565b5050505050565b610f2f61101a565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610f9e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f95906135f0565b60405180910390fd5b610fa7816118de565b50565b60055481565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b611022611166565b73ffffffffffffffffffffffffffffffffffffffff16611040610c7d565b73ffffffffffffffffffffffffffffffffffffffff1614611096576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161108d9061365c565b60405180910390fd5b565b6060600060016110a784611dab565b01905060008167ffffffffffffffff8111156110c6576110c5612541565b5b6040519080825280601f01601f1916602001820160405280156110f85781602001600182028036833780820191505090505b509050600082602001820190505b60011561115b578080600190039150507f3031323334353637383961626364656600000000000000000000000000000000600a86061a8153600a858161114f5761114e61367c565b5b04945060008503611106575b819350505050919050565b600033905090565b81518351146111b2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111a99061371d565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1603611221576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611218906137af565b60405180910390fd5b600061122b611166565b905061123b818787878787611efe565b60005b84518110156113ec57600085828151811061125c5761125b613475565b5b60200260200101519050600085838151811061127b5761127a613475565b5b60200260200101519050600080600084815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205490508181101561131c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161131390613841565b60405180910390fd5b81810360008085815260200190815260200160002060008c73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508160008085815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546113d1919061331d565b92505081905550505050806113e5906134a4565b905061123e565b508473ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051611463929190613861565b60405180910390a4611479818787878787611f06565b611487818787878787611f0e565b505050505050565b6002600454036114d4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114cb906138e4565b60405180910390fd5b6002600481905550565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff160361154d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161154490613976565b60405180910390fd5b6000611557611166565b90506000611564856120e5565b90506000611571856120e5565b905061158283600089858589611efe565b8460008088815260200190815260200160002060008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546115e1919061331d565b925050819055508673ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62898960405161165f929190613996565b60405180910390a461167683600089858589611f06565b6116858360008989898961215f565b50505050505050565b6001600481905550565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603611707576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116fe90613a31565b60405180910390fd5b6000611711611166565b9050600061171e846120e5565b9050600061172b846120e5565b905061174b83876000858560405180602001604052806000815250611efe565b600080600087815260200190815260200160002060008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050848110156117e2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117d990613ac3565b60405180910390fd5b84810360008088815260200190815260200160002060008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550600073ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f6289896040516118af929190613996565b60405180910390a46118d584886000868660405180602001604052806000815250611f06565b50505050505050565b6000600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603611a12576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a0990613b55565b60405180910390fd5b80600160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051611b03919061250b565b60405180910390a3505050565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1603611b7f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b76906137af565b60405180910390fd5b6000611b89611166565b90506000611b96856120e5565b90506000611ba3856120e5565b9050611bb3838989858589611efe565b600080600088815260200190815260200160002060008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905085811015611c4a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c4190613841565b60405180910390fd5b85810360008089815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508560008089815260200190815260200160002060008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611cff919061331d565b925050819055508773ffffffffffffffffffffffffffffffffffffffff168973ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f628a8a604051611d7c929190613996565b60405180910390a4611d92848a8a86868a611f06565b611da0848a8a8a8a8a61215f565b505050505050505050565b600080600090507a184f03e93ff9f4daa797ed6e38ed64bf6a1f0100000000000000008310611e09577a184f03e93ff9f4daa797ed6e38ed64bf6a1f0100000000000000008381611dff57611dfe61367c565b5b0492506040810190505b6d04ee2d6d415b85acef81000000008310611e46576d04ee2d6d415b85acef81000000008381611e3c57611e3b61367c565b5b0492506020810190505b662386f26fc100008310611e7557662386f26fc100008381611e6b57611e6a61367c565b5b0492506010810190505b6305f5e1008310611e9e576305f5e1008381611e9457611e9361367c565b5b0492506008810190505b6127108310611ec3576127108381611eb957611eb861367c565b5b0492506004810190505b60648310611ee65760648381611edc57611edb61367c565b5b0492506002810190505b600a8310611ef5576001810190505b80915050919050565b505050505050565b505050505050565b611f2d8473ffffffffffffffffffffffffffffffffffffffff16612336565b156120dd578373ffffffffffffffffffffffffffffffffffffffff1663bc197c8187878686866040518663ffffffff1660e01b8152600401611f73959493929190613bca565b6020604051808303816000875af1925050508015611faf57506040513d601f19601f82011682018060405250810190611fac9190613c47565b60015b61205457611fbb613c81565b806308c379a0036120175750611fcf613ca3565b80611fda5750612019565b806040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161200e9190612761565b60405180910390fd5b505b6040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161204b90613da5565b60405180910390fd5b63bc197c8160e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916146120db576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120d290613e37565b60405180910390fd5b505b505050505050565b60606000600167ffffffffffffffff81111561210457612103612541565b5b6040519080825280602002602001820160405280156121325781602001602082028036833780820191505090505b509050828160008151811061214a57612149613475565b5b60200260200101818152505080915050919050565b61217e8473ffffffffffffffffffffffffffffffffffffffff16612336565b1561232e578373ffffffffffffffffffffffffffffffffffffffff1663f23a6e6187878686866040518663ffffffff1660e01b81526004016121c4959493929190613e57565b6020604051808303816000875af192505050801561220057506040513d601f19601f820116820180604052508101906121fd9190613c47565b60015b6122a55761220c613c81565b806308c379a0036122685750612220613ca3565b8061222b575061226a565b806040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161225f9190612761565b60405180910390fd5b505b6040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161229c90613da5565b60405180910390fd5b63f23a6e6160e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161461232c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161232390613e37565b60405180910390fd5b505b505050505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b6000604051905090565b600080fd5b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006123988261236d565b9050919050565b6123a88161238d565b81146123b357600080fd5b50565b6000813590506123c58161239f565b92915050565b6000819050919050565b6123de816123cb565b81146123e957600080fd5b50565b6000813590506123fb816123d5565b92915050565b6000806040838503121561241857612417612363565b5b6000612426858286016123b6565b9250506020612437858286016123ec565b9150509250929050565b61244a816123cb565b82525050565b60006020820190506124656000830184612441565b92915050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b6124a08161246b565b81146124ab57600080fd5b50565b6000813590506124bd81612497565b92915050565b6000602082840312156124d9576124d8612363565b5b60006124e7848285016124ae565b91505092915050565b60008115159050919050565b612505816124f0565b82525050565b600060208201905061252060008301846124fc565b92915050565b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b61257982612530565b810181811067ffffffffffffffff8211171561259857612597612541565b5b80604052505050565b60006125ab612359565b90506125b78282612570565b919050565b600067ffffffffffffffff8211156125d7576125d6612541565b5b6125e082612530565b9050602081019050919050565b82818337600083830152505050565b600061260f61260a846125bc565b6125a1565b90508281526020810184848401111561262b5761262a61252b565b5b6126368482856125ed565b509392505050565b600082601f83011261265357612652612526565b5b81356126638482602086016125fc565b91505092915050565b60006020828403121561268257612681612363565b5b600082013567ffffffffffffffff8111156126a05761269f612368565b5b6126ac8482850161263e565b91505092915050565b6000602082840312156126cb576126ca612363565b5b60006126d9848285016123ec565b91505092915050565b600081519050919050565b600082825260208201905092915050565b60005b8381101561271c578082015181840152602081019050612701565b60008484015250505050565b6000612733826126e2565b61273d81856126ed565b935061274d8185602086016126fe565b61275681612530565b840191505092915050565b6000602082019050818103600083015261277b8184612728565b905092915050565b61278c816124f0565b811461279757600080fd5b50565b6000813590506127a981612783565b92915050565b6000602082840312156127c5576127c4612363565b5b60006127d38482850161279a565b91505092915050565b600067ffffffffffffffff8211156127f7576127f6612541565b5b602082029050602081019050919050565b600080fd5b600061282061281b846127dc565b6125a1565b9050808382526020820190506020840283018581111561284357612842612808565b5b835b8181101561286c578061285888826123ec565b845260208401935050602081019050612845565b5050509392505050565b600082601f83011261288b5761288a612526565b5b813561289b84826020860161280d565b91505092915050565b600067ffffffffffffffff8211156128bf576128be612541565b5b6128c882612530565b9050602081019050919050565b60006128e86128e3846128a4565b6125a1565b9050828152602081018484840111156129045761290361252b565b5b61290f8482856125ed565b509392505050565b600082601f83011261292c5761292b612526565b5b813561293c8482602086016128d5565b91505092915050565b600080600080600060a0868803121561296157612960612363565b5b600061296f888289016123b6565b9550506020612980888289016123b6565b945050604086013567ffffffffffffffff8111156129a1576129a0612368565b5b6129ad88828901612876565b935050606086013567ffffffffffffffff8111156129ce576129cd612368565b5b6129da88828901612876565b925050608086013567ffffffffffffffff8111156129fb576129fa612368565b5b612a0788828901612917565b9150509295509295909350565b600067ffffffffffffffff821115612a2f57612a2e612541565b5b602082029050602081019050919050565b6000612a53612a4e84612a14565b6125a1565b90508083825260208201905060208402830185811115612a7657612a75612808565b5b835b81811015612a9f5780612a8b88826123b6565b845260208401935050602081019050612a78565b5050509392505050565b600082601f830112612abe57612abd612526565b5b8135612ace848260208601612a40565b91505092915050565b60008060408385031215612aee57612aed612363565b5b600083013567ffffffffffffffff811115612b0c57612b0b612368565b5b612b1885828601612aa9565b925050602083013567ffffffffffffffff811115612b3957612b38612368565b5b612b4585828601612876565b9150509250929050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b612b84816123cb565b82525050565b6000612b968383612b7b565b60208301905092915050565b6000602082019050919050565b6000612bba82612b4f565b612bc48185612b5a565b9350612bcf83612b6b565b8060005b83811015612c00578151612be78882612b8a565b9750612bf283612ba2565b925050600181019050612bd3565b5085935050505092915050565b60006020820190508181036000830152612c278184612baf565b905092915050565b600060208284031215612c4557612c44612363565b5b6000612c53848285016123b6565b91505092915050565b612c658161238d565b82525050565b6000602082019050612c806000830184612c5c565b92915050565b60008060408385031215612c9d57612c9c612363565b5b6000612cab858286016123b6565b9250506020612cbc8582860161279a565b9150509250929050565b60008060408385031215612cdd57612cdc612363565b5b6000612ceb858286016123b6565b9250506020612cfc858286016123b6565b9150509250929050565b600080600080600060a08688031215612d2257612d21612363565b5b6000612d30888289016123b6565b9550506020612d41888289016123b6565b9450506040612d52888289016123ec565b9350506060612d63888289016123ec565b925050608086013567ffffffffffffffff811115612d8457612d83612368565b5b612d9088828901612917565b9150509295509295909350565b7f455243313135353a2061646472657373207a65726f206973206e6f742061207660008201527f616c6964206f776e657200000000000000000000000000000000000000000000602082015250565b6000612df9602a836126ed565b9150612e0482612d9d565b604082019050919050565b60006020820190508181036000830152612e2881612dec565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680612e7657607f821691505b602082108103612e8957612e88612e2f565b5b50919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b600060088302612ef17fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82612eb4565b612efb8683612eb4565b95508019841693508086168417925050509392505050565b6000819050919050565b6000612f38612f33612f2e846123cb565b612f13565b6123cb565b9050919050565b6000819050919050565b612f5283612f1d565b612f66612f5e82612f3f565b848454612ec1565b825550505050565b600090565b612f7b612f6e565b612f86818484612f49565b505050565b5b81811015612faa57612f9f600082612f73565b600181019050612f8c565b5050565b601f821115612fef57612fc081612e8f565b612fc984612ea4565b81016020851015612fd8578190505b612fec612fe485612ea4565b830182612f8b565b50505b505050565b600082821c905092915050565b600061301260001984600802612ff4565b1980831691505092915050565b600061302b8383613001565b9150826002028217905092915050565b613044826126e2565b67ffffffffffffffff81111561305d5761305c612541565b5b6130678254612e5e565b613072828285612fae565b600060209050601f8311600181146130a55760008415613093578287015190505b61309d858261301f565b865550613105565b601f1984166130b386612e8f565b60005b828110156130db578489015182556001820191506020850194506020810190506130b6565b868310156130f857848901516130f4601f891682613001565b8355505b6001600288020188555050505b505050505050565b600081905092915050565b6000815461312581612e5e565b61312f818661310d565b9450600182166000811461314a576001811461315f57613192565b60ff1983168652811515820286019350613192565b61316885612e8f565b60005b8381101561318a5781548189015260018201915060208101905061316b565b838801955050505b50505092915050565b60006131a6826126e2565b6131b0818561310d565b93506131c08185602086016126fe565b80840191505092915050565b60006131d88285613118565b91506131e4828461319b565b91508190509392505050565b7f455243313135353a2063616c6c6572206973206e6f7420746f6b656e206f776e60008201527f6572206f7220617070726f766564000000000000000000000000000000000000602082015250565b600061324c602e836126ed565b9150613257826131f0565b604082019050919050565b6000602082019050818103600083015261327b8161323f565b9050919050565b7f43616e2774206d696e74203020746f6b656e0000000000000000000000000000600082015250565b60006132b86012836126ed565b91506132c382613282565b602082019050919050565b600060208201905081810360008301526132e7816132ab565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000613328826123cb565b9150613333836123cb565b925082820190508082111561334b5761334a6132ee565b5b92915050565b7f43616e2774206d696e74206d6f7265207468616e20746f74616c20737570706c60008201527f7900000000000000000000000000000000000000000000000000000000000000602082015250565b60006133ad6021836126ed565b91506133b882613351565b604082019050919050565b600060208201905081810360008301526133dc816133a0565b9050919050565b7f455243313135353a206163636f756e747320616e6420696473206c656e67746860008201527f206d69736d617463680000000000000000000000000000000000000000000000602082015250565b600061343f6029836126ed565b915061344a826133e3565b604082019050919050565b6000602082019050818103600083015261346e81613432565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60006134af826123cb565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82036134e1576134e06132ee565b5b600182019050919050565b7f537570706c792063616e2774206265206c657373207468616e20616d6f756e7460008201527f206f66206d696e74656420746f6b656e00000000000000000000000000000000602082015250565b60006135486030836126ed565b9150613553826134ec565b604082019050919050565b600060208201905081810360008301526135778161353b565b9050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b60006135da6026836126ed565b91506135e58261357e565b604082019050919050565b60006020820190508181036000830152613609816135cd565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b60006136466020836126ed565b915061365182613610565b602082019050919050565b6000602082019050818103600083015261367581613639565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f455243313135353a2069647320616e6420616d6f756e7473206c656e6774682060008201527f6d69736d61746368000000000000000000000000000000000000000000000000602082015250565b60006137076028836126ed565b9150613712826136ab565b604082019050919050565b60006020820190508181036000830152613736816136fa565b9050919050565b7f455243313135353a207472616e7366657220746f20746865207a65726f20616460008201527f6472657373000000000000000000000000000000000000000000000000000000602082015250565b60006137996025836126ed565b91506137a48261373d565b604082019050919050565b600060208201905081810360008301526137c88161378c565b9050919050565b7f455243313135353a20696e73756666696369656e742062616c616e636520666f60008201527f72207472616e7366657200000000000000000000000000000000000000000000602082015250565b600061382b602a836126ed565b9150613836826137cf565b604082019050919050565b6000602082019050818103600083015261385a8161381e565b9050919050565b6000604082019050818103600083015261387b8185612baf565b9050818103602083015261388f8184612baf565b90509392505050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b60006138ce601f836126ed565b91506138d982613898565b602082019050919050565b600060208201905081810360008301526138fd816138c1565b9050919050565b7f455243313135353a206d696e7420746f20746865207a65726f2061646472657360008201527f7300000000000000000000000000000000000000000000000000000000000000602082015250565b60006139606021836126ed565b915061396b82613904565b604082019050919050565b6000602082019050818103600083015261398f81613953565b9050919050565b60006040820190506139ab6000830185612441565b6139b86020830184612441565b9392505050565b7f455243313135353a206275726e2066726f6d20746865207a65726f206164647260008201527f6573730000000000000000000000000000000000000000000000000000000000602082015250565b6000613a1b6023836126ed565b9150613a26826139bf565b604082019050919050565b60006020820190508181036000830152613a4a81613a0e565b9050919050565b7f455243313135353a206275726e20616d6f756e7420657863656564732062616c60008201527f616e636500000000000000000000000000000000000000000000000000000000602082015250565b6000613aad6024836126ed565b9150613ab882613a51565b604082019050919050565b60006020820190508181036000830152613adc81613aa0565b9050919050565b7f455243313135353a2073657474696e6720617070726f76616c2073746174757360008201527f20666f722073656c660000000000000000000000000000000000000000000000602082015250565b6000613b3f6029836126ed565b9150613b4a82613ae3565b604082019050919050565b60006020820190508181036000830152613b6e81613b32565b9050919050565b600081519050919050565b600082825260208201905092915050565b6000613b9c82613b75565b613ba68185613b80565b9350613bb68185602086016126fe565b613bbf81612530565b840191505092915050565b600060a082019050613bdf6000830188612c5c565b613bec6020830187612c5c565b8181036040830152613bfe8186612baf565b90508181036060830152613c128185612baf565b90508181036080830152613c268184613b91565b90509695505050505050565b600081519050613c4181612497565b92915050565b600060208284031215613c5d57613c5c612363565b5b6000613c6b84828501613c32565b91505092915050565b60008160e01c9050919050565b600060033d1115613ca05760046000803e613c9d600051613c74565b90505b90565b600060443d10613d3057613cb5612359565b60043d036004823e80513d602482011167ffffffffffffffff82111715613cdd575050613d30565b808201805167ffffffffffffffff811115613cfb5750505050613d30565b80602083010160043d038501811115613d18575050505050613d30565b613d2782602001850186612570565b82955050505050505b90565b7f455243313135353a207472616e7366657220746f206e6f6e2d4552433131353560008201527f526563656976657220696d706c656d656e746572000000000000000000000000602082015250565b6000613d8f6034836126ed565b9150613d9a82613d33565b604082019050919050565b60006020820190508181036000830152613dbe81613d82565b9050919050565b7f455243313135353a204552433131353552656365697665722072656a6563746560008201527f6420746f6b656e73000000000000000000000000000000000000000000000000602082015250565b6000613e216028836126ed565b9150613e2c82613dc5565b604082019050919050565b60006020820190508181036000830152613e5081613e14565b9050919050565b600060a082019050613e6c6000830188612c5c565b613e796020830187612c5c565b613e866040830186612441565b613e936060830185612441565b8181036080830152613ea58184613b91565b9050969550505050505056fea2646970667358221220854477ca3d0442ca5e867b18dbd7a9d5a5fd7ff32da958d5adafa0d733dcc0a564736f6c6343000810003300000000000000000000000000000000000000000000000000000000000000280000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000005768747470733a2f2f706978656c6d6f6e2d747261696e696e672d726577617264732e73332d616363656c65726174652e616d617a6f6e6177732e636f6d2f73706f6e736f7265642d74726970732f6d657461646174612f000000000000000000

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106101575760003560e01c8063715018a6116100c3578063d1aa24521161007c578063d1aa2452146103ae578063e76af32e146103ca578063e985e9c5146103e8578063f242432a14610418578063f2fde38b14610434578063f7abab9e1461045057610157565b8063715018a6146103145780637420aa361461031e57806377a6f6881461033a5780638da5cb5b146103585780639bbf570314610376578063a22cb4651461039257610157565b80632eb2c2d6116101155780632eb2c2d61461024257806340c10f191461025e57806342966c681461027a5780634e1273f41461029657806352a5ec86146102c65780636c0360eb146102f657610157565b8062fdd58e1461015c57806301ffc9a71461018c57806302fe5305146101bc5780630e89341c146101d85780631be0d934146102085780632b48188314610224575b600080fd5b61017660048036038101906101719190612401565b61046e565b6040516101839190612450565b60405180910390f35b6101a660048036038101906101a191906124c3565b610536565b6040516101b3919061250b565b60405180910390f35b6101d660048036038101906101d1919061266c565b610618565b005b6101f260048036038101906101ed91906126b5565b610633565b6040516101ff9190612761565b60405180910390f35b610222600480360381019061021d91906127af565b610697565b005b61022c6106bc565b604051610239919061250b565b60405180910390f35b61025c60048036038101906102579190612945565b6106cf565b005b61027860048036038101906102739190612401565b610770565b005b610294600480360381019061028f91906126b5565b6109cc565b005b6102b060048036038101906102ab9190612ad7565b610a77565b6040516102bd9190612c0d565b60405180910390f35b6102e060048036038101906102db9190612c2f565b610b90565b6040516102ed919061250b565b60405180910390f35b6102fe610bb0565b60405161030b9190612761565b60405180910390f35b61031c610c3e565b005b610338600480360381019061033391906127af565b610c52565b005b610342610c77565b60405161034f9190612450565b60405180910390f35b610360610c7d565b60405161036d9190612c6b565b60405180910390f35b610390600480360381019061038b91906126b5565b610ca7565b005b6103ac60048036038101906103a79190612c86565b610cfe565b005b6103c860048036038101906103c39190612c86565b610d14565b005b6103d2610ddf565b6040516103df919061250b565b60405180910390f35b61040260048036038101906103fd9190612cc6565b610df2565b60405161040f919061250b565b60405180910390f35b610432600480360381019061042d9190612d06565b610e86565b005b61044e60048036038101906104499190612c2f565b610f27565b005b610458610faa565b6040516104659190612450565b60405180910390f35b60008073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036104de576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016104d590612e0f565b60405180910390fd5b60008083815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b60007fd9b67a26000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061060157507f0e89341c000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610611575061061082610fb0565b5b9050919050565b61062061101a565b806009908161062f919061303b565b5050565b606060006009805461064490612e5e565b9050116106605760405180602001604052806000815250610690565b600961066f600160ff16611098565b6040516020016106809291906131cc565b6040516020818303038152906040525b9050919050565b61069f61101a565b80600760016101000a81548160ff02191690831515021790555050565b600760009054906101000a900460ff1681565b6106d7611166565b73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff16148061071d575061071c85610717611166565b610df2565b5b61075c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161075390613262565b60405180910390fd5b610769858585858561116e565b5050505050565b61077861148f565b600860003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff166107fb576040517ff8d2906c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b81600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610862576040517fe6c4247b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600760009054906101000a900460ff166108a8576040517f2d9be49c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600082116108eb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108e2906132ce565b60405180910390fd5b600554826006546108fc919061331d565b111561093d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610934906133c3565b60405180910390fd5b8160066000828254019250508190555061096c83600160ff1684604051806020016040528060008152506114de565b600160ff168373ffffffffffffffffffffffffffffffffffffffff167ffe446fb36fbb8c47e4ee0d7e1e9fca431c3a2314854d8de0f3bb04fa156d6e71846040516109b79190612450565b60405180910390a3506109c861168e565b5050565b600760019054906101000a900460ff16610a12576040517f717e416800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610a2133600160ff1683611698565b600160ff163373ffffffffffffffffffffffffffffffffffffffff167fc636986af0b827e3e4ada15322a43b6ce78d917eac82abea24ab2e45ac84172c83604051610a6c9190612450565b60405180910390a350565b60608151835114610abd576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ab490613455565b60405180910390fd5b6000835167ffffffffffffffff811115610ada57610ad9612541565b5b604051908082528060200260200182016040528015610b085781602001602082028036833780820191505090505b50905060005b8451811015610b8557610b55858281518110610b2d57610b2c613475565b5b6020026020010151858381518110610b4857610b47613475565b5b602002602001015161046e565b828281518110610b6857610b67613475565b5b60200260200101818152505080610b7e906134a4565b9050610b0e565b508091505092915050565b60086020528060005260406000206000915054906101000a900460ff1681565b60098054610bbd90612e5e565b80601f0160208091040260200160405190810160405280929190818152602001828054610be990612e5e565b8015610c365780601f10610c0b57610100808354040283529160200191610c36565b820191906000526020600020905b815481529060010190602001808311610c1957829003601f168201915b505050505081565b610c4661101a565b610c5060006118de565b565b610c5a61101a565b80600760006101000a81548160ff02191690831515021790555050565b60065481565b6000600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b610caf61101a565b600654811015610cf4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ceb9061355e565b60405180910390fd5b8060058190555050565b610d10610d09611166565b83836119a4565b5050565b610d1c61101a565b81600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610d83576040517fe6c4247b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b81600860008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550505050565b600760019054906101000a900460ff1681565b6000600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b610e8e611166565b73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff161480610ed45750610ed385610ece611166565b610df2565b5b610f13576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f0a90613262565b60405180910390fd5b610f208585858585611b10565b5050505050565b610f2f61101a565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610f9e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f95906135f0565b60405180910390fd5b610fa7816118de565b50565b60055481565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b611022611166565b73ffffffffffffffffffffffffffffffffffffffff16611040610c7d565b73ffffffffffffffffffffffffffffffffffffffff1614611096576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161108d9061365c565b60405180910390fd5b565b6060600060016110a784611dab565b01905060008167ffffffffffffffff8111156110c6576110c5612541565b5b6040519080825280601f01601f1916602001820160405280156110f85781602001600182028036833780820191505090505b509050600082602001820190505b60011561115b578080600190039150507f3031323334353637383961626364656600000000000000000000000000000000600a86061a8153600a858161114f5761114e61367c565b5b04945060008503611106575b819350505050919050565b600033905090565b81518351146111b2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111a99061371d565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1603611221576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611218906137af565b60405180910390fd5b600061122b611166565b905061123b818787878787611efe565b60005b84518110156113ec57600085828151811061125c5761125b613475565b5b60200260200101519050600085838151811061127b5761127a613475565b5b60200260200101519050600080600084815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205490508181101561131c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161131390613841565b60405180910390fd5b81810360008085815260200190815260200160002060008c73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508160008085815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546113d1919061331d565b92505081905550505050806113e5906134a4565b905061123e565b508473ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051611463929190613861565b60405180910390a4611479818787878787611f06565b611487818787878787611f0e565b505050505050565b6002600454036114d4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114cb906138e4565b60405180910390fd5b6002600481905550565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff160361154d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161154490613976565b60405180910390fd5b6000611557611166565b90506000611564856120e5565b90506000611571856120e5565b905061158283600089858589611efe565b8460008088815260200190815260200160002060008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546115e1919061331d565b925050819055508673ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62898960405161165f929190613996565b60405180910390a461167683600089858589611f06565b6116858360008989898961215f565b50505050505050565b6001600481905550565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603611707576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116fe90613a31565b60405180910390fd5b6000611711611166565b9050600061171e846120e5565b9050600061172b846120e5565b905061174b83876000858560405180602001604052806000815250611efe565b600080600087815260200190815260200160002060008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050848110156117e2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117d990613ac3565b60405180910390fd5b84810360008088815260200190815260200160002060008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550600073ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f6289896040516118af929190613996565b60405180910390a46118d584886000868660405180602001604052806000815250611f06565b50505050505050565b6000600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603611a12576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a0990613b55565b60405180910390fd5b80600160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051611b03919061250b565b60405180910390a3505050565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1603611b7f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b76906137af565b60405180910390fd5b6000611b89611166565b90506000611b96856120e5565b90506000611ba3856120e5565b9050611bb3838989858589611efe565b600080600088815260200190815260200160002060008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905085811015611c4a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c4190613841565b60405180910390fd5b85810360008089815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508560008089815260200190815260200160002060008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611cff919061331d565b925050819055508773ffffffffffffffffffffffffffffffffffffffff168973ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f628a8a604051611d7c929190613996565b60405180910390a4611d92848a8a86868a611f06565b611da0848a8a8a8a8a61215f565b505050505050505050565b600080600090507a184f03e93ff9f4daa797ed6e38ed64bf6a1f0100000000000000008310611e09577a184f03e93ff9f4daa797ed6e38ed64bf6a1f0100000000000000008381611dff57611dfe61367c565b5b0492506040810190505b6d04ee2d6d415b85acef81000000008310611e46576d04ee2d6d415b85acef81000000008381611e3c57611e3b61367c565b5b0492506020810190505b662386f26fc100008310611e7557662386f26fc100008381611e6b57611e6a61367c565b5b0492506010810190505b6305f5e1008310611e9e576305f5e1008381611e9457611e9361367c565b5b0492506008810190505b6127108310611ec3576127108381611eb957611eb861367c565b5b0492506004810190505b60648310611ee65760648381611edc57611edb61367c565b5b0492506002810190505b600a8310611ef5576001810190505b80915050919050565b505050505050565b505050505050565b611f2d8473ffffffffffffffffffffffffffffffffffffffff16612336565b156120dd578373ffffffffffffffffffffffffffffffffffffffff1663bc197c8187878686866040518663ffffffff1660e01b8152600401611f73959493929190613bca565b6020604051808303816000875af1925050508015611faf57506040513d601f19601f82011682018060405250810190611fac9190613c47565b60015b61205457611fbb613c81565b806308c379a0036120175750611fcf613ca3565b80611fda5750612019565b806040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161200e9190612761565b60405180910390fd5b505b6040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161204b90613da5565b60405180910390fd5b63bc197c8160e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916146120db576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120d290613e37565b60405180910390fd5b505b505050505050565b60606000600167ffffffffffffffff81111561210457612103612541565b5b6040519080825280602002602001820160405280156121325781602001602082028036833780820191505090505b509050828160008151811061214a57612149613475565b5b60200260200101818152505080915050919050565b61217e8473ffffffffffffffffffffffffffffffffffffffff16612336565b1561232e578373ffffffffffffffffffffffffffffffffffffffff1663f23a6e6187878686866040518663ffffffff1660e01b81526004016121c4959493929190613e57565b6020604051808303816000875af192505050801561220057506040513d601f19601f820116820180604052508101906121fd9190613c47565b60015b6122a55761220c613c81565b806308c379a0036122685750612220613ca3565b8061222b575061226a565b806040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161225f9190612761565b60405180910390fd5b505b6040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161229c90613da5565b60405180910390fd5b63f23a6e6160e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161461232c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161232390613e37565b60405180910390fd5b505b505050505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b6000604051905090565b600080fd5b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006123988261236d565b9050919050565b6123a88161238d565b81146123b357600080fd5b50565b6000813590506123c58161239f565b92915050565b6000819050919050565b6123de816123cb565b81146123e957600080fd5b50565b6000813590506123fb816123d5565b92915050565b6000806040838503121561241857612417612363565b5b6000612426858286016123b6565b9250506020612437858286016123ec565b9150509250929050565b61244a816123cb565b82525050565b60006020820190506124656000830184612441565b92915050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b6124a08161246b565b81146124ab57600080fd5b50565b6000813590506124bd81612497565b92915050565b6000602082840312156124d9576124d8612363565b5b60006124e7848285016124ae565b91505092915050565b60008115159050919050565b612505816124f0565b82525050565b600060208201905061252060008301846124fc565b92915050565b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b61257982612530565b810181811067ffffffffffffffff8211171561259857612597612541565b5b80604052505050565b60006125ab612359565b90506125b78282612570565b919050565b600067ffffffffffffffff8211156125d7576125d6612541565b5b6125e082612530565b9050602081019050919050565b82818337600083830152505050565b600061260f61260a846125bc565b6125a1565b90508281526020810184848401111561262b5761262a61252b565b5b6126368482856125ed565b509392505050565b600082601f83011261265357612652612526565b5b81356126638482602086016125fc565b91505092915050565b60006020828403121561268257612681612363565b5b600082013567ffffffffffffffff8111156126a05761269f612368565b5b6126ac8482850161263e565b91505092915050565b6000602082840312156126cb576126ca612363565b5b60006126d9848285016123ec565b91505092915050565b600081519050919050565b600082825260208201905092915050565b60005b8381101561271c578082015181840152602081019050612701565b60008484015250505050565b6000612733826126e2565b61273d81856126ed565b935061274d8185602086016126fe565b61275681612530565b840191505092915050565b6000602082019050818103600083015261277b8184612728565b905092915050565b61278c816124f0565b811461279757600080fd5b50565b6000813590506127a981612783565b92915050565b6000602082840312156127c5576127c4612363565b5b60006127d38482850161279a565b91505092915050565b600067ffffffffffffffff8211156127f7576127f6612541565b5b602082029050602081019050919050565b600080fd5b600061282061281b846127dc565b6125a1565b9050808382526020820190506020840283018581111561284357612842612808565b5b835b8181101561286c578061285888826123ec565b845260208401935050602081019050612845565b5050509392505050565b600082601f83011261288b5761288a612526565b5b813561289b84826020860161280d565b91505092915050565b600067ffffffffffffffff8211156128bf576128be612541565b5b6128c882612530565b9050602081019050919050565b60006128e86128e3846128a4565b6125a1565b9050828152602081018484840111156129045761290361252b565b5b61290f8482856125ed565b509392505050565b600082601f83011261292c5761292b612526565b5b813561293c8482602086016128d5565b91505092915050565b600080600080600060a0868803121561296157612960612363565b5b600061296f888289016123b6565b9550506020612980888289016123b6565b945050604086013567ffffffffffffffff8111156129a1576129a0612368565b5b6129ad88828901612876565b935050606086013567ffffffffffffffff8111156129ce576129cd612368565b5b6129da88828901612876565b925050608086013567ffffffffffffffff8111156129fb576129fa612368565b5b612a0788828901612917565b9150509295509295909350565b600067ffffffffffffffff821115612a2f57612a2e612541565b5b602082029050602081019050919050565b6000612a53612a4e84612a14565b6125a1565b90508083825260208201905060208402830185811115612a7657612a75612808565b5b835b81811015612a9f5780612a8b88826123b6565b845260208401935050602081019050612a78565b5050509392505050565b600082601f830112612abe57612abd612526565b5b8135612ace848260208601612a40565b91505092915050565b60008060408385031215612aee57612aed612363565b5b600083013567ffffffffffffffff811115612b0c57612b0b612368565b5b612b1885828601612aa9565b925050602083013567ffffffffffffffff811115612b3957612b38612368565b5b612b4585828601612876565b9150509250929050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b612b84816123cb565b82525050565b6000612b968383612b7b565b60208301905092915050565b6000602082019050919050565b6000612bba82612b4f565b612bc48185612b5a565b9350612bcf83612b6b565b8060005b83811015612c00578151612be78882612b8a565b9750612bf283612ba2565b925050600181019050612bd3565b5085935050505092915050565b60006020820190508181036000830152612c278184612baf565b905092915050565b600060208284031215612c4557612c44612363565b5b6000612c53848285016123b6565b91505092915050565b612c658161238d565b82525050565b6000602082019050612c806000830184612c5c565b92915050565b60008060408385031215612c9d57612c9c612363565b5b6000612cab858286016123b6565b9250506020612cbc8582860161279a565b9150509250929050565b60008060408385031215612cdd57612cdc612363565b5b6000612ceb858286016123b6565b9250506020612cfc858286016123b6565b9150509250929050565b600080600080600060a08688031215612d2257612d21612363565b5b6000612d30888289016123b6565b9550506020612d41888289016123b6565b9450506040612d52888289016123ec565b9350506060612d63888289016123ec565b925050608086013567ffffffffffffffff811115612d8457612d83612368565b5b612d9088828901612917565b9150509295509295909350565b7f455243313135353a2061646472657373207a65726f206973206e6f742061207660008201527f616c6964206f776e657200000000000000000000000000000000000000000000602082015250565b6000612df9602a836126ed565b9150612e0482612d9d565b604082019050919050565b60006020820190508181036000830152612e2881612dec565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680612e7657607f821691505b602082108103612e8957612e88612e2f565b5b50919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b600060088302612ef17fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82612eb4565b612efb8683612eb4565b95508019841693508086168417925050509392505050565b6000819050919050565b6000612f38612f33612f2e846123cb565b612f13565b6123cb565b9050919050565b6000819050919050565b612f5283612f1d565b612f66612f5e82612f3f565b848454612ec1565b825550505050565b600090565b612f7b612f6e565b612f86818484612f49565b505050565b5b81811015612faa57612f9f600082612f73565b600181019050612f8c565b5050565b601f821115612fef57612fc081612e8f565b612fc984612ea4565b81016020851015612fd8578190505b612fec612fe485612ea4565b830182612f8b565b50505b505050565b600082821c905092915050565b600061301260001984600802612ff4565b1980831691505092915050565b600061302b8383613001565b9150826002028217905092915050565b613044826126e2565b67ffffffffffffffff81111561305d5761305c612541565b5b6130678254612e5e565b613072828285612fae565b600060209050601f8311600181146130a55760008415613093578287015190505b61309d858261301f565b865550613105565b601f1984166130b386612e8f565b60005b828110156130db578489015182556001820191506020850194506020810190506130b6565b868310156130f857848901516130f4601f891682613001565b8355505b6001600288020188555050505b505050505050565b600081905092915050565b6000815461312581612e5e565b61312f818661310d565b9450600182166000811461314a576001811461315f57613192565b60ff1983168652811515820286019350613192565b61316885612e8f565b60005b8381101561318a5781548189015260018201915060208101905061316b565b838801955050505b50505092915050565b60006131a6826126e2565b6131b0818561310d565b93506131c08185602086016126fe565b80840191505092915050565b60006131d88285613118565b91506131e4828461319b565b91508190509392505050565b7f455243313135353a2063616c6c6572206973206e6f7420746f6b656e206f776e60008201527f6572206f7220617070726f766564000000000000000000000000000000000000602082015250565b600061324c602e836126ed565b9150613257826131f0565b604082019050919050565b6000602082019050818103600083015261327b8161323f565b9050919050565b7f43616e2774206d696e74203020746f6b656e0000000000000000000000000000600082015250565b60006132b86012836126ed565b91506132c382613282565b602082019050919050565b600060208201905081810360008301526132e7816132ab565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000613328826123cb565b9150613333836123cb565b925082820190508082111561334b5761334a6132ee565b5b92915050565b7f43616e2774206d696e74206d6f7265207468616e20746f74616c20737570706c60008201527f7900000000000000000000000000000000000000000000000000000000000000602082015250565b60006133ad6021836126ed565b91506133b882613351565b604082019050919050565b600060208201905081810360008301526133dc816133a0565b9050919050565b7f455243313135353a206163636f756e747320616e6420696473206c656e67746860008201527f206d69736d617463680000000000000000000000000000000000000000000000602082015250565b600061343f6029836126ed565b915061344a826133e3565b604082019050919050565b6000602082019050818103600083015261346e81613432565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60006134af826123cb565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82036134e1576134e06132ee565b5b600182019050919050565b7f537570706c792063616e2774206265206c657373207468616e20616d6f756e7460008201527f206f66206d696e74656420746f6b656e00000000000000000000000000000000602082015250565b60006135486030836126ed565b9150613553826134ec565b604082019050919050565b600060208201905081810360008301526135778161353b565b9050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b60006135da6026836126ed565b91506135e58261357e565b604082019050919050565b60006020820190508181036000830152613609816135cd565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b60006136466020836126ed565b915061365182613610565b602082019050919050565b6000602082019050818103600083015261367581613639565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f455243313135353a2069647320616e6420616d6f756e7473206c656e6774682060008201527f6d69736d61746368000000000000000000000000000000000000000000000000602082015250565b60006137076028836126ed565b9150613712826136ab565b604082019050919050565b60006020820190508181036000830152613736816136fa565b9050919050565b7f455243313135353a207472616e7366657220746f20746865207a65726f20616460008201527f6472657373000000000000000000000000000000000000000000000000000000602082015250565b60006137996025836126ed565b91506137a48261373d565b604082019050919050565b600060208201905081810360008301526137c88161378c565b9050919050565b7f455243313135353a20696e73756666696369656e742062616c616e636520666f60008201527f72207472616e7366657200000000000000000000000000000000000000000000602082015250565b600061382b602a836126ed565b9150613836826137cf565b604082019050919050565b6000602082019050818103600083015261385a8161381e565b9050919050565b6000604082019050818103600083015261387b8185612baf565b9050818103602083015261388f8184612baf565b90509392505050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b60006138ce601f836126ed565b91506138d982613898565b602082019050919050565b600060208201905081810360008301526138fd816138c1565b9050919050565b7f455243313135353a206d696e7420746f20746865207a65726f2061646472657360008201527f7300000000000000000000000000000000000000000000000000000000000000602082015250565b60006139606021836126ed565b915061396b82613904565b604082019050919050565b6000602082019050818103600083015261398f81613953565b9050919050565b60006040820190506139ab6000830185612441565b6139b86020830184612441565b9392505050565b7f455243313135353a206275726e2066726f6d20746865207a65726f206164647260008201527f6573730000000000000000000000000000000000000000000000000000000000602082015250565b6000613a1b6023836126ed565b9150613a26826139bf565b604082019050919050565b60006020820190508181036000830152613a4a81613a0e565b9050919050565b7f455243313135353a206275726e20616d6f756e7420657863656564732062616c60008201527f616e636500000000000000000000000000000000000000000000000000000000602082015250565b6000613aad6024836126ed565b9150613ab882613a51565b604082019050919050565b60006020820190508181036000830152613adc81613aa0565b9050919050565b7f455243313135353a2073657474696e6720617070726f76616c2073746174757360008201527f20666f722073656c660000000000000000000000000000000000000000000000602082015250565b6000613b3f6029836126ed565b9150613b4a82613ae3565b604082019050919050565b60006020820190508181036000830152613b6e81613b32565b9050919050565b600081519050919050565b600082825260208201905092915050565b6000613b9c82613b75565b613ba68185613b80565b9350613bb68185602086016126fe565b613bbf81612530565b840191505092915050565b600060a082019050613bdf6000830188612c5c565b613bec6020830187612c5c565b8181036040830152613bfe8186612baf565b90508181036060830152613c128185612baf565b90508181036080830152613c268184613b91565b90509695505050505050565b600081519050613c4181612497565b92915050565b600060208284031215613c5d57613c5c612363565b5b6000613c6b84828501613c32565b91505092915050565b60008160e01c9050919050565b600060033d1115613ca05760046000803e613c9d600051613c74565b90505b90565b600060443d10613d3057613cb5612359565b60043d036004823e80513d602482011167ffffffffffffffff82111715613cdd575050613d30565b808201805167ffffffffffffffff811115613cfb5750505050613d30565b80602083010160043d038501811115613d18575050505050613d30565b613d2782602001850186612570565b82955050505050505b90565b7f455243313135353a207472616e7366657220746f206e6f6e2d4552433131353560008201527f526563656976657220696d706c656d656e746572000000000000000000000000602082015250565b6000613d8f6034836126ed565b9150613d9a82613d33565b604082019050919050565b60006020820190508181036000830152613dbe81613d82565b9050919050565b7f455243313135353a204552433131353552656365697665722072656a6563746560008201527f6420746f6b656e73000000000000000000000000000000000000000000000000602082015250565b6000613e216028836126ed565b9150613e2c82613dc5565b604082019050919050565b60006020820190508181036000830152613e5081613e14565b9050919050565b600060a082019050613e6c6000830188612c5c565b613e796020830187612c5c565b613e866040830186612441565b613e936060830185612441565b8181036080830152613ea58184613b91565b9050969550505050505056fea2646970667358221220854477ca3d0442ca5e867b18dbd7a9d5a5fd7ff32da958d5adafa0d733dcc0a564736f6c63430008100033

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

00000000000000000000000000000000000000000000000000000000000000280000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000005768747470733a2f2f706978656c6d6f6e2d747261696e696e672d726577617264732e73332d616363656c65726174652e616d617a6f6e6177732e636f6d2f73706f6e736f7265642d74726970732f6d657461646174612f000000000000000000

-----Decoded View---------------
Arg [0] : _tokenTotalSupply (uint256): 40
Arg [1] : metadataURI (string): https://pixelmon-training-rewards.s3-accelerate.amazonaws.com/sponsored-trips/metadata/

-----Encoded View---------------
6 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000028
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000040
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000057
Arg [3] : 68747470733a2f2f706978656c6d6f6e2d747261696e696e672d726577617264
Arg [4] : 732e73332d616363656c65726174652e616d617a6f6e6177732e636f6d2f7370
Arg [5] : 6f6e736f7265642d74726970732f6d657461646174612f000000000000000000


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.