ETH Price: $3,162.40 (+3.06%)

Token

Minting Miracles (MM)
 

Overview

Max Total Supply

398 MM

Holders

191

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Balance
1 MM
0x5862C76a6456f0f7F83da54C7317F18D496c378a
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:
MintingMiracles

Compiler Version
v0.8.4+commit.c7e474f2

Optimization Enabled:
Yes with 200 runs

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

pragma solidity ^0.8.4;

import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";
import "@openzeppelin/contracts/finance/PaymentSplitter.sol";
import "./PresaleList.sol";

// @author numbco.art
// @title Minting Miracles
contract MintingMiracles is
  ERC721,
  ERC721Enumerable,
  Ownable,
  PaymentSplitter,
  PresaleList
{
  address[] private payeeAddresses;

  uint256 private mintPrice = 0.06 ether;
  mapping(address => bool) public presaleMinted; // Mapping of addresses who have minted in presale
  mapping(address => bool) public partnerMinted; // Mapping of addresses who have minted partner tokens

  bool public presaleIsActive = false;
  bool public saleIsActive = false;
  bool public partnerGiveawayIsActive = false;

  string private _baseURIextended;

  uint16 private constant MAX_SUPPLY = 3000;
  uint16 private constant MINT_LIMIT = 10;

  uint16 private tokensGiven;

  uint16 private partnerTokensGiven;
  uint16 private tokensPartner = 378; // Not a constant. If not all partners mint, set to 0

  bytes32[] private merkleRoots;
  uint16[] private presaleCounts;

  event MintPresale(address indexed claimer, uint256 indexed tokenId);
  event MintGiveaway(address indexed claimer, uint256 indexed tokenId);
  event MintPublic(address indexed claimer, uint256 indexed tokenId);
  event MintPartner(address indexed claimer, uint256 indexed tokenId);

  constructor(
    address[] memory _payeeAddresses,
    uint256[] memory payeeShares,
    bytes32[] memory _merkleRoots,
    uint16[] memory _presaleCounts
  )
    ERC721("Minting Miracles", "MM")
    PaymentSplitter(_payeeAddresses, payeeShares)
    PresaleList()
  {
    payeeAddresses = _payeeAddresses;
    merkleRoots = _merkleRoots;
    presaleCounts = _presaleCounts;
  }

  function setActiveStates(
    bool _presaleIsActive,
    bool _saleIsActive,
    bool _partnerGiveawayIsActive
  ) public onlyOwner {
    presaleIsActive = _presaleIsActive;
    saleIsActive = _saleIsActive;
    partnerGiveawayIsActive = _partnerGiveawayIsActive;
  }

  function setTokensPartner(uint16 _tokensPartner) public onlyOwner {
    tokensPartner = _tokensPartner;
  }

  function getTokensPartner() public view onlyOwner returns (uint16) {
    return tokensPartner;
  }

  function setBaseURI(string memory baseURI_) public onlyOwner {
    _baseURIextended = baseURI_;
  }

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

  function mintPresale(bytes32[] memory merkleProof, uint16 _count)
    external
    payable
  {
    uint256 ts = totalSupply();
    require(presaleIsActive, "presaleIsActive");
    require(_count <= presaleCounts[0], "TRANSACTION_LIMIT");
    require(ts + _count <= MAX_SUPPLY, "MAX_SUPPLY");
    require(msg.value >= mintPrice * _count, "mintPrice");
    require(!presaleMinted[msg.sender], "presaleMinted");
    require(isOnList(merkleRoots[0], merkleProof, msg.sender), "presaleList");

    presaleMinted[msg.sender] = true;
    for (uint16 i = 0; i < _count; i++) {
      _mint(msg.sender, ts);
      emit MintPresale(msg.sender, ts);
      ts++;
    }
  }

  function mintPartner(bytes32[] memory merkleProof, uint16 _count) external {
    uint256 ts = totalSupply();
    require(partnerGiveawayIsActive, "partnerGiveawayIsActive");
    require(_count <= presaleCounts[1], "TRANSACTION_LIMIT");
    require(ts + _count <= MAX_SUPPLY, "MAX_SUPPLY");
    require(!partnerMinted[msg.sender], "partnerMinted");
    require(isOnList(merkleRoots[1], merkleProof, msg.sender), "partnerList");

    partnerMinted[msg.sender] = true;
    for (uint16 i = 0; i < _count; i++) {
      _mint(msg.sender, ts);
      emit MintPartner(msg.sender, ts);
      ts++;
    }
  }

  function mint(uint16 _count) public payable {
    uint256 ts = totalSupply();
    require(saleIsActive, "saleIsActive");
    require(_count <= MINT_LIMIT, "MINT_LIMIT");
    require(ts + _count <= MAX_SUPPLY, "MAX_SUPPLY");
    require(msg.value >= mintPrice * _count, "mintPrice");

    for (uint16 i = 0; i < _count; i++) {
      _mint(msg.sender, ts);
      emit MintPublic(msg.sender, ts);
      ts++;
    }
  }

  function mintGiveaway(uint16 _count) public onlyOwner {
    uint256 ts = totalSupply();
    require(ts + _count <= MAX_SUPPLY, "MAX_SUPPLY");
    require(
      ts + _count <= (MAX_SUPPLY - tokensPartner),
      "ts with tokensPartner"
    );
    for (uint16 i = 0; i < _count; i++) {
      tokensGiven++;
      _mint(msg.sender, ts);
      emit MintGiveaway(msg.sender, ts);
      ts++;
    }
  }

  function withdraw() external {
    require(address(this).balance > 0, "balance");

    release(payable(msg.sender));
  }

  function _beforeTokenTransfer(
    address from,
    address to,
    uint256 tokenId
  ) internal override(ERC721, ERC721Enumerable) {
    super._beforeTokenTransfer(from, to, tokenId);
  }

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

File 2 of 18 : ERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (token/ERC721/ERC721.sol)

pragma solidity ^0.8.0;

import "./IERC721.sol";
import "./IERC721Receiver.sol";
import "./extensions/IERC721Metadata.sol";
import "../../utils/Address.sol";
import "../../utils/Context.sol";
import "../../utils/Strings.sol";
import "../../utils/introspection/ERC165.sol";

/**
 * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
 * the Metadata extension, but not including the Enumerable extension, which is available separately as
 * {ERC721Enumerable}.
 */
contract ERC721 is Context, ERC165, IERC721, IERC721Metadata {
    using Address for address;
    using Strings for uint256;

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

    // Mapping from token ID to owner address
    mapping(uint256 => address) private _owners;

    // Mapping owner address to token count
    mapping(address => uint256) private _balances;

    // Mapping from token ID to approved address
    mapping(uint256 => address) private _tokenApprovals;

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

    /**
     * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection.
     */
    constructor(string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
    }

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

    /**
     * @dev See {IERC721-balanceOf}.
     */
    function balanceOf(address owner) public view virtual override returns (uint256) {
        require(owner != address(0), "ERC721: balance query for the zero address");
        return _balances[owner];
    }

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

    /**
     * @dev See {IERC721Metadata-name}.
     */
    function name() public view virtual override returns (string memory) {
        return _name;
    }

    /**
     * @dev See {IERC721Metadata-symbol}.
     */
    function symbol() public view virtual override returns (string memory) {
        return _symbol;
    }

    /**
     * @dev See {IERC721Metadata-tokenURI}.
     */
    function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
        require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token");

        string memory baseURI = _baseURI();
        return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : "";
    }

    /**
     * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each
     * token will be the concatenation of the `baseURI` and the `tokenId`. Empty
     * by default, can be overriden in child contracts.
     */
    function _baseURI() internal view virtual returns (string memory) {
        return "";
    }

    /**
     * @dev See {IERC721-approve}.
     */
    function approve(address to, uint256 tokenId) public virtual override {
        address owner = ERC721.ownerOf(tokenId);
        require(to != owner, "ERC721: approval to current owner");

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

        _approve(to, tokenId);
    }

    /**
     * @dev See {IERC721-getApproved}.
     */
    function getApproved(uint256 tokenId) public view virtual override returns (address) {
        require(_exists(tokenId), "ERC721: approved query for nonexistent token");

        return _tokenApprovals[tokenId];
    }

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

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

    /**
     * @dev See {IERC721-transferFrom}.
     */
    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public virtual override {
        //solhint-disable-next-line max-line-length
        require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved");

        _transfer(from, to, tokenId);
    }

    /**
     * @dev See {IERC721-safeTransferFrom}.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public virtual override {
        safeTransferFrom(from, to, tokenId, "");
    }

    /**
     * @dev See {IERC721-safeTransferFrom}.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) public virtual override {
        require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved");
        _safeTransfer(from, to, tokenId, _data);
    }

    /**
     * @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.
     *
     * `_data` is additional data, it has no specified format and it is sent in call to `to`.
     *
     * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g.
     * implement alternative mechanisms to perform token transfer, such as signature-based.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function _safeTransfer(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) internal virtual {
        _transfer(from, to, tokenId);
        require(_checkOnERC721Received(from, to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer");
    }

    /**
     * @dev Returns whether `tokenId` exists.
     *
     * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}.
     *
     * Tokens start existing when they are minted (`_mint`),
     * and stop existing when they are burned (`_burn`).
     */
    function _exists(uint256 tokenId) internal view virtual returns (bool) {
        return _owners[tokenId] != address(0);
    }

    /**
     * @dev Returns whether `spender` is allowed to manage `tokenId`.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) {
        require(_exists(tokenId), "ERC721: operator query for nonexistent token");
        address owner = ERC721.ownerOf(tokenId);
        return (spender == owner || getApproved(tokenId) == spender || isApprovedForAll(owner, spender));
    }

    /**
     * @dev Safely mints `tokenId` and transfers it to `to`.
     *
     * Requirements:
     *
     * - `tokenId` must not exist.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function _safeMint(address to, uint256 tokenId) internal virtual {
        _safeMint(to, tokenId, "");
    }

    /**
     * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is
     * forwarded in {IERC721Receiver-onERC721Received} to contract recipients.
     */
    function _safeMint(
        address to,
        uint256 tokenId,
        bytes memory _data
    ) internal virtual {
        _mint(to, tokenId);
        require(
            _checkOnERC721Received(address(0), to, tokenId, _data),
            "ERC721: transfer to non ERC721Receiver implementer"
        );
    }

    /**
     * @dev Mints `tokenId` and transfers it to `to`.
     *
     * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible
     *
     * Requirements:
     *
     * - `tokenId` must not exist.
     * - `to` cannot be the zero address.
     *
     * Emits a {Transfer} event.
     */
    function _mint(address to, uint256 tokenId) internal virtual {
        require(to != address(0), "ERC721: mint to the zero address");
        require(!_exists(tokenId), "ERC721: token already minted");

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

        _balances[to] += 1;
        _owners[tokenId] = to;

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

    /**
     * @dev Destroys `tokenId`.
     * The approval is cleared when the token is burned.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     *
     * Emits a {Transfer} event.
     */
    function _burn(uint256 tokenId) internal virtual {
        address owner = ERC721.ownerOf(tokenId);

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

        // Clear approvals
        _approve(address(0), tokenId);

        _balances[owner] -= 1;
        delete _owners[tokenId];

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

    /**
     * @dev Transfers `tokenId` from `from` to `to`.
     *  As opposed to {transferFrom}, this imposes no restrictions on msg.sender.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - `tokenId` token must be owned by `from`.
     *
     * Emits a {Transfer} event.
     */
    function _transfer(
        address from,
        address to,
        uint256 tokenId
    ) internal virtual {
        require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer of token that is not own");
        require(to != address(0), "ERC721: transfer to the zero address");

        _beforeTokenTransfer(from, to, tokenId);

        // Clear approvals from the previous owner
        _approve(address(0), tokenId);

        _balances[from] -= 1;
        _balances[to] += 1;
        _owners[tokenId] = to;

        emit Transfer(from, to, tokenId);
    }

    /**
     * @dev Approve `to` to operate on `tokenId`
     *
     * Emits a {Approval} event.
     */
    function _approve(address to, uint256 tokenId) internal virtual {
        _tokenApprovals[tokenId] = to;
        emit Approval(ERC721.ownerOf(tokenId), to, tokenId);
    }

    /**
     * @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, "ERC721: approve to caller");
        _operatorApprovals[owner][operator] = approved;
        emit ApprovalForAll(owner, operator, approved);
    }

    /**
     * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address.
     * The call is not executed if the target address is not a contract.
     *
     * @param from address representing the previous owner of the given token ID
     * @param to target address that will receive the tokens
     * @param tokenId uint256 ID of the token to be transferred
     * @param _data bytes optional data to send along with the call
     * @return bool whether the call correctly returned the expected magic value
     */
    function _checkOnERC721Received(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) private returns (bool) {
        if (to.isContract()) {
            try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) {
                return retval == IERC721Receiver.onERC721Received.selector;
            } catch (bytes memory reason) {
                if (reason.length == 0) {
                    revert("ERC721: transfer to non ERC721Receiver implementer");
                } else {
                    assembly {
                        revert(add(32, reason), mload(reason))
                    }
                }
            }
        } else {
            return true;
        }
    }

    /**
     * @dev Hook that is called before any token transfer. This includes minting
     * and burning.
     *
     * Calling conditions:
     *
     * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be
     * transferred to `to`.
     * - When `from` is zero, `tokenId` will be minted for `to`.
     * - When `to` is zero, ``from``'s `tokenId` will be burned.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _beforeTokenTransfer(
        address from,
        address to,
        uint256 tokenId
    ) internal virtual {}
}

File 3 of 18 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (access/Ownable.sol)

pragma solidity ^0.8.0;

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

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

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

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

    /**
     * @dev 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 4 of 18 : ERC721Enumerable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (token/ERC721/extensions/ERC721Enumerable.sol)

pragma solidity ^0.8.0;

import "../ERC721.sol";
import "./IERC721Enumerable.sol";

/**
 * @dev This implements an optional extension of {ERC721} defined in the EIP that adds
 * enumerability of all the token ids in the contract as well as all token ids owned by each
 * account.
 */
abstract contract ERC721Enumerable is ERC721, IERC721Enumerable {
    // Mapping from owner to list of owned token IDs
    mapping(address => mapping(uint256 => uint256)) private _ownedTokens;

    // Mapping from token ID to index of the owner tokens list
    mapping(uint256 => uint256) private _ownedTokensIndex;

    // Array with all token ids, used for enumeration
    uint256[] private _allTokens;

    // Mapping from token id to position in the allTokens array
    mapping(uint256 => uint256) private _allTokensIndex;

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

    /**
     * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}.
     */
    function tokenOfOwnerByIndex(address owner, uint256 index) public view virtual override returns (uint256) {
        require(index < ERC721.balanceOf(owner), "ERC721Enumerable: owner index out of bounds");
        return _ownedTokens[owner][index];
    }

    /**
     * @dev See {IERC721Enumerable-totalSupply}.
     */
    function totalSupply() public view virtual override returns (uint256) {
        return _allTokens.length;
    }

    /**
     * @dev See {IERC721Enumerable-tokenByIndex}.
     */
    function tokenByIndex(uint256 index) public view virtual override returns (uint256) {
        require(index < ERC721Enumerable.totalSupply(), "ERC721Enumerable: global index out of bounds");
        return _allTokens[index];
    }

    /**
     * @dev Hook that is called before any token transfer. This includes minting
     * and burning.
     *
     * Calling conditions:
     *
     * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be
     * transferred to `to`.
     * - When `from` is zero, `tokenId` will be minted for `to`.
     * - When `to` is zero, ``from``'s `tokenId` will be burned.
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _beforeTokenTransfer(
        address from,
        address to,
        uint256 tokenId
    ) internal virtual override {
        super._beforeTokenTransfer(from, to, tokenId);

        if (from == address(0)) {
            _addTokenToAllTokensEnumeration(tokenId);
        } else if (from != to) {
            _removeTokenFromOwnerEnumeration(from, tokenId);
        }
        if (to == address(0)) {
            _removeTokenFromAllTokensEnumeration(tokenId);
        } else if (to != from) {
            _addTokenToOwnerEnumeration(to, tokenId);
        }
    }

    /**
     * @dev Private function to add a token to this extension's ownership-tracking data structures.
     * @param to address representing the new owner of the given token ID
     * @param tokenId uint256 ID of the token to be added to the tokens list of the given address
     */
    function _addTokenToOwnerEnumeration(address to, uint256 tokenId) private {
        uint256 length = ERC721.balanceOf(to);
        _ownedTokens[to][length] = tokenId;
        _ownedTokensIndex[tokenId] = length;
    }

    /**
     * @dev Private function to add a token to this extension's token tracking data structures.
     * @param tokenId uint256 ID of the token to be added to the tokens list
     */
    function _addTokenToAllTokensEnumeration(uint256 tokenId) private {
        _allTokensIndex[tokenId] = _allTokens.length;
        _allTokens.push(tokenId);
    }

    /**
     * @dev Private function to remove a token from this extension's ownership-tracking data structures. Note that
     * while the token is not assigned a new owner, the `_ownedTokensIndex` mapping is _not_ updated: this allows for
     * gas optimizations e.g. when performing a transfer operation (avoiding double writes).
     * This has O(1) time complexity, but alters the order of the _ownedTokens array.
     * @param from address representing the previous owner of the given token ID
     * @param tokenId uint256 ID of the token to be removed from the tokens list of the given address
     */
    function _removeTokenFromOwnerEnumeration(address from, uint256 tokenId) private {
        // To prevent a gap in from's tokens array, we store the last token in the index of the token to delete, and
        // then delete the last slot (swap and pop).

        uint256 lastTokenIndex = ERC721.balanceOf(from) - 1;
        uint256 tokenIndex = _ownedTokensIndex[tokenId];

        // When the token to delete is the last token, the swap operation is unnecessary
        if (tokenIndex != lastTokenIndex) {
            uint256 lastTokenId = _ownedTokens[from][lastTokenIndex];

            _ownedTokens[from][tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token
            _ownedTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index
        }

        // This also deletes the contents at the last position of the array
        delete _ownedTokensIndex[tokenId];
        delete _ownedTokens[from][lastTokenIndex];
    }

    /**
     * @dev Private function to remove a token from this extension's token tracking data structures.
     * This has O(1) time complexity, but alters the order of the _allTokens array.
     * @param tokenId uint256 ID of the token to be removed from the tokens list
     */
    function _removeTokenFromAllTokensEnumeration(uint256 tokenId) private {
        // To prevent a gap in the tokens array, we store the last token in the index of the token to delete, and
        // then delete the last slot (swap and pop).

        uint256 lastTokenIndex = _allTokens.length - 1;
        uint256 tokenIndex = _allTokensIndex[tokenId];

        // When the token to delete is the last token, the swap operation is unnecessary. However, since this occurs so
        // rarely (when the last minted token is burnt) that we still do the swap here to avoid the gas cost of adding
        // an 'if' statement (like in _removeTokenFromOwnerEnumeration)
        uint256 lastTokenId = _allTokens[lastTokenIndex];

        _allTokens[tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token
        _allTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index

        // This also deletes the contents at the last position of the array
        delete _allTokensIndex[tokenId];
        _allTokens.pop();
    }
}

File 5 of 18 : PaymentSplitter.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (finance/PaymentSplitter.sol)

pragma solidity ^0.8.0;

import "../token/ERC20/utils/SafeERC20.sol";
import "../utils/Address.sol";
import "../utils/Context.sol";

/**
 * @title PaymentSplitter
 * @dev This contract allows to split Ether payments among a group of accounts. The sender does not need to be aware
 * that the Ether will be split in this way, since it is handled transparently by the contract.
 *
 * The split can be in equal parts or in any other arbitrary proportion. The way this is specified is by assigning each
 * account to a number of shares. Of all the Ether that this contract receives, each account will then be able to claim
 * an amount proportional to the percentage of total shares they were assigned.
 *
 * `PaymentSplitter` follows a _pull payment_ model. This means that payments are not automatically forwarded to the
 * accounts but kept in this contract, and the actual transfer is triggered as a separate step by calling the {release}
 * function.
 *
 * NOTE: This contract assumes that ERC20 tokens will behave similarly to native tokens (Ether). Rebasing tokens, and
 * tokens that apply fees during transfers, are likely to not be supported as expected. If in doubt, we encourage you
 * to run tests before sending real value to this contract.
 */
contract PaymentSplitter is Context {
    event PayeeAdded(address account, uint256 shares);
    event PaymentReleased(address to, uint256 amount);
    event ERC20PaymentReleased(IERC20 indexed token, address to, uint256 amount);
    event PaymentReceived(address from, uint256 amount);

    uint256 private _totalShares;
    uint256 private _totalReleased;

    mapping(address => uint256) private _shares;
    mapping(address => uint256) private _released;
    address[] private _payees;

    mapping(IERC20 => uint256) private _erc20TotalReleased;
    mapping(IERC20 => mapping(address => uint256)) private _erc20Released;

    /**
     * @dev Creates an instance of `PaymentSplitter` where each account in `payees` is assigned the number of shares at
     * the matching position in the `shares` array.
     *
     * All addresses in `payees` must be non-zero. Both arrays must have the same non-zero length, and there must be no
     * duplicates in `payees`.
     */
    constructor(address[] memory payees, uint256[] memory shares_) payable {
        require(payees.length == shares_.length, "PaymentSplitter: payees and shares length mismatch");
        require(payees.length > 0, "PaymentSplitter: no payees");

        for (uint256 i = 0; i < payees.length; i++) {
            _addPayee(payees[i], shares_[i]);
        }
    }

    /**
     * @dev The Ether received will be logged with {PaymentReceived} events. Note that these events are not fully
     * reliable: it's possible for a contract to receive Ether without triggering this function. This only affects the
     * reliability of the events, and not the actual splitting of Ether.
     *
     * To learn more about this see the Solidity documentation for
     * https://solidity.readthedocs.io/en/latest/contracts.html#fallback-function[fallback
     * functions].
     */
    receive() external payable virtual {
        emit PaymentReceived(_msgSender(), msg.value);
    }

    /**
     * @dev Getter for the total shares held by payees.
     */
    function totalShares() public view returns (uint256) {
        return _totalShares;
    }

    /**
     * @dev Getter for the total amount of Ether already released.
     */
    function totalReleased() public view returns (uint256) {
        return _totalReleased;
    }

    /**
     * @dev Getter for the total amount of `token` already released. `token` should be the address of an IERC20
     * contract.
     */
    function totalReleased(IERC20 token) public view returns (uint256) {
        return _erc20TotalReleased[token];
    }

    /**
     * @dev Getter for the amount of shares held by an account.
     */
    function shares(address account) public view returns (uint256) {
        return _shares[account];
    }

    /**
     * @dev Getter for the amount of Ether already released to a payee.
     */
    function released(address account) public view returns (uint256) {
        return _released[account];
    }

    /**
     * @dev Getter for the amount of `token` tokens already released to a payee. `token` should be the address of an
     * IERC20 contract.
     */
    function released(IERC20 token, address account) public view returns (uint256) {
        return _erc20Released[token][account];
    }

    /**
     * @dev Getter for the address of the payee number `index`.
     */
    function payee(uint256 index) public view returns (address) {
        return _payees[index];
    }

    /**
     * @dev Triggers a transfer to `account` of the amount of Ether they are owed, according to their percentage of the
     * total shares and their previous withdrawals.
     */
    function release(address payable account) public virtual {
        require(_shares[account] > 0, "PaymentSplitter: account has no shares");

        uint256 totalReceived = address(this).balance + totalReleased();
        uint256 payment = _pendingPayment(account, totalReceived, released(account));

        require(payment != 0, "PaymentSplitter: account is not due payment");

        _released[account] += payment;
        _totalReleased += payment;

        Address.sendValue(account, payment);
        emit PaymentReleased(account, payment);
    }

    /**
     * @dev Triggers a transfer to `account` of the amount of `token` tokens they are owed, according to their
     * percentage of the total shares and their previous withdrawals. `token` must be the address of an IERC20
     * contract.
     */
    function release(IERC20 token, address account) public virtual {
        require(_shares[account] > 0, "PaymentSplitter: account has no shares");

        uint256 totalReceived = token.balanceOf(address(this)) + totalReleased(token);
        uint256 payment = _pendingPayment(account, totalReceived, released(token, account));

        require(payment != 0, "PaymentSplitter: account is not due payment");

        _erc20Released[token][account] += payment;
        _erc20TotalReleased[token] += payment;

        SafeERC20.safeTransfer(token, account, payment);
        emit ERC20PaymentReleased(token, account, payment);
    }

    /**
     * @dev internal logic for computing the pending payment of an `account` given the token historical balances and
     * already released amounts.
     */
    function _pendingPayment(
        address account,
        uint256 totalReceived,
        uint256 alreadyReleased
    ) private view returns (uint256) {
        return (totalReceived * _shares[account]) / _totalShares - alreadyReleased;
    }

    /**
     * @dev Add a new payee to the contract.
     * @param account The address of the payee to add.
     * @param shares_ The number of shares owned by the payee.
     */
    function _addPayee(address account, uint256 shares_) private {
        require(account != address(0), "PaymentSplitter: account is the zero address");
        require(shares_ > 0, "PaymentSplitter: shares are 0");
        require(_shares[account] == 0, "PaymentSplitter: account already has shares");

        _payees.push(account);
        _shares[account] = shares_;
        _totalShares = _totalShares + shares_;
        emit PayeeAdded(account, shares_);
    }
}

File 6 of 18 : PresaleList.sol
//SPDX-License-Identifier: MIT

pragma solidity ^0.8.4;
import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol";

contract PresaleList {
  function isOnList(
    bytes32 merkleRoot,
    bytes32[] memory proof,
    address claimer
  ) public pure returns (bool) {
    bytes32 leaf = keccak256(abi.encodePacked(claimer));
    return MerkleProof.verify(proof, merkleRoot, leaf);
  }
}

File 7 of 18 : IERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.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`, 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 Returns the account approved for `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function getApproved(uint256 tokenId) external view returns (address operator);

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

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

File 8 of 18 : IERC721Receiver.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (token/ERC721/IERC721Receiver.sol)

pragma solidity ^0.8.0;

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

File 9 of 18 : IERC721Metadata.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (token/ERC721/extensions/IERC721Metadata.sol)

pragma solidity ^0.8.0;

import "../IERC721.sol";

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

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

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

File 10 of 18 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (utils/Address.sol)

pragma solidity ^0.8.0;

/**
 * @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
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize, which returns 0 for contracts in
        // construction, since the code is only stored at the end of the
        // constructor execution.

        uint256 size;
        assembly {
            size := extcodesize(account)
        }
        return size > 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 11 of 18 : Context.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (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 18 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (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 13 of 18 : ERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (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 14 of 18 : IERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (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 18 : IERC721Enumerable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (token/ERC721/extensions/IERC721Enumerable.sol)

pragma solidity ^0.8.0;

import "../IERC721.sol";

/**
 * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension
 * @dev See https://eips.ethereum.org/EIPS/eip-721
 */
interface IERC721Enumerable is IERC721 {
    /**
     * @dev Returns the total amount of tokens stored by the contract.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns a token ID owned by `owner` at a given `index` of its token list.
     * Use along with {balanceOf} to enumerate all of ``owner``'s tokens.
     */
    function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256 tokenId);

    /**
     * @dev Returns a token ID at a given `index` of all the tokens stored by the contract.
     * Use along with {totalSupply} to enumerate all tokens.
     */
    function tokenByIndex(uint256 index) external view returns (uint256);
}

File 16 of 18 : SafeERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (token/ERC20/utils/SafeERC20.sol)

pragma solidity ^0.8.0;

import "../IERC20.sol";
import "../../../utils/Address.sol";

/**
 * @title SafeERC20
 * @dev Wrappers around ERC20 operations that throw on failure (when the token
 * contract returns false). Tokens that return no value (and instead revert or
 * throw on failure) are also supported, non-reverting calls are assumed to be
 * successful.
 * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract,
 * which allows you to call the safe operations as `token.safeTransfer(...)`, etc.
 */
library SafeERC20 {
    using Address for address;

    function safeTransfer(
        IERC20 token,
        address to,
        uint256 value
    ) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));
    }

    function safeTransferFrom(
        IERC20 token,
        address from,
        address to,
        uint256 value
    ) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value));
    }

    /**
     * @dev Deprecated. This function has issues similar to the ones found in
     * {IERC20-approve}, and its usage is discouraged.
     *
     * Whenever possible, use {safeIncreaseAllowance} and
     * {safeDecreaseAllowance} instead.
     */
    function safeApprove(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        // safeApprove should only be called when setting an initial allowance,
        // or when resetting it to zero. To increase and decrease it, use
        // 'safeIncreaseAllowance' and 'safeDecreaseAllowance'
        require(
            (value == 0) || (token.allowance(address(this), spender) == 0),
            "SafeERC20: approve from non-zero to non-zero allowance"
        );
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value));
    }

    function safeIncreaseAllowance(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        uint256 newAllowance = token.allowance(address(this), spender) + value;
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
    }

    function safeDecreaseAllowance(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        unchecked {
            uint256 oldAllowance = token.allowance(address(this), spender);
            require(oldAllowance >= value, "SafeERC20: decreased allowance below zero");
            uint256 newAllowance = oldAllowance - value;
            _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
        }
    }

    /**
     * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
     * on the return value: the return value is optional (but if data is returned, it must not be false).
     * @param token The token targeted by the call.
     * @param data The call data (encoded using abi.encode or one of its variants).
     */
    function _callOptionalReturn(IERC20 token, bytes memory data) private {
        // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
        // we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that
        // the target address contains contract code and also asserts for success in the low-level call.

        bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed");
        if (returndata.length > 0) {
            // Return data is optional
            require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed");
        }
    }
}

File 17 of 18 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @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 `recipient`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address recipient, 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 `sender` to `recipient` 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 sender,
        address recipient,
        uint256 amount
    ) external returns (bool);

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

File 18 of 18 : MerkleProof.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.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.
 */
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 Merklee 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 = keccak256(abi.encodePacked(computedHash, proofElement));
            } else {
                // Hash(current element of the proof + current computed hash)
                computedHash = keccak256(abi.encodePacked(proofElement, computedHash));
            }
        }
        return computedHash;
    }
}

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":"_payeeAddresses","type":"address[]"},{"internalType":"uint256[]","name":"payeeShares","type":"uint256[]"},{"internalType":"bytes32[]","name":"_merkleRoots","type":"bytes32[]"},{"internalType":"uint16[]","name":"_presaleCounts","type":"uint16[]"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"contract IERC20","name":"token","type":"address"},{"indexed":false,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"ERC20PaymentReleased","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"claimer","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"MintGiveaway","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"claimer","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"MintPartner","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"claimer","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"MintPresale","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"claimer","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"MintPublic","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"},{"indexed":false,"internalType":"uint256","name":"shares","type":"uint256"}],"name":"PayeeAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"from","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"PaymentReceived","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"PaymentReleased","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getTokensPartner","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"merkleRoot","type":"bytes32"},{"internalType":"bytes32[]","name":"proof","type":"bytes32[]"},{"internalType":"address","name":"claimer","type":"address"}],"name":"isOnList","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint16","name":"_count","type":"uint16"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint16","name":"_count","type":"uint16"}],"name":"mintGiveaway","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32[]","name":"merkleProof","type":"bytes32[]"},{"internalType":"uint16","name":"_count","type":"uint16"}],"name":"mintPartner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32[]","name":"merkleProof","type":"bytes32[]"},{"internalType":"uint16","name":"_count","type":"uint16"}],"name":"mintPresale","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"partnerGiveawayIsActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"partnerMinted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"payee","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"presaleIsActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"presaleMinted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address payable","name":"account","type":"address"}],"name":"release","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"token","type":"address"},{"internalType":"address","name":"account","type":"address"}],"name":"release","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"token","type":"address"},{"internalType":"address","name":"account","type":"address"}],"name":"released","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"released","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"saleIsActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bool","name":"_presaleIsActive","type":"bool"},{"internalType":"bool","name":"_saleIsActive","type":"bool"},{"internalType":"bool","name":"_partnerGiveawayIsActive","type":"bool"}],"name":"setActiveStates","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"baseURI_","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"_tokensPartner","type":"uint16"}],"name":"setTokensPartner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"shares","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","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":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"token","type":"address"}],"name":"totalReleased","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalReleased","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalShares","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]

608060405266d529ae9e8600006013556016805462ffffff191690556018805461ffff60201b191665017a000000001790553480156200003e57600080fd5b5060405162003f1338038062003f13833981016040819052620000619162000792565b604080518082018252601081526f4d696e74696e67204d697261636c657360801b6020808301918252835180850190945260028452614d4d60f01b90840152815187938793929091620000b791600091620004c6565b508051620000cd906001906020840190620004c6565b505050620000ea620000e46200028260201b60201c565b62000286565b80518251146200015c5760405162461bcd60e51b815260206004820152603260248201527f5061796d656e7453706c69747465723a2070617965657320616e6420736861726044820152710cae640d8cadccee8d040dad2e6dac2e8c6d60731b60648201526084015b60405180910390fd5b6000825111620001af5760405162461bcd60e51b815260206004820152601a60248201527f5061796d656e7453706c69747465723a206e6f20706179656573000000000000604482015260640162000153565b60005b825181101562000233576200021e838281518110620001e157634e487b7160e01b600052603260045260246000fd5b60200260200101518383815181106200020a57634e487b7160e01b600052603260045260246000fd5b6020026020010151620002d860201b60201c565b806200022a816200096d565b915050620001b2565b505084516200024b9150601290602087019062000555565b50815162000261906019906020850190620005ad565b5080516200027790601a906020840190620005ea565b5050505050620009b7565b3390565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b038216620003455760405162461bcd60e51b815260206004820152602c60248201527f5061796d656e7453706c69747465723a206163636f756e74206973207468652060448201526b7a65726f206164647265737360a01b606482015260840162000153565b60008111620003975760405162461bcd60e51b815260206004820152601d60248201527f5061796d656e7453706c69747465723a20736861726573206172652030000000604482015260640162000153565b6001600160a01b0382166000908152600d602052604090205415620004135760405162461bcd60e51b815260206004820152602b60248201527f5061796d656e7453706c69747465723a206163636f756e7420616c726561647960448201526a206861732073686172657360a81b606482015260840162000153565b600f8054600181019091557f8d1108e10bcb7c27dddfc02ed9d693a074039d026cf4ea4240b40f7d581ac8020180546001600160a01b0319166001600160a01b0384169081179091556000908152600d60205260409020819055600b546200047d90829062000915565b600b55604080516001600160a01b0384168152602081018390527f40c340f65e17194d14ddddb073d3c9f888e3cb52b5aae0c6c7706b4fbc905fac910160405180910390a15050565b828054620004d49062000930565b90600052602060002090601f016020900481019282620004f8576000855562000543565b82601f106200051357805160ff191683800117855562000543565b8280016001018555821562000543579182015b828111156200054357825182559160200191906001019062000526565b506200055192915062000690565b5090565b82805482825590600052602060002090810192821562000543579160200282015b828111156200054357825182546001600160a01b0319166001600160a01b0390911617825560209092019160019091019062000576565b8280548282559060005260206000209081019282156200054357916020028201828111156200054357825182559160200191906001019062000526565b82805482825590600052602060002090600f01601090048101928215620005435791602002820160005b838211156200065657835183826101000a81548161ffff021916908361ffff160217905550926020019260020160208160010104928301926001030262000614565b8015620006865782816101000a81549061ffff021916905560020160208160010104928301926001030262000656565b5050620005519291505b5b8082111562000551576000815560010162000691565b600082601f830112620006b8578081fd5b81516020620006d1620006cb83620008ef565b620008bc565b80838252828201915082860187848660051b8901011115620006f1578586fd5b855b858110156200071157815184529284019290840190600101620006f3565b5090979650505050505050565b600082601f8301126200072f578081fd5b8151602062000742620006cb83620008ef565b80838252828201915082860187848660051b890101111562000762578586fd5b855b858110156200071157815161ffff811681146200077f578788fd5b8452928401929084019060010162000764565b60008060008060808587031215620007a8578384fd5b84516001600160401b0380821115620007bf578586fd5b818701915087601f830112620007d3578586fd5b81516020620007e6620006cb83620008ef565b8083825282820191508286018c848660051b890101111562000806578a8bfd5b8a96505b848710156200083f5780516001600160a01b03811681146200082a578b8cfd5b8352600196909601959183019183016200080a565b50918a015191985090935050508082111562000859578485fd5b6200086788838901620006a7565b945060408701519150808211156200087d578384fd5b6200088b88838901620006a7565b93506060870151915080821115620008a1578283fd5b50620008b0878288016200071e565b91505092959194509250565b604051601f8201601f191681016001600160401b0381118282101715620008e757620008e7620009a1565b604052919050565b60006001600160401b038211156200090b576200090b620009a1565b5060051b60200190565b600082198211156200092b576200092b6200098b565b500190565b600181811c908216806200094557607f821691505b602082108114156200096757634e487b7160e01b600052602260045260246000fd5b50919050565b60006000198214156200098457620009846200098b565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fd5b61354c80620009c76000396000f3fe6080604052600436106102605760003560e01c80634f6ccce7116101445780639d163792116100b6578063ce7c2ac21161007a578063ce7c2ac214610794578063d79779b2146107ca578063e33b7de314610800578063e985e9c514610815578063eb8d24441461085e578063f2fde38b1461087d57600080fd5b80639d163792146106d4578063a22cb46514610704578063b88d4fde14610724578063bc660cac14610744578063c87b56dd1461077457600080fd5b806370a082311161010857806370a0823114610616578063715018a6146106365780638b83209b1461064b5780638da5cb5b1461066b57806395d89b41146106895780639852595c1461069e57600080fd5b80634f6ccce71461057657806355f804b3146105965780635fc2cd71146105b65780636352211e146105d657806367cce2b1146105f657600080fd5b80632e27a60b116101dd5780633a98ef39116101a15780633a98ef391461049e5780633ccfd60b146104b3578063406072a9146104c857806342842e0e1461050e57806348b750441461052e5780634a49c2261461054e57600080fd5b80632e27a60b146104115780632f745c591461042457806330f72cd41461044457806337b52e9a1461045e5780633a28a98f1461047e57600080fd5b80630dbf0dff116102245780630dbf0dff1461037f57806318160ddd1461039f57806319165587146103be57806323b872dd146103de57806323cf0a22146103fe57600080fd5b806301ffc9a7146102ae578063062e61b8146102e357806306fdde0314610303578063081812fc14610325578063095ea7b31461035d57600080fd5b366102a9577f6ef95f06320e7a25a04a175ca677b7052bdd97131872c2192525a629f51be77033604080516001600160a01b0390921682523460208301520160405180910390a1005b600080fd5b3480156102ba57600080fd5b506102ce6102c9366004612fff565b61089d565b60405190151581526020015b60405180910390f35b3480156102ef57600080fd5b506102ce6102fe366004612fb1565b6108ae565b34801561030f57600080fd5b50610318610900565b6040516102da919061318d565b34801561033157600080fd5b506103456103403660046130a9565b610992565b6040516001600160a01b0390911681526020016102da565b34801561036957600080fd5b5061037d610378366004612ed4565b610a2c565b005b34801561038b57600080fd5b5061037d61039a366004612eff565b610b42565b3480156103ab57600080fd5b506008545b6040519081526020016102da565b3480156103ca57600080fd5b5061037d6103d9366004612d96565b610db1565b3480156103ea57600080fd5b5061037d6103f9366004612dea565b610edf565b61037d61040c36600461308f565b610f10565b61037d61041f366004612eff565b61108c565b34801561043057600080fd5b506103b061043f366004612ed4565b61131c565b34801561045057600080fd5b506016546102ce9060ff1681565b34801561046a57600080fd5b506016546102ce9062010000900460ff1681565b34801561048a57600080fd5b5061037d610499366004612f67565b6113b2565b3480156104aa57600080fd5b50600b546103b0565b3480156104bf57600080fd5b5061037d611415565b3480156104d457600080fd5b506103b06104e3366004613037565b6001600160a01b03918216600090815260116020908152604080832093909416825291909152205490565b34801561051a57600080fd5b5061037d610529366004612dea565b61145a565b34801561053a57600080fd5b5061037d610549366004613037565b611475565b34801561055a57600080fd5b5061056361165d565b60405161ffff90911681526020016102da565b34801561058257600080fd5b506103b06105913660046130a9565b61169d565b3480156105a257600080fd5b5061037d6105b1366004613049565b61173e565b3480156105c257600080fd5b5061037d6105d136600461308f565b61177f565b3480156105e257600080fd5b506103456105f13660046130a9565b6117cd565b34801561060257600080fd5b5061037d61061136600461308f565b611844565b34801561062257600080fd5b506103b0610631366004612d96565b6119b8565b34801561064257600080fd5b5061037d611a3f565b34801561065757600080fd5b506103456106663660046130a9565b611a73565b34801561067757600080fd5b50600a546001600160a01b0316610345565b34801561069557600080fd5b50610318611ab1565b3480156106aa57600080fd5b506103b06106b9366004612d96565b6001600160a01b03166000908152600e602052604090205490565b3480156106e057600080fd5b506102ce6106ef366004612d96565b60156020526000908152604090205460ff1681565b34801561071057600080fd5b5061037d61071f366004612ea7565b611ac0565b34801561073057600080fd5b5061037d61073f366004612e2a565b611acb565b34801561075057600080fd5b506102ce61075f366004612d96565b60146020526000908152604090205460ff1681565b34801561078057600080fd5b5061031861078f3660046130a9565b611afd565b3480156107a057600080fd5b506103b06107af366004612d96565b6001600160a01b03166000908152600d602052604090205490565b3480156107d657600080fd5b506103b06107e5366004612d96565b6001600160a01b031660009081526010602052604090205490565b34801561080c57600080fd5b50600c546103b0565b34801561082157600080fd5b506102ce610830366004612db2565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b34801561086a57600080fd5b506016546102ce90610100900460ff1681565b34801561088957600080fd5b5061037d610898366004612d96565b611bd7565b60006108a882611c72565b92915050565b6040516bffffffffffffffffffffffff19606083901b16602082015260009081906034016040516020818303038152906040528051906020012090506108f5848683611c97565b9150505b9392505050565b60606000805461090f9061340f565b80601f016020809104026020016040519081016040528092919081815260200182805461093b9061340f565b80156109885780601f1061095d57610100808354040283529160200191610988565b820191906000526020600020905b81548152906001019060200180831161096b57829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b0316610a105760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b6000610a37826117cd565b9050806001600160a01b0316836001600160a01b03161415610aa55760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610a07565b336001600160a01b0382161480610ac15750610ac18133610830565b610b335760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610a07565b610b3d8383611cad565b505050565b6000610b4d60085490565b60165490915062010000900460ff16610ba85760405162461bcd60e51b815260206004820152601760248201527f706172746e6572476976656177617949734163746976650000000000000000006044820152606401610a07565b601a600181548110610bca57634e487b7160e01b600052603260045260246000fd5b90600052602060002090601091828204019190066002029054906101000a900461ffff1661ffff168261ffff161115610c395760405162461bcd60e51b81526020600482015260116024820152701514905394d050d51253d397d312535255607a1b6044820152606401610a07565b610bb8610c4a61ffff84168361335e565b1115610c685760405162461bcd60e51b8152600401610a0790613309565b3360009081526015602052604090205460ff1615610cb85760405162461bcd60e51b815260206004820152600d60248201526c1c185c9d1b995c935a5b9d1959609a1b6044820152606401610a07565b610cef6019600181548110610cdd57634e487b7160e01b600052603260045260246000fd5b906000526020600020015484336108ae565b610d295760405162461bcd60e51b815260206004820152600b60248201526a1c185c9d1b995c931a5cdd60aa1b6044820152606401610a07565b336000908152601560205260408120805460ff191660011790555b8261ffff168161ffff161015610dab57610d5e3383611d1b565b604051829033907f08dab6e2fd3a4b912e1da64835489a86af006613dbc0834acf14df81b64dec0390600090a381610d958161346c565b9250508080610da39061344a565b915050610d44565b50505050565b6001600160a01b0381166000908152600d6020526040902054610de65760405162461bcd60e51b8152600401610a07906131f2565b6000610df1600c5490565b610dfb904761335e565b90506000610e288383610e23866001600160a01b03166000908152600e602052604090205490565b611e69565b905080610e475760405162461bcd60e51b8152600401610a0790613238565b6001600160a01b0383166000908152600e602052604081208054839290610e6f90849061335e565b9250508190555080600c6000828254610e88919061335e565b90915550610e9890508382611eaf565b604080516001600160a01b0385168152602081018390527fdf20fd1e76bc69d672e4814fafb2c449bba3a5369d8359adf9e05e6fde87b056910160405180910390a1505050565b610ee93382611fc8565b610f055760405162461bcd60e51b8152600401610a07906132b8565b610b3d8383836120bb565b6000610f1b60085490565b601654909150610100900460ff16610f645760405162461bcd60e51b815260206004820152600c60248201526b73616c65497341637469766560a01b6044820152606401610a07565b600a61ffff83161115610fa65760405162461bcd60e51b815260206004820152600a6024820152691352539517d31253525560b21b6044820152606401610a07565b610bb8610fb761ffff84168361335e565b1115610fd55760405162461bcd60e51b8152600401610a0790613309565b8161ffff16601354610fe7919061338a565b3410156110225760405162461bcd60e51b81526020600482015260096024820152686d696e74507269636560b81b6044820152606401610a07565b60005b8261ffff168161ffff161015610b3d5761103f3383611d1b565b604051829033907f0615c0c48f3021bc9137e1071d4c1669eb7b35faed3a1b028dfd241b541b9c8590600090a3816110768161346c565b92505080806110849061344a565b915050611025565b600061109760085490565b60165490915060ff166110de5760405162461bcd60e51b815260206004820152600f60248201526e70726573616c65497341637469766560881b6044820152606401610a07565b601a60008154811061110057634e487b7160e01b600052603260045260246000fd5b90600052602060002090601091828204019190066002029054906101000a900461ffff1661ffff168261ffff16111561116f5760405162461bcd60e51b81526020600482015260116024820152701514905394d050d51253d397d312535255607a1b6044820152606401610a07565b610bb861118061ffff84168361335e565b111561119e5760405162461bcd60e51b8152600401610a0790613309565b8161ffff166013546111b0919061338a565b3410156111eb5760405162461bcd60e51b81526020600482015260096024820152686d696e74507269636560b81b6044820152606401610a07565b3360009081526014602052604090205460ff161561123b5760405162461bcd60e51b815260206004820152600d60248201526c1c1c995cd85b19535a5b9d1959609a1b6044820152606401610a07565b6112606019600081548110610cdd57634e487b7160e01b600052603260045260246000fd5b61129a5760405162461bcd60e51b815260206004820152600b60248201526a1c1c995cd85b19531a5cdd60aa1b6044820152606401610a07565b336000908152601460205260408120805460ff191660011790555b8261ffff168161ffff161015610dab576112cf3383611d1b565b604051829033907fae5da99658d57bfabb9db01e9008c7bbfc98f4d3915092cc034f01877df2aa5e90600090a3816113068161346c565b92505080806113149061344a565b9150506112b5565b6000611327836119b8565b82106113895760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b6064820152608401610a07565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b600a546001600160a01b031633146113dc5760405162461bcd60e51b8152600401610a0790613283565b6016805461ffff191693151561ff00191693909317610100921515929092029190911762ff000019166201000091151591909102179055565b6000471161144f5760405162461bcd60e51b815260206004820152600760248201526662616c616e636560c81b6044820152606401610a07565b61145833610db1565b565b610b3d83838360405180602001604052806000815250611acb565b6001600160a01b0381166000908152600d60205260409020546114aa5760405162461bcd60e51b8152600401610a07906131f2565b6001600160a01b0382166000908152601060205260408120546040516370a0823160e01b81523060048201526001600160a01b038516906370a082319060240160206040518083038186803b15801561150257600080fd5b505afa158015611516573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061153a91906130c1565b611544919061335e565b9050600061157d8383610e2387876001600160a01b03918216600090815260116020908152604080832093909416825291909152205490565b90508061159c5760405162461bcd60e51b8152600401610a0790613238565b6001600160a01b038085166000908152601160209081526040808320938716835292905290812080548392906115d390849061335e565b90915550506001600160a01b0384166000908152601060205260408120805483929061160090849061335e565b909155506116119050848483612266565b604080516001600160a01b038581168252602082018490528616917f3be5b7a71e84ed12875d241991c70855ac5817d847039e17a9d895c1ceb0f18a910160405180910390a250505050565b600a546000906001600160a01b0316331461168a5760405162461bcd60e51b8152600401610a0790613283565b50601854640100000000900461ffff1690565b60006116a860085490565b821061170b5760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b6064820152608401610a07565b6008828154811061172c57634e487b7160e01b600052603260045260246000fd5b90600052602060002001549050919050565b600a546001600160a01b031633146117685760405162461bcd60e51b8152600401610a0790613283565b805161177b906017906020840190612c0b565b5050565b600a546001600160a01b031633146117a95760405162461bcd60e51b8152600401610a0790613283565b6018805461ffff9092166401000000000265ffff0000000019909216919091179055565b6000818152600260205260408120546001600160a01b0316806108a85760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610a07565b600a546001600160a01b0316331461186e5760405162461bcd60e51b8152600401610a0790613283565b600061187960085490565b9050610bb861188c61ffff84168361335e565b11156118aa5760405162461bcd60e51b8152600401610a0790613309565b6018546118c590640100000000900461ffff16610bb86133a9565b61ffff168261ffff16826118d9919061335e565b111561191f5760405162461bcd60e51b81526020600482015260156024820152743a39903bb4ba34103a37b5b2b739a830b93a3732b960591b6044820152606401610a07565b60005b8261ffff168161ffff161015610b3d576018805461ffff169060006119468361344a565b91906101000a81548161ffff021916908361ffff1602179055505061196b3383611d1b565b604051829033907f14ca6c119d3632627714156b3b03b313520d902516ef0089151d57384575048290600090a3816119a28161346c565b92505080806119b09061344a565b915050611922565b60006001600160a01b038216611a235760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610a07565b506001600160a01b031660009081526003602052604090205490565b600a546001600160a01b03163314611a695760405162461bcd60e51b8152600401610a0790613283565b61145860006122b8565b6000600f8281548110611a9657634e487b7160e01b600052603260045260246000fd5b6000918252602090912001546001600160a01b031692915050565b60606001805461090f9061340f565b61177b33838361230a565b611ad53383611fc8565b611af15760405162461bcd60e51b8152600401610a07906132b8565b610dab848484846123d9565b6000818152600260205260409020546060906001600160a01b0316611b7c5760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401610a07565b6000611b8661240c565b90506000815111611ba657604051806020016040528060008152506108f9565b80611bb08461241b565b604051602001611bc1929190613121565b6040516020818303038152906040529392505050565b600a546001600160a01b03163314611c015760405162461bcd60e51b8152600401610a0790613283565b6001600160a01b038116611c665760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610a07565b611c6f816122b8565b50565b60006001600160e01b0319821663780e9d6360e01b14806108a857506108a882612535565b600082611ca48584612585565b14949350505050565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190611ce2826117cd565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6001600160a01b038216611d715760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610a07565b6000818152600260205260409020546001600160a01b031615611dd65760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610a07565b611de26000838361263f565b6001600160a01b0382166000908152600360205260408120805460019290611e0b90849061335e565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b600b546001600160a01b0384166000908152600d602052604081205490918391611e93908661338a565b611e9d9190613376565b611ea791906133cc565b949350505050565b80471015611eff5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e63650000006044820152606401610a07565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114611f4c576040519150601f19603f3d011682016040523d82523d6000602084013e611f51565b606091505b5050905080610b3d5760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d617920686176652072657665727465640000000000006064820152608401610a07565b6000818152600260205260408120546001600160a01b03166120415760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610a07565b600061204c836117cd565b9050806001600160a01b0316846001600160a01b031614806120875750836001600160a01b031661207c84610992565b6001600160a01b0316145b80611ea757506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff16611ea7565b826001600160a01b03166120ce826117cd565b6001600160a01b0316146121365760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b6064820152608401610a07565b6001600160a01b0382166121985760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610a07565b6121a383838361263f565b6121ae600082611cad565b6001600160a01b03831660009081526003602052604081208054600192906121d79084906133cc565b90915550506001600160a01b038216600090815260036020526040812080546001929061220590849061335e565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052610b3d90849061264a565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b816001600160a01b0316836001600160a01b0316141561236c5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610a07565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6123e48484846120bb565b6123f08484848461271c565b610dab5760405162461bcd60e51b8152600401610a07906131a0565b60606017805461090f9061340f565b60608161243f5750506040805180820190915260018152600360fc1b602082015290565b8160005b811561246957806124538161346c565b91506124629050600a83613376565b9150612443565b60008167ffffffffffffffff81111561249257634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156124bc576020820181803683370190505b5090505b8415611ea7576124d16001836133cc565b91506124de600a86613487565b6124e990603061335e565b60f81b81838151811061250c57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a90535061252e600a86613376565b94506124c0565b60006001600160e01b031982166380ac58cd60e01b148061256657506001600160e01b03198216635b5e139f60e01b145b806108a857506301ffc9a760e01b6001600160e01b03198316146108a8565b600081815b84518110156126375760008582815181106125b557634e487b7160e01b600052603260045260246000fd5b602002602001015190508083116125f7576040805160208101859052908101829052606001604051602081830303815290604052805190602001209250612624565b60408051602081018390529081018490526060016040516020818303038152906040528051906020012092505b508061262f8161346c565b91505061258a565b509392505050565b610b3d838383612829565b600061269f826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166128e19092919063ffffffff16565b805190915015610b3d57808060200190518101906126bd9190612f4b565b610b3d5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610a07565b60006001600160a01b0384163b1561281e57604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290612760903390899088908890600401613150565b602060405180830381600087803b15801561277a57600080fd5b505af19250505080156127aa575060408051601f3d908101601f191682019092526127a79181019061301b565b60015b612804573d8080156127d8576040519150601f19603f3d011682016040523d82523d6000602084013e6127dd565b606091505b5080516127fc5760405162461bcd60e51b8152600401610a07906131a0565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611ea7565b506001949350505050565b6001600160a01b0383166128845761287f81600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b6128a7565b816001600160a01b0316836001600160a01b0316146128a7576128a783826128f0565b6001600160a01b0382166128be57610b3d8161298d565b826001600160a01b0316826001600160a01b031614610b3d57610b3d8282612a66565b6060611ea78484600085612aaa565b600060016128fd846119b8565b61290791906133cc565b60008381526007602052604090205490915080821461295a576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b60085460009061299f906001906133cc565b600083815260096020526040812054600880549394509092849081106129d557634e487b7160e01b600052603260045260246000fd5b906000526020600020015490508060088381548110612a0457634e487b7160e01b600052603260045260246000fd5b6000918252602080832090910192909255828152600990915260408082208490558582528120556008805480612a4a57634e487b7160e01b600052603160045260246000fd5b6001900381819060005260206000200160009055905550505050565b6000612a71836119b8565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b606082471015612b0b5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b6064820152608401610a07565b843b612b595760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610a07565b600080866001600160a01b03168587604051612b759190613105565b60006040518083038185875af1925050503d8060008114612bb2576040519150601f19603f3d011682016040523d82523d6000602084013e612bb7565b606091505b5091509150612bc7828286612bd2565b979650505050505050565b60608315612be15750816108f9565b825115612bf15782518084602001fd5b8160405162461bcd60e51b8152600401610a07919061318d565b828054612c179061340f565b90600052602060002090601f016020900481019282612c395760008555612c7f565b82601f10612c5257805160ff1916838001178555612c7f565b82800160010185558215612c7f579182015b82811115612c7f578251825591602001919060010190612c64565b50612c8b929150612c8f565b5090565b5b80821115612c8b5760008155600101612c90565b600067ffffffffffffffff831115612cbe57612cbe6134c7565b612cd1601f8401601f191660200161332d565b9050828152838383011115612ce557600080fd5b828260208301376000602084830101529392505050565b600082601f830112612d0c578081fd5b8135602067ffffffffffffffff821115612d2857612d286134c7565b8160051b612d3782820161332d565b838152828101908684018388018501891015612d51578687fd5b8693505b85841015612d73578035835260019390930192918401918401612d55565b50979650505050505050565b803561ffff81168114612d9157600080fd5b919050565b600060208284031215612da7578081fd5b81356108f9816134dd565b60008060408385031215612dc4578081fd5b8235612dcf816134dd565b91506020830135612ddf816134dd565b809150509250929050565b600080600060608486031215612dfe578081fd5b8335612e09816134dd565b92506020840135612e19816134dd565b929592945050506040919091013590565b60008060008060808587031215612e3f578081fd5b8435612e4a816134dd565b93506020850135612e5a816134dd565b925060408501359150606085013567ffffffffffffffff811115612e7c578182fd5b8501601f81018713612e8c578182fd5b612e9b87823560208401612ca4565b91505092959194509250565b60008060408385031215612eb9578182fd5b8235612ec4816134dd565b91506020830135612ddf816134f2565b60008060408385031215612ee6578182fd5b8235612ef1816134dd565b946020939093013593505050565b60008060408385031215612f11578182fd5b823567ffffffffffffffff811115612f27578283fd5b612f3385828601612cfc565b925050612f4260208401612d7f565b90509250929050565b600060208284031215612f5c578081fd5b81516108f9816134f2565b600080600060608486031215612f7b578081fd5b8335612f86816134f2565b92506020840135612f96816134f2565b91506040840135612fa6816134f2565b809150509250925092565b600080600060608486031215612fc5578081fd5b83359250602084013567ffffffffffffffff811115612fe2578182fd5b612fee86828701612cfc565b9250506040840135612fa6816134dd565b600060208284031215613010578081fd5b81356108f981613500565b60006020828403121561302c578081fd5b81516108f981613500565b60008060408385031215612dc4578182fd5b60006020828403121561305a578081fd5b813567ffffffffffffffff811115613070578182fd5b8201601f81018413613080578182fd5b611ea784823560208401612ca4565b6000602082840312156130a0578081fd5b6108f982612d7f565b6000602082840312156130ba578081fd5b5035919050565b6000602082840312156130d2578081fd5b5051919050565b600081518084526130f18160208601602086016133e3565b601f01601f19169290920160200192915050565b600082516131178184602087016133e3565b9190910192915050565b600083516131338184602088016133e3565b8351908301906131478183602088016133e3565b01949350505050565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090613183908301846130d9565b9695505050505050565b6020815260006108f960208301846130d9565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b60208082526026908201527f5061796d656e7453706c69747465723a206163636f756e7420686173206e6f2060408201526573686172657360d01b606082015260800190565b6020808252602b908201527f5061796d656e7453706c69747465723a206163636f756e74206973206e6f742060408201526a191d59481c185e5b595b9d60aa1b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b6020808252600a90820152694d41585f535550504c5960b01b604082015260600190565b604051601f8201601f1916810167ffffffffffffffff81118282101715613356576133566134c7565b604052919050565b600082198211156133715761337161349b565b500190565b600082613385576133856134b1565b500490565b60008160001904831182151516156133a4576133a461349b565b500290565b600061ffff838116908316818110156133c4576133c461349b565b039392505050565b6000828210156133de576133de61349b565b500390565b60005b838110156133fe5781810151838201526020016133e6565b83811115610dab5750506000910152565b600181811c9082168061342357607f821691505b6020821081141561344457634e487b7160e01b600052602260045260246000fd5b50919050565b600061ffff808316818114156134625761346261349b565b6001019392505050565b60006000198214156134805761348061349b565b5060010190565b600082613496576134966134b1565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b0381168114611c6f57600080fd5b8015158114611c6f57600080fd5b6001600160e01b031981168114611c6f57600080fdfea2646970667358221220f549a11b18511ea33ee68ef63880e62ba1a3b5305732e6190717f1bbc965391764736f6c63430008040033000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000e0000000000000000000000000000000000000000000000000000000000000014000000000000000000000000000000000000000000000000000000000000001a00000000000000000000000000000000000000000000000000000000000000002000000000000000000000000e0d026d2eb0ee00d94dff04adef614a590b92995000000000000000000000000735ec72a57fecc65fdb880930fe89b86dc4101070000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000007d000000000000000000000000000000000000000000000000000000000000036b00000000000000000000000000000000000000000000000000000000000000027d787bfded5c4c142eaaa33384c10aad59f6fef5cdf57272d6e8839c2655fa691ed95d5de768b75e16265f7191235001a481147411a888e74e9ea5312699912d00000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000003000000000000000000000000000000000000000000000000000000000000000a

Deployed Bytecode

0x6080604052600436106102605760003560e01c80634f6ccce7116101445780639d163792116100b6578063ce7c2ac21161007a578063ce7c2ac214610794578063d79779b2146107ca578063e33b7de314610800578063e985e9c514610815578063eb8d24441461085e578063f2fde38b1461087d57600080fd5b80639d163792146106d4578063a22cb46514610704578063b88d4fde14610724578063bc660cac14610744578063c87b56dd1461077457600080fd5b806370a082311161010857806370a0823114610616578063715018a6146106365780638b83209b1461064b5780638da5cb5b1461066b57806395d89b41146106895780639852595c1461069e57600080fd5b80634f6ccce71461057657806355f804b3146105965780635fc2cd71146105b65780636352211e146105d657806367cce2b1146105f657600080fd5b80632e27a60b116101dd5780633a98ef39116101a15780633a98ef391461049e5780633ccfd60b146104b3578063406072a9146104c857806342842e0e1461050e57806348b750441461052e5780634a49c2261461054e57600080fd5b80632e27a60b146104115780632f745c591461042457806330f72cd41461044457806337b52e9a1461045e5780633a28a98f1461047e57600080fd5b80630dbf0dff116102245780630dbf0dff1461037f57806318160ddd1461039f57806319165587146103be57806323b872dd146103de57806323cf0a22146103fe57600080fd5b806301ffc9a7146102ae578063062e61b8146102e357806306fdde0314610303578063081812fc14610325578063095ea7b31461035d57600080fd5b366102a9577f6ef95f06320e7a25a04a175ca677b7052bdd97131872c2192525a629f51be77033604080516001600160a01b0390921682523460208301520160405180910390a1005b600080fd5b3480156102ba57600080fd5b506102ce6102c9366004612fff565b61089d565b60405190151581526020015b60405180910390f35b3480156102ef57600080fd5b506102ce6102fe366004612fb1565b6108ae565b34801561030f57600080fd5b50610318610900565b6040516102da919061318d565b34801561033157600080fd5b506103456103403660046130a9565b610992565b6040516001600160a01b0390911681526020016102da565b34801561036957600080fd5b5061037d610378366004612ed4565b610a2c565b005b34801561038b57600080fd5b5061037d61039a366004612eff565b610b42565b3480156103ab57600080fd5b506008545b6040519081526020016102da565b3480156103ca57600080fd5b5061037d6103d9366004612d96565b610db1565b3480156103ea57600080fd5b5061037d6103f9366004612dea565b610edf565b61037d61040c36600461308f565b610f10565b61037d61041f366004612eff565b61108c565b34801561043057600080fd5b506103b061043f366004612ed4565b61131c565b34801561045057600080fd5b506016546102ce9060ff1681565b34801561046a57600080fd5b506016546102ce9062010000900460ff1681565b34801561048a57600080fd5b5061037d610499366004612f67565b6113b2565b3480156104aa57600080fd5b50600b546103b0565b3480156104bf57600080fd5b5061037d611415565b3480156104d457600080fd5b506103b06104e3366004613037565b6001600160a01b03918216600090815260116020908152604080832093909416825291909152205490565b34801561051a57600080fd5b5061037d610529366004612dea565b61145a565b34801561053a57600080fd5b5061037d610549366004613037565b611475565b34801561055a57600080fd5b5061056361165d565b60405161ffff90911681526020016102da565b34801561058257600080fd5b506103b06105913660046130a9565b61169d565b3480156105a257600080fd5b5061037d6105b1366004613049565b61173e565b3480156105c257600080fd5b5061037d6105d136600461308f565b61177f565b3480156105e257600080fd5b506103456105f13660046130a9565b6117cd565b34801561060257600080fd5b5061037d61061136600461308f565b611844565b34801561062257600080fd5b506103b0610631366004612d96565b6119b8565b34801561064257600080fd5b5061037d611a3f565b34801561065757600080fd5b506103456106663660046130a9565b611a73565b34801561067757600080fd5b50600a546001600160a01b0316610345565b34801561069557600080fd5b50610318611ab1565b3480156106aa57600080fd5b506103b06106b9366004612d96565b6001600160a01b03166000908152600e602052604090205490565b3480156106e057600080fd5b506102ce6106ef366004612d96565b60156020526000908152604090205460ff1681565b34801561071057600080fd5b5061037d61071f366004612ea7565b611ac0565b34801561073057600080fd5b5061037d61073f366004612e2a565b611acb565b34801561075057600080fd5b506102ce61075f366004612d96565b60146020526000908152604090205460ff1681565b34801561078057600080fd5b5061031861078f3660046130a9565b611afd565b3480156107a057600080fd5b506103b06107af366004612d96565b6001600160a01b03166000908152600d602052604090205490565b3480156107d657600080fd5b506103b06107e5366004612d96565b6001600160a01b031660009081526010602052604090205490565b34801561080c57600080fd5b50600c546103b0565b34801561082157600080fd5b506102ce610830366004612db2565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b34801561086a57600080fd5b506016546102ce90610100900460ff1681565b34801561088957600080fd5b5061037d610898366004612d96565b611bd7565b60006108a882611c72565b92915050565b6040516bffffffffffffffffffffffff19606083901b16602082015260009081906034016040516020818303038152906040528051906020012090506108f5848683611c97565b9150505b9392505050565b60606000805461090f9061340f565b80601f016020809104026020016040519081016040528092919081815260200182805461093b9061340f565b80156109885780601f1061095d57610100808354040283529160200191610988565b820191906000526020600020905b81548152906001019060200180831161096b57829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b0316610a105760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b6000610a37826117cd565b9050806001600160a01b0316836001600160a01b03161415610aa55760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610a07565b336001600160a01b0382161480610ac15750610ac18133610830565b610b335760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610a07565b610b3d8383611cad565b505050565b6000610b4d60085490565b60165490915062010000900460ff16610ba85760405162461bcd60e51b815260206004820152601760248201527f706172746e6572476976656177617949734163746976650000000000000000006044820152606401610a07565b601a600181548110610bca57634e487b7160e01b600052603260045260246000fd5b90600052602060002090601091828204019190066002029054906101000a900461ffff1661ffff168261ffff161115610c395760405162461bcd60e51b81526020600482015260116024820152701514905394d050d51253d397d312535255607a1b6044820152606401610a07565b610bb8610c4a61ffff84168361335e565b1115610c685760405162461bcd60e51b8152600401610a0790613309565b3360009081526015602052604090205460ff1615610cb85760405162461bcd60e51b815260206004820152600d60248201526c1c185c9d1b995c935a5b9d1959609a1b6044820152606401610a07565b610cef6019600181548110610cdd57634e487b7160e01b600052603260045260246000fd5b906000526020600020015484336108ae565b610d295760405162461bcd60e51b815260206004820152600b60248201526a1c185c9d1b995c931a5cdd60aa1b6044820152606401610a07565b336000908152601560205260408120805460ff191660011790555b8261ffff168161ffff161015610dab57610d5e3383611d1b565b604051829033907f08dab6e2fd3a4b912e1da64835489a86af006613dbc0834acf14df81b64dec0390600090a381610d958161346c565b9250508080610da39061344a565b915050610d44565b50505050565b6001600160a01b0381166000908152600d6020526040902054610de65760405162461bcd60e51b8152600401610a07906131f2565b6000610df1600c5490565b610dfb904761335e565b90506000610e288383610e23866001600160a01b03166000908152600e602052604090205490565b611e69565b905080610e475760405162461bcd60e51b8152600401610a0790613238565b6001600160a01b0383166000908152600e602052604081208054839290610e6f90849061335e565b9250508190555080600c6000828254610e88919061335e565b90915550610e9890508382611eaf565b604080516001600160a01b0385168152602081018390527fdf20fd1e76bc69d672e4814fafb2c449bba3a5369d8359adf9e05e6fde87b056910160405180910390a1505050565b610ee93382611fc8565b610f055760405162461bcd60e51b8152600401610a07906132b8565b610b3d8383836120bb565b6000610f1b60085490565b601654909150610100900460ff16610f645760405162461bcd60e51b815260206004820152600c60248201526b73616c65497341637469766560a01b6044820152606401610a07565b600a61ffff83161115610fa65760405162461bcd60e51b815260206004820152600a6024820152691352539517d31253525560b21b6044820152606401610a07565b610bb8610fb761ffff84168361335e565b1115610fd55760405162461bcd60e51b8152600401610a0790613309565b8161ffff16601354610fe7919061338a565b3410156110225760405162461bcd60e51b81526020600482015260096024820152686d696e74507269636560b81b6044820152606401610a07565b60005b8261ffff168161ffff161015610b3d5761103f3383611d1b565b604051829033907f0615c0c48f3021bc9137e1071d4c1669eb7b35faed3a1b028dfd241b541b9c8590600090a3816110768161346c565b92505080806110849061344a565b915050611025565b600061109760085490565b60165490915060ff166110de5760405162461bcd60e51b815260206004820152600f60248201526e70726573616c65497341637469766560881b6044820152606401610a07565b601a60008154811061110057634e487b7160e01b600052603260045260246000fd5b90600052602060002090601091828204019190066002029054906101000a900461ffff1661ffff168261ffff16111561116f5760405162461bcd60e51b81526020600482015260116024820152701514905394d050d51253d397d312535255607a1b6044820152606401610a07565b610bb861118061ffff84168361335e565b111561119e5760405162461bcd60e51b8152600401610a0790613309565b8161ffff166013546111b0919061338a565b3410156111eb5760405162461bcd60e51b81526020600482015260096024820152686d696e74507269636560b81b6044820152606401610a07565b3360009081526014602052604090205460ff161561123b5760405162461bcd60e51b815260206004820152600d60248201526c1c1c995cd85b19535a5b9d1959609a1b6044820152606401610a07565b6112606019600081548110610cdd57634e487b7160e01b600052603260045260246000fd5b61129a5760405162461bcd60e51b815260206004820152600b60248201526a1c1c995cd85b19531a5cdd60aa1b6044820152606401610a07565b336000908152601460205260408120805460ff191660011790555b8261ffff168161ffff161015610dab576112cf3383611d1b565b604051829033907fae5da99658d57bfabb9db01e9008c7bbfc98f4d3915092cc034f01877df2aa5e90600090a3816113068161346c565b92505080806113149061344a565b9150506112b5565b6000611327836119b8565b82106113895760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b6064820152608401610a07565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b600a546001600160a01b031633146113dc5760405162461bcd60e51b8152600401610a0790613283565b6016805461ffff191693151561ff00191693909317610100921515929092029190911762ff000019166201000091151591909102179055565b6000471161144f5760405162461bcd60e51b815260206004820152600760248201526662616c616e636560c81b6044820152606401610a07565b61145833610db1565b565b610b3d83838360405180602001604052806000815250611acb565b6001600160a01b0381166000908152600d60205260409020546114aa5760405162461bcd60e51b8152600401610a07906131f2565b6001600160a01b0382166000908152601060205260408120546040516370a0823160e01b81523060048201526001600160a01b038516906370a082319060240160206040518083038186803b15801561150257600080fd5b505afa158015611516573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061153a91906130c1565b611544919061335e565b9050600061157d8383610e2387876001600160a01b03918216600090815260116020908152604080832093909416825291909152205490565b90508061159c5760405162461bcd60e51b8152600401610a0790613238565b6001600160a01b038085166000908152601160209081526040808320938716835292905290812080548392906115d390849061335e565b90915550506001600160a01b0384166000908152601060205260408120805483929061160090849061335e565b909155506116119050848483612266565b604080516001600160a01b038581168252602082018490528616917f3be5b7a71e84ed12875d241991c70855ac5817d847039e17a9d895c1ceb0f18a910160405180910390a250505050565b600a546000906001600160a01b0316331461168a5760405162461bcd60e51b8152600401610a0790613283565b50601854640100000000900461ffff1690565b60006116a860085490565b821061170b5760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b6064820152608401610a07565b6008828154811061172c57634e487b7160e01b600052603260045260246000fd5b90600052602060002001549050919050565b600a546001600160a01b031633146117685760405162461bcd60e51b8152600401610a0790613283565b805161177b906017906020840190612c0b565b5050565b600a546001600160a01b031633146117a95760405162461bcd60e51b8152600401610a0790613283565b6018805461ffff9092166401000000000265ffff0000000019909216919091179055565b6000818152600260205260408120546001600160a01b0316806108a85760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610a07565b600a546001600160a01b0316331461186e5760405162461bcd60e51b8152600401610a0790613283565b600061187960085490565b9050610bb861188c61ffff84168361335e565b11156118aa5760405162461bcd60e51b8152600401610a0790613309565b6018546118c590640100000000900461ffff16610bb86133a9565b61ffff168261ffff16826118d9919061335e565b111561191f5760405162461bcd60e51b81526020600482015260156024820152743a39903bb4ba34103a37b5b2b739a830b93a3732b960591b6044820152606401610a07565b60005b8261ffff168161ffff161015610b3d576018805461ffff169060006119468361344a565b91906101000a81548161ffff021916908361ffff1602179055505061196b3383611d1b565b604051829033907f14ca6c119d3632627714156b3b03b313520d902516ef0089151d57384575048290600090a3816119a28161346c565b92505080806119b09061344a565b915050611922565b60006001600160a01b038216611a235760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610a07565b506001600160a01b031660009081526003602052604090205490565b600a546001600160a01b03163314611a695760405162461bcd60e51b8152600401610a0790613283565b61145860006122b8565b6000600f8281548110611a9657634e487b7160e01b600052603260045260246000fd5b6000918252602090912001546001600160a01b031692915050565b60606001805461090f9061340f565b61177b33838361230a565b611ad53383611fc8565b611af15760405162461bcd60e51b8152600401610a07906132b8565b610dab848484846123d9565b6000818152600260205260409020546060906001600160a01b0316611b7c5760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401610a07565b6000611b8661240c565b90506000815111611ba657604051806020016040528060008152506108f9565b80611bb08461241b565b604051602001611bc1929190613121565b6040516020818303038152906040529392505050565b600a546001600160a01b03163314611c015760405162461bcd60e51b8152600401610a0790613283565b6001600160a01b038116611c665760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610a07565b611c6f816122b8565b50565b60006001600160e01b0319821663780e9d6360e01b14806108a857506108a882612535565b600082611ca48584612585565b14949350505050565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190611ce2826117cd565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6001600160a01b038216611d715760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610a07565b6000818152600260205260409020546001600160a01b031615611dd65760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610a07565b611de26000838361263f565b6001600160a01b0382166000908152600360205260408120805460019290611e0b90849061335e565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b600b546001600160a01b0384166000908152600d602052604081205490918391611e93908661338a565b611e9d9190613376565b611ea791906133cc565b949350505050565b80471015611eff5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e63650000006044820152606401610a07565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114611f4c576040519150601f19603f3d011682016040523d82523d6000602084013e611f51565b606091505b5050905080610b3d5760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d617920686176652072657665727465640000000000006064820152608401610a07565b6000818152600260205260408120546001600160a01b03166120415760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610a07565b600061204c836117cd565b9050806001600160a01b0316846001600160a01b031614806120875750836001600160a01b031661207c84610992565b6001600160a01b0316145b80611ea757506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff16611ea7565b826001600160a01b03166120ce826117cd565b6001600160a01b0316146121365760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b6064820152608401610a07565b6001600160a01b0382166121985760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610a07565b6121a383838361263f565b6121ae600082611cad565b6001600160a01b03831660009081526003602052604081208054600192906121d79084906133cc565b90915550506001600160a01b038216600090815260036020526040812080546001929061220590849061335e565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052610b3d90849061264a565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b816001600160a01b0316836001600160a01b0316141561236c5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610a07565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6123e48484846120bb565b6123f08484848461271c565b610dab5760405162461bcd60e51b8152600401610a07906131a0565b60606017805461090f9061340f565b60608161243f5750506040805180820190915260018152600360fc1b602082015290565b8160005b811561246957806124538161346c565b91506124629050600a83613376565b9150612443565b60008167ffffffffffffffff81111561249257634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156124bc576020820181803683370190505b5090505b8415611ea7576124d16001836133cc565b91506124de600a86613487565b6124e990603061335e565b60f81b81838151811061250c57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a90535061252e600a86613376565b94506124c0565b60006001600160e01b031982166380ac58cd60e01b148061256657506001600160e01b03198216635b5e139f60e01b145b806108a857506301ffc9a760e01b6001600160e01b03198316146108a8565b600081815b84518110156126375760008582815181106125b557634e487b7160e01b600052603260045260246000fd5b602002602001015190508083116125f7576040805160208101859052908101829052606001604051602081830303815290604052805190602001209250612624565b60408051602081018390529081018490526060016040516020818303038152906040528051906020012092505b508061262f8161346c565b91505061258a565b509392505050565b610b3d838383612829565b600061269f826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166128e19092919063ffffffff16565b805190915015610b3d57808060200190518101906126bd9190612f4b565b610b3d5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610a07565b60006001600160a01b0384163b1561281e57604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290612760903390899088908890600401613150565b602060405180830381600087803b15801561277a57600080fd5b505af19250505080156127aa575060408051601f3d908101601f191682019092526127a79181019061301b565b60015b612804573d8080156127d8576040519150601f19603f3d011682016040523d82523d6000602084013e6127dd565b606091505b5080516127fc5760405162461bcd60e51b8152600401610a07906131a0565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611ea7565b506001949350505050565b6001600160a01b0383166128845761287f81600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b6128a7565b816001600160a01b0316836001600160a01b0316146128a7576128a783826128f0565b6001600160a01b0382166128be57610b3d8161298d565b826001600160a01b0316826001600160a01b031614610b3d57610b3d8282612a66565b6060611ea78484600085612aaa565b600060016128fd846119b8565b61290791906133cc565b60008381526007602052604090205490915080821461295a576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b60085460009061299f906001906133cc565b600083815260096020526040812054600880549394509092849081106129d557634e487b7160e01b600052603260045260246000fd5b906000526020600020015490508060088381548110612a0457634e487b7160e01b600052603260045260246000fd5b6000918252602080832090910192909255828152600990915260408082208490558582528120556008805480612a4a57634e487b7160e01b600052603160045260246000fd5b6001900381819060005260206000200160009055905550505050565b6000612a71836119b8565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b606082471015612b0b5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b6064820152608401610a07565b843b612b595760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610a07565b600080866001600160a01b03168587604051612b759190613105565b60006040518083038185875af1925050503d8060008114612bb2576040519150601f19603f3d011682016040523d82523d6000602084013e612bb7565b606091505b5091509150612bc7828286612bd2565b979650505050505050565b60608315612be15750816108f9565b825115612bf15782518084602001fd5b8160405162461bcd60e51b8152600401610a07919061318d565b828054612c179061340f565b90600052602060002090601f016020900481019282612c395760008555612c7f565b82601f10612c5257805160ff1916838001178555612c7f565b82800160010185558215612c7f579182015b82811115612c7f578251825591602001919060010190612c64565b50612c8b929150612c8f565b5090565b5b80821115612c8b5760008155600101612c90565b600067ffffffffffffffff831115612cbe57612cbe6134c7565b612cd1601f8401601f191660200161332d565b9050828152838383011115612ce557600080fd5b828260208301376000602084830101529392505050565b600082601f830112612d0c578081fd5b8135602067ffffffffffffffff821115612d2857612d286134c7565b8160051b612d3782820161332d565b838152828101908684018388018501891015612d51578687fd5b8693505b85841015612d73578035835260019390930192918401918401612d55565b50979650505050505050565b803561ffff81168114612d9157600080fd5b919050565b600060208284031215612da7578081fd5b81356108f9816134dd565b60008060408385031215612dc4578081fd5b8235612dcf816134dd565b91506020830135612ddf816134dd565b809150509250929050565b600080600060608486031215612dfe578081fd5b8335612e09816134dd565b92506020840135612e19816134dd565b929592945050506040919091013590565b60008060008060808587031215612e3f578081fd5b8435612e4a816134dd565b93506020850135612e5a816134dd565b925060408501359150606085013567ffffffffffffffff811115612e7c578182fd5b8501601f81018713612e8c578182fd5b612e9b87823560208401612ca4565b91505092959194509250565b60008060408385031215612eb9578182fd5b8235612ec4816134dd565b91506020830135612ddf816134f2565b60008060408385031215612ee6578182fd5b8235612ef1816134dd565b946020939093013593505050565b60008060408385031215612f11578182fd5b823567ffffffffffffffff811115612f27578283fd5b612f3385828601612cfc565b925050612f4260208401612d7f565b90509250929050565b600060208284031215612f5c578081fd5b81516108f9816134f2565b600080600060608486031215612f7b578081fd5b8335612f86816134f2565b92506020840135612f96816134f2565b91506040840135612fa6816134f2565b809150509250925092565b600080600060608486031215612fc5578081fd5b83359250602084013567ffffffffffffffff811115612fe2578182fd5b612fee86828701612cfc565b9250506040840135612fa6816134dd565b600060208284031215613010578081fd5b81356108f981613500565b60006020828403121561302c578081fd5b81516108f981613500565b60008060408385031215612dc4578182fd5b60006020828403121561305a578081fd5b813567ffffffffffffffff811115613070578182fd5b8201601f81018413613080578182fd5b611ea784823560208401612ca4565b6000602082840312156130a0578081fd5b6108f982612d7f565b6000602082840312156130ba578081fd5b5035919050565b6000602082840312156130d2578081fd5b5051919050565b600081518084526130f18160208601602086016133e3565b601f01601f19169290920160200192915050565b600082516131178184602087016133e3565b9190910192915050565b600083516131338184602088016133e3565b8351908301906131478183602088016133e3565b01949350505050565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090613183908301846130d9565b9695505050505050565b6020815260006108f960208301846130d9565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b60208082526026908201527f5061796d656e7453706c69747465723a206163636f756e7420686173206e6f2060408201526573686172657360d01b606082015260800190565b6020808252602b908201527f5061796d656e7453706c69747465723a206163636f756e74206973206e6f742060408201526a191d59481c185e5b595b9d60aa1b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b6020808252600a90820152694d41585f535550504c5960b01b604082015260600190565b604051601f8201601f1916810167ffffffffffffffff81118282101715613356576133566134c7565b604052919050565b600082198211156133715761337161349b565b500190565b600082613385576133856134b1565b500490565b60008160001904831182151516156133a4576133a461349b565b500290565b600061ffff838116908316818110156133c4576133c461349b565b039392505050565b6000828210156133de576133de61349b565b500390565b60005b838110156133fe5781810151838201526020016133e6565b83811115610dab5750506000910152565b600181811c9082168061342357607f821691505b6020821081141561344457634e487b7160e01b600052602260045260246000fd5b50919050565b600061ffff808316818114156134625761346261349b565b6001019392505050565b60006000198214156134805761348061349b565b5060010190565b600082613496576134966134b1565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b0381168114611c6f57600080fd5b8015158114611c6f57600080fd5b6001600160e01b031981168114611c6f57600080fdfea2646970667358221220f549a11b18511ea33ee68ef63880e62ba1a3b5305732e6190717f1bbc965391764736f6c63430008040033

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

000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000e0000000000000000000000000000000000000000000000000000000000000014000000000000000000000000000000000000000000000000000000000000001a00000000000000000000000000000000000000000000000000000000000000002000000000000000000000000e0d026d2eb0ee00d94dff04adef614a590b92995000000000000000000000000735ec72a57fecc65fdb880930fe89b86dc4101070000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000007d000000000000000000000000000000000000000000000000000000000000036b00000000000000000000000000000000000000000000000000000000000000027d787bfded5c4c142eaaa33384c10aad59f6fef5cdf57272d6e8839c2655fa691ed95d5de768b75e16265f7191235001a481147411a888e74e9ea5312699912d00000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000003000000000000000000000000000000000000000000000000000000000000000a

-----Decoded View---------------
Arg [0] : _payeeAddresses (address[]): 0xE0D026d2Eb0EE00D94DFF04aDeF614a590b92995,0x735ec72A57fEcc65FdB880930fE89B86Dc410107
Arg [1] : payeeShares (uint256[]): 125,875
Arg [2] : _merkleRoots (bytes32[]): System.Byte[],System.Byte[]
Arg [3] : _presaleCounts (uint16[]): 3,10

-----Encoded View---------------
16 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000080
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000e0
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000140
Arg [3] : 00000000000000000000000000000000000000000000000000000000000001a0
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000002
Arg [5] : 000000000000000000000000e0d026d2eb0ee00d94dff04adef614a590b92995
Arg [6] : 000000000000000000000000735ec72a57fecc65fdb880930fe89b86dc410107
Arg [7] : 0000000000000000000000000000000000000000000000000000000000000002
Arg [8] : 000000000000000000000000000000000000000000000000000000000000007d
Arg [9] : 000000000000000000000000000000000000000000000000000000000000036b
Arg [10] : 0000000000000000000000000000000000000000000000000000000000000002
Arg [11] : 7d787bfded5c4c142eaaa33384c10aad59f6fef5cdf57272d6e8839c2655fa69
Arg [12] : 1ed95d5de768b75e16265f7191235001a481147411a888e74e9ea5312699912d
Arg [13] : 0000000000000000000000000000000000000000000000000000000000000002
Arg [14] : 0000000000000000000000000000000000000000000000000000000000000003
Arg [15] : 000000000000000000000000000000000000000000000000000000000000000a


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.