ETH Price: $3,355.35 (+0.92%)

Contract

0xF9C12BD715Df34c7850766A48178648AC0cB200d
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

More Info

Private Name Tags

TokenTracker

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Set Approval For...211448812024-11-08 19:01:3514 days ago1731092495IN
0xF9C12BD7...AC0cB200d
0 ETH0.0007728716.76928802
Set Approval For...210504652024-10-26 14:42:5927 days ago1729953779IN
0xF9C12BD7...AC0cB200d
0 ETH0.000322556.99862647
Set Approval For...210504382024-10-26 14:37:3527 days ago1729953455IN
0xF9C12BD7...AC0cB200d
0 ETH0.00032176.98017518
Safe Transfer Fr...210406902024-10-25 5:58:5929 days ago1729835939IN
0xF9C12BD7...AC0cB200d
0 ETH0.000213214.5454754
Set Approval For...209663712024-10-14 21:04:3539 days ago1728939875IN
0xF9C12BD7...AC0cB200d
0 ETH0.0007568916.42242322
Set Approval For...209663702024-10-14 21:04:2339 days ago1728939863IN
0xF9C12BD7...AC0cB200d
0 ETH0.0007636416.53868069
Safe Transfer Fr...209291032024-10-09 16:02:4744 days ago1728489767IN
0xF9C12BD7...AC0cB200d
0 ETH0.0029153745.50230286
Transfer From209290002024-10-09 15:42:1144 days ago1728488531IN
0xF9C12BD7...AC0cB200d
0 ETH0.0025561241.68435046
Transfer From209289472024-10-09 15:31:3544 days ago1728487895IN
0xF9C12BD7...AC0cB200d
0 ETH0.0020162532.88037447
Safe Transfer Fr...209244112024-10-09 0:21:4745 days ago1728433307IN
0xF9C12BD7...AC0cB200d
0 ETH0.0010728315.57752732
Set Approval For...209243622024-10-09 0:11:5945 days ago1728432719IN
0xF9C12BD7...AC0cB200d
0 ETH0.0006332313.71442748
Transfer From209243352024-10-09 0:06:3545 days ago1728432395IN
0xF9C12BD7...AC0cB200d
0 ETH0.0011270818.38004369
Transfer From209239832024-10-08 22:55:3545 days ago1728428135IN
0xF9C12BD7...AC0cB200d
0 ETH0.0010129920.6645904
Safe Transfer Fr...209230082024-10-08 19:39:4745 days ago1728416387IN
0xF9C12BD7...AC0cB200d
0 ETH0.0040035962.48692394
Transfer From209172292024-10-08 0:19:5946 days ago1728346799IN
0xF9C12BD7...AC0cB200d
0 ETH0.0007000611.41644322
Set Approval For...209122462024-10-07 7:39:5947 days ago1728286799IN
0xF9C12BD7...AC0cB200d
0 ETH0.000163116.21137799
Set Approval For...209122452024-10-07 7:39:4747 days ago1728286787IN
0xF9C12BD7...AC0cB200d
0 ETH0.000152626.31283661
Set Approval For...209122452024-10-07 7:39:4747 days ago1728286787IN
0xF9C12BD7...AC0cB200d
0 ETH0.000153156.31283661
Transfer From208853832024-10-03 13:47:3550 days ago1727963255IN
0xF9C12BD7...AC0cB200d
0 ETH0.00048697.94020999
Transfer From208603292024-09-30 1:58:3554 days ago1727661515IN
0xF9C12BD7...AC0cB200d
0 ETH0.000266176.01930706
Safe Transfer Fr...208464032024-09-28 3:19:4756 days ago1727493587IN
0xF9C12BD7...AC0cB200d
0 ETH0.000626729.1
Transfer From208217722024-09-24 16:52:5959 days ago1727196779IN
0xF9C12BD7...AC0cB200d
0 ETH0.0015533725.32688796
Transfer From208214262024-09-24 15:42:4759 days ago1727192567IN
0xF9C12BD7...AC0cB200d
0 ETH0.0014453723.56597601
Transfer From208212782024-09-24 15:12:5959 days ago1727190779IN
0xF9C12BD7...AC0cB200d
0 ETH0.0017391628.36158242
Safe Transfer Fr...208211572024-09-24 14:48:4759 days ago1727189327IN
0xF9C12BD7...AC0cB200d
0 ETH0.0021990634.31583462
View all transactions

Latest 8 internal transactions

Advanced mode:
Parent Transaction Hash Block From To
145416162022-04-07 23:07:51960 days ago1649372871
0xF9C12BD7...AC0cB200d
125.43 ETH
145296892022-04-06 2:27:16962 days ago1649212036
0xF9C12BD7...AC0cB200d
103.23 ETH
144975522022-04-01 1:55:28967 days ago1648778128
0xF9C12BD7...AC0cB200d
172.05 ETH
144838892022-03-29 22:43:51969 days ago1648593831
0xF9C12BD7...AC0cB200d
154.29 ETH
144798172022-03-29 7:39:14970 days ago1648539554
0xF9C12BD7...AC0cB200d
0.01 ETH
144796602022-03-29 7:05:36970 days ago1648537536
0xF9C12BD7...AC0cB200d
0.0316 ETH
144796602022-03-29 7:05:36970 days ago1648537536
0xF9C12BD7...AC0cB200d
0.0052 ETH
144796602022-03-29 7:05:36970 days ago1648537536
0xF9C12BD7...AC0cB200d
0.0032 ETH
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
Permies

Compiler Version
v0.8.11+commit.d7f03943

Optimization Enabled:
Yes with 20000 runs

Other Settings:
default evmVersion, None license
File 1 of 20 : Permies.sol
// SPDX-License-Identifier: None
pragma solidity 0.8.11;

import "@openzeppelin/contracts/finance/PaymentSplitter.sol";
import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol";
import "erc721a/contracts/ERC721A.sol";
import "./Ownable.sol";
import "./ReentrancyGuard.sol";
import './ERC2981ContractWideRoyalties.sol';

/*
                            _
  _ __   ___ _ __ _ __ ___ (_) ___  ___
 | '_ \ / _ \ '__| '_ ` _ \| |/ _ \/ __|
 | |_) |  __/ |  | | | | | | |  __/\__ \
 | .__/ \___|_|  |_| |_| |_|_|\___||___/
 |_|                       by Blockworks

*/

// Custom errors
error MetadataFrozen();
error SupplyReached();
error PresaleNotActive(Permies.SaleStatus currentStatus);
error PublicSaleNotActive(Permies.SaleStatus currentStatus);
error AddressNotPresaleEligible();
error TooManyPerWallet(uint256 limit);
error WrongPriceSent(uint256 sent, uint256 required);
error NotAuthorized();
error TeamReserveReached();

/// @title  Permies
/// @author Dennis Stücken <[email protected]> - @itsdennis_s
contract Permies is ERC721A, Ownable, ReentrancyGuard, PaymentSplitter, ERC2981ContractWideRoyalties {
    using Strings for uint256;

    // Status of the token & token sale
    enum SaleStatus {
        Paused,
        Presale,
        PublicSale,
        SoldOut,
        Revealed
    }

    // Contract events
    event StatusUpdate(SaleStatus _status);
    event BaseURIUpdated(string _newBaseUri);
    event ContractLocked();
    event PermanentURI(string _value, uint256 indexed _id);
    event RoyaltiesUpdated(uint256 value);

    // Metadata base URI
    string public baseURI;
    string private prerevealTokenURI;

    // Max mints per wallet & transaction
    uint256 public maxMints = 1;

    // Mint price & supply
    uint256 public constant mintPrice = 1.11 ether;
    uint256 public maxSupply = 555;

    // Amount of tokens held back for the team
    uint256 private maxMintReserve = 55;
    // Current amount minted by the team
    uint256 private mintReserve = 0;

    // Max mints registry
    mapping(address => uint256) private mintsPerWallet;

    // Merkle root for pre-sale list
    bytes32 public merkleRoot;

    // Contract states
    SaleStatus public status = SaleStatus.Paused;
    bool public isLocked = false;

    /// @notice Constructor
    /// @param _baseURI token metadata base URI
    /// @param _payees payment split payees
    /// @param _shares payment split share percentages
    /// @param _royalties royalty percentage
    constructor(string memory _baseURI, address[] memory _payees, uint256[] memory _shares, uint256 _royalties) ERC721A("Permies", "PERM") PaymentSplitter(_payees, _shares) payable {
        baseURI = _baseURI;
        setRoyalties(_royalties);
    }

    /// @notice structure with some details about the current state of the contract
    struct ContractDetails {
        uint256 maxMints;
        uint256 maxSupply;
        uint256 totalSupply;
        uint256 mintPrice;
        string baseURI;
        bool isLocked;
        SaleStatus status;
    }

    /// @notice helper method that returns relevant contract states all in one call
    function contractDetails() public view returns (ContractDetails memory) {
        ContractDetails memory details;
        details.maxMints = maxMints;
        details.maxSupply = maxSupply;
        details.totalSupply = totalSupply();
        details.mintPrice = mintPrice;
        details.baseURI = baseURI;
        details.status = status;
        details.isLocked = isLocked;
        return details;
    }

    /// @inheritdoc	ERC165
    function supportsInterface(bytes4 interfaceId) public view virtual override(ERC721A, ERC2981Base) returns (bool) {
        return super.supportsInterface(interfaceId);
    }

    /// @notice Modify contract status
    /// @param _status new contract status (@see SaleStatus)
    function setStatus(SaleStatus _status) public onlyOwner {
        status = _status;
        emit StatusUpdate(_status);
    }

    /// @notice Locking the contract prevents future baseURI changes and therefore freezes the metadata URLs for all tokens.
    ///         lockContract also emits PermanentURI event for every token for exchanges to be aware of frozen Metadata.
    function lockContract() public onlyOwner {
        isLocked = true;

        uint256 s = totalSupply();
        for (uint i = 0; i < s; ++i) {
            emit PermanentURI(tokenURI(i), i);
        }

        emit ContractLocked();
    }

    /// @notice Set metadata base URI
    /// @param newBaseURI new base URI
    function setBaseURI(string memory newBaseURI) public onlyOwner {
        if (isLocked) revert MetadataFrozen();

        baseURI = newBaseURI;
        emit BaseURIUpdated(newBaseURI);
    }

    /// @notice Update amount of mints per wallet
    /// @param _maxMints new number of mints allowed
    function setMaxMints(uint256 _maxMints) external onlyOwner {
        maxMints = _maxMints;
    }

    /// @notice Set pre-sale merkle root.
    /// @param _merkleRoot merkle root hash
    function setMerkleRoot(bytes32 _merkleRoot) external onlyOwner {
        merkleRoot = _merkleRoot;
    }

    /// @notice Set prerevealed token URI
    /// @param _newTokenURI uri of the prereveal metadata
    function setPrerevealTokenURI(string memory _newTokenURI) external onlyOwner {
        prerevealTokenURI = _newTokenURI;
    }

    /// @notice Allows to set the royalties on the contract
    /// @param value updated royalties (between 0 and 10000)
    function setRoyalties(uint256 value) public onlyOwner {
        _setRoyalties(owner(), value);
        emit RoyaltiesUpdated(value);
    }

    /// @notice Check if address is pre-sale eligible
    /// @param _addr address to check
    /// @param _merkleProof proof to verify against
    function isPresaleEligible(address _addr, bytes32[] calldata _merkleProof) public view returns (bool) {
        bytes32 leaf = keccak256(abi.encodePacked(_addr));

        // Verify merkle proof
        return MerkleProof.verify(_merkleProof, merkleRoot, leaf);
    }

    /// @notice Mint token in presale mode
    /// @param amount number of tokens to mint
    /// @param _merkleProof proof to verify if address is eligible for presale
    function mintPresale(uint256 amount, bytes32[] calldata _merkleProof) external payable nonReentrant {
        if (status != SaleStatus.Presale) revert PresaleNotActive(status);

        // Check if address is allowed to mint in presale status
        if (!isPresaleEligible(msg.sender, _merkleProof)) revert AddressNotPresaleEligible();

        uint256 s = totalSupply();
        if (s + amount > maxSupply) revert SupplyReached();
        if (amount > maxMints) revert TooManyPerWallet(maxMints);
        if (mintsPerWallet[msg.sender] + amount > maxMints) revert TooManyPerWallet(maxMints);
        if (msg.value < mintPrice * amount) revert WrongPriceSent(msg.value, mintPrice * amount);

        _safeMint(msg.sender, amount);
        mintsPerWallet[msg.sender] += amount;
        delete s;
    }

    /// @notice Mint token
    /// @param amount number of tokens to mint
    function mint(uint256 amount) external payable nonReentrant {
        if (status != SaleStatus.PublicSale) revert PublicSaleNotActive(status);

        uint256 s = totalSupply();
        if (s + amount > maxSupply) revert SupplyReached();
        if (amount > maxMints) revert TooManyPerWallet(maxMints);
        if (mintsPerWallet[msg.sender] + amount > maxMints) revert TooManyPerWallet(maxMints);
        if (msg.value < mintPrice * amount) revert WrongPriceSent(msg.value, mintPrice * amount);

        _safeMint(msg.sender, amount);
        mintsPerWallet[msg.sender] += amount;
        delete s;
    }

    /// @notice Function used by Blockworks to mint a total of "maxMintReserve" tokens for the team.
    ///         maxMintReserve is set to a fix limit of 55.
    /// @param toAddresses addresses to send the tokens to
    /// @param amount number of tokens to mint per address
    function teamMint(address[] calldata toAddresses, uint256 amount) public onlyOwner nonReentrant {
        uint total = 0;
        uint len = toAddresses.length;
        uint256 s = totalSupply();
        for (uint i = 0; i < len; ++i) {
            total += amount;
        }
        if (s + total >= maxSupply) revert SupplyReached();
        if (total + mintReserve > maxMintReserve) revert TeamReserveReached();

        for (uint256 i = 0; i < len; i++) {
            _safeMint(toAddresses[i], amount);
        }

        mintReserve = mintReserve + total;

        delete total;
        delete s;
        delete len;
    }

    /// @notice Retrieve token metadata url
    /// @param tokenId id of the token to retrieve metadata for
    function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
        require(_exists(tokenId), "ERC721Metadata: Nonexistent token");
        if (status != SaleStatus.Revealed) return prerevealTokenURI;

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

    /// @notice Release contract funds through payment splitter
    /// @param addresses payable addresses to send the split to
    function withdrawSplit(address[] calldata addresses) external onlyOwner nonReentrant {
        for (uint256 i = 0; i < addresses.length; i++) {
            address payable wallet = payable(addresses[i]);
            release(wallet);
        }
    }

    /// @notice Release contract funds funds to contract owner
    function withdrawFunds() external onlyOwner nonReentrant {
        (bool success, ) = payable(msg.sender).call{value: address(this).balance}("");
        require(success);
    }
}

File 2 of 20 : 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 3 of 20 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

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

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

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

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

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

    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

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

File 4 of 20 : 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 5 of 20 : 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 6 of 20 : 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 7 of 20 : IERC721Enumerable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Enumerable.sol)

pragma solidity ^0.8.0;

import "../IERC721.sol";

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

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

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

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

pragma solidity ^0.8.0;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize, which returns 0 for contracts in
        // construction, since the code is only stored at the end of the
        // constructor execution.

        uint256 size;
        assembly {
            size := extcodesize(account)
        }
        return size > 0;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

File 11 of 20 : 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 12 of 20 : MerkleProof.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/cryptography/MerkleProof.sol)

pragma solidity ^0.8.0;

/**
 * @dev These functions deal with verification of Merkle Trees proofs.
 *
 * The proofs can be generated using the JavaScript library
 * https://github.com/miguelmota/merkletreejs[merkletreejs].
 * Note: the hashing algorithm should be keccak256 and pair sorting should be enabled.
 *
 * See `test/utils/cryptography/MerkleProof.test.js` for some examples.
 */
library MerkleProof {
    /**
     * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree
     * defined by `root`. For this, a `proof` must be provided, containing
     * sibling hashes on the branch from the leaf to the root of the tree. Each
     * pair of leaves and each pair of pre-images are assumed to be sorted.
     */
    function verify(
        bytes32[] memory proof,
        bytes32 root,
        bytes32 leaf
    ) internal pure returns (bool) {
        return processProof(proof, leaf) == root;
    }

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

File 13 of 20 : 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 14 of 20 : IERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)

pragma solidity ^0.8.0;

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

File 15 of 20 : ERC2981Base.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.11;

import '@openzeppelin/contracts/utils/introspection/ERC165.sol';
import './IERC2981Royalties.sol';

/// @dev This is a contract used to add ERC2981 support to ERC721 and 1155
abstract contract ERC2981Base is ERC165, IERC2981Royalties {
    struct RoyaltyInfo {
        address recipient;
        uint24 amount;
    }

    /// @inheritdoc	ERC165
    function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
        return
        interfaceId == type(IERC2981Royalties).interfaceId ||
        super.supportsInterface(interfaceId);
    }
}

File 16 of 20 : ERC2981ContractWideRoyalties.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.11;

import '@openzeppelin/contracts/utils/introspection/ERC165.sol';
import './ERC2981Base.sol';

/// @dev This is a contract used to add ERC2981 support to ERC721 and 1155
/// @dev This implementation has the same royalties for each and every tokens
abstract contract ERC2981ContractWideRoyalties is ERC2981Base {
    RoyaltyInfo private _royalties;

    /// @dev Sets token royalties
    /// @param recipient recipient of the royalties
    /// @param value percentage (using 2 decimals - 10000 = 100, 0 = 0)
    function _setRoyalties(address recipient, uint256 value) internal {
        require(value <= 10000, 'ERC2981Royalties: Too high');
        _royalties = RoyaltyInfo(recipient, uint24(value));
    }

    /// @inheritdoc	IERC2981Royalties
    function royaltyInfo(uint256, uint256 value) external view override returns (address receiver, uint256 royaltyAmount) {
        RoyaltyInfo memory royalties = _royalties;
        receiver = royalties.recipient;
        royaltyAmount = (value * royalties.amount) / 10000;
    }
}

File 17 of 20 : IERC2981Royalties.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.11;

/// @title IERC2981Royalties
/// @dev Interface for the ERC2981 - Token Royalty standard
interface IERC2981Royalties {
    /// @notice Called with the sale price to determine how much royalty
    //          is owed and to whom.
    /// @param _tokenId - the NFT asset queried for royalty information
    /// @param _value - the sale price of the NFT asset specified by _tokenId
    /// @return _receiver - address of who should be sent the royalty payment
    /// @return _royaltyAmount - the royalty payment amount for value sale price
    function royaltyInfo(uint256 _tokenId, uint256 _value) external view
        returns (address _receiver, uint256 _royaltyAmount);
}

File 18 of 20 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (access/Ownable.sol)
pragma solidity ^0.8.11;

import "@openzeppelin/contracts/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 19 of 20 : ReentrancyGuard.sol
// SPDX-License-Identifier: AGPL-3.0-only
pragma solidity >=0.8.11;

/// @notice Gas optimized reentrancy protection for smart contracts.
/// @author Solmate (https://github.com/Rari-Capital/solmate/blob/main/src/utils/ReentrancyGuard.sol)
/// @author Modified from OpenZeppelin (https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/security/ReentrancyGuard.sol)
abstract contract ReentrancyGuard {
    uint256 private reentrancyStatus = 1;

    modifier nonReentrant() {
        require(reentrancyStatus == 1, "REENTRANCY");

        reentrancyStatus = 2;

        _;

        reentrancyStatus = 1;
    }
}

File 20 of 20 : 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/token/ERC721/extensions/IERC721Enumerable.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 MintedQueryForZeroAddress();
error BurnedQueryForZeroAddress();
error AuxQueryForZeroAddress();
error MintToZeroAddress();
error MintZeroQuantity();
error OwnerIndexOutOfBounds();
error OwnerQueryForNonexistentToken();
error TokenIndexOutOfBounds();
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 See {IERC721Enumerable-totalSupply}.
     * @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) {
        if (owner == address(0)) revert MintedQueryForZeroAddress();
        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) {
        if (owner == address(0)) revert BurnedQueryForZeroAddress();
        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) {
        if (owner == address(0)) revert AuxQueryForZeroAddress();
        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 {
        if (owner == address(0)) revert AuxQueryForZeroAddress();
        _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 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);

        bool isApprovedOrOwner = (_msgSender() == prevOwnership.addr ||
            isApprovedForAll(prevOwnership.addr, _msgSender()) ||
            getApproved(tokenId) == _msgSender());

        if (!isApprovedOrOwner) revert TransferCallerNotOwnerNorApproved();
        if (prevOwnership.addr != from) revert TransferFromIncorrectOwner();
        if (to == address(0)) revert TransferToZeroAddress();

        _beforeTokenTransfers(from, to, tokenId, 1);

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

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

            _ownerships[tokenId].addr = to;
            _ownerships[tokenId].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;
            if (_ownerships[nextTokenId].addr == address(0)) {
                // This will suffice for checking _exists(nextTokenId),
                // as a burned slot cannot contain the zero address.
                if (nextTokenId < _currentIndex) {
                    _ownerships[nextTokenId].addr = prevOwnership.addr;
                    _ownerships[nextTokenId].startTimestamp = prevOwnership.startTimestamp;
                }
            }
        }

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

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

        _beforeTokenTransfers(prevOwnership.addr, address(0), tokenId, 1);

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

        // 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[prevOwnership.addr].balance -= 1;
            _addressData[prevOwnership.addr].numberBurned += 1;

            // Keep track of who burned the token, and the timestamp of burning.
            _ownerships[tokenId].addr = prevOwnership.addr;
            _ownerships[tokenId].startTimestamp = uint64(block.timestamp);
            _ownerships[tokenId].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;
            if (_ownerships[nextTokenId].addr == address(0)) {
                // This will suffice for checking _exists(nextTokenId),
                // as a burned slot cannot contain the zero address.
                if (nextTokenId < _currentIndex) {
                    _ownerships[nextTokenId].addr = prevOwnership.addr;
                    _ownerships[nextTokenId].startTimestamp = prevOwnership.startTimestamp;
                }
            }
        }

        emit Transfer(prevOwnership.addr, address(0), tokenId);
        _afterTokenTransfers(prevOwnership.addr, 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 {}
}

Settings
{
  "evmVersion": "london",
  "libraries": {},
  "metadata": {
    "bytecodeHash": "ipfs",
    "useLiteralContent": true
  },
  "optimizer": {
    "enabled": true,
    "runs": 20000
  },
  "remappings": [],
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"_baseURI","type":"string"},{"internalType":"address[]","name":"_payees","type":"address[]"},{"internalType":"uint256[]","name":"_shares","type":"uint256[]"},{"internalType":"uint256","name":"_royalties","type":"uint256"}],"stateMutability":"payable","type":"constructor"},{"inputs":[],"name":"AddressNotPresaleEligible","type":"error"},{"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":"MetadataFrozen","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[{"internalType":"enum Permies.SaleStatus","name":"currentStatus","type":"uint8"}],"name":"PresaleNotActive","type":"error"},{"inputs":[{"internalType":"enum Permies.SaleStatus","name":"currentStatus","type":"uint8"}],"name":"PublicSaleNotActive","type":"error"},{"inputs":[],"name":"SupplyReached","type":"error"},{"inputs":[],"name":"TeamReserveReached","type":"error"},{"inputs":[{"internalType":"uint256","name":"limit","type":"uint256"}],"name":"TooManyPerWallet","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"inputs":[{"internalType":"uint256","name":"sent","type":"uint256"},{"internalType":"uint256","name":"required","type":"uint256"}],"name":"WrongPriceSent","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":false,"internalType":"string","name":"_newBaseUri","type":"string"}],"name":"BaseURIUpdated","type":"event"},{"anonymous":false,"inputs":[],"name":"ContractLocked","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"},{"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":false,"internalType":"string","name":"_value","type":"string"},{"indexed":true,"internalType":"uint256","name":"_id","type":"uint256"}],"name":"PermanentURI","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"RoyaltiesUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"enum Permies.SaleStatus","name":"_status","type":"uint8"}],"name":"StatusUpdate","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"contractDetails","outputs":[{"components":[{"internalType":"uint256","name":"maxMints","type":"uint256"},{"internalType":"uint256","name":"maxSupply","type":"uint256"},{"internalType":"uint256","name":"totalSupply","type":"uint256"},{"internalType":"uint256","name":"mintPrice","type":"uint256"},{"internalType":"string","name":"baseURI","type":"string"},{"internalType":"bool","name":"isLocked","type":"bool"},{"internalType":"enum Permies.SaleStatus","name":"status","type":"uint8"}],"internalType":"struct Permies.ContractDetails","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":[{"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":[],"name":"isLocked","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_addr","type":"address"},{"internalType":"bytes32[]","name":"_merkleProof","type":"bytes32[]"}],"name":"isPresaleEligible","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lockContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"maxMints","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"merkleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes32[]","name":"_merkleProof","type":"bytes32[]"}],"name":"mintPresale","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"mintPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"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":"address payable","name":"account","type":"address"}],"name":"release","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"token","type":"address"},{"internalType":"address","name":"account","type":"address"}],"name":"release","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"token","type":"address"},{"internalType":"address","name":"account","type":"address"}],"name":"released","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"released","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint256","name":"royaltyAmount","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":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"newBaseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_maxMints","type":"uint256"}],"name":"setMaxMints","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_merkleRoot","type":"bytes32"}],"name":"setMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_newTokenURI","type":"string"}],"name":"setPrerevealTokenURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"value","type":"uint256"}],"name":"setRoyalties","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"enum Permies.SaleStatus","name":"_status","type":"uint8"}],"name":"setStatus","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"shares","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"status","outputs":[{"internalType":"enum Permies.SaleStatus","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"toAddresses","type":"address[]"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"teamMint","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":"contract IERC20","name":"token","type":"address"}],"name":"totalReleased","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalReleased","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalShares","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawFunds","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"addresses","type":"address[]"}],"name":"withdrawSplit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]

608060408190526001600981905560145561022b60155560376016556000601755601a805461ffff1916905562004dff388190039081908339810160408190526200004a91620007af565b60408051808201825260078152665065726d69657360c81b6020808301918252835180850190945260048452635045524d60e01b908401528151869386939290916200009991600291620005ae565b508051620000af906003906020840190620005ae565b50506000805550620000c13362000220565b8051825114620001335760405162461bcd60e51b815260206004820152603260248201527f5061796d656e7453706c69747465723a2070617965657320616e6420736861726044820152710cae640d8cadccee8d040dad2e6dac2e8c6d60731b60648201526084015b60405180910390fd5b6000825111620001865760405162461bcd60e51b815260206004820152601a60248201527f5061796d656e7453706c69747465723a206e6f2070617965657300000000000060448201526064016200012a565b60005b8251811015620001f257620001dd838281518110620001ac57620001ac620008c3565b6020026020010151838381518110620001c957620001c9620008c3565b60200260200101516200027260201b60201c565b80620001e981620008ef565b91505062000189565b505084516200020a91506012906020870190620005ae565b50620002168162000460565b5050505062000965565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b038216620002df5760405162461bcd60e51b815260206004820152602c60248201527f5061796d656e7453706c69747465723a206163636f756e74206973207468652060448201526b7a65726f206164647265737360a01b60648201526084016200012a565b60008111620003315760405162461bcd60e51b815260206004820152601d60248201527f5061796d656e7453706c69747465723a2073686172657320617265203000000060448201526064016200012a565b6001600160a01b0382166000908152600c602052604090205415620003ad5760405162461bcd60e51b815260206004820152602b60248201527f5061796d656e7453706c69747465723a206163636f756e7420616c726561647960448201526a206861732073686172657360a81b60648201526084016200012a565b600e8054600181019091557fbb7b4a454dc3493923482f07822329ed19e8244eff582cc204f8554c3620c3fd0180546001600160a01b0319166001600160a01b0384169081179091556000908152600c60205260409020819055600a54620004179082906200090d565b600a55604080516001600160a01b0384168152602081018390527f40c340f65e17194d14ddddb073d3c9f888e3cb52b5aae0c6c7706b4fbc905fac910160405180910390a15050565b6008546001600160a01b03163314620004bc5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016200012a565b620004da620004d36008546001600160a01b031690565b8262000510565b6040518181527f382d6d457eaa3c84d586de142a0d72bac72f2a514a1691f8ccf48feae833ff099060200160405180910390a150565b612710811115620005645760405162461bcd60e51b815260206004820152601a60248201527f45524332393831526f79616c746965733a20546f6f206869676800000000000060448201526064016200012a565b604080518082019091526001600160a01b0390921680835262ffffff909116602090920182905260118054600160a01b9093026001600160b81b0319909316909117919091179055565b828054620005bc9062000928565b90600052602060002090601f016020900481019282620005e057600085556200062b565b82601f10620005fb57805160ff19168380011785556200062b565b828001600101855582156200062b579182015b828111156200062b5782518255916020019190600101906200060e565b50620006399291506200063d565b5090565b5b808211156200063957600081556001016200063e565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b038111828210171562000695576200069562000654565b604052919050565b60006001600160401b03821115620006b957620006b962000654565b5060051b60200190565b600082601f830112620006d557600080fd5b81516020620006ee620006e8836200069d565b6200066a565b82815260059290921b840181019181810190868411156200070e57600080fd5b8286015b84811015620007425780516001600160a01b0381168114620007345760008081fd5b835291830191830162000712565b509695505050505050565b600082601f8301126200075f57600080fd5b8151602062000772620006e8836200069d565b82815260059290921b840181019181810190868411156200079257600080fd5b8286015b8481101562000742578051835291830191830162000796565b60008060008060808587031215620007c657600080fd5b84516001600160401b0380821115620007de57600080fd5b818701915087601f830112620007f357600080fd5b81518181111562000808576200080862000654565b60206200081e601f8301601f191682016200066a565b8281528a828487010111156200083357600080fd5b60005b838110156200085357858101830151828201840152820162000836565b83811115620008655760008385840101525b5090890151909750925050808211156200087e57600080fd5b6200088c88838901620006c3565b94506040870151915080821115620008a357600080fd5b50620008b2878288016200074d565b606096909601519497939650505050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b6000600019821415620009065762000906620008d9565b5060010190565b60008219821115620009235762000923620008d9565b500190565b600181811c908216806200093d57607f821691505b602082108114156200095f57634e487b7160e01b600052602260045260246000fd5b50919050565b61448a80620009756000396000f3fe6080604052600436106103175760003560e01c806370a082311161019a578063b09d28cc116100e1578063d5abeb011161008a578063e985e9c511610064578063e985e9c5146109a5578063f2dc824c146109fb578063f2fde38b14610a1b57600080fd5b8063d5abeb0114610937578063d79779b21461094d578063e33b7de31461099057600080fd5b8063c87b56dd116100bb578063c87b56dd146108b4578063ce7c2ac2146108d4578063d30bfdec1461091757600080fd5b8063b09d28cc1461085e578063b6b6f0c31461087e578063b88d4fde1461089457600080fd5b80638da5cb5b11610143578063a0712d681161011d578063a0712d681461080c578063a22cb4651461081f578063a4e2d6341461083f57600080fd5b80638da5cb5b1461078957806395d89b41146107b45780639852595c146107c957600080fd5b806379c9cb7b1161017457806379c9cb7b146107295780637cb64759146107495780638b83209b1461076957600080fd5b806370a08231146106df578063715018a6146106ff578063753868e31461071457600080fd5b80632e49d78b1161025e57806342842e0e116102075780636352211e116101e15780636352211e1461068e5780636817c76c146106ae5780636c0360eb146106ca57600080fd5b806342842e0e1461062e57806348b750441461064e57806355f804b31461066e57600080fd5b806339571d6e1161023857806339571d6e146105a45780633a98ef39146105c6578063406072a9146105db57600080fd5b80632e49d78b1461054e5780632eb4a7ab1461056e57806333d89ef31461058457600080fd5b806319165587116102c057806324600fc31161029a57806324600fc3146104cd5780632a55205a146104e25780632b80183f1461052e57600080fd5b80631916558714610466578063200d2ed21461048657806323b872dd146104ad57600080fd5b8063095ea7b3116102f1578063095ea7b31461040e5780630c0a6b5e1461043057806318160ddd1461044357600080fd5b806301ffc9a71461037257806306fdde03146103a7578063081812fc146103c957600080fd5b3661036d577f6ef95f06320e7a25a04a175ca677b7052bdd97131872c2192525a629f51be770336040805173ffffffffffffffffffffffffffffffffffffffff90921682523460208301520160405180910390a1005b600080fd5b34801561037e57600080fd5b5061039261038d366004613ae3565b610a3b565b60405190151581526020015b60405180910390f35b3480156103b357600080fd5b506103bc610a4c565b60405161039e9190613b76565b3480156103d557600080fd5b506103e96103e4366004613b89565b610ade565b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200161039e565b34801561041a57600080fd5b5061042e610429366004613bc4565b610b48565b005b61042e61043e366004613c3c565b610c2f565b34801561044f57600080fd5b50600154600054035b60405190815260200161039e565b34801561047257600080fd5b5061042e610481366004613c88565b610eb8565b34801561049257600080fd5b50601a546104a09060ff1681565b60405161039e9190613d0f565b3480156104b957600080fd5b5061042e6104c8366004613d1d565b6110c6565b3480156104d957600080fd5b5061042e6110d1565b3480156104ee57600080fd5b506105026104fd366004613d5e565b6111ec565b6040805173ffffffffffffffffffffffffffffffffffffffff909316835260208301919091520161039e565b34801561053a57600080fd5b5061042e610549366004613b89565b61125f565b34801561055a57600080fd5b5061042e610569366004613d80565b611325565b34801561057a57600080fd5b5061045860195481565b34801561059057600080fd5b5061039261059f366004613da1565b6113fd565b3480156105b057600080fd5b506105b9611498565b60405161039e9190613ddd565b3480156105d257600080fd5b50600a54610458565b3480156105e757600080fd5b506104586105f6366004613e42565b73ffffffffffffffffffffffffffffffffffffffff918216600090815260106020908152604080832093909416825291909152205490565b34801561063a57600080fd5b5061042e610649366004613d1d565b6115a8565b34801561065a57600080fd5b5061042e610669366004613e42565b6115c3565b34801561067a57600080fd5b5061042e610689366004613f3e565b6118bc565b34801561069a57600080fd5b506103e96106a9366004613b89565b6119a8565b3480156106ba57600080fd5b50610458670f67831e74af000081565b3480156106d657600080fd5b506103bc6119ba565b3480156106eb57600080fd5b506104586106fa366004613c88565b611a48565b34801561070b57600080fd5b5061042e611aca565b34801561072057600080fd5b5061042e611b3d565b34801561073557600080fd5b5061042e610744366004613b89565b611c69565b34801561075557600080fd5b5061042e610764366004613b89565b611cd5565b34801561077557600080fd5b506103e9610784366004613b89565b611d41565b34801561079557600080fd5b5060085473ffffffffffffffffffffffffffffffffffffffff166103e9565b3480156107c057600080fd5b506103bc611d7e565b3480156107d557600080fd5b506104586107e4366004613c88565b73ffffffffffffffffffffffffffffffffffffffff166000908152600d602052604090205490565b61042e61081a366004613b89565b611d8d565b34801561082b57600080fd5b5061042e61083a366004613f95565b611f93565b34801561084b57600080fd5b50601a5461039290610100900460ff1681565b34801561086a57600080fd5b5061042e610879366004613f3e565b61207a565b34801561088a57600080fd5b5061045860145481565b3480156108a057600080fd5b5061042e6108af366004613fc3565b6120f8565b3480156108c057600080fd5b506103bc6108cf366004613b89565b61216f565b3480156108e057600080fd5b506104586108ef366004613c88565b73ffffffffffffffffffffffffffffffffffffffff166000908152600c602052604090205490565b34801561092357600080fd5b5061042e610932366004614043565b6122f8565b34801561094357600080fd5b5061045860155481565b34801561095957600080fd5b50610458610968366004613c88565b73ffffffffffffffffffffffffffffffffffffffff166000908152600f602052604090205490565b34801561099c57600080fd5b50600b54610458565b3480156109b157600080fd5b506103926109c0366004613e42565b73ffffffffffffffffffffffffffffffffffffffff918216600090815260076020908152604080832093909416825291909152205460ff1690565b348015610a0757600080fd5b5061042e610a16366004614085565b612412565b348015610a2757600080fd5b5061042e610a36366004613c88565b612603565b6000610a46826126ff565b92915050565b606060028054610a5b906140d1565b80601f0160208091040260200160405190810160405280929190818152602001828054610a87906140d1565b8015610ad45780601f10610aa957610100808354040283529160200191610ad4565b820191906000526020600020905b815481529060010190602001808311610ab757829003601f168201915b5050505050905090565b6000610ae982612755565b610b1f576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5060009081526006602052604090205473ffffffffffffffffffffffffffffffffffffffff1690565b6000610b53826119a8565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610bbb576040517f943f7b8c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b3373ffffffffffffffffffffffffffffffffffffffff821614801590610be85750610be681336109c0565b155b15610c1f576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610c2a838383612799565b505050565b600954600114610c865760405162461bcd60e51b815260206004820152600a60248201527f5245454e5452414e43590000000000000000000000000000000000000000000060448201526064015b60405180910390fd5b60026009556001601a5460ff166004811115610ca457610ca4613ca5565b14610ce257601a546040517f853a2f26000000000000000000000000000000000000000000000000000000008152610c7d9160ff1690600401613d0f565b610ced3383836113fd565b610d23576040517f25f1b65c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000610d326001546000540390565b601554909150610d428583614154565b1115610d7a576040517f1f75508300000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b601454841115610dbc576014546040517ff9faa638000000000000000000000000000000000000000000000000000000008152600401610c7d91815260200190565b60145433600090815260186020526040902054610dda908690614154565b1115610e18576014546040517ff9faa638000000000000000000000000000000000000000000000000000000008152600401610c7d91815260200190565b610e2a84670f67831e74af000061416c565b341015610e7f5734610e4485670f67831e74af000061416c565b6040517f2777ff8800000000000000000000000000000000000000000000000000000000815260048101929092526024820152604401610c7d565b610e89338561281a565b3360009081526018602052604081208054869290610ea8908490614154565b9091555050600160095550505050565b73ffffffffffffffffffffffffffffffffffffffff81166000908152600c6020526040902054610f505760405162461bcd60e51b815260206004820152602660248201527f5061796d656e7453706c69747465723a206163636f756e7420686173206e6f2060448201527f73686172657300000000000000000000000000000000000000000000000000006064820152608401610c7d565b6000610f5b600b5490565b610f659047614154565b90506000610f9f8383610f9a8673ffffffffffffffffffffffffffffffffffffffff166000908152600d602052604090205490565b612834565b9050806110145760405162461bcd60e51b815260206004820152602b60248201527f5061796d656e7453706c69747465723a206163636f756e74206973206e6f742060448201527f647565207061796d656e740000000000000000000000000000000000000000006064820152608401610c7d565b73ffffffffffffffffffffffffffffffffffffffff83166000908152600d602052604081208054839290611049908490614154565b9250508190555080600b60008282546110629190614154565b9091555061107290508382612887565b6040805173ffffffffffffffffffffffffffffffffffffffff85168152602081018390527fdf20fd1e76bc69d672e4814fafb2c449bba3a5369d8359adf9e05e6fde87b056910160405180910390a1505050565b610c2a8383836129ad565b60085473ffffffffffffffffffffffffffffffffffffffff1633146111385760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610c7d565b60095460011461118a5760405162461bcd60e51b815260206004820152600a60248201527f5245454e5452414e4359000000000000000000000000000000000000000000006044820152606401610c7d565b6002600955604051600090339047908381818185875af1925050503d80600081146111d1576040519150601f19603f3d011682016040523d82523d6000602084013e6111d6565b606091505b50509050806111e457600080fd5b506001600955565b6040805180820190915260115473ffffffffffffffffffffffffffffffffffffffff81168083527401000000000000000000000000000000000000000090910462ffffff166020830181905290916000916127109061124b908661416c565b61125591906141d8565b9150509250929050565b60085473ffffffffffffffffffffffffffffffffffffffff1633146112c65760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610c7d565b6112ee6112e860085473ffffffffffffffffffffffffffffffffffffffff1690565b82612d18565b6040518181527f382d6d457eaa3c84d586de142a0d72bac72f2a514a1691f8ccf48feae833ff09906020015b60405180910390a150565b60085473ffffffffffffffffffffffffffffffffffffffff16331461138c5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610c7d565b601a80548291907fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001660018360048111156113c9576113c9613ca5565b02179055507f504eaf1c308a9514233b8d6364a1d4d333824d8ab51add90e420d54b18ba785b8160405161131a9190613d0f565b6040517fffffffffffffffffffffffffffffffffffffffff000000000000000000000000606085901b166020820152600090819060340160405160208183030381529060405280519060200120905061148d848480806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250506019549150849050612dea565b9150505b9392505050565b6114a06139cd565b6114a86139cd565b60145481526015546020820152600154600054036040820152670f67831e74af00006060820152601280546114dc906140d1565b80601f0160208091040260200160405190810160405280929190818152602001828054611508906140d1565b80156115555780601f1061152a57610100808354040283529160200191611555565b820191906000526020600020905b81548152906001019060200180831161153857829003601f168201915b50505050506080820152601a5460c082019060ff16600481111561157b5761157b613ca5565b9081600481111561158e5761158e613ca5565b905250601a54610100900460ff16151560a0820152919050565b610c2a838383604051806020016040528060008152506120f8565b73ffffffffffffffffffffffffffffffffffffffff81166000908152600c602052604090205461165b5760405162461bcd60e51b815260206004820152602660248201527f5061796d656e7453706c69747465723a206163636f756e7420686173206e6f2060448201527f73686172657300000000000000000000000000000000000000000000000000006064820152608401610c7d565b73ffffffffffffffffffffffffffffffffffffffff82166000908152600f60205260408120546040517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015273ffffffffffffffffffffffffffffffffffffffff8516906370a0823190602401602060405180830381865afa1580156116eb573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061170f91906141ec565b6117199190614154565b9050600061175f8383610f9a878773ffffffffffffffffffffffffffffffffffffffff918216600090815260106020908152604080832093909416825291909152205490565b9050806117d45760405162461bcd60e51b815260206004820152602b60248201527f5061796d656e7453706c69747465723a206163636f756e74206973206e6f742060448201527f647565207061796d656e740000000000000000000000000000000000000000006064820152608401610c7d565b73ffffffffffffffffffffffffffffffffffffffff808516600090815260106020908152604080832093871683529290529081208054839290611818908490614154565b909155505073ffffffffffffffffffffffffffffffffffffffff84166000908152600f602052604081208054839290611852908490614154565b909155506118639050848483612e00565b6040805173ffffffffffffffffffffffffffffffffffffffff8581168252602082018490528616917f3be5b7a71e84ed12875d241991c70855ac5817d847039e17a9d895c1ceb0f18a910160405180910390a250505050565b60085473ffffffffffffffffffffffffffffffffffffffff1633146119235760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610c7d565b601a54610100900460ff1615611965576040517feef043fe00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8051611978906012906020840190613a1c565b507f6741b2fc379fad678116fe3d4d4b9a1a184ab53ba36b86ad0fa66340b1ab41ad8160405161131a9190613b76565b60006119b382612e8d565b5192915050565b601280546119c7906140d1565b80601f01602080910402602001604051908101604052809291908181526020018280546119f3906140d1565b8015611a405780601f10611a1557610100808354040283529160200191611a40565b820191906000526020600020905b815481529060010190602001808311611a2357829003601f168201915b505050505081565b600073ffffffffffffffffffffffffffffffffffffffff8216611a97576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5073ffffffffffffffffffffffffffffffffffffffff1660009081526005602052604090205467ffffffffffffffff1690565b60085473ffffffffffffffffffffffffffffffffffffffff163314611b315760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610c7d565b611b3b600061305b565b565b60085473ffffffffffffffffffffffffffffffffffffffff163314611ba45760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610c7d565b601a80547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ff166101001790556000611bdf6001546000540390565b905060005b81811015611c3c57807fa109ba539900bf1b633f956d63c96fc89b814c7287f7aa50a9216d0b55657207611c178361216f565b604051611c249190613b76565b60405180910390a2611c3581614205565b9050611be4565b506040517f6f5ffb7e2a6656882126927a79e460ca27ab657927d593522b90dc28229f7dbc90600090a150565b60085473ffffffffffffffffffffffffffffffffffffffff163314611cd05760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610c7d565b601455565b60085473ffffffffffffffffffffffffffffffffffffffff163314611d3c5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610c7d565b601955565b6000600e8281548110611d5657611d5661423e565b60009182526020909120015473ffffffffffffffffffffffffffffffffffffffff1692915050565b606060038054610a5b906140d1565b600954600114611ddf5760405162461bcd60e51b815260206004820152600a60248201527f5245454e5452414e4359000000000000000000000000000000000000000000006044820152606401610c7d565b60026009819055601a5460ff166004811115611dfd57611dfd613ca5565b14611e3b57601a546040517f9ced56c7000000000000000000000000000000000000000000000000000000008152610c7d9160ff1690600401613d0f565b6000611e4a6001546000540390565b601554909150611e5a8383614154565b1115611e92576040517f1f75508300000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b601454821115611ed4576014546040517ff9faa638000000000000000000000000000000000000000000000000000000008152600401610c7d91815260200190565b60145433600090815260186020526040902054611ef2908490614154565b1115611f30576014546040517ff9faa638000000000000000000000000000000000000000000000000000000008152600401610c7d91815260200190565b611f4282670f67831e74af000061416c565b341015611f5c5734610e4483670f67831e74af000061416c565b611f66338361281a565b3360009081526018602052604081208054849290611f85908490614154565b909155505060016009555050565b73ffffffffffffffffffffffffffffffffffffffff8216331415611fe3576040517fb06307db00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b33600081815260076020908152604080832073ffffffffffffffffffffffffffffffffffffffff87168085529083529281902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b60085473ffffffffffffffffffffffffffffffffffffffff1633146120e15760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610c7d565b80516120f4906013906020840190613a1c565b5050565b6121038484846129ad565b73ffffffffffffffffffffffffffffffffffffffff83163b151580156121325750612130848484846130d2565b155b15612169576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b50505050565b606061217a82612755565b6121ec5760405162461bcd60e51b815260206004820152602160248201527f4552433732314d657461646174613a204e6f6e6578697374656e7420746f6b6560448201527f6e000000000000000000000000000000000000000000000000000000000000006064820152608401610c7d565b6004601a5460ff16600481111561220557612205613ca5565b1461229c5760138054612217906140d1565b80601f0160208091040260200160405190810160405280929190818152602001828054612243906140d1565b80156122905780601f1061226557610100808354040283529160200191612290565b820191906000526020600020905b81548152906001019060200180831161227357829003601f168201915b50505050509050919050565b6000601280546122ab906140d1565b9050116122c75760405180602001604052806000815250610a46565b60126122d283613248565b6040516020016122e3929190614289565b60405160208183030381529060405292915050565b60085473ffffffffffffffffffffffffffffffffffffffff16331461235f5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610c7d565b6009546001146123b15760405162461bcd60e51b815260206004820152600a60248201527f5245454e5452414e4359000000000000000000000000000000000000000000006044820152606401610c7d565b600260095560005b818110156124085760008383838181106123d5576123d561423e565b90506020020160208101906123ea9190613c88565b90506123f581610eb8565b508061240081614205565b9150506123b9565b5050600160095550565b60085473ffffffffffffffffffffffffffffffffffffffff1633146124795760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610c7d565b6009546001146124cb5760405162461bcd60e51b815260206004820152600a60248201527f5245454e5452414e4359000000000000000000000000000000000000000000006044820152606401610c7d565b6002600955600082816124e16001546000540390565b905060005b8281101561250a576124f88585614154565b935061250381614205565b90506124e6565b506015546125188483614154565b1061254f576040517f1f75508300000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60165460175461255f9085614154565b1115612597576040517f739493eb00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60005b828110156125e4576125d28787838181106125b7576125b761423e565b90506020020160208101906125cc9190613c88565b8661281a565b806125dc81614205565b91505061259a565b50826017546125f39190614154565b6017555050600160095550505050565b60085473ffffffffffffffffffffffffffffffffffffffff16331461266a5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610c7d565b73ffffffffffffffffffffffffffffffffffffffff81166126f35760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610c7d565b6126fc8161305b565b50565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f2a55205a000000000000000000000000000000000000000000000000000000001480610a465750610a468261337a565b6000805482108015610a465750506000908152600460205260409020547c0100000000000000000000000000000000000000000000000000000000900460ff161590565b60008281526006602052604080822080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff87811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6120f482826040518060200160405280600081525061345d565b600a5473ffffffffffffffffffffffffffffffffffffffff84166000908152600c60205260408120549091839161286b908661416c565b61287591906141d8565b61287f919061438a565b949350505050565b804710156128d75760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e63650000006044820152606401610c7d565b60008273ffffffffffffffffffffffffffffffffffffffff168260405160006040518083038185875af1925050503d8060008114612931576040519150601f19603f3d011682016040523d82523d6000602084013e612936565b606091505b5050905080610c2a5760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d617920686176652072657665727465640000000000006064820152608401610c7d565b60006129b882612e8d565b805190915060009073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161480612a0057508151612a0090336109c0565b80612a28575033612a1084610ade565b73ffffffffffffffffffffffffffffffffffffffff16145b905080612a61576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8473ffffffffffffffffffffffffffffffffffffffff16826000015173ffffffffffffffffffffffffffffffffffffffff1614612aca576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b73ffffffffffffffffffffffffffffffffffffffff8416612b17576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b612b276000848460000151612799565b73ffffffffffffffffffffffffffffffffffffffff858116600090815260056020908152604080832080547fffffffffffffffffffffffffffffffffffffffffffffffff000000000000000080821667ffffffffffffffff9283167fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff01831617909255898616808652838620805493841693831660019081018416949094179055898652600490945282852080547fffffffff000000000000000000000000000000000000000000000000000000001690941774010000000000000000000000000000000000000000429092169190910217909255908601808352912054909116612cb457600054811015612cb4578251600082815260046020908152604090912080549186015167ffffffffffffffff1674010000000000000000000000000000000000000000027fffffffff0000000000000000000000000000000000000000000000000000000090921673ffffffffffffffffffffffffffffffffffffffff909316929092171790555b50828473ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45b5050505050565b612710811115612d6a5760405162461bcd60e51b815260206004820152601a60248201527f45524332393831526f79616c746965733a20546f6f20686967680000000000006044820152606401610c7d565b6040805180820190915273ffffffffffffffffffffffffffffffffffffffff90921680835262ffffff909116602090920182905260118054740100000000000000000000000000000000000000009093027fffffffffffffffffff0000000000000000000000000000000000000000000000909316909117919091179055565b600082612df7858461346a565b14949350505050565b6040805173ffffffffffffffffffffffffffffffffffffffff8416602482015260448082018490528251808303909101815260649091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fa9059cbb00000000000000000000000000000000000000000000000000000000179052610c2a908490613516565b604080516060810182526000808252602082018190529181019190915281600054811015613029576000818152600460209081526040918290208251606081018452905473ffffffffffffffffffffffffffffffffffffffff8116825274010000000000000000000000000000000000000000810467ffffffffffffffff16928201929092527c010000000000000000000000000000000000000000000000000000000090910460ff1615159181018290529061302757805173ffffffffffffffffffffffffffffffffffffffff1615612f68579392505050565b507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff016000818152600460209081526040918290208251606081018452905473ffffffffffffffffffffffffffffffffffffffff811680835274010000000000000000000000000000000000000000820467ffffffffffffffff16938301939093527c0100000000000000000000000000000000000000000000000000000000900460ff1615159281019290925215613022579392505050565b612f68565b505b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6008805473ffffffffffffffffffffffffffffffffffffffff8381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6040517f150b7a0200000000000000000000000000000000000000000000000000000000815260009073ffffffffffffffffffffffffffffffffffffffff85169063150b7a029061312d9033908990889088906004016143a1565b6020604051808303816000875af1925050508015613186575060408051601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0168201909252613183918101906143ea565b60015b6131fa573d8080156131b4576040519150601f19603f3d011682016040523d82523d6000602084013e6131b9565b606091505b5080516131f2576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b7fffffffff00000000000000000000000000000000000000000000000000000000167f150b7a0200000000000000000000000000000000000000000000000000000000149050949350505050565b60608161328857505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b81156132b2578061329c81614205565b91506132ab9050600a836141d8565b915061328c565b60008167ffffffffffffffff8111156132cd576132cd613e7b565b6040519080825280601f01601f1916602001820160405280156132f7576020820181803683370190505b5090505b841561287f5761330c60018361438a565b9150613319600a86614407565b613324906030614154565b60f81b8183815181106133395761333961423e565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350613373600a866141d8565b94506132fb565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f80ac58cd00000000000000000000000000000000000000000000000000000000148061340d57507fffffffff0000000000000000000000000000000000000000000000000000000082167f5b5e139f00000000000000000000000000000000000000000000000000000000145b80610a4657507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff00000000000000000000000000000000000000000000000000000000831614610a46565b610c2a8383836001613608565b600081815b845181101561350e57600085828151811061348c5761348c61423e565b602002602001015190508083116134ce5760408051602081018590529081018290526060016040516020818303038152906040528051906020012092506134fb565b60408051602081018390529081018490526060016040516020818303038152906040528051906020012092505b508061350681614205565b91505061346f565b509392505050565b6000613578826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff166138b59092919063ffffffff16565b805190915015610c2a5780806020019051810190613596919061441b565b610c2a5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f742073756363656564000000000000000000000000000000000000000000006064820152608401610c7d565b60005473ffffffffffffffffffffffffffffffffffffffff8516613658576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8361368f576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b73ffffffffffffffffffffffffffffffffffffffff8516600081815260056020908152604080832080547fffffffffffffffffffffffffffffffff00000000000000000000000000000000811667ffffffffffffffff8083168c018116918217680100000000000000007fffffffffffffffffffffffffffffffffffffffffffffffff000000000000000090941690921783900481168c01811690920217909155858452600490925290912080547fffffffff0000000000000000000000000000000000000000000000000000000016909217740100000000000000000000000000000000000000004290921691909102179055808085018380156137aa575073ffffffffffffffffffffffffffffffffffffffff87163b15155b15613859575b604051829073ffffffffffffffffffffffffffffffffffffffff8916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a461380860008884806001019550886130d2565b61383e576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b808214156137b057826000541461385457600080fd5b6138ac565b5b60405160018301929073ffffffffffffffffffffffffffffffffffffffff8916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a48082141561385a575b50600055612d11565b606061287f848460008585843b61390e5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610c7d565b6000808673ffffffffffffffffffffffffffffffffffffffff1685876040516139379190614438565b60006040518083038185875af1925050503d8060008114613974576040519150601f19603f3d011682016040523d82523d6000602084013e613979565b606091505b5091509150613989828286613994565b979650505050505050565b606083156139a3575081611491565b8251156139b35782518084602001fd5b8160405162461bcd60e51b8152600401610c7d9190613b76565b6040518060e00160405280600081526020016000815260200160008152602001600081526020016060815260200160001515815260200160006004811115613a1757613a17613ca5565b905290565b828054613a28906140d1565b90600052602060002090601f016020900481019282613a4a5760008555613a90565b82601f10613a6357805160ff1916838001178555613a90565b82800160010185558215613a90579182015b82811115613a90578251825591602001919060010190613a75565b50613a9c929150613aa0565b5090565b5b80821115613a9c5760008155600101613aa1565b7fffffffff00000000000000000000000000000000000000000000000000000000811681146126fc57600080fd5b600060208284031215613af557600080fd5b813561149181613ab5565b60005b83811015613b1b578181015183820152602001613b03565b838111156121695750506000910152565b60008151808452613b44816020860160208601613b00565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169290920160200192915050565b6020815260006114916020830184613b2c565b600060208284031215613b9b57600080fd5b5035919050565b73ffffffffffffffffffffffffffffffffffffffff811681146126fc57600080fd5b60008060408385031215613bd757600080fd5b8235613be281613ba2565b946020939093013593505050565b60008083601f840112613c0257600080fd5b50813567ffffffffffffffff811115613c1a57600080fd5b6020830191508360208260051b8501011115613c3557600080fd5b9250929050565b600080600060408486031215613c5157600080fd5b83359250602084013567ffffffffffffffff811115613c6f57600080fd5b613c7b86828701613bf0565b9497909650939450505050565b600060208284031215613c9a57600080fd5b813561149181613ba2565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b60058110613d0b577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b9052565b60208101610a468284613cd4565b600080600060608486031215613d3257600080fd5b8335613d3d81613ba2565b92506020840135613d4d81613ba2565b929592945050506040919091013590565b60008060408385031215613d7157600080fd5b50508035926020909101359150565b600060208284031215613d9257600080fd5b81356005811061149157600080fd5b600080600060408486031215613db657600080fd5b8335613dc181613ba2565b9250602084013567ffffffffffffffff811115613c6f57600080fd5b60208152815160208201526020820151604082015260408201516060820152606082015160808201526000608083015160e060a0840152613e22610100840182613b2c565b905060a0840151151560c084015260c084015161350e60e0850182613cd4565b60008060408385031215613e5557600080fd5b8235613e6081613ba2565b91506020830135613e7081613ba2565b809150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600067ffffffffffffffff80841115613ec557613ec5613e7b565b604051601f85017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0908116603f01168101908282118183101715613f0b57613f0b613e7b565b81604052809350858152868686011115613f2457600080fd5b858560208301376000602087830101525050509392505050565b600060208284031215613f5057600080fd5b813567ffffffffffffffff811115613f6757600080fd5b8201601f81018413613f7857600080fd5b61287f84823560208401613eaa565b80151581146126fc57600080fd5b60008060408385031215613fa857600080fd5b8235613fb381613ba2565b91506020830135613e7081613f87565b60008060008060808587031215613fd957600080fd5b8435613fe481613ba2565b93506020850135613ff481613ba2565b925060408501359150606085013567ffffffffffffffff81111561401757600080fd5b8501601f8101871361402857600080fd5b61403787823560208401613eaa565b91505092959194509250565b6000806020838503121561405657600080fd5b823567ffffffffffffffff81111561406d57600080fd5b61407985828601613bf0565b90969095509350505050565b60008060006040848603121561409a57600080fd5b833567ffffffffffffffff8111156140b157600080fd5b6140bd86828701613bf0565b909790965060209590950135949350505050565b600181811c908216806140e557607f821691505b6020821081141561411f577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000821982111561416757614167614125565b500190565b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156141a4576141a4614125565b500290565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000826141e7576141e76141a9565b500490565b6000602082840312156141fe57600080fd5b5051919050565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82141561423757614237614125565b5060010190565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6000815161427f818560208601613b00565b9290920192915050565b600080845481600182811c9150808316806142a557607f831692505b60208084108214156142de577f4e487b710000000000000000000000000000000000000000000000000000000086526022600452602486fd5b8180156142f257600181146143215761434e565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0086168952848901965061434e565b60008b81526020902060005b868110156143465781548b82015290850190830161432d565b505084890196505b50505050505061148d614361828661426d565b7f2e6a736f6e000000000000000000000000000000000000000000000000000000815260050190565b60008282101561439c5761439c614125565b500390565b600073ffffffffffffffffffffffffffffffffffffffff8087168352808616602084015250836040830152608060608301526143e06080830184613b2c565b9695505050505050565b6000602082840312156143fc57600080fd5b815161149181613ab5565b600082614416576144166141a9565b500690565b60006020828403121561442d57600080fd5b815161149181613f87565b6000825161444a818460208701613b00565b919091019291505056fea26469706673582212206571ba3dd2273c211d49a0a00f4f4e5a866cff856d49a92737859020a649decf64736f6c634300080b0033000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000c0000000000000000000000000000000000000000000000000000000000000014000000000000000000000000000000000000000000000000000000000000002ee000000000000000000000000000000000000000000000000000000000000001b68747470733a2f2f6d696e742e626c6f636b776f726b732e636f2f000000000000000000000000000000000000000000000000000000000000000000000000030000000000000000000000008080f75263b6d95cad65c98c6988df68c7b1f17000000000000000000000000094f341263733ed749520cde5830959b876147d260000000000000000000000003f3e80c72cce93597f3cbce399f4aff908dff1e000000000000000000000000000000000000000000000000000000000000000030000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000d000000000000000000000000000000000000000000000000000000000000004f

Deployed Bytecode

0x6080604052600436106103175760003560e01c806370a082311161019a578063b09d28cc116100e1578063d5abeb011161008a578063e985e9c511610064578063e985e9c5146109a5578063f2dc824c146109fb578063f2fde38b14610a1b57600080fd5b8063d5abeb0114610937578063d79779b21461094d578063e33b7de31461099057600080fd5b8063c87b56dd116100bb578063c87b56dd146108b4578063ce7c2ac2146108d4578063d30bfdec1461091757600080fd5b8063b09d28cc1461085e578063b6b6f0c31461087e578063b88d4fde1461089457600080fd5b80638da5cb5b11610143578063a0712d681161011d578063a0712d681461080c578063a22cb4651461081f578063a4e2d6341461083f57600080fd5b80638da5cb5b1461078957806395d89b41146107b45780639852595c146107c957600080fd5b806379c9cb7b1161017457806379c9cb7b146107295780637cb64759146107495780638b83209b1461076957600080fd5b806370a08231146106df578063715018a6146106ff578063753868e31461071457600080fd5b80632e49d78b1161025e57806342842e0e116102075780636352211e116101e15780636352211e1461068e5780636817c76c146106ae5780636c0360eb146106ca57600080fd5b806342842e0e1461062e57806348b750441461064e57806355f804b31461066e57600080fd5b806339571d6e1161023857806339571d6e146105a45780633a98ef39146105c6578063406072a9146105db57600080fd5b80632e49d78b1461054e5780632eb4a7ab1461056e57806333d89ef31461058457600080fd5b806319165587116102c057806324600fc31161029a57806324600fc3146104cd5780632a55205a146104e25780632b80183f1461052e57600080fd5b80631916558714610466578063200d2ed21461048657806323b872dd146104ad57600080fd5b8063095ea7b3116102f1578063095ea7b31461040e5780630c0a6b5e1461043057806318160ddd1461044357600080fd5b806301ffc9a71461037257806306fdde03146103a7578063081812fc146103c957600080fd5b3661036d577f6ef95f06320e7a25a04a175ca677b7052bdd97131872c2192525a629f51be770336040805173ffffffffffffffffffffffffffffffffffffffff90921682523460208301520160405180910390a1005b600080fd5b34801561037e57600080fd5b5061039261038d366004613ae3565b610a3b565b60405190151581526020015b60405180910390f35b3480156103b357600080fd5b506103bc610a4c565b60405161039e9190613b76565b3480156103d557600080fd5b506103e96103e4366004613b89565b610ade565b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200161039e565b34801561041a57600080fd5b5061042e610429366004613bc4565b610b48565b005b61042e61043e366004613c3c565b610c2f565b34801561044f57600080fd5b50600154600054035b60405190815260200161039e565b34801561047257600080fd5b5061042e610481366004613c88565b610eb8565b34801561049257600080fd5b50601a546104a09060ff1681565b60405161039e9190613d0f565b3480156104b957600080fd5b5061042e6104c8366004613d1d565b6110c6565b3480156104d957600080fd5b5061042e6110d1565b3480156104ee57600080fd5b506105026104fd366004613d5e565b6111ec565b6040805173ffffffffffffffffffffffffffffffffffffffff909316835260208301919091520161039e565b34801561053a57600080fd5b5061042e610549366004613b89565b61125f565b34801561055a57600080fd5b5061042e610569366004613d80565b611325565b34801561057a57600080fd5b5061045860195481565b34801561059057600080fd5b5061039261059f366004613da1565b6113fd565b3480156105b057600080fd5b506105b9611498565b60405161039e9190613ddd565b3480156105d257600080fd5b50600a54610458565b3480156105e757600080fd5b506104586105f6366004613e42565b73ffffffffffffffffffffffffffffffffffffffff918216600090815260106020908152604080832093909416825291909152205490565b34801561063a57600080fd5b5061042e610649366004613d1d565b6115a8565b34801561065a57600080fd5b5061042e610669366004613e42565b6115c3565b34801561067a57600080fd5b5061042e610689366004613f3e565b6118bc565b34801561069a57600080fd5b506103e96106a9366004613b89565b6119a8565b3480156106ba57600080fd5b50610458670f67831e74af000081565b3480156106d657600080fd5b506103bc6119ba565b3480156106eb57600080fd5b506104586106fa366004613c88565b611a48565b34801561070b57600080fd5b5061042e611aca565b34801561072057600080fd5b5061042e611b3d565b34801561073557600080fd5b5061042e610744366004613b89565b611c69565b34801561075557600080fd5b5061042e610764366004613b89565b611cd5565b34801561077557600080fd5b506103e9610784366004613b89565b611d41565b34801561079557600080fd5b5060085473ffffffffffffffffffffffffffffffffffffffff166103e9565b3480156107c057600080fd5b506103bc611d7e565b3480156107d557600080fd5b506104586107e4366004613c88565b73ffffffffffffffffffffffffffffffffffffffff166000908152600d602052604090205490565b61042e61081a366004613b89565b611d8d565b34801561082b57600080fd5b5061042e61083a366004613f95565b611f93565b34801561084b57600080fd5b50601a5461039290610100900460ff1681565b34801561086a57600080fd5b5061042e610879366004613f3e565b61207a565b34801561088a57600080fd5b5061045860145481565b3480156108a057600080fd5b5061042e6108af366004613fc3565b6120f8565b3480156108c057600080fd5b506103bc6108cf366004613b89565b61216f565b3480156108e057600080fd5b506104586108ef366004613c88565b73ffffffffffffffffffffffffffffffffffffffff166000908152600c602052604090205490565b34801561092357600080fd5b5061042e610932366004614043565b6122f8565b34801561094357600080fd5b5061045860155481565b34801561095957600080fd5b50610458610968366004613c88565b73ffffffffffffffffffffffffffffffffffffffff166000908152600f602052604090205490565b34801561099c57600080fd5b50600b54610458565b3480156109b157600080fd5b506103926109c0366004613e42565b73ffffffffffffffffffffffffffffffffffffffff918216600090815260076020908152604080832093909416825291909152205460ff1690565b348015610a0757600080fd5b5061042e610a16366004614085565b612412565b348015610a2757600080fd5b5061042e610a36366004613c88565b612603565b6000610a46826126ff565b92915050565b606060028054610a5b906140d1565b80601f0160208091040260200160405190810160405280929190818152602001828054610a87906140d1565b8015610ad45780601f10610aa957610100808354040283529160200191610ad4565b820191906000526020600020905b815481529060010190602001808311610ab757829003601f168201915b5050505050905090565b6000610ae982612755565b610b1f576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5060009081526006602052604090205473ffffffffffffffffffffffffffffffffffffffff1690565b6000610b53826119a8565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610bbb576040517f943f7b8c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b3373ffffffffffffffffffffffffffffffffffffffff821614801590610be85750610be681336109c0565b155b15610c1f576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610c2a838383612799565b505050565b600954600114610c865760405162461bcd60e51b815260206004820152600a60248201527f5245454e5452414e43590000000000000000000000000000000000000000000060448201526064015b60405180910390fd5b60026009556001601a5460ff166004811115610ca457610ca4613ca5565b14610ce257601a546040517f853a2f26000000000000000000000000000000000000000000000000000000008152610c7d9160ff1690600401613d0f565b610ced3383836113fd565b610d23576040517f25f1b65c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000610d326001546000540390565b601554909150610d428583614154565b1115610d7a576040517f1f75508300000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b601454841115610dbc576014546040517ff9faa638000000000000000000000000000000000000000000000000000000008152600401610c7d91815260200190565b60145433600090815260186020526040902054610dda908690614154565b1115610e18576014546040517ff9faa638000000000000000000000000000000000000000000000000000000008152600401610c7d91815260200190565b610e2a84670f67831e74af000061416c565b341015610e7f5734610e4485670f67831e74af000061416c565b6040517f2777ff8800000000000000000000000000000000000000000000000000000000815260048101929092526024820152604401610c7d565b610e89338561281a565b3360009081526018602052604081208054869290610ea8908490614154565b9091555050600160095550505050565b73ffffffffffffffffffffffffffffffffffffffff81166000908152600c6020526040902054610f505760405162461bcd60e51b815260206004820152602660248201527f5061796d656e7453706c69747465723a206163636f756e7420686173206e6f2060448201527f73686172657300000000000000000000000000000000000000000000000000006064820152608401610c7d565b6000610f5b600b5490565b610f659047614154565b90506000610f9f8383610f9a8673ffffffffffffffffffffffffffffffffffffffff166000908152600d602052604090205490565b612834565b9050806110145760405162461bcd60e51b815260206004820152602b60248201527f5061796d656e7453706c69747465723a206163636f756e74206973206e6f742060448201527f647565207061796d656e740000000000000000000000000000000000000000006064820152608401610c7d565b73ffffffffffffffffffffffffffffffffffffffff83166000908152600d602052604081208054839290611049908490614154565b9250508190555080600b60008282546110629190614154565b9091555061107290508382612887565b6040805173ffffffffffffffffffffffffffffffffffffffff85168152602081018390527fdf20fd1e76bc69d672e4814fafb2c449bba3a5369d8359adf9e05e6fde87b056910160405180910390a1505050565b610c2a8383836129ad565b60085473ffffffffffffffffffffffffffffffffffffffff1633146111385760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610c7d565b60095460011461118a5760405162461bcd60e51b815260206004820152600a60248201527f5245454e5452414e4359000000000000000000000000000000000000000000006044820152606401610c7d565b6002600955604051600090339047908381818185875af1925050503d80600081146111d1576040519150601f19603f3d011682016040523d82523d6000602084013e6111d6565b606091505b50509050806111e457600080fd5b506001600955565b6040805180820190915260115473ffffffffffffffffffffffffffffffffffffffff81168083527401000000000000000000000000000000000000000090910462ffffff166020830181905290916000916127109061124b908661416c565b61125591906141d8565b9150509250929050565b60085473ffffffffffffffffffffffffffffffffffffffff1633146112c65760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610c7d565b6112ee6112e860085473ffffffffffffffffffffffffffffffffffffffff1690565b82612d18565b6040518181527f382d6d457eaa3c84d586de142a0d72bac72f2a514a1691f8ccf48feae833ff09906020015b60405180910390a150565b60085473ffffffffffffffffffffffffffffffffffffffff16331461138c5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610c7d565b601a80548291907fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001660018360048111156113c9576113c9613ca5565b02179055507f504eaf1c308a9514233b8d6364a1d4d333824d8ab51add90e420d54b18ba785b8160405161131a9190613d0f565b6040517fffffffffffffffffffffffffffffffffffffffff000000000000000000000000606085901b166020820152600090819060340160405160208183030381529060405280519060200120905061148d848480806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250506019549150849050612dea565b9150505b9392505050565b6114a06139cd565b6114a86139cd565b60145481526015546020820152600154600054036040820152670f67831e74af00006060820152601280546114dc906140d1565b80601f0160208091040260200160405190810160405280929190818152602001828054611508906140d1565b80156115555780601f1061152a57610100808354040283529160200191611555565b820191906000526020600020905b81548152906001019060200180831161153857829003601f168201915b50505050506080820152601a5460c082019060ff16600481111561157b5761157b613ca5565b9081600481111561158e5761158e613ca5565b905250601a54610100900460ff16151560a0820152919050565b610c2a838383604051806020016040528060008152506120f8565b73ffffffffffffffffffffffffffffffffffffffff81166000908152600c602052604090205461165b5760405162461bcd60e51b815260206004820152602660248201527f5061796d656e7453706c69747465723a206163636f756e7420686173206e6f2060448201527f73686172657300000000000000000000000000000000000000000000000000006064820152608401610c7d565b73ffffffffffffffffffffffffffffffffffffffff82166000908152600f60205260408120546040517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015273ffffffffffffffffffffffffffffffffffffffff8516906370a0823190602401602060405180830381865afa1580156116eb573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061170f91906141ec565b6117199190614154565b9050600061175f8383610f9a878773ffffffffffffffffffffffffffffffffffffffff918216600090815260106020908152604080832093909416825291909152205490565b9050806117d45760405162461bcd60e51b815260206004820152602b60248201527f5061796d656e7453706c69747465723a206163636f756e74206973206e6f742060448201527f647565207061796d656e740000000000000000000000000000000000000000006064820152608401610c7d565b73ffffffffffffffffffffffffffffffffffffffff808516600090815260106020908152604080832093871683529290529081208054839290611818908490614154565b909155505073ffffffffffffffffffffffffffffffffffffffff84166000908152600f602052604081208054839290611852908490614154565b909155506118639050848483612e00565b6040805173ffffffffffffffffffffffffffffffffffffffff8581168252602082018490528616917f3be5b7a71e84ed12875d241991c70855ac5817d847039e17a9d895c1ceb0f18a910160405180910390a250505050565b60085473ffffffffffffffffffffffffffffffffffffffff1633146119235760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610c7d565b601a54610100900460ff1615611965576040517feef043fe00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8051611978906012906020840190613a1c565b507f6741b2fc379fad678116fe3d4d4b9a1a184ab53ba36b86ad0fa66340b1ab41ad8160405161131a9190613b76565b60006119b382612e8d565b5192915050565b601280546119c7906140d1565b80601f01602080910402602001604051908101604052809291908181526020018280546119f3906140d1565b8015611a405780601f10611a1557610100808354040283529160200191611a40565b820191906000526020600020905b815481529060010190602001808311611a2357829003601f168201915b505050505081565b600073ffffffffffffffffffffffffffffffffffffffff8216611a97576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5073ffffffffffffffffffffffffffffffffffffffff1660009081526005602052604090205467ffffffffffffffff1690565b60085473ffffffffffffffffffffffffffffffffffffffff163314611b315760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610c7d565b611b3b600061305b565b565b60085473ffffffffffffffffffffffffffffffffffffffff163314611ba45760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610c7d565b601a80547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ff166101001790556000611bdf6001546000540390565b905060005b81811015611c3c57807fa109ba539900bf1b633f956d63c96fc89b814c7287f7aa50a9216d0b55657207611c178361216f565b604051611c249190613b76565b60405180910390a2611c3581614205565b9050611be4565b506040517f6f5ffb7e2a6656882126927a79e460ca27ab657927d593522b90dc28229f7dbc90600090a150565b60085473ffffffffffffffffffffffffffffffffffffffff163314611cd05760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610c7d565b601455565b60085473ffffffffffffffffffffffffffffffffffffffff163314611d3c5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610c7d565b601955565b6000600e8281548110611d5657611d5661423e565b60009182526020909120015473ffffffffffffffffffffffffffffffffffffffff1692915050565b606060038054610a5b906140d1565b600954600114611ddf5760405162461bcd60e51b815260206004820152600a60248201527f5245454e5452414e4359000000000000000000000000000000000000000000006044820152606401610c7d565b60026009819055601a5460ff166004811115611dfd57611dfd613ca5565b14611e3b57601a546040517f9ced56c7000000000000000000000000000000000000000000000000000000008152610c7d9160ff1690600401613d0f565b6000611e4a6001546000540390565b601554909150611e5a8383614154565b1115611e92576040517f1f75508300000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b601454821115611ed4576014546040517ff9faa638000000000000000000000000000000000000000000000000000000008152600401610c7d91815260200190565b60145433600090815260186020526040902054611ef2908490614154565b1115611f30576014546040517ff9faa638000000000000000000000000000000000000000000000000000000008152600401610c7d91815260200190565b611f4282670f67831e74af000061416c565b341015611f5c5734610e4483670f67831e74af000061416c565b611f66338361281a565b3360009081526018602052604081208054849290611f85908490614154565b909155505060016009555050565b73ffffffffffffffffffffffffffffffffffffffff8216331415611fe3576040517fb06307db00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b33600081815260076020908152604080832073ffffffffffffffffffffffffffffffffffffffff87168085529083529281902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b60085473ffffffffffffffffffffffffffffffffffffffff1633146120e15760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610c7d565b80516120f4906013906020840190613a1c565b5050565b6121038484846129ad565b73ffffffffffffffffffffffffffffffffffffffff83163b151580156121325750612130848484846130d2565b155b15612169576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b50505050565b606061217a82612755565b6121ec5760405162461bcd60e51b815260206004820152602160248201527f4552433732314d657461646174613a204e6f6e6578697374656e7420746f6b6560448201527f6e000000000000000000000000000000000000000000000000000000000000006064820152608401610c7d565b6004601a5460ff16600481111561220557612205613ca5565b1461229c5760138054612217906140d1565b80601f0160208091040260200160405190810160405280929190818152602001828054612243906140d1565b80156122905780601f1061226557610100808354040283529160200191612290565b820191906000526020600020905b81548152906001019060200180831161227357829003601f168201915b50505050509050919050565b6000601280546122ab906140d1565b9050116122c75760405180602001604052806000815250610a46565b60126122d283613248565b6040516020016122e3929190614289565b60405160208183030381529060405292915050565b60085473ffffffffffffffffffffffffffffffffffffffff16331461235f5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610c7d565b6009546001146123b15760405162461bcd60e51b815260206004820152600a60248201527f5245454e5452414e4359000000000000000000000000000000000000000000006044820152606401610c7d565b600260095560005b818110156124085760008383838181106123d5576123d561423e565b90506020020160208101906123ea9190613c88565b90506123f581610eb8565b508061240081614205565b9150506123b9565b5050600160095550565b60085473ffffffffffffffffffffffffffffffffffffffff1633146124795760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610c7d565b6009546001146124cb5760405162461bcd60e51b815260206004820152600a60248201527f5245454e5452414e4359000000000000000000000000000000000000000000006044820152606401610c7d565b6002600955600082816124e16001546000540390565b905060005b8281101561250a576124f88585614154565b935061250381614205565b90506124e6565b506015546125188483614154565b1061254f576040517f1f75508300000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60165460175461255f9085614154565b1115612597576040517f739493eb00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60005b828110156125e4576125d28787838181106125b7576125b761423e565b90506020020160208101906125cc9190613c88565b8661281a565b806125dc81614205565b91505061259a565b50826017546125f39190614154565b6017555050600160095550505050565b60085473ffffffffffffffffffffffffffffffffffffffff16331461266a5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610c7d565b73ffffffffffffffffffffffffffffffffffffffff81166126f35760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610c7d565b6126fc8161305b565b50565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f2a55205a000000000000000000000000000000000000000000000000000000001480610a465750610a468261337a565b6000805482108015610a465750506000908152600460205260409020547c0100000000000000000000000000000000000000000000000000000000900460ff161590565b60008281526006602052604080822080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff87811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6120f482826040518060200160405280600081525061345d565b600a5473ffffffffffffffffffffffffffffffffffffffff84166000908152600c60205260408120549091839161286b908661416c565b61287591906141d8565b61287f919061438a565b949350505050565b804710156128d75760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e63650000006044820152606401610c7d565b60008273ffffffffffffffffffffffffffffffffffffffff168260405160006040518083038185875af1925050503d8060008114612931576040519150601f19603f3d011682016040523d82523d6000602084013e612936565b606091505b5050905080610c2a5760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d617920686176652072657665727465640000000000006064820152608401610c7d565b60006129b882612e8d565b805190915060009073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161480612a0057508151612a0090336109c0565b80612a28575033612a1084610ade565b73ffffffffffffffffffffffffffffffffffffffff16145b905080612a61576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8473ffffffffffffffffffffffffffffffffffffffff16826000015173ffffffffffffffffffffffffffffffffffffffff1614612aca576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b73ffffffffffffffffffffffffffffffffffffffff8416612b17576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b612b276000848460000151612799565b73ffffffffffffffffffffffffffffffffffffffff858116600090815260056020908152604080832080547fffffffffffffffffffffffffffffffffffffffffffffffff000000000000000080821667ffffffffffffffff9283167fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff01831617909255898616808652838620805493841693831660019081018416949094179055898652600490945282852080547fffffffff000000000000000000000000000000000000000000000000000000001690941774010000000000000000000000000000000000000000429092169190910217909255908601808352912054909116612cb457600054811015612cb4578251600082815260046020908152604090912080549186015167ffffffffffffffff1674010000000000000000000000000000000000000000027fffffffff0000000000000000000000000000000000000000000000000000000090921673ffffffffffffffffffffffffffffffffffffffff909316929092171790555b50828473ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45b5050505050565b612710811115612d6a5760405162461bcd60e51b815260206004820152601a60248201527f45524332393831526f79616c746965733a20546f6f20686967680000000000006044820152606401610c7d565b6040805180820190915273ffffffffffffffffffffffffffffffffffffffff90921680835262ffffff909116602090920182905260118054740100000000000000000000000000000000000000009093027fffffffffffffffffff0000000000000000000000000000000000000000000000909316909117919091179055565b600082612df7858461346a565b14949350505050565b6040805173ffffffffffffffffffffffffffffffffffffffff8416602482015260448082018490528251808303909101815260649091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fa9059cbb00000000000000000000000000000000000000000000000000000000179052610c2a908490613516565b604080516060810182526000808252602082018190529181019190915281600054811015613029576000818152600460209081526040918290208251606081018452905473ffffffffffffffffffffffffffffffffffffffff8116825274010000000000000000000000000000000000000000810467ffffffffffffffff16928201929092527c010000000000000000000000000000000000000000000000000000000090910460ff1615159181018290529061302757805173ffffffffffffffffffffffffffffffffffffffff1615612f68579392505050565b507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff016000818152600460209081526040918290208251606081018452905473ffffffffffffffffffffffffffffffffffffffff811680835274010000000000000000000000000000000000000000820467ffffffffffffffff16938301939093527c0100000000000000000000000000000000000000000000000000000000900460ff1615159281019290925215613022579392505050565b612f68565b505b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6008805473ffffffffffffffffffffffffffffffffffffffff8381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6040517f150b7a0200000000000000000000000000000000000000000000000000000000815260009073ffffffffffffffffffffffffffffffffffffffff85169063150b7a029061312d9033908990889088906004016143a1565b6020604051808303816000875af1925050508015613186575060408051601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0168201909252613183918101906143ea565b60015b6131fa573d8080156131b4576040519150601f19603f3d011682016040523d82523d6000602084013e6131b9565b606091505b5080516131f2576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b7fffffffff00000000000000000000000000000000000000000000000000000000167f150b7a0200000000000000000000000000000000000000000000000000000000149050949350505050565b60608161328857505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b81156132b2578061329c81614205565b91506132ab9050600a836141d8565b915061328c565b60008167ffffffffffffffff8111156132cd576132cd613e7b565b6040519080825280601f01601f1916602001820160405280156132f7576020820181803683370190505b5090505b841561287f5761330c60018361438a565b9150613319600a86614407565b613324906030614154565b60f81b8183815181106133395761333961423e565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350613373600a866141d8565b94506132fb565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f80ac58cd00000000000000000000000000000000000000000000000000000000148061340d57507fffffffff0000000000000000000000000000000000000000000000000000000082167f5b5e139f00000000000000000000000000000000000000000000000000000000145b80610a4657507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff00000000000000000000000000000000000000000000000000000000831614610a46565b610c2a8383836001613608565b600081815b845181101561350e57600085828151811061348c5761348c61423e565b602002602001015190508083116134ce5760408051602081018590529081018290526060016040516020818303038152906040528051906020012092506134fb565b60408051602081018390529081018490526060016040516020818303038152906040528051906020012092505b508061350681614205565b91505061346f565b509392505050565b6000613578826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff166138b59092919063ffffffff16565b805190915015610c2a5780806020019051810190613596919061441b565b610c2a5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f742073756363656564000000000000000000000000000000000000000000006064820152608401610c7d565b60005473ffffffffffffffffffffffffffffffffffffffff8516613658576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8361368f576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b73ffffffffffffffffffffffffffffffffffffffff8516600081815260056020908152604080832080547fffffffffffffffffffffffffffffffff00000000000000000000000000000000811667ffffffffffffffff8083168c018116918217680100000000000000007fffffffffffffffffffffffffffffffffffffffffffffffff000000000000000090941690921783900481168c01811690920217909155858452600490925290912080547fffffffff0000000000000000000000000000000000000000000000000000000016909217740100000000000000000000000000000000000000004290921691909102179055808085018380156137aa575073ffffffffffffffffffffffffffffffffffffffff87163b15155b15613859575b604051829073ffffffffffffffffffffffffffffffffffffffff8916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a461380860008884806001019550886130d2565b61383e576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b808214156137b057826000541461385457600080fd5b6138ac565b5b60405160018301929073ffffffffffffffffffffffffffffffffffffffff8916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a48082141561385a575b50600055612d11565b606061287f848460008585843b61390e5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610c7d565b6000808673ffffffffffffffffffffffffffffffffffffffff1685876040516139379190614438565b60006040518083038185875af1925050503d8060008114613974576040519150601f19603f3d011682016040523d82523d6000602084013e613979565b606091505b5091509150613989828286613994565b979650505050505050565b606083156139a3575081611491565b8251156139b35782518084602001fd5b8160405162461bcd60e51b8152600401610c7d9190613b76565b6040518060e00160405280600081526020016000815260200160008152602001600081526020016060815260200160001515815260200160006004811115613a1757613a17613ca5565b905290565b828054613a28906140d1565b90600052602060002090601f016020900481019282613a4a5760008555613a90565b82601f10613a6357805160ff1916838001178555613a90565b82800160010185558215613a90579182015b82811115613a90578251825591602001919060010190613a75565b50613a9c929150613aa0565b5090565b5b80821115613a9c5760008155600101613aa1565b7fffffffff00000000000000000000000000000000000000000000000000000000811681146126fc57600080fd5b600060208284031215613af557600080fd5b813561149181613ab5565b60005b83811015613b1b578181015183820152602001613b03565b838111156121695750506000910152565b60008151808452613b44816020860160208601613b00565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169290920160200192915050565b6020815260006114916020830184613b2c565b600060208284031215613b9b57600080fd5b5035919050565b73ffffffffffffffffffffffffffffffffffffffff811681146126fc57600080fd5b60008060408385031215613bd757600080fd5b8235613be281613ba2565b946020939093013593505050565b60008083601f840112613c0257600080fd5b50813567ffffffffffffffff811115613c1a57600080fd5b6020830191508360208260051b8501011115613c3557600080fd5b9250929050565b600080600060408486031215613c5157600080fd5b83359250602084013567ffffffffffffffff811115613c6f57600080fd5b613c7b86828701613bf0565b9497909650939450505050565b600060208284031215613c9a57600080fd5b813561149181613ba2565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b60058110613d0b577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b9052565b60208101610a468284613cd4565b600080600060608486031215613d3257600080fd5b8335613d3d81613ba2565b92506020840135613d4d81613ba2565b929592945050506040919091013590565b60008060408385031215613d7157600080fd5b50508035926020909101359150565b600060208284031215613d9257600080fd5b81356005811061149157600080fd5b600080600060408486031215613db657600080fd5b8335613dc181613ba2565b9250602084013567ffffffffffffffff811115613c6f57600080fd5b60208152815160208201526020820151604082015260408201516060820152606082015160808201526000608083015160e060a0840152613e22610100840182613b2c565b905060a0840151151560c084015260c084015161350e60e0850182613cd4565b60008060408385031215613e5557600080fd5b8235613e6081613ba2565b91506020830135613e7081613ba2565b809150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600067ffffffffffffffff80841115613ec557613ec5613e7b565b604051601f85017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0908116603f01168101908282118183101715613f0b57613f0b613e7b565b81604052809350858152868686011115613f2457600080fd5b858560208301376000602087830101525050509392505050565b600060208284031215613f5057600080fd5b813567ffffffffffffffff811115613f6757600080fd5b8201601f81018413613f7857600080fd5b61287f84823560208401613eaa565b80151581146126fc57600080fd5b60008060408385031215613fa857600080fd5b8235613fb381613ba2565b91506020830135613e7081613f87565b60008060008060808587031215613fd957600080fd5b8435613fe481613ba2565b93506020850135613ff481613ba2565b925060408501359150606085013567ffffffffffffffff81111561401757600080fd5b8501601f8101871361402857600080fd5b61403787823560208401613eaa565b91505092959194509250565b6000806020838503121561405657600080fd5b823567ffffffffffffffff81111561406d57600080fd5b61407985828601613bf0565b90969095509350505050565b60008060006040848603121561409a57600080fd5b833567ffffffffffffffff8111156140b157600080fd5b6140bd86828701613bf0565b909790965060209590950135949350505050565b600181811c908216806140e557607f821691505b6020821081141561411f577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000821982111561416757614167614125565b500190565b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156141a4576141a4614125565b500290565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000826141e7576141e76141a9565b500490565b6000602082840312156141fe57600080fd5b5051919050565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82141561423757614237614125565b5060010190565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6000815161427f818560208601613b00565b9290920192915050565b600080845481600182811c9150808316806142a557607f831692505b60208084108214156142de577f4e487b710000000000000000000000000000000000000000000000000000000086526022600452602486fd5b8180156142f257600181146143215761434e565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0086168952848901965061434e565b60008b81526020902060005b868110156143465781548b82015290850190830161432d565b505084890196505b50505050505061148d614361828661426d565b7f2e6a736f6e000000000000000000000000000000000000000000000000000000815260050190565b60008282101561439c5761439c614125565b500390565b600073ffffffffffffffffffffffffffffffffffffffff8087168352808616602084015250836040830152608060608301526143e06080830184613b2c565b9695505050505050565b6000602082840312156143fc57600080fd5b815161149181613ab5565b600082614416576144166141a9565b500690565b60006020828403121561442d57600080fd5b815161149181613f87565b6000825161444a818460208701613b00565b919091019291505056fea26469706673582212206571ba3dd2273c211d49a0a00f4f4e5a866cff856d49a92737859020a649decf64736f6c634300080b0033

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

000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000c0000000000000000000000000000000000000000000000000000000000000014000000000000000000000000000000000000000000000000000000000000002ee000000000000000000000000000000000000000000000000000000000000001b68747470733a2f2f6d696e742e626c6f636b776f726b732e636f2f000000000000000000000000000000000000000000000000000000000000000000000000030000000000000000000000008080f75263b6d95cad65c98c6988df68c7b1f17000000000000000000000000094f341263733ed749520cde5830959b876147d260000000000000000000000003f3e80c72cce93597f3cbce399f4aff908dff1e000000000000000000000000000000000000000000000000000000000000000030000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000d000000000000000000000000000000000000000000000000000000000000004f

-----Decoded View---------------
Arg [0] : _baseURI (string): https://mint.blockworks.co/
Arg [1] : _payees (address[]): 0x8080F75263B6d95caD65C98c6988df68c7B1F170,0x94f341263733ed749520CDE5830959b876147D26,0x3F3e80c72CCe93597f3CBCE399F4aFf908dfF1e0
Arg [2] : _shares (uint256[]): 8,13,79
Arg [3] : _royalties (uint256): 750

-----Encoded View---------------
14 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000080
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000c0
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000140
Arg [3] : 00000000000000000000000000000000000000000000000000000000000002ee
Arg [4] : 000000000000000000000000000000000000000000000000000000000000001b
Arg [5] : 68747470733a2f2f6d696e742e626c6f636b776f726b732e636f2f0000000000
Arg [6] : 0000000000000000000000000000000000000000000000000000000000000003
Arg [7] : 0000000000000000000000008080f75263b6d95cad65c98c6988df68c7b1f170
Arg [8] : 00000000000000000000000094f341263733ed749520cde5830959b876147d26
Arg [9] : 0000000000000000000000003f3e80c72cce93597f3cbce399f4aff908dff1e0
Arg [10] : 0000000000000000000000000000000000000000000000000000000000000003
Arg [11] : 0000000000000000000000000000000000000000000000000000000000000008
Arg [12] : 000000000000000000000000000000000000000000000000000000000000000d
Arg [13] : 000000000000000000000000000000000000000000000000000000000000004f


Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading
[ Download: CSV Export  ]
[ Download: CSV Export  ]

A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.