ETH Price: $3,324.02 (-1.09%)

Token

MyraiKohoCollection (KOHO)
 

Overview

Max Total Supply

300 KOHO

Holders

127

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A

Other Info

Balance
0 KOHO
0x7c84954125c274de39359197a524fc01e8310e61
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:
MyraiKohoCollection

Compiler Version
v0.8.4+commit.c7e474f2

Optimization Enabled:
Yes with 1000 runs

Other Settings:
default evmVersion
File 1 of 22 : MyraiKohoCollection.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;

import 'erc721a/contracts/ERC721A.sol';
import 'erc721a/contracts/extensions/ERC721AQueryable.sol';
import '@openzeppelin/contracts/token/common/ERC2981.sol';
import '@openzeppelin/contracts/access/Ownable.sol';
import '@openzeppelin/contracts/finance/PaymentSplitter.sol';
import '@openzeppelin/contracts/security/Pausable.sol';
import '@openzeppelin/contracts/utils/cryptography/MerkleProof.sol';
import './MyraiCrystal.sol';
import "hardhat/console.sol";

contract MyraiKohoCollection is ERC721AQueryable, ERC2981, Ownable, Pausable, PaymentSplitter {
    string public contractURI;
    uint256 public maxTokens;
    uint256 public maxTokensForPhaseOne;
    address public myraiCrystalAddr;
    string public baseURIAddress;
    uint256 public price = 0.06 ether;
    uint256 public maxMintsPerWalletForPublic = 1;
    uint256 public maxMintsPerWalletForT1Presale = 1;
    uint256 public maxMintsPerWalletForT2Presale = 2; /* OG */
    uint256 public maxMintsPerWalletForT3Presale = 1;
    uint256 public reservedTokensAmount;
    bool public isRevealed;
    address[] public payees;
    uint256[] public shares;
    address public admin;

    bytes32 private _t1PresaleMerkleRoot;
    bytes32 private _t2PresaleMerkleRoot;
    bytes32 private _t3PresaleMerkleRoot;
    bool private _phaseOnePresaleActive;
    bool private _phaseTwoPresaleActive;
    bool private _publicSaleActive;
    uint256 private uuid = 1;

    event publicMintEvent(address addr, uint256 qty);
    event t1MintEvent(address addr, uint256 qty);
    event t2MintEvent(address addr, uint256 qty);
    event t3MintEvent(address addr);
    
    constructor(
        string memory _contractURI,
        string memory baseURI,
        address _myraiCrystalAddr,
        address[] memory _payees,
        uint256[] memory _shares,
        address _admin
    ) ERC721A('MyraiKohoCollection', 'KOHO') PaymentSplitter(_payees, _shares) {
        _setDefaultRoyalty(_admin, 500);
        contractURI = _contractURI;
        baseURIAddress = baseURI;
        myraiCrystalAddr = _myraiCrystalAddr;
        payees = _payees;
        shares = _shares;
        admin = _admin;
    }

    function setup(
        uint256 _maxTokens,
        uint256 _maxTokensForPhaseOne,
        uint256 _reservedTokensAmount,
        bytes32 t1PresaleMerkleRoot,
        bytes32 t2PresaleMerkleRoot,
        bytes32 t3PresaleMerkleRoot
    ) external onlyOwner {
        maxTokens = _maxTokens;
        maxTokensForPhaseOne = _maxTokensForPhaseOne;
        _t1PresaleMerkleRoot = t1PresaleMerkleRoot;
        _t2PresaleMerkleRoot = t2PresaleMerkleRoot;
        _t3PresaleMerkleRoot = t3PresaleMerkleRoot;
        reservedTokensAmount = _reservedTokensAmount;

    }

    /** ------------------------
    Minting
    ---------------------------- */

    function phaseOneMint(uint256 quantity, bytes32[] calldata merkleProof) external payable whenNotPaused {
        require(_isPhaseOnePresaleMintable(), 'sale not active');
        runCommonChecks(quantity);
        require (
            isPartOfT1Whitelist(msg.sender, merkleProof) || isPartOfT2Whitelist(msg.sender, merkleProof),
            "wallet not part of any wl"
        );
        
        if (isPartOfT1Whitelist(msg.sender, merkleProof))  {
            tieredPresaleMint(quantity, maxMintsPerWalletForT1Presale);
            emit t1MintEvent(msg.sender, quantity);
        } else if (isPartOfT2Whitelist(msg.sender, merkleProof)) {
            tieredPresaleMint(quantity, maxMintsPerWalletForT2Presale);
            emit t2MintEvent(msg.sender, quantity);
            /** TODO: require successful mint */

            /* mint myrai ticket */
            MyraiCrystal myraiCrystal = MyraiCrystal(myraiCrystalAddr);
            if (myraiCrystal.balanceOf(msg.sender) < 1) {
                myraiCrystal.mintFromKohoContract(1, msg.sender);    
            }
        }
    }

    function phaseTwoMint(bytes32[] calldata merkleProof) external payable whenNotPaused {
        uint256 quantity = 1;
        require(_isPhaseTwoPresaleMintable(), 'sale not active');
        runCommonChecks(quantity);
        require (
            isPartOfT3Whitelist(msg.sender, merkleProof),
            "wallet not part of any wl"
        );
        require(quantity < maxMintsPerWalletForT3Presale + 1, 'qty exceeds max per txn');
        require(msg.value == price * quantity, 'wrong value');
        uint256 mints = _numberMinted(msg.sender);
        require(mints + quantity < maxMintsPerWalletForT3Presale + 1, 'qty per wallet would be exceeded');
        _mintToken(quantity);
        emit t3MintEvent(msg.sender);
    }

    function publicMint(uint256 quantity) external payable whenNotPaused {
        require(_isPublicSaleMintable(), 'sale not active');
        require(msg.value == price * quantity, 'wrong value');
        runCommonChecks(quantity);
        uint256 mints = _numberMinted(msg.sender);
        require(mints + quantity < maxMintsPerWalletForPublic + 1, 'qty would exceed allowed limit');
        _mintToken(quantity);
        emit publicMintEvent(msg.sender, quantity);
    }

    function tieredPresaleMint(uint256 quantity, uint256 maxMintsPerWallet) internal whenNotPaused {
        require(quantity < maxMintsPerWallet + 1, 'qty exceeds max per txn');
        require(msg.value == price * quantity, 'wrong value');
        uint256 mints = _numberMinted(msg.sender);
        require(mints + quantity < maxMintsPerWallet + 1, 'qty per wallet would be exceeded');
        require(
            _totalMinted() + quantity < (maxTokensForPhaseOne + 1),
            'all presale tokens minted'
        );
        _mintToken(quantity);
    }

    function _mintToken(uint256 quantity) private {
        require(_totalMinted() + quantity < maxTokens + 1, 'max tokens minted');
        _safeMint(msg.sender, quantity);
    }

    function runCommonChecks(uint256 quantity) internal view {
        require(quantity > 0, 'zero');
        require(msg.sender == tx.origin, 'not contract mintable');
    }

    function isPartOfT1Whitelist(
        address _address,
        bytes32[] calldata merkleProof
    ) public view returns (bool) {
        bytes32 leaf = keccak256(abi.encodePacked(_address));
        return MerkleProof.verify(merkleProof, _t1PresaleMerkleRoot, leaf);
    }

    function isPartOfT2Whitelist(
        address _address,
        bytes32[] calldata merkleProof
    ) public view returns (bool) {
        bytes32 leaf = keccak256(abi.encodePacked(_address));
        return MerkleProof.verify(merkleProof, _t2PresaleMerkleRoot, leaf);
    }

    function isPartOfT3Whitelist(
        address _address,
        bytes32[] calldata merkleProof
    ) public view returns (bool) {
        bytes32 leaf = keccak256(abi.encodePacked(_address));
        return MerkleProof.verify(merkleProof, _t3PresaleMerkleRoot, leaf);
    }

    function _isPhaseOnePresaleMintable() private view returns (bool) {
        return
            _phaseOnePresaleActive &&
            !paused() &&
            !_publicSaleActive &&
            (_totalMinted() != maxTokensForPhaseOne);
    }

    function _isPhaseTwoPresaleMintable() private view returns (bool) {
        return
            _phaseTwoPresaleActive &&
            !paused() &&
            !_publicSaleActive &&
            (_totalMinted() != maxTokens);
    }

    function _isPublicSaleMintable() private view returns (bool) {
        return
            _publicSaleActive &&
            !paused() &&
            !_phaseOnePresaleActive &&
            (_totalMinted() != maxTokens);
    }

    function mintReservedTokens() external onlyOwner {
        _safeMint(admin, reservedTokensAmount);
    }

    /** ------------------------
    Overrides
    ---------------------------- */

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

    function supportsInterface(bytes4 interfaceId)
        public
        view
        virtual
        override(ERC721A, ERC2981)
        returns (bool)
    {
        return
            interfaceId == type(IERC721).interfaceId ||
            interfaceId == type(IERC721Metadata).interfaceId ||
            interfaceId == type(IERC2981).interfaceId ||
            super.supportsInterface(interfaceId);
    }

    function releaseFunds(address account) public {
        release(payable(account));
    }

    function tokenURI(uint256 tokenId)
        public
        view
        override
        returns (string memory)
    {
        if (isRevealed) {
            return string(abi.encodePacked(_baseURI(), Strings.toString(tokenId + 1), '.json'));
        }

        
        return _baseURI();
    }

    function burnYourTokens(uint256[] memory tokenIds) public {
        for (uint256 i = 0; i != tokenIds.length; ++i) {
            _burn(tokenIds[i], true);
        }
    }

    function adminMint(uint256 quantity) external onlyOwner {
        _safeMint(msg.sender, quantity);
    }

    /** -----------------------
    Getters
    --------------------------- */

    function getPhaseOnePresaleActive() external view returns (bool) {
        return _isPhaseOnePresaleMintable();
    }

    function getPhaseTwoPresaleActive() external view returns (bool) {
        return _isPhaseTwoPresaleMintable();
    }

    function getPublicSaleActive() external view returns (bool) {
        return _isPublicSaleMintable();
    }

    function getTotalMinted() external view returns (uint256) {
        return _totalMinted();
    }

    function _getTotalMinted() internal view returns (uint256) {
        return _totalMinted() - reservedTokensAmount;
    }

    function getT1PresaleMerkleRoot() external view onlyOwner returns (bytes32) {
        return _t1PresaleMerkleRoot;
    }
    
    function getT2PresaleMerkleRoot() external view onlyOwner returns (bytes32) {
        return _t2PresaleMerkleRoot;
    }    

    function getT3PresaleMerkleRoot() external view onlyOwner returns (bytes32) {
        return _t3PresaleMerkleRoot;
    }

    /** ----------------------------
    Setters - Owner Only Accessible
    -------------------------------- */

    function setReservedTokensAmount(uint256 _reservedTokensAmount) external onlyOwner {
        reservedTokensAmount = _reservedTokensAmount;
    }

    function setBaseURI(string memory _baseURIAddress) external onlyOwner {
        baseURIAddress = _baseURIAddress;
    }

    function setIsRevealed(bool revealed, string memory _baseURIAddress) external onlyOwner {
        isRevealed = revealed;
        baseURIAddress = _baseURIAddress;
    }

    function setContractURI(string calldata _contractURI) external onlyOwner {
        contractURI = _contractURI;
    }

    function setPrice(uint256 amount) external onlyOwner {
        price = amount;
    }

    function setT1PresaleMerkleRoot(bytes32 merkleRoot) external onlyOwner {
        _t1PresaleMerkleRoot = merkleRoot;
    }

    function setT2PresaleMerkleRoot(bytes32 merkleRoot) external onlyOwner {
        _t2PresaleMerkleRoot = merkleRoot;
    }

    function setT3PresaleMerkleRoot(bytes32 merkleRoot) external onlyOwner {
        _t3PresaleMerkleRoot = merkleRoot;
    }

    function setMaxTokens(uint256 amount) external onlyOwner {
        maxTokens = amount;
    }

    function setmaxTokensForPhaseOne(uint256 amount) external onlyOwner {
        maxTokensForPhaseOne = amount + reservedTokensAmount;
    }

    function setRoyalty(address _address, uint96 royaltyFee) external onlyOwner {
        _setDefaultRoyalty(_address, royaltyFee);
    }

    function setMaxMintsPerWalletForPublic(uint256 amount) external onlyOwner {
        maxMintsPerWalletForPublic = amount;
    }

    function setAdmin(address _admin) external onlyOwner {
        admin = _admin;
    }

    function setMyraiCrystalAddr(address _myraiCrystalAddr) external onlyOwner {
        myraiCrystalAddr = _myraiCrystalAddr;
    }

    function setMaxMintsPerWalletForT1Presale(uint256 amount) external onlyOwner {
        maxMintsPerWalletForT1Presale = amount;
    }

    function setMaxMintsPerWalletForT2Presale(uint256 amount) external onlyOwner {
        maxMintsPerWalletForT2Presale = amount;
    }

    function setMaxMintsPerWalletForT3Presale(uint256 amount) external onlyOwner {
        maxMintsPerWalletForT3Presale = amount;
    }

    function togglePhaseOnePresaleActive() external onlyOwner {
        _phaseOnePresaleActive = !_phaseOnePresaleActive;
        if (_publicSaleActive) {
            _publicSaleActive = false;
        }        
        if (_phaseTwoPresaleActive) {
            _phaseTwoPresaleActive = false;
        }
    }

    function togglePhaseTwoPresaleActive() external onlyOwner {
        _phaseTwoPresaleActive = !_phaseTwoPresaleActive;
        if (_publicSaleActive) {
            _publicSaleActive = false;
        }        
        if (_phaseOnePresaleActive) {
            _phaseOnePresaleActive = false;
        }
    }

    function togglePublicSaleActive() external onlyOwner {
        _publicSaleActive = !_publicSaleActive;
        if (_phaseOnePresaleActive) {
            _phaseOnePresaleActive = false;
        }        
        if (_phaseTwoPresaleActive) {
            _phaseTwoPresaleActive = false;
        }
    }

    function togglePause() external onlyOwner {
        if (paused()) {
            _unpause();
        } else {
            _pause();
        }
    }
}

File 2 of 22 : ERC721A.sol
// SPDX-License-Identifier: MIT
// Creator: Chiru Labs

pragma solidity ^0.8.4;

import '@openzeppelin/contracts/token/ERC721/IERC721.sol';
import '@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol';
import '@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol';
import '@openzeppelin/contracts/utils/Address.sol';
import '@openzeppelin/contracts/utils/Context.sol';
import '@openzeppelin/contracts/utils/Strings.sol';
import '@openzeppelin/contracts/utils/introspection/ERC165.sol';

error ApprovalCallerNotOwnerNorApproved();
error ApprovalQueryForNonexistentToken();
error ApproveToCaller();
error ApprovalToCurrentOwner();
error BalanceQueryForZeroAddress();
error MintToZeroAddress();
error MintZeroQuantity();
error OwnerQueryForNonexistentToken();
error TransferCallerNotOwnerNorApproved();
error TransferFromIncorrectOwner();
error TransferToNonERC721ReceiverImplementer();
error TransferToZeroAddress();
error URIQueryForNonexistentToken();

/**
 * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
 * the Metadata extension. Built to optimize for lower gas during batch mints.
 *
 * Assumes serials are sequentially minted starting at _startTokenId() (defaults to 0, e.g. 0, 1, 2, 3..).
 *
 * Assumes that an owner cannot have more than 2**64 - 1 (max value of uint64) of supply.
 *
 * Assumes that the maximum token id cannot exceed 2**256 - 1 (max value of uint256).
 */
contract ERC721A is Context, ERC165, IERC721, IERC721Metadata {
    using Address for address;
    using Strings for uint256;

    // Compiler will pack this into a single 256bit word.
    struct TokenOwnership {
        // The address of the owner.
        address addr;
        // Keeps track of the start time of ownership with minimal overhead for tokenomics.
        uint64 startTimestamp;
        // Whether the token has been burned.
        bool burned;
    }

    // Compiler will pack this into a single 256bit word.
    struct AddressData {
        // Realistically, 2**64-1 is more than enough.
        uint64 balance;
        // Keeps track of mint count with minimal overhead for tokenomics.
        uint64 numberMinted;
        // Keeps track of burn count with minimal overhead for tokenomics.
        uint64 numberBurned;
        // For miscellaneous variable(s) pertaining to the address
        // (e.g. number of whitelist mint slots used).
        // If there are multiple variables, please pack them into a uint64.
        uint64 aux;
    }

    // The tokenId of the next token to be minted.
    uint256 internal _currentIndex;

    // The number of tokens burned.
    uint256 internal _burnCounter;

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

    // Mapping from token ID to ownership details
    // An empty struct value does not necessarily mean the token is unowned. See _ownershipOf implementation for details.
    mapping(uint256 => TokenOwnership) internal _ownerships;

    // Mapping owner address to address data
    mapping(address => AddressData) private _addressData;

    // 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;

    constructor(string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
        _currentIndex = _startTokenId();
    }

    /**
     * To change the starting tokenId, please override this function.
     */
    function _startTokenId() internal view virtual returns (uint256) {
        return 0;
    }

    /**
     * @dev Burned tokens are calculated here, use _totalMinted() if you want to count just minted tokens.
     */
    function totalSupply() public view returns (uint256) {
        // Counter underflow is impossible as _burnCounter cannot be incremented
        // more than _currentIndex - _startTokenId() times
        unchecked {
            return _currentIndex - _burnCounter - _startTokenId();
        }
    }

    /**
     * Returns the total amount of tokens minted in the contract.
     */
    function _totalMinted() internal view returns (uint256) {
        // Counter underflow is impossible as _currentIndex does not decrement,
        // and it is initialized to _startTokenId()
        unchecked {
            return _currentIndex - _startTokenId();
        }
    }

    /**
     * @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 override returns (uint256) {
        if (owner == address(0)) revert BalanceQueryForZeroAddress();
        return uint256(_addressData[owner].balance);
    }

    /**
     * Returns the number of tokens minted by `owner`.
     */
    function _numberMinted(address owner) internal view returns (uint256) {
        return uint256(_addressData[owner].numberMinted);
    }

    /**
     * Returns the number of tokens burned by or on behalf of `owner`.
     */
    function _numberBurned(address owner) internal view returns (uint256) {
        return uint256(_addressData[owner].numberBurned);
    }

    /**
     * Returns the auxillary data for `owner`. (e.g. number of whitelist mint slots used).
     */
    function _getAux(address owner) internal view returns (uint64) {
        return _addressData[owner].aux;
    }

    /**
     * Sets the auxillary data for `owner`. (e.g. number of whitelist mint slots used).
     * If there are multiple variables, please pack them into a uint64.
     */
    function _setAux(address owner, uint64 aux) internal {
        _addressData[owner].aux = aux;
    }

    /**
     * Gas spent here starts off proportional to the maximum mint batch size.
     * It gradually moves to O(1) as tokens get transferred around in the collection over time.
     */
    function _ownershipOf(uint256 tokenId) internal view returns (TokenOwnership memory) {
        uint256 curr = tokenId;

        unchecked {
            if (_startTokenId() <= curr && curr < _currentIndex) {
                TokenOwnership memory ownership = _ownerships[curr];
                if (!ownership.burned) {
                    if (ownership.addr != address(0)) {
                        return ownership;
                    }
                    // Invariant:
                    // There will always be an ownership that has an address and is not burned
                    // before an ownership that does not have an address and is not burned.
                    // Hence, curr will not underflow.
                    while (true) {
                        curr--;
                        ownership = _ownerships[curr];
                        if (ownership.addr != address(0)) {
                            return ownership;
                        }
                    }
                }
            }
        }
        revert OwnerQueryForNonexistentToken();
    }

    /**
     * @dev See {IERC721-ownerOf}.
     */
    function ownerOf(uint256 tokenId) public view override returns (address) {
        return _ownershipOf(tokenId).addr;
    }

    /**
     * @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) {
        if (!_exists(tokenId)) revert URIQueryForNonexistentToken();

        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 override {
        address owner = ERC721A.ownerOf(tokenId);
        if (to == owner) revert ApprovalToCurrentOwner();

        if (_msgSender() != owner && !isApprovedForAll(owner, _msgSender())) {
            revert ApprovalCallerNotOwnerNorApproved();
        }

        _approve(to, tokenId, owner);
    }

    /**
     * @dev See {IERC721-getApproved}.
     */
    function getApproved(uint256 tokenId) public view override returns (address) {
        if (!_exists(tokenId)) revert ApprovalQueryForNonexistentToken();

        return _tokenApprovals[tokenId];
    }

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

        _operatorApprovals[_msgSender()][operator] = approved;
        emit ApprovalForAll(_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 {
        _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 {
        _transfer(from, to, tokenId);
        if (to.isContract() && !_checkContractOnERC721Received(from, to, tokenId, _data)) {
            revert TransferToNonERC721ReceiverImplementer();
        }
    }

    /**
     * @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`),
     */
    function _exists(uint256 tokenId) internal view returns (bool) {
        return _startTokenId() <= tokenId && tokenId < _currentIndex && !_ownerships[tokenId].burned;
    }

    function _safeMint(address to, uint256 quantity) internal {
        _safeMint(to, quantity, '');
    }

    /**
     * @dev Safely mints `quantity` tokens and transfers them to `to`.
     *
     * Requirements:
     *
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called for each safe transfer.
     * - `quantity` must be greater than 0.
     *
     * Emits a {Transfer} event.
     */
    function _safeMint(
        address to,
        uint256 quantity,
        bytes memory _data
    ) internal {
        _mint(to, quantity, _data, true);
    }

    /**
     * @dev Mints `quantity` tokens and transfers them to `to`.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - `quantity` must be greater than 0.
     *
     * Emits a {Transfer} event.
     */
    function _mint(
        address to,
        uint256 quantity,
        bytes memory _data,
        bool safe
    ) internal {
        uint256 startTokenId = _currentIndex;
        if (to == address(0)) revert MintToZeroAddress();
        if (quantity == 0) revert MintZeroQuantity();

        _beforeTokenTransfers(address(0), to, startTokenId, quantity);

        // Overflows are incredibly unrealistic.
        // balance or numberMinted overflow if current value of either + quantity > 1.8e19 (2**64) - 1
        // updatedIndex overflows if _currentIndex + quantity > 1.2e77 (2**256) - 1
        unchecked {
            _addressData[to].balance += uint64(quantity);
            _addressData[to].numberMinted += uint64(quantity);

            _ownerships[startTokenId].addr = to;
            _ownerships[startTokenId].startTimestamp = uint64(block.timestamp);

            uint256 updatedIndex = startTokenId;
            uint256 end = updatedIndex + quantity;

            if (safe && to.isContract()) {
                do {
                    emit Transfer(address(0), to, updatedIndex);
                    if (!_checkContractOnERC721Received(address(0), to, updatedIndex++, _data)) {
                        revert TransferToNonERC721ReceiverImplementer();
                    }
                } while (updatedIndex != end);
                // Reentrancy protection
                if (_currentIndex != startTokenId) revert();
            } else {
                do {
                    emit Transfer(address(0), to, updatedIndex++);
                } while (updatedIndex != end);
            }
            _currentIndex = updatedIndex;
        }
        _afterTokenTransfers(address(0), to, startTokenId, quantity);
    }

    /**
     * @dev Transfers `tokenId` from `from` to `to`.
     *
     * 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
    ) private {
        TokenOwnership memory prevOwnership = _ownershipOf(tokenId);

        if (prevOwnership.addr != from) revert TransferFromIncorrectOwner();

        bool isApprovedOrOwner = (_msgSender() == from ||
            isApprovedForAll(from, _msgSender()) ||
            getApproved(tokenId) == _msgSender());

        if (!isApprovedOrOwner) revert TransferCallerNotOwnerNorApproved();
        if (to == address(0)) revert TransferToZeroAddress();

        _beforeTokenTransfers(from, to, tokenId, 1);

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

        // Underflow of the sender's balance is impossible because we check for
        // ownership above and the recipient's balance can't realistically overflow.
        // Counter overflow is incredibly unrealistic as tokenId would have to be 2**256.
        unchecked {
            _addressData[from].balance -= 1;
            _addressData[to].balance += 1;

            TokenOwnership storage currSlot = _ownerships[tokenId];
            currSlot.addr = to;
            currSlot.startTimestamp = uint64(block.timestamp);

            // If the ownership slot of tokenId+1 is not explicitly set, that means the transfer initiator owns it.
            // Set the slot of tokenId+1 explicitly in storage to maintain correctness for ownerOf(tokenId+1) calls.
            uint256 nextTokenId = tokenId + 1;
            TokenOwnership storage nextSlot = _ownerships[nextTokenId];
            if (nextSlot.addr == address(0)) {
                // This will suffice for checking _exists(nextTokenId),
                // as a burned slot cannot contain the zero address.
                if (nextTokenId != _currentIndex) {
                    nextSlot.addr = from;
                    nextSlot.startTimestamp = prevOwnership.startTimestamp;
                }
            }
        }

        emit Transfer(from, to, tokenId);
        _afterTokenTransfers(from, to, tokenId, 1);
    }

    /**
     * @dev This is equivalent to _burn(tokenId, false)
     */
    function _burn(uint256 tokenId) internal virtual {
        _burn(tokenId, false);
    }

    /**
     * @dev Destroys `tokenId`.
     * The approval is cleared when the token is burned.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     *
     * Emits a {Transfer} event.
     */
    function _burn(uint256 tokenId, bool approvalCheck) internal virtual {
        TokenOwnership memory prevOwnership = _ownershipOf(tokenId);

        address from = prevOwnership.addr;

        if (approvalCheck) {
            bool isApprovedOrOwner = (_msgSender() == from ||
                isApprovedForAll(from, _msgSender()) ||
                getApproved(tokenId) == _msgSender());

            if (!isApprovedOrOwner) revert TransferCallerNotOwnerNorApproved();
        }

        _beforeTokenTransfers(from, address(0), tokenId, 1);

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

        // Underflow of the sender's balance is impossible because we check for
        // ownership above and the recipient's balance can't realistically overflow.
        // Counter overflow is incredibly unrealistic as tokenId would have to be 2**256.
        unchecked {
            AddressData storage addressData = _addressData[from];
            addressData.balance -= 1;
            addressData.numberBurned += 1;

            // Keep track of who burned the token, and the timestamp of burning.
            TokenOwnership storage currSlot = _ownerships[tokenId];
            currSlot.addr = from;
            currSlot.startTimestamp = uint64(block.timestamp);
            currSlot.burned = true;

            // If the ownership slot of tokenId+1 is not explicitly set, that means the burn initiator owns it.
            // Set the slot of tokenId+1 explicitly in storage to maintain correctness for ownerOf(tokenId+1) calls.
            uint256 nextTokenId = tokenId + 1;
            TokenOwnership storage nextSlot = _ownerships[nextTokenId];
            if (nextSlot.addr == address(0)) {
                // This will suffice for checking _exists(nextTokenId),
                // as a burned slot cannot contain the zero address.
                if (nextTokenId != _currentIndex) {
                    nextSlot.addr = from;
                    nextSlot.startTimestamp = prevOwnership.startTimestamp;
                }
            }
        }

        emit Transfer(from, address(0), tokenId);
        _afterTokenTransfers(from, address(0), tokenId, 1);

        // Overflow not possible, as _burnCounter cannot be exceed _currentIndex times.
        unchecked {
            _burnCounter++;
        }
    }

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

    /**
     * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target 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 _checkContractOnERC721Received(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) private returns (bool) {
        try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) {
            return retval == IERC721Receiver(to).onERC721Received.selector;
        } catch (bytes memory reason) {
            if (reason.length == 0) {
                revert TransferToNonERC721ReceiverImplementer();
            } else {
                assembly {
                    revert(add(32, reason), mload(reason))
                }
            }
        }
    }

    /**
     * @dev Hook that is called before a set of serially-ordered token ids are about to be transferred. This includes minting.
     * And also called before burning one token.
     *
     * startTokenId - the first token id to be transferred
     * quantity - the amount to be transferred
     *
     * 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, `tokenId` will be burned by `from`.
     * - `from` and `to` are never both zero.
     */
    function _beforeTokenTransfers(
        address from,
        address to,
        uint256 startTokenId,
        uint256 quantity
    ) internal virtual {}

    /**
     * @dev Hook that is called after a set of serially-ordered token ids have been transferred. This includes
     * minting.
     * And also called after one token has been burned.
     *
     * startTokenId - the first token id to be transferred
     * quantity - the amount to be transferred
     *
     * Calling conditions:
     *
     * - When `from` and `to` are both non-zero, `from`'s `tokenId` has been
     * transferred to `to`.
     * - When `from` is zero, `tokenId` has been minted for `to`.
     * - When `to` is zero, `tokenId` has been burned by `from`.
     * - `from` and `to` are never both zero.
     */
    function _afterTokenTransfers(
        address from,
        address to,
        uint256 startTokenId,
        uint256 quantity
    ) internal virtual {}
}

File 3 of 22 : ERC721AQueryable.sol
// SPDX-License-Identifier: MIT
// Creator: Chiru Labs

pragma solidity ^0.8.4;

import '../ERC721A.sol';

error InvalidQueryRange();

/**
 * @title ERC721A Queryable
 * @dev ERC721A subclass with convenience query functions.
 */
abstract contract ERC721AQueryable is ERC721A {
    /**
     * @dev Returns the `TokenOwnership` struct at `tokenId` without reverting.
     *
     * If the `tokenId` is out of bounds:
     *   - `addr` = `address(0)`
     *   - `startTimestamp` = `0`
     *   - `burned` = `false`
     *
     * If the `tokenId` is burned:
     *   - `addr` = `<Address of owner before token was burned>`
     *   - `startTimestamp` = `<Timestamp when token was burned>`
     *   - `burned = `true`
     *
     * Otherwise:
     *   - `addr` = `<Address of owner>`
     *   - `startTimestamp` = `<Timestamp of start of ownership>`
     *   - `burned = `false`
     */
    function explicitOwnershipOf(uint256 tokenId) public view returns (TokenOwnership memory) {
        TokenOwnership memory ownership;
        if (tokenId < _startTokenId() || tokenId >= _currentIndex) {
            return ownership;
        }
        ownership = _ownerships[tokenId];
        if (ownership.burned) {
            return ownership;
        }
        return _ownershipOf(tokenId);
    }

    /**
     * @dev Returns an array of `TokenOwnership` structs at `tokenIds` in order.
     * See {ERC721AQueryable-explicitOwnershipOf}
     */
    function explicitOwnershipsOf(uint256[] memory tokenIds) external view returns (TokenOwnership[] memory) {
        unchecked {
            uint256 tokenIdsLength = tokenIds.length;
            TokenOwnership[] memory ownerships = new TokenOwnership[](tokenIdsLength);
            for (uint256 i; i != tokenIdsLength; ++i) {
                ownerships[i] = explicitOwnershipOf(tokenIds[i]);
            }
            return ownerships;
        }
    }

    /**
     * @dev Returns an array of token IDs owned by `owner`,
     * in the range [`start`, `stop`)
     * (i.e. `start <= tokenId < stop`).
     *
     * This function allows for tokens to be queried if the collection
     * grows too big for a single call of {ERC721AQueryable-tokensOfOwner}.
     *
     * Requirements:
     *
     * - `start` < `stop`
     */
    function tokensOfOwnerIn(
        address owner,
        uint256 start,
        uint256 stop
    ) external view returns (uint256[] memory) {
        unchecked {
            if (start >= stop) revert InvalidQueryRange();
            uint256 tokenIdsIdx;
            uint256 stopLimit = _currentIndex;
            // Set `start = max(start, _startTokenId())`.
            if (start < _startTokenId()) {
                start = _startTokenId();
            }
            // Set `stop = min(stop, _currentIndex)`.
            if (stop > stopLimit) {
                stop = stopLimit;
            }
            uint256 tokenIdsMaxLength = balanceOf(owner);
            // Set `tokenIdsMaxLength = min(balanceOf(owner), stop - start)`,
            // to cater for cases where `balanceOf(owner)` is too big.
            if (start < stop) {
                uint256 rangeLength = stop - start;
                if (rangeLength < tokenIdsMaxLength) {
                    tokenIdsMaxLength = rangeLength;
                }
            } else {
                tokenIdsMaxLength = 0;
            }
            uint256[] memory tokenIds = new uint256[](tokenIdsMaxLength);
            if (tokenIdsMaxLength == 0) {
                return tokenIds;
            }
            // We need to call `explicitOwnershipOf(start)`,
            // because the slot at `start` may not be initialized.
            TokenOwnership memory ownership = explicitOwnershipOf(start);
            address currOwnershipAddr;
            // If the starting slot exists (i.e. not burned), initialize `currOwnershipAddr`.
            // `ownership.address` will not be zero, as `start` is clamped to the valid token ID range.
            if (!ownership.burned) {
                currOwnershipAddr = ownership.addr;
            }
            for (uint256 i = start; i != stop && tokenIdsIdx != tokenIdsMaxLength; ++i) {
                ownership = _ownerships[i];
                if (ownership.burned) {
                    continue;
                }
                if (ownership.addr != address(0)) {
                    currOwnershipAddr = ownership.addr;
                }
                if (currOwnershipAddr == owner) {
                    tokenIds[tokenIdsIdx++] = i;
                }
            }
            // Downsize the array to fit.
            assembly {
                mstore(tokenIds, tokenIdsIdx)
            }
            return tokenIds;
        }
    }

    /**
     * @dev Returns an array of token IDs owned by `owner`.
     *
     * This function scans the ownership mapping and is O(totalSupply) in complexity.
     * It is meant to be called off-chain.
     *
     * See {ERC721AQueryable-tokensOfOwnerIn} for splitting the scan into
     * multiple smaller scans if the collection is large enough to cause
     * an out-of-gas error (10K pfp collections should be fine).
     */
    function tokensOfOwner(address owner) external view returns (uint256[] memory) {
        unchecked {
            uint256 tokenIdsIdx;
            address currOwnershipAddr;
            uint256 tokenIdsLength = balanceOf(owner);
            uint256[] memory tokenIds = new uint256[](tokenIdsLength);
            TokenOwnership memory ownership;
            for (uint256 i = _startTokenId(); tokenIdsIdx != tokenIdsLength; ++i) {
                ownership = _ownerships[i];
                if (ownership.burned) {
                    continue;
                }
                if (ownership.addr != address(0)) {
                    currOwnershipAddr = ownership.addr;
                }
                if (currOwnershipAddr == owner) {
                    tokenIds[tokenIdsIdx++] = i;
                }
            }
            return tokenIds;
        }
    }
}

File 4 of 22 : ERC2981.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/common/ERC2981.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

        return (royalty.receiver, royaltyAmount);
    }

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

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

        _defaultRoyaltyInfo = RoyaltyInfo(receiver, feeNumerator);
    }

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

File 6 of 22 : PaymentSplitter.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (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 7 of 22 : Pausable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (security/Pausable.sol)

pragma solidity ^0.8.0;

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

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

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

    bool private _paused;

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

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

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

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

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

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

File 8 of 22 : MerkleProof.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.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 = _efficientHash(computedHash, proofElement);
            } else {
                // Hash(current element of the proof + current computed hash)
                computedHash = _efficientHash(proofElement, computedHash);
            }
        }
        return computedHash;
    }

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

File 9 of 22 : MyraiCrystal.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;

import 'erc721a/contracts/ERC721A.sol';
import '@openzeppelin/contracts/token/common/ERC2981.sol';
import '@openzeppelin/contracts/access/Ownable.sol';
import '@openzeppelin/contracts/security/Pausable.sol';
import '@openzeppelin/contracts/utils/cryptography/MerkleProof.sol';
import "hardhat/console.sol";

/** TODO: all vars should setters */
contract MyraiCrystal is ERC721A, ERC2981, Ownable, Pausable {
    uint256 public maxQuantityPerTxn = 1;
    string public contractURI;
    uint256 public maxTokens;
    uint256 public maxMintsPerWallet = 1;
    bytes32 public merkleRoot;
    bool public saleActive;
    address public kohoContractAddress;
    string private _baseURIAddress;

    constructor(
        string memory _contractURI,
        uint256 _maxTokens,
        address _admin,
        bytes32 _merkleRoot,
        string memory baseURI
    ) ERC721A('MyraiCrystal', 'MYRAI_CRYSTAL') {
        _setDefaultRoyalty(_admin, 1000);
        contractURI = _contractURI;
        maxTokens = _maxTokens;
        _baseURIAddress = baseURI;
        merkleRoot = _merkleRoot;
    }

    /** ------------------------
    Minting
    ---------------------------- */

    function mintFromKohoContract(uint256 quantity, address addr) external {
        require(kohoContractAddress != address(0), 'No address for Koho contract');
        require(msg.sender == kohoContractAddress, 'Only mintable by Koho contract');
        uint256 mints = _numberMinted(addr);
        require(mints + quantity < maxMintsPerWallet + 1, 'Max quantity per wallet minted');
        require(
            _totalMinted() + quantity < maxTokens + 1,
            'Qty exceeds max available tokens'
        );
        _safeMint(addr, quantity);
    }

    function mint(uint256 quantity, bytes32[] calldata merkleProof)
        external
        whenNotPaused
    {
        require(_isMintable(), 'Sale not active');
        require(msg.sender == tx.origin, 'NotContractMintable');
        require(quantity > 0, 'zero');
        require(isPartOfWhitelist(msg.sender, merkleProof), 'Not part of wl');
        uint256 mints = _numberMinted(msg.sender);
        require(mints + quantity < maxMintsPerWallet + 1, 'Max quantity per wallet minted');
        require(
            _totalMinted() + quantity < maxTokens + 1,
            'Qty exceeds max available tokens'
        );
        _safeMint(msg.sender, quantity);
    }

    function isPartOfWhitelist(
        address _address,
        bytes32[] calldata merkleProof
    ) public view returns (bool) {
        bytes32 leaf = keccak256(abi.encodePacked(_address));
        return MerkleProof.verify(merkleProof, merkleRoot, leaf);
    }

    function _isMintable() private view returns (bool) {
        return
            saleActive &&
            !paused() &&
            (_totalMinted() != maxTokens);
    }

    function adminMint(uint256 quantity) external onlyOwner {
        _safeMint(msg.sender, quantity);
    }


    /** ------------------------
    Overrides
    ---------------------------- */

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

    function supportsInterface(bytes4 interfaceId)
        public
        view
        virtual
        override(ERC721A, ERC2981)
        returns (bool)
    {
        return
            interfaceId == type(IERC721).interfaceId ||
            interfaceId == type(IERC721Metadata).interfaceId ||
            interfaceId == type(IERC2981).interfaceId ||
            super.supportsInterface(interfaceId);
    }


    function tokenURI(uint256 tokenId)
        public
        view
        override
        returns (string memory)
    {        
        return _baseURI();
    }

    /** -----------------------
    Getters
    --------------------------- */

    function getSaleActive() external view returns (bool) {
        return _isMintable();
    }

    function getTotalMinted() external view returns (uint256) {
        return _totalMinted();
    }

    function getMaxTokens() internal view returns (uint256) {
        return maxTokens;
    }

    /** ----------------------------
    Setters - Owner Only Accessible
    -------------------------------- */

    function setBaseURI(string memory baseURIAddress) external onlyOwner {
        _baseURIAddress = baseURIAddress;
    }

    function setMaxQuantityPerTxn(uint256 _maxQuantityPerTxn) external onlyOwner {
        maxQuantityPerTxn = _maxQuantityPerTxn;
    }

    function setMaxTokens(uint256 _maxTokens) external onlyOwner {
        maxTokens = _maxTokens;
    }

    function setAdmin(string memory baseURIAddress) external onlyOwner {
        _baseURIAddress = baseURIAddress;
    }

    function setContractURI(string calldata _contractURI) external onlyOwner {
        contractURI = _contractURI;
    }

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

    function setRoyalty(address _address, uint96 royaltyFee) external onlyOwner {
        _setDefaultRoyalty(_address, royaltyFee);
    }

    function setMaxMintsPerWallet(uint256 amount) external onlyOwner {
        maxMintsPerWallet = amount;
    }

    function setKohoContractAddress(address addr) external onlyOwner {
        kohoContractAddress = addr;
    }

    /** ----------------------------
    Toggles - Owner Only Accessible
    -------------------------------- */

    function toggleSaleActive() external onlyOwner {
        saleActive = !saleActive;
    }

    function togglePause() external onlyOwner {
        if (paused()) {
            _unpause();
        } else {
            _pause();
        }
    }
}

File 10 of 22 : console.sol
// SPDX-License-Identifier: MIT
pragma solidity >= 0.4.22 <0.9.0;

library console {
	address constant CONSOLE_ADDRESS = address(0x000000000000000000636F6e736F6c652e6c6f67);

	function _sendLogPayload(bytes memory payload) private view {
		uint256 payloadLength = payload.length;
		address consoleAddress = CONSOLE_ADDRESS;
		assembly {
			let payloadStart := add(payload, 32)
			let r := staticcall(gas(), consoleAddress, payloadStart, payloadLength, 0, 0)
		}
	}

	function log() internal view {
		_sendLogPayload(abi.encodeWithSignature("log()"));
	}

	function logInt(int p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(int)", p0));
	}

	function logUint(uint p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint)", p0));
	}

	function logString(string memory p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string)", p0));
	}

	function logBool(bool p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool)", p0));
	}

	function logAddress(address p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address)", p0));
	}

	function logBytes(bytes memory p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes)", p0));
	}

	function logBytes1(bytes1 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes1)", p0));
	}

	function logBytes2(bytes2 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes2)", p0));
	}

	function logBytes3(bytes3 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes3)", p0));
	}

	function logBytes4(bytes4 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes4)", p0));
	}

	function logBytes5(bytes5 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes5)", p0));
	}

	function logBytes6(bytes6 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes6)", p0));
	}

	function logBytes7(bytes7 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes7)", p0));
	}

	function logBytes8(bytes8 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes8)", p0));
	}

	function logBytes9(bytes9 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes9)", p0));
	}

	function logBytes10(bytes10 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes10)", p0));
	}

	function logBytes11(bytes11 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes11)", p0));
	}

	function logBytes12(bytes12 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes12)", p0));
	}

	function logBytes13(bytes13 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes13)", p0));
	}

	function logBytes14(bytes14 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes14)", p0));
	}

	function logBytes15(bytes15 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes15)", p0));
	}

	function logBytes16(bytes16 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes16)", p0));
	}

	function logBytes17(bytes17 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes17)", p0));
	}

	function logBytes18(bytes18 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes18)", p0));
	}

	function logBytes19(bytes19 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes19)", p0));
	}

	function logBytes20(bytes20 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes20)", p0));
	}

	function logBytes21(bytes21 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes21)", p0));
	}

	function logBytes22(bytes22 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes22)", p0));
	}

	function logBytes23(bytes23 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes23)", p0));
	}

	function logBytes24(bytes24 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes24)", p0));
	}

	function logBytes25(bytes25 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes25)", p0));
	}

	function logBytes26(bytes26 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes26)", p0));
	}

	function logBytes27(bytes27 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes27)", p0));
	}

	function logBytes28(bytes28 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes28)", p0));
	}

	function logBytes29(bytes29 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes29)", p0));
	}

	function logBytes30(bytes30 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes30)", p0));
	}

	function logBytes31(bytes31 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes31)", p0));
	}

	function logBytes32(bytes32 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes32)", p0));
	}

	function log(uint p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint)", p0));
	}

	function log(string memory p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string)", p0));
	}

	function log(bool p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool)", p0));
	}

	function log(address p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address)", p0));
	}

	function log(uint p0, uint p1) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,uint)", p0, p1));
	}

	function log(uint p0, string memory p1) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,string)", p0, p1));
	}

	function log(uint p0, bool p1) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,bool)", p0, p1));
	}

	function log(uint p0, address p1) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,address)", p0, p1));
	}

	function log(string memory p0, uint p1) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,uint)", p0, p1));
	}

	function log(string memory p0, string memory p1) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,string)", p0, p1));
	}

	function log(string memory p0, bool p1) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,bool)", p0, p1));
	}

	function log(string memory p0, address p1) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,address)", p0, p1));
	}

	function log(bool p0, uint p1) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,uint)", p0, p1));
	}

	function log(bool p0, string memory p1) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,string)", p0, p1));
	}

	function log(bool p0, bool p1) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,bool)", p0, p1));
	}

	function log(bool p0, address p1) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,address)", p0, p1));
	}

	function log(address p0, uint p1) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,uint)", p0, p1));
	}

	function log(address p0, string memory p1) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,string)", p0, p1));
	}

	function log(address p0, bool p1) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,bool)", p0, p1));
	}

	function log(address p0, address p1) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,address)", p0, p1));
	}

	function log(uint p0, uint p1, uint p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,uint,uint)", p0, p1, p2));
	}

	function log(uint p0, uint p1, string memory p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,uint,string)", p0, p1, p2));
	}

	function log(uint p0, uint p1, bool p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,uint,bool)", p0, p1, p2));
	}

	function log(uint p0, uint p1, address p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,uint,address)", p0, p1, p2));
	}

	function log(uint p0, string memory p1, uint p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,string,uint)", p0, p1, p2));
	}

	function log(uint p0, string memory p1, string memory p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,string,string)", p0, p1, p2));
	}

	function log(uint p0, string memory p1, bool p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,string,bool)", p0, p1, p2));
	}

	function log(uint p0, string memory p1, address p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,string,address)", p0, p1, p2));
	}

	function log(uint p0, bool p1, uint p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,bool,uint)", p0, p1, p2));
	}

	function log(uint p0, bool p1, string memory p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,bool,string)", p0, p1, p2));
	}

	function log(uint p0, bool p1, bool p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,bool,bool)", p0, p1, p2));
	}

	function log(uint p0, bool p1, address p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,bool,address)", p0, p1, p2));
	}

	function log(uint p0, address p1, uint p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,address,uint)", p0, p1, p2));
	}

	function log(uint p0, address p1, string memory p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,address,string)", p0, p1, p2));
	}

	function log(uint p0, address p1, bool p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,address,bool)", p0, p1, p2));
	}

	function log(uint p0, address p1, address p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,address,address)", p0, p1, p2));
	}

	function log(string memory p0, uint p1, uint p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,uint,uint)", p0, p1, p2));
	}

	function log(string memory p0, uint p1, string memory p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,uint,string)", p0, p1, p2));
	}

	function log(string memory p0, uint p1, bool p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,uint,bool)", p0, p1, p2));
	}

	function log(string memory p0, uint p1, address p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,uint,address)", p0, p1, p2));
	}

	function log(string memory p0, string memory p1, uint p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,string,uint)", p0, p1, p2));
	}

	function log(string memory p0, string memory p1, string memory p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,string,string)", p0, p1, p2));
	}

	function log(string memory p0, string memory p1, bool p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,string,bool)", p0, p1, p2));
	}

	function log(string memory p0, string memory p1, address p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,string,address)", p0, p1, p2));
	}

	function log(string memory p0, bool p1, uint p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,bool,uint)", p0, p1, p2));
	}

	function log(string memory p0, bool p1, string memory p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,bool,string)", p0, p1, p2));
	}

	function log(string memory p0, bool p1, bool p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,bool,bool)", p0, p1, p2));
	}

	function log(string memory p0, bool p1, address p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,bool,address)", p0, p1, p2));
	}

	function log(string memory p0, address p1, uint p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,address,uint)", p0, p1, p2));
	}

	function log(string memory p0, address p1, string memory p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,address,string)", p0, p1, p2));
	}

	function log(string memory p0, address p1, bool p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,address,bool)", p0, p1, p2));
	}

	function log(string memory p0, address p1, address p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,address,address)", p0, p1, p2));
	}

	function log(bool p0, uint p1, uint p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,uint,uint)", p0, p1, p2));
	}

	function log(bool p0, uint p1, string memory p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,uint,string)", p0, p1, p2));
	}

	function log(bool p0, uint p1, bool p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,uint,bool)", p0, p1, p2));
	}

	function log(bool p0, uint p1, address p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,uint,address)", p0, p1, p2));
	}

	function log(bool p0, string memory p1, uint p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,string,uint)", p0, p1, p2));
	}

	function log(bool p0, string memory p1, string memory p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,string,string)", p0, p1, p2));
	}

	function log(bool p0, string memory p1, bool p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,string,bool)", p0, p1, p2));
	}

	function log(bool p0, string memory p1, address p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,string,address)", p0, p1, p2));
	}

	function log(bool p0, bool p1, uint p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,bool,uint)", p0, p1, p2));
	}

	function log(bool p0, bool p1, string memory p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,bool,string)", p0, p1, p2));
	}

	function log(bool p0, bool p1, bool p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,bool,bool)", p0, p1, p2));
	}

	function log(bool p0, bool p1, address p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,bool,address)", p0, p1, p2));
	}

	function log(bool p0, address p1, uint p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,address,uint)", p0, p1, p2));
	}

	function log(bool p0, address p1, string memory p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,address,string)", p0, p1, p2));
	}

	function log(bool p0, address p1, bool p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,address,bool)", p0, p1, p2));
	}

	function log(bool p0, address p1, address p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,address,address)", p0, p1, p2));
	}

	function log(address p0, uint p1, uint p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,uint,uint)", p0, p1, p2));
	}

	function log(address p0, uint p1, string memory p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,uint,string)", p0, p1, p2));
	}

	function log(address p0, uint p1, bool p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,uint,bool)", p0, p1, p2));
	}

	function log(address p0, uint p1, address p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,uint,address)", p0, p1, p2));
	}

	function log(address p0, string memory p1, uint p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,string,uint)", p0, p1, p2));
	}

	function log(address p0, string memory p1, string memory p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,string,string)", p0, p1, p2));
	}

	function log(address p0, string memory p1, bool p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,string,bool)", p0, p1, p2));
	}

	function log(address p0, string memory p1, address p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,string,address)", p0, p1, p2));
	}

	function log(address p0, bool p1, uint p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,bool,uint)", p0, p1, p2));
	}

	function log(address p0, bool p1, string memory p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,bool,string)", p0, p1, p2));
	}

	function log(address p0, bool p1, bool p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,bool,bool)", p0, p1, p2));
	}

	function log(address p0, bool p1, address p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,bool,address)", p0, p1, p2));
	}

	function log(address p0, address p1, uint p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,address,uint)", p0, p1, p2));
	}

	function log(address p0, address p1, string memory p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,address,string)", p0, p1, p2));
	}

	function log(address p0, address p1, bool p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,address,bool)", p0, p1, p2));
	}

	function log(address p0, address p1, address p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,address,address)", p0, p1, p2));
	}

	function log(uint p0, uint p1, uint p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,uint,uint,uint)", p0, p1, p2, p3));
	}

	function log(uint p0, uint p1, uint p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,uint,uint,string)", p0, p1, p2, p3));
	}

	function log(uint p0, uint p1, uint p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,uint,uint,bool)", p0, p1, p2, p3));
	}

	function log(uint p0, uint p1, uint p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,uint,uint,address)", p0, p1, p2, p3));
	}

	function log(uint p0, uint p1, string memory p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,uint,string,uint)", p0, p1, p2, p3));
	}

	function log(uint p0, uint p1, string memory p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,uint,string,string)", p0, p1, p2, p3));
	}

	function log(uint p0, uint p1, string memory p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,uint,string,bool)", p0, p1, p2, p3));
	}

	function log(uint p0, uint p1, string memory p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,uint,string,address)", p0, p1, p2, p3));
	}

	function log(uint p0, uint p1, bool p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,uint,bool,uint)", p0, p1, p2, p3));
	}

	function log(uint p0, uint p1, bool p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,uint,bool,string)", p0, p1, p2, p3));
	}

	function log(uint p0, uint p1, bool p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,uint,bool,bool)", p0, p1, p2, p3));
	}

	function log(uint p0, uint p1, bool p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,uint,bool,address)", p0, p1, p2, p3));
	}

	function log(uint p0, uint p1, address p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,uint,address,uint)", p0, p1, p2, p3));
	}

	function log(uint p0, uint p1, address p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,uint,address,string)", p0, p1, p2, p3));
	}

	function log(uint p0, uint p1, address p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,uint,address,bool)", p0, p1, p2, p3));
	}

	function log(uint p0, uint p1, address p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,uint,address,address)", p0, p1, p2, p3));
	}

	function log(uint p0, string memory p1, uint p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,string,uint,uint)", p0, p1, p2, p3));
	}

	function log(uint p0, string memory p1, uint p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,string,uint,string)", p0, p1, p2, p3));
	}

	function log(uint p0, string memory p1, uint p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,string,uint,bool)", p0, p1, p2, p3));
	}

	function log(uint p0, string memory p1, uint p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,string,uint,address)", p0, p1, p2, p3));
	}

	function log(uint p0, string memory p1, string memory p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,string,string,uint)", p0, p1, p2, p3));
	}

	function log(uint p0, string memory p1, string memory p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,string,string,string)", p0, p1, p2, p3));
	}

	function log(uint p0, string memory p1, string memory p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,string,string,bool)", p0, p1, p2, p3));
	}

	function log(uint p0, string memory p1, string memory p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,string,string,address)", p0, p1, p2, p3));
	}

	function log(uint p0, string memory p1, bool p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,string,bool,uint)", p0, p1, p2, p3));
	}

	function log(uint p0, string memory p1, bool p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,string,bool,string)", p0, p1, p2, p3));
	}

	function log(uint p0, string memory p1, bool p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,string,bool,bool)", p0, p1, p2, p3));
	}

	function log(uint p0, string memory p1, bool p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,string,bool,address)", p0, p1, p2, p3));
	}

	function log(uint p0, string memory p1, address p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,string,address,uint)", p0, p1, p2, p3));
	}

	function log(uint p0, string memory p1, address p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,string,address,string)", p0, p1, p2, p3));
	}

	function log(uint p0, string memory p1, address p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,string,address,bool)", p0, p1, p2, p3));
	}

	function log(uint p0, string memory p1, address p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,string,address,address)", p0, p1, p2, p3));
	}

	function log(uint p0, bool p1, uint p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,bool,uint,uint)", p0, p1, p2, p3));
	}

	function log(uint p0, bool p1, uint p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,bool,uint,string)", p0, p1, p2, p3));
	}

	function log(uint p0, bool p1, uint p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,bool,uint,bool)", p0, p1, p2, p3));
	}

	function log(uint p0, bool p1, uint p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,bool,uint,address)", p0, p1, p2, p3));
	}

	function log(uint p0, bool p1, string memory p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,bool,string,uint)", p0, p1, p2, p3));
	}

	function log(uint p0, bool p1, string memory p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,bool,string,string)", p0, p1, p2, p3));
	}

	function log(uint p0, bool p1, string memory p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,bool,string,bool)", p0, p1, p2, p3));
	}

	function log(uint p0, bool p1, string memory p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,bool,string,address)", p0, p1, p2, p3));
	}

	function log(uint p0, bool p1, bool p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,bool,bool,uint)", p0, p1, p2, p3));
	}

	function log(uint p0, bool p1, bool p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,bool,bool,string)", p0, p1, p2, p3));
	}

	function log(uint p0, bool p1, bool p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,bool,bool,bool)", p0, p1, p2, p3));
	}

	function log(uint p0, bool p1, bool p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,bool,bool,address)", p0, p1, p2, p3));
	}

	function log(uint p0, bool p1, address p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,bool,address,uint)", p0, p1, p2, p3));
	}

	function log(uint p0, bool p1, address p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,bool,address,string)", p0, p1, p2, p3));
	}

	function log(uint p0, bool p1, address p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,bool,address,bool)", p0, p1, p2, p3));
	}

	function log(uint p0, bool p1, address p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,bool,address,address)", p0, p1, p2, p3));
	}

	function log(uint p0, address p1, uint p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,address,uint,uint)", p0, p1, p2, p3));
	}

	function log(uint p0, address p1, uint p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,address,uint,string)", p0, p1, p2, p3));
	}

	function log(uint p0, address p1, uint p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,address,uint,bool)", p0, p1, p2, p3));
	}

	function log(uint p0, address p1, uint p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,address,uint,address)", p0, p1, p2, p3));
	}

	function log(uint p0, address p1, string memory p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,address,string,uint)", p0, p1, p2, p3));
	}

	function log(uint p0, address p1, string memory p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,address,string,string)", p0, p1, p2, p3));
	}

	function log(uint p0, address p1, string memory p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,address,string,bool)", p0, p1, p2, p3));
	}

	function log(uint p0, address p1, string memory p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,address,string,address)", p0, p1, p2, p3));
	}

	function log(uint p0, address p1, bool p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,address,bool,uint)", p0, p1, p2, p3));
	}

	function log(uint p0, address p1, bool p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,address,bool,string)", p0, p1, p2, p3));
	}

	function log(uint p0, address p1, bool p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,address,bool,bool)", p0, p1, p2, p3));
	}

	function log(uint p0, address p1, bool p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,address,bool,address)", p0, p1, p2, p3));
	}

	function log(uint p0, address p1, address p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,address,address,uint)", p0, p1, p2, p3));
	}

	function log(uint p0, address p1, address p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,address,address,string)", p0, p1, p2, p3));
	}

	function log(uint p0, address p1, address p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,address,address,bool)", p0, p1, p2, p3));
	}

	function log(uint p0, address p1, address p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,address,address,address)", p0, p1, p2, p3));
	}

	function log(string memory p0, uint p1, uint p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,uint,uint,uint)", p0, p1, p2, p3));
	}

	function log(string memory p0, uint p1, uint p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,uint,uint,string)", p0, p1, p2, p3));
	}

	function log(string memory p0, uint p1, uint p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,uint,uint,bool)", p0, p1, p2, p3));
	}

	function log(string memory p0, uint p1, uint p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,uint,uint,address)", p0, p1, p2, p3));
	}

	function log(string memory p0, uint p1, string memory p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,uint,string,uint)", p0, p1, p2, p3));
	}

	function log(string memory p0, uint p1, string memory p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,uint,string,string)", p0, p1, p2, p3));
	}

	function log(string memory p0, uint p1, string memory p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,uint,string,bool)", p0, p1, p2, p3));
	}

	function log(string memory p0, uint p1, string memory p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,uint,string,address)", p0, p1, p2, p3));
	}

	function log(string memory p0, uint p1, bool p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,uint,bool,uint)", p0, p1, p2, p3));
	}

	function log(string memory p0, uint p1, bool p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,uint,bool,string)", p0, p1, p2, p3));
	}

	function log(string memory p0, uint p1, bool p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,uint,bool,bool)", p0, p1, p2, p3));
	}

	function log(string memory p0, uint p1, bool p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,uint,bool,address)", p0, p1, p2, p3));
	}

	function log(string memory p0, uint p1, address p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,uint,address,uint)", p0, p1, p2, p3));
	}

	function log(string memory p0, uint p1, address p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,uint,address,string)", p0, p1, p2, p3));
	}

	function log(string memory p0, uint p1, address p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,uint,address,bool)", p0, p1, p2, p3));
	}

	function log(string memory p0, uint p1, address p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,uint,address,address)", p0, p1, p2, p3));
	}

	function log(string memory p0, string memory p1, uint p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,string,uint,uint)", p0, p1, p2, p3));
	}

	function log(string memory p0, string memory p1, uint p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,string,uint,string)", p0, p1, p2, p3));
	}

	function log(string memory p0, string memory p1, uint p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,string,uint,bool)", p0, p1, p2, p3));
	}

	function log(string memory p0, string memory p1, uint p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,string,uint,address)", p0, p1, p2, p3));
	}

	function log(string memory p0, string memory p1, string memory p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,string,string,uint)", p0, p1, p2, p3));
	}

	function log(string memory p0, string memory p1, string memory p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,string,string,string)", p0, p1, p2, p3));
	}

	function log(string memory p0, string memory p1, string memory p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,string,string,bool)", p0, p1, p2, p3));
	}

	function log(string memory p0, string memory p1, string memory p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,string,string,address)", p0, p1, p2, p3));
	}

	function log(string memory p0, string memory p1, bool p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,string,bool,uint)", p0, p1, p2, p3));
	}

	function log(string memory p0, string memory p1, bool p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,string,bool,string)", p0, p1, p2, p3));
	}

	function log(string memory p0, string memory p1, bool p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,string,bool,bool)", p0, p1, p2, p3));
	}

	function log(string memory p0, string memory p1, bool p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,string,bool,address)", p0, p1, p2, p3));
	}

	function log(string memory p0, string memory p1, address p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,string,address,uint)", p0, p1, p2, p3));
	}

	function log(string memory p0, string memory p1, address p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,string,address,string)", p0, p1, p2, p3));
	}

	function log(string memory p0, string memory p1, address p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,string,address,bool)", p0, p1, p2, p3));
	}

	function log(string memory p0, string memory p1, address p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,string,address,address)", p0, p1, p2, p3));
	}

	function log(string memory p0, bool p1, uint p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,bool,uint,uint)", p0, p1, p2, p3));
	}

	function log(string memory p0, bool p1, uint p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,bool,uint,string)", p0, p1, p2, p3));
	}

	function log(string memory p0, bool p1, uint p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,bool,uint,bool)", p0, p1, p2, p3));
	}

	function log(string memory p0, bool p1, uint p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,bool,uint,address)", p0, p1, p2, p3));
	}

	function log(string memory p0, bool p1, string memory p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,bool,string,uint)", p0, p1, p2, p3));
	}

	function log(string memory p0, bool p1, string memory p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,bool,string,string)", p0, p1, p2, p3));
	}

	function log(string memory p0, bool p1, string memory p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,bool,string,bool)", p0, p1, p2, p3));
	}

	function log(string memory p0, bool p1, string memory p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,bool,string,address)", p0, p1, p2, p3));
	}

	function log(string memory p0, bool p1, bool p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,bool,bool,uint)", p0, p1, p2, p3));
	}

	function log(string memory p0, bool p1, bool p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,bool,bool,string)", p0, p1, p2, p3));
	}

	function log(string memory p0, bool p1, bool p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,bool,bool,bool)", p0, p1, p2, p3));
	}

	function log(string memory p0, bool p1, bool p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,bool,bool,address)", p0, p1, p2, p3));
	}

	function log(string memory p0, bool p1, address p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,bool,address,uint)", p0, p1, p2, p3));
	}

	function log(string memory p0, bool p1, address p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,bool,address,string)", p0, p1, p2, p3));
	}

	function log(string memory p0, bool p1, address p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,bool,address,bool)", p0, p1, p2, p3));
	}

	function log(string memory p0, bool p1, address p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,bool,address,address)", p0, p1, p2, p3));
	}

	function log(string memory p0, address p1, uint p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,address,uint,uint)", p0, p1, p2, p3));
	}

	function log(string memory p0, address p1, uint p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,address,uint,string)", p0, p1, p2, p3));
	}

	function log(string memory p0, address p1, uint p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,address,uint,bool)", p0, p1, p2, p3));
	}

	function log(string memory p0, address p1, uint p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,address,uint,address)", p0, p1, p2, p3));
	}

	function log(string memory p0, address p1, string memory p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,address,string,uint)", p0, p1, p2, p3));
	}

	function log(string memory p0, address p1, string memory p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,address,string,string)", p0, p1, p2, p3));
	}

	function log(string memory p0, address p1, string memory p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,address,string,bool)", p0, p1, p2, p3));
	}

	function log(string memory p0, address p1, string memory p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,address,string,address)", p0, p1, p2, p3));
	}

	function log(string memory p0, address p1, bool p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,address,bool,uint)", p0, p1, p2, p3));
	}

	function log(string memory p0, address p1, bool p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,address,bool,string)", p0, p1, p2, p3));
	}

	function log(string memory p0, address p1, bool p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,address,bool,bool)", p0, p1, p2, p3));
	}

	function log(string memory p0, address p1, bool p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,address,bool,address)", p0, p1, p2, p3));
	}

	function log(string memory p0, address p1, address p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,address,address,uint)", p0, p1, p2, p3));
	}

	function log(string memory p0, address p1, address p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,address,address,string)", p0, p1, p2, p3));
	}

	function log(string memory p0, address p1, address p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,address,address,bool)", p0, p1, p2, p3));
	}

	function log(string memory p0, address p1, address p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,address,address,address)", p0, p1, p2, p3));
	}

	function log(bool p0, uint p1, uint p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,uint,uint,uint)", p0, p1, p2, p3));
	}

	function log(bool p0, uint p1, uint p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,uint,uint,string)", p0, p1, p2, p3));
	}

	function log(bool p0, uint p1, uint p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,uint,uint,bool)", p0, p1, p2, p3));
	}

	function log(bool p0, uint p1, uint p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,uint,uint,address)", p0, p1, p2, p3));
	}

	function log(bool p0, uint p1, string memory p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,uint,string,uint)", p0, p1, p2, p3));
	}

	function log(bool p0, uint p1, string memory p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,uint,string,string)", p0, p1, p2, p3));
	}

	function log(bool p0, uint p1, string memory p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,uint,string,bool)", p0, p1, p2, p3));
	}

	function log(bool p0, uint p1, string memory p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,uint,string,address)", p0, p1, p2, p3));
	}

	function log(bool p0, uint p1, bool p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,uint,bool,uint)", p0, p1, p2, p3));
	}

	function log(bool p0, uint p1, bool p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,uint,bool,string)", p0, p1, p2, p3));
	}

	function log(bool p0, uint p1, bool p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,uint,bool,bool)", p0, p1, p2, p3));
	}

	function log(bool p0, uint p1, bool p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,uint,bool,address)", p0, p1, p2, p3));
	}

	function log(bool p0, uint p1, address p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,uint,address,uint)", p0, p1, p2, p3));
	}

	function log(bool p0, uint p1, address p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,uint,address,string)", p0, p1, p2, p3));
	}

	function log(bool p0, uint p1, address p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,uint,address,bool)", p0, p1, p2, p3));
	}

	function log(bool p0, uint p1, address p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,uint,address,address)", p0, p1, p2, p3));
	}

	function log(bool p0, string memory p1, uint p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,string,uint,uint)", p0, p1, p2, p3));
	}

	function log(bool p0, string memory p1, uint p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,string,uint,string)", p0, p1, p2, p3));
	}

	function log(bool p0, string memory p1, uint p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,string,uint,bool)", p0, p1, p2, p3));
	}

	function log(bool p0, string memory p1, uint p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,string,uint,address)", p0, p1, p2, p3));
	}

	function log(bool p0, string memory p1, string memory p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,string,string,uint)", p0, p1, p2, p3));
	}

	function log(bool p0, string memory p1, string memory p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,string,string,string)", p0, p1, p2, p3));
	}

	function log(bool p0, string memory p1, string memory p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,string,string,bool)", p0, p1, p2, p3));
	}

	function log(bool p0, string memory p1, string memory p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,string,string,address)", p0, p1, p2, p3));
	}

	function log(bool p0, string memory p1, bool p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,string,bool,uint)", p0, p1, p2, p3));
	}

	function log(bool p0, string memory p1, bool p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,string,bool,string)", p0, p1, p2, p3));
	}

	function log(bool p0, string memory p1, bool p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,string,bool,bool)", p0, p1, p2, p3));
	}

	function log(bool p0, string memory p1, bool p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,string,bool,address)", p0, p1, p2, p3));
	}

	function log(bool p0, string memory p1, address p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,string,address,uint)", p0, p1, p2, p3));
	}

	function log(bool p0, string memory p1, address p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,string,address,string)", p0, p1, p2, p3));
	}

	function log(bool p0, string memory p1, address p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,string,address,bool)", p0, p1, p2, p3));
	}

	function log(bool p0, string memory p1, address p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,string,address,address)", p0, p1, p2, p3));
	}

	function log(bool p0, bool p1, uint p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,bool,uint,uint)", p0, p1, p2, p3));
	}

	function log(bool p0, bool p1, uint p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,bool,uint,string)", p0, p1, p2, p3));
	}

	function log(bool p0, bool p1, uint p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,bool,uint,bool)", p0, p1, p2, p3));
	}

	function log(bool p0, bool p1, uint p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,bool,uint,address)", p0, p1, p2, p3));
	}

	function log(bool p0, bool p1, string memory p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,bool,string,uint)", p0, p1, p2, p3));
	}

	function log(bool p0, bool p1, string memory p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,bool,string,string)", p0, p1, p2, p3));
	}

	function log(bool p0, bool p1, string memory p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,bool,string,bool)", p0, p1, p2, p3));
	}

	function log(bool p0, bool p1, string memory p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,bool,string,address)", p0, p1, p2, p3));
	}

	function log(bool p0, bool p1, bool p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,bool,bool,uint)", p0, p1, p2, p3));
	}

	function log(bool p0, bool p1, bool p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,bool,bool,string)", p0, p1, p2, p3));
	}

	function log(bool p0, bool p1, bool p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,bool,bool,bool)", p0, p1, p2, p3));
	}

	function log(bool p0, bool p1, bool p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,bool,bool,address)", p0, p1, p2, p3));
	}

	function log(bool p0, bool p1, address p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,bool,address,uint)", p0, p1, p2, p3));
	}

	function log(bool p0, bool p1, address p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,bool,address,string)", p0, p1, p2, p3));
	}

	function log(bool p0, bool p1, address p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,bool,address,bool)", p0, p1, p2, p3));
	}

	function log(bool p0, bool p1, address p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,bool,address,address)", p0, p1, p2, p3));
	}

	function log(bool p0, address p1, uint p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,address,uint,uint)", p0, p1, p2, p3));
	}

	function log(bool p0, address p1, uint p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,address,uint,string)", p0, p1, p2, p3));
	}

	function log(bool p0, address p1, uint p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,address,uint,bool)", p0, p1, p2, p3));
	}

	function log(bool p0, address p1, uint p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,address,uint,address)", p0, p1, p2, p3));
	}

	function log(bool p0, address p1, string memory p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,address,string,uint)", p0, p1, p2, p3));
	}

	function log(bool p0, address p1, string memory p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,address,string,string)", p0, p1, p2, p3));
	}

	function log(bool p0, address p1, string memory p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,address,string,bool)", p0, p1, p2, p3));
	}

	function log(bool p0, address p1, string memory p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,address,string,address)", p0, p1, p2, p3));
	}

	function log(bool p0, address p1, bool p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,address,bool,uint)", p0, p1, p2, p3));
	}

	function log(bool p0, address p1, bool p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,address,bool,string)", p0, p1, p2, p3));
	}

	function log(bool p0, address p1, bool p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,address,bool,bool)", p0, p1, p2, p3));
	}

	function log(bool p0, address p1, bool p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,address,bool,address)", p0, p1, p2, p3));
	}

	function log(bool p0, address p1, address p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,address,address,uint)", p0, p1, p2, p3));
	}

	function log(bool p0, address p1, address p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,address,address,string)", p0, p1, p2, p3));
	}

	function log(bool p0, address p1, address p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,address,address,bool)", p0, p1, p2, p3));
	}

	function log(bool p0, address p1, address p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,address,address,address)", p0, p1, p2, p3));
	}

	function log(address p0, uint p1, uint p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,uint,uint,uint)", p0, p1, p2, p3));
	}

	function log(address p0, uint p1, uint p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,uint,uint,string)", p0, p1, p2, p3));
	}

	function log(address p0, uint p1, uint p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,uint,uint,bool)", p0, p1, p2, p3));
	}

	function log(address p0, uint p1, uint p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,uint,uint,address)", p0, p1, p2, p3));
	}

	function log(address p0, uint p1, string memory p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,uint,string,uint)", p0, p1, p2, p3));
	}

	function log(address p0, uint p1, string memory p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,uint,string,string)", p0, p1, p2, p3));
	}

	function log(address p0, uint p1, string memory p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,uint,string,bool)", p0, p1, p2, p3));
	}

	function log(address p0, uint p1, string memory p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,uint,string,address)", p0, p1, p2, p3));
	}

	function log(address p0, uint p1, bool p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,uint,bool,uint)", p0, p1, p2, p3));
	}

	function log(address p0, uint p1, bool p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,uint,bool,string)", p0, p1, p2, p3));
	}

	function log(address p0, uint p1, bool p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,uint,bool,bool)", p0, p1, p2, p3));
	}

	function log(address p0, uint p1, bool p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,uint,bool,address)", p0, p1, p2, p3));
	}

	function log(address p0, uint p1, address p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,uint,address,uint)", p0, p1, p2, p3));
	}

	function log(address p0, uint p1, address p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,uint,address,string)", p0, p1, p2, p3));
	}

	function log(address p0, uint p1, address p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,uint,address,bool)", p0, p1, p2, p3));
	}

	function log(address p0, uint p1, address p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,uint,address,address)", p0, p1, p2, p3));
	}

	function log(address p0, string memory p1, uint p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,string,uint,uint)", p0, p1, p2, p3));
	}

	function log(address p0, string memory p1, uint p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,string,uint,string)", p0, p1, p2, p3));
	}

	function log(address p0, string memory p1, uint p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,string,uint,bool)", p0, p1, p2, p3));
	}

	function log(address p0, string memory p1, uint p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,string,uint,address)", p0, p1, p2, p3));
	}

	function log(address p0, string memory p1, string memory p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,string,string,uint)", p0, p1, p2, p3));
	}

	function log(address p0, string memory p1, string memory p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,string,string,string)", p0, p1, p2, p3));
	}

	function log(address p0, string memory p1, string memory p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,string,string,bool)", p0, p1, p2, p3));
	}

	function log(address p0, string memory p1, string memory p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,string,string,address)", p0, p1, p2, p3));
	}

	function log(address p0, string memory p1, bool p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,string,bool,uint)", p0, p1, p2, p3));
	}

	function log(address p0, string memory p1, bool p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,string,bool,string)", p0, p1, p2, p3));
	}

	function log(address p0, string memory p1, bool p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,string,bool,bool)", p0, p1, p2, p3));
	}

	function log(address p0, string memory p1, bool p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,string,bool,address)", p0, p1, p2, p3));
	}

	function log(address p0, string memory p1, address p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,string,address,uint)", p0, p1, p2, p3));
	}

	function log(address p0, string memory p1, address p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,string,address,string)", p0, p1, p2, p3));
	}

	function log(address p0, string memory p1, address p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,string,address,bool)", p0, p1, p2, p3));
	}

	function log(address p0, string memory p1, address p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,string,address,address)", p0, p1, p2, p3));
	}

	function log(address p0, bool p1, uint p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,bool,uint,uint)", p0, p1, p2, p3));
	}

	function log(address p0, bool p1, uint p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,bool,uint,string)", p0, p1, p2, p3));
	}

	function log(address p0, bool p1, uint p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,bool,uint,bool)", p0, p1, p2, p3));
	}

	function log(address p0, bool p1, uint p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,bool,uint,address)", p0, p1, p2, p3));
	}

	function log(address p0, bool p1, string memory p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,bool,string,uint)", p0, p1, p2, p3));
	}

	function log(address p0, bool p1, string memory p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,bool,string,string)", p0, p1, p2, p3));
	}

	function log(address p0, bool p1, string memory p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,bool,string,bool)", p0, p1, p2, p3));
	}

	function log(address p0, bool p1, string memory p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,bool,string,address)", p0, p1, p2, p3));
	}

	function log(address p0, bool p1, bool p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,bool,bool,uint)", p0, p1, p2, p3));
	}

	function log(address p0, bool p1, bool p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,bool,bool,string)", p0, p1, p2, p3));
	}

	function log(address p0, bool p1, bool p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,bool,bool,bool)", p0, p1, p2, p3));
	}

	function log(address p0, bool p1, bool p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,bool,bool,address)", p0, p1, p2, p3));
	}

	function log(address p0, bool p1, address p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,bool,address,uint)", p0, p1, p2, p3));
	}

	function log(address p0, bool p1, address p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,bool,address,string)", p0, p1, p2, p3));
	}

	function log(address p0, bool p1, address p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,bool,address,bool)", p0, p1, p2, p3));
	}

	function log(address p0, bool p1, address p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,bool,address,address)", p0, p1, p2, p3));
	}

	function log(address p0, address p1, uint p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,address,uint,uint)", p0, p1, p2, p3));
	}

	function log(address p0, address p1, uint p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,address,uint,string)", p0, p1, p2, p3));
	}

	function log(address p0, address p1, uint p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,address,uint,bool)", p0, p1, p2, p3));
	}

	function log(address p0, address p1, uint p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,address,uint,address)", p0, p1, p2, p3));
	}

	function log(address p0, address p1, string memory p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,address,string,uint)", p0, p1, p2, p3));
	}

	function log(address p0, address p1, string memory p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,address,string,string)", p0, p1, p2, p3));
	}

	function log(address p0, address p1, string memory p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,address,string,bool)", p0, p1, p2, p3));
	}

	function log(address p0, address p1, string memory p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,address,string,address)", p0, p1, p2, p3));
	}

	function log(address p0, address p1, bool p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,address,bool,uint)", p0, p1, p2, p3));
	}

	function log(address p0, address p1, bool p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,address,bool,string)", p0, p1, p2, p3));
	}

	function log(address p0, address p1, bool p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,address,bool,bool)", p0, p1, p2, p3));
	}

	function log(address p0, address p1, bool p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,address,bool,address)", p0, p1, p2, p3));
	}

	function log(address p0, address p1, address p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,address,address,uint)", p0, p1, p2, p3));
	}

	function log(address p0, address p1, address p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,address,address,string)", p0, p1, p2, p3));
	}

	function log(address p0, address p1, address p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,address,address,bool)", p0, p1, p2, p3));
	}

	function log(address p0, address p1, address p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,address,address,address)", p0, p1, p2, p3));
	}

}

File 11 of 22 : IERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (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 12 of 22 : IERC721Receiver.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (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 13 of 22 : IERC721Metadata.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (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 14 of 22 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol)

pragma solidity ^0.8.1;

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

        return account.code.length > 0;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

pragma solidity ^0.8.0;

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

    /**
     * @dev Converts a `uint256` to its ASCII `string` decimal representation.
     */
    function toString(uint256 value) internal pure returns (string memory) {
        // Inspired by OraclizeAPI's implementation - MIT licence
        // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol

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

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

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.
     */
    function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {
        bytes memory buffer = new bytes(2 * length + 2);
        buffer[0] = "0";
        buffer[1] = "x";
        for (uint256 i = 2 * length + 1; i > 1; --i) {
            buffer[i] = _HEX_SYMBOLS[value & 0xf];
            value >>= 4;
        }
        require(value == 0, "Strings: hex length insufficient");
        return string(buffer);
    }
}

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

pragma solidity ^0.8.0;

import "./IERC165.sol";

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

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

pragma solidity ^0.8.0;

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

File 19 of 22 : IERC2981.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (interfaces/IERC2981.sol)

pragma solidity ^0.8.0;

import "./IERC165.sol";

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

File 20 of 22 : IERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (interfaces/IERC165.sol)

pragma solidity ^0.8.0;

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

File 21 of 22 : SafeERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (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 22 of 22 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.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 `to`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address to, uint256 amount) external returns (bool);

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

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

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

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

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"_contractURI","type":"string"},{"internalType":"string","name":"baseURI","type":"string"},{"internalType":"address","name":"_myraiCrystalAddr","type":"address"},{"internalType":"address[]","name":"_payees","type":"address[]"},{"internalType":"uint256[]","name":"_shares","type":"uint256[]"},{"internalType":"address","name":"_admin","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"ApprovalToCurrentOwner","type":"error"},{"inputs":[],"name":"ApproveToCaller","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"InvalidQueryRange","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"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":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"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"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"addr","type":"address"},{"indexed":false,"internalType":"uint256","name":"qty","type":"uint256"}],"name":"publicMintEvent","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"addr","type":"address"},{"indexed":false,"internalType":"uint256","name":"qty","type":"uint256"}],"name":"t1MintEvent","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"addr","type":"address"},{"indexed":false,"internalType":"uint256","name":"qty","type":"uint256"}],"name":"t2MintEvent","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"addr","type":"address"}],"name":"t3MintEvent","type":"event"},{"inputs":[],"name":"admin","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"adminMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"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":[],"name":"baseURIAddress","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"burnYourTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"contractURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"explicitOwnershipOf","outputs":[{"components":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"uint64","name":"startTimestamp","type":"uint64"},{"internalType":"bool","name":"burned","type":"bool"}],"internalType":"struct ERC721A.TokenOwnership","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"explicitOwnershipsOf","outputs":[{"components":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"uint64","name":"startTimestamp","type":"uint64"},{"internalType":"bool","name":"burned","type":"bool"}],"internalType":"struct ERC721A.TokenOwnership[]","name":"","type":"tuple[]"}],"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":"getPhaseOnePresaleActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getPhaseTwoPresaleActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getPublicSaleActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getT1PresaleMerkleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getT2PresaleMerkleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getT3PresaleMerkleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getTotalMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":"address","name":"_address","type":"address"},{"internalType":"bytes32[]","name":"merkleProof","type":"bytes32[]"}],"name":"isPartOfT1Whitelist","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"},{"internalType":"bytes32[]","name":"merkleProof","type":"bytes32[]"}],"name":"isPartOfT2Whitelist","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"},{"internalType":"bytes32[]","name":"merkleProof","type":"bytes32[]"}],"name":"isPartOfT3Whitelist","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isRevealed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxMintsPerWalletForPublic","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxMintsPerWalletForT1Presale","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxMintsPerWalletForT2Presale","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxMintsPerWalletForT3Presale","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxTokens","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxTokensForPhaseOne","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mintReservedTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"myraiCrystalAddr","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"paused","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":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"payees","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"quantity","type":"uint256"},{"internalType":"bytes32[]","name":"merkleProof","type":"bytes32[]"}],"name":"phaseOneMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"bytes32[]","name":"merkleProof","type":"bytes32[]"}],"name":"phaseTwoMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"price","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"publicMint","outputs":[],"stateMutability":"payable","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":"address","name":"account","type":"address"}],"name":"releaseFunds","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":[],"name":"reservedTokensAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"uint256","name":"_salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"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":[{"internalType":"address","name":"_admin","type":"address"}],"name":"setAdmin","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":"_baseURIAddress","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_contractURI","type":"string"}],"name":"setContractURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"revealed","type":"bool"},{"internalType":"string","name":"_baseURIAddress","type":"string"}],"name":"setIsRevealed","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"setMaxMintsPerWalletForPublic","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"setMaxMintsPerWalletForT1Presale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"setMaxMintsPerWalletForT2Presale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"setMaxMintsPerWalletForT3Presale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"setMaxTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_myraiCrystalAddr","type":"address"}],"name":"setMyraiCrystalAddr","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"setPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_reservedTokensAmount","type":"uint256"}],"name":"setReservedTokensAmount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"},{"internalType":"uint96","name":"royaltyFee","type":"uint96"}],"name":"setRoyalty","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"merkleRoot","type":"bytes32"}],"name":"setT1PresaleMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"merkleRoot","type":"bytes32"}],"name":"setT2PresaleMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"merkleRoot","type":"bytes32"}],"name":"setT3PresaleMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"setmaxTokensForPhaseOne","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_maxTokens","type":"uint256"},{"internalType":"uint256","name":"_maxTokensForPhaseOne","type":"uint256"},{"internalType":"uint256","name":"_reservedTokensAmount","type":"uint256"},{"internalType":"bytes32","name":"t1PresaleMerkleRoot","type":"bytes32"},{"internalType":"bytes32","name":"t2PresaleMerkleRoot","type":"bytes32"},{"internalType":"bytes32","name":"t3PresaleMerkleRoot","type":"bytes32"}],"name":"setup","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"shares","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","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":[],"name":"togglePause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"togglePhaseOnePresaleActive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"togglePhaseTwoPresaleActive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"togglePublicSaleActive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"tokensOfOwner","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"start","type":"uint256"},{"internalType":"uint256","name":"stop","type":"uint256"}],"name":"tokensOfOwnerIn","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"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"},{"stateMutability":"payable","type":"receive"}]

608060405266d529ae9e860000601755600160185560016019556002601a556001601b5560016025553480156200003557600080fd5b5060405162005eff38038062005eff8339810160408190526200005891620008ff565b604080518082018252601381527f4d797261694b6f686f436f6c6c656374696f6e000000000000000000000000006020808301918252835180850190945260048452634b4f484f60e01b90840152815186938693929091620000bd9160029162000632565b508051620000d390600390602084019062000632565b50506000805550620000e533620002f1565b600a805460ff60a01b191690558051825114620001645760405162461bcd60e51b815260206004820152603260248201527f5061796d656e7453706c69747465723a2070617965657320616e6420736861726044820152710cae640d8cadccee8d040dad2e6dac2e8c6d60731b60648201526084015b60405180910390fd5b6000825111620001b75760405162461bcd60e51b815260206004820152601a60248201527f5061796d656e7453706c69747465723a206e6f2070617965657300000000000060448201526064016200015b565b60005b82518110156200023b5762000226838281518110620001e957634e487b7160e01b600052603260045260246000fd5b60200260200101518383815181106200021257634e487b7160e01b600052603260045260246000fd5b60200260200101516200034360201b60201c565b80620002328162000a88565b915050620001ba565b50505062000252816101f46200053160201b60201c565b85516200026790601290602089019062000632565b5084516200027d90601690602088019062000632565b50601580546001600160a01b0319166001600160a01b0386161790558251620002ae90601e906020860190620006c1565b508151620002c490601f90602085019062000719565b50602080546001600160a01b0319166001600160a01b03929092169190911790555062000ad29350505050565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b038216620003b05760405162461bcd60e51b815260206004820152602c60248201527f5061796d656e7453706c69747465723a206163636f756e74206973207468652060448201526b7a65726f206164647265737360a01b60648201526084016200015b565b60008111620004025760405162461bcd60e51b815260206004820152601d60248201527f5061796d656e7453706c69747465723a2073686172657320617265203000000060448201526064016200015b565b6001600160a01b0382166000908152600d6020526040902054156200047e5760405162461bcd60e51b815260206004820152602b60248201527f5061796d656e7453706c69747465723a206163636f756e7420616c726561647960448201526a206861732073686172657360a81b60648201526084016200015b565b600f8054600181019091557f8d1108e10bcb7c27dddfc02ed9d693a074039d026cf4ea4240b40f7d581ac8020180546001600160a01b0319166001600160a01b0384169081179091556000908152600d60205260409020819055600b54620004e890829062000a30565b600b55604080516001600160a01b0384168152602081018390527f40c340f65e17194d14ddddb073d3c9f888e3cb52b5aae0c6c7706b4fbc905fac910160405180910390a15050565b6127106001600160601b0382161115620005a15760405162461bcd60e51b815260206004820152602a60248201527f455243323938313a20726f79616c7479206665652077696c6c206578636565646044820152692073616c65507269636560b01b60648201526084016200015b565b6001600160a01b038216620005f95760405162461bcd60e51b815260206004820152601960248201527f455243323938313a20696e76616c69642072656365697665720000000000000060448201526064016200015b565b604080518082019091526001600160a01b039092168083526001600160601b039091166020909201829052600160a01b90910217600855565b828054620006409062000a4b565b90600052602060002090601f016020900481019282620006645760008555620006af565b82601f106200067f57805160ff1916838001178555620006af565b82800160010185558215620006af579182015b82811115620006af57825182559160200191906001019062000692565b50620006bd92915062000756565b5090565b828054828255906000526020600020908101928215620006af579160200282015b82811115620006af57825182546001600160a01b0319166001600160a01b03909116178255602090920191600190910190620006e2565b828054828255906000526020600020908101928215620006af5791602002820182811115620006af57825182559160200191906001019062000692565b5b80821115620006bd576000815560010162000757565b80516001600160a01b03811681146200078557600080fd5b919050565b600082601f8301126200079b578081fd5b81516020620007b4620007ae8362000a0a565b620009d7565b80838252828201915082860187848660051b8901011115620007d4578586fd5b855b85811015620007fd57620007ea826200076d565b84529284019290840190600101620007d6565b5090979650505050505050565b600082601f8301126200081b578081fd5b815160206200082e620007ae8362000a0a565b80838252828201915082860187848660051b89010111156200084e578586fd5b855b85811015620007fd5781518452928401929084019060010162000850565b600082601f8301126200087f578081fd5b81516001600160401b038111156200089b576200089b62000abc565b6020620008b1601f8301601f19168201620009d7565b8281528582848701011115620008c5578384fd5b835b83811015620008e4578581018301518282018401528201620008c7565b83811115620008f557848385840101525b5095945050505050565b60008060008060008060c0878903121562000918578182fd5b86516001600160401b03808211156200092f578384fd5b6200093d8a838b016200086e565b9750602089015191508082111562000953578384fd5b620009618a838b016200086e565b96506200097160408a016200076d565b9550606089015191508082111562000987578384fd5b620009958a838b016200078a565b94506080890151915080821115620009ab578384fd5b50620009ba89828a016200080a565b925050620009cb60a088016200076d565b90509295509295509295565b604051601f8201601f191681016001600160401b038111828210171562000a025762000a0262000abc565b604052919050565b60006001600160401b0382111562000a265762000a2662000abc565b5060051b60200190565b6000821982111562000a465762000a4662000aa6565b500190565b600181811c9082168062000a6057607f821691505b6020821081141562000a8257634e487b7160e01b600052602260045260246000fd5b50919050565b600060001982141562000a9f5762000a9f62000aa6565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fd5b61541d8062000ae26000396000f3fe6080604052600436106105b95760003560e01c806370a08231116102eb578063b970d0f81161018f578063e046394e116100e1578063e8a3d48511610095578063f2fde38b1161006f578063f2fde38b1461103d578063f851a4401461105d578063fd8d9e391461107d57600080fd5b8063e8a3d48514610fca578063e985e9c514610fdf578063f210b5651461102857600080fd5b8063e471f7d5116100c6578063e471f7d514610f7f578063e5d69f3014610f94578063e831574214610fb457600080fd5b8063e046394e14610f54578063e33b7de314610f6a57600080fd5b8063cafdd18111610143578063d19d97d91161011d578063d19d97d914610ede578063d79779b214610efe578063e00d431b14610f3457600080fd5b8063cafdd18114610e73578063cb2070ef14610e88578063ce7c2ac214610ea857600080fd5b8063c23dc68f11610174578063c23dc68f14610e11578063c4ae316814610e3e578063c87b56dd14610e5357600080fd5b8063b970d0f814610dd1578063c1f2612314610df157600080fd5b80639498d7eb11610248578063a12a23cf116101fc578063b2cf9005116101d6578063b2cf900514610d71578063b6f1321514610d91578063b88d4fde14610db157600080fd5b8063a12a23cf14610d11578063a22cb46514610d31578063a9a01b2d14610d5157600080fd5b80639852595c1161022d5780639852595c14610ca557806399a2557a14610cdb578063a035b1fe14610cfb57600080fd5b80639498d7eb14610c7057806395d89b4114610c9057600080fd5b80638b83209b1161029f5780638f2fc60b116102845780638f2fc60b14610c1057806391b7f5ed14610c30578063938e3d7b14610c5057600080fd5b80638b83209b14610bd25780638da5cb5b14610bf257600080fd5b8063780e3631116102d0578063780e363114610b7b5780637ef7271614610b905780638462151c14610ba557600080fd5b806370a0823114610b46578063715018a614610b6657600080fd5b806334f646da1161045d57806355f804b3116103af5780635da0f690116103635780636352211e1161033d5780636352211e14610af3578063654198f914610b13578063704b6c0214610b2657600080fd5b80635da0f69014610a9d578063612ddd5714610ab357806363037b0c14610ad357600080fd5b806357df6ab71161039457806357df6ab714610a3b5780635bbb217714610a515780635c975abb14610a7e57600080fd5b806355f804b3146109fb57806357a858fc14610a1b57600080fd5b8063406072a9116104115780634c8b0223116103eb5780634c8b0223146109b75780634dcd2dd1146109cc57806354214f69146109e157600080fd5b8063406072a91461093157806342842e0e1461097757806348b750441461099757600080fd5b80633a98ef39116104425780633a98ef39146108f25780633be07334146109075780633eefe2391461091c57600080fd5b806334f646da146108b2578063373b5918146108d257600080fd5b806319165587116105165780632743dc75116104ca5780632a55205a116104a45780632a55205a1461084a5780632db11544146108895780632ff515491461089c57600080fd5b80632743dc75146107f457806327b99c3b1461080a5780632a17dfb61461082a57600080fd5b80631f1de681116104fb5780631f1de6811461079457806323b872dd146107b4578063253ab971146107d457600080fd5b80631916558714610754578063192e7a7b1461077457600080fd5b80630bc82ba31161056d5780630ca1c5c9116105525780630ca1c5c91461070657806311e776fe1461071b57806318160ddd1461073b57600080fd5b80630bc82ba3146106dc5780630c894cfe146106f157600080fd5b806306fdde031161059e57806306fdde0314610660578063081812fc14610682578063095ea7b3146106ba57600080fd5b806301ffc9a71461060757806303f8301a1461063c57600080fd5b36610602577f6ef95f06320e7a25a04a175ca677b7052bdd97131872c2192525a629f51be77033604080516001600160a01b0390921682523460208301520160405180910390a1005b600080fd5b34801561061357600080fd5b50610627610622366004614ec6565b611090565b60405190151581526020015b60405180910390f35b34801561064857600080fd5b5061065260195481565b604051908152602001610633565b34801561066c57600080fd5b506106756110f1565b60405161063391906151da565b34801561068e57600080fd5b506106a261069d366004614eae565b611183565b6040516001600160a01b039091168152602001610633565b3480156106c657600080fd5b506106da6106d5366004614cc0565b6111e0565b005b3480156106e857600080fd5b506106526112a0565b3480156106fd57600080fd5b506106da6112f7565b34801561071257600080fd5b50600054610652565b34801561072757600080fd5b506106da610736366004614eae565b611395565b34801561074757600080fd5b5060015460005403610652565b34801561076057600080fd5b506106da61076f366004614b2f565b6113e2565b34801561078057600080fd5b506106da61078f366004614b2f565b611594565b3480156107a057600080fd5b506106276107af366004614c40565b6115a0565b3480156107c057600080fd5b506106da6107cf366004614b83565b611628565b3480156107e057600080fd5b506106da6107ef366004614eae565b611633565b34801561080057600080fd5b5061065260185481565b34801561081657600080fd5b506106da610825366004614eae565b611680565b34801561083657600080fd5b506015546106a2906001600160a01b031681565b34801561085657600080fd5b5061086a610865366004614ff9565b6116cd565b604080516001600160a01b039093168352602083019190915201610633565b6106da610897366004614eae565b61178a565b3480156108a857600080fd5b50610652601c5481565b3480156108be57600080fd5b506106da6108cd366004614b2f565b611944565b3480156108de57600080fd5b506106276108ed366004614c40565b6119bb565b3480156108fe57600080fd5b50600b54610652565b34801561091357600080fd5b50610652611a38565b34801561092857600080fd5b506106da611a8a565b34801561093d57600080fd5b5061065261094c366004614efe565b6001600160a01b03918216600090815260116020908152604080832093909416825291909152205490565b34801561098357600080fd5b506106da610992366004614b83565b611aeb565b3480156109a357600080fd5b506106da6109b2366004614efe565b611b06565b3480156109c357600080fd5b50610627611d71565b3480156109d857600080fd5b506106da611d7b565b3480156109ed57600080fd5b50601d546106279060ff1681565b348015610a0757600080fd5b506106da610a16366004614f7d565b611e13565b348015610a2757600080fd5b50610652610a36366004614eae565b611e72565b348015610a4757600080fd5b5061065260145481565b348015610a5d57600080fd5b50610a71610a6c366004614d9c565b611e93565b6040516106339190615137565b348015610a8a57600080fd5b50600a54600160a01b900460ff16610627565b348015610aa957600080fd5b50610652601a5481565b348015610abf57600080fd5b50610627610ace366004614c40565b611f84565b348015610adf57600080fd5b506106a2610aee366004614eae565b612001565b348015610aff57600080fd5b506106a2610b0e366004614eae565b61202b565b6106da610b21366004614d5c565b61203d565b348015610b3257600080fd5b506106da610b41366004614b2f565b6122a8565b348015610b5257600080fd5b50610652610b61366004614b2f565b61231f565b348015610b7257600080fd5b506106da612387565b348015610b8757600080fd5b506106da6123d9565b348015610b9c57600080fd5b5061062761246a565b348015610bb157600080fd5b50610bc5610bc0366004614b2f565b612474565b60405161063391906151a2565b348015610bde57600080fd5b506106a2610bed366004614eae565b6125d7565b348015610bfe57600080fd5b50600a546001600160a01b03166106a2565b348015610c1c57600080fd5b506106da610c2b366004614d1f565b612615565b348015610c3c57600080fd5b506106da610c4b366004614eae565b612667565b348015610c5c57600080fd5b506106da610c6b366004614f10565b6126b4565b348015610c7c57600080fd5b506106da610c8b366004614e60565b612708565b348015610c9c57600080fd5b50610675612771565b348015610cb157600080fd5b50610652610cc0366004614b2f565b6001600160a01b03166000908152600e602052604090205490565b348015610ce757600080fd5b50610bc5610cf6366004614ceb565b612780565b348015610d0757600080fd5b5061065260175481565b348015610d1d57600080fd5b506106da610d2c366004614eae565b61296d565b348015610d3d57600080fd5b506106da610d4c366004614c93565b6129ba565b348015610d5d57600080fd5b506106da610d6c366004614eae565b612a69565b348015610d7d57600080fd5b506106da610d8c366004614eae565b612ab6565b348015610d9d57600080fd5b506106da610dac366004614eae565b612b03565b348015610dbd57600080fd5b506106da610dcc366004614bc3565b612b50565b348015610ddd57600080fd5b506106da610dec366004614eae565b612ba1565b348015610dfd57600080fd5b506106da610e0c366004614eae565b612bfc565b348015610e1d57600080fd5b50610e31610e2c366004614eae565b612c4e565b60405161063391906151ed565b348015610e4a57600080fd5b506106da612cfd565b348015610e5f57600080fd5b50610675610e6e366004614eae565b612d67565b348015610e7f57600080fd5b50610652612dbf565b348015610e9457600080fd5b506106da610ea3366004614eae565b612e11565b348015610eb457600080fd5b50610652610ec3366004614b2f565b6001600160a01b03166000908152600d602052604090205490565b348015610eea57600080fd5b506106da610ef9366004614d9c565b612e5e565b348015610f0a57600080fd5b50610652610f19366004614b2f565b6001600160a01b031660009081526010602052604090205490565b348015610f4057600080fd5b506106da610f4f36600461501a565b612eab565b348015610f6057600080fd5b50610652601b5481565b348015610f7657600080fd5b50600c54610652565b348015610f8b57600080fd5b50610627612f13565b348015610fa057600080fd5b506106da610faf366004614eae565b612f1d565b348015610fc057600080fd5b5061065260135481565b348015610fd657600080fd5b50610675612f6a565b348015610feb57600080fd5b50610627610ffa366004614b4b565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b34801561103457600080fd5b50610675612ff8565b34801561104957600080fd5b506106da611058366004614b2f565b613005565b34801561106957600080fd5b506020546106a2906001600160a01b031681565b6106da61108b366004614fc8565b6130d2565b60006001600160e01b031982166380ac58cd60e01b14806110c157506001600160e01b03198216635b5e139f60e01b145b806110dc57506001600160e01b0319821663152a902d60e11b145b806110eb57506110eb82613382565b92915050565b606060028054611100906152e2565b80601f016020809104026020016040519081016040528092919081815260200182805461112c906152e2565b80156111795780601f1061114e57610100808354040283529160200191611179565b820191906000526020600020905b81548152906001019060200180831161115c57829003601f168201915b5050505050905090565b600061118e826133a7565b6111c4576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b60006111eb8261202b565b9050806001600160a01b0316836001600160a01b03161415611239576040517f943f7b8c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b336001600160a01b0382161480159061125957506112578133610ffa565b155b15611290576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61129b8383836133d2565b505050565b600a546000906001600160a01b031633146112f05760405162461bcd60e51b815260206004820181905260248201526000805160206153c883398151915260448201526064015b60405180910390fd5b5060235490565b600a546001600160a01b0316331461133f5760405162461bcd60e51b815260206004820181905260248201526000805160206153c883398151915260448201526064016112e7565b6024805460ff620100008083048216150262ff0000198316811790935591821691161715611372576024805460ff191690555b602454610100900460ff161561138e576024805461ff00191690555b565b905090565b600a546001600160a01b031633146113dd5760405162461bcd60e51b815260206004820181905260248201526000805160206153c883398151915260448201526064016112e7565b601355565b6001600160a01b0381166000908152600d60205260409020546114565760405162461bcd60e51b815260206004820152602660248201527f5061796d656e7453706c69747465723a206163636f756e7420686173206e6f2060448201526573686172657360d01b60648201526084016112e7565b6000611461600c5490565b61146b9047615254565b905060006114988383611493866001600160a01b03166000908152600e602052604090205490565b61343b565b9050806114fb5760405162461bcd60e51b815260206004820152602b60248201527f5061796d656e7453706c69747465723a206163636f756e74206973206e6f742060448201526a191d59481c185e5b595b9d60aa1b60648201526084016112e7565b6001600160a01b0383166000908152600e602052604081208054839290611523908490615254565b9250508190555080600c600082825461153c9190615254565b9091555061154c90508382613481565b604080516001600160a01b0385168152602081018390527fdf20fd1e76bc69d672e4814fafb2c449bba3a5369d8359adf9e05e6fde87b05691015b60405180910390a1505050565b61159d816113e2565b50565b6040516bffffffffffffffffffffffff19606085901b166020820152600090819060340160405160208183030381529060405280519060200120905061161d84848080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525050602354915084905061359a565b9150505b9392505050565b61129b8383836135b0565b600a546001600160a01b0316331461167b5760405162461bcd60e51b815260206004820181905260248201526000805160206153c883398151915260448201526064016112e7565b602155565b600a546001600160a01b031633146116c85760405162461bcd60e51b815260206004820181905260248201526000805160206153c883398151915260448201526064016112e7565b601955565b60008281526009602090815260408083208151808301909252546001600160a01b038116808352600160a01b9091046bffffffffffffffffffffffff1692820192909252829161174c5750604080518082019091526008546001600160a01b0381168252600160a01b90046bffffffffffffffffffffffff1660208201525b602081015160009061271090611770906bffffffffffffffffffffffff1687615280565b61177a919061526c565b91519350909150505b9250929050565b600a54600160a01b900460ff16156117d75760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b60448201526064016112e7565b6117df6137d3565b61181d5760405162461bcd60e51b815260206004820152600f60248201526e73616c65206e6f742061637469766560881b60448201526064016112e7565b8060175461182b9190615280565b34146118675760405162461bcd60e51b815260206004820152600b60248201526a77726f6e672076616c756560a81b60448201526064016112e7565b6118708161381c565b3360009081526005602052604081205468010000000000000000900467ffffffffffffffff16905060185460016118a79190615254565b6118b18383615254565b106118fe5760405162461bcd60e51b815260206004820152601e60248201527f71747920776f756c642065786365656420616c6c6f776564206c696d6974000060448201526064016112e7565b611907826138bd565b60408051338152602081018490527f36faf9f835c3b671edf1f6d75184a5d3b08a3cb2c73a86dbe662f9eb7b397e01910160405180910390a15050565b600a546001600160a01b0316331461198c5760405162461bcd60e51b815260206004820181905260248201526000805160206153c883398151915260448201526064016112e7565b6015805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b6040516bffffffffffffffffffffffff19606085901b166020820152600090819060340160405160208183030381529060405280519060200120905061161d84848080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525050602254915084905061359a565b600a546000906001600160a01b03163314611a835760405162461bcd60e51b815260206004820181905260248201526000805160206153c883398151915260448201526064016112e7565b5060225490565b600a546001600160a01b03163314611ad25760405162461bcd60e51b815260206004820181905260248201526000805160206153c883398151915260448201526064016112e7565b602054601c5461138e916001600160a01b03169061392c565b61129b83838360405180602001604052806000815250612b50565b6001600160a01b0381166000908152600d6020526040902054611b7a5760405162461bcd60e51b815260206004820152602660248201527f5061796d656e7453706c69747465723a206163636f756e7420686173206e6f2060448201526573686172657360d01b60648201526084016112e7565b6001600160a01b0382166000908152601060205260408120546040516370a0823160e01b81523060048201526001600160a01b038516906370a082319060240160206040518083038186803b158015611bd257600080fd5b505afa158015611be6573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611c0a9190614fb0565b611c149190615254565b90506000611c4d838361149387876001600160a01b03918216600090815260116020908152604080832093909416825291909152205490565b905080611cb05760405162461bcd60e51b815260206004820152602b60248201527f5061796d656e7453706c69747465723a206163636f756e74206973206e6f742060448201526a191d59481c185e5b595b9d60aa1b60648201526084016112e7565b6001600160a01b03808516600090815260116020908152604080832093871683529290529081208054839290611ce7908490615254565b90915550506001600160a01b03841660009081526010602052604081208054839290611d14908490615254565b90915550611d259050848483613946565b604080516001600160a01b038581168252602082018490528616917f3be5b7a71e84ed12875d241991c70855ac5817d847039e17a9d895c1ceb0f18a910160405180910390a250505050565b60006113906139c6565b600a546001600160a01b03163314611dc35760405162461bcd60e51b815260206004820181905260248201526000805160206153c883398151915260448201526064016112e7565b6024805460ff6101008083048216150261ff00199092169190911791829055620100009091041615611dfc576024805462ff0000191690555b60245460ff161561138e576024805460ff19169055565b600a546001600160a01b03163314611e5b5760405162461bcd60e51b815260206004820181905260248201526000805160206153c883398151915260448201526064016112e7565b8051611e6e906016906020840190614968565b5050565b601f8181548110611e8257600080fd5b600091825260209091200154905081565b805160609060008167ffffffffffffffff811115611ec157634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015611f0c57816020015b6040805160608101825260008082526020808301829052928201528252600019909201910181611edf5790505b50905060005b828114611f7c57611f49858281518110611f3c57634e487b7160e01b600052603260045260246000fd5b6020026020010151612c4e565b828281518110611f6957634e487b7160e01b600052603260045260246000fd5b6020908102919091010152600101611f12565b509392505050565b6040516bffffffffffffffffffffffff19606085901b166020820152600090819060340160405160208183030381529060405280519060200120905061161d84848080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525050602154915084905061359a565b601e818154811061201157600080fd5b6000918252602090912001546001600160a01b0316905081565b600061203682613a0c565b5192915050565b600a54600160a01b900460ff161561208a5760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b60448201526064016112e7565b6001612094613b41565b6120d25760405162461bcd60e51b815260206004820152600f60248201526e73616c65206e6f742061637469766560881b60448201526064016112e7565b6120db8161381c565b6120e63384846115a0565b6121325760405162461bcd60e51b815260206004820152601960248201527f77616c6c6574206e6f742070617274206f6620616e7920776c0000000000000060448201526064016112e7565b601b54612140906001615254565b811061218e5760405162461bcd60e51b815260206004820152601760248201527f7174792065786365656473206d6178207065722074786e00000000000000000060448201526064016112e7565b8060175461219c9190615280565b34146121d85760405162461bcd60e51b815260206004820152600b60248201526a77726f6e672076616c756560a81b60448201526064016112e7565b3360009081526005602052604081205468010000000000000000900467ffffffffffffffff169050601b54600161220f9190615254565b6122198383615254565b106122665760405162461bcd60e51b815260206004820181905260248201527f717479207065722077616c6c657420776f756c6420626520657863656564656460448201526064016112e7565b61226f826138bd565b6040513381527fddaf3364ef7dacb752d2a092a4410b92de766ec53df71ba187a15d26c6490b229060200160405180910390a150505050565b600a546001600160a01b031633146122f05760405162461bcd60e51b815260206004820181905260248201526000805160206153c883398151915260448201526064016112e7565b6020805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b60006001600160a01b038216612361576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b506001600160a01b031660009081526005602052604090205467ffffffffffffffff1690565b600a546001600160a01b031633146123cf5760405162461bcd60e51b815260206004820181905260248201526000805160206153c883398151915260448201526064016112e7565b61138e6000613b8b565b600a546001600160a01b031633146124215760405162461bcd60e51b815260206004820181905260248201526000805160206153c883398151915260448201526064016112e7565b6024805460ff19811660ff918216151791829055620100009091041615611372576024805462ff0000191690819055610100900460ff161561138e576024805461ff0019169055565b60006113906137d3565b606060008060006124848561231f565b905060008167ffffffffffffffff8111156124af57634e487b7160e01b600052604160045260246000fd5b6040519080825280602002602001820160405280156124d8578160200160208202803683370190505b50604080516060810182526000808252602082018190529181018290529192505b8386146125cb57600081815260046020908152604091829020825160608101845290546001600160a01b0381168252600160a01b810467ffffffffffffffff1692820192909252600160e01b90910460ff16158015928201929092529250612560576125c3565b81516001600160a01b03161561257557815194505b876001600160a01b0316856001600160a01b031614156125c357808387806001019850815181106125b657634e487b7160e01b600052603260045260246000fd5b6020026020010181815250505b6001016124f9565b50909695505050505050565b6000600f82815481106125fa57634e487b7160e01b600052603260045260246000fd5b6000918252602090912001546001600160a01b031692915050565b600a546001600160a01b0316331461265d5760405162461bcd60e51b815260206004820181905260248201526000805160206153c883398151915260448201526064016112e7565b611e6e8282613bea565b600a546001600160a01b031633146126af5760405162461bcd60e51b815260206004820181905260248201526000805160206153c883398151915260448201526064016112e7565b601755565b600a546001600160a01b031633146126fc5760405162461bcd60e51b815260206004820181905260248201526000805160206153c883398151915260448201526064016112e7565b61129b601283836149ec565b600a546001600160a01b031633146127505760405162461bcd60e51b815260206004820181905260248201526000805160206153c883398151915260448201526064016112e7565b601d805460ff1916831515179055805161129b906016906020840190614968565b606060038054611100906152e2565b60608183106127bb576040517f32c1995a00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008054808411156127cb578093505b60006127d68761231f565b9050848610156127f557858503818110156127ef578091505b506127f9565b5060005b60008167ffffffffffffffff81111561282257634e487b7160e01b600052604160045260246000fd5b60405190808252806020026020018201604052801561284b578160200160208202803683370190505b5090508161285e57935061162192505050565b600061286988612c4e565b90506000816040015161287a575080515b885b88811415801561288c5750848714155b1561295c57600081815260046020908152604091829020825160608101845290546001600160a01b0381168252600160a01b810467ffffffffffffffff1692820192909252600160e01b90910460ff161580159282019290925293506128f157612954565b82516001600160a01b03161561290657825191505b8a6001600160a01b0316826001600160a01b03161415612954578084888060010199508151811061294757634e487b7160e01b600052603260045260246000fd5b6020026020010181815250505b60010161287c565b505050928352509095945050505050565b600a546001600160a01b031633146129b55760405162461bcd60e51b815260206004820181905260248201526000805160206153c883398151915260448201526064016112e7565b601b55565b6001600160a01b0382163314156129fd576040517fb06307db00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b600a546001600160a01b03163314612ab15760405162461bcd60e51b815260206004820181905260248201526000805160206153c883398151915260448201526064016112e7565b602355565b600a546001600160a01b03163314612afe5760405162461bcd60e51b815260206004820181905260248201526000805160206153c883398151915260448201526064016112e7565b602255565b600a546001600160a01b03163314612b4b5760405162461bcd60e51b815260206004820181905260248201526000805160206153c883398151915260448201526064016112e7565b601c55565b612b5b8484846135b0565b6001600160a01b0383163b15158015612b7d5750612b7b84848484613d04565b155b15612b9b576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b600a546001600160a01b03163314612be95760405162461bcd60e51b815260206004820181905260248201526000805160206153c883398151915260448201526064016112e7565b601c54612bf69082615254565b60145550565b600a546001600160a01b03163314612c445760405162461bcd60e51b815260206004820181905260248201526000805160206153c883398151915260448201526064016112e7565b61159d338261392c565b6040805160608082018352600080835260208084018290528385018290528451928301855281835282018190529281018390529091506000548310612c935792915050565b50600082815260046020908152604091829020825160608101845290546001600160a01b0381168252600160a01b810467ffffffffffffffff1692820192909252600160e01b90910460ff161580159282019290925290612cf45792915050565b61162183613a0c565b600a546001600160a01b03163314612d455760405162461bcd60e51b815260206004820181905260248201526000805160206153c883398151915260448201526064016112e7565b600a54600160a01b900460ff1615612d5f5761138e613dfb565b61138e613ea1565b601d5460609060ff1615612db757612d7d613f29565b612d90612d8b846001615254565b613f38565b604051602001612da19291906150a4565b6040516020818303038152906040529050919050565b6110eb613f29565b600a546000906001600160a01b03163314612e0a5760405162461bcd60e51b815260206004820181905260248201526000805160206153c883398151915260448201526064016112e7565b5060215490565b600a546001600160a01b03163314612e595760405162461bcd60e51b815260206004820181905260248201526000805160206153c883398151915260448201526064016112e7565b601855565b60005b81518114611e6e57612e9b828281518110612e8c57634e487b7160e01b600052603260045260246000fd5b60200260200101516001614086565b612ea48161531d565b9050612e61565b600a546001600160a01b03163314612ef35760405162461bcd60e51b815260206004820181905260248201526000805160206153c883398151915260448201526064016112e7565b601395909555601493909355602155602291909155602391909155601c55565b6000611390613b41565b600a546001600160a01b03163314612f655760405162461bcd60e51b815260206004820181905260248201526000805160206153c883398151915260448201526064016112e7565b601a55565b60128054612f77906152e2565b80601f0160208091040260200160405190810160405280929190818152602001828054612fa3906152e2565b8015612ff05780601f10612fc557610100808354040283529160200191612ff0565b820191906000526020600020905b815481529060010190602001808311612fd357829003601f168201915b505050505081565b60168054612f77906152e2565b600a546001600160a01b0316331461304d5760405162461bcd60e51b815260206004820181905260248201526000805160206153c883398151915260448201526064016112e7565b6001600160a01b0381166130c95760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f646472657373000000000000000000000000000000000000000000000000000060648201526084016112e7565b61159d81613b8b565b600a54600160a01b900460ff161561311f5760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b60448201526064016112e7565b6131276139c6565b6131655760405162461bcd60e51b815260206004820152600f60248201526e73616c65206e6f742061637469766560881b60448201526064016112e7565b61316e8361381c565b613179338383611f84565b8061318a575061318a3383836119bb565b6131d65760405162461bcd60e51b815260206004820152601960248201527f77616c6c6574206e6f742070617274206f6620616e7920776c0000000000000060448201526064016112e7565b6131e1338383611f84565b15613228576131f28360195461427c565b60408051338152602081018590527fff56e1f8f2168e97f5ce725d6967de779a8c7856c4cc69956f67847c6a6fbf029101611587565b6132333383836119bb565b1561129b5761324483601a5461427c565b60408051338152602081018590527f7e0fc1605c9ff05508a4918f71bc0d8044b561ba4aba9b19560271fe5f50e24b910160405180910390a16015546040516370a0823160e01b81523360048201526001600160a01b039091169060019082906370a082319060240160206040518083038186803b1580156132c557600080fd5b505afa1580156132d9573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906132fd9190614fb0565b1015612b9b576040517f40f766b8000000000000000000000000000000000000000000000000000000008152600160048201523360248201526001600160a01b038216906340f766b890604401600060405180830381600087803b15801561336457600080fd5b505af1158015613378573d6000803e3d6000fd5b5050505050505050565b60006001600160e01b0319821663152a902d60e11b14806110eb57506110eb8261446c565b60008054821080156110eb575050600090815260046020526040902054600160e01b900460ff161590565b600082815260066020526040808220805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b600b546001600160a01b0384166000908152600d6020526040812054909183916134659086615280565b61346f919061526c565b613479919061529f565b949350505050565b804710156134d15760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e636500000060448201526064016112e7565b6000826001600160a01b03168260405160006040518083038185875af1925050503d806000811461351e576040519150601f19603f3d011682016040523d82523d6000602084013e613523565b606091505b505090508061129b5760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d6179206861766520726576657274656400000000000060648201526084016112e7565b6000826135a785846144d5565b14949350505050565b60006135bb82613a0c565b9050836001600160a01b031681600001516001600160a01b03161461360c576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000336001600160a01b038616148061362a575061362a8533610ffa565b8061364557503361363a84611183565b6001600160a01b0316145b90508061366557604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b0384166136a5576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6136b1600084876133d2565b6001600160a01b038581166000908152600560209081526040808320805467ffffffffffffffff1980821667ffffffffffffffff92831660001901831617909255898616808652838620805493841693831660019081018416949094179055898652600490945282852080546001600160e01b031916909417600160a01b42909216919091021783558701808452922080549193909116613787576000548214613787578054602086015167ffffffffffffffff16600160a01b026001600160e01b03199091166001600160a01b038a16171781555b50505082846001600160a01b0316866001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45b5050505050565b60245460009062010000900460ff1680156137f85750600a54600160a01b900460ff16155b8015613807575060245460ff16155b801561139057506013546000545b1415905090565b6000811161386e5760405162461bcd60e51b81526004016112e79060208082526004908201527f7a65726f00000000000000000000000000000000000000000000000000000000604082015260600190565b33321461159d5760405162461bcd60e51b815260206004820152601560248201527f6e6f7420636f6e7472616374206d696e7461626c65000000000000000000000060448201526064016112e7565b6013546138cb906001615254565b816138d560005490565b6138df9190615254565b10612c445760405162461bcd60e51b815260206004820152601160248201527f6d617820746f6b656e73206d696e74656400000000000000000000000000000060448201526064016112e7565b611e6e82826040518060200160405280600081525061454f565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fa9059cbb0000000000000000000000000000000000000000000000000000000017905261129b90849061455c565b60245460009060ff1680156139e55750600a54600160a01b900460ff16155b80156139fa575060245462010000900460ff16155b80156113905750601454600054613815565b604080516060810182526000808252602082018190529181019190915281600054811015613b0f57600081815260046020908152604091829020825160608101845290546001600160a01b0381168252600160a01b810467ffffffffffffffff1692820192909252600160e01b90910460ff16151591810182905290613b0d5780516001600160a01b031615613aa3579392505050565b5060001901600081815260046020908152604091829020825160608101845290546001600160a01b038116808352600160a01b820467ffffffffffffffff1693830193909352600160e01b900460ff1615159281019290925215613b08579392505050565b613aa3565b505b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b602454600090610100900460ff168015613b655750600a54600160a01b900460ff16155b8015613807575060245462010000900460ff161580156113905750601354600054613815565b600a80546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6127106bffffffffffffffffffffffff82161115613c705760405162461bcd60e51b815260206004820152602a60248201527f455243323938313a20726f79616c7479206665652077696c6c2065786365656460448201527f2073616c6550726963650000000000000000000000000000000000000000000060648201526084016112e7565b6001600160a01b038216613cc65760405162461bcd60e51b815260206004820152601960248201527f455243323938313a20696e76616c69642072656365697665720000000000000060448201526064016112e7565b604080518082019091526001600160a01b039092168083526bffffffffffffffffffffffff9091166020909201829052600160a01b90910217600855565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a0290613d399033908990889088906004016150fb565b602060405180830381600087803b158015613d5357600080fd5b505af1925050508015613d83575060408051601f3d908101601f19168201909252613d8091810190614ee2565b60015b613dde573d808015613db1576040519150601f19603f3d011682016040523d82523d6000602084013e613db6565b606091505b508051613dd6576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050949350505050565b600a54600160a01b900460ff16613e545760405162461bcd60e51b815260206004820152601460248201527f5061757361626c653a206e6f742070617573656400000000000000000000000060448201526064016112e7565b600a805460ff60a01b191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b600a54600160a01b900460ff1615613eee5760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b60448201526064016112e7565b600a805460ff60a01b1916600160a01b1790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258613e843390565b606060168054611100906152e2565b606081613f7857505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b8115613fa25780613f8c8161531d565b9150613f9b9050600a8361526c565b9150613f7c565b60008167ffffffffffffffff811115613fcb57634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015613ff5576020820181803683370190505b5090505b84156134795761400a60018361529f565b9150614017600a86615338565b614022906030615254565b60f81b81838151811061404557634e487b7160e01b600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a90535061407f600a8661526c565b9450613ff9565b600061409183613a0c565b805190915082156140f7576000336001600160a01b03831614806140ba57506140ba8233610ffa565b806140d55750336140ca86611183565b6001600160a01b0316145b9050806140f557604051632ce44b5f60e11b815260040160405180910390fd5b505b614103600085836133d2565b6001600160a01b038082166000818152600560209081526040808320805470010000000000000000000000000000000060001967ffffffffffffffff80841691909101811667ffffffffffffffff19841681178390048216600190810183169093027fffffffffffffffff0000000000000000ffffffffffffffff0000000000000000909416179290921783558b8652600490945282852080547fffffff00ffffffffffffffffffffffffffffffffffffffffffffffffffffffff42909316600160a01b026001600160e01b03199091169097179690961716600160e01b178555918901808452922080549194909116614232576000548214614232578054602087015167ffffffffffffffff16600160a01b026001600160e01b03199091166001600160a01b038716171781555b5050604051869250600091506001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a4505060018054810190555050565b600a54600160a01b900460ff16156142c95760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b60448201526064016112e7565b6142d4816001615254565b82106143225760405162461bcd60e51b815260206004820152601760248201527f7174792065786365656473206d6178207065722074786e00000000000000000060448201526064016112e7565b816017546143309190615280565b341461436c5760405162461bcd60e51b815260206004820152600b60248201526a77726f6e672076616c756560a81b60448201526064016112e7565b3360009081526005602052604090205468010000000000000000900467ffffffffffffffff1661439d826001615254565b6143a78483615254565b106143f45760405162461bcd60e51b815260206004820181905260248201527f717479207065722077616c6c657420776f756c6420626520657863656564656460448201526064016112e7565b601454614402906001615254565b8361440c60005490565b6144169190615254565b106144635760405162461bcd60e51b815260206004820152601960248201527f616c6c2070726573616c6520746f6b656e73206d696e7465640000000000000060448201526064016112e7565b61129b836138bd565b60006001600160e01b031982166380ac58cd60e01b148061449d57506001600160e01b03198216635b5e139f60e01b145b806110eb57507f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b03198316146110eb565b600081815b8451811015611f7c57600085828151811061450557634e487b7160e01b600052603260045260246000fd5b6020026020010151905080831161452b576000838152602082905260409020925061453c565b600081815260208490526040902092505b50806145478161531d565b9150506144da565b61129b8383836001614641565b60006145b1826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166148549092919063ffffffff16565b80519091501561129b57808060200190518101906145cf9190614e44565b61129b5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f7420737563636565640000000000000000000000000000000000000000000060648201526084016112e7565b6000546001600160a01b038516614684576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b836146bb576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6001600160a01b038516600081815260056020908152604080832080547fffffffffffffffffffffffffffffffff00000000000000000000000000000000811667ffffffffffffffff8083168c0181169182176801000000000000000067ffffffffffffffff1990941690921783900481168c01811690920217909155858452600490925290912080546001600160e01b031916909217600160a01b42909216919091021790558080850183801561477c57506001600160a01b0387163b15155b15614805575b60405182906001600160a01b038916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a46147cd6000888480600101955088613d04565b6147ea576040516368d2bf6b60e11b815260040160405180910390fd5b8082141561478257826000541461480057600080fd5b61484b565b5b6040516001830192906001600160a01b038916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a480821415614806575b506000556137cc565b60606134798484600085856001600160a01b0385163b6148b65760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016112e7565b600080866001600160a01b031685876040516148d29190615088565b60006040518083038185875af1925050503d806000811461490f576040519150601f19603f3d011682016040523d82523d6000602084013e614914565b606091505b509150915061492482828661492f565b979650505050505050565b6060831561493e575081611621565b82511561494e5782518084602001fd5b8160405162461bcd60e51b81526004016112e791906151da565b828054614974906152e2565b90600052602060002090601f01602090048101928261499657600085556149dc565b82601f106149af57805160ff19168380011785556149dc565b828001600101855582156149dc579182015b828111156149dc5782518255916020019190600101906149c1565b506149e8929150614a60565b5090565b8280546149f8906152e2565b90600052602060002090601f016020900481019282614a1a57600085556149dc565b82601f10614a335782800160ff198235161785556149dc565b828001600101855582156149dc579182015b828111156149dc578235825591602001919060010190614a45565b5b808211156149e85760008155600101614a61565b600067ffffffffffffffff831115614a8f57614a8f615378565b614aa2601f8401601f1916602001615223565b9050828152838383011115614ab657600080fd5b828260208301376000602084830101529392505050565b60008083601f840112614ade578182fd5b50813567ffffffffffffffff811115614af5578182fd5b6020830191508360208260051b850101111561178357600080fd5b600082601f830112614b20578081fd5b61162183833560208501614a75565b600060208284031215614b40578081fd5b81356116218161538e565b60008060408385031215614b5d578081fd5b8235614b688161538e565b91506020830135614b788161538e565b809150509250929050565b600080600060608486031215614b97578081fd5b8335614ba28161538e565b92506020840135614bb28161538e565b929592945050506040919091013590565b60008060008060808587031215614bd8578081fd5b8435614be38161538e565b93506020850135614bf38161538e565b925060408501359150606085013567ffffffffffffffff811115614c15578182fd5b8501601f81018713614c25578182fd5b614c3487823560208401614a75565b91505092959194509250565b600080600060408486031215614c54578283fd5b8335614c5f8161538e565b9250602084013567ffffffffffffffff811115614c7a578283fd5b614c8686828701614acd565b9497909650939450505050565b60008060408385031215614ca5578182fd5b8235614cb08161538e565b91506020830135614b78816153a3565b60008060408385031215614cd2578182fd5b8235614cdd8161538e565b946020939093013593505050565b600080600060608486031215614cff578081fd5b8335614d0a8161538e565b95602085013595506040909401359392505050565b60008060408385031215614d31578182fd5b8235614d3c8161538e565b915060208301356bffffffffffffffffffffffff81168114614b78578182fd5b60008060208385031215614d6e578182fd5b823567ffffffffffffffff811115614d84578283fd5b614d9085828601614acd565b90969095509350505050565b60006020808385031215614dae578182fd5b823567ffffffffffffffff80821115614dc5578384fd5b818501915085601f830112614dd8578384fd5b813581811115614dea57614dea615378565b8060051b9150614dfb848301615223565b8181528481019084860184860187018a1015614e15578788fd5b8795505b83861015614e37578035835260019590950194918601918601614e19565b5098975050505050505050565b600060208284031215614e55578081fd5b8151611621816153a3565b60008060408385031215614e72578182fd5b8235614e7d816153a3565b9150602083013567ffffffffffffffff811115614e98578182fd5b614ea485828601614b10565b9150509250929050565b600060208284031215614ebf578081fd5b5035919050565b600060208284031215614ed7578081fd5b8135611621816153b1565b600060208284031215614ef3578081fd5b8151611621816153b1565b60008060408385031215614b5d578182fd5b60008060208385031215614f22578182fd5b823567ffffffffffffffff80821115614f39578384fd5b818501915085601f830112614f4c578384fd5b813581811115614f5a578485fd5b866020828501011115614f6b578485fd5b60209290920196919550909350505050565b600060208284031215614f8e578081fd5b813567ffffffffffffffff811115614fa4578182fd5b61347984828501614b10565b600060208284031215614fc1578081fd5b5051919050565b600080600060408486031215614fdc578081fd5b83359250602084013567ffffffffffffffff811115614c7a578182fd5b6000806040838503121561500b578182fd5b50508035926020909101359150565b60008060008060008060c08789031215615032578384fd5b505084359660208601359650604086013595606081013595506080810135945060a0013592509050565b600081518084526150748160208601602086016152b6565b601f01601f19169290920160200192915050565b6000825161509a8184602087016152b6565b9190910192915050565b600083516150b68184602088016152b6565b8351908301906150ca8183602088016152b6565b7f2e6a736f6e0000000000000000000000000000000000000000000000000000009101908152600501949350505050565b60006001600160a01b0380871683528086166020840152508360408301526080606083015261512d608083018461505c565b9695505050505050565b6020808252825182820181905260009190848201906040850190845b818110156125cb5761518f83855180516001600160a01b0316825260208082015167ffffffffffffffff16908301526040908101511515910152565b9284019260609290920191600101615153565b6020808252825182820181905260009190848201906040850190845b818110156125cb578351835292840192918401916001016151be565b602081526000611621602083018461505c565b81516001600160a01b0316815260208083015167ffffffffffffffff1690820152604080830151151590820152606081016110eb565b604051601f8201601f1916810167ffffffffffffffff8111828210171561524c5761524c615378565b604052919050565b600082198211156152675761526761534c565b500190565b60008261527b5761527b615362565b500490565b600081600019048311821515161561529a5761529a61534c565b500290565b6000828210156152b1576152b161534c565b500390565b60005b838110156152d15781810151838201526020016152b9565b83811115612b9b5750506000910152565b600181811c908216806152f657607f821691505b6020821081141561531757634e487b7160e01b600052602260045260246000fd5b50919050565b60006000198214156153315761533161534c565b5060010190565b60008261534757615347615362565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b038116811461159d57600080fd5b801515811461159d57600080fd5b6001600160e01b03198116811461159d57600080fdfe4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572a26469706673582212209667cada997f348f33292d201676b5d9a46939650c822021fe1eb157f74c6e0c64736f6c6343000804003300000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000000000000000000000000000000000000000120000000000000000000000000ff401ef3310884f0b1dce11105331708e5baf2a2000000000000000000000000000000000000000000000000000000000000018000000000000000000000000000000000000000000000000000000000000001e000000000000000000000000006d0f7f3f6d64af82682f087177991a7cfb175d00000000000000000000000000000000000000000000000000000000000000035697066733a2f2f516d574b534d786865397234785642794665464b464b71313469436659764c696f56725a46684d546a324e45537900000000000000000000000000000000000000000000000000000000000000000000000000000000000035697066733a2f2f516d56447542746b627a3736674e37466473436a596e5459744152593635697966614b394c79656655586a6e58560000000000000000000000000000000000000000000000000000000000000000000000000000000000000200000000000000000000000006d0f7f3f6d64af82682f087177991a7cfb175d00000000000000000000000003be1a8ec35f4864e8326de7c511dde497c90d20e0000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000235a00000000000000000000000000000000000000000000000000000000000003b6

Deployed Bytecode

0x6080604052600436106105b95760003560e01c806370a08231116102eb578063b970d0f81161018f578063e046394e116100e1578063e8a3d48511610095578063f2fde38b1161006f578063f2fde38b1461103d578063f851a4401461105d578063fd8d9e391461107d57600080fd5b8063e8a3d48514610fca578063e985e9c514610fdf578063f210b5651461102857600080fd5b8063e471f7d5116100c6578063e471f7d514610f7f578063e5d69f3014610f94578063e831574214610fb457600080fd5b8063e046394e14610f54578063e33b7de314610f6a57600080fd5b8063cafdd18111610143578063d19d97d91161011d578063d19d97d914610ede578063d79779b214610efe578063e00d431b14610f3457600080fd5b8063cafdd18114610e73578063cb2070ef14610e88578063ce7c2ac214610ea857600080fd5b8063c23dc68f11610174578063c23dc68f14610e11578063c4ae316814610e3e578063c87b56dd14610e5357600080fd5b8063b970d0f814610dd1578063c1f2612314610df157600080fd5b80639498d7eb11610248578063a12a23cf116101fc578063b2cf9005116101d6578063b2cf900514610d71578063b6f1321514610d91578063b88d4fde14610db157600080fd5b8063a12a23cf14610d11578063a22cb46514610d31578063a9a01b2d14610d5157600080fd5b80639852595c1161022d5780639852595c14610ca557806399a2557a14610cdb578063a035b1fe14610cfb57600080fd5b80639498d7eb14610c7057806395d89b4114610c9057600080fd5b80638b83209b1161029f5780638f2fc60b116102845780638f2fc60b14610c1057806391b7f5ed14610c30578063938e3d7b14610c5057600080fd5b80638b83209b14610bd25780638da5cb5b14610bf257600080fd5b8063780e3631116102d0578063780e363114610b7b5780637ef7271614610b905780638462151c14610ba557600080fd5b806370a0823114610b46578063715018a614610b6657600080fd5b806334f646da1161045d57806355f804b3116103af5780635da0f690116103635780636352211e1161033d5780636352211e14610af3578063654198f914610b13578063704b6c0214610b2657600080fd5b80635da0f69014610a9d578063612ddd5714610ab357806363037b0c14610ad357600080fd5b806357df6ab71161039457806357df6ab714610a3b5780635bbb217714610a515780635c975abb14610a7e57600080fd5b806355f804b3146109fb57806357a858fc14610a1b57600080fd5b8063406072a9116104115780634c8b0223116103eb5780634c8b0223146109b75780634dcd2dd1146109cc57806354214f69146109e157600080fd5b8063406072a91461093157806342842e0e1461097757806348b750441461099757600080fd5b80633a98ef39116104425780633a98ef39146108f25780633be07334146109075780633eefe2391461091c57600080fd5b806334f646da146108b2578063373b5918146108d257600080fd5b806319165587116105165780632743dc75116104ca5780632a55205a116104a45780632a55205a1461084a5780632db11544146108895780632ff515491461089c57600080fd5b80632743dc75146107f457806327b99c3b1461080a5780632a17dfb61461082a57600080fd5b80631f1de681116104fb5780631f1de6811461079457806323b872dd146107b4578063253ab971146107d457600080fd5b80631916558714610754578063192e7a7b1461077457600080fd5b80630bc82ba31161056d5780630ca1c5c9116105525780630ca1c5c91461070657806311e776fe1461071b57806318160ddd1461073b57600080fd5b80630bc82ba3146106dc5780630c894cfe146106f157600080fd5b806306fdde031161059e57806306fdde0314610660578063081812fc14610682578063095ea7b3146106ba57600080fd5b806301ffc9a71461060757806303f8301a1461063c57600080fd5b36610602577f6ef95f06320e7a25a04a175ca677b7052bdd97131872c2192525a629f51be77033604080516001600160a01b0390921682523460208301520160405180910390a1005b600080fd5b34801561061357600080fd5b50610627610622366004614ec6565b611090565b60405190151581526020015b60405180910390f35b34801561064857600080fd5b5061065260195481565b604051908152602001610633565b34801561066c57600080fd5b506106756110f1565b60405161063391906151da565b34801561068e57600080fd5b506106a261069d366004614eae565b611183565b6040516001600160a01b039091168152602001610633565b3480156106c657600080fd5b506106da6106d5366004614cc0565b6111e0565b005b3480156106e857600080fd5b506106526112a0565b3480156106fd57600080fd5b506106da6112f7565b34801561071257600080fd5b50600054610652565b34801561072757600080fd5b506106da610736366004614eae565b611395565b34801561074757600080fd5b5060015460005403610652565b34801561076057600080fd5b506106da61076f366004614b2f565b6113e2565b34801561078057600080fd5b506106da61078f366004614b2f565b611594565b3480156107a057600080fd5b506106276107af366004614c40565b6115a0565b3480156107c057600080fd5b506106da6107cf366004614b83565b611628565b3480156107e057600080fd5b506106da6107ef366004614eae565b611633565b34801561080057600080fd5b5061065260185481565b34801561081657600080fd5b506106da610825366004614eae565b611680565b34801561083657600080fd5b506015546106a2906001600160a01b031681565b34801561085657600080fd5b5061086a610865366004614ff9565b6116cd565b604080516001600160a01b039093168352602083019190915201610633565b6106da610897366004614eae565b61178a565b3480156108a857600080fd5b50610652601c5481565b3480156108be57600080fd5b506106da6108cd366004614b2f565b611944565b3480156108de57600080fd5b506106276108ed366004614c40565b6119bb565b3480156108fe57600080fd5b50600b54610652565b34801561091357600080fd5b50610652611a38565b34801561092857600080fd5b506106da611a8a565b34801561093d57600080fd5b5061065261094c366004614efe565b6001600160a01b03918216600090815260116020908152604080832093909416825291909152205490565b34801561098357600080fd5b506106da610992366004614b83565b611aeb565b3480156109a357600080fd5b506106da6109b2366004614efe565b611b06565b3480156109c357600080fd5b50610627611d71565b3480156109d857600080fd5b506106da611d7b565b3480156109ed57600080fd5b50601d546106279060ff1681565b348015610a0757600080fd5b506106da610a16366004614f7d565b611e13565b348015610a2757600080fd5b50610652610a36366004614eae565b611e72565b348015610a4757600080fd5b5061065260145481565b348015610a5d57600080fd5b50610a71610a6c366004614d9c565b611e93565b6040516106339190615137565b348015610a8a57600080fd5b50600a54600160a01b900460ff16610627565b348015610aa957600080fd5b50610652601a5481565b348015610abf57600080fd5b50610627610ace366004614c40565b611f84565b348015610adf57600080fd5b506106a2610aee366004614eae565b612001565b348015610aff57600080fd5b506106a2610b0e366004614eae565b61202b565b6106da610b21366004614d5c565b61203d565b348015610b3257600080fd5b506106da610b41366004614b2f565b6122a8565b348015610b5257600080fd5b50610652610b61366004614b2f565b61231f565b348015610b7257600080fd5b506106da612387565b348015610b8757600080fd5b506106da6123d9565b348015610b9c57600080fd5b5061062761246a565b348015610bb157600080fd5b50610bc5610bc0366004614b2f565b612474565b60405161063391906151a2565b348015610bde57600080fd5b506106a2610bed366004614eae565b6125d7565b348015610bfe57600080fd5b50600a546001600160a01b03166106a2565b348015610c1c57600080fd5b506106da610c2b366004614d1f565b612615565b348015610c3c57600080fd5b506106da610c4b366004614eae565b612667565b348015610c5c57600080fd5b506106da610c6b366004614f10565b6126b4565b348015610c7c57600080fd5b506106da610c8b366004614e60565b612708565b348015610c9c57600080fd5b50610675612771565b348015610cb157600080fd5b50610652610cc0366004614b2f565b6001600160a01b03166000908152600e602052604090205490565b348015610ce757600080fd5b50610bc5610cf6366004614ceb565b612780565b348015610d0757600080fd5b5061065260175481565b348015610d1d57600080fd5b506106da610d2c366004614eae565b61296d565b348015610d3d57600080fd5b506106da610d4c366004614c93565b6129ba565b348015610d5d57600080fd5b506106da610d6c366004614eae565b612a69565b348015610d7d57600080fd5b506106da610d8c366004614eae565b612ab6565b348015610d9d57600080fd5b506106da610dac366004614eae565b612b03565b348015610dbd57600080fd5b506106da610dcc366004614bc3565b612b50565b348015610ddd57600080fd5b506106da610dec366004614eae565b612ba1565b348015610dfd57600080fd5b506106da610e0c366004614eae565b612bfc565b348015610e1d57600080fd5b50610e31610e2c366004614eae565b612c4e565b60405161063391906151ed565b348015610e4a57600080fd5b506106da612cfd565b348015610e5f57600080fd5b50610675610e6e366004614eae565b612d67565b348015610e7f57600080fd5b50610652612dbf565b348015610e9457600080fd5b506106da610ea3366004614eae565b612e11565b348015610eb457600080fd5b50610652610ec3366004614b2f565b6001600160a01b03166000908152600d602052604090205490565b348015610eea57600080fd5b506106da610ef9366004614d9c565b612e5e565b348015610f0a57600080fd5b50610652610f19366004614b2f565b6001600160a01b031660009081526010602052604090205490565b348015610f4057600080fd5b506106da610f4f36600461501a565b612eab565b348015610f6057600080fd5b50610652601b5481565b348015610f7657600080fd5b50600c54610652565b348015610f8b57600080fd5b50610627612f13565b348015610fa057600080fd5b506106da610faf366004614eae565b612f1d565b348015610fc057600080fd5b5061065260135481565b348015610fd657600080fd5b50610675612f6a565b348015610feb57600080fd5b50610627610ffa366004614b4b565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b34801561103457600080fd5b50610675612ff8565b34801561104957600080fd5b506106da611058366004614b2f565b613005565b34801561106957600080fd5b506020546106a2906001600160a01b031681565b6106da61108b366004614fc8565b6130d2565b60006001600160e01b031982166380ac58cd60e01b14806110c157506001600160e01b03198216635b5e139f60e01b145b806110dc57506001600160e01b0319821663152a902d60e11b145b806110eb57506110eb82613382565b92915050565b606060028054611100906152e2565b80601f016020809104026020016040519081016040528092919081815260200182805461112c906152e2565b80156111795780601f1061114e57610100808354040283529160200191611179565b820191906000526020600020905b81548152906001019060200180831161115c57829003601f168201915b5050505050905090565b600061118e826133a7565b6111c4576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b60006111eb8261202b565b9050806001600160a01b0316836001600160a01b03161415611239576040517f943f7b8c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b336001600160a01b0382161480159061125957506112578133610ffa565b155b15611290576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61129b8383836133d2565b505050565b600a546000906001600160a01b031633146112f05760405162461bcd60e51b815260206004820181905260248201526000805160206153c883398151915260448201526064015b60405180910390fd5b5060235490565b600a546001600160a01b0316331461133f5760405162461bcd60e51b815260206004820181905260248201526000805160206153c883398151915260448201526064016112e7565b6024805460ff620100008083048216150262ff0000198316811790935591821691161715611372576024805460ff191690555b602454610100900460ff161561138e576024805461ff00191690555b565b905090565b600a546001600160a01b031633146113dd5760405162461bcd60e51b815260206004820181905260248201526000805160206153c883398151915260448201526064016112e7565b601355565b6001600160a01b0381166000908152600d60205260409020546114565760405162461bcd60e51b815260206004820152602660248201527f5061796d656e7453706c69747465723a206163636f756e7420686173206e6f2060448201526573686172657360d01b60648201526084016112e7565b6000611461600c5490565b61146b9047615254565b905060006114988383611493866001600160a01b03166000908152600e602052604090205490565b61343b565b9050806114fb5760405162461bcd60e51b815260206004820152602b60248201527f5061796d656e7453706c69747465723a206163636f756e74206973206e6f742060448201526a191d59481c185e5b595b9d60aa1b60648201526084016112e7565b6001600160a01b0383166000908152600e602052604081208054839290611523908490615254565b9250508190555080600c600082825461153c9190615254565b9091555061154c90508382613481565b604080516001600160a01b0385168152602081018390527fdf20fd1e76bc69d672e4814fafb2c449bba3a5369d8359adf9e05e6fde87b05691015b60405180910390a1505050565b61159d816113e2565b50565b6040516bffffffffffffffffffffffff19606085901b166020820152600090819060340160405160208183030381529060405280519060200120905061161d84848080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525050602354915084905061359a565b9150505b9392505050565b61129b8383836135b0565b600a546001600160a01b0316331461167b5760405162461bcd60e51b815260206004820181905260248201526000805160206153c883398151915260448201526064016112e7565b602155565b600a546001600160a01b031633146116c85760405162461bcd60e51b815260206004820181905260248201526000805160206153c883398151915260448201526064016112e7565b601955565b60008281526009602090815260408083208151808301909252546001600160a01b038116808352600160a01b9091046bffffffffffffffffffffffff1692820192909252829161174c5750604080518082019091526008546001600160a01b0381168252600160a01b90046bffffffffffffffffffffffff1660208201525b602081015160009061271090611770906bffffffffffffffffffffffff1687615280565b61177a919061526c565b91519350909150505b9250929050565b600a54600160a01b900460ff16156117d75760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b60448201526064016112e7565b6117df6137d3565b61181d5760405162461bcd60e51b815260206004820152600f60248201526e73616c65206e6f742061637469766560881b60448201526064016112e7565b8060175461182b9190615280565b34146118675760405162461bcd60e51b815260206004820152600b60248201526a77726f6e672076616c756560a81b60448201526064016112e7565b6118708161381c565b3360009081526005602052604081205468010000000000000000900467ffffffffffffffff16905060185460016118a79190615254565b6118b18383615254565b106118fe5760405162461bcd60e51b815260206004820152601e60248201527f71747920776f756c642065786365656420616c6c6f776564206c696d6974000060448201526064016112e7565b611907826138bd565b60408051338152602081018490527f36faf9f835c3b671edf1f6d75184a5d3b08a3cb2c73a86dbe662f9eb7b397e01910160405180910390a15050565b600a546001600160a01b0316331461198c5760405162461bcd60e51b815260206004820181905260248201526000805160206153c883398151915260448201526064016112e7565b6015805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b6040516bffffffffffffffffffffffff19606085901b166020820152600090819060340160405160208183030381529060405280519060200120905061161d84848080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525050602254915084905061359a565b600a546000906001600160a01b03163314611a835760405162461bcd60e51b815260206004820181905260248201526000805160206153c883398151915260448201526064016112e7565b5060225490565b600a546001600160a01b03163314611ad25760405162461bcd60e51b815260206004820181905260248201526000805160206153c883398151915260448201526064016112e7565b602054601c5461138e916001600160a01b03169061392c565b61129b83838360405180602001604052806000815250612b50565b6001600160a01b0381166000908152600d6020526040902054611b7a5760405162461bcd60e51b815260206004820152602660248201527f5061796d656e7453706c69747465723a206163636f756e7420686173206e6f2060448201526573686172657360d01b60648201526084016112e7565b6001600160a01b0382166000908152601060205260408120546040516370a0823160e01b81523060048201526001600160a01b038516906370a082319060240160206040518083038186803b158015611bd257600080fd5b505afa158015611be6573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611c0a9190614fb0565b611c149190615254565b90506000611c4d838361149387876001600160a01b03918216600090815260116020908152604080832093909416825291909152205490565b905080611cb05760405162461bcd60e51b815260206004820152602b60248201527f5061796d656e7453706c69747465723a206163636f756e74206973206e6f742060448201526a191d59481c185e5b595b9d60aa1b60648201526084016112e7565b6001600160a01b03808516600090815260116020908152604080832093871683529290529081208054839290611ce7908490615254565b90915550506001600160a01b03841660009081526010602052604081208054839290611d14908490615254565b90915550611d259050848483613946565b604080516001600160a01b038581168252602082018490528616917f3be5b7a71e84ed12875d241991c70855ac5817d847039e17a9d895c1ceb0f18a910160405180910390a250505050565b60006113906139c6565b600a546001600160a01b03163314611dc35760405162461bcd60e51b815260206004820181905260248201526000805160206153c883398151915260448201526064016112e7565b6024805460ff6101008083048216150261ff00199092169190911791829055620100009091041615611dfc576024805462ff0000191690555b60245460ff161561138e576024805460ff19169055565b600a546001600160a01b03163314611e5b5760405162461bcd60e51b815260206004820181905260248201526000805160206153c883398151915260448201526064016112e7565b8051611e6e906016906020840190614968565b5050565b601f8181548110611e8257600080fd5b600091825260209091200154905081565b805160609060008167ffffffffffffffff811115611ec157634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015611f0c57816020015b6040805160608101825260008082526020808301829052928201528252600019909201910181611edf5790505b50905060005b828114611f7c57611f49858281518110611f3c57634e487b7160e01b600052603260045260246000fd5b6020026020010151612c4e565b828281518110611f6957634e487b7160e01b600052603260045260246000fd5b6020908102919091010152600101611f12565b509392505050565b6040516bffffffffffffffffffffffff19606085901b166020820152600090819060340160405160208183030381529060405280519060200120905061161d84848080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525050602154915084905061359a565b601e818154811061201157600080fd5b6000918252602090912001546001600160a01b0316905081565b600061203682613a0c565b5192915050565b600a54600160a01b900460ff161561208a5760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b60448201526064016112e7565b6001612094613b41565b6120d25760405162461bcd60e51b815260206004820152600f60248201526e73616c65206e6f742061637469766560881b60448201526064016112e7565b6120db8161381c565b6120e63384846115a0565b6121325760405162461bcd60e51b815260206004820152601960248201527f77616c6c6574206e6f742070617274206f6620616e7920776c0000000000000060448201526064016112e7565b601b54612140906001615254565b811061218e5760405162461bcd60e51b815260206004820152601760248201527f7174792065786365656473206d6178207065722074786e00000000000000000060448201526064016112e7565b8060175461219c9190615280565b34146121d85760405162461bcd60e51b815260206004820152600b60248201526a77726f6e672076616c756560a81b60448201526064016112e7565b3360009081526005602052604081205468010000000000000000900467ffffffffffffffff169050601b54600161220f9190615254565b6122198383615254565b106122665760405162461bcd60e51b815260206004820181905260248201527f717479207065722077616c6c657420776f756c6420626520657863656564656460448201526064016112e7565b61226f826138bd565b6040513381527fddaf3364ef7dacb752d2a092a4410b92de766ec53df71ba187a15d26c6490b229060200160405180910390a150505050565b600a546001600160a01b031633146122f05760405162461bcd60e51b815260206004820181905260248201526000805160206153c883398151915260448201526064016112e7565b6020805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b60006001600160a01b038216612361576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b506001600160a01b031660009081526005602052604090205467ffffffffffffffff1690565b600a546001600160a01b031633146123cf5760405162461bcd60e51b815260206004820181905260248201526000805160206153c883398151915260448201526064016112e7565b61138e6000613b8b565b600a546001600160a01b031633146124215760405162461bcd60e51b815260206004820181905260248201526000805160206153c883398151915260448201526064016112e7565b6024805460ff19811660ff918216151791829055620100009091041615611372576024805462ff0000191690819055610100900460ff161561138e576024805461ff0019169055565b60006113906137d3565b606060008060006124848561231f565b905060008167ffffffffffffffff8111156124af57634e487b7160e01b600052604160045260246000fd5b6040519080825280602002602001820160405280156124d8578160200160208202803683370190505b50604080516060810182526000808252602082018190529181018290529192505b8386146125cb57600081815260046020908152604091829020825160608101845290546001600160a01b0381168252600160a01b810467ffffffffffffffff1692820192909252600160e01b90910460ff16158015928201929092529250612560576125c3565b81516001600160a01b03161561257557815194505b876001600160a01b0316856001600160a01b031614156125c357808387806001019850815181106125b657634e487b7160e01b600052603260045260246000fd5b6020026020010181815250505b6001016124f9565b50909695505050505050565b6000600f82815481106125fa57634e487b7160e01b600052603260045260246000fd5b6000918252602090912001546001600160a01b031692915050565b600a546001600160a01b0316331461265d5760405162461bcd60e51b815260206004820181905260248201526000805160206153c883398151915260448201526064016112e7565b611e6e8282613bea565b600a546001600160a01b031633146126af5760405162461bcd60e51b815260206004820181905260248201526000805160206153c883398151915260448201526064016112e7565b601755565b600a546001600160a01b031633146126fc5760405162461bcd60e51b815260206004820181905260248201526000805160206153c883398151915260448201526064016112e7565b61129b601283836149ec565b600a546001600160a01b031633146127505760405162461bcd60e51b815260206004820181905260248201526000805160206153c883398151915260448201526064016112e7565b601d805460ff1916831515179055805161129b906016906020840190614968565b606060038054611100906152e2565b60608183106127bb576040517f32c1995a00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008054808411156127cb578093505b60006127d68761231f565b9050848610156127f557858503818110156127ef578091505b506127f9565b5060005b60008167ffffffffffffffff81111561282257634e487b7160e01b600052604160045260246000fd5b60405190808252806020026020018201604052801561284b578160200160208202803683370190505b5090508161285e57935061162192505050565b600061286988612c4e565b90506000816040015161287a575080515b885b88811415801561288c5750848714155b1561295c57600081815260046020908152604091829020825160608101845290546001600160a01b0381168252600160a01b810467ffffffffffffffff1692820192909252600160e01b90910460ff161580159282019290925293506128f157612954565b82516001600160a01b03161561290657825191505b8a6001600160a01b0316826001600160a01b03161415612954578084888060010199508151811061294757634e487b7160e01b600052603260045260246000fd5b6020026020010181815250505b60010161287c565b505050928352509095945050505050565b600a546001600160a01b031633146129b55760405162461bcd60e51b815260206004820181905260248201526000805160206153c883398151915260448201526064016112e7565b601b55565b6001600160a01b0382163314156129fd576040517fb06307db00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b600a546001600160a01b03163314612ab15760405162461bcd60e51b815260206004820181905260248201526000805160206153c883398151915260448201526064016112e7565b602355565b600a546001600160a01b03163314612afe5760405162461bcd60e51b815260206004820181905260248201526000805160206153c883398151915260448201526064016112e7565b602255565b600a546001600160a01b03163314612b4b5760405162461bcd60e51b815260206004820181905260248201526000805160206153c883398151915260448201526064016112e7565b601c55565b612b5b8484846135b0565b6001600160a01b0383163b15158015612b7d5750612b7b84848484613d04565b155b15612b9b576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b600a546001600160a01b03163314612be95760405162461bcd60e51b815260206004820181905260248201526000805160206153c883398151915260448201526064016112e7565b601c54612bf69082615254565b60145550565b600a546001600160a01b03163314612c445760405162461bcd60e51b815260206004820181905260248201526000805160206153c883398151915260448201526064016112e7565b61159d338261392c565b6040805160608082018352600080835260208084018290528385018290528451928301855281835282018190529281018390529091506000548310612c935792915050565b50600082815260046020908152604091829020825160608101845290546001600160a01b0381168252600160a01b810467ffffffffffffffff1692820192909252600160e01b90910460ff161580159282019290925290612cf45792915050565b61162183613a0c565b600a546001600160a01b03163314612d455760405162461bcd60e51b815260206004820181905260248201526000805160206153c883398151915260448201526064016112e7565b600a54600160a01b900460ff1615612d5f5761138e613dfb565b61138e613ea1565b601d5460609060ff1615612db757612d7d613f29565b612d90612d8b846001615254565b613f38565b604051602001612da19291906150a4565b6040516020818303038152906040529050919050565b6110eb613f29565b600a546000906001600160a01b03163314612e0a5760405162461bcd60e51b815260206004820181905260248201526000805160206153c883398151915260448201526064016112e7565b5060215490565b600a546001600160a01b03163314612e595760405162461bcd60e51b815260206004820181905260248201526000805160206153c883398151915260448201526064016112e7565b601855565b60005b81518114611e6e57612e9b828281518110612e8c57634e487b7160e01b600052603260045260246000fd5b60200260200101516001614086565b612ea48161531d565b9050612e61565b600a546001600160a01b03163314612ef35760405162461bcd60e51b815260206004820181905260248201526000805160206153c883398151915260448201526064016112e7565b601395909555601493909355602155602291909155602391909155601c55565b6000611390613b41565b600a546001600160a01b03163314612f655760405162461bcd60e51b815260206004820181905260248201526000805160206153c883398151915260448201526064016112e7565b601a55565b60128054612f77906152e2565b80601f0160208091040260200160405190810160405280929190818152602001828054612fa3906152e2565b8015612ff05780601f10612fc557610100808354040283529160200191612ff0565b820191906000526020600020905b815481529060010190602001808311612fd357829003601f168201915b505050505081565b60168054612f77906152e2565b600a546001600160a01b0316331461304d5760405162461bcd60e51b815260206004820181905260248201526000805160206153c883398151915260448201526064016112e7565b6001600160a01b0381166130c95760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f646472657373000000000000000000000000000000000000000000000000000060648201526084016112e7565b61159d81613b8b565b600a54600160a01b900460ff161561311f5760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b60448201526064016112e7565b6131276139c6565b6131655760405162461bcd60e51b815260206004820152600f60248201526e73616c65206e6f742061637469766560881b60448201526064016112e7565b61316e8361381c565b613179338383611f84565b8061318a575061318a3383836119bb565b6131d65760405162461bcd60e51b815260206004820152601960248201527f77616c6c6574206e6f742070617274206f6620616e7920776c0000000000000060448201526064016112e7565b6131e1338383611f84565b15613228576131f28360195461427c565b60408051338152602081018590527fff56e1f8f2168e97f5ce725d6967de779a8c7856c4cc69956f67847c6a6fbf029101611587565b6132333383836119bb565b1561129b5761324483601a5461427c565b60408051338152602081018590527f7e0fc1605c9ff05508a4918f71bc0d8044b561ba4aba9b19560271fe5f50e24b910160405180910390a16015546040516370a0823160e01b81523360048201526001600160a01b039091169060019082906370a082319060240160206040518083038186803b1580156132c557600080fd5b505afa1580156132d9573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906132fd9190614fb0565b1015612b9b576040517f40f766b8000000000000000000000000000000000000000000000000000000008152600160048201523360248201526001600160a01b038216906340f766b890604401600060405180830381600087803b15801561336457600080fd5b505af1158015613378573d6000803e3d6000fd5b5050505050505050565b60006001600160e01b0319821663152a902d60e11b14806110eb57506110eb8261446c565b60008054821080156110eb575050600090815260046020526040902054600160e01b900460ff161590565b600082815260066020526040808220805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b600b546001600160a01b0384166000908152600d6020526040812054909183916134659086615280565b61346f919061526c565b613479919061529f565b949350505050565b804710156134d15760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e636500000060448201526064016112e7565b6000826001600160a01b03168260405160006040518083038185875af1925050503d806000811461351e576040519150601f19603f3d011682016040523d82523d6000602084013e613523565b606091505b505090508061129b5760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d6179206861766520726576657274656400000000000060648201526084016112e7565b6000826135a785846144d5565b14949350505050565b60006135bb82613a0c565b9050836001600160a01b031681600001516001600160a01b03161461360c576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000336001600160a01b038616148061362a575061362a8533610ffa565b8061364557503361363a84611183565b6001600160a01b0316145b90508061366557604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b0384166136a5576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6136b1600084876133d2565b6001600160a01b038581166000908152600560209081526040808320805467ffffffffffffffff1980821667ffffffffffffffff92831660001901831617909255898616808652838620805493841693831660019081018416949094179055898652600490945282852080546001600160e01b031916909417600160a01b42909216919091021783558701808452922080549193909116613787576000548214613787578054602086015167ffffffffffffffff16600160a01b026001600160e01b03199091166001600160a01b038a16171781555b50505082846001600160a01b0316866001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45b5050505050565b60245460009062010000900460ff1680156137f85750600a54600160a01b900460ff16155b8015613807575060245460ff16155b801561139057506013546000545b1415905090565b6000811161386e5760405162461bcd60e51b81526004016112e79060208082526004908201527f7a65726f00000000000000000000000000000000000000000000000000000000604082015260600190565b33321461159d5760405162461bcd60e51b815260206004820152601560248201527f6e6f7420636f6e7472616374206d696e7461626c65000000000000000000000060448201526064016112e7565b6013546138cb906001615254565b816138d560005490565b6138df9190615254565b10612c445760405162461bcd60e51b815260206004820152601160248201527f6d617820746f6b656e73206d696e74656400000000000000000000000000000060448201526064016112e7565b611e6e82826040518060200160405280600081525061454f565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fa9059cbb0000000000000000000000000000000000000000000000000000000017905261129b90849061455c565b60245460009060ff1680156139e55750600a54600160a01b900460ff16155b80156139fa575060245462010000900460ff16155b80156113905750601454600054613815565b604080516060810182526000808252602082018190529181019190915281600054811015613b0f57600081815260046020908152604091829020825160608101845290546001600160a01b0381168252600160a01b810467ffffffffffffffff1692820192909252600160e01b90910460ff16151591810182905290613b0d5780516001600160a01b031615613aa3579392505050565b5060001901600081815260046020908152604091829020825160608101845290546001600160a01b038116808352600160a01b820467ffffffffffffffff1693830193909352600160e01b900460ff1615159281019290925215613b08579392505050565b613aa3565b505b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b602454600090610100900460ff168015613b655750600a54600160a01b900460ff16155b8015613807575060245462010000900460ff161580156113905750601354600054613815565b600a80546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6127106bffffffffffffffffffffffff82161115613c705760405162461bcd60e51b815260206004820152602a60248201527f455243323938313a20726f79616c7479206665652077696c6c2065786365656460448201527f2073616c6550726963650000000000000000000000000000000000000000000060648201526084016112e7565b6001600160a01b038216613cc65760405162461bcd60e51b815260206004820152601960248201527f455243323938313a20696e76616c69642072656365697665720000000000000060448201526064016112e7565b604080518082019091526001600160a01b039092168083526bffffffffffffffffffffffff9091166020909201829052600160a01b90910217600855565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a0290613d399033908990889088906004016150fb565b602060405180830381600087803b158015613d5357600080fd5b505af1925050508015613d83575060408051601f3d908101601f19168201909252613d8091810190614ee2565b60015b613dde573d808015613db1576040519150601f19603f3d011682016040523d82523d6000602084013e613db6565b606091505b508051613dd6576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050949350505050565b600a54600160a01b900460ff16613e545760405162461bcd60e51b815260206004820152601460248201527f5061757361626c653a206e6f742070617573656400000000000000000000000060448201526064016112e7565b600a805460ff60a01b191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b600a54600160a01b900460ff1615613eee5760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b60448201526064016112e7565b600a805460ff60a01b1916600160a01b1790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258613e843390565b606060168054611100906152e2565b606081613f7857505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b8115613fa25780613f8c8161531d565b9150613f9b9050600a8361526c565b9150613f7c565b60008167ffffffffffffffff811115613fcb57634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015613ff5576020820181803683370190505b5090505b84156134795761400a60018361529f565b9150614017600a86615338565b614022906030615254565b60f81b81838151811061404557634e487b7160e01b600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a90535061407f600a8661526c565b9450613ff9565b600061409183613a0c565b805190915082156140f7576000336001600160a01b03831614806140ba57506140ba8233610ffa565b806140d55750336140ca86611183565b6001600160a01b0316145b9050806140f557604051632ce44b5f60e11b815260040160405180910390fd5b505b614103600085836133d2565b6001600160a01b038082166000818152600560209081526040808320805470010000000000000000000000000000000060001967ffffffffffffffff80841691909101811667ffffffffffffffff19841681178390048216600190810183169093027fffffffffffffffff0000000000000000ffffffffffffffff0000000000000000909416179290921783558b8652600490945282852080547fffffff00ffffffffffffffffffffffffffffffffffffffffffffffffffffffff42909316600160a01b026001600160e01b03199091169097179690961716600160e01b178555918901808452922080549194909116614232576000548214614232578054602087015167ffffffffffffffff16600160a01b026001600160e01b03199091166001600160a01b038716171781555b5050604051869250600091506001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a4505060018054810190555050565b600a54600160a01b900460ff16156142c95760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b60448201526064016112e7565b6142d4816001615254565b82106143225760405162461bcd60e51b815260206004820152601760248201527f7174792065786365656473206d6178207065722074786e00000000000000000060448201526064016112e7565b816017546143309190615280565b341461436c5760405162461bcd60e51b815260206004820152600b60248201526a77726f6e672076616c756560a81b60448201526064016112e7565b3360009081526005602052604090205468010000000000000000900467ffffffffffffffff1661439d826001615254565b6143a78483615254565b106143f45760405162461bcd60e51b815260206004820181905260248201527f717479207065722077616c6c657420776f756c6420626520657863656564656460448201526064016112e7565b601454614402906001615254565b8361440c60005490565b6144169190615254565b106144635760405162461bcd60e51b815260206004820152601960248201527f616c6c2070726573616c6520746f6b656e73206d696e7465640000000000000060448201526064016112e7565b61129b836138bd565b60006001600160e01b031982166380ac58cd60e01b148061449d57506001600160e01b03198216635b5e139f60e01b145b806110eb57507f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b03198316146110eb565b600081815b8451811015611f7c57600085828151811061450557634e487b7160e01b600052603260045260246000fd5b6020026020010151905080831161452b576000838152602082905260409020925061453c565b600081815260208490526040902092505b50806145478161531d565b9150506144da565b61129b8383836001614641565b60006145b1826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166148549092919063ffffffff16565b80519091501561129b57808060200190518101906145cf9190614e44565b61129b5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f7420737563636565640000000000000000000000000000000000000000000060648201526084016112e7565b6000546001600160a01b038516614684576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b836146bb576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6001600160a01b038516600081815260056020908152604080832080547fffffffffffffffffffffffffffffffff00000000000000000000000000000000811667ffffffffffffffff8083168c0181169182176801000000000000000067ffffffffffffffff1990941690921783900481168c01811690920217909155858452600490925290912080546001600160e01b031916909217600160a01b42909216919091021790558080850183801561477c57506001600160a01b0387163b15155b15614805575b60405182906001600160a01b038916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a46147cd6000888480600101955088613d04565b6147ea576040516368d2bf6b60e11b815260040160405180910390fd5b8082141561478257826000541461480057600080fd5b61484b565b5b6040516001830192906001600160a01b038916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a480821415614806575b506000556137cc565b60606134798484600085856001600160a01b0385163b6148b65760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016112e7565b600080866001600160a01b031685876040516148d29190615088565b60006040518083038185875af1925050503d806000811461490f576040519150601f19603f3d011682016040523d82523d6000602084013e614914565b606091505b509150915061492482828661492f565b979650505050505050565b6060831561493e575081611621565b82511561494e5782518084602001fd5b8160405162461bcd60e51b81526004016112e791906151da565b828054614974906152e2565b90600052602060002090601f01602090048101928261499657600085556149dc565b82601f106149af57805160ff19168380011785556149dc565b828001600101855582156149dc579182015b828111156149dc5782518255916020019190600101906149c1565b506149e8929150614a60565b5090565b8280546149f8906152e2565b90600052602060002090601f016020900481019282614a1a57600085556149dc565b82601f10614a335782800160ff198235161785556149dc565b828001600101855582156149dc579182015b828111156149dc578235825591602001919060010190614a45565b5b808211156149e85760008155600101614a61565b600067ffffffffffffffff831115614a8f57614a8f615378565b614aa2601f8401601f1916602001615223565b9050828152838383011115614ab657600080fd5b828260208301376000602084830101529392505050565b60008083601f840112614ade578182fd5b50813567ffffffffffffffff811115614af5578182fd5b6020830191508360208260051b850101111561178357600080fd5b600082601f830112614b20578081fd5b61162183833560208501614a75565b600060208284031215614b40578081fd5b81356116218161538e565b60008060408385031215614b5d578081fd5b8235614b688161538e565b91506020830135614b788161538e565b809150509250929050565b600080600060608486031215614b97578081fd5b8335614ba28161538e565b92506020840135614bb28161538e565b929592945050506040919091013590565b60008060008060808587031215614bd8578081fd5b8435614be38161538e565b93506020850135614bf38161538e565b925060408501359150606085013567ffffffffffffffff811115614c15578182fd5b8501601f81018713614c25578182fd5b614c3487823560208401614a75565b91505092959194509250565b600080600060408486031215614c54578283fd5b8335614c5f8161538e565b9250602084013567ffffffffffffffff811115614c7a578283fd5b614c8686828701614acd565b9497909650939450505050565b60008060408385031215614ca5578182fd5b8235614cb08161538e565b91506020830135614b78816153a3565b60008060408385031215614cd2578182fd5b8235614cdd8161538e565b946020939093013593505050565b600080600060608486031215614cff578081fd5b8335614d0a8161538e565b95602085013595506040909401359392505050565b60008060408385031215614d31578182fd5b8235614d3c8161538e565b915060208301356bffffffffffffffffffffffff81168114614b78578182fd5b60008060208385031215614d6e578182fd5b823567ffffffffffffffff811115614d84578283fd5b614d9085828601614acd565b90969095509350505050565b60006020808385031215614dae578182fd5b823567ffffffffffffffff80821115614dc5578384fd5b818501915085601f830112614dd8578384fd5b813581811115614dea57614dea615378565b8060051b9150614dfb848301615223565b8181528481019084860184860187018a1015614e15578788fd5b8795505b83861015614e37578035835260019590950194918601918601614e19565b5098975050505050505050565b600060208284031215614e55578081fd5b8151611621816153a3565b60008060408385031215614e72578182fd5b8235614e7d816153a3565b9150602083013567ffffffffffffffff811115614e98578182fd5b614ea485828601614b10565b9150509250929050565b600060208284031215614ebf578081fd5b5035919050565b600060208284031215614ed7578081fd5b8135611621816153b1565b600060208284031215614ef3578081fd5b8151611621816153b1565b60008060408385031215614b5d578182fd5b60008060208385031215614f22578182fd5b823567ffffffffffffffff80821115614f39578384fd5b818501915085601f830112614f4c578384fd5b813581811115614f5a578485fd5b866020828501011115614f6b578485fd5b60209290920196919550909350505050565b600060208284031215614f8e578081fd5b813567ffffffffffffffff811115614fa4578182fd5b61347984828501614b10565b600060208284031215614fc1578081fd5b5051919050565b600080600060408486031215614fdc578081fd5b83359250602084013567ffffffffffffffff811115614c7a578182fd5b6000806040838503121561500b578182fd5b50508035926020909101359150565b60008060008060008060c08789031215615032578384fd5b505084359660208601359650604086013595606081013595506080810135945060a0013592509050565b600081518084526150748160208601602086016152b6565b601f01601f19169290920160200192915050565b6000825161509a8184602087016152b6565b9190910192915050565b600083516150b68184602088016152b6565b8351908301906150ca8183602088016152b6565b7f2e6a736f6e0000000000000000000000000000000000000000000000000000009101908152600501949350505050565b60006001600160a01b0380871683528086166020840152508360408301526080606083015261512d608083018461505c565b9695505050505050565b6020808252825182820181905260009190848201906040850190845b818110156125cb5761518f83855180516001600160a01b0316825260208082015167ffffffffffffffff16908301526040908101511515910152565b9284019260609290920191600101615153565b6020808252825182820181905260009190848201906040850190845b818110156125cb578351835292840192918401916001016151be565b602081526000611621602083018461505c565b81516001600160a01b0316815260208083015167ffffffffffffffff1690820152604080830151151590820152606081016110eb565b604051601f8201601f1916810167ffffffffffffffff8111828210171561524c5761524c615378565b604052919050565b600082198211156152675761526761534c565b500190565b60008261527b5761527b615362565b500490565b600081600019048311821515161561529a5761529a61534c565b500290565b6000828210156152b1576152b161534c565b500390565b60005b838110156152d15781810151838201526020016152b9565b83811115612b9b5750506000910152565b600181811c908216806152f657607f821691505b6020821081141561531757634e487b7160e01b600052602260045260246000fd5b50919050565b60006000198214156153315761533161534c565b5060010190565b60008261534757615347615362565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b038116811461159d57600080fd5b801515811461159d57600080fd5b6001600160e01b03198116811461159d57600080fdfe4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572a26469706673582212209667cada997f348f33292d201676b5d9a46939650c822021fe1eb157f74c6e0c64736f6c63430008040033

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

00000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000000000000000000000000000000000000000120000000000000000000000000ff401ef3310884f0b1dce11105331708e5baf2a2000000000000000000000000000000000000000000000000000000000000018000000000000000000000000000000000000000000000000000000000000001e000000000000000000000000006d0f7f3f6d64af82682f087177991a7cfb175d00000000000000000000000000000000000000000000000000000000000000035697066733a2f2f516d574b534d786865397234785642794665464b464b71313469436659764c696f56725a46684d546a324e45537900000000000000000000000000000000000000000000000000000000000000000000000000000000000035697066733a2f2f516d56447542746b627a3736674e37466473436a596e5459744152593635697966614b394c79656655586a6e58560000000000000000000000000000000000000000000000000000000000000000000000000000000000000200000000000000000000000006d0f7f3f6d64af82682f087177991a7cfb175d00000000000000000000000003be1a8ec35f4864e8326de7c511dde497c90d20e0000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000235a00000000000000000000000000000000000000000000000000000000000003b6

-----Decoded View---------------
Arg [0] : _contractURI (string): ipfs://QmWKSMxhe9r4xVByFeFKFKq14iCfYvLioVrZFhMTj2NESy
Arg [1] : baseURI (string): ipfs://QmVDuBtkbz76gN7FdsCjYnTYtARY65iyfaK9LyefUXjnXV
Arg [2] : _myraiCrystalAddr (address): 0xfF401eF3310884F0B1dCe11105331708E5BAf2a2
Arg [3] : _payees (address[]): 0x06D0F7F3f6d64aF82682f087177991a7cFB175d0,0x3be1A8eC35F4864e8326DE7C511DDE497c90D20e
Arg [4] : _shares (uint256[]): 9050,950
Arg [5] : _admin (address): 0x06D0F7F3f6d64aF82682f087177991a7cFB175d0

-----Encoded View---------------
18 Constructor Arguments found :
Arg [0] : 00000000000000000000000000000000000000000000000000000000000000c0
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000120
Arg [2] : 000000000000000000000000ff401ef3310884f0b1dce11105331708e5baf2a2
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000180
Arg [4] : 00000000000000000000000000000000000000000000000000000000000001e0
Arg [5] : 00000000000000000000000006d0f7f3f6d64af82682f087177991a7cfb175d0
Arg [6] : 0000000000000000000000000000000000000000000000000000000000000035
Arg [7] : 697066733a2f2f516d574b534d786865397234785642794665464b464b713134
Arg [8] : 69436659764c696f56725a46684d546a324e4553790000000000000000000000
Arg [9] : 0000000000000000000000000000000000000000000000000000000000000035
Arg [10] : 697066733a2f2f516d56447542746b627a3736674e37466473436a596e545974
Arg [11] : 4152593635697966614b394c79656655586a6e58560000000000000000000000
Arg [12] : 0000000000000000000000000000000000000000000000000000000000000002
Arg [13] : 00000000000000000000000006d0f7f3f6d64af82682f087177991a7cfb175d0
Arg [14] : 0000000000000000000000003be1a8ec35f4864e8326de7c511dde497c90d20e
Arg [15] : 0000000000000000000000000000000000000000000000000000000000000002
Arg [16] : 000000000000000000000000000000000000000000000000000000000000235a
Arg [17] : 00000000000000000000000000000000000000000000000000000000000003b6


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.