ETH Price: $2,927.94 (-9.66%)
Gas: 39 Gwei

Token

Space Fight Release (SFR)
 

Overview

Max Total Supply

1,411 SFR

Holders

193

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A

Other Info

Filtered by Token Holder
showdeer.eth
0x6b261a3ec2405ae0e8e0546ad6906e65af8b8868
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:
SpaceFightRelease

Compiler Version
v0.8.14+commit.80d49f37

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 19 : SpaceFightRelease.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.14;

import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/interfaces/IERC20.sol";
import "@openzeppelin/contracts/interfaces/IERC721.sol";
import "@openzeppelin/contracts/token/common/ERC2981.sol";
import "@openzeppelin/contracts/token/ERC1155/ERC1155.sol";
import "@openzeppelin/contracts/utils/Address.sol";
import "@openzeppelin/contracts/utils/Strings.sol";
import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol";
import "@openzeppelin/contracts/security/Pausable.sol";

interface SplitMain {
  function createSplit(
    address[] calldata accounts,
    uint32[] calldata percentAllocations,
    uint32 distributorFee,
    address controller
  ) external returns (address);

  function predictImmutableSplitAddress(
    address[] calldata accounts,
    uint32[] calldata percentAllocations,
    uint32 distributorFee
  ) external view returns (address);
}

/*

 ________  ________  ________  ________  _______           ________ ___  ________  ___  ___  _________
|\   ____\|\   __  \|\   __  \|\   ____\|\  ___ \         |\  _____\\  \|\   ____\|\  \|\  \|\___   ___\
\ \  \___|\ \  \|\  \ \  \|\  \ \  \___|\ \   __/|        \ \  \__/\ \  \ \  \___|\ \  \\\  \|___ \  \_|
 \ \_____  \ \   ____\ \   __  \ \  \    \ \  \_|/__       \ \   __\\ \  \ \  \  __\ \   __  \   \ \  \
  \|____|\  \ \  \___|\ \  \ \  \ \  \____\ \  \_|\ \       \ \  \_| \ \  \ \  \|\  \ \  \ \  \   \ \  \
    ____\_\  \ \__\    \ \__\ \__\ \_______\ \_______\       \ \__\   \ \__\ \_______\ \__\ \__\   \ \__\
   |\_________\|__|     \|__|\|__|\|_______|\|_______|        \|__|    \|__|\|_______|\|__|\|__|    \|__|
   \|_________|


* @title ERC1155 contract for Space Fight Releases
*
* @author loltapes.eth
*/
contract SpaceFightRelease is ERC1155, ERC2981, Ownable, Pausable {
  using Strings for uint256;

  event RoyaltyConfigured(uint256 tokenId, address royaltyPayoutAddress, uint256 basisPoints);

  event CreatedSplit(address splitAddress, address[] receivers, uint32[] percentages);

  uint256 constant public RELEASE_DENOMINATOR = 10_000;

  SplitMain immutable public splitterFactory;

  // Token name
  string constant public name = "Space Fight Release";

  // Token symbol
  string constant public symbol = "SFR";

  // @notice configuration of a single release
  struct Release {
    uint96 mintPrice;
    uint64 maxSupply;
    uint64 teamReserve;
    uint8 walletMintLimit;
    uint8 txMintLimit;
    uint16 tracksAmount;
    string metadataUri;
  }

  // releaseId => Release
  mapping(uint256 => Release) public releases;

  // releaseId => mintedSupply
  mapping(uint256 => uint256) public mintedSupply;

  // releaseId => (wallet => amount minted)
  mapping(uint256 => mapping(address => uint256)) public minted;

  // @notice indicates which release is currently up for sale
  uint256 public releaseIdForSale;

  // @notice Current root for reserved sale proofs
  bytes32 public currentMerkleRoot;

  // @notice Address to withdraw contract funds (from minting; royalties are set up separately).
  //   Should be updated with each release to a payment splitter involving relevant parties.
  address public mintPayoutAddress;

  // @notice Payout address of the core team. Will be combined with artist addresses for token based royalty splits.
  address public coreTeamPayoutAddress;

  // @notice Keeps track of royalty splits created using {splitterFactory}.
  address[] public createdSplits;

  uint96 public defaultRoyaltyBasisPoints;

  uint256 public releaseCounter;

  constructor(
    address _mintPayoutAddress,
    address _teamPayoutAddress,
    address _splitterFactoryAddress
  ) ERC1155("") {
    // payment
    mintPayoutAddress = _mintPayoutAddress;
    coreTeamPayoutAddress = _teamPayoutAddress;

    splitterFactory = SplitMain(_splitterFactoryAddress);

    setDefaultRoyalty(coreTeamPayoutAddress, 1000);

    // start sales paused
    _pause();
  }

  // region Configuration

  function addRelease(
    uint96 mintPrice,
    uint64 maxSupply,
    uint64 teamReserve,
    uint8 walletMintLimit,
    uint8 txMintLimit,
    uint16 tracksAmount,
    address[] calldata artistAddresses,
    string calldata metadataUri
  )
  external
  onlyOwner
  {
    // start at id 1
    uint256 releaseId = ++releaseCounter;

    require(maxSupply > 0, "Supply must be > 0");
    require(maxSupply >= teamReserve, "Max supply must be >= team reserve");
    require(teamReserve > 0, "Must mint 1 by default");

    require(tracksAmount < RELEASE_DENOMINATOR, "Tracks amount over limit");
    require(artistAddresses.length == tracksAmount, "Specify one artist address per track");

    releases[releaseId] = Release(
      mintPrice,
      maxSupply,
      teamReserve - 1,
      walletMintLimit,
      txMintLimit,
      tracksAmount,
      metadataUri
    );

    // mint one release by default and set the remainder of team reserve to be mintable later
    mintInternal(msg.sender, releaseId, tracksAmount, 1);

    for (uint256 i = 0; i < tracksAmount;) {
      // required as per ERC1155 standard
      uint256 tokenId = toTokenId(releaseId, i + 1);
      emit URI(uri(tokenId), tokenId);

      // configure royalties
      setTokenRoyaltyForArtist(tokenId, artistAddresses[i], defaultRoyaltyBasisPoints);

      unchecked{++i;}
    }
  }

  function setMintPrice(uint256 releaseId, uint96 mintPrice) external onlyOwner whenReleaseExists(releaseId) {
    releases[releaseId].mintPrice = mintPrice;
  }

  function reduceMaxSupply(uint256 releaseId, uint64 maxSupply) external onlyOwner whenReleaseExists(releaseId) {
    uint256 currentSupply = totalReleaseSupply(releaseId);
    require(maxSupply >= currentSupply + releases[releaseId].teamReserve, "New supply below existing/reserved supply");
    require(maxSupply <= releases[releaseId].maxSupply, "Can only reduce supply");
    releases[releaseId].maxSupply = maxSupply;
  }

  // @notice Sets maximum mints per wallet. Setting to '0' removes any limitation.
  function setWalletMintLimit(uint256 releaseId, uint8 limit) external onlyOwner whenReleaseExists(releaseId) {
    releases[releaseId].walletMintLimit = limit;
  }

  // @notice Sets maximum mints per tx. Setting to '0' removes any limitation.
  function setTxMintLimit(uint256 releaseId, uint8 limit) external onlyOwner whenReleaseExists(releaseId) {
    releases[releaseId].txMintLimit = limit;
  }

  function setMetadataUri(uint256 releaseId, string calldata metadataUri) external onlyOwner whenReleaseExists(releaseId) {
    releases[releaseId].metadataUri = metadataUri;

    uint16 tracksAmount = releases[releaseId].tracksAmount;
    for (uint256 i = 0; i < tracksAmount;) {
      // required as per ERC1155 standard
      uint256 tokenId = toTokenId(releaseId, ++i);
      emit URI(uri(tokenId), tokenId);
    }
  }

  // @notice Mints {amount} tokens of remaining team reserve to address {to}
  function mintTeamReserve(uint256 releaseId, address to, uint64 amount) external onlyOwner whenReleaseExists(releaseId) {
    require(releases[releaseId].teamReserve >= amount, "Over team reserve");
    releases[releaseId].teamReserve -= amount;

    uint16 tracksAmount = releases[releaseId].tracksAmount;
    mintInternal(to, releaseId, tracksAmount, amount);
  }

  function uri(uint256 tokenId) public view override returns (string memory) {
    (uint256 releaseId, uint256 trackId) = toReleaseAndTrackIds(tokenId);
    require(mintedSupply[releaseId] > 0, "Invalid release");
    require(trackId <= releases[releaseId].tracksAmount, "Invalid track");

    string storage metadataUri = releases[releaseId].metadataUri;
    if (bytes(metadataUri).length > 0) {
      return string(abi.encodePacked(metadataUri, trackId.toString()));
    } else {
      return "";
    }
  }

  // endregion

  // region Sale

  // @notice Returns the current sale state. (0=paused/not for sale, 1=reserved, 2=public)
  function saleState() external view returns (uint256 state) {
    if (paused() || releaseIdForSale == 0) {
      // paused / nothing for sale
      return 0;
    } else if (currentMerkleRoot != 0) {
      // reserved
      return 1;
    } else {
      // public
      return 2;
    }
  }

  function startPublicSale(uint256 releaseId) external onlyOwner whenPaused whenReleaseExists(releaseId) {
    releaseIdForSale = releaseId;
    currentMerkleRoot = 0;
    _unpause();
  }

  function startReservedSale(uint256 releaseId, bytes32 merkleRoot) external onlyOwner whenPaused whenReleaseExists(releaseId) {
    releaseIdForSale = releaseId;
    currentMerkleRoot = merkleRoot;
    _unpause();
  }

  function pauseSale() external onlyOwner whenNotPaused {
    _pause();
  }

  function endSale() external onlyOwner {
    _endSale();
  }

  function _endSale() internal whenNotPaused {
    releaseIdForSale = 0;
    currentMerkleRoot = 0;
    _pause();
  }

  function mintSale(uint256 amount, bytes32[] calldata proof) external payable whenNotPaused whenReleaseExists(releaseIdForSale) {
    // Reserved sale validation
    if (currentMerkleRoot != 0) {
      require(
        MerkleProof.verify(proof, currentMerkleRoot, keccak256(abi.encodePacked(msg.sender))),
        "Invalid merkle proof"
      );
    }

    // require to mint at least one
    require(amount > 0, "Must mint at least one");

    Release storage release = releases[releaseIdForSale];

    // tx limit (0 == no limit)
    if (release.txMintLimit > 0) {
      require(amount <= release.txMintLimit, "Over tx mint limit");
    }

    // require exact payment
    require(msg.value == amount * release.mintPrice, "Wrong ETH amount");

    // enforce per wallet mint limit (0 == no limit)
    if (release.walletMintLimit > 0) {
      require(minted[releaseIdForSale][msg.sender] + amount <= release.walletMintLimit, "Over wallet mint limit");
    }

    // require enough mintable supply
    uint256 newTotalSupply = totalReleaseSupply(releaseIdForSale) + amount;
    uint256 maxMintableSupply = release.maxSupply - release.teamReserve;
    require(newTotalSupply <= maxMintableSupply, "Over mintable supply");

    mintInternal(msg.sender, releaseIdForSale, release.tracksAmount, amount);

    // finish sale automatically
    if (newTotalSupply == maxMintableSupply) {
      _endSale();
    }
  }

  function mintSpecial(
    uint256 releaseId,
    address[] calldata to,
    uint256[] calldata amounts
  ) external onlyOwner {
    require(to.length == amounts.length, "Recipients and amounts must match");
    uint256 amount = to.length;
    uint256 tokenId = toTokenId(releaseId, 0);
    for (uint256 i = 0; i < amount;) {
      _mint(to[i], tokenId, amounts[i], "");
    unchecked {++i;}
    }
  }

  function mintInternal(address to, uint256 releaseId, uint256 tracksAmount, uint256 amount) internal {
    minted[releaseId][to] = minted[releaseId][to] + amount;
    mintedSupply[releaseId] = mintedSupply[releaseId] + amount;

    uint256[] memory ids = new uint256[](tracksAmount);
    uint256[] memory amounts = new uint256[](tracksAmount);

    for (uint256 i = 0; i < tracksAmount;) {
      // start with track id 1
      ids[i] = toTokenId(releaseId, i + 1);
      amounts[i] = amount;

    unchecked {++i;}
    }

    _mintBatch(to, ids, amounts, "");
  }

  function setMerkleRoot(bytes32 merkleRoot) external onlyOwner {
    currentMerkleRoot = merkleRoot;
  }

  // endregion

  // region Payment / Royalties

  receive() external payable {}

  function setMintPayoutAddress(address payoutAddress) external onlyOwner {
    mintPayoutAddress = payoutAddress;
  }

  function setTeamPayoutAddress(address payoutAddress) external onlyOwner {
    coreTeamPayoutAddress = payoutAddress;
  }

  function withdraw() external onlyOwner {
    Address.sendValue(payable(mintPayoutAddress), address(this).balance);
  }

  // @notice Set default token royalty
  // @param basis points (using 2 decimals - 10_000 = 100%, 100 = 1%)
  function setDefaultRoyalty(address receiver, uint96 basisPoints) public onlyOwner {
    defaultRoyaltyBasisPoints = basisPoints;
    _setDefaultRoyalty(receiver, basisPoints);
  }

  // @notice Set royalty for a single token by creating a split between the team and artist (using 0xSplits). The split
  //   is always created at a 50/50 rate between team and artist.
  //
  // @param tokenId The token id (see also {toTokenId}) to set the royalty for
  // @param artistAddress Address to receive part of the royalty split. Zero address resets the royalty for this token.
  // @param basisPoints Royalty in basis points (1pt = 0.01%). Pass 0 to use {defaultRoyaltyBasisPoints}.
  function setTokenRoyaltyForArtist(
    uint256 tokenId,
    address artistAddress,
    uint96 basisPoints
  ) public onlyOwner {
    if (artistAddress == address(0)) {
      _resetTokenRoyalty(tokenId);
      return;
    }

    address[] memory recipients = new address[](2);
    // needs to be ordered
    if (artistAddress > coreTeamPayoutAddress) {
      recipients[0] = coreTeamPayoutAddress;
      recipients[1] = artistAddress;
    } else {
      recipients[0] = artistAddress;
      recipients[1] = coreTeamPayoutAddress;
    }

    uint32[] memory percentages = new uint32[](2);
    percentages[0] = uint32(50_0000);
    percentages[1] = uint32(50_0000);

    address predictedRoyaltyPayoutAddress = splitterFactory.predictImmutableSplitAddress(recipients, percentages, 0);

    if (Address.isContract(predictedRoyaltyPayoutAddress)) {
      setTokenRoyalty(tokenId, predictedRoyaltyPayoutAddress, basisPoints);
    } else {
      address royaltyPayoutAddress = splitterFactory.createSplit(recipients, percentages, 0, address(0));
      emit CreatedSplit(royaltyPayoutAddress, recipients, percentages);
      createdSplits.push(royaltyPayoutAddress);
      setTokenRoyalty(tokenId, royaltyPayoutAddress, basisPoints);
    }
  }

  // @notice Set royalty for a single token. This can be used to give the artist a different share than 50%.
  //
  // @param tokenId The token id (see also {toTokenId}) to set the royalty for.
  // @param receiver Address to receive the royalty. Cannot pass the zero address.
  // @param basisPoints Royalty in basis points (1pt = 0.01%). Pass 0 to use {defaultRoyaltyBasisPoints}.
  function setTokenRoyalty(uint256 tokenId, address receiver, uint96 basisPoints) public onlyOwner {
    uint96 royaltyAmount = basisPoints == 0 ? defaultRoyaltyBasisPoints : basisPoints;
    _setTokenRoyalty(tokenId, receiver, royaltyAmount);
    emit RoyaltyConfigured(tokenId, receiver, royaltyAmount);
  }

  // @dev allow to retrieve ERC20 tokens sent to the contract
  function withdrawERC20(IERC20 token, address toAddress, uint256 amount) external onlyOwner {
    token.transfer(toAddress, amount);
  }

  // @dev allow to retrieve ERC721 tokens sent to the contract
  function withdrawERC721(IERC721 token, address toAddress, uint256 tokenId) external onlyOwner {
    token.transferFrom(address(this), toAddress, tokenId);
  }

  // @dev allow to retrieve ERC1155 tokens sent to the contract
  function withdrawERC1155(IERC1155 token, address toAddress, uint256 tokenId) external onlyOwner {
    token.safeTransferFrom(address(this), toAddress, tokenId, token.balanceOf(address(this), tokenId), "");
  }

  // endregion

  // region Default Overrides

  function supportsInterface(bytes4 interfaceId)
  public
  view
  virtual
  override(ERC1155, ERC2981)
  returns (bool)
  {
    return super.supportsInterface(interfaceId);
  }

  // endregion

  // region Utilities

  function totalReleaseSupply(uint256 releaseId) public view whenReleaseExists(releaseId) returns (uint256) {
    return mintedSupply[releaseId];
  }

  /**
   * @notice Decodes a token id into the release id and track id.
   *
   * Token Schema: RTTTT
   * - R: Release ID; multiple of 10_000
   * - T: Track ID; 0-9999
   */
  function toReleaseAndTrackIds(uint256 tokenId) public pure returns (uint256 releaseId, uint256 trackId) {
    return (tokenId / RELEASE_DENOMINATOR, tokenId % RELEASE_DENOMINATOR);
  }

  /**
   * @notice Encodes a release id and track id into a token id.
   *
   * Token Schema: RTTTT
   * - R: Release ID; multiple of 10_000
   * - T: Track ID; 0-9999
   */
  function toTokenId(uint256 releaseId, uint256 trackId) public pure returns (uint256 tokenId) {
    require(trackId < RELEASE_DENOMINATOR, "Track ID out of bounds");
    return releaseId * RELEASE_DENOMINATOR + trackId;
  }

  modifier whenReleaseExists(uint256 releaseId) {
    require(mintedSupply[releaseId] > 0, "Invalid release");
    _;
  }

  // endregion
}

/* Contract by loltapes.eth
          _       _ _
    ____ | |     | | |
   / __ \| | ___ | | |_ __ _ _ __   ___  ___
  / / _` | |/ _ \| | __/ _` | '_ \ / _ \/ __|
 | | (_| | | (_) | | || (_| | |_) |  __/\__ \
  \ \__,_|_|\___/|_|\__\__,_| .__/ \___||___/
   \____/                   | |
                            |_|
*/

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

pragma solidity ^0.8.0;

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

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

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

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

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

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
        _;
    }

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions anymore. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby removing any functionality that is only available to the owner.
     */
    function renounceOwnership() public virtual onlyOwner {
        _transferOwnership(address(0));
    }

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

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

File 3 of 19 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (interfaces/IERC20.sol)

pragma solidity ^0.8.0;

import "../token/ERC20/IERC20.sol";

File 4 of 19 : IERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (interfaces/IERC721.sol)

pragma solidity ^0.8.0;

import "../token/ERC721/IERC721.sol";

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

        return (royalty.receiver, royaltyAmount);
    }

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

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

        _defaultRoyaltyInfo = RoyaltyInfo(receiver, feeNumerator);
    }

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

        return batchBalances;
    }

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

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

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

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

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

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

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

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

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

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

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

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

        address operator = _msgSender();

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        address operator = _msgSender();

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

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

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

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

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

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

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

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

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

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

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

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

        address operator = _msgSender();

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

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

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

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

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

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

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

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

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

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

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

        return array;
    }
}

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

pragma solidity ^0.8.1;

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

        return account.code.length > 0;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

File 8 of 19 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Strings.sol)

pragma solidity ^0.8.0;

/**
 * @dev String operations.
 */
library Strings {
    bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef";

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

File 9 of 19 : MerkleProof.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (utils/cryptography/MerkleProof.sol)

pragma solidity ^0.8.0;

/**
 * @dev These functions deal with verification of Merkle Trees proofs.
 *
 * The proofs can be generated using the JavaScript library
 * https://github.com/miguelmota/merkletreejs[merkletreejs].
 * Note: the hashing algorithm should be keccak256 and pair sorting should be enabled.
 *
 * See `test/utils/cryptography/MerkleProof.test.js` for some examples.
 *
 * WARNING: You should avoid using leaf values that are 64 bytes long prior to
 * hashing, or use a hash function other than keccak256 for hashing leaves.
 * This is because the concatenation of a sorted pair of internal nodes in
 * the merkle tree could be reinterpreted as a leaf value.
 */
library MerkleProof {
    /**
     * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree
     * defined by `root`. For this, a `proof` must be provided, containing
     * sibling hashes on the branch from the leaf to the root of the tree. Each
     * pair of leaves and each pair of pre-images are assumed to be sorted.
     */
    function verify(
        bytes32[] memory proof,
        bytes32 root,
        bytes32 leaf
    ) internal pure returns (bool) {
        return processProof(proof, leaf) == root;
    }

    /**
     * @dev Returns the rebuilt hash obtained by traversing a Merkle tree up
     * from `leaf` using `proof`. A `proof` is valid if and only if the rebuilt
     * hash matches the root of the tree. When processing the proof, the pairs
     * of leafs & pre-images are assumed to be sorted.
     *
     * _Available since v4.4._
     */
    function processProof(bytes32[] memory proof, bytes32 leaf) internal pure returns (bytes32) {
        bytes32 computedHash = leaf;
        for (uint256 i = 0; i < proof.length; i++) {
            bytes32 proofElement = proof[i];
            if (computedHash <= proofElement) {
                // Hash(current computed hash + current element of the proof)
                computedHash = _efficientHash(computedHash, proofElement);
            } else {
                // Hash(current element of the proof + current computed hash)
                computedHash = _efficientHash(proofElement, computedHash);
            }
        }
        return computedHash;
    }

    function _efficientHash(bytes32 a, bytes32 b) private pure returns (bytes32 value) {
        assembly {
            mstore(0x00, a)
            mstore(0x20, b)
            value := keccak256(0x00, 0x40)
        }
    }
}

File 10 of 19 : Pausable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (security/Pausable.sol)

pragma solidity ^0.8.0;

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

/**
 * @dev Contract module which allows children to implement an emergency stop
 * mechanism that can be triggered by an authorized account.
 *
 * This module is used through inheritance. It will make available the
 * modifiers `whenNotPaused` and `whenPaused`, which can be applied to
 * the functions of your contract. Note that they will not be pausable by
 * simply including this module, only once the modifiers are put in place.
 */
abstract contract Pausable is Context {
    /**
     * @dev Emitted when the pause is triggered by `account`.
     */
    event Paused(address account);

    /**
     * @dev Emitted when the pause is lifted by `account`.
     */
    event Unpaused(address account);

    bool private _paused;

    /**
     * @dev Initializes the contract in unpaused state.
     */
    constructor() {
        _paused = false;
    }

    /**
     * @dev Returns true if the contract is paused, and false otherwise.
     */
    function paused() public view virtual returns (bool) {
        return _paused;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is not paused.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    modifier whenNotPaused() {
        require(!paused(), "Pausable: paused");
        _;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is paused.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    modifier whenPaused() {
        require(paused(), "Pausable: not paused");
        _;
    }

    /**
     * @dev Triggers stopped state.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    function _pause() internal virtual whenNotPaused {
        _paused = true;
        emit Paused(_msgSender());
    }

    /**
     * @dev Returns to normal state.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    function _unpause() internal virtual whenPaused {
        _paused = false;
        emit Unpaused(_msgSender());
    }
}

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

pragma solidity ^0.8.0;

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

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

File 12 of 19 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

    /**
     * @dev Emitted when the allowance of a `spender` for an `owner` is set by
     * a call to {approve}. `value` is the new allowance.
     */
    event Approval(address indexed owner, address indexed spender, uint256 value);

    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns the amount of tokens owned by `account`.
     */
    function balanceOf(address account) external view returns (uint256);

    /**
     * @dev Moves `amount` tokens from the caller's account to `to`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address to, uint256 amount) external returns (bool);

    /**
     * @dev Returns the remaining number of tokens that `spender` will be
     * allowed to spend on behalf of `owner` through {transferFrom}. This is
     * zero by default.
     *
     * This value changes when {approve} or {transferFrom} are called.
     */
    function allowance(address owner, address spender) external view returns (uint256);

    /**
     * @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * IMPORTANT: Beware that changing an allowance with this method brings the risk
     * that someone may use both the old and the new allowance by unfortunate
     * transaction ordering. One possible solution to mitigate this race
     * condition is to first reduce the spender's allowance to 0 and set the
     * desired value afterwards:
     * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
     *
     * Emits an {Approval} event.
     */
    function approve(address spender, uint256 amount) external returns (bool);

    /**
     * @dev Moves `amount` tokens from `from` to `to` using the
     * allowance mechanism. `amount` is then deducted from the caller's
     * allowance.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(
        address from,
        address to,
        uint256 amount
    ) external returns (bool);
}

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

File 14 of 19 : 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 15 of 19 : IERC2981.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (interfaces/IERC2981.sol)

pragma solidity ^0.8.0;

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_mintPayoutAddress","type":"address"},{"internalType":"address","name":"_teamPayoutAddress","type":"address"},{"internalType":"address","name":"_splitterFactoryAddress","type":"address"}],"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":false,"internalType":"address","name":"splitAddress","type":"address"},{"indexed":false,"internalType":"address[]","name":"receivers","type":"address[]"},{"indexed":false,"internalType":"uint32[]","name":"percentages","type":"uint32[]"}],"name":"CreatedSplit","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"address","name":"royaltyPayoutAddress","type":"address"},{"indexed":false,"internalType":"uint256","name":"basisPoints","type":"uint256"}],"name":"RoyaltyConfigured","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"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[],"name":"RELEASE_DENOMINATOR","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint96","name":"mintPrice","type":"uint96"},{"internalType":"uint64","name":"maxSupply","type":"uint64"},{"internalType":"uint64","name":"teamReserve","type":"uint64"},{"internalType":"uint8","name":"walletMintLimit","type":"uint8"},{"internalType":"uint8","name":"txMintLimit","type":"uint8"},{"internalType":"uint16","name":"tracksAmount","type":"uint16"},{"internalType":"address[]","name":"artistAddresses","type":"address[]"},{"internalType":"string","name":"metadataUri","type":"string"}],"name":"addRelease","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"accounts","type":"address[]"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"}],"name":"balanceOfBatch","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"coreTeamPayoutAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"createdSplits","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"currentMerkleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"defaultRoyaltyBasisPoints","outputs":[{"internalType":"uint96","name":"","type":"uint96"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"endSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mintPayoutAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes32[]","name":"proof","type":"bytes32[]"}],"name":"mintSale","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"releaseId","type":"uint256"},{"internalType":"address[]","name":"to","type":"address[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"}],"name":"mintSpecial","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"releaseId","type":"uint256"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint64","name":"amount","type":"uint64"}],"name":"mintTeamReserve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"address","name":"","type":"address"}],"name":"minted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"mintedSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pauseSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"releaseId","type":"uint256"},{"internalType":"uint64","name":"maxSupply","type":"uint64"}],"name":"reduceMaxSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"releaseCounter","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"releaseIdForSale","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"releases","outputs":[{"internalType":"uint96","name":"mintPrice","type":"uint96"},{"internalType":"uint64","name":"maxSupply","type":"uint64"},{"internalType":"uint64","name":"teamReserve","type":"uint64"},{"internalType":"uint8","name":"walletMintLimit","type":"uint8"},{"internalType":"uint8","name":"txMintLimit","type":"uint8"},{"internalType":"uint16","name":"tracksAmount","type":"uint16"},{"internalType":"string","name":"metadataUri","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"uint256","name":"_salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256[]","name":"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":[],"name":"saleState","outputs":[{"internalType":"uint256","name":"state","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint96","name":"basisPoints","type":"uint96"}],"name":"setDefaultRoyalty","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"merkleRoot","type":"bytes32"}],"name":"setMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"releaseId","type":"uint256"},{"internalType":"string","name":"metadataUri","type":"string"}],"name":"setMetadataUri","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"payoutAddress","type":"address"}],"name":"setMintPayoutAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"releaseId","type":"uint256"},{"internalType":"uint96","name":"mintPrice","type":"uint96"}],"name":"setMintPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"payoutAddress","type":"address"}],"name":"setTeamPayoutAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint96","name":"basisPoints","type":"uint96"}],"name":"setTokenRoyalty","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"address","name":"artistAddress","type":"address"},{"internalType":"uint96","name":"basisPoints","type":"uint96"}],"name":"setTokenRoyaltyForArtist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"releaseId","type":"uint256"},{"internalType":"uint8","name":"limit","type":"uint8"}],"name":"setTxMintLimit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"releaseId","type":"uint256"},{"internalType":"uint8","name":"limit","type":"uint8"}],"name":"setWalletMintLimit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"splitterFactory","outputs":[{"internalType":"contract SplitMain","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"releaseId","type":"uint256"}],"name":"startPublicSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"releaseId","type":"uint256"},{"internalType":"bytes32","name":"merkleRoot","type":"bytes32"}],"name":"startReservedSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"toReleaseAndTrackIds","outputs":[{"internalType":"uint256","name":"releaseId","type":"uint256"},{"internalType":"uint256","name":"trackId","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"releaseId","type":"uint256"},{"internalType":"uint256","name":"trackId","type":"uint256"}],"name":"toTokenId","outputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"releaseId","type":"uint256"}],"name":"totalReleaseSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"uri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC1155","name":"token","type":"address"},{"internalType":"address","name":"toAddress","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"withdrawERC1155","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"token","type":"address"},{"internalType":"address","name":"toAddress","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdrawERC20","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC721","name":"token","type":"address"},{"internalType":"address","name":"toAddress","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"withdrawERC721","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]

60a06040523480156200001157600080fd5b50604051620051133803806200511383398101604081905262000034916200041f565b6040805160208101909152600081526200004e81620000ba565b506200005a33620000d3565b6005805460ff60a01b19169055600b80546001600160a01b038086166001600160a01b031992831617909255600c8054858416921682179055908216608052620000a7906103e862000125565b620000b1620001ac565b505050620004a5565b8051620000cf9060029060208401906200035c565b5050565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6005546001600160a01b03163314620001855760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064015b60405180910390fd5b600e80546001600160601b0319166001600160601b038316179055620000cf82826200025b565b620001c0600554600160a01b900460ff1690565b15620002025760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b60448201526064016200017c565b6005805460ff60a01b1916600160a01b1790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586200023e3390565b6040516001600160a01b03909116815260200160405180910390a1565b6127106001600160601b0382161115620002cb5760405162461bcd60e51b815260206004820152602a60248201527f455243323938313a20726f79616c7479206665652077696c6c206578636565646044820152692073616c65507269636560b01b60648201526084016200017c565b6001600160a01b038216620003235760405162461bcd60e51b815260206004820152601960248201527f455243323938313a20696e76616c69642072656365697665720000000000000060448201526064016200017c565b604080518082019091526001600160a01b039092168083526001600160601b039091166020909201829052600160a01b90910217600355565b8280546200036a9062000469565b90600052602060002090601f0160209004810192826200038e5760008555620003d9565b82601f10620003a957805160ff1916838001178555620003d9565b82800160010185558215620003d9579182015b82811115620003d9578251825591602001919060010190620003bc565b50620003e7929150620003eb565b5090565b5b80821115620003e75760008155600101620003ec565b80516001600160a01b03811681146200041a57600080fd5b919050565b6000806000606084860312156200043557600080fd5b620004408462000402565b9250620004506020850162000402565b9150620004606040850162000402565b90509250925092565b600181811c908216806200047e57607f821691505b6020821081036200049f57634e487b7160e01b600052602260045260246000fd5b50919050565b608051614c44620004cf600039600081816106de015281816111a6015261125c0152614c446000f3fe6080604052600436106103385760003560e01c80635c975abb116101ab57806395d89b41116100f7578063e1441de311610095578063e9a8827f1161006f578063e9a8827f14610a5b578063f242432a14610a7b578063f2fde38b14610a9b578063f45bab2514610abb57600080fd5b8063e1441de3146109d2578063e532d448146109f2578063e985e9c514610a1257600080fd5b8063a22cb465116100d1578063a22cb4651461093f578063b1e88fc71461095f578063b6a9f40f1461097f578063c3ba8a48146109b257600080fd5b806395d89b41146108da57806397168ea1146109095780639ea971901461092957600080fd5b806375a1c96a11610164578063883aa7711161013e578063883aa7711461083757806389c17a5c146108575780638da5cb5b1461088f578063919956ef146108ad57600080fd5b806375a1c96a146107e1578063782588f1146107f75780637cb647591461081757600080fd5b80635c975abb14610720578063603f4d521461073f5780636273f2ff146107545780636887a0e514610774578063715018a6146107ac57806374817d9b146107c157600080fd5b80632c23ad78116102855780633ccfd60b116102235780634e1273f4116101fd5780634e1273f41461068a57806355367ba9146106b75780635608d9e5146106cc5780635944c7531461070057600080fd5b80633ccfd60b146106355780634025feb21461064a57806344004cc11461066a57600080fd5b8063331ec59f1161025f578063331ec59f146105c0578063338eac01146105e057806333aa822e14610600578063380d831b1461062057600080fd5b80632c23ad781461056d5780632eb2c2d61461058d5780632f8af9df146105ad57600080fd5b8063094fb1e2116102f257806319c06534116102cc57806319c06534146104d857806329a34b5e146104ee5780632a55205a1461050e5780632baea1f71461054d57600080fd5b8063094fb1e21461046d5780630e89341c146104a2578063187f615f146104c257600080fd5b8062fdd58e1461034457806301ffc9a71461037757806304634d8d146103a7578063050a38d1146103c957806306fdde03146103e9578063087cdf201461043557600080fd5b3661033f57005b600080fd5b34801561035057600080fd5b5061036461035f366004613b17565b610adb565b6040519081526020015b60405180910390f35b34801561038357600080fd5b50610397610392366004613b59565b610b72565b604051901515815260200161036e565b3480156103b357600080fd5b506103c76103c2366004613b92565b610b83565b005b3480156103d557600080fd5b506103c76103e4366004613bde565b610bd6565b3480156103f557600080fd5b506104286040518060400160405280601381526020017253706163652046696768742052656c6561736560681b81525081565b60405161036e9190613c74565b34801561044157600080fd5b50600c54610455906001600160a01b031681565b6040516001600160a01b03909116815260200161036e565b34801561047957600080fd5b5061048d610488366004613c87565b610d17565b6040805192835260208301919091520161036e565b3480156104ae57600080fd5b506104286104bd366004613c87565b610d3b565b3480156104ce57600080fd5b5061036461271081565b3480156104e457600080fd5b5061036460095481565b3480156104fa57600080fd5b50610455610509366004613c87565b610e47565b34801561051a57600080fd5b5061052e610529366004613ca0565b610e71565b604080516001600160a01b03909316835260208301919091520161036e565b34801561055957600080fd5b506103c7610568366004613cc2565b610f1f565b34801561057957600080fd5b506103c7610588366004613ce5565b610fa5565b34801561059957600080fd5b506103c76105a8366004613e63565b611377565b6103c76105bb366004613f54565b611407565b3480156105cc57600080fd5b50600b54610455906001600160a01b031681565b3480156105ec57600080fd5b506103c76105fb366004613ca0565b611779565b34801561060c57600080fd5b5061036461061b366004613ca0565b61180b565b34801561062c57600080fd5b506103c7611875565b34801561064157600080fd5b506103c76118a9565b34801561065657600080fd5b506103c7610665366004613f9f565b6118e9565b34801561067657600080fd5b506103c7610685366004613f9f565b611978565b34801561069657600080fd5b506106aa6106a5366004613fe0565b611a1b565b60405161036e91906140e7565b3480156106c357600080fd5b506103c7611b44565b3480156106d857600080fd5b506104557f000000000000000000000000000000000000000000000000000000000000000081565b34801561070c57600080fd5b506103c761071b366004613ce5565b611ba0565b34801561072c57600080fd5b50600554600160a01b900460ff16610397565b34801561074b57600080fd5b50610364611c51565b34801561076057600080fd5b506103c761076f3660046140fa565b611c8e565b34801561078057600080fd5b5061036461078f366004614117565b600860209081526000928352604080842090915290825290205481565b3480156107b857600080fd5b506103c7611cda565b3480156107cd57600080fd5b506103c76107dc366004613c87565b611d0e565b3480156107ed57600080fd5b50610364600f5481565b34801561080357600080fd5b506103c7610812366004614147565b611da0565b34801561082357600080fd5b506103c7610832366004613c87565b611f3f565b34801561084357600080fd5b506103c76108523660046141ab565b611f6e565b34801561086357600080fd5b50600e54610877906001600160601b031681565b6040516001600160601b03909116815260200161036e565b34801561089b57600080fd5b506005546001600160a01b0316610455565b3480156108b957600080fd5b506103646108c8366004613c87565b60076020526000908152604090205481565b3480156108e657600080fd5b506104286040518060400160405280600381526020016229a32960e91b81525081565b34801561091557600080fd5b50610364610924366004613c87565b612069565b34801561093557600080fd5b50610364600a5481565b34801561094b57600080fd5b506103c761095a3660046141f7565b6120ae565b34801561096b57600080fd5b506103c761097a366004614236565b6120b9565b34801561098b57600080fd5b5061099f61099a366004613c87565b61213e565b60405161036e9796959493929190614259565b3480156109be57600080fd5b506103c76109cd3660046140fa565b612230565b3480156109de57600080fd5b506103c76109ed3660046142bd565b61227c565b3480156109fe57600080fd5b506103c7610a0d366004613f9f565b6126b8565b348015610a1e57600080fd5b50610397610a2d36600461439c565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205460ff1690565b348015610a6757600080fd5b506103c7610a76366004614236565b6127ab565b348015610a8757600080fd5b506103c7610a963660046143ca565b612830565b348015610aa757600080fd5b506103c7610ab63660046140fa565b6128b7565b348015610ac757600080fd5b506103c7610ad6366004614432565b612952565b60006001600160a01b038316610b4c5760405162461bcd60e51b815260206004820152602b60248201527f455243313135353a2062616c616e636520717565727920666f7220746865207a60448201526a65726f206164647265737360a81b60648201526084015b60405180910390fd5b506000908152602081815260408083206001600160a01b03949094168352929052205490565b6000610b7d82612a5a565b92915050565b6005546001600160a01b03163314610bad5760405162461bcd60e51b8152600401610b43906144ab565b600e80546001600160601b0319166001600160601b038316179055610bd28282612a7f565b5050565b6005546001600160a01b03163314610c005760405162461bcd60e51b8152600401610b43906144ab565b6000838152600760205260409020548390610c2d5760405162461bcd60e51b8152600401610b43906144e0565b6000848152600660205260409020546001600160401b03808416600160a01b909204161015610c925760405162461bcd60e51b81526020600482015260116024820152704f766572207465616d207265736572766560781b6044820152606401610b43565b60008481526006602052604090208054839190601490610cc3908490600160a01b90046001600160401b031661451f565b82546101009290920a6001600160401b03818102199093169183160217909155600086815260066020526040902054600160f01b900461ffff169150610d10908590879084908716612b39565b5050505050565b600080610d266127108461455d565b610d3261271085614571565b91509150915091565b6060600080610d4984610d17565b6000828152600760205260409020549193509150610d795760405162461bcd60e51b8152600401610b43906144e0565b600082815260066020526040902054600160f01b900461ffff16811115610dd25760405162461bcd60e51b815260206004820152600d60248201526c496e76616c696420747261636b60981b6044820152606401610b43565b600082815260066020526040812060010180549091908290610df390614585565b90501115610e2f5780610e0583612cb7565b604051602001610e169291906145d5565b6040516020818303038152906040529350505050919050565b50506040805160208101909152600081529392505050565b600d8181548110610e5757600080fd5b6000918252602090912001546001600160a01b0316905081565b60008281526004602090815260408083208151808301909252546001600160a01b038116808352600160a01b9091046001600160601b0316928201929092528291610ee65750604080518082019091526003546001600160a01b0381168252600160a01b90046001600160601b031660208201525b602081015160009061271090610f05906001600160601b03168761467b565b610f0f919061455d565b91519350909150505b9250929050565b6005546001600160a01b03163314610f495760405162461bcd60e51b8152600401610b43906144ab565b6000828152600760205260409020548290610f765760405162461bcd60e51b8152600401610b43906144e0565b5060009182526006602052604090912080546001600160601b0319166001600160601b03909216919091179055565b6005546001600160a01b03163314610fcf5760405162461bcd60e51b8152600401610b43906144ab565b6001600160a01b038216610ff5575050600090815260046020526040812055565b505050565b6040805160028082526060820183526000926020830190803683375050600c54919250506001600160a01b0390811690841611156110a857600c5481516001600160a01b0390911690829060009061104f5761104f61469a565b60200260200101906001600160a01b031690816001600160a01b03168152505082816001815181106110835761108361469a565b60200260200101906001600160a01b031690816001600160a01b03168152505061110e565b82816000815181106110bc576110bc61469a565b6001600160a01b039283166020918202929092010152600c548251911690829060019081106110ed576110ed61469a565b60200260200101906001600160a01b031690816001600160a01b0316815250505b6040805160028082526060820183526000926020830190803683370190505090506207a120816000815181106111465761114661469a565b602002602001019063ffffffff16908163ffffffff16815250506207a120816001815181106111775761117761469a565b63ffffffff909216602092830291909101909101526040516352844dd360e01b81526000906001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016906352844dd3906111df9086908690869060040161471f565b602060405180830381865afa1580156111fc573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611220919061475b565b90506001600160a01b0381163b156112425761123d868286611ba0565b61136f565b604051633b00fbc160e11b81526000906001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001690637601f78290611297908790879086908190600401614778565b6020604051808303816000875af11580156112b6573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112da919061475b565b90507fafd4c77e4b57dd444f7b1108c48a68340c888a66dbe9d98035bb9732a4ccd23e81858560405161130f939291906147c5565b60405180910390a1600d80546001810182556000919091527fd7b6990105719101dabeb77144f2a3385c8033acd3af97e9423a695e81ad1eb50180546001600160a01b0319166001600160a01b03831617905561136d878287611ba0565b505b505050505050565b6001600160a01b03851633148061139357506113938533610a2d565b6113fa5760405162461bcd60e51b815260206004820152603260248201527f455243313135353a207472616e736665722063616c6c6572206973206e6f74206044820152711bdddb995c881b9bdc88185c1c1c9bdd995960721b6064820152608401610b43565b610d108585858585612dbf565b600554600160a01b900460ff16156114315760405162461bcd60e51b8152600401610b4390614805565b60095460008181526007602052604090205461145f5760405162461bcd60e51b8152600401610b43906144e0565b600a541561151a576114d783838080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525050600a546040516001600160601b03193360601b166020820152909250603401905060405160208183030381529060405280519060200120612f53565b61151a5760405162461bcd60e51b815260206004820152601460248201527324b73b30b634b21036b2b935b63290383937b7b360611b6044820152606401610b43565b600084116115635760405162461bcd60e51b81526020600482015260166024820152754d757374206d696e74206174206c65617374206f6e6560501b6044820152606401610b43565b60095460009081526006602052604090208054600160e81b900460ff16156115d5578054600160e81b900460ff168511156115d55760405162461bcd60e51b815260206004820152601260248201527113dd995c881d1e081b5a5b9d081b1a5b5a5d60721b6044820152606401610b43565b80546115ea906001600160601b03168661467b565b341461162b5760405162461bcd60e51b815260206004820152601060248201526f15dc9bdb99c811551208185b5bdd5b9d60821b6044820152606401610b43565b8054600160e01b900460ff16156116b95780546009546000908152600860209081526040808320338452909152902054600160e01b90910460ff169061167290879061482f565b11156116b95760405162461bcd60e51b815260206004820152601660248201527513dd995c881dd85b1b195d081b5a5b9d081b1a5b5a5d60521b6044820152606401610b43565b6000856116c7600954612069565b6116d1919061482f565b82549091506000906116fc906001600160401b03600160a01b8204811691600160601b90041661451f565b6001600160401b031690508082111561174e5760405162461bcd60e51b81526020600482015260146024820152734f766572206d696e7461626c6520737570706c7960601b6044820152606401610b43565b600954835461176a913391600160f01b900461ffff168a612b39565b80820361136d5761136d612f69565b6005546001600160a01b031633146117a35760405162461bcd60e51b8152600401610b43906144ab565b600554600160a01b900460ff166117cc5760405162461bcd60e51b8152600401610b4390614847565b60008281526007602052604090205482906117f95760405162461bcd60e51b8152600401610b43906144e0565b6009839055600a829055610ff0612fa5565b600061271082106118575760405162461bcd60e51b8152602060048201526016602482015275547261636b204944206f7574206f6620626f756e647360501b6044820152606401610b43565b816118646127108561467b565b61186e919061482f565b9392505050565b6005546001600160a01b0316331461189f5760405162461bcd60e51b8152600401610b43906144ab565b6118a7612f69565b565b6005546001600160a01b031633146118d35760405162461bcd60e51b8152600401610b43906144ab565b600b546118a7906001600160a01b03164761301b565b6005546001600160a01b031633146119135760405162461bcd60e51b8152600401610b43906144ab565b6040516323b872dd60e01b81523060048201526001600160a01b038381166024830152604482018390528416906323b872dd906064015b600060405180830381600087803b15801561196457600080fd5b505af115801561136d573d6000803e3d6000fd5b6005546001600160a01b031633146119a25760405162461bcd60e51b8152600401610b43906144ab565b60405163a9059cbb60e01b81526001600160a01b0383811660048301526024820183905284169063a9059cbb906044016020604051808303816000875af11580156119f1573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a159190614875565b50505050565b60608151835114611a805760405162461bcd60e51b815260206004820152602960248201527f455243313135353a206163636f756e747320616e6420696473206c656e677468604482015268040dad2e6dac2e8c6d60bb1b6064820152608401610b43565b600083516001600160401b03811115611a9b57611a9b613d1a565b604051908082528060200260200182016040528015611ac4578160200160208202803683370190505b50905060005b8451811015611b3c57611b0f858281518110611ae857611ae861469a565b6020026020010151858381518110611b0257611b0261469a565b6020026020010151610adb565b828281518110611b2157611b2161469a565b6020908102919091010152611b3581614892565b9050611aca565b509392505050565b6005546001600160a01b03163314611b6e5760405162461bcd60e51b8152600401610b43906144ab565b600554600160a01b900460ff1615611b985760405162461bcd60e51b8152600401610b4390614805565b6118a7613134565b6005546001600160a01b03163314611bca5760405162461bcd60e51b8152600401610b43906144ab565b60006001600160601b03821615611be15781611bee565b600e546001600160601b03165b9050611bfb848483613199565b604080518581526001600160a01b03851660208201526001600160601b0383168183015290517f18a318bf18cb5e5d867b0e7e64ed04907d0970e46254df9596b367cfec5a37f99181900360600190a150505050565b600554600090600160a01b900460ff1680611c6c5750600954155b15611c775750600090565b600a5415611c855750600190565b50600290565b90565b6005546001600160a01b03163314611cb85760405162461bcd60e51b8152600401610b43906144ab565b600c80546001600160a01b0319166001600160a01b0392909216919091179055565b6005546001600160a01b03163314611d045760405162461bcd60e51b8152600401610b43906144ab565b6118a76000613264565b6005546001600160a01b03163314611d385760405162461bcd60e51b8152600401610b43906144ab565b600554600160a01b900460ff16611d615760405162461bcd60e51b8152600401610b4390614847565b6000818152600760205260409020548190611d8e5760405162461bcd60e51b8152600401610b43906144e0565b60098290556000600a55610bd2612fa5565b6005546001600160a01b03163314611dca5760405162461bcd60e51b8152600401610b43906144ab565b6000828152600760205260409020548290611df75760405162461bcd60e51b8152600401610b43906144e0565b6000611e0284612069565b600085815260066020526040902054909150611e2e90600160a01b90046001600160401b03168261482f565b836001600160401b03161015611e985760405162461bcd60e51b815260206004820152602960248201527f4e657720737570706c792062656c6f77206578697374696e672f726573657276604482015268656420737570706c7960b81b6064820152608401610b43565b6000848152600660205260409020546001600160401b03600160601b90910481169084161115611f035760405162461bcd60e51b815260206004820152601660248201527543616e206f6e6c792072656475636520737570706c7960501b6044820152606401610b43565b505060009182526006602052604090912080546001600160401b03909216600160601b0267ffffffffffffffff60601b19909216919091179055565b6005546001600160a01b03163314611f695760405162461bcd60e51b8152600401610b43906144ab565b600a55565b6005546001600160a01b03163314611f985760405162461bcd60e51b8152600401610b43906144ab565b6000838152600760205260409020548390611fc55760405162461bcd60e51b8152600401610b43906144e0565b6000848152600660205260409020611fe19060010184846139f5565b50600084815260066020526040812054600160f01b900461ffff16905b8161ffff1681101561136f5760006120218761201984614892565b93508361180b565b9050807f6bb7ff708619ba0610cba295a58592e0451dee2622938c8755667688daf3529b61204e83610d3b565b60405161205b9190613c74565b60405180910390a250611ffe565b60008181526007602052604081205482906120965760405162461bcd60e51b8152600401610b43906144e0565b60008381526007602052604090205491505b50919050565b610bd23383836132b6565b6005546001600160a01b031633146120e35760405162461bcd60e51b8152600401610b43906144ab565b60008281526007602052604090205482906121105760405162461bcd60e51b8152600401610b43906144e0565b50600091825260066020526040909120805460ff909216600160e01b0260ff60e01b19909216919091179055565b600660205260009081526040902080546001820180546001600160601b03831693600160601b84046001600160401b0390811694600160a01b810490911693600160e01b820460ff90811694600160e81b840490911693600160f01b90930461ffff169291906121ad90614585565b80601f01602080910402602001604051908101604052809291908181526020018280546121d990614585565b80156122265780601f106121fb57610100808354040283529160200191612226565b820191906000526020600020905b81548152906001019060200180831161220957829003601f168201915b5050505050905087565b6005546001600160a01b0316331461225a5760405162461bcd60e51b8152600401610b43906144ab565b600b80546001600160a01b0319166001600160a01b0392909216919091179055565b6005546001600160a01b031633146122a65760405162461bcd60e51b8152600401610b43906144ab565b6000600f600081546122b790614892565b918290555090506001600160401b038a166123095760405162461bcd60e51b81526020600482015260126024820152710537570706c79206d757374206265203e20360741b6044820152606401610b43565b886001600160401b03168a6001600160401b031610156123765760405162461bcd60e51b815260206004820152602260248201527f4d617820737570706c79206d757374206265203e3d207465616d207265736572604482015261766560f01b6064820152608401610b43565b6000896001600160401b0316116123c85760405162461bcd60e51b8152602060048201526016602482015275135d5cdd081b5a5b9d080c48189e48191959985d5b1d60521b6044820152606401610b43565b6127108661ffff161061241d5760405162461bcd60e51b815260206004820152601860248201527f547261636b7320616d6f756e74206f766572206c696d697400000000000000006044820152606401610b43565b61ffff8616841461247c5760405162461bcd60e51b8152602060048201526024808201527f53706563696679206f6e652061727469737420616464726573732070657220746044820152637261636b60e01b6064820152608401610b43565b6040805160e0810182526001600160601b038d1681526001600160401b038c1660208201529081016124af60018c61451f565b6001600160401b031681526020018960ff1681526020018860ff1681526020018761ffff16815260200184848080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920182905250939094525050838152600660209081526040918290208451815486840151948701516060880151608089015160a08a01516001600160601b039095166001600160a01b031990941693909317600160601b6001600160401b03988916021768ffffffffffffffffff60a01b1916600160a01b979092169690960260ff60e01b191617600160e01b60ff96871602176001600160e81b0316600160e81b95909116949094026001600160f01b031693909317600160f01b61ffff9094169390930292909217825560c084015180519293506125ee9260018501929190910190613a79565b5090505061260333828861ffff166001612b39565b60005b8661ffff168110156126aa5760006126238361061b84600161482f565b9050807f6bb7ff708619ba0610cba295a58592e0451dee2622938c8755667688daf3529b61265083610d3b565b60405161265d9190613c74565b60405180910390a26126a18188888581811061267b5761267b61469a565b905060200201602081019061269091906140fa565b600e546001600160601b0316610fa5565b50600101612606565b505050505050505050505050565b6005546001600160a01b031633146126e25760405162461bcd60e51b8152600401610b43906144ab565b604051627eeac760e11b81523060048201819052602482018390526001600160a01b0385169163f242432a919085908590859062fdd58e90604401602060405180830381865afa15801561273a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061275e91906148ab565b6040516001600160e01b031960e087901b1681526001600160a01b0394851660048201529390921660248401526044830152606482015260a06084820152600060a482015260c40161194a565b6005546001600160a01b031633146127d55760405162461bcd60e51b8152600401610b43906144ab565b60008281526007602052604090205482906128025760405162461bcd60e51b8152600401610b43906144e0565b50600091825260066020526040909120805460ff909216600160e81b0260ff60e81b19909216919091179055565b6001600160a01b03851633148061284c575061284c8533610a2d565b6128aa5760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260448201526808185c1c1c9bdd995960ba1b6064820152608401610b43565b610d108585858585613396565b6005546001600160a01b031633146128e15760405162461bcd60e51b8152600401610b43906144ab565b6001600160a01b0381166129465760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610b43565b61294f81613264565b50565b6005546001600160a01b0316331461297c5760405162461bcd60e51b8152600401610b43906144ab565b8281146129d55760405162461bcd60e51b815260206004820152602160248201527f526563697069656e747320616e6420616d6f756e7473206d757374206d6174636044820152600d60fb1b6064820152608401610b43565b8260006129e2878261180b565b905060005b82811015612a5057612a48878783818110612a0457612a0461469a565b9050602002016020810190612a1991906140fa565b83878785818110612a2c57612a2c61469a565b90506020020135604051806020016040528060008152506134c0565b6001016129e7565b5050505050505050565b60006001600160e01b0319821663152a902d60e11b1480610b7d5750610b7d82613591565b6127106001600160601b0382161115612aaa5760405162461bcd60e51b8152600401610b43906148c4565b6001600160a01b038216612b005760405162461bcd60e51b815260206004820152601960248201527f455243323938313a20696e76616c6964207265636569766572000000000000006044820152606401610b43565b604080518082019091526001600160a01b039092168083526001600160601b039091166020909201829052600160a01b90910217600355565b60008381526008602090815260408083206001600160a01b0388168452909152902054612b6790829061482f565b60008481526008602090815260408083206001600160a01b0389168452825280832093909355858252600790522054612ba190829061482f565b600084815260076020526040812091909155826001600160401b03811115612bcb57612bcb613d1a565b604051908082528060200260200182016040528015612bf4578160200160208202803683370190505b5090506000836001600160401b03811115612c1157612c11613d1a565b604051908082528060200260200182016040528015612c3a578160200160208202803683370190505b50905060005b84811015612c9b57612c578661061b83600161482f565b838281518110612c6957612c6961469a565b60200260200101818152505083828281518110612c8857612c8861469a565b6020908102919091010152600101612c40565b5061136f868383604051806020016040528060008152506135e1565b606081600003612cde5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115612d085780612cf281614892565b9150612d019050600a8361455d565b9150612ce2565b6000816001600160401b03811115612d2257612d22613d1a565b6040519080825280601f01601f191660200182016040528015612d4c576020820181803683370190505b5090505b8415612db757612d6160018361490e565b9150612d6e600a86614571565b612d7990603061482f565b60f81b818381518110612d8e57612d8e61469a565b60200101906001600160f81b031916908160001a905350612db0600a8661455d565b9450612d50565b949350505050565b8151835114612de05760405162461bcd60e51b8152600401610b4390614925565b6001600160a01b038416612e065760405162461bcd60e51b8152600401610b439061496d565b3360005b8451811015612eed576000858281518110612e2757612e2761469a565b602002602001015190506000858381518110612e4557612e4561469a565b602090810291909101810151600084815280835260408082206001600160a01b038e168352909352919091205490915081811015612e955760405162461bcd60e51b8152600401610b43906149b2565b6000838152602081815260408083206001600160a01b038e8116855292528083208585039055908b16825281208054849290612ed290849061482f565b9250508190555050505080612ee690614892565b9050612e0a565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051612f3d9291906149fc565b60405180910390a461136f818787878787613728565b600082612f608584613883565b14949350505050565b600554600160a01b900460ff1615612f935760405162461bcd60e51b8152600401610b4390614805565b60006009819055600a556118a7613134565b600554600160a01b900460ff16612fce5760405162461bcd60e51b8152600401610b4390614847565b6005805460ff60a01b191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b8047101561306b5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e63650000006044820152606401610b43565b6000826001600160a01b03168260405160006040518083038185875af1925050503d80600081146130b8576040519150601f19603f3d011682016040523d82523d6000602084013e6130bd565b606091505b5050905080610ff05760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d617920686176652072657665727465640000000000006064820152608401610b43565b600554600160a01b900460ff161561315e5760405162461bcd60e51b8152600401610b4390614805565b6005805460ff60a01b1916600160a01b1790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258612ffe3390565b6127106001600160601b03821611156131c45760405162461bcd60e51b8152600401610b43906148c4565b6001600160a01b03821661321a5760405162461bcd60e51b815260206004820152601b60248201527f455243323938313a20496e76616c696420706172616d657465727300000000006044820152606401610b43565b6040805180820182526001600160a01b0393841681526001600160601b0392831660208083019182526000968752600490529190942093519051909116600160a01b029116179055565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b816001600160a01b0316836001600160a01b0316036133295760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2073657474696e6720617070726f76616c20737461747573604482015268103337b91039b2b63360b91b6064820152608401610b43565b6001600160a01b03838116600081815260016020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6001600160a01b0384166133bc5760405162461bcd60e51b8152600401610b439061496d565b3360006133c8856138ef565b905060006133d5856138ef565b90506000868152602081815260408083206001600160a01b038c168452909152902054858110156134185760405162461bcd60e51b8152600401610b43906149b2565b6000878152602081815260408083206001600160a01b038d8116855292528083208985039055908a1682528120805488929061345590849061482f565b909155505060408051888152602081018890526001600160a01b03808b16928c821692918816917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a46134b5848a8a8a8a8a61393a565b505050505050505050565b6001600160a01b0384166134e65760405162461bcd60e51b8152600401610b4390614a21565b3360006134f2856138ef565b905060006134ff856138ef565b90506000868152602081815260408083206001600160a01b038b1684529091528120805487929061353190849061482f565b909155505060408051878152602081018790526001600160a01b03808a1692600092918716917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a461136d8360008989898961393a565b60006001600160e01b03198216636cdb3d1360e11b14806135c257506001600160e01b031982166303a24d0760e21b145b80610b7d57506301ffc9a760e01b6001600160e01b0319831614610b7d565b6001600160a01b0384166136075760405162461bcd60e51b8152600401610b4390614a21565b81518351146136285760405162461bcd60e51b8152600401610b4390614925565b3360005b84518110156136c4578381815181106136475761364761469a565b60200260200101516000808784815181106136645761366461469a565b602002602001015181526020019081526020016000206000886001600160a01b03166001600160a01b0316815260200190815260200160002060008282546136ac919061482f565b909155508190506136bc81614892565b91505061362c565b50846001600160a01b031660006001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb87876040516137159291906149fc565b60405180910390a4610d10816000878787875b6001600160a01b0384163b1561136f5760405163bc197c8160e01b81526001600160a01b0385169063bc197c819061376c9089908990889088908890600401614a62565b6020604051808303816000875af19250505080156137a7575060408051601f3d908101601f191682019092526137a491810190614ac0565b60015b613853576137b3614add565b806308c379a0036137ec57506137c7614af8565b806137d257506137ee565b8060405162461bcd60e51b8152600401610b439190613c74565b505b60405162461bcd60e51b815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e20455243313135356044820152732932b1b2b4bb32b91034b6b83632b6b2b73a32b960611b6064820152608401610b43565b6001600160e01b0319811663bc197c8160e01b1461136d5760405162461bcd60e51b8152600401610b4390614b81565b600081815b8451811015611b3c5760008582815181106138a5576138a561469a565b602002602001015190508083116138cb57600083815260208290526040902092506138dc565b600081815260208490526040902092505b50806138e781614892565b915050613888565b604080516001808252818301909252606091600091906020808301908036833701905050905082816000815181106139295761392961469a565b602090810291909101015292915050565b6001600160a01b0384163b1561136f5760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e619061397e9089908990889088908890600401614bc9565b6020604051808303816000875af19250505080156139b9575060408051601f3d908101601f191682019092526139b691810190614ac0565b60015b6139c5576137b3614add565b6001600160e01b0319811663f23a6e6160e01b1461136d5760405162461bcd60e51b8152600401610b4390614b81565b828054613a0190614585565b90600052602060002090601f016020900481019282613a235760008555613a69565b82601f10613a3c5782800160ff19823516178555613a69565b82800160010185558215613a69579182015b82811115613a69578235825591602001919060010190613a4e565b50613a75929150613aed565b5090565b828054613a8590614585565b90600052602060002090601f016020900481019282613aa75760008555613a69565b82601f10613ac057805160ff1916838001178555613a69565b82800160010185558215613a69579182015b82811115613a69578251825591602001919060010190613ad2565b5b80821115613a755760008155600101613aee565b6001600160a01b038116811461294f57600080fd5b60008060408385031215613b2a57600080fd5b8235613b3581613b02565b946020939093013593505050565b6001600160e01b03198116811461294f57600080fd5b600060208284031215613b6b57600080fd5b813561186e81613b43565b80356001600160601b0381168114613b8d57600080fd5b919050565b60008060408385031215613ba557600080fd5b8235613bb081613b02565b9150613bbe60208401613b76565b90509250929050565b80356001600160401b0381168114613b8d57600080fd5b600080600060608486031215613bf357600080fd5b833592506020840135613c0581613b02565b9150613c1360408501613bc7565b90509250925092565b60005b83811015613c37578181015183820152602001613c1f565b83811115611a155750506000910152565b60008151808452613c60816020860160208601613c1c565b601f01601f19169290920160200192915050565b60208152600061186e6020830184613c48565b600060208284031215613c9957600080fd5b5035919050565b60008060408385031215613cb357600080fd5b50508035926020909101359150565b60008060408385031215613cd557600080fd5b82359150613bbe60208401613b76565b600080600060608486031215613cfa57600080fd5b833592506020840135613d0c81613b02565b9150613c1360408501613b76565b634e487b7160e01b600052604160045260246000fd5b601f8201601f191681016001600160401b0381118282101715613d5557613d55613d1a565b6040525050565b60006001600160401b03821115613d7557613d75613d1a565b5060051b60200190565b600082601f830112613d9057600080fd5b81356020613d9d82613d5c565b604051613daa8282613d30565b83815260059390931b8501820192828101915086841115613dca57600080fd5b8286015b84811015613de55780358352918301918301613dce565b509695505050505050565b600082601f830112613e0157600080fd5b81356001600160401b03811115613e1a57613e1a613d1a565b604051613e31601f8301601f191660200182613d30565b818152846020838601011115613e4657600080fd5b816020850160208301376000918101602001919091529392505050565b600080600080600060a08688031215613e7b57600080fd5b8535613e8681613b02565b94506020860135613e9681613b02565b935060408601356001600160401b0380821115613eb257600080fd5b613ebe89838a01613d7f565b94506060880135915080821115613ed457600080fd5b613ee089838a01613d7f565b93506080880135915080821115613ef657600080fd5b50613f0388828901613df0565b9150509295509295909350565b60008083601f840112613f2257600080fd5b5081356001600160401b03811115613f3957600080fd5b6020830191508360208260051b8501011115610f1857600080fd5b600080600060408486031215613f6957600080fd5b8335925060208401356001600160401b03811115613f8657600080fd5b613f9286828701613f10565b9497909650939450505050565b600080600060608486031215613fb457600080fd5b8335613fbf81613b02565b92506020840135613fcf81613b02565b929592945050506040919091013590565b60008060408385031215613ff357600080fd5b82356001600160401b038082111561400a57600080fd5b818501915085601f83011261401e57600080fd5b8135602061402b82613d5c565b6040516140388282613d30565b83815260059390931b850182019282810191508984111561405857600080fd5b948201945b8386101561407f57853561407081613b02565b8252948201949082019061405d565b9650508601359250508082111561409557600080fd5b506140a285828601613d7f565b9150509250929050565b600081518084526020808501945080840160005b838110156140dc578151875295820195908201906001016140c0565b509495945050505050565b60208152600061186e60208301846140ac565b60006020828403121561410c57600080fd5b813561186e81613b02565b6000806040838503121561412a57600080fd5b82359150602083013561413c81613b02565b809150509250929050565b6000806040838503121561415a57600080fd5b82359150613bbe60208401613bc7565b60008083601f84011261417c57600080fd5b5081356001600160401b0381111561419357600080fd5b602083019150836020828501011115610f1857600080fd5b6000806000604084860312156141c057600080fd5b8335925060208401356001600160401b038111156141dd57600080fd5b613f928682870161416a565b801515811461294f57600080fd5b6000806040838503121561420a57600080fd5b823561421581613b02565b9150602083013561413c816141e9565b803560ff81168114613b8d57600080fd5b6000806040838503121561424957600080fd5b82359150613bbe60208401614225565b6001600160601b038816815260006001600160401b03808916602084015280881660408401525060ff8616606083015260ff8516608083015261ffff841660a083015260e060c08301526142b060e0830184613c48565b9998505050505050505050565b6000806000806000806000806000806101008b8d0312156142dd57600080fd5b6142e68b613b76565b99506142f460208c01613bc7565b985061430260408c01613bc7565b975061431060608c01614225565b965061431e60808c01614225565b955060a08b013561ffff8116811461433557600080fd5b945060c08b01356001600160401b038082111561435157600080fd5b61435d8e838f01613f10565b909650945060e08d013591508082111561437657600080fd5b506143838d828e0161416a565b915080935050809150509295989b9194979a5092959850565b600080604083850312156143af57600080fd5b82356143ba81613b02565b9150602083013561413c81613b02565b600080600080600060a086880312156143e257600080fd5b85356143ed81613b02565b945060208601356143fd81613b02565b9350604086013592506060860135915060808601356001600160401b0381111561442657600080fd5b613f0388828901613df0565b60008060008060006060868803121561444a57600080fd5b8535945060208601356001600160401b038082111561446857600080fd5b61447489838a01613f10565b9096509450604088013591508082111561448d57600080fd5b5061449a88828901613f10565b969995985093965092949392505050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6020808252600f908201526e496e76616c69642072656c6561736560881b604082015260600190565b634e487b7160e01b600052601160045260246000fd5b60006001600160401b038381169083168181101561453f5761453f614509565b039392505050565b634e487b7160e01b600052601260045260246000fd5b60008261456c5761456c614547565b500490565b60008261458057614580614547565b500690565b600181811c9082168061459957607f821691505b6020821081036120a857634e487b7160e01b600052602260045260246000fd5b600081516145cb818560208601613c1c565b9290920192915050565b600080845481600182811c9150808316806145f157607f831692505b6020808410820361461057634e487b7160e01b86526022600452602486fd5b818015614624576001811461463557614662565b60ff19861689528489019650614662565b60008b81526020902060005b8681101561465a5781548b820152908501908301614641565b505084890196505b50505050505061467281856145b9565b95945050505050565b600081600019048311821515161561469557614695614509565b500290565b634e487b7160e01b600052603260045260246000fd5b600081518084526020808501945080840160005b838110156140dc5781516001600160a01b0316875295820195908201906001016146c4565b600081518084526020808501945080840160005b838110156140dc57815163ffffffff16875295820195908201906001016146fd565b60608152600061473260608301866146b0565b828103602084015261474481866146e9565b91505063ffffffff83166040830152949350505050565b60006020828403121561476d57600080fd5b815161186e81613b02565b60808152600061478b60808301876146b0565b828103602084015261479d81876146e9565b63ffffffff95909516604084015250506001600160a01b039190911660609091015292915050565b6001600160a01b03841681526060602082018190526000906147e9908301856146b0565b82810360408401526147fb81856146e9565b9695505050505050565b60208082526010908201526f14185d5cd8589b194e881c185d5cd95960821b604082015260600190565b6000821982111561484257614842614509565b500190565b60208082526014908201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b604082015260600190565b60006020828403121561488757600080fd5b815161186e816141e9565b6000600182016148a4576148a4614509565b5060010190565b6000602082840312156148bd57600080fd5b5051919050565b6020808252602a908201527f455243323938313a20726f79616c7479206665652077696c6c206578636565646040820152692073616c65507269636560b01b606082015260800190565b60008282101561492057614920614509565b500390565b60208082526028908201527f455243313135353a2069647320616e6420616d6f756e7473206c656e677468206040820152670dad2e6dac2e8c6d60c31b606082015260800190565b60208082526025908201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604082015264647265737360d81b606082015260800190565b6020808252602a908201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60408201526939103a3930b739b332b960b11b606082015260800190565b604081526000614a0f60408301856140ac565b828103602084015261467281856140ac565b60208082526021908201527f455243313135353a206d696e7420746f20746865207a65726f206164647265736040820152607360f81b606082015260800190565b6001600160a01b0386811682528516602082015260a060408201819052600090614a8e908301866140ac565b8281036060840152614aa081866140ac565b90508281036080840152614ab48185613c48565b98975050505050505050565b600060208284031215614ad257600080fd5b815161186e81613b43565b600060033d1115611c8b5760046000803e5060005160e01c90565b600060443d1015614b065790565b6040516003193d81016004833e81513d6001600160401b038160248401118184111715614b3557505050505090565b8285019150815181811115614b4d5750505050505090565b843d8701016020828501011115614b675750505050505090565b614b7660208286010187613d30565b509095945050505050565b60208082526028908201527f455243313135353a204552433131353552656365697665722072656a656374656040820152676420746f6b656e7360c01b606082015260800190565b6001600160a01b03868116825285166020820152604081018490526060810183905260a060808201819052600090614c0390830184613c48565b97965050505050505056fea264697066735822122081de2589927bc614b5211700612e4cd2e24feed511247d6b5e04b044df460ba564736f6c634300080e00330000000000000000000000007fc74d4fe9dba98ec6c88255b174da2d0a38cb32000000000000000000000000c4d5451a1282f573447d84185f738005df7768750000000000000000000000002ed6c4b5da6378c7897ac67ba9e43102feb694ee

Deployed Bytecode

0x6080604052600436106103385760003560e01c80635c975abb116101ab57806395d89b41116100f7578063e1441de311610095578063e9a8827f1161006f578063e9a8827f14610a5b578063f242432a14610a7b578063f2fde38b14610a9b578063f45bab2514610abb57600080fd5b8063e1441de3146109d2578063e532d448146109f2578063e985e9c514610a1257600080fd5b8063a22cb465116100d1578063a22cb4651461093f578063b1e88fc71461095f578063b6a9f40f1461097f578063c3ba8a48146109b257600080fd5b806395d89b41146108da57806397168ea1146109095780639ea971901461092957600080fd5b806375a1c96a11610164578063883aa7711161013e578063883aa7711461083757806389c17a5c146108575780638da5cb5b1461088f578063919956ef146108ad57600080fd5b806375a1c96a146107e1578063782588f1146107f75780637cb647591461081757600080fd5b80635c975abb14610720578063603f4d521461073f5780636273f2ff146107545780636887a0e514610774578063715018a6146107ac57806374817d9b146107c157600080fd5b80632c23ad78116102855780633ccfd60b116102235780634e1273f4116101fd5780634e1273f41461068a57806355367ba9146106b75780635608d9e5146106cc5780635944c7531461070057600080fd5b80633ccfd60b146106355780634025feb21461064a57806344004cc11461066a57600080fd5b8063331ec59f1161025f578063331ec59f146105c0578063338eac01146105e057806333aa822e14610600578063380d831b1461062057600080fd5b80632c23ad781461056d5780632eb2c2d61461058d5780632f8af9df146105ad57600080fd5b8063094fb1e2116102f257806319c06534116102cc57806319c06534146104d857806329a34b5e146104ee5780632a55205a1461050e5780632baea1f71461054d57600080fd5b8063094fb1e21461046d5780630e89341c146104a2578063187f615f146104c257600080fd5b8062fdd58e1461034457806301ffc9a71461037757806304634d8d146103a7578063050a38d1146103c957806306fdde03146103e9578063087cdf201461043557600080fd5b3661033f57005b600080fd5b34801561035057600080fd5b5061036461035f366004613b17565b610adb565b6040519081526020015b60405180910390f35b34801561038357600080fd5b50610397610392366004613b59565b610b72565b604051901515815260200161036e565b3480156103b357600080fd5b506103c76103c2366004613b92565b610b83565b005b3480156103d557600080fd5b506103c76103e4366004613bde565b610bd6565b3480156103f557600080fd5b506104286040518060400160405280601381526020017253706163652046696768742052656c6561736560681b81525081565b60405161036e9190613c74565b34801561044157600080fd5b50600c54610455906001600160a01b031681565b6040516001600160a01b03909116815260200161036e565b34801561047957600080fd5b5061048d610488366004613c87565b610d17565b6040805192835260208301919091520161036e565b3480156104ae57600080fd5b506104286104bd366004613c87565b610d3b565b3480156104ce57600080fd5b5061036461271081565b3480156104e457600080fd5b5061036460095481565b3480156104fa57600080fd5b50610455610509366004613c87565b610e47565b34801561051a57600080fd5b5061052e610529366004613ca0565b610e71565b604080516001600160a01b03909316835260208301919091520161036e565b34801561055957600080fd5b506103c7610568366004613cc2565b610f1f565b34801561057957600080fd5b506103c7610588366004613ce5565b610fa5565b34801561059957600080fd5b506103c76105a8366004613e63565b611377565b6103c76105bb366004613f54565b611407565b3480156105cc57600080fd5b50600b54610455906001600160a01b031681565b3480156105ec57600080fd5b506103c76105fb366004613ca0565b611779565b34801561060c57600080fd5b5061036461061b366004613ca0565b61180b565b34801561062c57600080fd5b506103c7611875565b34801561064157600080fd5b506103c76118a9565b34801561065657600080fd5b506103c7610665366004613f9f565b6118e9565b34801561067657600080fd5b506103c7610685366004613f9f565b611978565b34801561069657600080fd5b506106aa6106a5366004613fe0565b611a1b565b60405161036e91906140e7565b3480156106c357600080fd5b506103c7611b44565b3480156106d857600080fd5b506104557f0000000000000000000000002ed6c4b5da6378c7897ac67ba9e43102feb694ee81565b34801561070c57600080fd5b506103c761071b366004613ce5565b611ba0565b34801561072c57600080fd5b50600554600160a01b900460ff16610397565b34801561074b57600080fd5b50610364611c51565b34801561076057600080fd5b506103c761076f3660046140fa565b611c8e565b34801561078057600080fd5b5061036461078f366004614117565b600860209081526000928352604080842090915290825290205481565b3480156107b857600080fd5b506103c7611cda565b3480156107cd57600080fd5b506103c76107dc366004613c87565b611d0e565b3480156107ed57600080fd5b50610364600f5481565b34801561080357600080fd5b506103c7610812366004614147565b611da0565b34801561082357600080fd5b506103c7610832366004613c87565b611f3f565b34801561084357600080fd5b506103c76108523660046141ab565b611f6e565b34801561086357600080fd5b50600e54610877906001600160601b031681565b6040516001600160601b03909116815260200161036e565b34801561089b57600080fd5b506005546001600160a01b0316610455565b3480156108b957600080fd5b506103646108c8366004613c87565b60076020526000908152604090205481565b3480156108e657600080fd5b506104286040518060400160405280600381526020016229a32960e91b81525081565b34801561091557600080fd5b50610364610924366004613c87565b612069565b34801561093557600080fd5b50610364600a5481565b34801561094b57600080fd5b506103c761095a3660046141f7565b6120ae565b34801561096b57600080fd5b506103c761097a366004614236565b6120b9565b34801561098b57600080fd5b5061099f61099a366004613c87565b61213e565b60405161036e9796959493929190614259565b3480156109be57600080fd5b506103c76109cd3660046140fa565b612230565b3480156109de57600080fd5b506103c76109ed3660046142bd565b61227c565b3480156109fe57600080fd5b506103c7610a0d366004613f9f565b6126b8565b348015610a1e57600080fd5b50610397610a2d36600461439c565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205460ff1690565b348015610a6757600080fd5b506103c7610a76366004614236565b6127ab565b348015610a8757600080fd5b506103c7610a963660046143ca565b612830565b348015610aa757600080fd5b506103c7610ab63660046140fa565b6128b7565b348015610ac757600080fd5b506103c7610ad6366004614432565b612952565b60006001600160a01b038316610b4c5760405162461bcd60e51b815260206004820152602b60248201527f455243313135353a2062616c616e636520717565727920666f7220746865207a60448201526a65726f206164647265737360a81b60648201526084015b60405180910390fd5b506000908152602081815260408083206001600160a01b03949094168352929052205490565b6000610b7d82612a5a565b92915050565b6005546001600160a01b03163314610bad5760405162461bcd60e51b8152600401610b43906144ab565b600e80546001600160601b0319166001600160601b038316179055610bd28282612a7f565b5050565b6005546001600160a01b03163314610c005760405162461bcd60e51b8152600401610b43906144ab565b6000838152600760205260409020548390610c2d5760405162461bcd60e51b8152600401610b43906144e0565b6000848152600660205260409020546001600160401b03808416600160a01b909204161015610c925760405162461bcd60e51b81526020600482015260116024820152704f766572207465616d207265736572766560781b6044820152606401610b43565b60008481526006602052604090208054839190601490610cc3908490600160a01b90046001600160401b031661451f565b82546101009290920a6001600160401b03818102199093169183160217909155600086815260066020526040902054600160f01b900461ffff169150610d10908590879084908716612b39565b5050505050565b600080610d266127108461455d565b610d3261271085614571565b91509150915091565b6060600080610d4984610d17565b6000828152600760205260409020549193509150610d795760405162461bcd60e51b8152600401610b43906144e0565b600082815260066020526040902054600160f01b900461ffff16811115610dd25760405162461bcd60e51b815260206004820152600d60248201526c496e76616c696420747261636b60981b6044820152606401610b43565b600082815260066020526040812060010180549091908290610df390614585565b90501115610e2f5780610e0583612cb7565b604051602001610e169291906145d5565b6040516020818303038152906040529350505050919050565b50506040805160208101909152600081529392505050565b600d8181548110610e5757600080fd5b6000918252602090912001546001600160a01b0316905081565b60008281526004602090815260408083208151808301909252546001600160a01b038116808352600160a01b9091046001600160601b0316928201929092528291610ee65750604080518082019091526003546001600160a01b0381168252600160a01b90046001600160601b031660208201525b602081015160009061271090610f05906001600160601b03168761467b565b610f0f919061455d565b91519350909150505b9250929050565b6005546001600160a01b03163314610f495760405162461bcd60e51b8152600401610b43906144ab565b6000828152600760205260409020548290610f765760405162461bcd60e51b8152600401610b43906144e0565b5060009182526006602052604090912080546001600160601b0319166001600160601b03909216919091179055565b6005546001600160a01b03163314610fcf5760405162461bcd60e51b8152600401610b43906144ab565b6001600160a01b038216610ff5575050600090815260046020526040812055565b505050565b6040805160028082526060820183526000926020830190803683375050600c54919250506001600160a01b0390811690841611156110a857600c5481516001600160a01b0390911690829060009061104f5761104f61469a565b60200260200101906001600160a01b031690816001600160a01b03168152505082816001815181106110835761108361469a565b60200260200101906001600160a01b031690816001600160a01b03168152505061110e565b82816000815181106110bc576110bc61469a565b6001600160a01b039283166020918202929092010152600c548251911690829060019081106110ed576110ed61469a565b60200260200101906001600160a01b031690816001600160a01b0316815250505b6040805160028082526060820183526000926020830190803683370190505090506207a120816000815181106111465761114661469a565b602002602001019063ffffffff16908163ffffffff16815250506207a120816001815181106111775761117761469a565b63ffffffff909216602092830291909101909101526040516352844dd360e01b81526000906001600160a01b037f0000000000000000000000002ed6c4b5da6378c7897ac67ba9e43102feb694ee16906352844dd3906111df9086908690869060040161471f565b602060405180830381865afa1580156111fc573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611220919061475b565b90506001600160a01b0381163b156112425761123d868286611ba0565b61136f565b604051633b00fbc160e11b81526000906001600160a01b037f0000000000000000000000002ed6c4b5da6378c7897ac67ba9e43102feb694ee1690637601f78290611297908790879086908190600401614778565b6020604051808303816000875af11580156112b6573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112da919061475b565b90507fafd4c77e4b57dd444f7b1108c48a68340c888a66dbe9d98035bb9732a4ccd23e81858560405161130f939291906147c5565b60405180910390a1600d80546001810182556000919091527fd7b6990105719101dabeb77144f2a3385c8033acd3af97e9423a695e81ad1eb50180546001600160a01b0319166001600160a01b03831617905561136d878287611ba0565b505b505050505050565b6001600160a01b03851633148061139357506113938533610a2d565b6113fa5760405162461bcd60e51b815260206004820152603260248201527f455243313135353a207472616e736665722063616c6c6572206973206e6f74206044820152711bdddb995c881b9bdc88185c1c1c9bdd995960721b6064820152608401610b43565b610d108585858585612dbf565b600554600160a01b900460ff16156114315760405162461bcd60e51b8152600401610b4390614805565b60095460008181526007602052604090205461145f5760405162461bcd60e51b8152600401610b43906144e0565b600a541561151a576114d783838080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525050600a546040516001600160601b03193360601b166020820152909250603401905060405160208183030381529060405280519060200120612f53565b61151a5760405162461bcd60e51b815260206004820152601460248201527324b73b30b634b21036b2b935b63290383937b7b360611b6044820152606401610b43565b600084116115635760405162461bcd60e51b81526020600482015260166024820152754d757374206d696e74206174206c65617374206f6e6560501b6044820152606401610b43565b60095460009081526006602052604090208054600160e81b900460ff16156115d5578054600160e81b900460ff168511156115d55760405162461bcd60e51b815260206004820152601260248201527113dd995c881d1e081b5a5b9d081b1a5b5a5d60721b6044820152606401610b43565b80546115ea906001600160601b03168661467b565b341461162b5760405162461bcd60e51b815260206004820152601060248201526f15dc9bdb99c811551208185b5bdd5b9d60821b6044820152606401610b43565b8054600160e01b900460ff16156116b95780546009546000908152600860209081526040808320338452909152902054600160e01b90910460ff169061167290879061482f565b11156116b95760405162461bcd60e51b815260206004820152601660248201527513dd995c881dd85b1b195d081b5a5b9d081b1a5b5a5d60521b6044820152606401610b43565b6000856116c7600954612069565b6116d1919061482f565b82549091506000906116fc906001600160401b03600160a01b8204811691600160601b90041661451f565b6001600160401b031690508082111561174e5760405162461bcd60e51b81526020600482015260146024820152734f766572206d696e7461626c6520737570706c7960601b6044820152606401610b43565b600954835461176a913391600160f01b900461ffff168a612b39565b80820361136d5761136d612f69565b6005546001600160a01b031633146117a35760405162461bcd60e51b8152600401610b43906144ab565b600554600160a01b900460ff166117cc5760405162461bcd60e51b8152600401610b4390614847565b60008281526007602052604090205482906117f95760405162461bcd60e51b8152600401610b43906144e0565b6009839055600a829055610ff0612fa5565b600061271082106118575760405162461bcd60e51b8152602060048201526016602482015275547261636b204944206f7574206f6620626f756e647360501b6044820152606401610b43565b816118646127108561467b565b61186e919061482f565b9392505050565b6005546001600160a01b0316331461189f5760405162461bcd60e51b8152600401610b43906144ab565b6118a7612f69565b565b6005546001600160a01b031633146118d35760405162461bcd60e51b8152600401610b43906144ab565b600b546118a7906001600160a01b03164761301b565b6005546001600160a01b031633146119135760405162461bcd60e51b8152600401610b43906144ab565b6040516323b872dd60e01b81523060048201526001600160a01b038381166024830152604482018390528416906323b872dd906064015b600060405180830381600087803b15801561196457600080fd5b505af115801561136d573d6000803e3d6000fd5b6005546001600160a01b031633146119a25760405162461bcd60e51b8152600401610b43906144ab565b60405163a9059cbb60e01b81526001600160a01b0383811660048301526024820183905284169063a9059cbb906044016020604051808303816000875af11580156119f1573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a159190614875565b50505050565b60608151835114611a805760405162461bcd60e51b815260206004820152602960248201527f455243313135353a206163636f756e747320616e6420696473206c656e677468604482015268040dad2e6dac2e8c6d60bb1b6064820152608401610b43565b600083516001600160401b03811115611a9b57611a9b613d1a565b604051908082528060200260200182016040528015611ac4578160200160208202803683370190505b50905060005b8451811015611b3c57611b0f858281518110611ae857611ae861469a565b6020026020010151858381518110611b0257611b0261469a565b6020026020010151610adb565b828281518110611b2157611b2161469a565b6020908102919091010152611b3581614892565b9050611aca565b509392505050565b6005546001600160a01b03163314611b6e5760405162461bcd60e51b8152600401610b43906144ab565b600554600160a01b900460ff1615611b985760405162461bcd60e51b8152600401610b4390614805565b6118a7613134565b6005546001600160a01b03163314611bca5760405162461bcd60e51b8152600401610b43906144ab565b60006001600160601b03821615611be15781611bee565b600e546001600160601b03165b9050611bfb848483613199565b604080518581526001600160a01b03851660208201526001600160601b0383168183015290517f18a318bf18cb5e5d867b0e7e64ed04907d0970e46254df9596b367cfec5a37f99181900360600190a150505050565b600554600090600160a01b900460ff1680611c6c5750600954155b15611c775750600090565b600a5415611c855750600190565b50600290565b90565b6005546001600160a01b03163314611cb85760405162461bcd60e51b8152600401610b43906144ab565b600c80546001600160a01b0319166001600160a01b0392909216919091179055565b6005546001600160a01b03163314611d045760405162461bcd60e51b8152600401610b43906144ab565b6118a76000613264565b6005546001600160a01b03163314611d385760405162461bcd60e51b8152600401610b43906144ab565b600554600160a01b900460ff16611d615760405162461bcd60e51b8152600401610b4390614847565b6000818152600760205260409020548190611d8e5760405162461bcd60e51b8152600401610b43906144e0565b60098290556000600a55610bd2612fa5565b6005546001600160a01b03163314611dca5760405162461bcd60e51b8152600401610b43906144ab565b6000828152600760205260409020548290611df75760405162461bcd60e51b8152600401610b43906144e0565b6000611e0284612069565b600085815260066020526040902054909150611e2e90600160a01b90046001600160401b03168261482f565b836001600160401b03161015611e985760405162461bcd60e51b815260206004820152602960248201527f4e657720737570706c792062656c6f77206578697374696e672f726573657276604482015268656420737570706c7960b81b6064820152608401610b43565b6000848152600660205260409020546001600160401b03600160601b90910481169084161115611f035760405162461bcd60e51b815260206004820152601660248201527543616e206f6e6c792072656475636520737570706c7960501b6044820152606401610b43565b505060009182526006602052604090912080546001600160401b03909216600160601b0267ffffffffffffffff60601b19909216919091179055565b6005546001600160a01b03163314611f695760405162461bcd60e51b8152600401610b43906144ab565b600a55565b6005546001600160a01b03163314611f985760405162461bcd60e51b8152600401610b43906144ab565b6000838152600760205260409020548390611fc55760405162461bcd60e51b8152600401610b43906144e0565b6000848152600660205260409020611fe19060010184846139f5565b50600084815260066020526040812054600160f01b900461ffff16905b8161ffff1681101561136f5760006120218761201984614892565b93508361180b565b9050807f6bb7ff708619ba0610cba295a58592e0451dee2622938c8755667688daf3529b61204e83610d3b565b60405161205b9190613c74565b60405180910390a250611ffe565b60008181526007602052604081205482906120965760405162461bcd60e51b8152600401610b43906144e0565b60008381526007602052604090205491505b50919050565b610bd23383836132b6565b6005546001600160a01b031633146120e35760405162461bcd60e51b8152600401610b43906144ab565b60008281526007602052604090205482906121105760405162461bcd60e51b8152600401610b43906144e0565b50600091825260066020526040909120805460ff909216600160e01b0260ff60e01b19909216919091179055565b600660205260009081526040902080546001820180546001600160601b03831693600160601b84046001600160401b0390811694600160a01b810490911693600160e01b820460ff90811694600160e81b840490911693600160f01b90930461ffff169291906121ad90614585565b80601f01602080910402602001604051908101604052809291908181526020018280546121d990614585565b80156122265780601f106121fb57610100808354040283529160200191612226565b820191906000526020600020905b81548152906001019060200180831161220957829003601f168201915b5050505050905087565b6005546001600160a01b0316331461225a5760405162461bcd60e51b8152600401610b43906144ab565b600b80546001600160a01b0319166001600160a01b0392909216919091179055565b6005546001600160a01b031633146122a65760405162461bcd60e51b8152600401610b43906144ab565b6000600f600081546122b790614892565b918290555090506001600160401b038a166123095760405162461bcd60e51b81526020600482015260126024820152710537570706c79206d757374206265203e20360741b6044820152606401610b43565b886001600160401b03168a6001600160401b031610156123765760405162461bcd60e51b815260206004820152602260248201527f4d617820737570706c79206d757374206265203e3d207465616d207265736572604482015261766560f01b6064820152608401610b43565b6000896001600160401b0316116123c85760405162461bcd60e51b8152602060048201526016602482015275135d5cdd081b5a5b9d080c48189e48191959985d5b1d60521b6044820152606401610b43565b6127108661ffff161061241d5760405162461bcd60e51b815260206004820152601860248201527f547261636b7320616d6f756e74206f766572206c696d697400000000000000006044820152606401610b43565b61ffff8616841461247c5760405162461bcd60e51b8152602060048201526024808201527f53706563696679206f6e652061727469737420616464726573732070657220746044820152637261636b60e01b6064820152608401610b43565b6040805160e0810182526001600160601b038d1681526001600160401b038c1660208201529081016124af60018c61451f565b6001600160401b031681526020018960ff1681526020018860ff1681526020018761ffff16815260200184848080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920182905250939094525050838152600660209081526040918290208451815486840151948701516060880151608089015160a08a01516001600160601b039095166001600160a01b031990941693909317600160601b6001600160401b03988916021768ffffffffffffffffff60a01b1916600160a01b979092169690960260ff60e01b191617600160e01b60ff96871602176001600160e81b0316600160e81b95909116949094026001600160f01b031693909317600160f01b61ffff9094169390930292909217825560c084015180519293506125ee9260018501929190910190613a79565b5090505061260333828861ffff166001612b39565b60005b8661ffff168110156126aa5760006126238361061b84600161482f565b9050807f6bb7ff708619ba0610cba295a58592e0451dee2622938c8755667688daf3529b61265083610d3b565b60405161265d9190613c74565b60405180910390a26126a18188888581811061267b5761267b61469a565b905060200201602081019061269091906140fa565b600e546001600160601b0316610fa5565b50600101612606565b505050505050505050505050565b6005546001600160a01b031633146126e25760405162461bcd60e51b8152600401610b43906144ab565b604051627eeac760e11b81523060048201819052602482018390526001600160a01b0385169163f242432a919085908590859062fdd58e90604401602060405180830381865afa15801561273a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061275e91906148ab565b6040516001600160e01b031960e087901b1681526001600160a01b0394851660048201529390921660248401526044830152606482015260a06084820152600060a482015260c40161194a565b6005546001600160a01b031633146127d55760405162461bcd60e51b8152600401610b43906144ab565b60008281526007602052604090205482906128025760405162461bcd60e51b8152600401610b43906144e0565b50600091825260066020526040909120805460ff909216600160e81b0260ff60e81b19909216919091179055565b6001600160a01b03851633148061284c575061284c8533610a2d565b6128aa5760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260448201526808185c1c1c9bdd995960ba1b6064820152608401610b43565b610d108585858585613396565b6005546001600160a01b031633146128e15760405162461bcd60e51b8152600401610b43906144ab565b6001600160a01b0381166129465760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610b43565b61294f81613264565b50565b6005546001600160a01b0316331461297c5760405162461bcd60e51b8152600401610b43906144ab565b8281146129d55760405162461bcd60e51b815260206004820152602160248201527f526563697069656e747320616e6420616d6f756e7473206d757374206d6174636044820152600d60fb1b6064820152608401610b43565b8260006129e2878261180b565b905060005b82811015612a5057612a48878783818110612a0457612a0461469a565b9050602002016020810190612a1991906140fa565b83878785818110612a2c57612a2c61469a565b90506020020135604051806020016040528060008152506134c0565b6001016129e7565b5050505050505050565b60006001600160e01b0319821663152a902d60e11b1480610b7d5750610b7d82613591565b6127106001600160601b0382161115612aaa5760405162461bcd60e51b8152600401610b43906148c4565b6001600160a01b038216612b005760405162461bcd60e51b815260206004820152601960248201527f455243323938313a20696e76616c6964207265636569766572000000000000006044820152606401610b43565b604080518082019091526001600160a01b039092168083526001600160601b039091166020909201829052600160a01b90910217600355565b60008381526008602090815260408083206001600160a01b0388168452909152902054612b6790829061482f565b60008481526008602090815260408083206001600160a01b0389168452825280832093909355858252600790522054612ba190829061482f565b600084815260076020526040812091909155826001600160401b03811115612bcb57612bcb613d1a565b604051908082528060200260200182016040528015612bf4578160200160208202803683370190505b5090506000836001600160401b03811115612c1157612c11613d1a565b604051908082528060200260200182016040528015612c3a578160200160208202803683370190505b50905060005b84811015612c9b57612c578661061b83600161482f565b838281518110612c6957612c6961469a565b60200260200101818152505083828281518110612c8857612c8861469a565b6020908102919091010152600101612c40565b5061136f868383604051806020016040528060008152506135e1565b606081600003612cde5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115612d085780612cf281614892565b9150612d019050600a8361455d565b9150612ce2565b6000816001600160401b03811115612d2257612d22613d1a565b6040519080825280601f01601f191660200182016040528015612d4c576020820181803683370190505b5090505b8415612db757612d6160018361490e565b9150612d6e600a86614571565b612d7990603061482f565b60f81b818381518110612d8e57612d8e61469a565b60200101906001600160f81b031916908160001a905350612db0600a8661455d565b9450612d50565b949350505050565b8151835114612de05760405162461bcd60e51b8152600401610b4390614925565b6001600160a01b038416612e065760405162461bcd60e51b8152600401610b439061496d565b3360005b8451811015612eed576000858281518110612e2757612e2761469a565b602002602001015190506000858381518110612e4557612e4561469a565b602090810291909101810151600084815280835260408082206001600160a01b038e168352909352919091205490915081811015612e955760405162461bcd60e51b8152600401610b43906149b2565b6000838152602081815260408083206001600160a01b038e8116855292528083208585039055908b16825281208054849290612ed290849061482f565b9250508190555050505080612ee690614892565b9050612e0a565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051612f3d9291906149fc565b60405180910390a461136f818787878787613728565b600082612f608584613883565b14949350505050565b600554600160a01b900460ff1615612f935760405162461bcd60e51b8152600401610b4390614805565b60006009819055600a556118a7613134565b600554600160a01b900460ff16612fce5760405162461bcd60e51b8152600401610b4390614847565b6005805460ff60a01b191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b8047101561306b5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e63650000006044820152606401610b43565b6000826001600160a01b03168260405160006040518083038185875af1925050503d80600081146130b8576040519150601f19603f3d011682016040523d82523d6000602084013e6130bd565b606091505b5050905080610ff05760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d617920686176652072657665727465640000000000006064820152608401610b43565b600554600160a01b900460ff161561315e5760405162461bcd60e51b8152600401610b4390614805565b6005805460ff60a01b1916600160a01b1790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258612ffe3390565b6127106001600160601b03821611156131c45760405162461bcd60e51b8152600401610b43906148c4565b6001600160a01b03821661321a5760405162461bcd60e51b815260206004820152601b60248201527f455243323938313a20496e76616c696420706172616d657465727300000000006044820152606401610b43565b6040805180820182526001600160a01b0393841681526001600160601b0392831660208083019182526000968752600490529190942093519051909116600160a01b029116179055565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b816001600160a01b0316836001600160a01b0316036133295760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2073657474696e6720617070726f76616c20737461747573604482015268103337b91039b2b63360b91b6064820152608401610b43565b6001600160a01b03838116600081815260016020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6001600160a01b0384166133bc5760405162461bcd60e51b8152600401610b439061496d565b3360006133c8856138ef565b905060006133d5856138ef565b90506000868152602081815260408083206001600160a01b038c168452909152902054858110156134185760405162461bcd60e51b8152600401610b43906149b2565b6000878152602081815260408083206001600160a01b038d8116855292528083208985039055908a1682528120805488929061345590849061482f565b909155505060408051888152602081018890526001600160a01b03808b16928c821692918816917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a46134b5848a8a8a8a8a61393a565b505050505050505050565b6001600160a01b0384166134e65760405162461bcd60e51b8152600401610b4390614a21565b3360006134f2856138ef565b905060006134ff856138ef565b90506000868152602081815260408083206001600160a01b038b1684529091528120805487929061353190849061482f565b909155505060408051878152602081018790526001600160a01b03808a1692600092918716917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a461136d8360008989898961393a565b60006001600160e01b03198216636cdb3d1360e11b14806135c257506001600160e01b031982166303a24d0760e21b145b80610b7d57506301ffc9a760e01b6001600160e01b0319831614610b7d565b6001600160a01b0384166136075760405162461bcd60e51b8152600401610b4390614a21565b81518351146136285760405162461bcd60e51b8152600401610b4390614925565b3360005b84518110156136c4578381815181106136475761364761469a565b60200260200101516000808784815181106136645761366461469a565b602002602001015181526020019081526020016000206000886001600160a01b03166001600160a01b0316815260200190815260200160002060008282546136ac919061482f565b909155508190506136bc81614892565b91505061362c565b50846001600160a01b031660006001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb87876040516137159291906149fc565b60405180910390a4610d10816000878787875b6001600160a01b0384163b1561136f5760405163bc197c8160e01b81526001600160a01b0385169063bc197c819061376c9089908990889088908890600401614a62565b6020604051808303816000875af19250505080156137a7575060408051601f3d908101601f191682019092526137a491810190614ac0565b60015b613853576137b3614add565b806308c379a0036137ec57506137c7614af8565b806137d257506137ee565b8060405162461bcd60e51b8152600401610b439190613c74565b505b60405162461bcd60e51b815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e20455243313135356044820152732932b1b2b4bb32b91034b6b83632b6b2b73a32b960611b6064820152608401610b43565b6001600160e01b0319811663bc197c8160e01b1461136d5760405162461bcd60e51b8152600401610b4390614b81565b600081815b8451811015611b3c5760008582815181106138a5576138a561469a565b602002602001015190508083116138cb57600083815260208290526040902092506138dc565b600081815260208490526040902092505b50806138e781614892565b915050613888565b604080516001808252818301909252606091600091906020808301908036833701905050905082816000815181106139295761392961469a565b602090810291909101015292915050565b6001600160a01b0384163b1561136f5760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e619061397e9089908990889088908890600401614bc9565b6020604051808303816000875af19250505080156139b9575060408051601f3d908101601f191682019092526139b691810190614ac0565b60015b6139c5576137b3614add565b6001600160e01b0319811663f23a6e6160e01b1461136d5760405162461bcd60e51b8152600401610b4390614b81565b828054613a0190614585565b90600052602060002090601f016020900481019282613a235760008555613a69565b82601f10613a3c5782800160ff19823516178555613a69565b82800160010185558215613a69579182015b82811115613a69578235825591602001919060010190613a4e565b50613a75929150613aed565b5090565b828054613a8590614585565b90600052602060002090601f016020900481019282613aa75760008555613a69565b82601f10613ac057805160ff1916838001178555613a69565b82800160010185558215613a69579182015b82811115613a69578251825591602001919060010190613ad2565b5b80821115613a755760008155600101613aee565b6001600160a01b038116811461294f57600080fd5b60008060408385031215613b2a57600080fd5b8235613b3581613b02565b946020939093013593505050565b6001600160e01b03198116811461294f57600080fd5b600060208284031215613b6b57600080fd5b813561186e81613b43565b80356001600160601b0381168114613b8d57600080fd5b919050565b60008060408385031215613ba557600080fd5b8235613bb081613b02565b9150613bbe60208401613b76565b90509250929050565b80356001600160401b0381168114613b8d57600080fd5b600080600060608486031215613bf357600080fd5b833592506020840135613c0581613b02565b9150613c1360408501613bc7565b90509250925092565b60005b83811015613c37578181015183820152602001613c1f565b83811115611a155750506000910152565b60008151808452613c60816020860160208601613c1c565b601f01601f19169290920160200192915050565b60208152600061186e6020830184613c48565b600060208284031215613c9957600080fd5b5035919050565b60008060408385031215613cb357600080fd5b50508035926020909101359150565b60008060408385031215613cd557600080fd5b82359150613bbe60208401613b76565b600080600060608486031215613cfa57600080fd5b833592506020840135613d0c81613b02565b9150613c1360408501613b76565b634e487b7160e01b600052604160045260246000fd5b601f8201601f191681016001600160401b0381118282101715613d5557613d55613d1a565b6040525050565b60006001600160401b03821115613d7557613d75613d1a565b5060051b60200190565b600082601f830112613d9057600080fd5b81356020613d9d82613d5c565b604051613daa8282613d30565b83815260059390931b8501820192828101915086841115613dca57600080fd5b8286015b84811015613de55780358352918301918301613dce565b509695505050505050565b600082601f830112613e0157600080fd5b81356001600160401b03811115613e1a57613e1a613d1a565b604051613e31601f8301601f191660200182613d30565b818152846020838601011115613e4657600080fd5b816020850160208301376000918101602001919091529392505050565b600080600080600060a08688031215613e7b57600080fd5b8535613e8681613b02565b94506020860135613e9681613b02565b935060408601356001600160401b0380821115613eb257600080fd5b613ebe89838a01613d7f565b94506060880135915080821115613ed457600080fd5b613ee089838a01613d7f565b93506080880135915080821115613ef657600080fd5b50613f0388828901613df0565b9150509295509295909350565b60008083601f840112613f2257600080fd5b5081356001600160401b03811115613f3957600080fd5b6020830191508360208260051b8501011115610f1857600080fd5b600080600060408486031215613f6957600080fd5b8335925060208401356001600160401b03811115613f8657600080fd5b613f9286828701613f10565b9497909650939450505050565b600080600060608486031215613fb457600080fd5b8335613fbf81613b02565b92506020840135613fcf81613b02565b929592945050506040919091013590565b60008060408385031215613ff357600080fd5b82356001600160401b038082111561400a57600080fd5b818501915085601f83011261401e57600080fd5b8135602061402b82613d5c565b6040516140388282613d30565b83815260059390931b850182019282810191508984111561405857600080fd5b948201945b8386101561407f57853561407081613b02565b8252948201949082019061405d565b9650508601359250508082111561409557600080fd5b506140a285828601613d7f565b9150509250929050565b600081518084526020808501945080840160005b838110156140dc578151875295820195908201906001016140c0565b509495945050505050565b60208152600061186e60208301846140ac565b60006020828403121561410c57600080fd5b813561186e81613b02565b6000806040838503121561412a57600080fd5b82359150602083013561413c81613b02565b809150509250929050565b6000806040838503121561415a57600080fd5b82359150613bbe60208401613bc7565b60008083601f84011261417c57600080fd5b5081356001600160401b0381111561419357600080fd5b602083019150836020828501011115610f1857600080fd5b6000806000604084860312156141c057600080fd5b8335925060208401356001600160401b038111156141dd57600080fd5b613f928682870161416a565b801515811461294f57600080fd5b6000806040838503121561420a57600080fd5b823561421581613b02565b9150602083013561413c816141e9565b803560ff81168114613b8d57600080fd5b6000806040838503121561424957600080fd5b82359150613bbe60208401614225565b6001600160601b038816815260006001600160401b03808916602084015280881660408401525060ff8616606083015260ff8516608083015261ffff841660a083015260e060c08301526142b060e0830184613c48565b9998505050505050505050565b6000806000806000806000806000806101008b8d0312156142dd57600080fd5b6142e68b613b76565b99506142f460208c01613bc7565b985061430260408c01613bc7565b975061431060608c01614225565b965061431e60808c01614225565b955060a08b013561ffff8116811461433557600080fd5b945060c08b01356001600160401b038082111561435157600080fd5b61435d8e838f01613f10565b909650945060e08d013591508082111561437657600080fd5b506143838d828e0161416a565b915080935050809150509295989b9194979a5092959850565b600080604083850312156143af57600080fd5b82356143ba81613b02565b9150602083013561413c81613b02565b600080600080600060a086880312156143e257600080fd5b85356143ed81613b02565b945060208601356143fd81613b02565b9350604086013592506060860135915060808601356001600160401b0381111561442657600080fd5b613f0388828901613df0565b60008060008060006060868803121561444a57600080fd5b8535945060208601356001600160401b038082111561446857600080fd5b61447489838a01613f10565b9096509450604088013591508082111561448d57600080fd5b5061449a88828901613f10565b969995985093965092949392505050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6020808252600f908201526e496e76616c69642072656c6561736560881b604082015260600190565b634e487b7160e01b600052601160045260246000fd5b60006001600160401b038381169083168181101561453f5761453f614509565b039392505050565b634e487b7160e01b600052601260045260246000fd5b60008261456c5761456c614547565b500490565b60008261458057614580614547565b500690565b600181811c9082168061459957607f821691505b6020821081036120a857634e487b7160e01b600052602260045260246000fd5b600081516145cb818560208601613c1c565b9290920192915050565b600080845481600182811c9150808316806145f157607f831692505b6020808410820361461057634e487b7160e01b86526022600452602486fd5b818015614624576001811461463557614662565b60ff19861689528489019650614662565b60008b81526020902060005b8681101561465a5781548b820152908501908301614641565b505084890196505b50505050505061467281856145b9565b95945050505050565b600081600019048311821515161561469557614695614509565b500290565b634e487b7160e01b600052603260045260246000fd5b600081518084526020808501945080840160005b838110156140dc5781516001600160a01b0316875295820195908201906001016146c4565b600081518084526020808501945080840160005b838110156140dc57815163ffffffff16875295820195908201906001016146fd565b60608152600061473260608301866146b0565b828103602084015261474481866146e9565b91505063ffffffff83166040830152949350505050565b60006020828403121561476d57600080fd5b815161186e81613b02565b60808152600061478b60808301876146b0565b828103602084015261479d81876146e9565b63ffffffff95909516604084015250506001600160a01b039190911660609091015292915050565b6001600160a01b03841681526060602082018190526000906147e9908301856146b0565b82810360408401526147fb81856146e9565b9695505050505050565b60208082526010908201526f14185d5cd8589b194e881c185d5cd95960821b604082015260600190565b6000821982111561484257614842614509565b500190565b60208082526014908201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b604082015260600190565b60006020828403121561488757600080fd5b815161186e816141e9565b6000600182016148a4576148a4614509565b5060010190565b6000602082840312156148bd57600080fd5b5051919050565b6020808252602a908201527f455243323938313a20726f79616c7479206665652077696c6c206578636565646040820152692073616c65507269636560b01b606082015260800190565b60008282101561492057614920614509565b500390565b60208082526028908201527f455243313135353a2069647320616e6420616d6f756e7473206c656e677468206040820152670dad2e6dac2e8c6d60c31b606082015260800190565b60208082526025908201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604082015264647265737360d81b606082015260800190565b6020808252602a908201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60408201526939103a3930b739b332b960b11b606082015260800190565b604081526000614a0f60408301856140ac565b828103602084015261467281856140ac565b60208082526021908201527f455243313135353a206d696e7420746f20746865207a65726f206164647265736040820152607360f81b606082015260800190565b6001600160a01b0386811682528516602082015260a060408201819052600090614a8e908301866140ac565b8281036060840152614aa081866140ac565b90508281036080840152614ab48185613c48565b98975050505050505050565b600060208284031215614ad257600080fd5b815161186e81613b43565b600060033d1115611c8b5760046000803e5060005160e01c90565b600060443d1015614b065790565b6040516003193d81016004833e81513d6001600160401b038160248401118184111715614b3557505050505090565b8285019150815181811115614b4d5750505050505090565b843d8701016020828501011115614b675750505050505090565b614b7660208286010187613d30565b509095945050505050565b60208082526028908201527f455243313135353a204552433131353552656365697665722072656a656374656040820152676420746f6b656e7360c01b606082015260800190565b6001600160a01b03868116825285166020820152604081018490526060810183905260a060808201819052600090614c0390830184613c48565b97965050505050505056fea264697066735822122081de2589927bc614b5211700612e4cd2e24feed511247d6b5e04b044df460ba564736f6c634300080e0033

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

0000000000000000000000007fc74d4fe9dba98ec6c88255b174da2d0a38cb32000000000000000000000000c4d5451a1282f573447d84185f738005df7768750000000000000000000000002ed6c4b5da6378c7897ac67ba9e43102feb694ee

-----Decoded View---------------
Arg [0] : _mintPayoutAddress (address): 0x7fC74d4Fe9dbA98EC6c88255B174Da2d0A38cB32
Arg [1] : _teamPayoutAddress (address): 0xC4d5451A1282f573447D84185f738005df776875
Arg [2] : _splitterFactoryAddress (address): 0x2ed6c4B5dA6378c7897AC67Ba9e43102Feb694EE

-----Encoded View---------------
3 Constructor Arguments found :
Arg [0] : 0000000000000000000000007fc74d4fe9dba98ec6c88255b174da2d0a38cb32
Arg [1] : 000000000000000000000000c4d5451a1282f573447d84185f738005df776875
Arg [2] : 0000000000000000000000002ed6c4b5da6378c7897ac67ba9e43102feb694ee


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.