ETH Price: $3,300.19 (-0.93%)

Token

 

Overview

Max Total Supply

2,400

Holders

405

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Filtered by Token Holder
cop86.eth
0x27146Cd533760E0867db2647dad531FdE92d80EF
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:
PixelmonTrainerGear

Compiler Version
v0.8.16+commit.07a7930e

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion
File 1 of 14 : PixelmonTrainerGear.sol
// SPDX-License-Identifier: Unlicense
pragma solidity ^0.8.16;

/// @title Pixelmon Trainer Gear Smart Contract
/// @author LiquidX
/// @notice This smart contract is used for reward on Pixelmon Adventure event

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

/// @notice Thrown when invalid destination address specified address(0)
error InvalidAddress();

/// @notice Thrown when given input does not meet with the expected one
error InvalidInput();

/// @notice Thrown when address is not included in Minter list
error InvalidMinter();

/// @notice Thrown for transfer request who does not have permission
error NotAllowedToTransfer();

/// @notice Thrown when token ID is not match with the existing one
error InvalidTokenId();

/// @notice Thrown when input is equal to zero
error ValueCanNotBeZero();

/// @notice Thrown when token supply already reaches its maximum limit
/// @param _range Amount of token that would be minted
error MintAmountForTokenTypeExceeded(uint256 _range);

/// @notice Thrown when minting is not active and minter tries to mint
error MintingNotActive();

/// @notice Strings library will be used to convert uint256 to string
using Strings for uint256;

/// @notice Pixelmon Trainer Gear smart contract
/// @dev This is a ERC1155 token token standard smart contract
/// @dev Using Ownable modifiers for configuration methods
/// @dev Using ReentrancyGuard for mint and mintBatch method 
contract PixelmonTrainerGear is ERC1155, Ownable, ReentrancyGuard {
    /// @notice Data structure for holding each type token information
    /// @param tokenName token name for a specific token Id
    /// @param maximumTokenSupply Maximum amount of a token Id allowed to mint
    /// @param totalMintedTokenAmount Minted amount of a token Id
    /// @param tokenId token Id value
    struct TokenInfo {
        string tokenName;
        uint256 maximumTokenSupply;
        uint256 totalMintedTokenAmount;
        uint256 tokenId;
    }

    /// @notice List of address that could mint the token
    /// @dev Use this mapping to set permission on who could mint the token
    /// @custom:key A valid ethereum address
    /// @custom:value Set permission in boolean. 'true' means allowed
    mapping(address => bool) public minterList;

    /// @notice List of address that could transfer tokens
    /// @dev Use this mapping to set permission on who could transfer tokens
    /// @custom:key A valid ethereum address
    /// @custom:value Set permission in boolean. 'true' means allowed
    mapping(address => bool) public isAllowedToTransfer; 

    /// @notice List of ERC1155 token types of this smart contract
    /// @dev Use this mapping to store token information
    /// @custom:key tokenId
    /// @custom:value Token information with TokenInfo structure
    mapping(uint256 => TokenInfo) public tokenCollections;

    /// @notice Total of token ID
    uint256 public totalToken = 0;

    /// @notice Sum of total supply for each token
    uint256 public maximumTokenSupply = 0;

    /// @notice Flag for validate is minting active or not
    bool public isMintingActive = true;

    /// @notice Base URL to store off-chain information
    /// @dev This variable could be used to store URL for the token metadata
    string public baseURI = "";

    /// @notice Check whether address is valid
    /// @param _address Any valid ethereum address
    modifier validAddress(address _address) {
        if (_address == address(0)) {
            revert InvalidAddress();
        }
        _;
    }

    /// @notice Check whether minting is active or not
    modifier mintingActive() {
        if(!isMintingActive) {
            revert MintingNotActive();
        }
        _;
    }

    /// @notice Check whether token ID exist
    /// @param _tokenId token ID
    modifier validTokenId(uint256 _tokenId) {
        if (_tokenId < 1 || _tokenId > totalToken) {
            revert InvalidTokenId();
        }
        _;
    }

    /// @notice Check whether an address has permission to mint
    modifier onlyMinter() {
        if (!minterList[msg.sender]) {
            revert InvalidMinter();
        }
        _;
    }

    /// @notice Check whether an address has permission to transfer
    modifier allowedToTransfer() {
        if (!isAllowedToTransfer[msg.sender]) {
            revert NotAllowedToTransfer();
        }
        _;
    }

    /// @notice There's a batch mint transaction happen
    /// @dev Emit event when calling mintBatch function
    /// @param minter Address who calls the function
    /// @param receiver Address who receives the token
    /// @param tokenIdList Item token ID
    /// @param amountList Amount of item that is minted
    event BatchPixelmonTrainerGearMint(
        address minter,
        address receiver,
        uint256[] tokenIdList,
        uint256[] amountList
    );

    /// @notice There's a mint transaction happen
    /// @dev Emit event when calling mint function
    /// @param minter Address who calls the function
    /// @param receiver Address who receives the token
    /// @param tokenId Item token ID
    /// @param amount Amount of item that is minted
    event PixelmonTrainerGearMint(
        address minter,
        address receiver,
        uint256 tokenId,
        uint256 amount
    );

    /// @notice Sets token ID, token name, maximum supply and token type for all tokens
    /// @dev The ERC1155 function is derived from Open Zeppelin ERC1155 library
    /// @param _baseURI Metadata server base URI
    constructor(string memory _baseURI) ERC1155("") {
        baseURI = _baseURI;

        addTokenInfo("Helm 1", 200);
        addTokenInfo("Helm 2", 200);
        addTokenInfo("Helm 3", 200);
        addTokenInfo("Helm 4", 200);

        addTokenInfo("Armor 1", 200);
        addTokenInfo("Armor 2", 200);
        addTokenInfo("Armor 3", 200);
        addTokenInfo("Armor 4", 200);

        addTokenInfo("Weapon 1", 200);
        addTokenInfo("Weapon 2", 200);
        addTokenInfo("Weapon 3", 200);
        addTokenInfo("Weapon 4", 200);
    }

    /// @notice Sets information about specific token
    /// @dev It will set token ID, token name, maximum supply, and token type
    /// @param _tokenName Name of the token
    /// @param _maximumSupply The maximum supply for the token
    function addTokenInfo(string memory _tokenName, uint256 _maximumSupply) public onlyOwner {
        unchecked {
            maximumTokenSupply += _maximumSupply;
            totalToken++;
        }
        
        tokenCollections[totalToken] = TokenInfo({
            maximumTokenSupply: _maximumSupply,
            totalMintedTokenAmount: 0,
            tokenName: _tokenName,
            tokenId: totalToken
        });
    }

    /// @notice Update token maximum supply
    /// @dev This function can only be executed by the contract owner
    /// @param _tokenId Token ID
    /// @param _maximumTokenSupply Token new maximum supply
    function updateTokenSupply(uint256 _tokenId, uint256 _maximumTokenSupply) external onlyOwner validTokenId(_tokenId) {
        if (tokenCollections[_tokenId].totalMintedTokenAmount > _maximumTokenSupply) {
            revert InvalidInput();
        }
        tokenCollections[_tokenId].maximumTokenSupply = _maximumTokenSupply;
    }

    /// @notice Registers an address and sets a permission to mint
    /// @dev This function can only be executed by the contract owner
    /// @param _minter A valid ethereum address
    /// @param _flag The permission to mint. 'true' means allowed
    function setMinterAddress(address _minter, bool _flag) external onlyOwner validAddress(_minter) {
        minterList[_minter] = _flag;
    }

    /// @notice Registers an address and sets a permission to transfer
    /// @dev This function can only be executed by the contract owner
    /// @param _wallet A valid ethereum address
    /// @param _flag The permission to transfer. 'true' means allowed
    function setAllowedToTransfer(address _wallet, bool _flag) external onlyOwner validAddress(_wallet) {
        isAllowedToTransfer[_wallet] = _flag;
    }

    /// @notice This method is for activate/deactivate minting functionality
    /// @dev This function can only be executed by the contract owner
    /// @param _flag New minting status
    function setMintingStatus(bool _flag) external onlyOwner {
        isMintingActive = _flag;
    }

    /// @notice Mint token in batch
    /// @dev Only allowed minter address that could run this function
    /// @param _receiver The address that will receive the token
    /// @param _tokenIds The token ID that will be minted
    /// @param _amounts Amount of token that will be minted
    function mintBatch(
        address _receiver,
        uint256[] memory _tokenIds,
        uint256[] memory _amounts
    ) external nonReentrant onlyMinter validAddress(_receiver) mintingActive {
        if (_amounts.length != _tokenIds.length) {
            revert InvalidInput();
        }

        if (_amounts.length < 1) {
            revert InvalidInput();
        }

        for (uint256 index = 0; index < _tokenIds.length; index = _uncheckedInc(index)) {
            uint256 _tokenId = _tokenIds[index];

            if (_tokenId < 1 || _tokenId > totalToken) {
                revert InvalidTokenId();
            }

            if (_amounts[index] == 0) {
                revert ValueCanNotBeZero();
            }

            if (
                tokenCollections[_tokenId].totalMintedTokenAmount + _amounts[index] >
                tokenCollections[_tokenId].maximumTokenSupply
            ) {
                revert MintAmountForTokenTypeExceeded(_amounts[index]);
            }

            unchecked {
                tokenCollections[_tokenId].totalMintedTokenAmount += _amounts[index];
            }
        }

        _mintBatch(_receiver, _tokenIds, _amounts, "");
        
        emit BatchPixelmonTrainerGearMint(msg.sender, _receiver, _tokenIds, _amounts);
    }

    /// @notice Mint token
    /// @dev Only allowed minter address that could run this function
    /// @param _receiver The address that will receive the token
    /// @param _tokenId The token ID that will be minted
    /// @param _amount Amount of token that will be minted
    function mint(
        address _receiver,
        uint256 _tokenId,
        uint256 _amount
    )
        external
        nonReentrant
        onlyMinter
        validAddress(_receiver)
        validTokenId(_tokenId)
        mintingActive
    {

        if(_amount == 0) {
            revert ValueCanNotBeZero();
        }
        
        if (
            tokenCollections[_tokenId].totalMintedTokenAmount + _amount >
            tokenCollections[_tokenId].maximumTokenSupply
        ) {
            revert MintAmountForTokenTypeExceeded(_amount);
        }

        unchecked {
            tokenCollections[_tokenId].totalMintedTokenAmount += _amount;
        }

        _mint(_receiver, _tokenId, _amount, "");
        
        emit PixelmonTrainerGearMint(msg.sender, _receiver, _tokenId, _amount);
    }

    /// @notice Wallets that allowed to transfer only can use this method
    /// @dev See {IERC1155-safeTransferFrom}.
    /// @param from from address
    /// @param to receiver address 
    /// @param id tokenId to transfer
    /// @param amount token amount
    /// @param data custom data parameter during transfer
    function safeTransferFrom(
        address from,
        address to,
        uint256 id,
        uint256 amount,
        bytes memory data
    ) public virtual override allowedToTransfer {
        super.safeTransferFrom(from, to, id, amount, data);
    }

    /// @notice Wallets that allowed to transfer only can use this method
    /// @dev See {IERC1155-safeBatchTransferFrom}.
    /// @param from from address
    /// @param to receiver address 
    /// @param ids tokenId list
    /// @param amounts token amounts
    /// @param data custom data parameter during transfer
    function safeBatchTransferFrom(
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) public virtual override allowedToTransfer {
        super.safeBatchTransferFrom(from, to, ids, amounts, data);
    }

    /// @notice Set base URL for storing off-chain information
    /// @param newuri A valid URL
    function setURI(string memory newuri) external onlyOwner {
        baseURI = newuri;
    }

    /// @notice Appends token ID to base URL
    /// @param _tokenId The token ID
    function uri(uint256 _tokenId) public view override returns (string memory) {
        return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, _tokenId.toString())) : "";
    }

    /// @notice Get information from specific token ID
    /// @param _tokenId Token ID
    function getTokenInfo(uint256 _tokenId) external view validTokenId(_tokenId) returns (TokenInfo memory tokenInfo) {
        tokenInfo = tokenCollections[_tokenId];
    }

    /// @dev Unchecked increment function, just to reduce gas usage
    /// @notice This value can not be greater than 1000
    /// @param _value value to be incremented, should not overflow 2**256 - 1
    /// @return incremented value
    function _uncheckedInc(uint256 _value) internal pure returns (uint256) {
        unchecked { return _value + 1; }
    }
}

File 2 of 14 : ERC1155Burnable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (token/ERC1155/extensions/ERC1155Burnable.sol)

pragma solidity ^0.8.0;

import "../ERC1155.sol";

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

        _burn(account, id, value);
    }

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

        _burnBatch(account, ids, values);
    }
}

File 3 of 14 : 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 14 : 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 14 : 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 6 of 14 : 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);
    }
}

File 7 of 14 : 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 8 of 14 : 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 9 of 14 : 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 10 of 14 : 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 11 of 14 : Context.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)

pragma solidity ^0.8.0;

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

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

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

pragma solidity ^0.8.0;

import "./IERC165.sol";

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

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

pragma solidity ^0.8.0;

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

File 14 of 14 : 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);
        }
    }
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"_baseURI","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"InvalidAddress","type":"error"},{"inputs":[],"name":"InvalidInput","type":"error"},{"inputs":[],"name":"InvalidMinter","type":"error"},{"inputs":[],"name":"InvalidTokenId","type":"error"},{"inputs":[{"internalType":"uint256","name":"_range","type":"uint256"}],"name":"MintAmountForTokenTypeExceeded","type":"error"},{"inputs":[],"name":"MintingNotActive","type":"error"},{"inputs":[],"name":"NotAllowedToTransfer","type":"error"},{"inputs":[],"name":"ValueCanNotBeZero","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":false,"internalType":"address","name":"minter","type":"address"},{"indexed":false,"internalType":"address","name":"receiver","type":"address"},{"indexed":false,"internalType":"uint256[]","name":"tokenIdList","type":"uint256[]"},{"indexed":false,"internalType":"uint256[]","name":"amountList","type":"uint256[]"}],"name":"BatchPixelmonTrainerGearMint","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"minter","type":"address"},{"indexed":false,"internalType":"address","name":"receiver","type":"address"},{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"PixelmonTrainerGearMint","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":"string","name":"_tokenName","type":"string"},{"internalType":"uint256","name":"_maximumSupply","type":"uint256"}],"name":"addTokenInfo","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"accounts","type":"address[]"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"}],"name":"balanceOfBatch","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"getTokenInfo","outputs":[{"components":[{"internalType":"string","name":"tokenName","type":"string"},{"internalType":"uint256","name":"maximumTokenSupply","type":"uint256"},{"internalType":"uint256","name":"totalMintedTokenAmount","type":"uint256"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"internalType":"struct PixelmonTrainerGear.TokenInfo","name":"tokenInfo","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"isAllowedToTransfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isMintingActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maximumTokenSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_receiver","type":"address"},{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_receiver","type":"address"},{"internalType":"uint256[]","name":"_tokenIds","type":"uint256[]"},{"internalType":"uint256[]","name":"_amounts","type":"uint256[]"}],"name":"mintBatch","outputs":[],"stateMutability":"nonpayable","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":"_wallet","type":"address"},{"internalType":"bool","name":"_flag","type":"bool"}],"name":"setAllowedToTransfer","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_minter","type":"address"},{"internalType":"bool","name":"_flag","type":"bool"}],"name":"setMinterAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_flag","type":"bool"}],"name":"setMintingStatus","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":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"tokenCollections","outputs":[{"internalType":"string","name":"tokenName","type":"string"},{"internalType":"uint256","name":"maximumTokenSupply","type":"uint256"},{"internalType":"uint256","name":"totalMintedTokenAmount","type":"uint256"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalToken","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":"_tokenId","type":"uint256"},{"internalType":"uint256","name":"_maximumTokenSupply","type":"uint256"}],"name":"updateTokenSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"uri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"}]

6080604052600060085560006009556001600a60006101000a81548160ff02191690831515021790555060405180602001604052806000815250600b908162000049919062000900565b503480156200005757600080fd5b50604051620054e3380380620054e383398181016040528101906200007d919062000b4b565b604051806020016040528060008152506200009e816200044060201b60201c565b50620000bf620000b36200045560201b60201c565b6200045d60201b60201c565b600160048190555080600b9081620000d8919062000900565b50620001216040518060400160405280600681526020017f48656c6d2031000000000000000000000000000000000000000000000000000081525060c86200052360201b60201c565b620001696040518060400160405280600681526020017f48656c6d2032000000000000000000000000000000000000000000000000000081525060c86200052360201b60201c565b620001b16040518060400160405280600681526020017f48656c6d2033000000000000000000000000000000000000000000000000000081525060c86200052360201b60201c565b620001f96040518060400160405280600681526020017f48656c6d2034000000000000000000000000000000000000000000000000000081525060c86200052360201b60201c565b620002416040518060400160405280600781526020017f41726d6f7220310000000000000000000000000000000000000000000000000081525060c86200052360201b60201c565b620002896040518060400160405280600781526020017f41726d6f7220320000000000000000000000000000000000000000000000000081525060c86200052360201b60201c565b620002d16040518060400160405280600781526020017f41726d6f7220330000000000000000000000000000000000000000000000000081525060c86200052360201b60201c565b620003196040518060400160405280600781526020017f41726d6f7220340000000000000000000000000000000000000000000000000081525060c86200052360201b60201c565b620003616040518060400160405280600881526020017f576561706f6e203100000000000000000000000000000000000000000000000081525060c86200052360201b60201c565b620003a96040518060400160405280600881526020017f576561706f6e203200000000000000000000000000000000000000000000000081525060c86200052360201b60201c565b620003f16040518060400160405280600881526020017f576561706f6e203300000000000000000000000000000000000000000000000081525060c86200052360201b60201c565b620004396040518060400160405280600881526020017f576561706f6e203400000000000000000000000000000000000000000000000081525060c86200052360201b60201c565b5062000c1f565b806002908162000451919062000900565b5050565b600033905090565b6000600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b62000533620005cb60201b60201c565b806009600082825401925050819055506008600081548092919060010191905055506040518060800160405280838152602001828152602001600081526020016008548152506007600060085481526020019081526020016000206000820151816000019081620005a5919062000900565b506020820151816001015560408201518160020155606082015181600301559050505050565b620005db6200045560201b60201c565b73ffffffffffffffffffffffffffffffffffffffff16620006016200065c60201b60201c565b73ffffffffffffffffffffffffffffffffffffffff16146200065a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620006519062000bfd565b60405180910390fd5b565b6000600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b600081519050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806200070857607f821691505b6020821081036200071e576200071d620006c0565b5b50919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b600060088302620007887fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8262000749565b62000794868362000749565b95508019841693508086168417925050509392505050565b6000819050919050565b6000819050919050565b6000620007e1620007db620007d584620007ac565b620007b6565b620007ac565b9050919050565b6000819050919050565b620007fd83620007c0565b620008156200080c82620007e8565b84845462000756565b825550505050565b600090565b6200082c6200081d565b62000839818484620007f2565b505050565b5b8181101562000861576200085560008262000822565b6001810190506200083f565b5050565b601f821115620008b0576200087a8162000724565b620008858462000739565b8101602085101562000895578190505b620008ad620008a48562000739565b8301826200083e565b50505b505050565b600082821c905092915050565b6000620008d560001984600802620008b5565b1980831691505092915050565b6000620008f08383620008c2565b9150826002028217905092915050565b6200090b8262000686565b67ffffffffffffffff81111562000927576200092662000691565b5b620009338254620006ef565b6200094082828562000865565b600060209050601f83116001811462000978576000841562000963578287015190505b6200096f8582620008e2565b865550620009df565b601f198416620009888662000724565b60005b82811015620009b2578489015182556001820191506020850194506020810190506200098b565b86831015620009d25784890151620009ce601f891682620008c2565b8355505b6001600288020188555050505b505050505050565b6000604051905090565b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b62000a218262000a05565b810181811067ffffffffffffffff8211171562000a435762000a4262000691565b5b80604052505050565b600062000a58620009e7565b905062000a66828262000a16565b919050565b600067ffffffffffffffff82111562000a895762000a8862000691565b5b62000a948262000a05565b9050602081019050919050565b60005b8381101562000ac157808201518184015260208101905062000aa4565b60008484015250505050565b600062000ae462000ade8462000a6b565b62000a4c565b90508281526020810184848401111562000b035762000b0262000a00565b5b62000b1084828562000aa1565b509392505050565b600082601f83011262000b305762000b2f620009fb565b5b815162000b4284826020860162000acd565b91505092915050565b60006020828403121562000b645762000b63620009f1565b5b600082015167ffffffffffffffff81111562000b855762000b84620009f6565b5b62000b938482850162000b18565b91505092915050565b600082825260208201905092915050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b600062000be560208362000b9c565b915062000bf28262000bad565b602082019050919050565b6000602082019050818103600083015262000c188162000bd6565b9050919050565b6148b48062000c2f6000396000f3fe608060405234801561001057600080fd5b50600436106101a85760003560e01c8063715018a6116100f9578063ca41920211610097578063dee4d86011610071578063dee4d860146104cc578063e985e9c5146104e8578063f242432a14610518578063f2fde38b14610534576101a8565b8063ca41920214610478578063d1aa245214610494578063d81d0a15146104b0576101a8565b80638da5cb5b116100d35780638da5cb5b146103db578063a22cb465146103f9578063b7d3151214610415578063c3a360a614610448576101a8565b8063715018a6146103855780637420aa361461038f5780638c7a63ae146103ab576101a8565b8063279882601161016657806352a5ec861161014057806352a5ec86146102fb578063626be5671461032b5780636ac437b0146103495780636c0360eb14610367576101a8565b806327988260146102935780632eb2c2d6146102af5780634e1273f4146102cb576101a8565b8062fdd58e146101ad57806301ffc9a7146101dd57806302fe53051461020d5780630e89341c1461022957806312c45f6414610259578063156e29f614610277575b600080fd5b6101c760048036038101906101c29190612d55565b610550565b6040516101d49190612da4565b60405180910390f35b6101f760048036038101906101f29190612e17565b610618565b6040516102049190612e5f565b60405180910390f35b61022760048036038101906102229190612fc0565b6106fa565b005b610243600480360381019061023e9190613009565b610715565b60405161025091906130b5565b60405180910390f35b610261610775565b60405161026e9190612da4565b60405180910390f35b610291600480360381019061028c91906130d7565b61077b565b005b6102ad60048036038101906102a89190613156565b610a3c565b005b6102c960048036038101906102c491906132ff565b610b07565b005b6102e560048036038101906102e09190613491565b610b9e565b6040516102f291906135c7565b60405180910390f35b610315600480360381019061031091906135e9565b610cb7565b6040516103229190612e5f565b60405180910390f35b610333610cd7565b6040516103409190612da4565b60405180910390f35b610351610cdd565b60405161035e9190612e5f565b60405180910390f35b61036f610cf0565b60405161037c91906130b5565b60405180910390f35b61038d610d7e565b005b6103a960048036038101906103a49190613616565b610d92565b005b6103c560048036038101906103c09190613009565b610db7565b6040516103d291906136f0565b60405180910390f35b6103e3610edd565b6040516103f09190613721565b60405180910390f35b610413600480360381019061040e9190613156565b610f07565b005b61042f600480360381019061042a9190613009565b610f1d565b60405161043f949392919061373c565b60405180910390f35b610462600480360381019061045d91906135e9565b610fd5565b60405161046f9190612e5f565b60405180910390f35b610492600480360381019061048d9190613788565b610ff5565b005b6104ae60048036038101906104a99190613156565b6110b5565b005b6104ca60048036038101906104c591906137c8565b611180565b005b6104e660048036038101906104e19190613853565b61155b565b005b61050260048036038101906104fd91906138af565b6115f9565b60405161050f9190612e5f565b60405180910390f35b610532600480360381019061052d91906138ef565b61168d565b005b61054e600480360381019061054991906135e9565b611724565b005b60008073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036105c0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016105b7906139f8565b60405180910390fd5b60008083815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b60007fd9b67a26000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806106e357507f0e89341c000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806106f357506106f2826117a7565b5b9050919050565b610702611811565b80600b90816107119190613c24565b5050565b60606000600b805461072690613a47565b905011610742576040518060200160405280600081525061076e565b600b61074d8361188f565b60405160200161075e929190613db5565b6040516020818303038152906040525b9050919050565b60095481565b61078361195d565b600560003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16610806576040517fd8d5894f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b82600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff160361086d576040517fe6c4247b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b82600181108061087e575060085481115b156108b5576040517f3f6cc76800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600a60009054906101000a900460ff166108fb576040517f73020e4b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008303610935576040517f5d54acad00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600760008581526020019081526020016000206001015483600760008781526020019081526020016000206002015461096e9190613e08565b11156109b157826040517f353e73620000000000000000000000000000000000000000000000000000000081526004016109a89190612da4565b60405180910390fd5b8260076000868152602001908152602001600020600201600082825401925050819055506109f0858585604051806020016040528060008152506119ac565b7f674a763f3d205c61d81987219aff6e0971cea15a30cb22d89a899ccf79eb87c833868686604051610a259493929190613e3c565b60405180910390a15050610a37611b5c565b505050565b610a44611811565b81600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610aab576040517fe6c4247b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b81600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550505050565b600660003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16610b8a576040517f1c1f9e2e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610b978585858585611b66565b5050505050565b60608151835114610be4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bdb90613ef3565b60405180910390fd5b6000835167ffffffffffffffff811115610c0157610c00612e95565b5b604051908082528060200260200182016040528015610c2f5781602001602082028036833780820191505090505b50905060005b8451811015610cac57610c7c858281518110610c5457610c53613f13565b5b6020026020010151858381518110610c6f57610c6e613f13565b5b6020026020010151610550565b828281518110610c8f57610c8e613f13565b5b60200260200101818152505080610ca590613f42565b9050610c35565b508091505092915050565b60056020528060005260406000206000915054906101000a900460ff1681565b60085481565b600a60009054906101000a900460ff1681565b600b8054610cfd90613a47565b80601f0160208091040260200160405190810160405280929190818152602001828054610d2990613a47565b8015610d765780601f10610d4b57610100808354040283529160200191610d76565b820191906000526020600020905b815481529060010190602001808311610d5957829003601f168201915b505050505081565b610d86611811565b610d906000611c07565b565b610d9a611811565b80600a60006101000a81548160ff02191690831515021790555050565b610dbf612c85565b816001811080610dd0575060085481115b15610e07576040517f3f6cc76800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60076000848152602001908152602001600020604051806080016040529081600082018054610e3590613a47565b80601f0160208091040260200160405190810160405280929190818152602001828054610e6190613a47565b8015610eae5780601f10610e8357610100808354040283529160200191610eae565b820191906000526020600020905b815481529060010190602001808311610e9157829003601f168201915b505050505081526020016001820154815260200160028201548152602001600382015481525050915050919050565b6000600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b610f19610f12611ccd565b8383611cd5565b5050565b6007602052806000526040600020600091509050806000018054610f4090613a47565b80601f0160208091040260200160405190810160405280929190818152602001828054610f6c90613a47565b8015610fb95780601f10610f8e57610100808354040283529160200191610fb9565b820191906000526020600020905b815481529060010190602001808311610f9c57829003601f168201915b5050505050908060010154908060020154908060030154905084565b60066020528060005260406000206000915054906101000a900460ff1681565b610ffd611811565b81600181108061100e575060085481115b15611045576040517f3f6cc76800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8160076000858152602001908152602001600020600201541115611095576040517fb4fa3fb300000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b816007600085815260200190815260200160002060010181905550505050565b6110bd611811565b81600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611124576040517fe6c4247b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b81600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550505050565b61118861195d565b600560003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1661120b576040517fd8d5894f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b82600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611272576040517fe6c4247b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600a60009054906101000a900460ff166112b8576040517f73020e4b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b82518251146112f3576040517fb4fa3fb300000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60018251101561132f576040517fb4fa3fb300000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60005b83518110156114f45760008482815181106113505761134f613f13565b5b60200260200101519050600181108061136a575060085481115b156113a1576040517f3f6cc76800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008483815181106113b6576113b5613f13565b5b6020026020010151036113f5576040517f5d54acad00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600760008281526020019081526020016000206001015484838151811061141f5761141e613f13565b5b602002602001015160076000848152602001908152602001600020600201546114489190613e08565b11156114a55783828151811061146157611460613f13565b5b60200260200101516040517f353e736200000000000000000000000000000000000000000000000000000000815260040161149c9190612da4565b60405180910390fd5b8382815181106114b8576114b7613f13565b5b60200260200101516007600083815260200190815260200160002060020160008282540192505081905550506114ed81611e41565b9050611332565b5061151084848460405180602001604052806000815250611e4e565b7f9ef1bbf9f5ce659c666652a9a961b87e07164904a195e363df3a546439ac3fdc338585856040516115459493929190613f8a565b60405180910390a150611556611b5c565b505050565b611563611811565b8060096000828254019250508190555060086000815480929190600101919050555060405180608001604052808381526020018281526020016000815260200160085481525060076000600854815260200190815260200160002060008201518160000190816115d39190613c24565b506020820151816001015560408201518160020155606082015181600301559050505050565b6000600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b600660003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16611710576040517f1c1f9e2e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61171d858585858561207a565b5050505050565b61172c611811565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff160361179b576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117929061404f565b60405180910390fd5b6117a481611c07565b50565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b611819611ccd565b73ffffffffffffffffffffffffffffffffffffffff16611837610edd565b73ffffffffffffffffffffffffffffffffffffffff161461188d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611884906140bb565b60405180910390fd5b565b60606000600161189e8461211b565b01905060008167ffffffffffffffff8111156118bd576118bc612e95565b5b6040519080825280601f01601f1916602001820160405280156118ef5781602001600182028036833780820191505090505b509050600082602001820190505b600115611952578080600190039150507f3031323334353637383961626364656600000000000000000000000000000000600a86061a8153600a8581611946576119456140db565b5b049450600085036118fd575b819350505050919050565b6002600454036119a2576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161199990614156565b60405180910390fd5b6002600481905550565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1603611a1b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a12906141e8565b60405180910390fd5b6000611a25611ccd565b90506000611a328561226e565b90506000611a3f8561226e565b9050611a50836000898585896122e8565b8460008088815260200190815260200160002060008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611aaf9190613e08565b925050819055508673ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f628989604051611b2d929190614208565b60405180910390a4611b44836000898585896122f0565b611b53836000898989896122f8565b50505050505050565b6001600481905550565b611b6e611ccd565b73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff161480611bb45750611bb385611bae611ccd565b6115f9565b5b611bf3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611bea906142a3565b60405180910390fd5b611c0085858585856124cf565b5050505050565b6000600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600033905090565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603611d43576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d3a90614335565b60405180910390fd5b80600160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051611e349190612e5f565b60405180910390a3505050565b6000600182019050919050565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1603611ebd576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611eb4906141e8565b60405180910390fd5b8151835114611f01576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ef8906143c7565b60405180910390fd5b6000611f0b611ccd565b9050611f1c816000878787876122e8565b60005b8451811015611fd557838181518110611f3b57611f3a613f13565b5b6020026020010151600080878481518110611f5957611f58613f13565b5b6020026020010151815260200190815260200160002060008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611fbb9190613e08565b925050819055508080611fcd90613f42565b915050611f1f565b508473ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb878760405161204d9291906143e7565b60405180910390a4612064816000878787876122f0565b612073816000878787876127f0565b5050505050565b612082611ccd565b73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1614806120c857506120c7856120c2611ccd565b6115f9565b5b612107576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120fe906142a3565b60405180910390fd5b61211485858585856129c7565b5050505050565b600080600090507a184f03e93ff9f4daa797ed6e38ed64bf6a1f0100000000000000008310612179577a184f03e93ff9f4daa797ed6e38ed64bf6a1f010000000000000000838161216f5761216e6140db565b5b0492506040810190505b6d04ee2d6d415b85acef810000000083106121b6576d04ee2d6d415b85acef810000000083816121ac576121ab6140db565b5b0492506020810190505b662386f26fc1000083106121e557662386f26fc1000083816121db576121da6140db565b5b0492506010810190505b6305f5e100831061220e576305f5e1008381612204576122036140db565b5b0492506008810190505b6127108310612233576127108381612229576122286140db565b5b0492506004810190505b60648310612256576064838161224c5761224b6140db565b5b0492506002810190505b600a8310612265576001810190505b80915050919050565b60606000600167ffffffffffffffff81111561228d5761228c612e95565b5b6040519080825280602002602001820160405280156122bb5781602001602082028036833780820191505090505b50905082816000815181106122d3576122d2613f13565b5b60200260200101818152505080915050919050565b505050505050565b505050505050565b6123178473ffffffffffffffffffffffffffffffffffffffff16612c62565b156124c7578373ffffffffffffffffffffffffffffffffffffffff1663f23a6e6187878686866040518663ffffffff1660e01b815260040161235d959493929190614473565b6020604051808303816000875af192505050801561239957506040513d601f19601f8201168201806040525081019061239691906144e2565b60015b61243e576123a561451c565b806308c379a00361240157506123b961453e565b806123c45750612403565b806040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123f891906130b5565b60405180910390fd5b505b6040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161243590614640565b60405180910390fd5b63f23a6e6160e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916146124c5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124bc906146d2565b60405180910390fd5b505b505050505050565b8151835114612513576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161250a906143c7565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1603612582576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161257990614764565b60405180910390fd5b600061258c611ccd565b905061259c8187878787876122e8565b60005b845181101561274d5760008582815181106125bd576125bc613f13565b5b6020026020010151905060008583815181106125dc576125db613f13565b5b60200260200101519050600080600084815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205490508181101561267d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612674906147f6565b60405180910390fd5b81810360008085815260200190815260200160002060008c73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508160008085815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546127329190613e08565b925050819055505050508061274690613f42565b905061259f565b508473ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb87876040516127c49291906143e7565b60405180910390a46127da8187878787876122f0565b6127e88187878787876127f0565b505050505050565b61280f8473ffffffffffffffffffffffffffffffffffffffff16612c62565b156129bf578373ffffffffffffffffffffffffffffffffffffffff1663bc197c8187878686866040518663ffffffff1660e01b8152600401612855959493929190614816565b6020604051808303816000875af192505050801561289157506040513d601f19601f8201168201806040525081019061288e91906144e2565b60015b6129365761289d61451c565b806308c379a0036128f957506128b161453e565b806128bc57506128fb565b806040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016128f091906130b5565b60405180910390fd5b505b6040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161292d90614640565b60405180910390fd5b63bc197c8160e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916146129bd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016129b4906146d2565b60405180910390fd5b505b505050505050565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1603612a36576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a2d90614764565b60405180910390fd5b6000612a40611ccd565b90506000612a4d8561226e565b90506000612a5a8561226e565b9050612a6a8389898585896122e8565b600080600088815260200190815260200160002060008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905085811015612b01576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612af8906147f6565b60405180910390fd5b85810360008089815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508560008089815260200190815260200160002060008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612bb69190613e08565b925050819055508773ffffffffffffffffffffffffffffffffffffffff168973ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f628a8a604051612c33929190614208565b60405180910390a4612c49848a8a86868a6122f0565b612c57848a8a8a8a8a6122f8565b505050505050505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b6040518060800160405280606081526020016000815260200160008152602001600081525090565b6000604051905090565b600080fd5b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000612cec82612cc1565b9050919050565b612cfc81612ce1565b8114612d0757600080fd5b50565b600081359050612d1981612cf3565b92915050565b6000819050919050565b612d3281612d1f565b8114612d3d57600080fd5b50565b600081359050612d4f81612d29565b92915050565b60008060408385031215612d6c57612d6b612cb7565b5b6000612d7a85828601612d0a565b9250506020612d8b85828601612d40565b9150509250929050565b612d9e81612d1f565b82525050565b6000602082019050612db96000830184612d95565b92915050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b612df481612dbf565b8114612dff57600080fd5b50565b600081359050612e1181612deb565b92915050565b600060208284031215612e2d57612e2c612cb7565b5b6000612e3b84828501612e02565b91505092915050565b60008115159050919050565b612e5981612e44565b82525050565b6000602082019050612e746000830184612e50565b92915050565b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b612ecd82612e84565b810181811067ffffffffffffffff82111715612eec57612eeb612e95565b5b80604052505050565b6000612eff612cad565b9050612f0b8282612ec4565b919050565b600067ffffffffffffffff821115612f2b57612f2a612e95565b5b612f3482612e84565b9050602081019050919050565b82818337600083830152505050565b6000612f63612f5e84612f10565b612ef5565b905082815260208101848484011115612f7f57612f7e612e7f565b5b612f8a848285612f41565b509392505050565b600082601f830112612fa757612fa6612e7a565b5b8135612fb7848260208601612f50565b91505092915050565b600060208284031215612fd657612fd5612cb7565b5b600082013567ffffffffffffffff811115612ff457612ff3612cbc565b5b61300084828501612f92565b91505092915050565b60006020828403121561301f5761301e612cb7565b5b600061302d84828501612d40565b91505092915050565b600081519050919050565b600082825260208201905092915050565b60005b83811015613070578082015181840152602081019050613055565b60008484015250505050565b600061308782613036565b6130918185613041565b93506130a1818560208601613052565b6130aa81612e84565b840191505092915050565b600060208201905081810360008301526130cf818461307c565b905092915050565b6000806000606084860312156130f0576130ef612cb7565b5b60006130fe86828701612d0a565b935050602061310f86828701612d40565b925050604061312086828701612d40565b9150509250925092565b61313381612e44565b811461313e57600080fd5b50565b6000813590506131508161312a565b92915050565b6000806040838503121561316d5761316c612cb7565b5b600061317b85828601612d0a565b925050602061318c85828601613141565b9150509250929050565b600067ffffffffffffffff8211156131b1576131b0612e95565b5b602082029050602081019050919050565b600080fd5b60006131da6131d584613196565b612ef5565b905080838252602082019050602084028301858111156131fd576131fc6131c2565b5b835b8181101561322657806132128882612d40565b8452602084019350506020810190506131ff565b5050509392505050565b600082601f83011261324557613244612e7a565b5b81356132558482602086016131c7565b91505092915050565b600067ffffffffffffffff82111561327957613278612e95565b5b61328282612e84565b9050602081019050919050565b60006132a261329d8461325e565b612ef5565b9050828152602081018484840111156132be576132bd612e7f565b5b6132c9848285612f41565b509392505050565b600082601f8301126132e6576132e5612e7a565b5b81356132f684826020860161328f565b91505092915050565b600080600080600060a0868803121561331b5761331a612cb7565b5b600061332988828901612d0a565b955050602061333a88828901612d0a565b945050604086013567ffffffffffffffff81111561335b5761335a612cbc565b5b61336788828901613230565b935050606086013567ffffffffffffffff81111561338857613387612cbc565b5b61339488828901613230565b925050608086013567ffffffffffffffff8111156133b5576133b4612cbc565b5b6133c1888289016132d1565b9150509295509295909350565b600067ffffffffffffffff8211156133e9576133e8612e95565b5b602082029050602081019050919050565b600061340d613408846133ce565b612ef5565b905080838252602082019050602084028301858111156134305761342f6131c2565b5b835b8181101561345957806134458882612d0a565b845260208401935050602081019050613432565b5050509392505050565b600082601f83011261347857613477612e7a565b5b81356134888482602086016133fa565b91505092915050565b600080604083850312156134a8576134a7612cb7565b5b600083013567ffffffffffffffff8111156134c6576134c5612cbc565b5b6134d285828601613463565b925050602083013567ffffffffffffffff8111156134f3576134f2612cbc565b5b6134ff85828601613230565b9150509250929050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b61353e81612d1f565b82525050565b60006135508383613535565b60208301905092915050565b6000602082019050919050565b600061357482613509565b61357e8185613514565b935061358983613525565b8060005b838110156135ba5781516135a18882613544565b97506135ac8361355c565b92505060018101905061358d565b5085935050505092915050565b600060208201905081810360008301526135e18184613569565b905092915050565b6000602082840312156135ff576135fe612cb7565b5b600061360d84828501612d0a565b91505092915050565b60006020828403121561362c5761362b612cb7565b5b600061363a84828501613141565b91505092915050565b600082825260208201905092915050565b600061365f82613036565b6136698185613643565b9350613679818560208601613052565b61368281612e84565b840191505092915050565b600060808301600083015184820360008601526136aa8282613654565b91505060208301516136bf6020860182613535565b5060408301516136d26040860182613535565b5060608301516136e56060860182613535565b508091505092915050565b6000602082019050818103600083015261370a818461368d565b905092915050565b61371b81612ce1565b82525050565b60006020820190506137366000830184613712565b92915050565b60006080820190508181036000830152613756818761307c565b90506137656020830186612d95565b6137726040830185612d95565b61377f6060830184612d95565b95945050505050565b6000806040838503121561379f5761379e612cb7565b5b60006137ad85828601612d40565b92505060206137be85828601612d40565b9150509250929050565b6000806000606084860312156137e1576137e0612cb7565b5b60006137ef86828701612d0a565b935050602084013567ffffffffffffffff8111156138105761380f612cbc565b5b61381c86828701613230565b925050604084013567ffffffffffffffff81111561383d5761383c612cbc565b5b61384986828701613230565b9150509250925092565b6000806040838503121561386a57613869612cb7565b5b600083013567ffffffffffffffff81111561388857613887612cbc565b5b61389485828601612f92565b92505060206138a585828601612d40565b9150509250929050565b600080604083850312156138c6576138c5612cb7565b5b60006138d485828601612d0a565b92505060206138e585828601612d0a565b9150509250929050565b600080600080600060a0868803121561390b5761390a612cb7565b5b600061391988828901612d0a565b955050602061392a88828901612d0a565b945050604061393b88828901612d40565b935050606061394c88828901612d40565b925050608086013567ffffffffffffffff81111561396d5761396c612cbc565b5b613979888289016132d1565b9150509295509295909350565b7f455243313135353a2061646472657373207a65726f206973206e6f742061207660008201527f616c6964206f776e657200000000000000000000000000000000000000000000602082015250565b60006139e2602a83613041565b91506139ed82613986565b604082019050919050565b60006020820190508181036000830152613a11816139d5565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680613a5f57607f821691505b602082108103613a7257613a71613a18565b5b50919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b600060088302613ada7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82613a9d565b613ae48683613a9d565b95508019841693508086168417925050509392505050565b6000819050919050565b6000613b21613b1c613b1784612d1f565b613afc565b612d1f565b9050919050565b6000819050919050565b613b3b83613b06565b613b4f613b4782613b28565b848454613aaa565b825550505050565b600090565b613b64613b57565b613b6f818484613b32565b505050565b5b81811015613b9357613b88600082613b5c565b600181019050613b75565b5050565b601f821115613bd857613ba981613a78565b613bb284613a8d565b81016020851015613bc1578190505b613bd5613bcd85613a8d565b830182613b74565b50505b505050565b600082821c905092915050565b6000613bfb60001984600802613bdd565b1980831691505092915050565b6000613c148383613bea565b9150826002028217905092915050565b613c2d82613036565b67ffffffffffffffff811115613c4657613c45612e95565b5b613c508254613a47565b613c5b828285613b97565b600060209050601f831160018114613c8e5760008415613c7c578287015190505b613c868582613c08565b865550613cee565b601f198416613c9c86613a78565b60005b82811015613cc457848901518255600182019150602085019450602081019050613c9f565b86831015613ce15784890151613cdd601f891682613bea565b8355505b6001600288020188555050505b505050505050565b600081905092915050565b60008154613d0e81613a47565b613d188186613cf6565b94506001821660008114613d335760018114613d4857613d7b565b60ff1983168652811515820286019350613d7b565b613d5185613a78565b60005b83811015613d7357815481890152600182019150602081019050613d54565b838801955050505b50505092915050565b6000613d8f82613036565b613d998185613cf6565b9350613da9818560208601613052565b80840191505092915050565b6000613dc18285613d01565b9150613dcd8284613d84565b91508190509392505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000613e1382612d1f565b9150613e1e83612d1f565b9250828201905080821115613e3657613e35613dd9565b5b92915050565b6000608082019050613e516000830187613712565b613e5e6020830186613712565b613e6b6040830185612d95565b613e786060830184612d95565b95945050505050565b7f455243313135353a206163636f756e747320616e6420696473206c656e67746860008201527f206d69736d617463680000000000000000000000000000000000000000000000602082015250565b6000613edd602983613041565b9150613ee882613e81565b604082019050919050565b60006020820190508181036000830152613f0c81613ed0565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6000613f4d82612d1f565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203613f7f57613f7e613dd9565b5b600182019050919050565b6000608082019050613f9f6000830187613712565b613fac6020830186613712565b8181036040830152613fbe8185613569565b90508181036060830152613fd28184613569565b905095945050505050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000614039602683613041565b915061404482613fdd565b604082019050919050565b600060208201905081810360008301526140688161402c565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b60006140a5602083613041565b91506140b08261406f565b602082019050919050565b600060208201905081810360008301526140d481614098565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b6000614140601f83613041565b915061414b8261410a565b602082019050919050565b6000602082019050818103600083015261416f81614133565b9050919050565b7f455243313135353a206d696e7420746f20746865207a65726f2061646472657360008201527f7300000000000000000000000000000000000000000000000000000000000000602082015250565b60006141d2602183613041565b91506141dd82614176565b604082019050919050565b60006020820190508181036000830152614201816141c5565b9050919050565b600060408201905061421d6000830185612d95565b61422a6020830184612d95565b9392505050565b7f455243313135353a2063616c6c6572206973206e6f7420746f6b656e206f776e60008201527f6572206f7220617070726f766564000000000000000000000000000000000000602082015250565b600061428d602e83613041565b915061429882614231565b604082019050919050565b600060208201905081810360008301526142bc81614280565b9050919050565b7f455243313135353a2073657474696e6720617070726f76616c2073746174757360008201527f20666f722073656c660000000000000000000000000000000000000000000000602082015250565b600061431f602983613041565b915061432a826142c3565b604082019050919050565b6000602082019050818103600083015261434e81614312565b9050919050565b7f455243313135353a2069647320616e6420616d6f756e7473206c656e6774682060008201527f6d69736d61746368000000000000000000000000000000000000000000000000602082015250565b60006143b1602883613041565b91506143bc82614355565b604082019050919050565b600060208201905081810360008301526143e0816143a4565b9050919050565b600060408201905081810360008301526144018185613569565b905081810360208301526144158184613569565b90509392505050565b600081519050919050565b600082825260208201905092915050565b60006144458261441e565b61444f8185614429565b935061445f818560208601613052565b61446881612e84565b840191505092915050565b600060a0820190506144886000830188613712565b6144956020830187613712565b6144a26040830186612d95565b6144af6060830185612d95565b81810360808301526144c1818461443a565b90509695505050505050565b6000815190506144dc81612deb565b92915050565b6000602082840312156144f8576144f7612cb7565b5b6000614506848285016144cd565b91505092915050565b60008160e01c9050919050565b600060033d111561453b5760046000803e61453860005161450f565b90505b90565b600060443d106145cb57614550612cad565b60043d036004823e80513d602482011167ffffffffffffffff821117156145785750506145cb565b808201805167ffffffffffffffff81111561459657505050506145cb565b80602083010160043d0385018111156145b35750505050506145cb565b6145c282602001850186612ec4565b82955050505050505b90565b7f455243313135353a207472616e7366657220746f206e6f6e2d4552433131353560008201527f526563656976657220696d706c656d656e746572000000000000000000000000602082015250565b600061462a603483613041565b9150614635826145ce565b604082019050919050565b600060208201905081810360008301526146598161461d565b9050919050565b7f455243313135353a204552433131353552656365697665722072656a6563746560008201527f6420746f6b656e73000000000000000000000000000000000000000000000000602082015250565b60006146bc602883613041565b91506146c782614660565b604082019050919050565b600060208201905081810360008301526146eb816146af565b9050919050565b7f455243313135353a207472616e7366657220746f20746865207a65726f20616460008201527f6472657373000000000000000000000000000000000000000000000000000000602082015250565b600061474e602583613041565b9150614759826146f2565b604082019050919050565b6000602082019050818103600083015261477d81614741565b9050919050565b7f455243313135353a20696e73756666696369656e742062616c616e636520666f60008201527f72207472616e7366657200000000000000000000000000000000000000000000602082015250565b60006147e0602a83613041565b91506147eb82614784565b604082019050919050565b6000602082019050818103600083015261480f816147d3565b9050919050565b600060a08201905061482b6000830188613712565b6148386020830187613712565b818103604083015261484a8186613569565b9050818103606083015261485e8185613569565b90508181036080830152614872818461443a565b9050969550505050505056fea264697066735822122073b3889fc71039bbff2c3f8fe95c77b4e30a395f38c8e9a1d423ffd0ef4fab5b64736f6c634300081000330000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000005968747470733a2f2f706978656c6d6f6e2d747261696e696e672d726577617264732e73332d616363656c65726174652e616d617a6f6e6177732e636f6d2f747261696e65722d676561722f746573742d6d657461646174612f00000000000000

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106101a85760003560e01c8063715018a6116100f9578063ca41920211610097578063dee4d86011610071578063dee4d860146104cc578063e985e9c5146104e8578063f242432a14610518578063f2fde38b14610534576101a8565b8063ca41920214610478578063d1aa245214610494578063d81d0a15146104b0576101a8565b80638da5cb5b116100d35780638da5cb5b146103db578063a22cb465146103f9578063b7d3151214610415578063c3a360a614610448576101a8565b8063715018a6146103855780637420aa361461038f5780638c7a63ae146103ab576101a8565b8063279882601161016657806352a5ec861161014057806352a5ec86146102fb578063626be5671461032b5780636ac437b0146103495780636c0360eb14610367576101a8565b806327988260146102935780632eb2c2d6146102af5780634e1273f4146102cb576101a8565b8062fdd58e146101ad57806301ffc9a7146101dd57806302fe53051461020d5780630e89341c1461022957806312c45f6414610259578063156e29f614610277575b600080fd5b6101c760048036038101906101c29190612d55565b610550565b6040516101d49190612da4565b60405180910390f35b6101f760048036038101906101f29190612e17565b610618565b6040516102049190612e5f565b60405180910390f35b61022760048036038101906102229190612fc0565b6106fa565b005b610243600480360381019061023e9190613009565b610715565b60405161025091906130b5565b60405180910390f35b610261610775565b60405161026e9190612da4565b60405180910390f35b610291600480360381019061028c91906130d7565b61077b565b005b6102ad60048036038101906102a89190613156565b610a3c565b005b6102c960048036038101906102c491906132ff565b610b07565b005b6102e560048036038101906102e09190613491565b610b9e565b6040516102f291906135c7565b60405180910390f35b610315600480360381019061031091906135e9565b610cb7565b6040516103229190612e5f565b60405180910390f35b610333610cd7565b6040516103409190612da4565b60405180910390f35b610351610cdd565b60405161035e9190612e5f565b60405180910390f35b61036f610cf0565b60405161037c91906130b5565b60405180910390f35b61038d610d7e565b005b6103a960048036038101906103a49190613616565b610d92565b005b6103c560048036038101906103c09190613009565b610db7565b6040516103d291906136f0565b60405180910390f35b6103e3610edd565b6040516103f09190613721565b60405180910390f35b610413600480360381019061040e9190613156565b610f07565b005b61042f600480360381019061042a9190613009565b610f1d565b60405161043f949392919061373c565b60405180910390f35b610462600480360381019061045d91906135e9565b610fd5565b60405161046f9190612e5f565b60405180910390f35b610492600480360381019061048d9190613788565b610ff5565b005b6104ae60048036038101906104a99190613156565b6110b5565b005b6104ca60048036038101906104c591906137c8565b611180565b005b6104e660048036038101906104e19190613853565b61155b565b005b61050260048036038101906104fd91906138af565b6115f9565b60405161050f9190612e5f565b60405180910390f35b610532600480360381019061052d91906138ef565b61168d565b005b61054e600480360381019061054991906135e9565b611724565b005b60008073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036105c0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016105b7906139f8565b60405180910390fd5b60008083815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b60007fd9b67a26000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806106e357507f0e89341c000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806106f357506106f2826117a7565b5b9050919050565b610702611811565b80600b90816107119190613c24565b5050565b60606000600b805461072690613a47565b905011610742576040518060200160405280600081525061076e565b600b61074d8361188f565b60405160200161075e929190613db5565b6040516020818303038152906040525b9050919050565b60095481565b61078361195d565b600560003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16610806576040517fd8d5894f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b82600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff160361086d576040517fe6c4247b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b82600181108061087e575060085481115b156108b5576040517f3f6cc76800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600a60009054906101000a900460ff166108fb576040517f73020e4b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008303610935576040517f5d54acad00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600760008581526020019081526020016000206001015483600760008781526020019081526020016000206002015461096e9190613e08565b11156109b157826040517f353e73620000000000000000000000000000000000000000000000000000000081526004016109a89190612da4565b60405180910390fd5b8260076000868152602001908152602001600020600201600082825401925050819055506109f0858585604051806020016040528060008152506119ac565b7f674a763f3d205c61d81987219aff6e0971cea15a30cb22d89a899ccf79eb87c833868686604051610a259493929190613e3c565b60405180910390a15050610a37611b5c565b505050565b610a44611811565b81600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610aab576040517fe6c4247b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b81600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550505050565b600660003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16610b8a576040517f1c1f9e2e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610b978585858585611b66565b5050505050565b60608151835114610be4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bdb90613ef3565b60405180910390fd5b6000835167ffffffffffffffff811115610c0157610c00612e95565b5b604051908082528060200260200182016040528015610c2f5781602001602082028036833780820191505090505b50905060005b8451811015610cac57610c7c858281518110610c5457610c53613f13565b5b6020026020010151858381518110610c6f57610c6e613f13565b5b6020026020010151610550565b828281518110610c8f57610c8e613f13565b5b60200260200101818152505080610ca590613f42565b9050610c35565b508091505092915050565b60056020528060005260406000206000915054906101000a900460ff1681565b60085481565b600a60009054906101000a900460ff1681565b600b8054610cfd90613a47565b80601f0160208091040260200160405190810160405280929190818152602001828054610d2990613a47565b8015610d765780601f10610d4b57610100808354040283529160200191610d76565b820191906000526020600020905b815481529060010190602001808311610d5957829003601f168201915b505050505081565b610d86611811565b610d906000611c07565b565b610d9a611811565b80600a60006101000a81548160ff02191690831515021790555050565b610dbf612c85565b816001811080610dd0575060085481115b15610e07576040517f3f6cc76800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60076000848152602001908152602001600020604051806080016040529081600082018054610e3590613a47565b80601f0160208091040260200160405190810160405280929190818152602001828054610e6190613a47565b8015610eae5780601f10610e8357610100808354040283529160200191610eae565b820191906000526020600020905b815481529060010190602001808311610e9157829003601f168201915b505050505081526020016001820154815260200160028201548152602001600382015481525050915050919050565b6000600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b610f19610f12611ccd565b8383611cd5565b5050565b6007602052806000526040600020600091509050806000018054610f4090613a47565b80601f0160208091040260200160405190810160405280929190818152602001828054610f6c90613a47565b8015610fb95780601f10610f8e57610100808354040283529160200191610fb9565b820191906000526020600020905b815481529060010190602001808311610f9c57829003601f168201915b5050505050908060010154908060020154908060030154905084565b60066020528060005260406000206000915054906101000a900460ff1681565b610ffd611811565b81600181108061100e575060085481115b15611045576040517f3f6cc76800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8160076000858152602001908152602001600020600201541115611095576040517fb4fa3fb300000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b816007600085815260200190815260200160002060010181905550505050565b6110bd611811565b81600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611124576040517fe6c4247b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b81600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550505050565b61118861195d565b600560003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1661120b576040517fd8d5894f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b82600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611272576040517fe6c4247b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600a60009054906101000a900460ff166112b8576040517f73020e4b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b82518251146112f3576040517fb4fa3fb300000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60018251101561132f576040517fb4fa3fb300000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60005b83518110156114f45760008482815181106113505761134f613f13565b5b60200260200101519050600181108061136a575060085481115b156113a1576040517f3f6cc76800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008483815181106113b6576113b5613f13565b5b6020026020010151036113f5576040517f5d54acad00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600760008281526020019081526020016000206001015484838151811061141f5761141e613f13565b5b602002602001015160076000848152602001908152602001600020600201546114489190613e08565b11156114a55783828151811061146157611460613f13565b5b60200260200101516040517f353e736200000000000000000000000000000000000000000000000000000000815260040161149c9190612da4565b60405180910390fd5b8382815181106114b8576114b7613f13565b5b60200260200101516007600083815260200190815260200160002060020160008282540192505081905550506114ed81611e41565b9050611332565b5061151084848460405180602001604052806000815250611e4e565b7f9ef1bbf9f5ce659c666652a9a961b87e07164904a195e363df3a546439ac3fdc338585856040516115459493929190613f8a565b60405180910390a150611556611b5c565b505050565b611563611811565b8060096000828254019250508190555060086000815480929190600101919050555060405180608001604052808381526020018281526020016000815260200160085481525060076000600854815260200190815260200160002060008201518160000190816115d39190613c24565b506020820151816001015560408201518160020155606082015181600301559050505050565b6000600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b600660003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16611710576040517f1c1f9e2e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61171d858585858561207a565b5050505050565b61172c611811565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff160361179b576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117929061404f565b60405180910390fd5b6117a481611c07565b50565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b611819611ccd565b73ffffffffffffffffffffffffffffffffffffffff16611837610edd565b73ffffffffffffffffffffffffffffffffffffffff161461188d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611884906140bb565b60405180910390fd5b565b60606000600161189e8461211b565b01905060008167ffffffffffffffff8111156118bd576118bc612e95565b5b6040519080825280601f01601f1916602001820160405280156118ef5781602001600182028036833780820191505090505b509050600082602001820190505b600115611952578080600190039150507f3031323334353637383961626364656600000000000000000000000000000000600a86061a8153600a8581611946576119456140db565b5b049450600085036118fd575b819350505050919050565b6002600454036119a2576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161199990614156565b60405180910390fd5b6002600481905550565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1603611a1b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a12906141e8565b60405180910390fd5b6000611a25611ccd565b90506000611a328561226e565b90506000611a3f8561226e565b9050611a50836000898585896122e8565b8460008088815260200190815260200160002060008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611aaf9190613e08565b925050819055508673ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f628989604051611b2d929190614208565b60405180910390a4611b44836000898585896122f0565b611b53836000898989896122f8565b50505050505050565b6001600481905550565b611b6e611ccd565b73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff161480611bb45750611bb385611bae611ccd565b6115f9565b5b611bf3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611bea906142a3565b60405180910390fd5b611c0085858585856124cf565b5050505050565b6000600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600033905090565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603611d43576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d3a90614335565b60405180910390fd5b80600160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051611e349190612e5f565b60405180910390a3505050565b6000600182019050919050565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1603611ebd576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611eb4906141e8565b60405180910390fd5b8151835114611f01576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ef8906143c7565b60405180910390fd5b6000611f0b611ccd565b9050611f1c816000878787876122e8565b60005b8451811015611fd557838181518110611f3b57611f3a613f13565b5b6020026020010151600080878481518110611f5957611f58613f13565b5b6020026020010151815260200190815260200160002060008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611fbb9190613e08565b925050819055508080611fcd90613f42565b915050611f1f565b508473ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb878760405161204d9291906143e7565b60405180910390a4612064816000878787876122f0565b612073816000878787876127f0565b5050505050565b612082611ccd565b73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1614806120c857506120c7856120c2611ccd565b6115f9565b5b612107576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120fe906142a3565b60405180910390fd5b61211485858585856129c7565b5050505050565b600080600090507a184f03e93ff9f4daa797ed6e38ed64bf6a1f0100000000000000008310612179577a184f03e93ff9f4daa797ed6e38ed64bf6a1f010000000000000000838161216f5761216e6140db565b5b0492506040810190505b6d04ee2d6d415b85acef810000000083106121b6576d04ee2d6d415b85acef810000000083816121ac576121ab6140db565b5b0492506020810190505b662386f26fc1000083106121e557662386f26fc1000083816121db576121da6140db565b5b0492506010810190505b6305f5e100831061220e576305f5e1008381612204576122036140db565b5b0492506008810190505b6127108310612233576127108381612229576122286140db565b5b0492506004810190505b60648310612256576064838161224c5761224b6140db565b5b0492506002810190505b600a8310612265576001810190505b80915050919050565b60606000600167ffffffffffffffff81111561228d5761228c612e95565b5b6040519080825280602002602001820160405280156122bb5781602001602082028036833780820191505090505b50905082816000815181106122d3576122d2613f13565b5b60200260200101818152505080915050919050565b505050505050565b505050505050565b6123178473ffffffffffffffffffffffffffffffffffffffff16612c62565b156124c7578373ffffffffffffffffffffffffffffffffffffffff1663f23a6e6187878686866040518663ffffffff1660e01b815260040161235d959493929190614473565b6020604051808303816000875af192505050801561239957506040513d601f19601f8201168201806040525081019061239691906144e2565b60015b61243e576123a561451c565b806308c379a00361240157506123b961453e565b806123c45750612403565b806040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123f891906130b5565b60405180910390fd5b505b6040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161243590614640565b60405180910390fd5b63f23a6e6160e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916146124c5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124bc906146d2565b60405180910390fd5b505b505050505050565b8151835114612513576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161250a906143c7565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1603612582576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161257990614764565b60405180910390fd5b600061258c611ccd565b905061259c8187878787876122e8565b60005b845181101561274d5760008582815181106125bd576125bc613f13565b5b6020026020010151905060008583815181106125dc576125db613f13565b5b60200260200101519050600080600084815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205490508181101561267d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612674906147f6565b60405180910390fd5b81810360008085815260200190815260200160002060008c73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508160008085815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546127329190613e08565b925050819055505050508061274690613f42565b905061259f565b508473ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb87876040516127c49291906143e7565b60405180910390a46127da8187878787876122f0565b6127e88187878787876127f0565b505050505050565b61280f8473ffffffffffffffffffffffffffffffffffffffff16612c62565b156129bf578373ffffffffffffffffffffffffffffffffffffffff1663bc197c8187878686866040518663ffffffff1660e01b8152600401612855959493929190614816565b6020604051808303816000875af192505050801561289157506040513d601f19601f8201168201806040525081019061288e91906144e2565b60015b6129365761289d61451c565b806308c379a0036128f957506128b161453e565b806128bc57506128fb565b806040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016128f091906130b5565b60405180910390fd5b505b6040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161292d90614640565b60405180910390fd5b63bc197c8160e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916146129bd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016129b4906146d2565b60405180910390fd5b505b505050505050565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1603612a36576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a2d90614764565b60405180910390fd5b6000612a40611ccd565b90506000612a4d8561226e565b90506000612a5a8561226e565b9050612a6a8389898585896122e8565b600080600088815260200190815260200160002060008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905085811015612b01576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612af8906147f6565b60405180910390fd5b85810360008089815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508560008089815260200190815260200160002060008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612bb69190613e08565b925050819055508773ffffffffffffffffffffffffffffffffffffffff168973ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f628a8a604051612c33929190614208565b60405180910390a4612c49848a8a86868a6122f0565b612c57848a8a8a8a8a6122f8565b505050505050505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b6040518060800160405280606081526020016000815260200160008152602001600081525090565b6000604051905090565b600080fd5b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000612cec82612cc1565b9050919050565b612cfc81612ce1565b8114612d0757600080fd5b50565b600081359050612d1981612cf3565b92915050565b6000819050919050565b612d3281612d1f565b8114612d3d57600080fd5b50565b600081359050612d4f81612d29565b92915050565b60008060408385031215612d6c57612d6b612cb7565b5b6000612d7a85828601612d0a565b9250506020612d8b85828601612d40565b9150509250929050565b612d9e81612d1f565b82525050565b6000602082019050612db96000830184612d95565b92915050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b612df481612dbf565b8114612dff57600080fd5b50565b600081359050612e1181612deb565b92915050565b600060208284031215612e2d57612e2c612cb7565b5b6000612e3b84828501612e02565b91505092915050565b60008115159050919050565b612e5981612e44565b82525050565b6000602082019050612e746000830184612e50565b92915050565b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b612ecd82612e84565b810181811067ffffffffffffffff82111715612eec57612eeb612e95565b5b80604052505050565b6000612eff612cad565b9050612f0b8282612ec4565b919050565b600067ffffffffffffffff821115612f2b57612f2a612e95565b5b612f3482612e84565b9050602081019050919050565b82818337600083830152505050565b6000612f63612f5e84612f10565b612ef5565b905082815260208101848484011115612f7f57612f7e612e7f565b5b612f8a848285612f41565b509392505050565b600082601f830112612fa757612fa6612e7a565b5b8135612fb7848260208601612f50565b91505092915050565b600060208284031215612fd657612fd5612cb7565b5b600082013567ffffffffffffffff811115612ff457612ff3612cbc565b5b61300084828501612f92565b91505092915050565b60006020828403121561301f5761301e612cb7565b5b600061302d84828501612d40565b91505092915050565b600081519050919050565b600082825260208201905092915050565b60005b83811015613070578082015181840152602081019050613055565b60008484015250505050565b600061308782613036565b6130918185613041565b93506130a1818560208601613052565b6130aa81612e84565b840191505092915050565b600060208201905081810360008301526130cf818461307c565b905092915050565b6000806000606084860312156130f0576130ef612cb7565b5b60006130fe86828701612d0a565b935050602061310f86828701612d40565b925050604061312086828701612d40565b9150509250925092565b61313381612e44565b811461313e57600080fd5b50565b6000813590506131508161312a565b92915050565b6000806040838503121561316d5761316c612cb7565b5b600061317b85828601612d0a565b925050602061318c85828601613141565b9150509250929050565b600067ffffffffffffffff8211156131b1576131b0612e95565b5b602082029050602081019050919050565b600080fd5b60006131da6131d584613196565b612ef5565b905080838252602082019050602084028301858111156131fd576131fc6131c2565b5b835b8181101561322657806132128882612d40565b8452602084019350506020810190506131ff565b5050509392505050565b600082601f83011261324557613244612e7a565b5b81356132558482602086016131c7565b91505092915050565b600067ffffffffffffffff82111561327957613278612e95565b5b61328282612e84565b9050602081019050919050565b60006132a261329d8461325e565b612ef5565b9050828152602081018484840111156132be576132bd612e7f565b5b6132c9848285612f41565b509392505050565b600082601f8301126132e6576132e5612e7a565b5b81356132f684826020860161328f565b91505092915050565b600080600080600060a0868803121561331b5761331a612cb7565b5b600061332988828901612d0a565b955050602061333a88828901612d0a565b945050604086013567ffffffffffffffff81111561335b5761335a612cbc565b5b61336788828901613230565b935050606086013567ffffffffffffffff81111561338857613387612cbc565b5b61339488828901613230565b925050608086013567ffffffffffffffff8111156133b5576133b4612cbc565b5b6133c1888289016132d1565b9150509295509295909350565b600067ffffffffffffffff8211156133e9576133e8612e95565b5b602082029050602081019050919050565b600061340d613408846133ce565b612ef5565b905080838252602082019050602084028301858111156134305761342f6131c2565b5b835b8181101561345957806134458882612d0a565b845260208401935050602081019050613432565b5050509392505050565b600082601f83011261347857613477612e7a565b5b81356134888482602086016133fa565b91505092915050565b600080604083850312156134a8576134a7612cb7565b5b600083013567ffffffffffffffff8111156134c6576134c5612cbc565b5b6134d285828601613463565b925050602083013567ffffffffffffffff8111156134f3576134f2612cbc565b5b6134ff85828601613230565b9150509250929050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b61353e81612d1f565b82525050565b60006135508383613535565b60208301905092915050565b6000602082019050919050565b600061357482613509565b61357e8185613514565b935061358983613525565b8060005b838110156135ba5781516135a18882613544565b97506135ac8361355c565b92505060018101905061358d565b5085935050505092915050565b600060208201905081810360008301526135e18184613569565b905092915050565b6000602082840312156135ff576135fe612cb7565b5b600061360d84828501612d0a565b91505092915050565b60006020828403121561362c5761362b612cb7565b5b600061363a84828501613141565b91505092915050565b600082825260208201905092915050565b600061365f82613036565b6136698185613643565b9350613679818560208601613052565b61368281612e84565b840191505092915050565b600060808301600083015184820360008601526136aa8282613654565b91505060208301516136bf6020860182613535565b5060408301516136d26040860182613535565b5060608301516136e56060860182613535565b508091505092915050565b6000602082019050818103600083015261370a818461368d565b905092915050565b61371b81612ce1565b82525050565b60006020820190506137366000830184613712565b92915050565b60006080820190508181036000830152613756818761307c565b90506137656020830186612d95565b6137726040830185612d95565b61377f6060830184612d95565b95945050505050565b6000806040838503121561379f5761379e612cb7565b5b60006137ad85828601612d40565b92505060206137be85828601612d40565b9150509250929050565b6000806000606084860312156137e1576137e0612cb7565b5b60006137ef86828701612d0a565b935050602084013567ffffffffffffffff8111156138105761380f612cbc565b5b61381c86828701613230565b925050604084013567ffffffffffffffff81111561383d5761383c612cbc565b5b61384986828701613230565b9150509250925092565b6000806040838503121561386a57613869612cb7565b5b600083013567ffffffffffffffff81111561388857613887612cbc565b5b61389485828601612f92565b92505060206138a585828601612d40565b9150509250929050565b600080604083850312156138c6576138c5612cb7565b5b60006138d485828601612d0a565b92505060206138e585828601612d0a565b9150509250929050565b600080600080600060a0868803121561390b5761390a612cb7565b5b600061391988828901612d0a565b955050602061392a88828901612d0a565b945050604061393b88828901612d40565b935050606061394c88828901612d40565b925050608086013567ffffffffffffffff81111561396d5761396c612cbc565b5b613979888289016132d1565b9150509295509295909350565b7f455243313135353a2061646472657373207a65726f206973206e6f742061207660008201527f616c6964206f776e657200000000000000000000000000000000000000000000602082015250565b60006139e2602a83613041565b91506139ed82613986565b604082019050919050565b60006020820190508181036000830152613a11816139d5565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680613a5f57607f821691505b602082108103613a7257613a71613a18565b5b50919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b600060088302613ada7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82613a9d565b613ae48683613a9d565b95508019841693508086168417925050509392505050565b6000819050919050565b6000613b21613b1c613b1784612d1f565b613afc565b612d1f565b9050919050565b6000819050919050565b613b3b83613b06565b613b4f613b4782613b28565b848454613aaa565b825550505050565b600090565b613b64613b57565b613b6f818484613b32565b505050565b5b81811015613b9357613b88600082613b5c565b600181019050613b75565b5050565b601f821115613bd857613ba981613a78565b613bb284613a8d565b81016020851015613bc1578190505b613bd5613bcd85613a8d565b830182613b74565b50505b505050565b600082821c905092915050565b6000613bfb60001984600802613bdd565b1980831691505092915050565b6000613c148383613bea565b9150826002028217905092915050565b613c2d82613036565b67ffffffffffffffff811115613c4657613c45612e95565b5b613c508254613a47565b613c5b828285613b97565b600060209050601f831160018114613c8e5760008415613c7c578287015190505b613c868582613c08565b865550613cee565b601f198416613c9c86613a78565b60005b82811015613cc457848901518255600182019150602085019450602081019050613c9f565b86831015613ce15784890151613cdd601f891682613bea565b8355505b6001600288020188555050505b505050505050565b600081905092915050565b60008154613d0e81613a47565b613d188186613cf6565b94506001821660008114613d335760018114613d4857613d7b565b60ff1983168652811515820286019350613d7b565b613d5185613a78565b60005b83811015613d7357815481890152600182019150602081019050613d54565b838801955050505b50505092915050565b6000613d8f82613036565b613d998185613cf6565b9350613da9818560208601613052565b80840191505092915050565b6000613dc18285613d01565b9150613dcd8284613d84565b91508190509392505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000613e1382612d1f565b9150613e1e83612d1f565b9250828201905080821115613e3657613e35613dd9565b5b92915050565b6000608082019050613e516000830187613712565b613e5e6020830186613712565b613e6b6040830185612d95565b613e786060830184612d95565b95945050505050565b7f455243313135353a206163636f756e747320616e6420696473206c656e67746860008201527f206d69736d617463680000000000000000000000000000000000000000000000602082015250565b6000613edd602983613041565b9150613ee882613e81565b604082019050919050565b60006020820190508181036000830152613f0c81613ed0565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6000613f4d82612d1f565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203613f7f57613f7e613dd9565b5b600182019050919050565b6000608082019050613f9f6000830187613712565b613fac6020830186613712565b8181036040830152613fbe8185613569565b90508181036060830152613fd28184613569565b905095945050505050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000614039602683613041565b915061404482613fdd565b604082019050919050565b600060208201905081810360008301526140688161402c565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b60006140a5602083613041565b91506140b08261406f565b602082019050919050565b600060208201905081810360008301526140d481614098565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b6000614140601f83613041565b915061414b8261410a565b602082019050919050565b6000602082019050818103600083015261416f81614133565b9050919050565b7f455243313135353a206d696e7420746f20746865207a65726f2061646472657360008201527f7300000000000000000000000000000000000000000000000000000000000000602082015250565b60006141d2602183613041565b91506141dd82614176565b604082019050919050565b60006020820190508181036000830152614201816141c5565b9050919050565b600060408201905061421d6000830185612d95565b61422a6020830184612d95565b9392505050565b7f455243313135353a2063616c6c6572206973206e6f7420746f6b656e206f776e60008201527f6572206f7220617070726f766564000000000000000000000000000000000000602082015250565b600061428d602e83613041565b915061429882614231565b604082019050919050565b600060208201905081810360008301526142bc81614280565b9050919050565b7f455243313135353a2073657474696e6720617070726f76616c2073746174757360008201527f20666f722073656c660000000000000000000000000000000000000000000000602082015250565b600061431f602983613041565b915061432a826142c3565b604082019050919050565b6000602082019050818103600083015261434e81614312565b9050919050565b7f455243313135353a2069647320616e6420616d6f756e7473206c656e6774682060008201527f6d69736d61746368000000000000000000000000000000000000000000000000602082015250565b60006143b1602883613041565b91506143bc82614355565b604082019050919050565b600060208201905081810360008301526143e0816143a4565b9050919050565b600060408201905081810360008301526144018185613569565b905081810360208301526144158184613569565b90509392505050565b600081519050919050565b600082825260208201905092915050565b60006144458261441e565b61444f8185614429565b935061445f818560208601613052565b61446881612e84565b840191505092915050565b600060a0820190506144886000830188613712565b6144956020830187613712565b6144a26040830186612d95565b6144af6060830185612d95565b81810360808301526144c1818461443a565b90509695505050505050565b6000815190506144dc81612deb565b92915050565b6000602082840312156144f8576144f7612cb7565b5b6000614506848285016144cd565b91505092915050565b60008160e01c9050919050565b600060033d111561453b5760046000803e61453860005161450f565b90505b90565b600060443d106145cb57614550612cad565b60043d036004823e80513d602482011167ffffffffffffffff821117156145785750506145cb565b808201805167ffffffffffffffff81111561459657505050506145cb565b80602083010160043d0385018111156145b35750505050506145cb565b6145c282602001850186612ec4565b82955050505050505b90565b7f455243313135353a207472616e7366657220746f206e6f6e2d4552433131353560008201527f526563656976657220696d706c656d656e746572000000000000000000000000602082015250565b600061462a603483613041565b9150614635826145ce565b604082019050919050565b600060208201905081810360008301526146598161461d565b9050919050565b7f455243313135353a204552433131353552656365697665722072656a6563746560008201527f6420746f6b656e73000000000000000000000000000000000000000000000000602082015250565b60006146bc602883613041565b91506146c782614660565b604082019050919050565b600060208201905081810360008301526146eb816146af565b9050919050565b7f455243313135353a207472616e7366657220746f20746865207a65726f20616460008201527f6472657373000000000000000000000000000000000000000000000000000000602082015250565b600061474e602583613041565b9150614759826146f2565b604082019050919050565b6000602082019050818103600083015261477d81614741565b9050919050565b7f455243313135353a20696e73756666696369656e742062616c616e636520666f60008201527f72207472616e7366657200000000000000000000000000000000000000000000602082015250565b60006147e0602a83613041565b91506147eb82614784565b604082019050919050565b6000602082019050818103600083015261480f816147d3565b9050919050565b600060a08201905061482b6000830188613712565b6148386020830187613712565b818103604083015261484a8186613569565b9050818103606083015261485e8185613569565b90508181036080830152614872818461443a565b9050969550505050505056fea264697066735822122073b3889fc71039bbff2c3f8fe95c77b4e30a395f38c8e9a1d423ffd0ef4fab5b64736f6c63430008100033

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

0000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000005968747470733a2f2f706978656c6d6f6e2d747261696e696e672d726577617264732e73332d616363656c65726174652e616d617a6f6e6177732e636f6d2f747261696e65722d676561722f746573742d6d657461646174612f00000000000000

-----Decoded View---------------
Arg [0] : _baseURI (string): https://pixelmon-training-rewards.s3-accelerate.amazonaws.com/trainer-gear/test-metadata/

-----Encoded View---------------
5 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000020
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000059
Arg [2] : 68747470733a2f2f706978656c6d6f6e2d747261696e696e672d726577617264
Arg [3] : 732e73332d616363656c65726174652e616d617a6f6e6177732e636f6d2f7472
Arg [4] : 61696e65722d676561722f746573742d6d657461646174612f00000000000000


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.