ETH Price: $2,423.92 (-0.04%)

Contract

0x793dA97f737a8D8099E97B68CD24F703D80D0228
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Set Approval For...207750132024-09-18 4:11:3518 days ago1726632695IN
0x793dA97f...3D80D0228
0 ETH0.000180423.90259857
Set Approval For...207395742024-09-13 5:22:1123 days ago1726204931IN
0x793dA97f...3D80D0228
0 ETH0.000059881.29761618
Set Approval For...205264292024-08-14 10:59:2352 days ago1723633163IN
0x793dA97f...3D80D0228
0 ETH0.000062922.59623973
Set Approval For...203227682024-07-17 0:49:3581 days ago1721177375IN
0x793dA97f...3D80D0228
0 ETH0.00030116.52485244
Set Approval For...202558892024-07-07 16:40:3590 days ago1720370435IN
0x793dA97f...3D80D0228
0 ETH0.000207424.49479952
Transfer From202548172024-07-07 13:05:3590 days ago1720357535IN
0x793dA97f...3D80D0228
0 ETH0.000105542.14279047
Transfer From202548092024-07-07 13:03:5990 days ago1720357439IN
0x793dA97f...3D80D0228
0 ETH0.000136622.05935204
Set Approval For...202529572024-07-07 6:50:4791 days ago1720335047IN
0x793dA97f...3D80D0228
0 ETH0.000061711.33741879
Safe Transfer Fr...202470152024-07-06 10:57:4791 days ago1720263467IN
0x793dA97f...3D80D0228
0 ETH0.000158282.28784265
Safe Transfer Fr...202470072024-07-06 10:56:1191 days ago1720263371IN
0x793dA97f...3D80D0228
0 ETH0.000157712.27957105
Safe Transfer Fr...201881732024-06-28 5:44:11100 days ago1719553451IN
0x793dA97f...3D80D0228
0 ETH0.00011242.15801631
Safe Transfer Fr...201881462024-06-28 5:38:47100 days ago1719553127IN
0x793dA97f...3D80D0228
0 ETH0.000065272.01716394
Safe Transfer Fr...201881462024-06-28 5:38:47100 days ago1719553127IN
0x793dA97f...3D80D0228
0 ETH0.000065272.01716394
Safe Transfer Fr...201881462024-06-28 5:38:47100 days ago1719553127IN
0x793dA97f...3D80D0228
0 ETH0.000065272.01716394
Safe Transfer Fr...201881462024-06-28 5:38:47100 days ago1719553127IN
0x793dA97f...3D80D0228
0 ETH0.000139552.01716394
Safe Transfer Fr...201573792024-06-23 22:30:47104 days ago1719181847IN
0x793dA97f...3D80D0228
0 ETH0.00019432.80891796
Safe Transfer Fr...201573642024-06-23 22:27:35104 days ago1719181655IN
0x793dA97f...3D80D0228
0 ETH0.000226343.27148288
Safe Transfer Fr...200885572024-06-14 7:28:59114 days ago1718350139IN
0x793dA97f...3D80D0228
0 ETH0.000387917.44766405
Safe Transfer Fr...200885102024-06-14 7:19:35114 days ago1718349575IN
0x793dA97f...3D80D0228
0 ETH0.00048567.01882051
Safe Transfer Fr...200591742024-06-10 4:54:35118 days ago1717995275IN
0x793dA97f...3D80D0228
0 ETH0.000254173.67714728
Safe Transfer Fr...200448862024-06-08 5:00:47120 days ago1717822847IN
0x793dA97f...3D80D0228
0 ETH0.000437926.33071034
Set Approval For...196997592024-04-20 22:59:11168 days ago1713653951IN
0x793dA97f...3D80D0228
0 ETH0.000182727.53939694
Set Approval For...183557602023-10-15 12:24:59356 days ago1697372699IN
0x793dA97f...3D80D0228
0 ETH0.000123345.08937633
Set Approval For...174560582023-06-11 9:43:11482 days ago1686476591IN
0x793dA97f...3D80D0228
0 ETH0.0007801716.90590109
Set Approval For...174434742023-06-09 15:10:59484 days ago1686323459IN
0x793dA97f...3D80D0228
0 ETH0.0009162434.90704354
View all transactions

Latest 1 internal transaction

Advanced mode:
Parent Transaction Hash Block From To
158687832022-10-31 14:57:23705 days ago1667228243
0x793dA97f...3D80D0228
17.995 ETH
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
UnleashedAlphaPassERC721A

Compiler Version
v0.8.17+commit.8df45f5f

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 16 : UnleashedAlphaPassERC721A.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.17;

/// @title Unleashed Alpha Pass ERC721A

import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol";
import "@openzeppelin/contracts/finance/PaymentSplitter.sol";
import "@openzeppelin/contracts/utils/Strings.sol";
import "./ERC721A.sol";

contract UnleashedAlphaPassERC721A is Ownable, ERC721A, PaymentSplitter {
    using Strings for uint;

    enum Step {
        Before,
        WhitelistSale,
        PublicSale,
        SoldOut,
        Reveal
    }

    Step public sellingStep;

    uint private constant MAX_SUPPLY = 1333;
    uint private constant MAX_GIFT = 533;
    uint private constant MAX_SUPPLY_MINUS_GIFT = MAX_SUPPLY - MAX_GIFT;

    address public pledgeContractAddress = 0x036d5E237EfBdb1583c29B8648f637812A94cdF2;

    uint public wlSalePrice = 49000000000000000; 
    uint public publicSalePrice = 100000000000000000;
  
    uint public constant maxPerAddressDuringPublicMint = 4;
    uint public constant maxPerAddressDuringWhitelistMint = 5;

    bytes32 public wlMerkleRoot;
    string public baseURI;
    uint private teamLength;
    bool public isPaused;

    mapping(address => uint) public amountNFTsperWalletWhitelistSale;
    mapping(address => uint) public amountNFTsperWalletPublicSale;

    constructor(
        address[] memory _team, 
        uint[] memory _teamShares, 
        bytes32 _wlMerkleRoot, 
        string memory _baseURI) 
    ERC721A("UnleashedAlphaPass", "UAP") 
    PaymentSplitter(_team, _teamShares) {
        wlMerkleRoot = _wlMerkleRoot;
        baseURI = _baseURI;
        teamLength = _team.length;
    }

    modifier callerIsUser() {
        require(tx.origin == msg.sender, "The caller is another contract");
        _;
    }

    function whitelistMint(address _account, uint _quantity, bytes32[] calldata _proof) external payable callerIsUser {
        uint price = wlSalePrice;
        require(!isPaused, "Contract is paused");
        require(price != 0, "Price is 0");
        require(sellingStep == Step.WhitelistSale, "Whitelist sale is not activated");
        require(isWhiteListed(msg.sender, _proof), "Not whitelisted");
        require(amountNFTsperWalletWhitelistSale[msg.sender] + _quantity <= maxPerAddressDuringWhitelistMint, 
        "You can only get 5 NFT on the Whitelist Sale");
        require(totalSupply() + _quantity <= MAX_SUPPLY_MINUS_GIFT, "Max supply exceeded for WL Mint");
        require(msg.value >= price * _quantity, "Not enought funds");
        amountNFTsperWalletWhitelistSale[msg.sender] += _quantity;
        _safeMint(_account, _quantity);
    }

    function publicSaleMint(address _account, uint _quantity) external payable callerIsUser {
        uint price = publicSalePrice;
        require(!isPaused, "Contract is paused");
        require(price != 0, "Price is 0");
        require(sellingStep == Step.PublicSale, "Public sale is not activated");
        require(totalSupply() + _quantity <= MAX_SUPPLY_MINUS_GIFT, "Max supply exceeded : Sold out");
        require(amountNFTsperWalletPublicSale[msg.sender] + _quantity <= maxPerAddressDuringPublicMint,"You can only get 4 NFT on the Public Sale");
        require(msg.value >= price * _quantity, "Not enought funds");
        _safeMint(_account, _quantity);
    }

    function gift(address[] calldata _to) external onlyOwner {
        require(totalSupply() + 1 <= MAX_SUPPLY, "Reached max supply");
        for(uint i = 0 ; i < _to.length ; i++) {
            _safeMint(_to[i], 1);
        }
    }

    function specialGift(address[] calldata _to) external payable callerIsUser {
        require(totalSupply() + 1 <= MAX_SUPPLY, "Reached max supply");
        require(!isPaused, "Contract is paused");
        for(uint i = 0 ; i < _to.length ; i++) {
            _safeMint(_to[i], 1);
        }
    }

    function setPaused(bool _isPaused) external onlyOwner {
        isPaused = _isPaused;
    }

    function setWlSalePrice(uint _wlSalePrice) external onlyOwner {
        wlSalePrice = _wlSalePrice;
    }

    function setPublicSalePrice(uint _publicSalePrice) external onlyOwner {
        publicSalePrice = _publicSalePrice;
    }

    function pledgeMint(address to, uint8 quantity) external payable {
        require(totalSupply() + quantity <= MAX_SUPPLY, "Max supply exceeded!");
        require(pledgeContractAddress == msg.sender, "The caller is not PledgeMint");
        _safeMint(to, quantity);
    }

    function setPledgeContractAddress(address _pledgeContractAddress) public onlyOwner {
        pledgeContractAddress = _pledgeContractAddress;
    }
    
    function tokenURI(uint _tokenId) public view virtual override returns (string memory) {
        require(_exists(_tokenId), "URI query for nonexistent token");

        return string(abi.encodePacked(baseURI, _tokenId.toString(), ".json"));
    }

    function setStep(uint _step) external onlyOwner {
        sellingStep = Step(_step);
    }

    function setBaseUri(string memory _baseURI) external onlyOwner {
        baseURI = _baseURI;
    }
 
    function setWlMerkleRoot(bytes32 _merkleRoot) external onlyOwner {
        wlMerkleRoot = _merkleRoot;
    }

    function isWhiteListed(address _account, bytes32[] calldata _proof) internal view returns(bool) {
        return _verifyWl(leaf(_account), _proof);
    }
   
    function leaf(address _account) internal pure returns(bytes32) {
        return keccak256(abi.encodePacked(_account));
    }

    function _verifyWl(bytes32 _leaf, bytes32[] memory _proof) internal view returns(bool) {
        return MerkleProof.verify(_proof, wlMerkleRoot, _leaf);
    }

    function releaseAll() external onlyOwner  {
        for(uint i = 0 ; i < teamLength ; i++) {
            release(payable(payee(i)));
        }
    }

    receive() override external payable {
        revert('Only if you mint');
    }
}

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

File 3 of 16 : MerkleProof.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (utils/cryptography/MerkleProof.sol)

pragma solidity ^0.8.0;

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

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

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

File 4 of 16 : 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 5 of 16 : 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 6 of 16 : 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 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 and Enumerable extension. Built to optimize for lower gas during batch mints.
 *
 * Assumes serials are sequentially minted starting at 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**128 - 1 (max value of uint128).
 */
contract ERC721A is Context, ERC165, IERC721, IERC721Metadata, IERC721Enumerable {
    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;
    }

    // Compiler will pack the following 
    // _currentIndex and _burnCounter into a single 256bit word.
    
    // The tokenId of the next token to be minted.
    uint128 internal _currentIndex;

    // The number of tokens burned.
    uint128 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_;
    }

    /**
     * @dev See {IERC721Enumerable-totalSupply}.
     */
    function totalSupply() public view override returns (uint256) {
        // Counter underflow is impossible as _burnCounter cannot be incremented
        // more than _currentIndex times
        unchecked {
            return _currentIndex - _burnCounter;    
        }
    }

    /**
     * @dev See {IERC721Enumerable-tokenByIndex}.
     * This read function is O(totalSupply). If calling from a separate contract, be sure to test gas first.
     * It may also degrade with extremely large collection sizes (e.g >> 10000), test for your use case.
     */
    function tokenByIndex(uint256 index) public view override returns (uint256) {
        uint256 numMintedSoFar = _currentIndex;
        uint256 tokenIdsIdx;

        // Counter overflow is impossible as the loop breaks when
        // uint256 i is equal to another uint256 numMintedSoFar.
        unchecked {
            for (uint256 i; i < numMintedSoFar; i++) {
                TokenOwnership memory ownership = _ownerships[i];
                if (!ownership.burned) {
                    if (tokenIdsIdx == index) {
                        return i;
                    }
                    tokenIdsIdx++;
                }
            }
        }
        revert TokenIndexOutOfBounds();
    }

    /**
     * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}.
     * This read function is O(totalSupply). If calling from a separate contract, be sure to test gas first.
     * It may also degrade with extremely large collection sizes (e.g >> 10000), test for your use case.
     */
    function tokenOfOwnerByIndex(address owner, uint256 index) public view override returns (uint256) {
        if (index >= balanceOf(owner)) revert OwnerIndexOutOfBounds();
        uint256 numMintedSoFar = _currentIndex;
        uint256 tokenIdsIdx;
        address currOwnershipAddr;

        // Counter overflow is impossible as the loop breaks when
        // uint256 i is equal to another uint256 numMintedSoFar.
        unchecked {
            for (uint256 i; i < numMintedSoFar; i++) {
                TokenOwnership memory ownership = _ownerships[i];
                if (ownership.burned) {
                    continue;
                }
                if (ownership.addr != address(0)) {
                    currOwnershipAddr = ownership.addr;
                }
                if (currOwnershipAddr == owner) {
                    if (tokenIdsIdx == index) {
                        return i;
                    }
                    tokenIdsIdx++;
                }
            }
        }

        // Execution should never reach this point.
        revert();
    }

    /**
     * @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 ||
            interfaceId == type(IERC721Enumerable).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);
    }

    function _numberMinted(address owner) internal view returns (uint256) {
        if (owner == address(0)) revert MintedQueryForZeroAddress();
        return uint256(_addressData[owner].numberMinted);
    }

    function _numberBurned(address owner) internal view returns (uint256) {
        if (owner == address(0)) revert BurnedQueryForZeroAddress();
        return uint256(_addressData[owner].numberBurned);
    }

    /**
     * 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 (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 (!_checkOnERC721Received(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 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 > 3.4e38 (2**128) - 1
        // updatedIndex overflows if _currentIndex + quantity > 3.4e38 (2**128) - 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;

            for (uint256 i; i < quantity; i++) {
                emit Transfer(address(0), to, updatedIndex);
                if (safe && !_checkOnERC721Received(address(0), to, updatedIndex, _data)) {
                    revert TransferToNonERC721ReceiverImplementer();
                }
                updatedIndex++;
            }

            _currentIndex = uint128(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**128.
        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**128.
        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 address.
     * The call is not executed if the target address is not a contract.
     *
     * @param from address representing the previous owner of the given token ID
     * @param to target address that will receive the tokens
     * @param tokenId uint256 ID of the token to be transferred
     * @param _data bytes optional data to send along with the call
     * @return bool whether the call correctly returned the expected magic value
     */
    function _checkOnERC721Received(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) private returns (bool) {
        if (to.isContract()) {
            try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) {
                return retval == IERC721Receiver(to).onERC721Received.selector;
            } catch (bytes memory reason) {
                if (reason.length == 0) {
                    revert TransferToNonERC721ReceiverImplementer();
                } else {
                    assembly {
                        revert(add(32, reason), mload(reason))
                    }
                }
            }
        } else {
            return true;
        }
    }

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

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

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

pragma solidity ^0.8.1;

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

        return account.code.length > 0;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

File 10 of 16 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

File 11 of 16 : IERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

File 12 of 16 : IERC721Receiver.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721Receiver.sol)

pragma solidity ^0.8.0;

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

File 13 of 16 : IERC721Metadata.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol)

pragma solidity ^0.8.0;

import "../IERC721.sol";

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

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

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

File 14 of 16 : IERC721Enumerable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC721/extensions/IERC721Enumerable.sol)

pragma solidity ^0.8.0;

import "../IERC721.sol";

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

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

    /**
     * @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 15 of 16 : 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 16 of 16 : 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);
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address[]","name":"_team","type":"address[]"},{"internalType":"uint256[]","name":"_teamShares","type":"uint256[]"},{"internalType":"bytes32","name":"_wlMerkleRoot","type":"bytes32"},{"internalType":"string","name":"_baseURI","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"ApprovalToCurrentOwner","type":"error"},{"inputs":[],"name":"ApproveToCaller","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"OwnerIndexOutOfBounds","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"TokenIndexOutOfBounds","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"contract IERC20","name":"token","type":"address"},{"indexed":false,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"ERC20PaymentReleased","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"uint256","name":"shares","type":"uint256"}],"name":"PayeeAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"from","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"PaymentReceived","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"PaymentReleased","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"amountNFTsperWalletPublicSale","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"amountNFTsperWalletWhitelistSale","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"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":"_to","type":"address[]"}],"name":"gift","outputs":[],"stateMutability":"nonpayable","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":"isPaused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxPerAddressDuringPublicMint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxPerAddressDuringWhitelistMint","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":[],"name":"pledgeContractAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint8","name":"quantity","type":"uint8"}],"name":"pledgeMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"_account","type":"address"},{"internalType":"uint256","name":"_quantity","type":"uint256"}],"name":"publicSaleMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"publicSalePrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":[],"name":"releaseAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"token","type":"address"},{"internalType":"address","name":"account","type":"address"}],"name":"released","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"released","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"sellingStep","outputs":[{"internalType":"enum UnleashedAlphaPassERC721A.Step","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_baseURI","type":"string"}],"name":"setBaseUri","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_isPaused","type":"bool"}],"name":"setPaused","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_pledgeContractAddress","type":"address"}],"name":"setPledgeContractAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_publicSalePrice","type":"uint256"}],"name":"setPublicSalePrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_step","type":"uint256"}],"name":"setStep","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_merkleRoot","type":"bytes32"}],"name":"setWlMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_wlSalePrice","type":"uint256"}],"name":"setWlSalePrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"shares","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"_to","type":"address[]"}],"name":"specialGift","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"token","type":"address"}],"name":"totalReleased","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalReleased","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalShares","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_account","type":"address"},{"internalType":"uint256","name":"_quantity","type":"uint256"},{"internalType":"bytes32[]","name":"_proof","type":"bytes32[]"}],"name":"whitelistMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"wlMerkleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"wlSalePrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"stateMutability":"payable","type":"receive"}]

6080604052600f8054610100600160a81b03191674036d5e237efbdb1583c29b8648f637812a94cdf20017905566ae153d89fe800060105567016345785d8a00006011553480156200005057600080fd5b5060405162003c5d38038062003c5d8339810160408190526200007391620005fe565b838360405180604001604052806012815260200171556e6c656173686564416c7068615061737360701b8152506040518060400160405280600381526020016205541560ec1b815250620000d6620000d06200024d60201b60201c565b62000251565b6002620000e483826200079c565b506003620000f382826200079c565b5050508051825114620001685760405162461bcd60e51b815260206004820152603260248201527f5061796d656e7453706c69747465723a2070617965657320616e6420736861726044820152710cae640d8cadccee8d040dad2e6dac2e8c6d60731b60648201526084015b60405180910390fd5b6000825111620001bb5760405162461bcd60e51b815260206004820152601a60248201527f5061796d656e7453706c69747465723a206e6f2070617965657300000000000060448201526064016200015f565b60005b8251811015620002275762000212838281518110620001e157620001e162000868565b6020026020010151838381518110620001fe57620001fe62000868565b6020026020010151620002a160201b60201c565b806200021e8162000894565b915050620001be565b505050601282905560136200023d82826200079c565b5050915160145550620008cc9050565b3390565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6001600160a01b0382166200030e5760405162461bcd60e51b815260206004820152602c60248201527f5061796d656e7453706c69747465723a206163636f756e74206973207468652060448201526b7a65726f206164647265737360a01b60648201526084016200015f565b60008111620003605760405162461bcd60e51b815260206004820152601d60248201527f5061796d656e7453706c69747465723a2073686172657320617265203000000060448201526064016200015f565b6001600160a01b0382166000908152600a602052604090205415620003dc5760405162461bcd60e51b815260206004820152602b60248201527f5061796d656e7453706c69747465723a206163636f756e7420616c726561647960448201526a206861732073686172657360a81b60648201526084016200015f565b600c8054600181019091557fdf6966c971051c3d54ec59162606531493a51404a002842f56009d7e5cf4a8c70180546001600160a01b0319166001600160a01b0384169081179091556000908152600a6020526040902081905560085462000446908290620008b0565b600855604080516001600160a01b0384168152602081018390527f40c340f65e17194d14ddddb073d3c9f888e3cb52b5aae0c6c7706b4fbc905fac910160405180910390a15050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b0381118282101715620004d057620004d06200048f565b604052919050565b60006001600160401b03821115620004f457620004f46200048f565b5060051b60200190565b600082601f8301126200051057600080fd5b81516020620005296200052383620004d8565b620004a5565b82815260059290921b840181019181810190868411156200054957600080fd5b8286015b848110156200056657805183529183019183016200054d565b509695505050505050565b600082601f8301126200058357600080fd5b81516001600160401b038111156200059f576200059f6200048f565b6020620005b5601f8301601f19168201620004a5565b8281528582848701011115620005ca57600080fd5b60005b83811015620005ea578581018301518282018401528201620005cd565b506000928101909101919091529392505050565b600080600080608085870312156200061557600080fd5b84516001600160401b03808211156200062d57600080fd5b818701915087601f8301126200064257600080fd5b81516020620006556200052383620004d8565b82815260059290921b8401810191818101908b8411156200067557600080fd5b948201945b83861015620006ac5785516001600160a01b03811681146200069c5760008081fd5b825294820194908201906200067a565b918a0151919850909350505080821115620006c657600080fd5b620006d488838901620004fe565b9450604087015193506060870151915080821115620006f257600080fd5b50620007018782880162000571565b91505092959194509250565b600181811c908216806200072257607f821691505b6020821081036200074357634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200079757600081815260208120601f850160051c81016020861015620007725750805b601f850160051c820191505b8181101562000793578281556001016200077e565b5050505b505050565b81516001600160401b03811115620007b857620007b86200048f565b620007d081620007c984546200070d565b8462000749565b602080601f831160018114620008085760008415620007ef5750858301515b600019600386901b1c1916600185901b17855562000793565b600085815260208120601f198616915b82811015620008395788860151825594840194600190910190840162000818565b5085821015620008585787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b600060018201620008a957620008a96200087e565b5060010190565b80820180821115620008c657620008c66200087e565b92915050565b61338180620008dc6000396000f3fe6080604052600436106103035760003560e01c80638ac1e16111610190578063b88d4fde116100dc578063cf3df23011610095578063e985e9c51161006f578063e985e9c51461096a578063f2fde38b146109b3578063f8dcbddb146109d3578063fb0f4a7f146109f357600080fd5b8063cf3df230146108ff578063d79779b21461091f578063e33b7de31461095557600080fd5b8063b88d4fde1461082d578063bd863b0a1461084d578063bf332d6114610862578063c87b56dd14610882578063cbccefb2146108a2578063ce7c2ac2146108c957600080fd5b80639b6860c811610149578063a8d7851711610123578063a8d78517146107c0578063ac5ae11b146107d3578063b187bd26146107e6578063b3c542151461080057600080fd5b80639b6860c81461076a578063a0bcfc7f14610780578063a22cb465146107a057600080fd5b80638ac1e161146106945780638b83209b146106b45780638da5cb5b146106d457806395d89b41146106f25780639852595c1461070757806399d138001461073d57600080fd5b806342842e0e1161024f5780636352211e11610208578063715018a6116101e2578063715018a614610634578063734c66bd14610649578063791a25191461065f578063828b03801461067f57600080fd5b80636352211e146105df5780636c0360eb146105ff57806370a082311461061457600080fd5b806342842e0e1461054157806348b75044146105615780634b11faaf146105815780634f6ccce71461059457806354c06aee146105b45780635be7fde8146105ca57600080fd5b806318160ddd116102bc57806323b872dd1161029657806323b872dd146104a65780632f745c59146104c65780633a98ef39146104e6578063406072a9146104fb57600080fd5b806318160ddd1461043e57806319165587146104615780631fba58ed1461048157600080fd5b806301ffc9a71461034d57806306fdde0314610382578063081812fc146103a4578063095ea7b3146103dc578063163e1e61146103fe57806316c38b3c1461041e57600080fd5b366103485760405162461bcd60e51b815260206004820152601060248201526f13db9b1e481a59881e5bdd481b5a5b9d60821b60448201526064015b60405180910390fd5b600080fd5b34801561035957600080fd5b5061036d610368366004612a63565b610a06565b60405190151581526020015b60405180910390f35b34801561038e57600080fd5b50610397610a73565b6040516103799190612ad0565b3480156103b057600080fd5b506103c46103bf366004612ae3565b610b05565b6040516001600160a01b039091168152602001610379565b3480156103e857600080fd5b506103fc6103f7366004612b11565b610b49565b005b34801561040a57600080fd5b506103fc610419366004612b88565b610bd6565b34801561042a57600080fd5b506103fc610439366004612bd7565b610ca7565b34801561044a57600080fd5b50610453610ce4565b604051908152602001610379565b34801561046d57600080fd5b506103fc61047c366004612bf4565b610d03565b34801561048d57600080fd5b50600f546103c49061010090046001600160a01b031681565b3480156104b257600080fd5b506103fc6104c1366004612c11565b610e34565b3480156104d257600080fd5b506104536104e1366004612b11565b610e3f565b3480156104f257600080fd5b50600854610453565b34801561050757600080fd5b50610453610516366004612c52565b6001600160a01b039182166000908152600e6020908152604080832093909416825291909152205490565b34801561054d57600080fd5b506103fc61055c366004612c11565b610f33565b34801561056d57600080fd5b506103fc61057c366004612c52565b610f4e565b6103fc61058f366004612c8b565b61112a565b3480156105a057600080fd5b506104536105af366004612ae3565b6113ce565b3480156105c057600080fd5b5061045360125481565b3480156105d657600080fd5b506103fc611479565b3480156105eb57600080fd5b506103c46105fa366004612ae3565b6114d1565b34801561060b57600080fd5b506103976114e3565b34801561062057600080fd5b5061045361062f366004612bf4565b611571565b34801561064057600080fd5b506103fc6115bf565b34801561065557600080fd5b5061045360105481565b34801561066b57600080fd5b506103fc61067a366004612ae3565b6115f5565b34801561068b57600080fd5b50610453600481565b3480156106a057600080fd5b506103fc6106af366004612ae3565b611624565b3480156106c057600080fd5b506103c46106cf366004612ae3565b611653565b3480156106e057600080fd5b506000546001600160a01b03166103c4565b3480156106fe57600080fd5b50610397611683565b34801561071357600080fd5b50610453610722366004612bf4565b6001600160a01b03166000908152600b602052604090205490565b34801561074957600080fd5b50610453610758366004612bf4565b60166020526000908152604090205481565b34801561077657600080fd5b5061045360115481565b34801561078c57600080fd5b506103fc61079b366004612d71565b611692565b3480156107ac57600080fd5b506103fc6107bb366004612db9565b6116cc565b6103fc6107ce366004612b88565b611761565b6103fc6107e1366004612b11565b61182e565b3480156107f257600080fd5b5060155461036d9060ff1681565b34801561080c57600080fd5b5061045361081b366004612bf4565b60176020526000908152604090205481565b34801561083957600080fd5b506103fc610848366004612de7565b611a5a565b34801561085957600080fd5b50610453600581565b34801561086e57600080fd5b506103fc61087d366004612ae3565b611a94565b34801561088e57600080fd5b5061039761089d366004612ae3565b611ac3565b3480156108ae57600080fd5b50600f546108bc9060ff1681565b6040516103799190612e7c565b3480156108d557600080fd5b506104536108e4366004612bf4565b6001600160a01b03166000908152600a602052604090205490565b34801561090b57600080fd5b506103fc61091a366004612bf4565b611b4c565b34801561092b57600080fd5b5061045361093a366004612bf4565b6001600160a01b03166000908152600d602052604090205490565b34801561096157600080fd5b50600954610453565b34801561097657600080fd5b5061036d610985366004612c52565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b3480156109bf57600080fd5b506103fc6109ce366004612bf4565b611b9e565b3480156109df57600080fd5b506103fc6109ee366004612ae3565b611c36565b6103fc610a01366004612ea4565b611c96565b60006001600160e01b031982166380ac58cd60e01b1480610a3757506001600160e01b03198216635b5e139f60e01b145b80610a5257506001600160e01b0319821663780e9d6360e01b145b80610a6d57506301ffc9a760e01b6001600160e01b03198316145b92915050565b606060028054610a8290612ed8565b80601f0160208091040260200160405190810160405280929190818152602001828054610aae90612ed8565b8015610afb5780601f10610ad057610100808354040283529160200191610afb565b820191906000526020600020905b815481529060010190602001808311610ade57829003601f168201915b5050505050905090565b6000610b1082611d60565b610b2d576040516333d1c03960e21b815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b6000610b54826114d1565b9050806001600160a01b0316836001600160a01b031603610b885760405163250fdee360e21b815260040160405180910390fd5b336001600160a01b03821614801590610ba85750610ba68133610985565b155b15610bc6576040516367d9dca160e11b815260040160405180910390fd5b610bd1838383611d96565b505050565b6000546001600160a01b03163314610c005760405162461bcd60e51b815260040161033f90612f12565b610535610c0b610ce4565b610c16906001612f5d565b1115610c595760405162461bcd60e51b815260206004820152601260248201527152656163686564206d617820737570706c7960701b604482015260640161033f565b60005b81811015610bd157610c95838383818110610c7957610c79612f70565b9050602002016020810190610c8e9190612bf4565b6001611df2565b80610c9f81612f86565b915050610c5c565b6000546001600160a01b03163314610cd15760405162461bcd60e51b815260040161033f90612f12565b6015805460ff1916911515919091179055565b6001546001600160801b03600160801b82048116918116919091031690565b6001600160a01b0381166000908152600a6020526040902054610d385760405162461bcd60e51b815260040161033f90612f9f565b6000610d4360095490565b610d4d9047612f5d565b90506000610d7a8383610d75866001600160a01b03166000908152600b602052604090205490565b611e0c565b905080600003610d9c5760405162461bcd60e51b815260040161033f90612fe5565b6001600160a01b0383166000908152600b602052604081208054839290610dc4908490612f5d565b925050819055508060096000828254610ddd9190612f5d565b90915550610ded90508382611e54565b604080516001600160a01b0385168152602081018390527fdf20fd1e76bc69d672e4814fafb2c449bba3a5369d8359adf9e05e6fde87b056910160405180910390a1505050565b610bd1838383611f6d565b6000610e4a83611571565b8210610e69576040516306ed618760e11b815260040160405180910390fd5b6001546001600160801b0316600080805b8381101561034857600081815260046020908152604091829020825160608101845290546001600160a01b0381168252600160a01b81046001600160401b031692820192909252600160e01b90910460ff161580159282019290925290610ee15750610f2b565b80516001600160a01b031615610ef657805192505b876001600160a01b0316836001600160a01b031603610f2957868403610f2257509350610a6d92505050565b6001909301925b505b600101610e7a565b610bd183838360405180602001604052806000815250611a5a565b6001600160a01b0381166000908152600a6020526040902054610f835760405162461bcd60e51b815260040161033f90612f9f565b6001600160a01b0382166000908152600d60205260408120546040516370a0823160e01b81523060048201526001600160a01b038516906370a0823190602401602060405180830381865afa158015610fe0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110049190613030565b61100e9190612f5d565b905060006110478383610d7587876001600160a01b039182166000908152600e6020908152604080832093909416825291909152205490565b9050806000036110695760405162461bcd60e51b815260040161033f90612fe5565b6001600160a01b038085166000908152600e60209081526040808320938716835292905290812080548392906110a0908490612f5d565b90915550506001600160a01b0384166000908152600d6020526040812080548392906110cd908490612f5d565b909155506110de9050848483612187565b604080516001600160a01b038581168252602082018490528616917f3be5b7a71e84ed12875d241991c70855ac5817d847039e17a9d895c1ceb0f18a910160405180910390a250505050565b3233146111495760405162461bcd60e51b815260040161033f90613049565b60105460155460ff161561116f5760405162461bcd60e51b815260040161033f90613080565b806000036111ac5760405162461bcd60e51b815260206004820152600a6024820152690507269636520697320360b41b604482015260640161033f565b6001600f5460ff1660048111156111c5576111c5612e66565b146112125760405162461bcd60e51b815260206004820152601f60248201527f57686974656c6973742073616c65206973206e6f742061637469766174656400604482015260640161033f565b61121d3384846121d9565b61125b5760405162461bcd60e51b815260206004820152600f60248201526e139bdd081dda1a5d195b1a5cdd1959608a1b604482015260640161033f565b33600090815260166020526040902054600590611279908690612f5d565b11156112dc5760405162461bcd60e51b815260206004820152602c60248201527f596f752063616e206f6e6c79206765742035204e4654206f6e2074686520576860448201526b6974656c6973742053616c6560a01b606482015260840161033f565b6112ea6102156105356130ac565b846112f3610ce4565b6112fd9190612f5d565b111561134b5760405162461bcd60e51b815260206004820152601f60248201527f4d617820737570706c7920657863656564656420666f7220574c204d696e7400604482015260640161033f565b61135584826130bf565b3410156113985760405162461bcd60e51b81526020600482015260116024820152704e6f7420656e6f756768742066756e647360781b604482015260640161033f565b33600090815260166020526040812080548692906113b7908490612f5d565b909155506113c790508585611df2565b5050505050565b6001546000906001600160801b031681805b8281101561145f57600081815260046020908152604091829020825160608101845290546001600160a01b0381168252600160a01b81046001600160401b031692820192909252600160e01b90910460ff161515918101829052906114565785830361144f5750949350505050565b6001909201915b506001016113e0565b506040516329c8c00760e21b815260040160405180910390fd5b6000546001600160a01b031633146114a35760405162461bcd60e51b815260040161033f90612f12565b60005b6014548110156114ce576114bc61047c82611653565b806114c681612f86565b9150506114a6565b50565b60006114dc8261225a565b5192915050565b601380546114f090612ed8565b80601f016020809104026020016040519081016040528092919081815260200182805461151c90612ed8565b80156115695780601f1061153e57610100808354040283529160200191611569565b820191906000526020600020905b81548152906001019060200180831161154c57829003601f168201915b505050505081565b60006001600160a01b03821661159a576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b03166000908152600560205260409020546001600160401b031690565b6000546001600160a01b031633146115e95760405162461bcd60e51b815260040161033f90612f12565b6115f3600061237e565b565b6000546001600160a01b0316331461161f5760405162461bcd60e51b815260040161033f90612f12565b601155565b6000546001600160a01b0316331461164e5760405162461bcd60e51b815260040161033f90612f12565b601255565b6000600c828154811061166857611668612f70565b6000918252602090912001546001600160a01b031692915050565b606060038054610a8290612ed8565b6000546001600160a01b031633146116bc5760405162461bcd60e51b815260040161033f90612f12565b60136116c88282613124565b5050565b336001600160a01b038316036116f55760405163b06307db60e01b815260040160405180910390fd5b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b3233146117805760405162461bcd60e51b815260040161033f90613049565b61053561178b610ce4565b611796906001612f5d565b11156117d95760405162461bcd60e51b815260206004820152601260248201527152656163686564206d617820737570706c7960701b604482015260640161033f565b60155460ff16156117fc5760405162461bcd60e51b815260040161033f90613080565b60005b81811015610bd15761181c838383818110610c7957610c79612f70565b8061182681612f86565b9150506117ff565b32331461184d5760405162461bcd60e51b815260040161033f90613049565b60115460155460ff16156118735760405162461bcd60e51b815260040161033f90613080565b806000036118b05760405162461bcd60e51b815260206004820152600a6024820152690507269636520697320360b41b604482015260640161033f565b6002600f5460ff1660048111156118c9576118c9612e66565b146119165760405162461bcd60e51b815260206004820152601c60248201527f5075626c69632073616c65206973206e6f742061637469766174656400000000604482015260640161033f565b6119246102156105356130ac565b8261192d610ce4565b6119379190612f5d565b11156119855760405162461bcd60e51b815260206004820152601e60248201527f4d617820737570706c79206578636565646564203a20536f6c64206f75740000604482015260640161033f565b336000908152601760205260409020546004906119a3908490612f5d565b1115611a035760405162461bcd60e51b815260206004820152602960248201527f596f752063616e206f6e6c79206765742034204e4654206f6e20746865205075604482015268626c69632053616c6560b81b606482015260840161033f565b611a0d82826130bf565b341015611a505760405162461bcd60e51b81526020600482015260116024820152704e6f7420656e6f756768742066756e647360781b604482015260640161033f565b610bd18383611df2565b611a65848484611f6d565b611a71848484846123ce565b611a8e576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b6000546001600160a01b03163314611abe5760405162461bcd60e51b815260040161033f90612f12565b601055565b6060611ace82611d60565b611b1a5760405162461bcd60e51b815260206004820152601f60248201527f55524920717565727920666f72206e6f6e6578697374656e7420746f6b656e00604482015260640161033f565b6013611b25836124d1565b604051602001611b369291906131e3565b6040516020818303038152906040529050919050565b6000546001600160a01b03163314611b765760405162461bcd60e51b815260040161033f90612f12565b600f80546001600160a01b0390921661010002610100600160a81b0319909216919091179055565b6000546001600160a01b03163314611bc85760405162461bcd60e51b815260040161033f90612f12565b6001600160a01b038116611c2d5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161033f565b6114ce8161237e565b6000546001600160a01b03163314611c605760405162461bcd60e51b815260040161033f90612f12565b806004811115611c7257611c72612e66565b600f805460ff19166001836004811115611c8e57611c8e612e66565b021790555050565b6105358160ff16611ca5610ce4565b611caf9190612f5d565b1115611cf45760405162461bcd60e51b81526020600482015260146024820152734d617820737570706c792065786365656465642160601b604482015260640161033f565b600f5461010090046001600160a01b03163314611d535760405162461bcd60e51b815260206004820152601c60248201527f5468652063616c6c6572206973206e6f7420506c656467654d696e7400000000604482015260640161033f565b6116c8828260ff16611df2565b6001546000906001600160801b031682108015610a6d575050600090815260046020526040902054600160e01b900460ff161590565b60008281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6116c88282604051806020016040528060008152506125d1565b6008546001600160a01b0384166000908152600a602052604081205490918391611e3690866130bf565b611e409190613290565b611e4a91906130ac565b90505b9392505050565b80471015611ea45760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e6365000000604482015260640161033f565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114611ef1576040519150601f19603f3d011682016040523d82523d6000602084013e611ef6565b606091505b5050905080610bd15760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d61792068617665207265766572746564000000000000606482015260840161033f565b6000611f788261225a565b80519091506000906001600160a01b0316336001600160a01b03161480611fa657508151611fa69033610985565b80611fc1575033611fb684610b05565b6001600160a01b0316145b905080611fe157604051632ce44b5f60e11b815260040160405180910390fd5b846001600160a01b031682600001516001600160a01b0316146120165760405162a1148160e81b815260040160405180910390fd5b6001600160a01b03841661203d57604051633a954ecd60e21b815260040160405180910390fd5b61204d6000848460000151611d96565b6001600160a01b038581166000908152600560209081526040808320805467ffffffffffffffff198082166001600160401b0392831660001901831617909255898616808652838620805493841693831660019081018416949094179055898652600490945282852080546001600160e01b031916909417600160a01b429092169190910217909255908601808352912054909116612140576001546001600160801b031681101561214057825160008281526004602090815260409091208054918601516001600160401b0316600160a01b026001600160e01b03199092166001600160a01b03909316929092171790555b5082846001600160a01b0316866001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46113c7565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052610bd19084906125de565b6000611e4a612221856040516bffffffffffffffffffffffff19606083901b166020820152600090603401604051602081830303815290604052805190602001209050919050565b8484808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152506126b092505050565b604080516060810182526000808252602082018190529181019190915260015482906001600160801b031681101561236557600081815260046020908152604091829020825160608101845290546001600160a01b0381168252600160a01b81046001600160401b031692820192909252600160e01b90910460ff161515918101829052906123635780516001600160a01b0316156122fa579392505050565b5060001901600081815260046020908152604091829020825160608101845290546001600160a01b038116808352600160a01b82046001600160401b031693830193909352600160e01b900460ff161515928101929092521561235e579392505050565b6122fa565b505b604051636f96cda160e11b815260040160405180910390fd5b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60006001600160a01b0384163b156124c557604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906124129033908990889088906004016132a4565b6020604051808303816000875af192505050801561244d575060408051601f3d908101601f1916820190925261244a918101906132e1565b60015b6124ab573d80801561247b576040519150601f19603f3d011682016040523d82523d6000602084013e612480565b606091505b5080516000036124a3576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506124c9565b5060015b949350505050565b6060816000036124f85750506040805180820190915260018152600360fc1b602082015290565b8160005b8115612522578061250c81612f86565b915061251b9050600a83613290565b91506124fc565b6000816001600160401b0381111561253c5761253c612ce6565b6040519080825280601f01601f191660200182016040528015612566576020820181803683370190505b5090505b84156124c95761257b6001836130ac565b9150612588600a866132fe565b612593906030612f5d565b60f81b8183815181106125a8576125a8612f70565b60200101906001600160f81b031916908160001a9053506125ca600a86613290565b945061256a565b610bd183838360016126bf565b6000612633826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b031661284a9092919063ffffffff16565b805190915015610bd157808060200190518101906126519190613312565b610bd15760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b606482015260840161033f565b6000611e4d8260125485612859565b6001546001600160801b03166001600160a01b0385166126f157604051622e076360e81b815260040160405180910390fd5b836000036127125760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b038516600081815260056020908152604080832080546001600160801b031981166001600160401b038083168c0181169182176801000000000000000067ffffffffffffffff1990941690921783900481168c018116909202179091558584526004909252822080546001600160e01b031916909317600160a01b42909216919091021790915581905b858110156128245760405182906001600160a01b038916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a48380156127fa57506127f860008884886123ce565b155b15612818576040516368d2bf6b60e11b815260040160405180910390fd5b600191820191016127a3565b50600180546001600160801b0319166001600160801b03929092169190911790556113c7565b6060611e4a848460008561286f565b60008261286685846129a0565b14949350505050565b6060824710156128d05760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b606482015260840161033f565b6001600160a01b0385163b6129275760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015260640161033f565b600080866001600160a01b03168587604051612943919061332f565b60006040518083038185875af1925050503d8060008114612980576040519150601f19603f3d011682016040523d82523d6000602084013e612985565b606091505b5091509150612995828286612a14565b979650505050505050565b600081815b8451811015612a0c5760008582815181106129c2576129c2612f70565b602002602001015190508083116129e857600083815260208290526040902092506129f9565b600081815260208490526040902092505b5080612a0481612f86565b9150506129a5565b509392505050565b60608315612a23575081611e4d565b825115612a335782518084602001fd5b8160405162461bcd60e51b815260040161033f9190612ad0565b6001600160e01b0319811681146114ce57600080fd5b600060208284031215612a7557600080fd5b8135611e4d81612a4d565b60005b83811015612a9b578181015183820152602001612a83565b50506000910152565b60008151808452612abc816020860160208601612a80565b601f01601f19169290920160200192915050565b602081526000611e4d6020830184612aa4565b600060208284031215612af557600080fd5b5035919050565b6001600160a01b03811681146114ce57600080fd5b60008060408385031215612b2457600080fd5b8235612b2f81612afc565b946020939093013593505050565b60008083601f840112612b4f57600080fd5b5081356001600160401b03811115612b6657600080fd5b6020830191508360208260051b8501011115612b8157600080fd5b9250929050565b60008060208385031215612b9b57600080fd5b82356001600160401b03811115612bb157600080fd5b612bbd85828601612b3d565b90969095509350505050565b80151581146114ce57600080fd5b600060208284031215612be957600080fd5b8135611e4d81612bc9565b600060208284031215612c0657600080fd5b8135611e4d81612afc565b600080600060608486031215612c2657600080fd5b8335612c3181612afc565b92506020840135612c4181612afc565b929592945050506040919091013590565b60008060408385031215612c6557600080fd5b8235612c7081612afc565b91506020830135612c8081612afc565b809150509250929050565b60008060008060608587031215612ca157600080fd5b8435612cac81612afc565b93506020850135925060408501356001600160401b03811115612cce57600080fd5b612cda87828801612b3d565b95989497509550505050565b634e487b7160e01b600052604160045260246000fd5b60006001600160401b0380841115612d1657612d16612ce6565b604051601f8501601f19908116603f01168101908282118183101715612d3e57612d3e612ce6565b81604052809350858152868686011115612d5757600080fd5b858560208301376000602087830101525050509392505050565b600060208284031215612d8357600080fd5b81356001600160401b03811115612d9957600080fd5b8201601f81018413612daa57600080fd5b6124c984823560208401612cfc565b60008060408385031215612dcc57600080fd5b8235612dd781612afc565b91506020830135612c8081612bc9565b60008060008060808587031215612dfd57600080fd5b8435612e0881612afc565b93506020850135612e1881612afc565b92506040850135915060608501356001600160401b03811115612e3a57600080fd5b8501601f81018713612e4b57600080fd5b612e5a87823560208401612cfc565b91505092959194509250565b634e487b7160e01b600052602160045260246000fd5b6020810160058310612e9e57634e487b7160e01b600052602160045260246000fd5b91905290565b60008060408385031215612eb757600080fd5b8235612ec281612afc565b9150602083013560ff81168114612c8057600080fd5b600181811c90821680612eec57607f821691505b602082108103612f0c57634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b634e487b7160e01b600052601160045260246000fd5b80820180821115610a6d57610a6d612f47565b634e487b7160e01b600052603260045260246000fd5b600060018201612f9857612f98612f47565b5060010190565b60208082526026908201527f5061796d656e7453706c69747465723a206163636f756e7420686173206e6f2060408201526573686172657360d01b606082015260800190565b6020808252602b908201527f5061796d656e7453706c69747465723a206163636f756e74206973206e6f742060408201526a191d59481c185e5b595b9d60aa1b606082015260800190565b60006020828403121561304257600080fd5b5051919050565b6020808252601e908201527f5468652063616c6c657220697320616e6f7468657220636f6e74726163740000604082015260600190565b60208082526012908201527110dbdb9d1c9858dd081a5cc81c185d5cd95960721b604082015260600190565b81810381811115610a6d57610a6d612f47565b8082028115828204841417610a6d57610a6d612f47565b601f821115610bd157600081815260208120601f850160051c810160208610156130fd5750805b601f850160051c820191505b8181101561311c57828155600101613109565b505050505050565b81516001600160401b0381111561313d5761313d612ce6565b6131518161314b8454612ed8565b846130d6565b602080601f831160018114613186576000841561316e5750858301515b600019600386901b1c1916600185901b17855561311c565b600085815260208120601f198616915b828110156131b557888601518255948401946001909101908401613196565b50858210156131d35787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b60008084546131f181612ed8565b60018281168015613209576001811461321e5761324d565b60ff198416875282151583028701945061324d565b8860005260208060002060005b858110156132445781548a82015290840190820161322b565b50505082870194505b505050508351613261818360208801612a80565b64173539b7b760d91b9101908152600501949350505050565b634e487b7160e01b600052601260045260246000fd5b60008261329f5761329f61327a565b500490565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906132d790830184612aa4565b9695505050505050565b6000602082840312156132f357600080fd5b8151611e4d81612a4d565b60008261330d5761330d61327a565b500690565b60006020828403121561332457600080fd5b8151611e4d81612bc9565b60008251613341818460208701612a80565b919091019291505056fea2646970667358221220e5ee9a7a4005ab9f715c7b6b02da134bb06ee960345638412aa3c604b7f4debd64736f6c63430008110033000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000c0f70b927026bfbe1aa36b68cb3e419634f8bd6e2fddf6aa7f3c5211cc153ca11a00000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000001000000000000000000000000278a94b8c2baadc8cc6b822a282d6ac5fc6d5ffa00000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000064000000000000000000000000000000000000000000000000000000000000006568747470733a2f2f73616c6d6f6e2d6f6666696369616c2d6c6f637573742d35372e6d7970696e6174612e636c6f75642f697066732f516d53705a666d346571667055634b724c44626a566a52566e4633543247786a693933334d546d70456470724b462f000000000000000000000000000000000000000000000000000000

Deployed Bytecode

0x6080604052600436106103035760003560e01c80638ac1e16111610190578063b88d4fde116100dc578063cf3df23011610095578063e985e9c51161006f578063e985e9c51461096a578063f2fde38b146109b3578063f8dcbddb146109d3578063fb0f4a7f146109f357600080fd5b8063cf3df230146108ff578063d79779b21461091f578063e33b7de31461095557600080fd5b8063b88d4fde1461082d578063bd863b0a1461084d578063bf332d6114610862578063c87b56dd14610882578063cbccefb2146108a2578063ce7c2ac2146108c957600080fd5b80639b6860c811610149578063a8d7851711610123578063a8d78517146107c0578063ac5ae11b146107d3578063b187bd26146107e6578063b3c542151461080057600080fd5b80639b6860c81461076a578063a0bcfc7f14610780578063a22cb465146107a057600080fd5b80638ac1e161146106945780638b83209b146106b45780638da5cb5b146106d457806395d89b41146106f25780639852595c1461070757806399d138001461073d57600080fd5b806342842e0e1161024f5780636352211e11610208578063715018a6116101e2578063715018a614610634578063734c66bd14610649578063791a25191461065f578063828b03801461067f57600080fd5b80636352211e146105df5780636c0360eb146105ff57806370a082311461061457600080fd5b806342842e0e1461054157806348b75044146105615780634b11faaf146105815780634f6ccce71461059457806354c06aee146105b45780635be7fde8146105ca57600080fd5b806318160ddd116102bc57806323b872dd1161029657806323b872dd146104a65780632f745c59146104c65780633a98ef39146104e6578063406072a9146104fb57600080fd5b806318160ddd1461043e57806319165587146104615780631fba58ed1461048157600080fd5b806301ffc9a71461034d57806306fdde0314610382578063081812fc146103a4578063095ea7b3146103dc578063163e1e61146103fe57806316c38b3c1461041e57600080fd5b366103485760405162461bcd60e51b815260206004820152601060248201526f13db9b1e481a59881e5bdd481b5a5b9d60821b60448201526064015b60405180910390fd5b600080fd5b34801561035957600080fd5b5061036d610368366004612a63565b610a06565b60405190151581526020015b60405180910390f35b34801561038e57600080fd5b50610397610a73565b6040516103799190612ad0565b3480156103b057600080fd5b506103c46103bf366004612ae3565b610b05565b6040516001600160a01b039091168152602001610379565b3480156103e857600080fd5b506103fc6103f7366004612b11565b610b49565b005b34801561040a57600080fd5b506103fc610419366004612b88565b610bd6565b34801561042a57600080fd5b506103fc610439366004612bd7565b610ca7565b34801561044a57600080fd5b50610453610ce4565b604051908152602001610379565b34801561046d57600080fd5b506103fc61047c366004612bf4565b610d03565b34801561048d57600080fd5b50600f546103c49061010090046001600160a01b031681565b3480156104b257600080fd5b506103fc6104c1366004612c11565b610e34565b3480156104d257600080fd5b506104536104e1366004612b11565b610e3f565b3480156104f257600080fd5b50600854610453565b34801561050757600080fd5b50610453610516366004612c52565b6001600160a01b039182166000908152600e6020908152604080832093909416825291909152205490565b34801561054d57600080fd5b506103fc61055c366004612c11565b610f33565b34801561056d57600080fd5b506103fc61057c366004612c52565b610f4e565b6103fc61058f366004612c8b565b61112a565b3480156105a057600080fd5b506104536105af366004612ae3565b6113ce565b3480156105c057600080fd5b5061045360125481565b3480156105d657600080fd5b506103fc611479565b3480156105eb57600080fd5b506103c46105fa366004612ae3565b6114d1565b34801561060b57600080fd5b506103976114e3565b34801561062057600080fd5b5061045361062f366004612bf4565b611571565b34801561064057600080fd5b506103fc6115bf565b34801561065557600080fd5b5061045360105481565b34801561066b57600080fd5b506103fc61067a366004612ae3565b6115f5565b34801561068b57600080fd5b50610453600481565b3480156106a057600080fd5b506103fc6106af366004612ae3565b611624565b3480156106c057600080fd5b506103c46106cf366004612ae3565b611653565b3480156106e057600080fd5b506000546001600160a01b03166103c4565b3480156106fe57600080fd5b50610397611683565b34801561071357600080fd5b50610453610722366004612bf4565b6001600160a01b03166000908152600b602052604090205490565b34801561074957600080fd5b50610453610758366004612bf4565b60166020526000908152604090205481565b34801561077657600080fd5b5061045360115481565b34801561078c57600080fd5b506103fc61079b366004612d71565b611692565b3480156107ac57600080fd5b506103fc6107bb366004612db9565b6116cc565b6103fc6107ce366004612b88565b611761565b6103fc6107e1366004612b11565b61182e565b3480156107f257600080fd5b5060155461036d9060ff1681565b34801561080c57600080fd5b5061045361081b366004612bf4565b60176020526000908152604090205481565b34801561083957600080fd5b506103fc610848366004612de7565b611a5a565b34801561085957600080fd5b50610453600581565b34801561086e57600080fd5b506103fc61087d366004612ae3565b611a94565b34801561088e57600080fd5b5061039761089d366004612ae3565b611ac3565b3480156108ae57600080fd5b50600f546108bc9060ff1681565b6040516103799190612e7c565b3480156108d557600080fd5b506104536108e4366004612bf4565b6001600160a01b03166000908152600a602052604090205490565b34801561090b57600080fd5b506103fc61091a366004612bf4565b611b4c565b34801561092b57600080fd5b5061045361093a366004612bf4565b6001600160a01b03166000908152600d602052604090205490565b34801561096157600080fd5b50600954610453565b34801561097657600080fd5b5061036d610985366004612c52565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b3480156109bf57600080fd5b506103fc6109ce366004612bf4565b611b9e565b3480156109df57600080fd5b506103fc6109ee366004612ae3565b611c36565b6103fc610a01366004612ea4565b611c96565b60006001600160e01b031982166380ac58cd60e01b1480610a3757506001600160e01b03198216635b5e139f60e01b145b80610a5257506001600160e01b0319821663780e9d6360e01b145b80610a6d57506301ffc9a760e01b6001600160e01b03198316145b92915050565b606060028054610a8290612ed8565b80601f0160208091040260200160405190810160405280929190818152602001828054610aae90612ed8565b8015610afb5780601f10610ad057610100808354040283529160200191610afb565b820191906000526020600020905b815481529060010190602001808311610ade57829003601f168201915b5050505050905090565b6000610b1082611d60565b610b2d576040516333d1c03960e21b815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b6000610b54826114d1565b9050806001600160a01b0316836001600160a01b031603610b885760405163250fdee360e21b815260040160405180910390fd5b336001600160a01b03821614801590610ba85750610ba68133610985565b155b15610bc6576040516367d9dca160e11b815260040160405180910390fd5b610bd1838383611d96565b505050565b6000546001600160a01b03163314610c005760405162461bcd60e51b815260040161033f90612f12565b610535610c0b610ce4565b610c16906001612f5d565b1115610c595760405162461bcd60e51b815260206004820152601260248201527152656163686564206d617820737570706c7960701b604482015260640161033f565b60005b81811015610bd157610c95838383818110610c7957610c79612f70565b9050602002016020810190610c8e9190612bf4565b6001611df2565b80610c9f81612f86565b915050610c5c565b6000546001600160a01b03163314610cd15760405162461bcd60e51b815260040161033f90612f12565b6015805460ff1916911515919091179055565b6001546001600160801b03600160801b82048116918116919091031690565b6001600160a01b0381166000908152600a6020526040902054610d385760405162461bcd60e51b815260040161033f90612f9f565b6000610d4360095490565b610d4d9047612f5d565b90506000610d7a8383610d75866001600160a01b03166000908152600b602052604090205490565b611e0c565b905080600003610d9c5760405162461bcd60e51b815260040161033f90612fe5565b6001600160a01b0383166000908152600b602052604081208054839290610dc4908490612f5d565b925050819055508060096000828254610ddd9190612f5d565b90915550610ded90508382611e54565b604080516001600160a01b0385168152602081018390527fdf20fd1e76bc69d672e4814fafb2c449bba3a5369d8359adf9e05e6fde87b056910160405180910390a1505050565b610bd1838383611f6d565b6000610e4a83611571565b8210610e69576040516306ed618760e11b815260040160405180910390fd5b6001546001600160801b0316600080805b8381101561034857600081815260046020908152604091829020825160608101845290546001600160a01b0381168252600160a01b81046001600160401b031692820192909252600160e01b90910460ff161580159282019290925290610ee15750610f2b565b80516001600160a01b031615610ef657805192505b876001600160a01b0316836001600160a01b031603610f2957868403610f2257509350610a6d92505050565b6001909301925b505b600101610e7a565b610bd183838360405180602001604052806000815250611a5a565b6001600160a01b0381166000908152600a6020526040902054610f835760405162461bcd60e51b815260040161033f90612f9f565b6001600160a01b0382166000908152600d60205260408120546040516370a0823160e01b81523060048201526001600160a01b038516906370a0823190602401602060405180830381865afa158015610fe0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110049190613030565b61100e9190612f5d565b905060006110478383610d7587876001600160a01b039182166000908152600e6020908152604080832093909416825291909152205490565b9050806000036110695760405162461bcd60e51b815260040161033f90612fe5565b6001600160a01b038085166000908152600e60209081526040808320938716835292905290812080548392906110a0908490612f5d565b90915550506001600160a01b0384166000908152600d6020526040812080548392906110cd908490612f5d565b909155506110de9050848483612187565b604080516001600160a01b038581168252602082018490528616917f3be5b7a71e84ed12875d241991c70855ac5817d847039e17a9d895c1ceb0f18a910160405180910390a250505050565b3233146111495760405162461bcd60e51b815260040161033f90613049565b60105460155460ff161561116f5760405162461bcd60e51b815260040161033f90613080565b806000036111ac5760405162461bcd60e51b815260206004820152600a6024820152690507269636520697320360b41b604482015260640161033f565b6001600f5460ff1660048111156111c5576111c5612e66565b146112125760405162461bcd60e51b815260206004820152601f60248201527f57686974656c6973742073616c65206973206e6f742061637469766174656400604482015260640161033f565b61121d3384846121d9565b61125b5760405162461bcd60e51b815260206004820152600f60248201526e139bdd081dda1a5d195b1a5cdd1959608a1b604482015260640161033f565b33600090815260166020526040902054600590611279908690612f5d565b11156112dc5760405162461bcd60e51b815260206004820152602c60248201527f596f752063616e206f6e6c79206765742035204e4654206f6e2074686520576860448201526b6974656c6973742053616c6560a01b606482015260840161033f565b6112ea6102156105356130ac565b846112f3610ce4565b6112fd9190612f5d565b111561134b5760405162461bcd60e51b815260206004820152601f60248201527f4d617820737570706c7920657863656564656420666f7220574c204d696e7400604482015260640161033f565b61135584826130bf565b3410156113985760405162461bcd60e51b81526020600482015260116024820152704e6f7420656e6f756768742066756e647360781b604482015260640161033f565b33600090815260166020526040812080548692906113b7908490612f5d565b909155506113c790508585611df2565b5050505050565b6001546000906001600160801b031681805b8281101561145f57600081815260046020908152604091829020825160608101845290546001600160a01b0381168252600160a01b81046001600160401b031692820192909252600160e01b90910460ff161515918101829052906114565785830361144f5750949350505050565b6001909201915b506001016113e0565b506040516329c8c00760e21b815260040160405180910390fd5b6000546001600160a01b031633146114a35760405162461bcd60e51b815260040161033f90612f12565b60005b6014548110156114ce576114bc61047c82611653565b806114c681612f86565b9150506114a6565b50565b60006114dc8261225a565b5192915050565b601380546114f090612ed8565b80601f016020809104026020016040519081016040528092919081815260200182805461151c90612ed8565b80156115695780601f1061153e57610100808354040283529160200191611569565b820191906000526020600020905b81548152906001019060200180831161154c57829003601f168201915b505050505081565b60006001600160a01b03821661159a576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b03166000908152600560205260409020546001600160401b031690565b6000546001600160a01b031633146115e95760405162461bcd60e51b815260040161033f90612f12565b6115f3600061237e565b565b6000546001600160a01b0316331461161f5760405162461bcd60e51b815260040161033f90612f12565b601155565b6000546001600160a01b0316331461164e5760405162461bcd60e51b815260040161033f90612f12565b601255565b6000600c828154811061166857611668612f70565b6000918252602090912001546001600160a01b031692915050565b606060038054610a8290612ed8565b6000546001600160a01b031633146116bc5760405162461bcd60e51b815260040161033f90612f12565b60136116c88282613124565b5050565b336001600160a01b038316036116f55760405163b06307db60e01b815260040160405180910390fd5b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b3233146117805760405162461bcd60e51b815260040161033f90613049565b61053561178b610ce4565b611796906001612f5d565b11156117d95760405162461bcd60e51b815260206004820152601260248201527152656163686564206d617820737570706c7960701b604482015260640161033f565b60155460ff16156117fc5760405162461bcd60e51b815260040161033f90613080565b60005b81811015610bd15761181c838383818110610c7957610c79612f70565b8061182681612f86565b9150506117ff565b32331461184d5760405162461bcd60e51b815260040161033f90613049565b60115460155460ff16156118735760405162461bcd60e51b815260040161033f90613080565b806000036118b05760405162461bcd60e51b815260206004820152600a6024820152690507269636520697320360b41b604482015260640161033f565b6002600f5460ff1660048111156118c9576118c9612e66565b146119165760405162461bcd60e51b815260206004820152601c60248201527f5075626c69632073616c65206973206e6f742061637469766174656400000000604482015260640161033f565b6119246102156105356130ac565b8261192d610ce4565b6119379190612f5d565b11156119855760405162461bcd60e51b815260206004820152601e60248201527f4d617820737570706c79206578636565646564203a20536f6c64206f75740000604482015260640161033f565b336000908152601760205260409020546004906119a3908490612f5d565b1115611a035760405162461bcd60e51b815260206004820152602960248201527f596f752063616e206f6e6c79206765742034204e4654206f6e20746865205075604482015268626c69632053616c6560b81b606482015260840161033f565b611a0d82826130bf565b341015611a505760405162461bcd60e51b81526020600482015260116024820152704e6f7420656e6f756768742066756e647360781b604482015260640161033f565b610bd18383611df2565b611a65848484611f6d565b611a71848484846123ce565b611a8e576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b6000546001600160a01b03163314611abe5760405162461bcd60e51b815260040161033f90612f12565b601055565b6060611ace82611d60565b611b1a5760405162461bcd60e51b815260206004820152601f60248201527f55524920717565727920666f72206e6f6e6578697374656e7420746f6b656e00604482015260640161033f565b6013611b25836124d1565b604051602001611b369291906131e3565b6040516020818303038152906040529050919050565b6000546001600160a01b03163314611b765760405162461bcd60e51b815260040161033f90612f12565b600f80546001600160a01b0390921661010002610100600160a81b0319909216919091179055565b6000546001600160a01b03163314611bc85760405162461bcd60e51b815260040161033f90612f12565b6001600160a01b038116611c2d5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161033f565b6114ce8161237e565b6000546001600160a01b03163314611c605760405162461bcd60e51b815260040161033f90612f12565b806004811115611c7257611c72612e66565b600f805460ff19166001836004811115611c8e57611c8e612e66565b021790555050565b6105358160ff16611ca5610ce4565b611caf9190612f5d565b1115611cf45760405162461bcd60e51b81526020600482015260146024820152734d617820737570706c792065786365656465642160601b604482015260640161033f565b600f5461010090046001600160a01b03163314611d535760405162461bcd60e51b815260206004820152601c60248201527f5468652063616c6c6572206973206e6f7420506c656467654d696e7400000000604482015260640161033f565b6116c8828260ff16611df2565b6001546000906001600160801b031682108015610a6d575050600090815260046020526040902054600160e01b900460ff161590565b60008281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6116c88282604051806020016040528060008152506125d1565b6008546001600160a01b0384166000908152600a602052604081205490918391611e3690866130bf565b611e409190613290565b611e4a91906130ac565b90505b9392505050565b80471015611ea45760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e6365000000604482015260640161033f565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114611ef1576040519150601f19603f3d011682016040523d82523d6000602084013e611ef6565b606091505b5050905080610bd15760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d61792068617665207265766572746564000000000000606482015260840161033f565b6000611f788261225a565b80519091506000906001600160a01b0316336001600160a01b03161480611fa657508151611fa69033610985565b80611fc1575033611fb684610b05565b6001600160a01b0316145b905080611fe157604051632ce44b5f60e11b815260040160405180910390fd5b846001600160a01b031682600001516001600160a01b0316146120165760405162a1148160e81b815260040160405180910390fd5b6001600160a01b03841661203d57604051633a954ecd60e21b815260040160405180910390fd5b61204d6000848460000151611d96565b6001600160a01b038581166000908152600560209081526040808320805467ffffffffffffffff198082166001600160401b0392831660001901831617909255898616808652838620805493841693831660019081018416949094179055898652600490945282852080546001600160e01b031916909417600160a01b429092169190910217909255908601808352912054909116612140576001546001600160801b031681101561214057825160008281526004602090815260409091208054918601516001600160401b0316600160a01b026001600160e01b03199092166001600160a01b03909316929092171790555b5082846001600160a01b0316866001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46113c7565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052610bd19084906125de565b6000611e4a612221856040516bffffffffffffffffffffffff19606083901b166020820152600090603401604051602081830303815290604052805190602001209050919050565b8484808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152506126b092505050565b604080516060810182526000808252602082018190529181019190915260015482906001600160801b031681101561236557600081815260046020908152604091829020825160608101845290546001600160a01b0381168252600160a01b81046001600160401b031692820192909252600160e01b90910460ff161515918101829052906123635780516001600160a01b0316156122fa579392505050565b5060001901600081815260046020908152604091829020825160608101845290546001600160a01b038116808352600160a01b82046001600160401b031693830193909352600160e01b900460ff161515928101929092521561235e579392505050565b6122fa565b505b604051636f96cda160e11b815260040160405180910390fd5b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60006001600160a01b0384163b156124c557604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906124129033908990889088906004016132a4565b6020604051808303816000875af192505050801561244d575060408051601f3d908101601f1916820190925261244a918101906132e1565b60015b6124ab573d80801561247b576040519150601f19603f3d011682016040523d82523d6000602084013e612480565b606091505b5080516000036124a3576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506124c9565b5060015b949350505050565b6060816000036124f85750506040805180820190915260018152600360fc1b602082015290565b8160005b8115612522578061250c81612f86565b915061251b9050600a83613290565b91506124fc565b6000816001600160401b0381111561253c5761253c612ce6565b6040519080825280601f01601f191660200182016040528015612566576020820181803683370190505b5090505b84156124c95761257b6001836130ac565b9150612588600a866132fe565b612593906030612f5d565b60f81b8183815181106125a8576125a8612f70565b60200101906001600160f81b031916908160001a9053506125ca600a86613290565b945061256a565b610bd183838360016126bf565b6000612633826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b031661284a9092919063ffffffff16565b805190915015610bd157808060200190518101906126519190613312565b610bd15760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b606482015260840161033f565b6000611e4d8260125485612859565b6001546001600160801b03166001600160a01b0385166126f157604051622e076360e81b815260040160405180910390fd5b836000036127125760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b038516600081815260056020908152604080832080546001600160801b031981166001600160401b038083168c0181169182176801000000000000000067ffffffffffffffff1990941690921783900481168c018116909202179091558584526004909252822080546001600160e01b031916909317600160a01b42909216919091021790915581905b858110156128245760405182906001600160a01b038916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a48380156127fa57506127f860008884886123ce565b155b15612818576040516368d2bf6b60e11b815260040160405180910390fd5b600191820191016127a3565b50600180546001600160801b0319166001600160801b03929092169190911790556113c7565b6060611e4a848460008561286f565b60008261286685846129a0565b14949350505050565b6060824710156128d05760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b606482015260840161033f565b6001600160a01b0385163b6129275760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015260640161033f565b600080866001600160a01b03168587604051612943919061332f565b60006040518083038185875af1925050503d8060008114612980576040519150601f19603f3d011682016040523d82523d6000602084013e612985565b606091505b5091509150612995828286612a14565b979650505050505050565b600081815b8451811015612a0c5760008582815181106129c2576129c2612f70565b602002602001015190508083116129e857600083815260208290526040902092506129f9565b600081815260208490526040902092505b5080612a0481612f86565b9150506129a5565b509392505050565b60608315612a23575081611e4d565b825115612a335782518084602001fd5b8160405162461bcd60e51b815260040161033f9190612ad0565b6001600160e01b0319811681146114ce57600080fd5b600060208284031215612a7557600080fd5b8135611e4d81612a4d565b60005b83811015612a9b578181015183820152602001612a83565b50506000910152565b60008151808452612abc816020860160208601612a80565b601f01601f19169290920160200192915050565b602081526000611e4d6020830184612aa4565b600060208284031215612af557600080fd5b5035919050565b6001600160a01b03811681146114ce57600080fd5b60008060408385031215612b2457600080fd5b8235612b2f81612afc565b946020939093013593505050565b60008083601f840112612b4f57600080fd5b5081356001600160401b03811115612b6657600080fd5b6020830191508360208260051b8501011115612b8157600080fd5b9250929050565b60008060208385031215612b9b57600080fd5b82356001600160401b03811115612bb157600080fd5b612bbd85828601612b3d565b90969095509350505050565b80151581146114ce57600080fd5b600060208284031215612be957600080fd5b8135611e4d81612bc9565b600060208284031215612c0657600080fd5b8135611e4d81612afc565b600080600060608486031215612c2657600080fd5b8335612c3181612afc565b92506020840135612c4181612afc565b929592945050506040919091013590565b60008060408385031215612c6557600080fd5b8235612c7081612afc565b91506020830135612c8081612afc565b809150509250929050565b60008060008060608587031215612ca157600080fd5b8435612cac81612afc565b93506020850135925060408501356001600160401b03811115612cce57600080fd5b612cda87828801612b3d565b95989497509550505050565b634e487b7160e01b600052604160045260246000fd5b60006001600160401b0380841115612d1657612d16612ce6565b604051601f8501601f19908116603f01168101908282118183101715612d3e57612d3e612ce6565b81604052809350858152868686011115612d5757600080fd5b858560208301376000602087830101525050509392505050565b600060208284031215612d8357600080fd5b81356001600160401b03811115612d9957600080fd5b8201601f81018413612daa57600080fd5b6124c984823560208401612cfc565b60008060408385031215612dcc57600080fd5b8235612dd781612afc565b91506020830135612c8081612bc9565b60008060008060808587031215612dfd57600080fd5b8435612e0881612afc565b93506020850135612e1881612afc565b92506040850135915060608501356001600160401b03811115612e3a57600080fd5b8501601f81018713612e4b57600080fd5b612e5a87823560208401612cfc565b91505092959194509250565b634e487b7160e01b600052602160045260246000fd5b6020810160058310612e9e57634e487b7160e01b600052602160045260246000fd5b91905290565b60008060408385031215612eb757600080fd5b8235612ec281612afc565b9150602083013560ff81168114612c8057600080fd5b600181811c90821680612eec57607f821691505b602082108103612f0c57634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b634e487b7160e01b600052601160045260246000fd5b80820180821115610a6d57610a6d612f47565b634e487b7160e01b600052603260045260246000fd5b600060018201612f9857612f98612f47565b5060010190565b60208082526026908201527f5061796d656e7453706c69747465723a206163636f756e7420686173206e6f2060408201526573686172657360d01b606082015260800190565b6020808252602b908201527f5061796d656e7453706c69747465723a206163636f756e74206973206e6f742060408201526a191d59481c185e5b595b9d60aa1b606082015260800190565b60006020828403121561304257600080fd5b5051919050565b6020808252601e908201527f5468652063616c6c657220697320616e6f7468657220636f6e74726163740000604082015260600190565b60208082526012908201527110dbdb9d1c9858dd081a5cc81c185d5cd95960721b604082015260600190565b81810381811115610a6d57610a6d612f47565b8082028115828204841417610a6d57610a6d612f47565b601f821115610bd157600081815260208120601f850160051c810160208610156130fd5750805b601f850160051c820191505b8181101561311c57828155600101613109565b505050505050565b81516001600160401b0381111561313d5761313d612ce6565b6131518161314b8454612ed8565b846130d6565b602080601f831160018114613186576000841561316e5750858301515b600019600386901b1c1916600185901b17855561311c565b600085815260208120601f198616915b828110156131b557888601518255948401946001909101908401613196565b50858210156131d35787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b60008084546131f181612ed8565b60018281168015613209576001811461321e5761324d565b60ff198416875282151583028701945061324d565b8860005260208060002060005b858110156132445781548a82015290840190820161322b565b50505082870194505b505050508351613261818360208801612a80565b64173539b7b760d91b9101908152600501949350505050565b634e487b7160e01b600052601260045260246000fd5b60008261329f5761329f61327a565b500490565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906132d790830184612aa4565b9695505050505050565b6000602082840312156132f357600080fd5b8151611e4d81612a4d565b60008261330d5761330d61327a565b500690565b60006020828403121561332457600080fd5b8151611e4d81612bc9565b60008251613341818460208701612a80565b919091019291505056fea2646970667358221220e5ee9a7a4005ab9f715c7b6b02da134bb06ee960345638412aa3c604b7f4debd64736f6c63430008110033

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

000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000c0f70b927026bfbe1aa36b68cb3e419634f8bd6e2fddf6aa7f3c5211cc153ca11a00000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000001000000000000000000000000278a94b8c2baadc8cc6b822a282d6ac5fc6d5ffa00000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000064000000000000000000000000000000000000000000000000000000000000006568747470733a2f2f73616c6d6f6e2d6f6666696369616c2d6c6f637573742d35372e6d7970696e6174612e636c6f75642f697066732f516d53705a666d346571667055634b724c44626a566a52566e4633543247786a693933334d546d70456470724b462f000000000000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : _team (address[]): 0x278A94b8C2BAaDc8CC6b822a282D6Ac5fc6d5FFa
Arg [1] : _teamShares (uint256[]): 100
Arg [2] : _wlMerkleRoot (bytes32): 0xf70b927026bfbe1aa36b68cb3e419634f8bd6e2fddf6aa7f3c5211cc153ca11a
Arg [3] : _baseURI (string): https://salmon-official-locust-57.mypinata.cloud/ipfs/QmSpZfm4eqfpUcKrLDbjVjRVnF3T2Gxji933MTmpEdprKF/

-----Encoded View---------------
13 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000080
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000c0
Arg [2] : f70b927026bfbe1aa36b68cb3e419634f8bd6e2fddf6aa7f3c5211cc153ca11a
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000100
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000001
Arg [5] : 000000000000000000000000278a94b8c2baadc8cc6b822a282d6ac5fc6d5ffa
Arg [6] : 0000000000000000000000000000000000000000000000000000000000000001
Arg [7] : 0000000000000000000000000000000000000000000000000000000000000064
Arg [8] : 0000000000000000000000000000000000000000000000000000000000000065
Arg [9] : 68747470733a2f2f73616c6d6f6e2d6f6666696369616c2d6c6f637573742d35
Arg [10] : 372e6d7970696e6174612e636c6f75642f697066732f516d53705a666d346571
Arg [11] : 667055634b724c44626a566a52566e4633543247786a693933334d546d704564
Arg [12] : 70724b462f000000000000000000000000000000000000000000000000000000


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.