ETH Price: $3,007.35 (-1.58%)
Gas: 3 Gwei

Token

Dougs Relish (DR)
 

Overview

Max Total Supply

1,160 DR

Holders

195

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A

Other Info

Filtered by Token Holder
mrboomboom.eth
0x0b6d56b0aebcba43052e7c172de9754338fd3dd1
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:
DougsRelish

Compiler Version
v0.8.13+commit.abaa5c0e

Optimization Enabled:
Yes with 200 runs

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

pragma solidity ^0.8.13;

import "@openzeppelin/contracts/token/ERC1155/extensions/ERC1155Supply.sol";
import "@openzeppelin/contracts/utils/Strings.sol";
import "@openzeppelin/contracts/token/ERC721/IERC721.sol";
import "@openzeppelin/contracts/token/ERC1155/IERC1155.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";

interface IHotDougs {
  function ownerOf(uint256 _tokenId_) external view returns (address);
}

interface IPartner {
  function ownerOf(uint256 _tokenId_) external view returns (address);
}

contract DougsRelish is ReentrancyGuard, ERC1155Supply {
  string public name;
  string public symbol;
  address public owner;
  uint256 public editionId;
  address public HotDougContractAddress = 0xA9074445881FFD9bd1096414149f0FEb8147B4a9;

  constructor() ERC1155("") {
    name = "Dougs Relish";
    symbol = "DR";
    owner = msg.sender;
  }

  modifier onlyOwner() {
    require(msg.sender == address(owner), "Unauthorized");
    _;
  }

  mapping(uint256 => editionData) public editionIdToData;

  struct editionData {
    string baseURI;
    string name;
    bool redeemOpen;
    bool publicOpen;
    uint256 maxEditionCount;
    uint256 publicPrice;
    uint256 maxPublicPerTx;
    address allowedProjectAddress;
    uint256 projectRedeemCount;
    uint256 projectRedeemLimit;
    // if the token has been redeemed, mark as true
    mapping(uint256 => bool) redeemedTokens;
    // if the token has been redeemed, mark as true
    mapping(uint256 => bool) redeemedPartnerTokens;
  }

  /// @notice allow the owner to add an edition

  function createNewEdition(
    string memory _name,
    string memory _baseURI,
    bool _redeemOpen,
    bool _publicOpen,
    uint256 _publicPrice,
    uint256 _maxPublicPerTx,
    uint256 _maxEditionCount,
    address _allowedProjectAddress,
    uint256 _projectRedeemLimit
  ) external onlyOwner {
    uint256 nextEdition = editionId + 1;
    editionIdToData[nextEdition].name = _name;
    editionIdToData[nextEdition].baseURI = _baseURI;
    editionIdToData[nextEdition].redeemOpen = _redeemOpen;
    editionIdToData[nextEdition].publicOpen = _publicOpen;
    editionIdToData[nextEdition].publicPrice = _publicPrice;
    editionIdToData[nextEdition].maxPublicPerTx = _maxPublicPerTx;
    editionIdToData[nextEdition].maxEditionCount = _maxEditionCount;
    editionIdToData[nextEdition].allowedProjectAddress = _allowedProjectAddress;
    editionIdToData[nextEdition].projectRedeemLimit = _projectRedeemLimit;
    editionIdToData[nextEdition].projectRedeemCount = 0;
    editionId = nextEdition;
  }

  // ==== GETTERS ====

  /// @notice returns the edition's redemption status (true if open)

  function getEditionRedeemStatus(uint256 _editionId) public view returns (bool) {
    return editionIdToData[_editionId].redeemOpen;
  }

  /// @notice returns the edition's public mint status (true if open)

  function getPublicMintStatus(uint256 _editionId) public view returns (bool) {
    return editionIdToData[_editionId].publicOpen;
  }

  /// @notice returns the edition's name

  function getEditionName(uint256 _editionId) public view returns (string memory) {
    return editionIdToData[_editionId].name;
  }

  /// @notice returns the edition's base URI

  function getEditionBaseURI(uint256 _editionId) public view returns (string memory) {
    return editionIdToData[_editionId].baseURI;
  }

  /// @notice returns the edition's max count

  function getEditionMaxCount(uint256 _editionId) public view returns (uint256) {
    return editionIdToData[_editionId].maxEditionCount;
  }

  /// @notice returns the edition's public price

  function getEditionPublicPrice(uint256 _editionId) public view returns (uint256) {
    return editionIdToData[_editionId].publicPrice;
  }

  /// @notice returns the edition's max public per tx

  function getEditionMaxPerTx(uint256 _editionId) public view returns (uint256) {
    return editionIdToData[_editionId].maxPublicPerTx;
  }

  /// @notice returns the edition's allowed project address

  function getAllowedProjectAddress(uint256 _editionId) public view returns (address) {
    return editionIdToData[_editionId].allowedProjectAddress;
  }

  /// @notice returns the total number of Relish tokens redeemable by owners of the partner NFT

  function getProjectRedeemLimit(uint256 _editionId) public view returns (uint256) {
    return editionIdToData[_editionId].projectRedeemLimit;
  }

  /// @notice checks that the sender owns the required ERC-721 token

  function isOwnerOfPartnerNFT(uint256 _editionId, uint256 _tokenId) internal view returns (bool) {
    address _tokenAddress = editionIdToData[_editionId].allowedProjectAddress;
    return IPartner(_tokenAddress).ownerOf(_tokenId) == msg.sender;
  }

  /// @notice checks that the token has not been used to redeem already

  function isDougTokenRedeemable(uint256 _editionId, uint256 _tokenIdToRedeem)
    public
    view
    returns (bool redeemable)
  {
    return !editionIdToData[_editionId].redeemedTokens[_tokenIdToRedeem];
  }

  /// @notice checks that the token has not been used to redeem already

  function isPartnerAssetRedeemable(uint256 _editionId, uint256 _tokenId)
    public
    view
    returns (bool ownership)
  {
    return !editionIdToData[_editionId].redeemedPartnerTokens[_tokenId];
  }

  /// @notice used for Doug holder redemptions

  function redeemForEdition(uint256 _editionId, uint256[] calldata dougTokenIds)
    external
    payable
    nonReentrant
  {
    require(editionIdToData[_editionId].redeemOpen == true, "Redemption closed");

    uint256 dougTokenCount = dougTokenIds.length;
    uint256 redeemableCount;

    unchecked {
      for (uint256 i = 0; i < dougTokenCount; ++i) {
        uint256 _tokenIdToRedeem = dougTokenIds[i];

        if (
          IHotDougs(HotDougContractAddress).ownerOf(_tokenIdToRedeem) == msg.sender &&
          isDougTokenRedeemable(_editionId, _tokenIdToRedeem)
        ) {
          redeemableCount++;
        }
      }

      require(redeemableCount > 0, "No eligible NFTs");

      require(
        redeemableCount + editionTotalSupply(_editionId) <=
          editionIdToData[_editionId].maxEditionCount,
        "Sold out"
      );

      for (uint256 j = 0; j < dougTokenCount; ++j) {
        editionIdToData[_editionId].redeemedTokens[dougTokenIds[j]] = true;
      }
    }
    mintManyEditions(_editionId, redeemableCount);
  }

  /// @notice used for a partner allotment
  /// @dev only ERC-721 tokens are supported

  function partnerRedeemEdition(uint256 _editionId, uint256[] calldata partnerTokenIds) external {
    require(editionIdToData[_editionId].redeemOpen == true, "Redemption closed");

    uint256 remainingClaims = editionIdToData[_editionId].projectRedeemLimit -
      editionIdToData[_editionId].projectRedeemCount;

    require(remainingClaims > 0, "No claims available");
    
    uint256 partnerTokenCount = partnerTokenIds.length;

    uint256 redeemableCount;

    unchecked {
      for (uint256 i = 0; i < partnerTokenCount; ++i) {
        uint256 _tokenIdToRedeem = partnerTokenIds[i];

        if (
          isOwnerOfPartnerNFT(_editionId, _tokenIdToRedeem) &&
          isPartnerAssetRedeemable(_editionId, _tokenIdToRedeem)
        ) {
          redeemableCount++;
        }
      }

      require(redeemableCount > 0, "No eligible Partner NFTs");

      require(redeemableCount <= remainingClaims, "Not enough claims available");

      require(
        redeemableCount + editionTotalSupply(_editionId) <=
          editionIdToData[_editionId].maxEditionCount,
        "Sold out"
      );

      for (uint256 j = 0; j < redeemableCount; ++j) {
        editionIdToData[_editionId].redeemedPartnerTokens[partnerTokenIds[j]] = true;
      }
    }

    editionIdToData[_editionId].projectRedeemCount += redeemableCount;

    mintManyEditions(_editionId, redeemableCount);
  }

  /// @notice allow anyone to mint a Dougs Relish

  function mintEditionsPublic(uint256 _editionId, uint256 _editionsToMint)
    external
    payable
    nonReentrant
  {
    require(editionIdToData[_editionId].publicOpen == true, "Public not available");

    require(
      _editionsToMint <=
        editionIdToData[_editionId].maxEditionCount - editionTotalSupply(_editionId),
      "Sold out"
    );

    require(
      _editionsToMint <= editionIdToData[_editionId].maxPublicPerTx,
      "Too many mints requested"
    );

    require(
      msg.value >= editionIdToData[_editionId].publicPrice * _editionsToMint,
      "Not enough ETH"
    );

    mintManyEditions(_editionId, _editionsToMint);
  }

  /// @notice allows the contract owner to mint Dougs Relish NFTs

  function ownerMintEditions(uint256 _editionId, uint256 _editionsToMint) external onlyOwner {
    require(
      _editionsToMint <=
        editionIdToData[_editionId].maxEditionCount - editionTotalSupply(_editionId),
      "Sold out"
    );

    mintManyEditions(_editionId, _editionsToMint);
  }

  /// @notice mints many ERC-1155 tokens to the sender
  /// @dev only mints CURRENT editionId

  function mintManyEditions(uint256 _editionId, uint256 _editionsToMint) internal {
    _mint(msg.sender, _editionId, _editionsToMint, abi.encode(editionIdToData[editionId].name));
  }

  /// @notice returns token uri

  function uri(uint256 _editionId) public view override returns (string memory) {
    string memory baseURI = editionIdToData[_editionId].baseURI;

    require(bytes(baseURI).length > 0, "Invalid Edition");

    return
      bytes(baseURI).length > 0
        ? string(abi.encodePacked(baseURI, "/", Strings.toString(_editionId), ".json"))
        : baseURI;
  }

  // ==== SETTERS ====

  /// @notice sets HotDoug contract address

  function setHotDougContractAddress(address _contractAddress) external onlyOwner {
    HotDougContractAddress = _contractAddress;
  }

  /// @notice sets an edition's base URI

  function setEditionBaseURI(uint256 _editionId, string calldata _baseURI) external onlyOwner {
    editionIdToData[_editionId].baseURI = _baseURI;
  }

  /// @notice sets an edition's name

  function setEditionName(uint256 _editionId, string calldata _name) external onlyOwner {
    editionIdToData[_editionId].name = _name;
  }

  /// @notice sets an edition's redemption status

  function setEditionRedeemStatus(uint256 _editionId, bool _redeemOpen) external onlyOwner {
    editionIdToData[_editionId].redeemOpen = _redeemOpen;
  }

  /// @notice sets an edition's public status

  function setEditionPublicStatus(uint256 _editionId, bool _publicOpen) external onlyOwner {
    editionIdToData[_editionId].publicOpen = _publicOpen;
  }

  /// @notice sets an edition's public price

  function setEditionPublicPrice(uint256 _editionId, uint256 _publicPrice) external onlyOwner {
    editionIdToData[_editionId].publicPrice = _publicPrice;
  }

  /// @notice sets an edition's max count

  function setEditionMaxCount(uint256 _editionId, uint256 _maxEditionCount) external onlyOwner {
    editionIdToData[_editionId].maxEditionCount = _maxEditionCount;
  }

  /// @notice sets an edition's max public per tx

  function setEditionMaxPerTx(uint256 _editionId, uint256 _maxPublicPerTx) external onlyOwner {
    editionIdToData[_editionId].maxPublicPerTx = _maxPublicPerTx;
  }

  /// @notice sets an edition's partner project contract address

  function setEditionAllowedProjectAddress(uint256 _editionId, address _newContractAddress)
    public
    onlyOwner
  {
    editionIdToData[_editionId].allowedProjectAddress = _newContractAddress;
  }

  /// @notice set limit for a partner project redemption

  function setEditionProjectRedeemLimit(uint256 _editionId, uint256 _projectRedeemLimit)
    public
    onlyOwner
  {
    editionIdToData[_editionId].projectRedeemLimit = _projectRedeemLimit;
  }

  /// @notice allow the owner to remove an edition

  function deleteEdition(uint256 _editionId) public onlyOwner {
    delete editionIdToData[_editionId];
  }

  /// @notice transfers ownership of the contract to a new address

  function transferOwnership(address _newOwner) public onlyOwner {
    owner = _newOwner;
  }

  /// @notice withdraws contract ETH balance to owner address

  function withdrawBalance() external {
    (bool sent, ) = owner.call{ value: address(this).balance }("");
    if (!sent) revert("Could not withdraw balance!");
  }

  /// @notice returns the edition's current toal supply

  function editionTotalSupply(uint256 _editionId)
    public
    view
    returns (uint256 _editionTotalSupply)
  {
    return totalSupply(_editionId);
  }

  /// @notice Allows receiving ETH

  receive() external payable {}
}

File 2 of 13 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (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() {
        // On the first call to nonReentrant, _notEntered will be true
        require(_status != _ENTERED, "ReentrancyGuard: reentrant call");

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

        _;

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

/**
 * @dev String operations.
 */
library Strings {
    bytes16 private constant _HEX_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) {
        // Inspired by OraclizeAPI's implementation - MIT licence
        // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol

        if (value == 0) {
            return "0";
        }
        uint256 temp = value;
        uint256 digits;
        while (temp != 0) {
            digits++;
            temp /= 10;
        }
        bytes memory buffer = new bytes(digits);
        while (value != 0) {
            digits -= 1;
            buffer[digits] = bytes1(uint8(48 + uint256(value % 10)));
            value /= 10;
        }
        return string(buffer);
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.
     */
    function toHexString(uint256 value) internal pure returns (string memory) {
        if (value == 0) {
            return "0x00";
        }
        uint256 temp = value;
        uint256 length = 0;
        while (temp != 0) {
            length++;
            temp >>= 8;
        }
        return toHexString(value, length);
    }

    /**
     * @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] = _HEX_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 6 of 13 : ERC1155Supply.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC1155/extensions/ERC1155Supply.sol)

pragma solidity ^0.8.0;

import "../ERC1155.sol";

/**
 * @dev Extension of ERC1155 that adds tracking of total supply per id.
 *
 * Useful for scenarios where Fungible and Non-fungible tokens have to be
 * clearly identified. Note: While a totalSupply of 1 might mean the
 * corresponding is an NFT, there is no guarantees that no other token with the
 * same id are not going to be minted.
 */
abstract contract ERC1155Supply is ERC1155 {
    mapping(uint256 => uint256) private _totalSupply;

    /**
     * @dev Total amount of tokens in with a given id.
     */
    function totalSupply(uint256 id) public view virtual returns (uint256) {
        return _totalSupply[id];
    }

    /**
     * @dev Indicates whether any token exist with a given id, or not.
     */
    function exists(uint256 id) public view virtual returns (bool) {
        return ERC1155Supply.totalSupply(id) > 0;
    }

    /**
     * @dev See {ERC1155-_beforeTokenTransfer}.
     */
    function _beforeTokenTransfer(
        address operator,
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) internal virtual override {
        super._beforeTokenTransfer(operator, from, to, ids, amounts, data);

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

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

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

pragma solidity ^0.8.0;

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

File 8 of 13 : ERC1155.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.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 nor approved"
        );
        _safeTransferFrom(from, to, id, amount, data);
    }

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

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

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

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

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

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

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

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

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

        address operator = _msgSender();

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

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

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

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

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

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

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

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

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

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

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

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

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

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_mint}.
     *
     * 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 9 of 13 : ERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol)

pragma solidity ^0.8.0;

import "./IERC165.sol";

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

File 10 of 13 : Context.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)

pragma solidity ^0.8.0;

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

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

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

pragma solidity ^0.8.1;

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

        return account.code.length > 0;
    }

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

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

    /**
     * @dev Performs a Solidity function call using a low level `call`. A
     * plain `call` is an unsafe replacement for a function call: use this
     * function instead.
     *
     * If `target` reverts with a revert reason, it is bubbled up by this
     * function (like regular Solidity function calls).
     *
     * Returns the raw returned data. To convert to the expected return value,
     * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
     *
     * Requirements:
     *
     * - `target` must be a contract.
     * - calling `target` with `data` must not revert.
     *
     * _Available since v3.1._
     */
    function functionCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionCall(target, data, "Address: low-level call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
     * `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        return functionCallWithValue(target, data, 0, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but also transferring `value` wei to `target`.
     *
     * Requirements:
     *
     * - the calling contract must have an ETH balance of at least `value`.
     * - the called Solidity function must be `payable`.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(
        address target,
        bytes memory data,
        uint256 value
    ) internal returns (bytes memory) {
        return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
    }

    /**
     * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
     * with `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(
        address target,
        bytes memory data,
        uint256 value,
        string memory errorMessage
    ) internal returns (bytes memory) {
        require(address(this).balance >= value, "Address: insufficient balance for call");
        require(isContract(target), "Address: call to non-contract");

        (bool success, bytes memory returndata) = target.call{value: value}(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
        return functionStaticCall(target, data, "Address: low-level static call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        require(isContract(target), "Address: static call to non-contract");

        (bool success, bytes memory returndata) = target.staticcall(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionDelegateCall(target, data, "Address: low-level delegate call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        require(isContract(target), "Address: delegate call to non-contract");

        (bool success, bytes memory returndata) = target.delegatecall(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason using the provided one.
     *
     * _Available since v4.3._
     */
    function verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal pure returns (bytes memory) {
        if (success) {
            return returndata;
        } else {
            // Look for revert reason and bubble it up if present
            if (returndata.length > 0) {
                // The easiest way to bubble the revert reason is using memory via assembly
                /// @solidity memory-safe-assembly
                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

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

pragma solidity ^0.8.0;

import "../IERC1155.sol";

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

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

pragma solidity ^0.8.0;

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

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

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

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

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"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":[],"name":"HotDougContractAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"accounts","type":"address[]"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"}],"name":"balanceOfBatch","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"_name","type":"string"},{"internalType":"string","name":"_baseURI","type":"string"},{"internalType":"bool","name":"_redeemOpen","type":"bool"},{"internalType":"bool","name":"_publicOpen","type":"bool"},{"internalType":"uint256","name":"_publicPrice","type":"uint256"},{"internalType":"uint256","name":"_maxPublicPerTx","type":"uint256"},{"internalType":"uint256","name":"_maxEditionCount","type":"uint256"},{"internalType":"address","name":"_allowedProjectAddress","type":"address"},{"internalType":"uint256","name":"_projectRedeemLimit","type":"uint256"}],"name":"createNewEdition","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_editionId","type":"uint256"}],"name":"deleteEdition","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"editionId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"editionIdToData","outputs":[{"internalType":"string","name":"baseURI","type":"string"},{"internalType":"string","name":"name","type":"string"},{"internalType":"bool","name":"redeemOpen","type":"bool"},{"internalType":"bool","name":"publicOpen","type":"bool"},{"internalType":"uint256","name":"maxEditionCount","type":"uint256"},{"internalType":"uint256","name":"publicPrice","type":"uint256"},{"internalType":"uint256","name":"maxPublicPerTx","type":"uint256"},{"internalType":"address","name":"allowedProjectAddress","type":"address"},{"internalType":"uint256","name":"projectRedeemCount","type":"uint256"},{"internalType":"uint256","name":"projectRedeemLimit","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_editionId","type":"uint256"}],"name":"editionTotalSupply","outputs":[{"internalType":"uint256","name":"_editionTotalSupply","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"exists","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_editionId","type":"uint256"}],"name":"getAllowedProjectAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_editionId","type":"uint256"}],"name":"getEditionBaseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_editionId","type":"uint256"}],"name":"getEditionMaxCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_editionId","type":"uint256"}],"name":"getEditionMaxPerTx","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_editionId","type":"uint256"}],"name":"getEditionName","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_editionId","type":"uint256"}],"name":"getEditionPublicPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_editionId","type":"uint256"}],"name":"getEditionRedeemStatus","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_editionId","type":"uint256"}],"name":"getProjectRedeemLimit","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_editionId","type":"uint256"}],"name":"getPublicMintStatus","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":[{"internalType":"uint256","name":"_editionId","type":"uint256"},{"internalType":"uint256","name":"_tokenIdToRedeem","type":"uint256"}],"name":"isDougTokenRedeemable","outputs":[{"internalType":"bool","name":"redeemable","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_editionId","type":"uint256"},{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"isPartnerAssetRedeemable","outputs":[{"internalType":"bool","name":"ownership","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_editionId","type":"uint256"},{"internalType":"uint256","name":"_editionsToMint","type":"uint256"}],"name":"mintEditionsPublic","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_editionId","type":"uint256"},{"internalType":"uint256","name":"_editionsToMint","type":"uint256"}],"name":"ownerMintEditions","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_editionId","type":"uint256"},{"internalType":"uint256[]","name":"partnerTokenIds","type":"uint256[]"}],"name":"partnerRedeemEdition","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_editionId","type":"uint256"},{"internalType":"uint256[]","name":"dougTokenIds","type":"uint256[]"}],"name":"redeemForEdition","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeBatchTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_editionId","type":"uint256"},{"internalType":"address","name":"_newContractAddress","type":"address"}],"name":"setEditionAllowedProjectAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_editionId","type":"uint256"},{"internalType":"string","name":"_baseURI","type":"string"}],"name":"setEditionBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_editionId","type":"uint256"},{"internalType":"uint256","name":"_maxEditionCount","type":"uint256"}],"name":"setEditionMaxCount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_editionId","type":"uint256"},{"internalType":"uint256","name":"_maxPublicPerTx","type":"uint256"}],"name":"setEditionMaxPerTx","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_editionId","type":"uint256"},{"internalType":"string","name":"_name","type":"string"}],"name":"setEditionName","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_editionId","type":"uint256"},{"internalType":"uint256","name":"_projectRedeemLimit","type":"uint256"}],"name":"setEditionProjectRedeemLimit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_editionId","type":"uint256"},{"internalType":"uint256","name":"_publicPrice","type":"uint256"}],"name":"setEditionPublicPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_editionId","type":"uint256"},{"internalType":"bool","name":"_publicOpen","type":"bool"}],"name":"setEditionPublicStatus","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_editionId","type":"uint256"},{"internalType":"bool","name":"_redeemOpen","type":"bool"}],"name":"setEditionRedeemStatus","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_contractAddress","type":"address"}],"name":"setHotDougContractAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_editionId","type":"uint256"}],"name":"uri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdrawBalance","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]

6080604052600980546001600160a01b03191673a9074445881ffd9bd1096414149f0feb8147b4a91790553480156200003757600080fd5b5060408051602081019091526000808252600190556200005781620000d2565b5060408051808201909152600c8082526b088deeacee640a4cad8d2e6d60a31b60209092019182526200008d91600591620000eb565b5060408051808201909152600280825261222960f11b6020909201918252620000b991600691620000eb565b50600780546001600160a01b03191633179055620001cd565b8051620000e7906003906020840190620000eb565b5050565b828054620000f99062000191565b90600052602060002090601f0160209004810192826200011d576000855562000168565b82601f106200013857805160ff191683800117855562000168565b8280016001018555821562000168579182015b82811115620001685782518255916020019190600101906200014b565b50620001769291506200017a565b5090565b5b808211156200017657600081556001016200017b565b600181811c90821680620001a657607f821691505b602082108103620001c757634e487b7160e01b600052602260045260246000fd5b50919050565b61362e80620001dd6000396000f3fe6080604052600436106102805760003560e01c806393937c3d1161014f578063c9e16c1a116100c1578063f2fde38b1161007a578063f2fde38b146108c9578063f302cdbf146108e9578063f942053b14610909578063fa247d0814610929578063fa6e12e714610949578063fc51a2631461095c57600080fd5b8063c9e16c1a146107d0578063ccf95115146107f0578063cf37a49d14610810578063d675fee714610840578063e985e9c514610860578063f242432a146108a957600080fd5b8063a5dac00f11610113578063a5dac00f146106ee578063ac830c8f1461070e578063aefc54451461072e578063b11fa3ad1461076d578063b83ce94814610783578063bd85b039146107a357600080fd5b806393937c3d1461063057806394f037391461066057806395d89b4114610699578063a0290a00146106ae578063a22cb465146106ce57600080fd5b80633a748888116101f3578063566c8206116101ac578063566c8206146105435780635efbec4f146105635780635fd8c71014610583578063796726921461059857806387e52f56146105b85780638da5cb5b146105f857600080fd5b80633a748888146104265780634585043e1461045c57806345ee58541461048f5780634e1273f4146104c75780634f558e79146104f457806350d331c21461052357600080fd5b806317ca064d1161024557806317ca064d146103615780631c300d731461037657806328f2bd5e146103965780632b9668d2146103b65780632eb2c2d6146103e657806334642fcf1461040657600080fd5b8062fdd58e1461028c57806301ffc9a7146102bf57806306fdde03146102ef5780630a8b3ccc146103115780630e89341c1461034157600080fd5b3661028757005b600080fd5b34801561029857600080fd5b506102ac6102a7366004612952565b61097c565b6040519081526020015b60405180910390f35b3480156102cb57600080fd5b506102df6102da366004612994565b610a14565b60405190151581526020016102b6565b3480156102fb57600080fd5b50610304610a66565b6040516102b69190612a09565b34801561031d57600080fd5b506102ac61032c366004612a1c565b6000908152600a602052604090206004015490565b34801561034d57600080fd5b5061030461035c366004612a1c565b610af4565b61037461036f366004612a35565b610c16565b005b34801561038257600080fd5b50610374610391366004612a57565b610de3565b3480156103a257600080fd5b506103746103b1366004612aeb565b611092565b3480156103c257600080fd5b506102ac6103d1366004612a1c565b6000908152600a602052604090206008015490565b3480156103f257600080fd5b50610374610401366004612c63565b6110df565b34801561041257600080fd5b50610374610421366004612d11565b61112b565b34801561043257600080fd5b50610446610441366004612a1c565b611235565b6040516102b69a99989796959493929190612dd2565b34801561046857600080fd5b506102df610477366004612a1c565b6000908152600a602052604090206002015460ff1690565b34801561049b57600080fd5b506102df6104aa366004612a1c565b6000908152600a6020526040902060020154610100900460ff1690565b3480156104d357600080fd5b506104e76104e2366004612e45565b6113a6565b6040516102b69190612f4d565b34801561050057600080fd5b506102df61050f366004612a1c565b600090815260046020526040902054151590565b34801561052f57600080fd5b506102ac61053e366004612a1c565b6114d0565b34801561054f57600080fd5b5061037461055e366004612a35565b6114e4565b34801561056f57600080fd5b5061030461057e366004612a1c565b611523565b34801561058f57600080fd5b506103746115c5565b3480156105a457600080fd5b506103746105b3366004612f60565b61166b565b3480156105c457600080fd5b506102df6105d3366004612a35565b6000918252600a602090815260408084209284526009909201905290205460ff161590565b34801561060457600080fd5b50600754610618906001600160a01b031681565b6040516001600160a01b0390911681526020016102b6565b34801561063c57600080fd5b506102ac61064b366004612a1c565b6000908152600a602052604090206005015490565b34801561066c57600080fd5b5061061861067b366004612a1c565b6000908152600a60205260409020600601546001600160a01b031690565b3480156106a557600080fd5b506103046116b4565b3480156106ba57600080fd5b506103746106c9366004612a35565b6116c1565b3480156106da57600080fd5b506103746106e9366004612fc9565b611700565b3480156106fa57600080fd5b50610374610709366004612f60565b61170f565b34801561071a57600080fd5b50610374610729366004612a35565b611755565b34801561073a57600080fd5b506102df610749366004612a35565b6000918252600a6020818152604080852093855292909101905290205460ff161590565b34801561077957600080fd5b506102ac60085481565b34801561078f57600080fd5b50600954610618906001600160a01b031681565b3480156107af57600080fd5b506102ac6107be366004612a1c565b60009081526004602052604090205490565b3480156107dc57600080fd5b506103746107eb366004612ff5565b6117cd565b3480156107fc57600080fd5b5061030461080b366004612a1c565b611828565b34801561081c57600080fd5b506102ac61082b366004612a1c565b6000908152600a602052604090206003015490565b34801561084c57600080fd5b5061037461085b366004612a1c565b611848565b34801561086c57600080fd5b506102df61087b366004613025565b6001600160a01b03918216600090815260026020908152604080832093909416825291909152205460ff1690565b3480156108b557600080fd5b506103746108c4366004613053565b6118e0565b3480156108d557600080fd5b506103746108e43660046130bc565b611925565b3480156108f557600080fd5b50610374610904366004612a35565b611971565b34801561091557600080fd5b506103746109243660046130bc565b6119b0565b34801561093557600080fd5b50610374610944366004612a35565b6119fc565b610374610957366004612a57565b611a3b565b34801561096857600080fd5b50610374610977366004612aeb565b611cc8565b60006001600160a01b0383166109ec5760405162461bcd60e51b815260206004820152602a60248201527f455243313135353a2061646472657373207a65726f206973206e6f742061207660448201526930b634b21037bbb732b960b11b60648201526084015b60405180910390fd5b5060009081526001602090815260408083206001600160a01b03949094168352929052205490565b60006001600160e01b03198216636cdb3d1360e11b1480610a4557506001600160e01b031982166303a24d0760e21b145b80610a6057506301ffc9a760e01b6001600160e01b03198316145b92915050565b60058054610a73906130d9565b80601f0160208091040260200160405190810160405280929190818152602001828054610a9f906130d9565b8015610aec5780601f10610ac157610100808354040283529160200191610aec565b820191906000526020600020905b815481529060010190602001808311610acf57829003601f168201915b505050505081565b6000818152600a6020526040812080546060929190610b12906130d9565b80601f0160208091040260200160405190810160405280929190818152602001828054610b3e906130d9565b8015610b8b5780601f10610b6057610100808354040283529160200191610b8b565b820191906000526020600020905b815481529060010190602001808311610b6e57829003601f168201915b505050505090506000815111610bd55760405162461bcd60e51b815260206004820152600f60248201526e24b73b30b634b21022b234ba34b7b760891b60448201526064016109e3565b6000815111610be45780610c0f565b80610bee84611d1c565b604051602001610bff929190613113565b6040516020818303038152906040525b9392505050565b600260005403610c685760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016109e3565b60026000818155838152600a60205260409020015460ff610100909104161515600114610cce5760405162461bcd60e51b81526020600482015260146024820152735075626c6963206e6f7420617661696c61626c6560601b60448201526064016109e3565b610cd7826114d0565b6000838152600a6020526040902060030154610cf39190613177565b811115610d125760405162461bcd60e51b81526004016109e39061318e565b6000828152600a6020526040902060050154811115610d735760405162461bcd60e51b815260206004820152601860248201527f546f6f206d616e79206d696e747320726571756573746564000000000000000060448201526064016109e3565b6000828152600a6020526040902060040154610d909082906131b0565b341015610dd05760405162461bcd60e51b815260206004820152600e60248201526d09cdee840cadcdeeaced0408aa8960931b60448201526064016109e3565b610dda8282611e25565b50506001600055565b6000838152600a602052604090206002015460ff161515600114610e3d5760405162461bcd60e51b8152602060048201526011602482015270149959195b5c1d1a5bdb8818db1bdcd959607a1b60448201526064016109e3565b6000838152600a602052604081206007810154600890910154610e609190613177565b905060008111610ea85760405162461bcd60e51b81526020600482015260136024820152724e6f20636c61696d7320617661696c61626c6560681b60448201526064016109e3565b816000805b82811015610f19576000868683818110610ec957610ec96131cf565b905060200201359050610edc8882611e67565b8015610f0457506000888152600a60208181526040808420858552909201905290205460ff16155b15610f10576001909201915b50600101610ead565b5060008111610f6a5760405162461bcd60e51b815260206004820152601860248201527f4e6f20656c696769626c6520506172746e6572204e465473000000000000000060448201526064016109e3565b82811115610fba5760405162461bcd60e51b815260206004820152601b60248201527f4e6f7420656e6f75676820636c61696d7320617661696c61626c65000000000060448201526064016109e3565b6000868152600a6020526040902060030154610fd5876114d0565b82011115610ff55760405162461bcd60e51b81526004016109e39061318e565b60005b81811015611058576000878152600a602081905260408220600192910190888885818110611028576110286131cf565b60209081029290920135835250810191909152604001600020805460ff1916911515919091179055600101610ff8565b506000868152600a60205260408120600701805483929061107a9084906131e5565b9091555061108a90508682611e25565b505050505050565b6007546001600160a01b031633146110bc5760405162461bcd60e51b81526004016109e3906131fd565b6000918252600a6020526040909120600201805460ff1916911515919091179055565b6001600160a01b0385163314806110fb57506110fb853361087b565b6111175760405162461bcd60e51b81526004016109e390613223565b6111248585858585611ef9565b5050505050565b6007546001600160a01b031633146111555760405162461bcd60e51b81526004016109e3906131fd565b6000600854600161116691906131e5565b6000818152600a602090815260409091208c5192935061118e926001909101918d01906127fa565b506000818152600a602090815260409091208a516111ae928c01906127fa565b506000818152600a6020526040812060028101805461ffff19169a151561ff0019169a909a1761010099151599909902989098179098556004870195909555600586019390935560038501919091556006840180546001600160a01b0319166001600160a01b03909216919091179055600880840191909155600790920192909255555050565b600a60205260009081526040902080548190611250906130d9565b80601f016020809104026020016040519081016040528092919081815260200182805461127c906130d9565b80156112c95780601f1061129e576101008083540402835291602001916112c9565b820191906000526020600020905b8154815290600101906020018083116112ac57829003601f168201915b5050505050908060010180546112de906130d9565b80601f016020809104026020016040519081016040528092919081815260200182805461130a906130d9565b80156113575780601f1061132c57610100808354040283529160200191611357565b820191906000526020600020905b81548152906001019060200180831161133a57829003601f168201915b505050600284015460038501546004860154600587015460068801546007890154600890990154979860ff80871699610100909704169750939550919390926001600160a01b0390921691908a565b6060815183511461140b5760405162461bcd60e51b815260206004820152602960248201527f455243313135353a206163636f756e747320616e6420696473206c656e677468604482015268040dad2e6dac2e8c6d60bb1b60648201526084016109e3565b6000835167ffffffffffffffff81111561142757611427612b17565b604051908082528060200260200182016040528015611450578160200160208202803683370190505b50905060005b84518110156114c85761149b858281518110611474576114746131cf565b602002602001015185838151811061148e5761148e6131cf565b602002602001015161097c565b8282815181106114ad576114ad6131cf565b60209081029190910101526114c181613272565b9050611456565b509392505050565b600081815260046020526040812054610a60565b6007546001600160a01b0316331461150e5760405162461bcd60e51b81526004016109e3906131fd565b6000918252600a602052604090912060030155565b6000818152600a60205260409020805460609190611540906130d9565b80601f016020809104026020016040519081016040528092919081815260200182805461156c906130d9565b80156115b95780601f1061158e576101008083540402835291602001916115b9565b820191906000526020600020905b81548152906001019060200180831161159c57829003601f168201915b50505050509050919050565b6007546040516000916001600160a01b03169047908381818185875af1925050503d8060008114611612576040519150601f19603f3d011682016040523d82523d6000602084013e611617565b606091505b50509050806116685760405162461bcd60e51b815260206004820152601b60248201527f436f756c64206e6f742077697468647261772062616c616e636521000000000060448201526064016109e3565b50565b6007546001600160a01b031633146116955760405162461bcd60e51b81526004016109e3906131fd565b6000838152600a602052604090206116ae90838361287e565b50505050565b60068054610a73906130d9565b6007546001600160a01b031633146116eb5760405162461bcd60e51b81526004016109e3906131fd565b6000918252600a602052604090912060040155565b61170b3383836120df565b5050565b6007546001600160a01b031633146117395760405162461bcd60e51b81526004016109e3906131fd565b6000838152600a602052604090206116ae90600101838361287e565b6007546001600160a01b0316331461177f5760405162461bcd60e51b81526004016109e3906131fd565b611788826114d0565b6000838152600a60205260409020600301546117a49190613177565b8111156117c35760405162461bcd60e51b81526004016109e39061318e565b61170b8282611e25565b6007546001600160a01b031633146117f75760405162461bcd60e51b81526004016109e3906131fd565b6000918252600a602052604090912060060180546001600160a01b0319166001600160a01b03909216919091179055565b6000818152600a60205260409020600101805460609190611540906130d9565b6007546001600160a01b031633146118725760405162461bcd60e51b81526004016109e3906131fd565b6000818152600a602052604081209061188b82826128f2565b6118996001830160006128f2565b5060028101805461ffff1916905560006003820181905560048201819055600582018190556006820180546001600160a01b03191690556007820181905560089091015550565b6001600160a01b0385163314806118fc57506118fc853361087b565b6119185760405162461bcd60e51b81526004016109e390613223565b61112485858585856121bf565b6007546001600160a01b0316331461194f5760405162461bcd60e51b81526004016109e3906131fd565b600780546001600160a01b0319166001600160a01b0392909216919091179055565b6007546001600160a01b0316331461199b5760405162461bcd60e51b81526004016109e3906131fd565b6000918252600a602052604090912060080155565b6007546001600160a01b031633146119da5760405162461bcd60e51b81526004016109e3906131fd565b600980546001600160a01b0319166001600160a01b0392909216919091179055565b6007546001600160a01b03163314611a265760405162461bcd60e51b81526004016109e3906131fd565b6000918252600a602052604090912060050155565b600260005403611a8d5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016109e3565b60026000818155848152600a60205260409020015460ff161515600114611aea5760405162461bcd60e51b8152602060048201526011602482015270149959195b5c1d1a5bdb8818db1bdcd959607a1b60448201526064016109e3565b806000805b82811015611bce576000858583818110611b0b57611b0b6131cf565b6009546040516331a9108f60e11b8152602092909202939093013560048201819052935033926001600160a01b03169150636352211e90602401602060405180830381865afa158015611b62573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611b86919061328b565b6001600160a01b0316148015611bb957506000878152600a6020908152604080832084845260090190915290205460ff16155b15611bc5576001909201915b50600101611aef565b5060008111611c125760405162461bcd60e51b815260206004820152601060248201526f4e6f20656c696769626c65204e46547360801b60448201526064016109e3565b6000858152600a6020526040902060030154611c2d866114d0565b82011115611c4d5760405162461bcd60e51b81526004016109e39061318e565b60005b82811015611cb1576000868152600a60205260408120600191600990910190878785818110611c8157611c816131cf565b60209081029290920135835250810191909152604001600020805460ff1916911515919091179055600101611c50565b50611cbc8582611e25565b50506001600055505050565b6007546001600160a01b03163314611cf25760405162461bcd60e51b81526004016109e3906131fd565b6000918252600a602052604090912060020180549115156101000261ff0019909216919091179055565b606081600003611d435750506040805180820190915260018152600360fc1b602082015290565b8160005b8115611d6d5780611d5781613272565b9150611d669050600a836132be565b9150611d47565b60008167ffffffffffffffff811115611d8857611d88612b17565b6040519080825280601f01601f191660200182016040528015611db2576020820181803683370190505b5090505b8415611e1d57611dc7600183613177565b9150611dd4600a866132d2565b611ddf9060306131e5565b60f81b818381518110611df457611df46131cf565b60200101906001600160f81b031916908160001a905350611e16600a866132be565b9450611db6565b949350505050565b61170b338383600a60006008548152602001908152602001600020600101604051602001611e5391906132e6565b6040516020818303038152906040526122fb565b6000828152600a60205260408082206006015490516331a9108f60e11b8152600481018490526001600160a01b039091169033908290636352211e90602401602060405180830381865afa158015611ec3573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ee7919061328b565b6001600160a01b031614949350505050565b8151835114611f5b5760405162461bcd60e51b815260206004820152602860248201527f455243313135353a2069647320616e6420616d6f756e7473206c656e677468206044820152670dad2e6dac2e8c6d60c31b60648201526084016109e3565b6001600160a01b038416611f815760405162461bcd60e51b81526004016109e39061338d565b33611f90818787878787612420565b60005b8451811015612079576000858281518110611fb057611fb06131cf565b602002602001015190506000858381518110611fce57611fce6131cf565b60209081029190910181015160008481526001835260408082206001600160a01b038e16835290935291909120549091508181101561201f5760405162461bcd60e51b81526004016109e3906133d2565b60008381526001602090815260408083206001600160a01b038e8116855292528083208585039055908b1682528120805484929061205e9084906131e5565b925050819055505050508061207290613272565b9050611f93565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb87876040516120c992919061341c565b60405180910390a461108a818787878787612599565b816001600160a01b0316836001600160a01b0316036121525760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2073657474696e6720617070726f76616c20737461747573604482015268103337b91039b2b63360b91b60648201526084016109e3565b6001600160a01b03838116600081815260026020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6001600160a01b0384166121e55760405162461bcd60e51b81526004016109e39061338d565b3360006121f1856126f4565b905060006121fe856126f4565b905061220e838989858589612420565b60008681526001602090815260408083206001600160a01b038c168452909152902054858110156122515760405162461bcd60e51b81526004016109e3906133d2565b60008781526001602090815260408083206001600160a01b038d8116855292528083208985039055908a168252812080548892906122909084906131e5565b909155505060408051888152602081018890526001600160a01b03808b16928c821692918816917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a46122f0848a8a8a8a8a61273f565b505050505050505050565b6001600160a01b03841661235b5760405162461bcd60e51b815260206004820152602160248201527f455243313135353a206d696e7420746f20746865207a65726f206164647265736044820152607360f81b60648201526084016109e3565b336000612367856126f4565b90506000612374856126f4565b905061238583600089858589612420565b60008681526001602090815260408083206001600160a01b038b168452909152812080548792906123b79084906131e5565b909155505060408051878152602081018790526001600160a01b03808a1692600092918716917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a46124178360008989898961273f565b50505050505050565b6001600160a01b0385166124a75760005b83518110156124a55782818151811061244c5761244c6131cf565b60200260200101516004600086848151811061246a5761246a6131cf565b60200260200101518152602001908152602001600020600082825461248f91906131e5565b9091555061249e905081613272565b9050612431565b505b6001600160a01b03841661108a5760005b83518110156124175760008482815181106124d5576124d56131cf565b6020026020010151905060008483815181106124f3576124f36131cf565b60200260200101519050600060046000848152602001908152602001600020549050818110156125765760405162461bcd60e51b815260206004820152602860248201527f455243313135353a206275726e20616d6f756e74206578636565647320746f74604482015267616c537570706c7960c01b60648201526084016109e3565b6000928352600460205260409092209103905561259281613272565b90506124b8565b6001600160a01b0384163b1561108a5760405163bc197c8160e01b81526001600160a01b0385169063bc197c81906125dd908990899088908890889060040161344a565b6020604051808303816000875af1925050508015612618575060408051601f3d908101601f19168201909252612615918101906134a8565b60015b6126c4576126246134c5565b806308c379a00361265d57506126386134e1565b80612643575061265f565b8060405162461bcd60e51b81526004016109e39190612a09565b505b60405162461bcd60e51b815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e20455243313135356044820152732932b1b2b4bb32b91034b6b83632b6b2b73a32b960611b60648201526084016109e3565b6001600160e01b0319811663bc197c8160e01b146124175760405162461bcd60e51b81526004016109e39061356b565b6040805160018082528183019092526060916000919060208083019080368337019050509050828160008151811061272e5761272e6131cf565b602090810291909101015292915050565b6001600160a01b0384163b1561108a5760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e619061278390899089908890889088906004016135b3565b6020604051808303816000875af19250505080156127be575060408051601f3d908101601f191682019092526127bb918101906134a8565b60015b6127ca576126246134c5565b6001600160e01b0319811663f23a6e6160e01b146124175760405162461bcd60e51b81526004016109e39061356b565b828054612806906130d9565b90600052602060002090601f016020900481019282612828576000855561286e565b82601f1061284157805160ff191683800117855561286e565b8280016001018555821561286e579182015b8281111561286e578251825591602001919060010190612853565b5061287a929150612928565b5090565b82805461288a906130d9565b90600052602060002090601f0160209004810192826128ac576000855561286e565b82601f106128c55782800160ff1982351617855561286e565b8280016001018555821561286e579182015b8281111561286e5782358255916020019190600101906128d7565b5080546128fe906130d9565b6000825580601f1061290e575050565b601f01602090049060005260206000209081019061166891905b5b8082111561287a5760008155600101612929565b6001600160a01b038116811461166857600080fd5b6000806040838503121561296557600080fd5b82356129708161293d565b946020939093013593505050565b6001600160e01b03198116811461166857600080fd5b6000602082840312156129a657600080fd5b8135610c0f8161297e565b60005b838110156129cc5781810151838201526020016129b4565b838111156116ae5750506000910152565b600081518084526129f58160208601602086016129b1565b601f01601f19169290920160200192915050565b602081526000610c0f60208301846129dd565b600060208284031215612a2e57600080fd5b5035919050565b60008060408385031215612a4857600080fd5b50508035926020909101359150565b600080600060408486031215612a6c57600080fd5b83359250602084013567ffffffffffffffff80821115612a8b57600080fd5b818601915086601f830112612a9f57600080fd5b813581811115612aae57600080fd5b8760208260051b8501011115612ac357600080fd5b6020830194508093505050509250925092565b80358015158114612ae657600080fd5b919050565b60008060408385031215612afe57600080fd5b82359150612b0e60208401612ad6565b90509250929050565b634e487b7160e01b600052604160045260246000fd5b601f8201601f1916810167ffffffffffffffff81118282101715612b5357612b53612b17565b6040525050565b600067ffffffffffffffff821115612b7457612b74612b17565b5060051b60200190565b600082601f830112612b8f57600080fd5b81356020612b9c82612b5a565b604051612ba98282612b2d565b83815260059390931b8501820192828101915086841115612bc957600080fd5b8286015b84811015612be45780358352918301918301612bcd565b509695505050505050565b600082601f830112612c0057600080fd5b813567ffffffffffffffff811115612c1a57612c1a612b17565b604051612c31601f8301601f191660200182612b2d565b818152846020838601011115612c4657600080fd5b816020850160208301376000918101602001919091529392505050565b600080600080600060a08688031215612c7b57600080fd5b8535612c868161293d565b94506020860135612c968161293d565b9350604086013567ffffffffffffffff80821115612cb357600080fd5b612cbf89838a01612b7e565b94506060880135915080821115612cd557600080fd5b612ce189838a01612b7e565b93506080880135915080821115612cf757600080fd5b50612d0488828901612bef565b9150509295509295909350565b60008060008060008060008060006101208a8c031215612d3057600080fd5b893567ffffffffffffffff80821115612d4857600080fd5b612d548d838e01612bef565b9a5060208c0135915080821115612d6a57600080fd5b50612d778c828d01612bef565b985050612d8660408b01612ad6565b9650612d9460608b01612ad6565b955060808a0135945060a08a0135935060c08a0135925060e08a0135612db98161293d565b809250506101008a013590509295985092959850929598565b6000610140808352612de68184018e6129dd565b90508281036020840152612dfa818d6129dd565b9a1515604084015250509615156060880152608087019590955260a086019390935260c08501919091526001600160a01b031660e08401526101008301526101209091015292915050565b60008060408385031215612e5857600080fd5b823567ffffffffffffffff80821115612e7057600080fd5b818501915085601f830112612e8457600080fd5b81356020612e9182612b5a565b604051612e9e8282612b2d565b83815260059390931b8501820192828101915089841115612ebe57600080fd5b948201945b83861015612ee5578535612ed68161293d565b82529482019490820190612ec3565b96505086013592505080821115612efb57600080fd5b50612f0885828601612b7e565b9150509250929050565b600081518084526020808501945080840160005b83811015612f4257815187529582019590820190600101612f26565b509495945050505050565b602081526000610c0f6020830184612f12565b600080600060408486031215612f7557600080fd5b83359250602084013567ffffffffffffffff80821115612f9457600080fd5b818601915086601f830112612fa857600080fd5b813581811115612fb757600080fd5b876020828501011115612ac357600080fd5b60008060408385031215612fdc57600080fd5b8235612fe78161293d565b9150612b0e60208401612ad6565b6000806040838503121561300857600080fd5b82359150602083013561301a8161293d565b809150509250929050565b6000806040838503121561303857600080fd5b82356130438161293d565b9150602083013561301a8161293d565b600080600080600060a0868803121561306b57600080fd5b85356130768161293d565b945060208601356130868161293d565b93506040860135925060608601359150608086013567ffffffffffffffff8111156130b057600080fd5b612d0488828901612bef565b6000602082840312156130ce57600080fd5b8135610c0f8161293d565b600181811c908216806130ed57607f821691505b60208210810361310d57634e487b7160e01b600052602260045260246000fd5b50919050565b600083516131258184602088016129b1565b602f60f81b90830190815283516131438160018401602088016129b1565b64173539b7b760d91b60019290910191820152600601949350505050565b634e487b7160e01b600052601160045260246000fd5b60008282101561318957613189613161565b500390565b60208082526008908201526714dbdb19081bdd5d60c21b604082015260600190565b60008160001904831182151516156131ca576131ca613161565b500290565b634e487b7160e01b600052603260045260246000fd5b600082198211156131f8576131f8613161565b500190565b6020808252600c908201526b155b985d5d1a1bdc9a5e995960a21b604082015260600190565b6020808252602f908201527f455243313135353a2063616c6c6572206973206e6f7420746f6b656e206f776e60408201526e195c881b9bdc88185c1c1c9bdd9959608a1b606082015260800190565b60006001820161328457613284613161565b5060010190565b60006020828403121561329d57600080fd5b8151610c0f8161293d565b634e487b7160e01b600052601260045260246000fd5b6000826132cd576132cd6132a8565b500490565b6000826132e1576132e16132a8565b500690565b600060208083526000845481600182811c91508083168061330857607f831692505b858310810361332557634e487b7160e01b85526022600452602485fd5b87860183815260200181801561334257600181146133535761337e565b60ff1986168252878201965061337e565b60008b81526020902060005b868110156133785781548482015290850190890161335f565b83019750505b50949998505050505050505050565b60208082526025908201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604082015264647265737360d81b606082015260800190565b6020808252602a908201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60408201526939103a3930b739b332b960b11b606082015260800190565b60408152600061342f6040830185612f12565b82810360208401526134418185612f12565b95945050505050565b6001600160a01b0386811682528516602082015260a06040820181905260009061347690830186612f12565b82810360608401526134888186612f12565b9050828103608084015261349c81856129dd565b98975050505050505050565b6000602082840312156134ba57600080fd5b8151610c0f8161297e565b600060033d11156134de5760046000803e5060005160e01c5b90565b600060443d10156134ef5790565b6040516003193d81016004833e81513d67ffffffffffffffff816024840111818411171561351f57505050505090565b82850191508151818111156135375750505050505090565b843d87010160208285010111156135515750505050505090565b61356060208286010187612b2d565b509095945050505050565b60208082526028908201527f455243313135353a204552433131353552656365697665722072656a656374656040820152676420746f6b656e7360c01b606082015260800190565b6001600160a01b03868116825285166020820152604081018490526060810183905260a0608082018190526000906135ed908301846129dd565b97965050505050505056fea26469706673582212202b50d1727399dc9edc92ee82e57ea9bee42b326d80e02b30f59df9cbd1cc99d464736f6c634300080d0033

Deployed Bytecode

0x6080604052600436106102805760003560e01c806393937c3d1161014f578063c9e16c1a116100c1578063f2fde38b1161007a578063f2fde38b146108c9578063f302cdbf146108e9578063f942053b14610909578063fa247d0814610929578063fa6e12e714610949578063fc51a2631461095c57600080fd5b8063c9e16c1a146107d0578063ccf95115146107f0578063cf37a49d14610810578063d675fee714610840578063e985e9c514610860578063f242432a146108a957600080fd5b8063a5dac00f11610113578063a5dac00f146106ee578063ac830c8f1461070e578063aefc54451461072e578063b11fa3ad1461076d578063b83ce94814610783578063bd85b039146107a357600080fd5b806393937c3d1461063057806394f037391461066057806395d89b4114610699578063a0290a00146106ae578063a22cb465146106ce57600080fd5b80633a748888116101f3578063566c8206116101ac578063566c8206146105435780635efbec4f146105635780635fd8c71014610583578063796726921461059857806387e52f56146105b85780638da5cb5b146105f857600080fd5b80633a748888146104265780634585043e1461045c57806345ee58541461048f5780634e1273f4146104c75780634f558e79146104f457806350d331c21461052357600080fd5b806317ca064d1161024557806317ca064d146103615780631c300d731461037657806328f2bd5e146103965780632b9668d2146103b65780632eb2c2d6146103e657806334642fcf1461040657600080fd5b8062fdd58e1461028c57806301ffc9a7146102bf57806306fdde03146102ef5780630a8b3ccc146103115780630e89341c1461034157600080fd5b3661028757005b600080fd5b34801561029857600080fd5b506102ac6102a7366004612952565b61097c565b6040519081526020015b60405180910390f35b3480156102cb57600080fd5b506102df6102da366004612994565b610a14565b60405190151581526020016102b6565b3480156102fb57600080fd5b50610304610a66565b6040516102b69190612a09565b34801561031d57600080fd5b506102ac61032c366004612a1c565b6000908152600a602052604090206004015490565b34801561034d57600080fd5b5061030461035c366004612a1c565b610af4565b61037461036f366004612a35565b610c16565b005b34801561038257600080fd5b50610374610391366004612a57565b610de3565b3480156103a257600080fd5b506103746103b1366004612aeb565b611092565b3480156103c257600080fd5b506102ac6103d1366004612a1c565b6000908152600a602052604090206008015490565b3480156103f257600080fd5b50610374610401366004612c63565b6110df565b34801561041257600080fd5b50610374610421366004612d11565b61112b565b34801561043257600080fd5b50610446610441366004612a1c565b611235565b6040516102b69a99989796959493929190612dd2565b34801561046857600080fd5b506102df610477366004612a1c565b6000908152600a602052604090206002015460ff1690565b34801561049b57600080fd5b506102df6104aa366004612a1c565b6000908152600a6020526040902060020154610100900460ff1690565b3480156104d357600080fd5b506104e76104e2366004612e45565b6113a6565b6040516102b69190612f4d565b34801561050057600080fd5b506102df61050f366004612a1c565b600090815260046020526040902054151590565b34801561052f57600080fd5b506102ac61053e366004612a1c565b6114d0565b34801561054f57600080fd5b5061037461055e366004612a35565b6114e4565b34801561056f57600080fd5b5061030461057e366004612a1c565b611523565b34801561058f57600080fd5b506103746115c5565b3480156105a457600080fd5b506103746105b3366004612f60565b61166b565b3480156105c457600080fd5b506102df6105d3366004612a35565b6000918252600a602090815260408084209284526009909201905290205460ff161590565b34801561060457600080fd5b50600754610618906001600160a01b031681565b6040516001600160a01b0390911681526020016102b6565b34801561063c57600080fd5b506102ac61064b366004612a1c565b6000908152600a602052604090206005015490565b34801561066c57600080fd5b5061061861067b366004612a1c565b6000908152600a60205260409020600601546001600160a01b031690565b3480156106a557600080fd5b506103046116b4565b3480156106ba57600080fd5b506103746106c9366004612a35565b6116c1565b3480156106da57600080fd5b506103746106e9366004612fc9565b611700565b3480156106fa57600080fd5b50610374610709366004612f60565b61170f565b34801561071a57600080fd5b50610374610729366004612a35565b611755565b34801561073a57600080fd5b506102df610749366004612a35565b6000918252600a6020818152604080852093855292909101905290205460ff161590565b34801561077957600080fd5b506102ac60085481565b34801561078f57600080fd5b50600954610618906001600160a01b031681565b3480156107af57600080fd5b506102ac6107be366004612a1c565b60009081526004602052604090205490565b3480156107dc57600080fd5b506103746107eb366004612ff5565b6117cd565b3480156107fc57600080fd5b5061030461080b366004612a1c565b611828565b34801561081c57600080fd5b506102ac61082b366004612a1c565b6000908152600a602052604090206003015490565b34801561084c57600080fd5b5061037461085b366004612a1c565b611848565b34801561086c57600080fd5b506102df61087b366004613025565b6001600160a01b03918216600090815260026020908152604080832093909416825291909152205460ff1690565b3480156108b557600080fd5b506103746108c4366004613053565b6118e0565b3480156108d557600080fd5b506103746108e43660046130bc565b611925565b3480156108f557600080fd5b50610374610904366004612a35565b611971565b34801561091557600080fd5b506103746109243660046130bc565b6119b0565b34801561093557600080fd5b50610374610944366004612a35565b6119fc565b610374610957366004612a57565b611a3b565b34801561096857600080fd5b50610374610977366004612aeb565b611cc8565b60006001600160a01b0383166109ec5760405162461bcd60e51b815260206004820152602a60248201527f455243313135353a2061646472657373207a65726f206973206e6f742061207660448201526930b634b21037bbb732b960b11b60648201526084015b60405180910390fd5b5060009081526001602090815260408083206001600160a01b03949094168352929052205490565b60006001600160e01b03198216636cdb3d1360e11b1480610a4557506001600160e01b031982166303a24d0760e21b145b80610a6057506301ffc9a760e01b6001600160e01b03198316145b92915050565b60058054610a73906130d9565b80601f0160208091040260200160405190810160405280929190818152602001828054610a9f906130d9565b8015610aec5780601f10610ac157610100808354040283529160200191610aec565b820191906000526020600020905b815481529060010190602001808311610acf57829003601f168201915b505050505081565b6000818152600a6020526040812080546060929190610b12906130d9565b80601f0160208091040260200160405190810160405280929190818152602001828054610b3e906130d9565b8015610b8b5780601f10610b6057610100808354040283529160200191610b8b565b820191906000526020600020905b815481529060010190602001808311610b6e57829003601f168201915b505050505090506000815111610bd55760405162461bcd60e51b815260206004820152600f60248201526e24b73b30b634b21022b234ba34b7b760891b60448201526064016109e3565b6000815111610be45780610c0f565b80610bee84611d1c565b604051602001610bff929190613113565b6040516020818303038152906040525b9392505050565b600260005403610c685760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016109e3565b60026000818155838152600a60205260409020015460ff610100909104161515600114610cce5760405162461bcd60e51b81526020600482015260146024820152735075626c6963206e6f7420617661696c61626c6560601b60448201526064016109e3565b610cd7826114d0565b6000838152600a6020526040902060030154610cf39190613177565b811115610d125760405162461bcd60e51b81526004016109e39061318e565b6000828152600a6020526040902060050154811115610d735760405162461bcd60e51b815260206004820152601860248201527f546f6f206d616e79206d696e747320726571756573746564000000000000000060448201526064016109e3565b6000828152600a6020526040902060040154610d909082906131b0565b341015610dd05760405162461bcd60e51b815260206004820152600e60248201526d09cdee840cadcdeeaced0408aa8960931b60448201526064016109e3565b610dda8282611e25565b50506001600055565b6000838152600a602052604090206002015460ff161515600114610e3d5760405162461bcd60e51b8152602060048201526011602482015270149959195b5c1d1a5bdb8818db1bdcd959607a1b60448201526064016109e3565b6000838152600a602052604081206007810154600890910154610e609190613177565b905060008111610ea85760405162461bcd60e51b81526020600482015260136024820152724e6f20636c61696d7320617661696c61626c6560681b60448201526064016109e3565b816000805b82811015610f19576000868683818110610ec957610ec96131cf565b905060200201359050610edc8882611e67565b8015610f0457506000888152600a60208181526040808420858552909201905290205460ff16155b15610f10576001909201915b50600101610ead565b5060008111610f6a5760405162461bcd60e51b815260206004820152601860248201527f4e6f20656c696769626c6520506172746e6572204e465473000000000000000060448201526064016109e3565b82811115610fba5760405162461bcd60e51b815260206004820152601b60248201527f4e6f7420656e6f75676820636c61696d7320617661696c61626c65000000000060448201526064016109e3565b6000868152600a6020526040902060030154610fd5876114d0565b82011115610ff55760405162461bcd60e51b81526004016109e39061318e565b60005b81811015611058576000878152600a602081905260408220600192910190888885818110611028576110286131cf565b60209081029290920135835250810191909152604001600020805460ff1916911515919091179055600101610ff8565b506000868152600a60205260408120600701805483929061107a9084906131e5565b9091555061108a90508682611e25565b505050505050565b6007546001600160a01b031633146110bc5760405162461bcd60e51b81526004016109e3906131fd565b6000918252600a6020526040909120600201805460ff1916911515919091179055565b6001600160a01b0385163314806110fb57506110fb853361087b565b6111175760405162461bcd60e51b81526004016109e390613223565b6111248585858585611ef9565b5050505050565b6007546001600160a01b031633146111555760405162461bcd60e51b81526004016109e3906131fd565b6000600854600161116691906131e5565b6000818152600a602090815260409091208c5192935061118e926001909101918d01906127fa565b506000818152600a602090815260409091208a516111ae928c01906127fa565b506000818152600a6020526040812060028101805461ffff19169a151561ff0019169a909a1761010099151599909902989098179098556004870195909555600586019390935560038501919091556006840180546001600160a01b0319166001600160a01b03909216919091179055600880840191909155600790920192909255555050565b600a60205260009081526040902080548190611250906130d9565b80601f016020809104026020016040519081016040528092919081815260200182805461127c906130d9565b80156112c95780601f1061129e576101008083540402835291602001916112c9565b820191906000526020600020905b8154815290600101906020018083116112ac57829003601f168201915b5050505050908060010180546112de906130d9565b80601f016020809104026020016040519081016040528092919081815260200182805461130a906130d9565b80156113575780601f1061132c57610100808354040283529160200191611357565b820191906000526020600020905b81548152906001019060200180831161133a57829003601f168201915b505050600284015460038501546004860154600587015460068801546007890154600890990154979860ff80871699610100909704169750939550919390926001600160a01b0390921691908a565b6060815183511461140b5760405162461bcd60e51b815260206004820152602960248201527f455243313135353a206163636f756e747320616e6420696473206c656e677468604482015268040dad2e6dac2e8c6d60bb1b60648201526084016109e3565b6000835167ffffffffffffffff81111561142757611427612b17565b604051908082528060200260200182016040528015611450578160200160208202803683370190505b50905060005b84518110156114c85761149b858281518110611474576114746131cf565b602002602001015185838151811061148e5761148e6131cf565b602002602001015161097c565b8282815181106114ad576114ad6131cf565b60209081029190910101526114c181613272565b9050611456565b509392505050565b600081815260046020526040812054610a60565b6007546001600160a01b0316331461150e5760405162461bcd60e51b81526004016109e3906131fd565b6000918252600a602052604090912060030155565b6000818152600a60205260409020805460609190611540906130d9565b80601f016020809104026020016040519081016040528092919081815260200182805461156c906130d9565b80156115b95780601f1061158e576101008083540402835291602001916115b9565b820191906000526020600020905b81548152906001019060200180831161159c57829003601f168201915b50505050509050919050565b6007546040516000916001600160a01b03169047908381818185875af1925050503d8060008114611612576040519150601f19603f3d011682016040523d82523d6000602084013e611617565b606091505b50509050806116685760405162461bcd60e51b815260206004820152601b60248201527f436f756c64206e6f742077697468647261772062616c616e636521000000000060448201526064016109e3565b50565b6007546001600160a01b031633146116955760405162461bcd60e51b81526004016109e3906131fd565b6000838152600a602052604090206116ae90838361287e565b50505050565b60068054610a73906130d9565b6007546001600160a01b031633146116eb5760405162461bcd60e51b81526004016109e3906131fd565b6000918252600a602052604090912060040155565b61170b3383836120df565b5050565b6007546001600160a01b031633146117395760405162461bcd60e51b81526004016109e3906131fd565b6000838152600a602052604090206116ae90600101838361287e565b6007546001600160a01b0316331461177f5760405162461bcd60e51b81526004016109e3906131fd565b611788826114d0565b6000838152600a60205260409020600301546117a49190613177565b8111156117c35760405162461bcd60e51b81526004016109e39061318e565b61170b8282611e25565b6007546001600160a01b031633146117f75760405162461bcd60e51b81526004016109e3906131fd565b6000918252600a602052604090912060060180546001600160a01b0319166001600160a01b03909216919091179055565b6000818152600a60205260409020600101805460609190611540906130d9565b6007546001600160a01b031633146118725760405162461bcd60e51b81526004016109e3906131fd565b6000818152600a602052604081209061188b82826128f2565b6118996001830160006128f2565b5060028101805461ffff1916905560006003820181905560048201819055600582018190556006820180546001600160a01b03191690556007820181905560089091015550565b6001600160a01b0385163314806118fc57506118fc853361087b565b6119185760405162461bcd60e51b81526004016109e390613223565b61112485858585856121bf565b6007546001600160a01b0316331461194f5760405162461bcd60e51b81526004016109e3906131fd565b600780546001600160a01b0319166001600160a01b0392909216919091179055565b6007546001600160a01b0316331461199b5760405162461bcd60e51b81526004016109e3906131fd565b6000918252600a602052604090912060080155565b6007546001600160a01b031633146119da5760405162461bcd60e51b81526004016109e3906131fd565b600980546001600160a01b0319166001600160a01b0392909216919091179055565b6007546001600160a01b03163314611a265760405162461bcd60e51b81526004016109e3906131fd565b6000918252600a602052604090912060050155565b600260005403611a8d5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016109e3565b60026000818155848152600a60205260409020015460ff161515600114611aea5760405162461bcd60e51b8152602060048201526011602482015270149959195b5c1d1a5bdb8818db1bdcd959607a1b60448201526064016109e3565b806000805b82811015611bce576000858583818110611b0b57611b0b6131cf565b6009546040516331a9108f60e11b8152602092909202939093013560048201819052935033926001600160a01b03169150636352211e90602401602060405180830381865afa158015611b62573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611b86919061328b565b6001600160a01b0316148015611bb957506000878152600a6020908152604080832084845260090190915290205460ff16155b15611bc5576001909201915b50600101611aef565b5060008111611c125760405162461bcd60e51b815260206004820152601060248201526f4e6f20656c696769626c65204e46547360801b60448201526064016109e3565b6000858152600a6020526040902060030154611c2d866114d0565b82011115611c4d5760405162461bcd60e51b81526004016109e39061318e565b60005b82811015611cb1576000868152600a60205260408120600191600990910190878785818110611c8157611c816131cf565b60209081029290920135835250810191909152604001600020805460ff1916911515919091179055600101611c50565b50611cbc8582611e25565b50506001600055505050565b6007546001600160a01b03163314611cf25760405162461bcd60e51b81526004016109e3906131fd565b6000918252600a602052604090912060020180549115156101000261ff0019909216919091179055565b606081600003611d435750506040805180820190915260018152600360fc1b602082015290565b8160005b8115611d6d5780611d5781613272565b9150611d669050600a836132be565b9150611d47565b60008167ffffffffffffffff811115611d8857611d88612b17565b6040519080825280601f01601f191660200182016040528015611db2576020820181803683370190505b5090505b8415611e1d57611dc7600183613177565b9150611dd4600a866132d2565b611ddf9060306131e5565b60f81b818381518110611df457611df46131cf565b60200101906001600160f81b031916908160001a905350611e16600a866132be565b9450611db6565b949350505050565b61170b338383600a60006008548152602001908152602001600020600101604051602001611e5391906132e6565b6040516020818303038152906040526122fb565b6000828152600a60205260408082206006015490516331a9108f60e11b8152600481018490526001600160a01b039091169033908290636352211e90602401602060405180830381865afa158015611ec3573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ee7919061328b565b6001600160a01b031614949350505050565b8151835114611f5b5760405162461bcd60e51b815260206004820152602860248201527f455243313135353a2069647320616e6420616d6f756e7473206c656e677468206044820152670dad2e6dac2e8c6d60c31b60648201526084016109e3565b6001600160a01b038416611f815760405162461bcd60e51b81526004016109e39061338d565b33611f90818787878787612420565b60005b8451811015612079576000858281518110611fb057611fb06131cf565b602002602001015190506000858381518110611fce57611fce6131cf565b60209081029190910181015160008481526001835260408082206001600160a01b038e16835290935291909120549091508181101561201f5760405162461bcd60e51b81526004016109e3906133d2565b60008381526001602090815260408083206001600160a01b038e8116855292528083208585039055908b1682528120805484929061205e9084906131e5565b925050819055505050508061207290613272565b9050611f93565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb87876040516120c992919061341c565b60405180910390a461108a818787878787612599565b816001600160a01b0316836001600160a01b0316036121525760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2073657474696e6720617070726f76616c20737461747573604482015268103337b91039b2b63360b91b60648201526084016109e3565b6001600160a01b03838116600081815260026020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6001600160a01b0384166121e55760405162461bcd60e51b81526004016109e39061338d565b3360006121f1856126f4565b905060006121fe856126f4565b905061220e838989858589612420565b60008681526001602090815260408083206001600160a01b038c168452909152902054858110156122515760405162461bcd60e51b81526004016109e3906133d2565b60008781526001602090815260408083206001600160a01b038d8116855292528083208985039055908a168252812080548892906122909084906131e5565b909155505060408051888152602081018890526001600160a01b03808b16928c821692918816917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a46122f0848a8a8a8a8a61273f565b505050505050505050565b6001600160a01b03841661235b5760405162461bcd60e51b815260206004820152602160248201527f455243313135353a206d696e7420746f20746865207a65726f206164647265736044820152607360f81b60648201526084016109e3565b336000612367856126f4565b90506000612374856126f4565b905061238583600089858589612420565b60008681526001602090815260408083206001600160a01b038b168452909152812080548792906123b79084906131e5565b909155505060408051878152602081018790526001600160a01b03808a1692600092918716917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a46124178360008989898961273f565b50505050505050565b6001600160a01b0385166124a75760005b83518110156124a55782818151811061244c5761244c6131cf565b60200260200101516004600086848151811061246a5761246a6131cf565b60200260200101518152602001908152602001600020600082825461248f91906131e5565b9091555061249e905081613272565b9050612431565b505b6001600160a01b03841661108a5760005b83518110156124175760008482815181106124d5576124d56131cf565b6020026020010151905060008483815181106124f3576124f36131cf565b60200260200101519050600060046000848152602001908152602001600020549050818110156125765760405162461bcd60e51b815260206004820152602860248201527f455243313135353a206275726e20616d6f756e74206578636565647320746f74604482015267616c537570706c7960c01b60648201526084016109e3565b6000928352600460205260409092209103905561259281613272565b90506124b8565b6001600160a01b0384163b1561108a5760405163bc197c8160e01b81526001600160a01b0385169063bc197c81906125dd908990899088908890889060040161344a565b6020604051808303816000875af1925050508015612618575060408051601f3d908101601f19168201909252612615918101906134a8565b60015b6126c4576126246134c5565b806308c379a00361265d57506126386134e1565b80612643575061265f565b8060405162461bcd60e51b81526004016109e39190612a09565b505b60405162461bcd60e51b815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e20455243313135356044820152732932b1b2b4bb32b91034b6b83632b6b2b73a32b960611b60648201526084016109e3565b6001600160e01b0319811663bc197c8160e01b146124175760405162461bcd60e51b81526004016109e39061356b565b6040805160018082528183019092526060916000919060208083019080368337019050509050828160008151811061272e5761272e6131cf565b602090810291909101015292915050565b6001600160a01b0384163b1561108a5760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e619061278390899089908890889088906004016135b3565b6020604051808303816000875af19250505080156127be575060408051601f3d908101601f191682019092526127bb918101906134a8565b60015b6127ca576126246134c5565b6001600160e01b0319811663f23a6e6160e01b146124175760405162461bcd60e51b81526004016109e39061356b565b828054612806906130d9565b90600052602060002090601f016020900481019282612828576000855561286e565b82601f1061284157805160ff191683800117855561286e565b8280016001018555821561286e579182015b8281111561286e578251825591602001919060010190612853565b5061287a929150612928565b5090565b82805461288a906130d9565b90600052602060002090601f0160209004810192826128ac576000855561286e565b82601f106128c55782800160ff1982351617855561286e565b8280016001018555821561286e579182015b8281111561286e5782358255916020019190600101906128d7565b5080546128fe906130d9565b6000825580601f1061290e575050565b601f01602090049060005260206000209081019061166891905b5b8082111561287a5760008155600101612929565b6001600160a01b038116811461166857600080fd5b6000806040838503121561296557600080fd5b82356129708161293d565b946020939093013593505050565b6001600160e01b03198116811461166857600080fd5b6000602082840312156129a657600080fd5b8135610c0f8161297e565b60005b838110156129cc5781810151838201526020016129b4565b838111156116ae5750506000910152565b600081518084526129f58160208601602086016129b1565b601f01601f19169290920160200192915050565b602081526000610c0f60208301846129dd565b600060208284031215612a2e57600080fd5b5035919050565b60008060408385031215612a4857600080fd5b50508035926020909101359150565b600080600060408486031215612a6c57600080fd5b83359250602084013567ffffffffffffffff80821115612a8b57600080fd5b818601915086601f830112612a9f57600080fd5b813581811115612aae57600080fd5b8760208260051b8501011115612ac357600080fd5b6020830194508093505050509250925092565b80358015158114612ae657600080fd5b919050565b60008060408385031215612afe57600080fd5b82359150612b0e60208401612ad6565b90509250929050565b634e487b7160e01b600052604160045260246000fd5b601f8201601f1916810167ffffffffffffffff81118282101715612b5357612b53612b17565b6040525050565b600067ffffffffffffffff821115612b7457612b74612b17565b5060051b60200190565b600082601f830112612b8f57600080fd5b81356020612b9c82612b5a565b604051612ba98282612b2d565b83815260059390931b8501820192828101915086841115612bc957600080fd5b8286015b84811015612be45780358352918301918301612bcd565b509695505050505050565b600082601f830112612c0057600080fd5b813567ffffffffffffffff811115612c1a57612c1a612b17565b604051612c31601f8301601f191660200182612b2d565b818152846020838601011115612c4657600080fd5b816020850160208301376000918101602001919091529392505050565b600080600080600060a08688031215612c7b57600080fd5b8535612c868161293d565b94506020860135612c968161293d565b9350604086013567ffffffffffffffff80821115612cb357600080fd5b612cbf89838a01612b7e565b94506060880135915080821115612cd557600080fd5b612ce189838a01612b7e565b93506080880135915080821115612cf757600080fd5b50612d0488828901612bef565b9150509295509295909350565b60008060008060008060008060006101208a8c031215612d3057600080fd5b893567ffffffffffffffff80821115612d4857600080fd5b612d548d838e01612bef565b9a5060208c0135915080821115612d6a57600080fd5b50612d778c828d01612bef565b985050612d8660408b01612ad6565b9650612d9460608b01612ad6565b955060808a0135945060a08a0135935060c08a0135925060e08a0135612db98161293d565b809250506101008a013590509295985092959850929598565b6000610140808352612de68184018e6129dd565b90508281036020840152612dfa818d6129dd565b9a1515604084015250509615156060880152608087019590955260a086019390935260c08501919091526001600160a01b031660e08401526101008301526101209091015292915050565b60008060408385031215612e5857600080fd5b823567ffffffffffffffff80821115612e7057600080fd5b818501915085601f830112612e8457600080fd5b81356020612e9182612b5a565b604051612e9e8282612b2d565b83815260059390931b8501820192828101915089841115612ebe57600080fd5b948201945b83861015612ee5578535612ed68161293d565b82529482019490820190612ec3565b96505086013592505080821115612efb57600080fd5b50612f0885828601612b7e565b9150509250929050565b600081518084526020808501945080840160005b83811015612f4257815187529582019590820190600101612f26565b509495945050505050565b602081526000610c0f6020830184612f12565b600080600060408486031215612f7557600080fd5b83359250602084013567ffffffffffffffff80821115612f9457600080fd5b818601915086601f830112612fa857600080fd5b813581811115612fb757600080fd5b876020828501011115612ac357600080fd5b60008060408385031215612fdc57600080fd5b8235612fe78161293d565b9150612b0e60208401612ad6565b6000806040838503121561300857600080fd5b82359150602083013561301a8161293d565b809150509250929050565b6000806040838503121561303857600080fd5b82356130438161293d565b9150602083013561301a8161293d565b600080600080600060a0868803121561306b57600080fd5b85356130768161293d565b945060208601356130868161293d565b93506040860135925060608601359150608086013567ffffffffffffffff8111156130b057600080fd5b612d0488828901612bef565b6000602082840312156130ce57600080fd5b8135610c0f8161293d565b600181811c908216806130ed57607f821691505b60208210810361310d57634e487b7160e01b600052602260045260246000fd5b50919050565b600083516131258184602088016129b1565b602f60f81b90830190815283516131438160018401602088016129b1565b64173539b7b760d91b60019290910191820152600601949350505050565b634e487b7160e01b600052601160045260246000fd5b60008282101561318957613189613161565b500390565b60208082526008908201526714dbdb19081bdd5d60c21b604082015260600190565b60008160001904831182151516156131ca576131ca613161565b500290565b634e487b7160e01b600052603260045260246000fd5b600082198211156131f8576131f8613161565b500190565b6020808252600c908201526b155b985d5d1a1bdc9a5e995960a21b604082015260600190565b6020808252602f908201527f455243313135353a2063616c6c6572206973206e6f7420746f6b656e206f776e60408201526e195c881b9bdc88185c1c1c9bdd9959608a1b606082015260800190565b60006001820161328457613284613161565b5060010190565b60006020828403121561329d57600080fd5b8151610c0f8161293d565b634e487b7160e01b600052601260045260246000fd5b6000826132cd576132cd6132a8565b500490565b6000826132e1576132e16132a8565b500690565b600060208083526000845481600182811c91508083168061330857607f831692505b858310810361332557634e487b7160e01b85526022600452602485fd5b87860183815260200181801561334257600181146133535761337e565b60ff1986168252878201965061337e565b60008b81526020902060005b868110156133785781548482015290850190890161335f565b83019750505b50949998505050505050505050565b60208082526025908201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604082015264647265737360d81b606082015260800190565b6020808252602a908201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60408201526939103a3930b739b332b960b11b606082015260800190565b60408152600061342f6040830185612f12565b82810360208401526134418185612f12565b95945050505050565b6001600160a01b0386811682528516602082015260a06040820181905260009061347690830186612f12565b82810360608401526134888186612f12565b9050828103608084015261349c81856129dd565b98975050505050505050565b6000602082840312156134ba57600080fd5b8151610c0f8161297e565b600060033d11156134de5760046000803e5060005160e01c5b90565b600060443d10156134ef5790565b6040516003193d81016004833e81513d67ffffffffffffffff816024840111818411171561351f57505050505090565b82850191508151818111156135375750505050505090565b843d87010160208285010111156135515750505050505090565b61356060208286010187612b2d565b509095945050505050565b60208082526028908201527f455243313135353a204552433131353552656365697665722072656a656374656040820152676420746f6b656e7360c01b606082015260800190565b6001600160a01b03868116825285166020820152604081018490526060810183905260a0608082018190526000906135ed908301846129dd565b97965050505050505056fea26469706673582212202b50d1727399dc9edc92ee82e57ea9bee42b326d80e02b30f59df9cbd1cc99d464736f6c634300080d0033

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.