ETH Price: $2,826.39 (+7.75%)
 

Overview

Max Total Supply

4,998 COWLONY

Holders

425

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Balance
5 COWLONY
0x14c3ae78c97ba3865aaea6c1c21f452a5be64cdc
Loading...
Loading
Loading...
Loading
Loading...
Loading

Click here to update the token information / general information
# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
Cowlony

Compiler Version
v0.8.4+commit.c7e474f2

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 23 : Cowlony.sol
// SPDX-License-Identifier: MIT
// Creator: https://github.com/cowlony-org

pragma solidity ^0.8.4;

import "@openzeppelin/contracts/access/AccessControlEnumerable.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "erc721a/contracts/extensions/ERC721ABurnable.sol";
import "./AllowlistSale.sol";
import "./ProxyRegistry.sol";

/**
 * @title Cowlony contract
 * @dev Extends ERC721A
 */
contract Cowlony is ERC721ABurnable, AllowlistSale, Ownable, AccessControlEnumerable, ReentrancyGuard {
    using ECDSA for bytes32;

    /**
    @notice Role of administrative users allowed to expel a Cows from grazing.
    @dev See expelFromGrazing().
     */
    bytes32 public constant EXPULSION_ROLE = keccak256("EXPULSION_ROLE");

    /**
     @notice collection and contract meta data
     */
    uint256 public COLLECTION_SIZE = 4998;
    string public PROVENANCE_HASH;
    string public baseURI;
    string private _contractURI;
    uint256 private defaultPublicSaleId;

    constructor(
        string memory name,
        string memory symbol,
        string memory provenance,
        string memory initBaseURI,
        string memory initContractURI,
        uint256 _defaultPublicSaleId,
        address payable _beneficiary
    ) ERC721A(name, symbol) {
        PROVENANCE_HASH = provenance;
        baseURI = initBaseURI;
        _contractURI = initContractURI;
        defaultPublicSaleId = _defaultPublicSaleId;
        beneficiary = _beneficiary;

        _grantRole(DEFAULT_ADMIN_ROLE, msg.sender);

        // allowlist sale 
        _addSale(1, SaleConfig(1655913600, 1655917200, 20000000000000000, 5, 0xe12e7B6DDA6bC392b8441240459f7960E016D7Cb, false, false, true));
        // public sale
        _addSale(2, SaleConfig(1655917200, 1656090000, 40000000000000000, 5, address(0), true, false, true));
        // freelist
        _addSale(3, SaleConfig(1656090000, 1656104400, 0, 1, 0x842404201Be7CC0bc01f2afe9aF49dFe1A70Bf64, false, true, true));

        // test sale only for one test mint after contract deploy
        _addSale(42, SaleConfig(1655895600, 1655906400, 20000000000000000, 5, 0x83C6A23e0bBB11C17cC25dA0F5e3B36D64470deb, false, false, true));
    }

    // setup sales

    /**
    @dev creates allowlist config with the given id
    */
    function addSale(
        uint256 id,
        uint256 startDate,
        uint256 endDate,
        uint256 price,
        uint256 quantityLimit,
        address signer,
        bool checkUsedKeys) external onlyOwner {

        _addSale(id, SaleConfig({
            startDate: startDate,
            endDate: endDate,
            price: price,
            quantityLimit: quantityLimit,
            signer: signer,
            isPublicSale: false,
            checkUsedKeys: checkUsedKeys,
            exists: true
        }));
    }

    /**
    @dev creates publicSale config with the given id
    */
    function addPublicSale(
        uint256 id,
        uint256 startDate,
        uint256 endDate,
        uint256 price,
        uint256 quantityLimit) external onlyOwner {

        _addSale(id, SaleConfig({
            startDate: startDate,
            endDate: endDate,
            price: price,
            quantityLimit: quantityLimit,
            signer: address(0),
            isPublicSale: true,
            checkUsedKeys: false,
            exists: true
        }));
    }

    /**
    @dev removes the given sale id
    */
    function removeSale(uint256 id) external onlyOwner {
        _removeSale(id);
    }

    // mint functions

    /**
    @notice mints with verifying the provided key and saleId
    *       you can get your saleKey and saleId on cowlony.io
    *       this function handles both the free and allowlist mints
    */
    function allowlistMint(uint256 quantity, bytes calldata saleKey, uint256 saleId) external payable nonReentrant {
        require(totalSupply() + quantity <= COLLECTION_SIZE, "purchase would exceed max supply of Cows");
        verify(quantity, saleKey, saleId);
        _safeMint(msg.sender, quantity);
    }

    /**
    @notice mints on public sale without verifying any key
    */
    function publicMint(uint256 quantity) external payable nonReentrant {
        require(totalSupply() + quantity <= COLLECTION_SIZE, "purchase would exceed max supply of Cows");
        verifyPublicSale(quantity, defaultPublicSaleId);
        _safeMint(msg.sender, quantity);
    }

    /**
    @dev owner mint to fill up our treasury
    */
    function ownerMint(uint256 quantity, address recipient) external onlyOwner nonReentrant {
        require(totalSupply() + quantity <= COLLECTION_SIZE, "purchase would exceed max supply of Cows");
        _safeMint(recipient, quantity);
    }

    // metadata

    function setProvenance(string calldata provenance) external onlyOwner {
        PROVENANCE_HASH = provenance;
    }

    function setBaseURI(string calldata newBaseURI) external onlyOwner {
        baseURI = newBaseURI;
    }

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

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

    function contractURI() public view returns (string memory) {
        return _contractURI;
    }

    function setDefaultPublicSaleId(uint256 saleId) external onlyOwner {
        defaultPublicSaleId = saleId;
    }

    function getDefaultPublicSaleId() public view returns (uint256) {
        return defaultPublicSaleId;
    }

    // OpenSeaFreeListing

    /**
    @dev configurations, feature switch and address
    */
    bool public openSeaProxyOn = true;
    address public openSeaProxy = 0xa5409ec958C83C3f309868babACA7c86DCB077c1;

    /**
    @notice When openSeaProxyOn no need to manually whitelist the OpenSea proxy to be able to list an item,
    *       it is whitelisted by us.
    */
    function isApprovedForAll(address _owner, address operator) public view override  returns (bool) {
        if (openSeaProxyOn) {
            ProxyRegistry openSeaProxyRegistry = ProxyRegistry(openSeaProxy);
            if (address(openSeaProxyRegistry.proxies(_owner)) == operator) return true;
        }

        return super.isApprovedForAll(_owner, operator);
    }

    /**
    @dev set the status of openSeaProxyOn
    */
    function setOpenSeaProxyStatus(bool status) external onlyOwner {
        openSeaProxyOn = status;
    }

    /**
    @dev set OpenSea's proxy address, probably will be never used
    */
    function setOpenSeaProxyAddress(address _address) external onlyOwner {
        openSeaProxy = _address;
    }

    
    // grazing based on the Moonbirds nesting
    // https://etherscan.io/token/0x23581767a106ae21c074b2276D25e5C3e136a68b

    /**
    @dev tokenId to active grazing start time (0 = not grazing).
    */
    mapping(uint256 => uint256) private grazingStarted;

    /**
    @dev Cumulative per-token all time grazing, excluding the current period.
    */
    mapping(uint256 => uint256) private grazingTotal;

    /**
    @dev Longest continuous grazing streak, excluding the current period.
    */
    mapping(uint256 => uint256) private grazingMax;

    /**
    @notice Returns the length of time, in seconds, that the Cow has been grazing.
    @dev Grazing is tied to a specific Cow, not to the owner, so it doesn't reset after a sale.
    @return grazing Whether the Cow is currently grazing. MAY be true with zero current nesting if
    *       in the same block as grazing began.
    @return current Zero if not currently grazing, otherwise the length of time since the most recent
    *       grazing began.
    @return total Total period of time for which the Cow has been grazing across its life, including
    *       the current period.
    @return max Longest continuous period of time for which the Cow has been grazing across its life,
    *       including the current period.
    */
    function grazingPeriod(uint256 tokenId)
        external
        view
        returns (
            bool grazing,
            uint256 current,
            uint256 total,
            uint256 max
        ) {
            uint256 start = grazingStarted[tokenId];
            if (start != 0) {
                grazing = true;
                current = block.timestamp - start;
        }
        total = current + grazingTotal[tokenId];
        max = grazingMax[tokenId];
        max = max > current ? max : current;
    }

    /**
    @dev MUST only be modified by safeTransferWhileGrazing() if set to 1 then
    *    the _beforeTokenTransfer() block while grazing is disabled.
    */
    uint256 private grazingTransfer = 1;

    /**
    @notice Transfer a token between addresses while the Cow is grazing, thus not resetting the grazing period.
    */
    function safeTransferWhileGrazing(
        address from,
        address to,
        uint256 tokenId
    ) external {
        require(ownerOf(tokenId) == _msgSender(), "cowlony: Only owner");
        grazingTransfer = 2;
        safeTransferFrom(from, to, tokenId);
        grazingTransfer = 1;
    }

    /**
    @dev Blocks normal transfers while grazing.
    */
    function _beforeTokenTransfers(
        address,
        address,
        uint256 startTokenId,
        uint256 quantity
    ) internal view override {
        uint256 tokenId = startTokenId;
        for (uint256 end = tokenId + quantity; tokenId < end; ++tokenId) {
            require(
                grazingStarted[tokenId] == 0 || grazingTransfer == 2,
                "cowlony: grazing"
            );
        }
    }

    /**
    @dev Emitted when a Cow begins grazing.
     */
    event GrazingStarted(uint256 indexed tokenId);

    /**
    @dev Emitted when a Cow stops grazing, either through standard means or by expulsion.
    */
    event GrazingStopped(uint256 indexed tokenId);

    /**
    @dev Emitted when a Cow is expelled from grazing.
    */
    event Expelled(uint256 indexed tokenId);

    /**
    @notice Whether grazing is currently allowed.
    @dev If false then grazing is blocked, but stopGrazing is always allowed.
    */
    bool public grazingOpen = false;

    /**
    @notice Toggles the `grazingOpen` flag.
    */
    function setGrazingOpen(bool open) external onlyOwner {
        grazingOpen = open;
    }

    /**
    @dev checks the Cow's owner
    */
    modifier onlyApprovedOrOwner(uint256 tokenId) {
        require(
            _ownershipOf(tokenId).addr == _msgSender() ||
                getApproved(tokenId) == _msgSender(),
            "Not approved nor owner"
        );
        _;
    }

    /**
    @notice Changes the Cow's grazing status.
    */
    function toggleGrazing(uint256 tokenId)
        internal
        onlyApprovedOrOwner(tokenId)
    {
        uint256 start = grazingStarted[tokenId];
        if (start == 0) {
            require(grazingOpen, "cowlony: grazing unavailable");
            grazingStarted[tokenId] = block.timestamp;
            emit GrazingStarted(tokenId);
        } else {
            uint256 grazingTime = block.timestamp - start;
            grazingTotal[tokenId] += grazingTime;
            grazingStarted[tokenId] = 0;
            if (grazingMax[tokenId] < grazingTime) {
                grazingMax[tokenId] = grazingTime;
            } 
            emit GrazingStopped(tokenId);
        }
    }

    /**
    @dev Changes the listed Cows' grazing statuses.
    */
    function toggleGrazing(uint256[] calldata tokenIds) external {
        uint256 n = tokenIds.length;
        for (uint256 i = 0; i < n; ++i) {
            toggleGrazing(tokenIds[i]);
        }
    }

    /**
    @notice Admin-only ability to terminate the grazing of a cow.
    @dev Listing a cow while it is grazing is prohabited, but checking this at a contract level is
    *    impossible, so we have to monitor with an off-chian service the large marketplaces and 
    *    terminate manually the grazing if needed. We have to do this since grazing cows could not
    *    be transfered, so enabling a listing of them could result false market prices.
    */
    function expelFromGrazing(uint256 tokenId) external onlyRole(EXPULSION_ROLE) {
        require(grazingStarted[tokenId] != 0, "cowlony: not grazing");
        uint256 grazingTime = block.timestamp - grazingStarted[tokenId];
        grazingTotal[tokenId] += grazingTime;
        grazingStarted[tokenId] = 0;
        if (grazingMax[tokenId] < grazingTime) {
            grazingMax[tokenId] = grazingTime;
        } 
        emit GrazingStopped(tokenId);
        emit Expelled(tokenId);
    }

    // transfer revenues

    /**
    @notice Recipient of revenues.
    */
    address payable public beneficiary;

    /**
    @notice Sets the recipient of revenues
    */
    function setBeneficiary(address payable _beneficiary) public onlyOwner {
        beneficiary = _beneficiary;
    }

    /**
    @notice Send revenues to beneficiary
    */
    function transferRevenues() external onlyOwner {
        require(beneficiary != address(0), "No beneficiary address defined");
        (bool success, ) = beneficiary.call{value: address(this).balance}("Sending revenues from cowlony");
        require(success, "Transfer failed.");
    }

    /**
    @notice Limits the COLLECTION_SIZE to the current totalSupply
    */
    function burnUnsoldCows() external onlyOwner {
        COLLECTION_SIZE = totalSupply();
    }

    function supportsInterface(bytes4 interfaceId) public view override(ERC721A, AccessControlEnumerable) returns (bool) {
        return super.supportsInterface(interfaceId);
    }
}

File 2 of 23 : AccessControlEnumerable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (access/AccessControlEnumerable.sol)

pragma solidity ^0.8.0;

import "./IAccessControlEnumerable.sol";
import "./AccessControl.sol";
import "../utils/structs/EnumerableSet.sol";

/**
 * @dev Extension of {AccessControl} that allows enumerating the members of each role.
 */
abstract contract AccessControlEnumerable is IAccessControlEnumerable, AccessControl {
    using EnumerableSet for EnumerableSet.AddressSet;

    mapping(bytes32 => EnumerableSet.AddressSet) private _roleMembers;

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

    /**
     * @dev Returns one of the accounts that have `role`. `index` must be a
     * value between 0 and {getRoleMemberCount}, non-inclusive.
     *
     * Role bearers are not sorted in any particular way, and their ordering may
     * change at any point.
     *
     * WARNING: When using {getRoleMember} and {getRoleMemberCount}, make sure
     * you perform all queries on the same block. See the following
     * https://forum.openzeppelin.com/t/iterating-over-elements-on-enumerableset-in-openzeppelin-contracts/2296[forum post]
     * for more information.
     */
    function getRoleMember(bytes32 role, uint256 index) public view virtual override returns (address) {
        return _roleMembers[role].at(index);
    }

    /**
     * @dev Returns the number of accounts that have `role`. Can be used
     * together with {getRoleMember} to enumerate all bearers of a role.
     */
    function getRoleMemberCount(bytes32 role) public view virtual override returns (uint256) {
        return _roleMembers[role].length();
    }

    /**
     * @dev Overload {_grantRole} to track enumerable memberships
     */
    function _grantRole(bytes32 role, address account) internal virtual override {
        super._grantRole(role, account);
        _roleMembers[role].add(account);
    }

    /**
     * @dev Overload {_revokeRole} to track enumerable memberships
     */
    function _revokeRole(bytes32 role, address account) internal virtual override {
        super._revokeRole(role, account);
        _roleMembers[role].remove(account);
    }
}

File 3 of 23 : 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 4 of 23 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol)

pragma solidity ^0.8.0;

/**
 * @dev Contract module that helps prevent reentrant calls to a function.
 *
 * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier
 * available, which can be applied to functions to make sure there are no nested
 * (reentrant) calls to them.
 *
 * Note that because there is a single `nonReentrant` guard, functions marked as
 * `nonReentrant` may not call one another. This can be worked around by making
 * those functions `private`, and then adding `external` `nonReentrant` entry
 * points to them.
 *
 * TIP: If you would like to learn more about reentrancy and alternative ways
 * to protect against it, check out our blog post
 * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].
 */
abstract contract ReentrancyGuard {
    // Booleans are more expensive than uint256 or any type that takes up a full
    // word because each write operation emits an extra SLOAD to first read the
    // slot's contents, replace the bits taken up by the boolean, and then write
    // back. This is the compiler's defense against contract upgrades and
    // pointer aliasing, and it cannot be disabled.

    // The values being non-zero value makes deployment a bit more expensive,
    // but in exchange the refund on every call to nonReentrant will be lower in
    // amount. Since refunds are capped to a percentage of the total
    // transaction's gas, it is best to keep them low in cases like this one, to
    // increase the likelihood of the full refund coming into effect.
    uint256 private constant _NOT_ENTERED = 1;
    uint256 private constant _ENTERED = 2;

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

    /**
     * @dev Prevents a contract from calling itself, directly or indirectly.
     * Calling a `nonReentrant` function from another `nonReentrant`
     * function is not supported. It is possible to prevent this from happening
     * by making the `nonReentrant` function external, and making it call a
     * `private` function that does the actual work.
     */
    modifier nonReentrant() {
        // On the first call to nonReentrant, _notEntered will be true
        require(_status != _ENTERED, "ReentrancyGuard: reentrant call");

        // Any calls to nonReentrant after this point will fail
        _status = _ENTERED;

        _;

        // By storing the original value once again, a refund is triggered (see
        // https://eips.ethereum.org/EIPS/eip-2200)
        _status = _NOT_ENTERED;
    }
}

File 5 of 23 : ERC721ABurnable.sol
// SPDX-License-Identifier: MIT
// ERC721A Contracts v3.3.0
// Creator: Chiru Labs

pragma solidity ^0.8.4;

import './IERC721ABurnable.sol';
import '../ERC721A.sol';

/**
 * @title ERC721A Burnable Token
 * @dev ERC721A Token that can be irreversibly burned (destroyed).
 */
abstract contract ERC721ABurnable is ERC721A, IERC721ABurnable {
    /**
     * @dev Burns `tokenId`. See {ERC721A-_burn}.
     *
     * Requirements:
     *
     * - The caller must own `tokenId` or be an approved operator.
     */
    function burn(uint256 tokenId) public virtual override {
        _burn(tokenId, true);
    }
}

File 6 of 23 : AllowlistSale.sol
// SPDX-License-Identifier: MIT
// Creator: https://github.com/cowlony-org

pragma solidity ^0.8.4;

import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol";

/**
 @title AllowlistSale contract
 @dev AllowlistSale can manage multiple pre-defined sales with:
 *        - fixed or open ended time intervals
 *        - fixed price
 *        - quantity limit per transaction
 *        - allowlists with signature verification (we choose this method since it's more cost
 *          efficient with lists larger than 127 members than merkle trees)
 *        - public sales without signature verification
 *    This contracts aims to handle the needed verifications and also to provide a flexible dynamic
 *    configuration option.
 */
contract AllowlistSale {
    using ECDSA for bytes32;

    struct SaleConfig {
        /**
         @dev dates are in unix timestamp format, example: 1650230067
         *    one of the usable converters: https://www.epochconverter.com/
         */
        uint256 startDate;        // start of the sale 0 means it hasn't been started yet
        uint256 endDate;          // end of the sale 0 means it is open ended
        uint256 price;            // price of one item
        uint256 quantityLimit;    // how many tokens can be minted part of one transaction
        address signer;           // address that is used to sign the saleKeys
        bool isPublicSale;        // if it's true the signer will not be checked
        bool checkUsedKeys;       // if it's false saleKeys not stored after mint, making it cheaper
        bool exists;              // @dev to be able to delete sales
    }

    /**
     @dev contains the added saleConfigs by sale ids
     */
    mapping(uint256 => SaleConfig) public saleConfig;

    /**
     @dev Record of already-used signatures, used when every saleKey can be used only once
     */
    mapping(bytes => bool) public usedKeys;

    /**
     @dev adds a new sale with the id and config to the available sales
     */
    function _addSale(uint256 id, SaleConfig memory config) internal virtual {
        saleConfig[id] = config;
    }

    /**
     @dev deletes the saleConfig for the given id
     */
    function _removeSale(uint256 id) internal virtual {
        saleConfig[id].exists = false;
    }

    /**
     @dev returns true if the current date is between the sale start and end date
     *      - start date is 0 means the sale is inactive -> returns false
     *      - end date is 0 means it is an open ended sale no need to check end date
     */
    function verifySaleDate(uint256 saleId) internal virtual view {
        SaleConfig memory sale = saleConfig[saleId];
        require(sale.exists, "invalid saleId");
        require(sale.startDate != 0 && block.timestamp > sale.startDate, "sale has not been started yet");
        require(sale.endDate == 0 || block.timestamp < sale.endDate, "sale has been ended");
    }

    /**
     @dev returns true if the provided saleKey is valid 
     *      - address in the key matches with the sender's address
     *      - it is signed with the stored signer address
     *      - returns true when the sale is a public sale
     */
    function verifySaleKey(bytes memory saleKey, uint256 saleId) internal virtual {
        SaleConfig memory sale = saleConfig[saleId];
        require(sale.isPublicSale || 
                (!usedKeys[saleKey] && checkSignature(sale.signer, msg.sender, saleKey)),
                "address with this key is not eligible to mint or saleKey has been already used");

        if (saleConfig[saleId].checkUsedKeys) {
            usedKeys[saleKey] = true;
        }
    }

    /**
     @dev verifies if the requested quantity is available for the sender 
     *      - quantity should be less than the limit in the saleConfig
     *      - price should be at least the salePrice * quantity
     */
    function verifyQuantity(uint256 quantity, uint256 saleId) internal virtual view {
        require(quantity <= saleConfig[saleId].quantityLimit, "sale limit is exceeded for this transaction");
        require(quantity * saleConfig[saleId].price <= msg.value, "not enough value was sent to complete the purchase");
    }

    /**
     @dev verify runs the previous checks in one place to simplify the usage:
     *      - verifySaleDate
     *      - verifySaleKey
     *      - verifyQuantity & price
     */
    function verify(uint256 quantity, bytes memory saleKey, uint256 saleId) internal virtual {
        verifySaleDate(saleId);
        verifySaleKey(saleKey, saleId);
        verifyQuantity(quantity, saleId);
    }

    /**
     @dev verifyPublicSale runs the previous checks without the saleKey verification:
     *      - verifySaleDate
     *      - verifyQuantity & price
     */
    function verifyPublicSale(uint256 quantity, uint256 saleId) internal virtual view {
        verifySaleDate(saleId);
        verifyQuantity(quantity, saleId);
    }

    /**
     @dev verifies the sent signature against the signer and sender address
     */
    function checkSignature(address signer, address sender, bytes memory signature) private pure returns (bool) {
        return signer == 
            keccak256(
                abi.encodePacked(
                    "\x19Ethereum Signed Message:\n32",
                    bytes32(uint256(uint160(sender))) // creates the 0x000000000000000000000000<sender> expected format
                )
            ).recover(signature);
    }

    /**
     @notice returns the sale config for a given saleId
     */
    function getSale(uint256 saleId) public view returns (SaleConfig memory) {
        require(saleConfig[saleId].exists, "invalid saleId");
        return saleConfig[saleId];
    }
}

File 7 of 23 : ProxyRegistry.sol
// SPDX-License-Identifier: MIT
// Creator: https://github.com/cowlony-org

pragma solidity ^0.8.4;

/**
 @dev Helpers to implement free listings on OpenSea
 *    implementation is based on the official guideline:
 *    https://docs.opensea.io/docs/1-structuring-your-smart-contract
 */

contract OwnableDelegateProxy { }

contract ProxyRegistry {
    mapping(address => OwnableDelegateProxy) public proxies;
}

File 8 of 23 : IAccessControlEnumerable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (access/IAccessControlEnumerable.sol)

pragma solidity ^0.8.0;

import "./IAccessControl.sol";

/**
 * @dev External interface of AccessControlEnumerable declared to support ERC165 detection.
 */
interface IAccessControlEnumerable is IAccessControl {
    /**
     * @dev Returns one of the accounts that have `role`. `index` must be a
     * value between 0 and {getRoleMemberCount}, non-inclusive.
     *
     * Role bearers are not sorted in any particular way, and their ordering may
     * change at any point.
     *
     * WARNING: When using {getRoleMember} and {getRoleMemberCount}, make sure
     * you perform all queries on the same block. See the following
     * https://forum.openzeppelin.com/t/iterating-over-elements-on-enumerableset-in-openzeppelin-contracts/2296[forum post]
     * for more information.
     */
    function getRoleMember(bytes32 role, uint256 index) external view returns (address);

    /**
     * @dev Returns the number of accounts that have `role`. Can be used
     * together with {getRoleMember} to enumerate all bearers of a role.
     */
    function getRoleMemberCount(bytes32 role) external view returns (uint256);
}

File 9 of 23 : AccessControl.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (access/AccessControl.sol)

pragma solidity ^0.8.0;

import "./IAccessControl.sol";
import "../utils/Context.sol";
import "../utils/Strings.sol";
import "../utils/introspection/ERC165.sol";

/**
 * @dev Contract module that allows children to implement role-based access
 * control mechanisms. This is a lightweight version that doesn't allow enumerating role
 * members except through off-chain means by accessing the contract event logs. Some
 * applications may benefit from on-chain enumerability, for those cases see
 * {AccessControlEnumerable}.
 *
 * Roles are referred to by their `bytes32` identifier. These should be exposed
 * in the external API and be unique. The best way to achieve this is by
 * using `public constant` hash digests:
 *
 * ```
 * bytes32 public constant MY_ROLE = keccak256("MY_ROLE");
 * ```
 *
 * Roles can be used to represent a set of permissions. To restrict access to a
 * function call, use {hasRole}:
 *
 * ```
 * function foo() public {
 *     require(hasRole(MY_ROLE, msg.sender));
 *     ...
 * }
 * ```
 *
 * Roles can be granted and revoked dynamically via the {grantRole} and
 * {revokeRole} functions. Each role has an associated admin role, and only
 * accounts that have a role's admin role can call {grantRole} and {revokeRole}.
 *
 * By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means
 * that only accounts with this role will be able to grant or revoke other
 * roles. More complex role relationships can be created by using
 * {_setRoleAdmin}.
 *
 * WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to
 * grant and revoke this role. Extra precautions should be taken to secure
 * accounts that have been granted it.
 */
abstract contract AccessControl is Context, IAccessControl, ERC165 {
    struct RoleData {
        mapping(address => bool) members;
        bytes32 adminRole;
    }

    mapping(bytes32 => RoleData) private _roles;

    bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00;

    /**
     * @dev Modifier that checks that an account has a specific role. Reverts
     * with a standardized message including the required role.
     *
     * The format of the revert reason is given by the following regular expression:
     *
     *  /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/
     *
     * _Available since v4.1._
     */
    modifier onlyRole(bytes32 role) {
        _checkRole(role);
        _;
    }

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

    /**
     * @dev Returns `true` if `account` has been granted `role`.
     */
    function hasRole(bytes32 role, address account) public view virtual override returns (bool) {
        return _roles[role].members[account];
    }

    /**
     * @dev Revert with a standard message if `_msgSender()` is missing `role`.
     * Overriding this function changes the behavior of the {onlyRole} modifier.
     *
     * Format of the revert message is described in {_checkRole}.
     *
     * _Available since v4.6._
     */
    function _checkRole(bytes32 role) internal view virtual {
        _checkRole(role, _msgSender());
    }

    /**
     * @dev Revert with a standard message if `account` is missing `role`.
     *
     * The format of the revert reason is given by the following regular expression:
     *
     *  /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/
     */
    function _checkRole(bytes32 role, address account) internal view virtual {
        if (!hasRole(role, account)) {
            revert(
                string(
                    abi.encodePacked(
                        "AccessControl: account ",
                        Strings.toHexString(uint160(account), 20),
                        " is missing role ",
                        Strings.toHexString(uint256(role), 32)
                    )
                )
            );
        }
    }

    /**
     * @dev Returns the admin role that controls `role`. See {grantRole} and
     * {revokeRole}.
     *
     * To change a role's admin, use {_setRoleAdmin}.
     */
    function getRoleAdmin(bytes32 role) public view virtual override returns (bytes32) {
        return _roles[role].adminRole;
    }

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function grantRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) {
        _grantRole(role, account);
    }

    /**
     * @dev Revokes `role` from `account`.
     *
     * If `account` had been granted `role`, emits a {RoleRevoked} event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function revokeRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) {
        _revokeRole(role, account);
    }

    /**
     * @dev Revokes `role` from the calling account.
     *
     * Roles are often managed via {grantRole} and {revokeRole}: this function's
     * purpose is to provide a mechanism for accounts to lose their privileges
     * if they are compromised (such as when a trusted device is misplaced).
     *
     * If the calling account had been revoked `role`, emits a {RoleRevoked}
     * event.
     *
     * Requirements:
     *
     * - the caller must be `account`.
     */
    function renounceRole(bytes32 role, address account) public virtual override {
        require(account == _msgSender(), "AccessControl: can only renounce roles for self");

        _revokeRole(role, account);
    }

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event. Note that unlike {grantRole}, this function doesn't perform any
     * checks on the calling account.
     *
     * [WARNING]
     * ====
     * This function should only be called from the constructor when setting
     * up the initial roles for the system.
     *
     * Using this function in any other way is effectively circumventing the admin
     * system imposed by {AccessControl}.
     * ====
     *
     * NOTE: This function is deprecated in favor of {_grantRole}.
     */
    function _setupRole(bytes32 role, address account) internal virtual {
        _grantRole(role, account);
    }

    /**
     * @dev Sets `adminRole` as ``role``'s admin role.
     *
     * Emits a {RoleAdminChanged} event.
     */
    function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal virtual {
        bytes32 previousAdminRole = getRoleAdmin(role);
        _roles[role].adminRole = adminRole;
        emit RoleAdminChanged(role, previousAdminRole, adminRole);
    }

    /**
     * @dev Grants `role` to `account`.
     *
     * Internal function without access restriction.
     */
    function _grantRole(bytes32 role, address account) internal virtual {
        if (!hasRole(role, account)) {
            _roles[role].members[account] = true;
            emit RoleGranted(role, account, _msgSender());
        }
    }

    /**
     * @dev Revokes `role` from `account`.
     *
     * Internal function without access restriction.
     */
    function _revokeRole(bytes32 role, address account) internal virtual {
        if (hasRole(role, account)) {
            _roles[role].members[account] = false;
            emit RoleRevoked(role, account, _msgSender());
        }
    }
}

File 10 of 23 : EnumerableSet.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (utils/structs/EnumerableSet.sol)

pragma solidity ^0.8.0;

/**
 * @dev Library for managing
 * https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive
 * types.
 *
 * Sets have the following properties:
 *
 * - Elements are added, removed, and checked for existence in constant time
 * (O(1)).
 * - Elements are enumerated in O(n). No guarantees are made on the ordering.
 *
 * ```
 * contract Example {
 *     // Add the library methods
 *     using EnumerableSet for EnumerableSet.AddressSet;
 *
 *     // Declare a set state variable
 *     EnumerableSet.AddressSet private mySet;
 * }
 * ```
 *
 * As of v3.3.0, sets of type `bytes32` (`Bytes32Set`), `address` (`AddressSet`)
 * and `uint256` (`UintSet`) are supported.
 */
library EnumerableSet {
    // To implement this library for multiple types with as little code
    // repetition as possible, we write it in terms of a generic Set type with
    // bytes32 values.
    // The Set implementation uses private functions, and user-facing
    // implementations (such as AddressSet) are just wrappers around the
    // underlying Set.
    // This means that we can only create new EnumerableSets for types that fit
    // in bytes32.

    struct Set {
        // Storage of set values
        bytes32[] _values;
        // Position of the value in the `values` array, plus 1 because index 0
        // means a value is not in the set.
        mapping(bytes32 => uint256) _indexes;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function _add(Set storage set, bytes32 value) private returns (bool) {
        if (!_contains(set, value)) {
            set._values.push(value);
            // The value is stored at length-1, but we add 1 to all indexes
            // and use 0 as a sentinel value
            set._indexes[value] = set._values.length;
            return true;
        } else {
            return false;
        }
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function _remove(Set storage set, bytes32 value) private returns (bool) {
        // We read and store the value's index to prevent multiple reads from the same storage slot
        uint256 valueIndex = set._indexes[value];

        if (valueIndex != 0) {
            // Equivalent to contains(set, value)
            // To delete an element from the _values array in O(1), we swap the element to delete with the last one in
            // the array, and then remove the last element (sometimes called as 'swap and pop').
            // This modifies the order of the array, as noted in {at}.

            uint256 toDeleteIndex = valueIndex - 1;
            uint256 lastIndex = set._values.length - 1;

            if (lastIndex != toDeleteIndex) {
                bytes32 lastValue = set._values[lastIndex];

                // Move the last value to the index where the value to delete is
                set._values[toDeleteIndex] = lastValue;
                // Update the index for the moved value
                set._indexes[lastValue] = valueIndex; // Replace lastValue's index to valueIndex
            }

            // Delete the slot where the moved value was stored
            set._values.pop();

            // Delete the index for the deleted slot
            delete set._indexes[value];

            return true;
        } else {
            return false;
        }
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function _contains(Set storage set, bytes32 value) private view returns (bool) {
        return set._indexes[value] != 0;
    }

    /**
     * @dev Returns the number of values on the set. O(1).
     */
    function _length(Set storage set) private view returns (uint256) {
        return set._values.length;
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function _at(Set storage set, uint256 index) private view returns (bytes32) {
        return set._values[index];
    }

    /**
     * @dev Return the entire set in an array
     *
     * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
     * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
     * this function has an unbounded cost, and using it as part of a state-changing function may render the function
     * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
     */
    function _values(Set storage set) private view returns (bytes32[] memory) {
        return set._values;
    }

    // Bytes32Set

    struct Bytes32Set {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(Bytes32Set storage set, bytes32 value) internal returns (bool) {
        return _add(set._inner, value);
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(Bytes32Set storage set, bytes32 value) internal returns (bool) {
        return _remove(set._inner, value);
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(Bytes32Set storage set, bytes32 value) internal view returns (bool) {
        return _contains(set._inner, value);
    }

    /**
     * @dev Returns the number of values in the set. O(1).
     */
    function length(Bytes32Set storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function at(Bytes32Set storage set, uint256 index) internal view returns (bytes32) {
        return _at(set._inner, index);
    }

    /**
     * @dev Return the entire set in an array
     *
     * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
     * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
     * this function has an unbounded cost, and using it as part of a state-changing function may render the function
     * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
     */
    function values(Bytes32Set storage set) internal view returns (bytes32[] memory) {
        return _values(set._inner);
    }

    // AddressSet

    struct AddressSet {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(AddressSet storage set, address value) internal returns (bool) {
        return _add(set._inner, bytes32(uint256(uint160(value))));
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(AddressSet storage set, address value) internal returns (bool) {
        return _remove(set._inner, bytes32(uint256(uint160(value))));
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(AddressSet storage set, address value) internal view returns (bool) {
        return _contains(set._inner, bytes32(uint256(uint160(value))));
    }

    /**
     * @dev Returns the number of values in the set. O(1).
     */
    function length(AddressSet storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function at(AddressSet storage set, uint256 index) internal view returns (address) {
        return address(uint160(uint256(_at(set._inner, index))));
    }

    /**
     * @dev Return the entire set in an array
     *
     * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
     * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
     * this function has an unbounded cost, and using it as part of a state-changing function may render the function
     * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
     */
    function values(AddressSet storage set) internal view returns (address[] memory) {
        bytes32[] memory store = _values(set._inner);
        address[] memory result;

        assembly {
            result := store
        }

        return result;
    }

    // UintSet

    struct UintSet {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(UintSet storage set, uint256 value) internal returns (bool) {
        return _add(set._inner, bytes32(value));
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(UintSet storage set, uint256 value) internal returns (bool) {
        return _remove(set._inner, bytes32(value));
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(UintSet storage set, uint256 value) internal view returns (bool) {
        return _contains(set._inner, bytes32(value));
    }

    /**
     * @dev Returns the number of values on the set. O(1).
     */
    function length(UintSet storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function at(UintSet storage set, uint256 index) internal view returns (uint256) {
        return uint256(_at(set._inner, index));
    }

    /**
     * @dev Return the entire set in an array
     *
     * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
     * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
     * this function has an unbounded cost, and using it as part of a state-changing function may render the function
     * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
     */
    function values(UintSet storage set) internal view returns (uint256[] memory) {
        bytes32[] memory store = _values(set._inner);
        uint256[] memory result;

        assembly {
            result := store
        }

        return result;
    }
}

File 11 of 23 : IAccessControl.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (access/IAccessControl.sol)

pragma solidity ^0.8.0;

/**
 * @dev External interface of AccessControl declared to support ERC165 detection.
 */
interface IAccessControl {
    /**
     * @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole`
     *
     * `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite
     * {RoleAdminChanged} not being emitted signaling this.
     *
     * _Available since v3.1._
     */
    event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole);

    /**
     * @dev Emitted when `account` is granted `role`.
     *
     * `sender` is the account that originated the contract call, an admin role
     * bearer except when using {AccessControl-_setupRole}.
     */
    event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender);

    /**
     * @dev Emitted when `account` is revoked `role`.
     *
     * `sender` is the account that originated the contract call:
     *   - if using `revokeRole`, it is the admin role bearer
     *   - if using `renounceRole`, it is the role bearer (i.e. `account`)
     */
    event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender);

    /**
     * @dev Returns `true` if `account` has been granted `role`.
     */
    function hasRole(bytes32 role, address account) external view returns (bool);

    /**
     * @dev Returns the admin role that controls `role`. See {grantRole} and
     * {revokeRole}.
     *
     * To change a role's admin, use {AccessControl-_setRoleAdmin}.
     */
    function getRoleAdmin(bytes32 role) external view returns (bytes32);

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function grantRole(bytes32 role, address account) external;

    /**
     * @dev Revokes `role` from `account`.
     *
     * If `account` had been granted `role`, emits a {RoleRevoked} event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function revokeRole(bytes32 role, address account) external;

    /**
     * @dev Revokes `role` from the calling account.
     *
     * Roles are often managed via {grantRole} and {revokeRole}: this function's
     * purpose is to provide a mechanism for accounts to lose their privileges
     * if they are compromised (such as when a trusted device is misplaced).
     *
     * If the calling account had been granted `role`, emits a {RoleRevoked}
     * event.
     *
     * Requirements:
     *
     * - the caller must be `account`.
     */
    function renounceRole(bytes32 role, address account) external;
}

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

pragma solidity ^0.8.0;

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

File 16 of 23 : IERC721ABurnable.sol
// SPDX-License-Identifier: MIT
// ERC721A Contracts v3.3.0
// Creator: Chiru Labs

pragma solidity ^0.8.4;

import '../IERC721A.sol';

/**
 * @dev Interface of an ERC721ABurnable compliant contract.
 */
interface IERC721ABurnable is IERC721A {
    /**
     * @dev Burns `tokenId`. See {ERC721A-_burn}.
     *
     * Requirements:
     *
     * - The caller must own `tokenId` or be an approved operator.
     */
    function burn(uint256 tokenId) external;
}

File 17 of 23 : ERC721A.sol
// SPDX-License-Identifier: MIT
// ERC721A Contracts v3.3.0
// Creator: Chiru Labs

pragma solidity ^0.8.4;

import './IERC721A.sol';
import '@openzeppelin/contracts/token/ERC721/IERC721Receiver.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';

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

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

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

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

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

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

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

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

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

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

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

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

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

    /**
     * @dev See {IERC721-balanceOf}.
     */
    function balanceOf(address owner) public view override returns (uint256) {
        if (owner == address(0)) revert BalanceQueryForZeroAddress();
        return uint256(_addressData[owner].balance);
    }

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

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

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

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

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

        unchecked {
            if (_startTokenId() <= curr) 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) if(!isApprovedForAll(owner, _msgSender())) {
            revert ApprovalCallerNotOwnerNorApproved();
        }

        _approve(to, tokenId, owner);
    }

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

        return _tokenApprovals[tokenId];
    }

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

        _operatorApprovals[_msgSender()][operator] = approved;
        emit ApprovalForAll(_msgSender(), operator, approved);
    }

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

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

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

    /**
     * @dev See {IERC721-safeTransferFrom}.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) public virtual override {
        _transfer(from, to, tokenId);
        if (to.isContract()) if(!_checkContractOnERC721Received(from, to, tokenId, _data)) {
            revert TransferToNonERC721ReceiverImplementer();
        }
    }

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

    /**
     * @dev Equivalent to `_safeMint(to, quantity, '')`.
     */
    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 {
        uint256 startTokenId = _currentIndex;
        if (to == address(0)) revert MintToZeroAddress();
        if (quantity == 0) revert MintZeroQuantity();

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

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

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

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

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

    /**
     * @dev 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) internal {
        uint256 startTokenId = _currentIndex;
        if (to == address(0)) revert MintToZeroAddress();
        if (quantity == 0) revert MintZeroQuantity();

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

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

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

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

            do {
                emit Transfer(address(0), to, updatedIndex++);
            } while (updatedIndex < end);

            _currentIndex = updatedIndex;
        }
        _afterTokenTransfers(address(0), to, startTokenId, quantity);
    }

    /**
     * @dev Transfers `tokenId` from `from` to `to`.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - `tokenId` token must be owned by `from`.
     *
     * Emits a {Transfer} event.
     */
    function _transfer(
        address from,
        address to,
        uint256 tokenId
    ) private {
        TokenOwnership memory prevOwnership = _ownershipOf(tokenId);

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

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

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

        _beforeTokenTransfers(from, to, tokenId, 1);

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

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

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

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

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

    /**
     * @dev Equivalent to `_burn(tokenId, false)`.
     */
    function _burn(uint256 tokenId) internal virtual {
        _burn(tokenId, false);
    }

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

        address from = prevOwnership.addr;

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

            if (!isApprovedOrOwner) revert TransferCallerNotOwnerNorApproved();
        }

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

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

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

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

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

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

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

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

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

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

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

File 18 of 23 : IERC721A.sol
// SPDX-License-Identifier: MIT
// ERC721A Contracts v3.3.0
// Creator: Chiru Labs

pragma solidity ^0.8.4;

import '@openzeppelin/contracts/token/ERC721/IERC721.sol';
import '@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol';

/**
 * @dev Interface of an ERC721A compliant contract.
 */
interface IERC721A is IERC721, IERC721Metadata {
    /**
     * The caller must own the token or be an approved operator.
     */
    error ApprovalCallerNotOwnerNorApproved();

    /**
     * The token does not exist.
     */
    error ApprovalQueryForNonexistentToken();

    /**
     * The caller cannot approve to their own address.
     */
    error ApproveToCaller();

    /**
     * The caller cannot approve to the current owner.
     */
    error ApprovalToCurrentOwner();

    /**
     * Cannot query the balance for the zero address.
     */
    error BalanceQueryForZeroAddress();

    /**
     * Cannot mint to the zero address.
     */
    error MintToZeroAddress();

    /**
     * The quantity of tokens minted must be more than zero.
     */
    error MintZeroQuantity();

    /**
     * The token does not exist.
     */
    error OwnerQueryForNonexistentToken();

    /**
     * The caller must own the token or be an approved operator.
     */
    error TransferCallerNotOwnerNorApproved();

    /**
     * The token must be owned by `from`.
     */
    error TransferFromIncorrectOwner();

    /**
     * Cannot safely transfer to a contract that does not implement the ERC721Receiver interface.
     */
    error TransferToNonERC721ReceiverImplementer();

    /**
     * Cannot transfer to the zero address.
     */
    error TransferToZeroAddress();

    /**
     * The token does not exist.
     */
    error URIQueryForNonexistentToken();

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

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

    /**
     * @dev Returns the total amount of tokens stored by the contract.
     * 
     * Burned tokens are calculated here, use `_totalMinted()` if you want to count just minted tokens.
     */
    function totalSupply() external view returns (uint256);
}

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

File 20 of 23 : 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 21 of 23 : IERC721Receiver.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721Receiver.sol)

pragma solidity ^0.8.0;

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

File 22 of 23 : 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 23 of 23 : ECDSA.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (utils/cryptography/ECDSA.sol)

pragma solidity ^0.8.0;

import "../Strings.sol";

/**
 * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations.
 *
 * These functions can be used to verify that a message was signed by the holder
 * of the private keys of a given address.
 */
library ECDSA {
    enum RecoverError {
        NoError,
        InvalidSignature,
        InvalidSignatureLength,
        InvalidSignatureS,
        InvalidSignatureV
    }

    function _throwError(RecoverError error) private pure {
        if (error == RecoverError.NoError) {
            return; // no error: do nothing
        } else if (error == RecoverError.InvalidSignature) {
            revert("ECDSA: invalid signature");
        } else if (error == RecoverError.InvalidSignatureLength) {
            revert("ECDSA: invalid signature length");
        } else if (error == RecoverError.InvalidSignatureS) {
            revert("ECDSA: invalid signature 's' value");
        } else if (error == RecoverError.InvalidSignatureV) {
            revert("ECDSA: invalid signature 'v' value");
        }
    }

    /**
     * @dev Returns the address that signed a hashed message (`hash`) with
     * `signature` or error string. This address can then be used for verification purposes.
     *
     * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:
     * this function rejects them by requiring the `s` value to be in the lower
     * half order, and the `v` value to be either 27 or 28.
     *
     * IMPORTANT: `hash` _must_ be the result of a hash operation for the
     * verification to be secure: it is possible to craft signatures that
     * recover to arbitrary addresses for non-hashed data. A safe way to ensure
     * this is by receiving a hash of the original message (which may otherwise
     * be too long), and then calling {toEthSignedMessageHash} on it.
     *
     * Documentation for signature generation:
     * - with https://web3js.readthedocs.io/en/v1.3.4/web3-eth-accounts.html#sign[Web3.js]
     * - with https://docs.ethers.io/v5/api/signer/#Signer-signMessage[ethers]
     *
     * _Available since v4.3._
     */
    function tryRecover(bytes32 hash, bytes memory signature) internal pure returns (address, RecoverError) {
        // Check the signature length
        // - case 65: r,s,v signature (standard)
        // - case 64: r,vs signature (cf https://eips.ethereum.org/EIPS/eip-2098) _Available since v4.1._
        if (signature.length == 65) {
            bytes32 r;
            bytes32 s;
            uint8 v;
            // ecrecover takes the signature parameters, and the only way to get them
            // currently is to use assembly.
            assembly {
                r := mload(add(signature, 0x20))
                s := mload(add(signature, 0x40))
                v := byte(0, mload(add(signature, 0x60)))
            }
            return tryRecover(hash, v, r, s);
        } else if (signature.length == 64) {
            bytes32 r;
            bytes32 vs;
            // ecrecover takes the signature parameters, and the only way to get them
            // currently is to use assembly.
            assembly {
                r := mload(add(signature, 0x20))
                vs := mload(add(signature, 0x40))
            }
            return tryRecover(hash, r, vs);
        } else {
            return (address(0), RecoverError.InvalidSignatureLength);
        }
    }

    /**
     * @dev Returns the address that signed a hashed message (`hash`) with
     * `signature`. This address can then be used for verification purposes.
     *
     * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:
     * this function rejects them by requiring the `s` value to be in the lower
     * half order, and the `v` value to be either 27 or 28.
     *
     * IMPORTANT: `hash` _must_ be the result of a hash operation for the
     * verification to be secure: it is possible to craft signatures that
     * recover to arbitrary addresses for non-hashed data. A safe way to ensure
     * this is by receiving a hash of the original message (which may otherwise
     * be too long), and then calling {toEthSignedMessageHash} on it.
     */
    function recover(bytes32 hash, bytes memory signature) internal pure returns (address) {
        (address recovered, RecoverError error) = tryRecover(hash, signature);
        _throwError(error);
        return recovered;
    }

    /**
     * @dev Overload of {ECDSA-tryRecover} that receives the `r` and `vs` short-signature fields separately.
     *
     * See https://eips.ethereum.org/EIPS/eip-2098[EIP-2098 short signatures]
     *
     * _Available since v4.3._
     */
    function tryRecover(
        bytes32 hash,
        bytes32 r,
        bytes32 vs
    ) internal pure returns (address, RecoverError) {
        bytes32 s = vs & bytes32(0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff);
        uint8 v = uint8((uint256(vs) >> 255) + 27);
        return tryRecover(hash, v, r, s);
    }

    /**
     * @dev Overload of {ECDSA-recover} that receives the `r and `vs` short-signature fields separately.
     *
     * _Available since v4.2._
     */
    function recover(
        bytes32 hash,
        bytes32 r,
        bytes32 vs
    ) internal pure returns (address) {
        (address recovered, RecoverError error) = tryRecover(hash, r, vs);
        _throwError(error);
        return recovered;
    }

    /**
     * @dev Overload of {ECDSA-tryRecover} that receives the `v`,
     * `r` and `s` signature fields separately.
     *
     * _Available since v4.3._
     */
    function tryRecover(
        bytes32 hash,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) internal pure returns (address, RecoverError) {
        // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature
        // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines
        // the valid range for s in (301): 0 < s < secp256k1n ÷ 2 + 1, and for v in (302): v ∈ {27, 28}. Most
        // signatures from current libraries generate a unique signature with an s-value in the lower half order.
        //
        // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value
        // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or
        // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept
        // these malleable signatures as well.
        if (uint256(s) > 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0) {
            return (address(0), RecoverError.InvalidSignatureS);
        }
        if (v != 27 && v != 28) {
            return (address(0), RecoverError.InvalidSignatureV);
        }

        // If the signature is valid (and not malleable), return the signer address
        address signer = ecrecover(hash, v, r, s);
        if (signer == address(0)) {
            return (address(0), RecoverError.InvalidSignature);
        }

        return (signer, RecoverError.NoError);
    }

    /**
     * @dev Overload of {ECDSA-recover} that receives the `v`,
     * `r` and `s` signature fields separately.
     */
    function recover(
        bytes32 hash,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) internal pure returns (address) {
        (address recovered, RecoverError error) = tryRecover(hash, v, r, s);
        _throwError(error);
        return recovered;
    }

    /**
     * @dev Returns an Ethereum Signed Message, created from a `hash`. This
     * produces hash corresponding to the one signed with the
     * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`]
     * JSON-RPC method as part of EIP-191.
     *
     * See {recover}.
     */
    function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32) {
        // 32 is the length in bytes of hash,
        // enforced by the type signature above
        return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", hash));
    }

    /**
     * @dev Returns an Ethereum Signed Message, created from `s`. This
     * produces hash corresponding to the one signed with the
     * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`]
     * JSON-RPC method as part of EIP-191.
     *
     * See {recover}.
     */
    function toEthSignedMessageHash(bytes memory s) internal pure returns (bytes32) {
        return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n", Strings.toString(s.length), s));
    }

    /**
     * @dev Returns an Ethereum Signed Typed Data, created from a
     * `domainSeparator` and a `structHash`. This produces hash corresponding
     * to the one signed with the
     * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`]
     * JSON-RPC method as part of EIP-712.
     *
     * See {recover}.
     */
    function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32) {
        return keccak256(abi.encodePacked("\x19\x01", domainSeparator, structHash));
    }
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"symbol","type":"string"},{"internalType":"string","name":"provenance","type":"string"},{"internalType":"string","name":"initBaseURI","type":"string"},{"internalType":"string","name":"initContractURI","type":"string"},{"internalType":"uint256","name":"_defaultPublicSaleId","type":"uint256"},{"internalType":"address payable","name":"_beneficiary","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"ApprovalToCurrentOwner","type":"error"},{"inputs":[],"name":"ApproveToCaller","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"inputs":[],"name":"URIQueryForNonexistentToken","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":"uint256","name":"tokenId","type":"uint256"}],"name":"Expelled","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"GrazingStarted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"GrazingStopped","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":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"previousAdminRole","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"newAdminRole","type":"bytes32"}],"name":"RoleAdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleRevoked","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":[],"name":"COLLECTION_SIZE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"EXPULSION_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PROVENANCE_HASH","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"startDate","type":"uint256"},{"internalType":"uint256","name":"endDate","type":"uint256"},{"internalType":"uint256","name":"price","type":"uint256"},{"internalType":"uint256","name":"quantityLimit","type":"uint256"}],"name":"addPublicSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"startDate","type":"uint256"},{"internalType":"uint256","name":"endDate","type":"uint256"},{"internalType":"uint256","name":"price","type":"uint256"},{"internalType":"uint256","name":"quantityLimit","type":"uint256"},{"internalType":"address","name":"signer","type":"address"},{"internalType":"bool","name":"checkUsedKeys","type":"bool"}],"name":"addSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"quantity","type":"uint256"},{"internalType":"bytes","name":"saleKey","type":"bytes"},{"internalType":"uint256","name":"saleId","type":"uint256"}],"name":"allowlistMint","outputs":[],"stateMutability":"payable","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":[],"name":"beneficiary","outputs":[{"internalType":"address payable","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"burnUnsoldCows","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"contractURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"expelFromGrazing","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getDefaultPublicSaleId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"getRoleMember","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleMemberCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"saleId","type":"uint256"}],"name":"getSale","outputs":[{"components":[{"internalType":"uint256","name":"startDate","type":"uint256"},{"internalType":"uint256","name":"endDate","type":"uint256"},{"internalType":"uint256","name":"price","type":"uint256"},{"internalType":"uint256","name":"quantityLimit","type":"uint256"},{"internalType":"address","name":"signer","type":"address"},{"internalType":"bool","name":"isPublicSale","type":"bool"},{"internalType":"bool","name":"checkUsedKeys","type":"bool"},{"internalType":"bool","name":"exists","type":"bool"}],"internalType":"struct AllowlistSale.SaleConfig","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"grazingOpen","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"grazingPeriod","outputs":[{"internalType":"bool","name":"grazing","type":"bool"},{"internalType":"uint256","name":"current","type":"uint256"},{"internalType":"uint256","name":"total","type":"uint256"},{"internalType":"uint256","name":"max","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"openSeaProxy","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"openSeaProxyOn","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"quantity","type":"uint256"},{"internalType":"address","name":"recipient","type":"address"}],"name":"ownerMint","outputs":[],"stateMutability":"nonpayable","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":"quantity","type":"uint256"}],"name":"publicMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"removeSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","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":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferWhileGrazing","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"saleConfig","outputs":[{"internalType":"uint256","name":"startDate","type":"uint256"},{"internalType":"uint256","name":"endDate","type":"uint256"},{"internalType":"uint256","name":"price","type":"uint256"},{"internalType":"uint256","name":"quantityLimit","type":"uint256"},{"internalType":"address","name":"signer","type":"address"},{"internalType":"bool","name":"isPublicSale","type":"bool"},{"internalType":"bool","name":"checkUsedKeys","type":"bool"},{"internalType":"bool","name":"exists","type":"bool"}],"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":"newBaseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address payable","name":"_beneficiary","type":"address"}],"name":"setBeneficiary","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"uri","type":"string"}],"name":"setContractURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"saleId","type":"uint256"}],"name":"setDefaultPublicSaleId","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"open","type":"bool"}],"name":"setGrazingOpen","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"setOpenSeaProxyAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"status","type":"bool"}],"name":"setOpenSeaProxyStatus","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"provenance","type":"string"}],"name":"setProvenance","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"toggleGrazing","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"transferRevenues","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes","name":"","type":"bytes"}],"name":"usedKeys","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"}]

6080604052611386600e55601380546001600160a81b03191674a5409ec958c83c3f309868babaca7c86dcb077c10117905560016017556018805460ff191690553480156200004d57600080fd5b5060405162004ca738038062004ca78339810160408190526200007091620009f1565b865187908790620000899060029060208501906200087b565b5080516200009f9060039060208401906200087b565b50506000805550620000b1336200062d565b6001600d558451620000cb90600f9060208801906200087b565b508351620000e19060109060208701906200087b565b508251620000f79060119060208601906200087b565b50601282905560188054610100600160a81b0319166101006001600160a01b038416021790556200012a6000336200067f565b60408051610100810182526362b33c8081526362b34a90602080830191825266470de4df82000093830193845260056060840190815273e12e7b6dda6bc392b8441240459f7960e016d7cb60808501908152600060a0860181815260c08701828152600160e089018181529352600890955295517fad67d757c34507f157cacfa2e3153e9f260a2244f30428821be7be64587ac55f5593517fad67d757c34507f157cacfa2e3153e9f260a2244f30428821be7be64587ac5605594517fad67d757c34507f157cacfa2e3153e9f260a2244f30428821be7be64587ac56155517fad67d757c34507f157cacfa2e3153e9f260a2244f30428821be7be64587ac5625592517fad67d757c34507f157cacfa2e3153e9f260a2244f30428821be7be64587ac56380549351945192511515600160b01b0260ff60b01b19931515600160a81b029390931661ffff60a81b19951515600160a01b026001600160a81b03199095166001600160a01b039093169290921793909317939093169290921791909117905560408051610100810182526362b34a9081526362b5ed906020808301918252668e1bc9bf040000938301938452600560608401908152600060808501818152600160a0870181815260c0880184815260e089019283526002909452600890955295517f6add646517a5b0f6793cd5891b7937d28a5b2981a5d88ebc7cd776088fea90415593517f6add646517a5b0f6793cd5891b7937d28a5b2981a5d88ebc7cd776088fea90425594517f6add646517a5b0f6793cd5891b7937d28a5b2981a5d88ebc7cd776088fea904355517f6add646517a5b0f6793cd5891b7937d28a5b2981a5d88ebc7cd776088fea90445590517f6add646517a5b0f6793cd5891b7937d28a5b2981a5d88ebc7cd776088fea904580549251945193511515600160b01b0260ff60b01b19941515600160a81b029490941661ffff60a81b19951515600160a01b026001600160a81b03199094166001600160a01b03909316929092179290921793909316929092171790556200049960036040518061010001604052806362b5ed9081526020016362b625d08152602001600081526020016001815260200173842404201be7cc0bc01f2afe9af49dfe1a70bf646001600160a01b0316815260200160001515815260200160011515815260200160011515815250620006c260201b60201c565b60408051610100810182526362b2f63081526362b32060602080830191825266470de4df8200009383019384526005606084019081527383c6a23e0bbb11c17cc25da0f5e3b36d64470deb60808501908152600060a0860181815260c08701828152600160e08901908152602a909352600890955295517f99f6c95adcf20f5130d8bda7b0b3d7915feb3fdc124b41e1804d6e90c805b29c5593517f99f6c95adcf20f5130d8bda7b0b3d7915feb3fdc124b41e1804d6e90c805b29d5594517f99f6c95adcf20f5130d8bda7b0b3d7915feb3fdc124b41e1804d6e90c805b29e55517f99f6c95adcf20f5130d8bda7b0b3d7915feb3fdc124b41e1804d6e90c805b29f5592517f99f6c95adcf20f5130d8bda7b0b3d7915feb3fdc124b41e1804d6e90c805b2a080549351945192511515600160b01b0260ff60b01b19931515600160a81b029390931661ffff60a81b19951515600160a01b026001600160a81b03199095166001600160a01b03909316929092179390931793909316929092179190911790555050505050505062000b3b565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6200069682826200076460201b62001d401760201c565b6000828152600c60209081526040909120620006bd91839062001dc662000809821b17901c565b505050565b600091825260086020908152604092839020825181559082015160018201559181015160028301556060810151600383015560808101516004909201805460a083015160c084015160e0909401511515600160b01b0260ff60b01b19941515600160a81b029490941661ffff60a81b19911515600160a01b026001600160a81b03199093166001600160a01b0390961695909517919091171692909217179055565b6000828152600b602090815260408083206001600160a01b038516845290915290205460ff1662000805576000828152600b602090815260408083206001600160a01b03851684529091529020805460ff19166001179055620007c43390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b600062000820836001600160a01b03841662000829565b90505b92915050565b6000818152600183016020526040812054620008725750815460018181018455600084815260208082209093018490558454848252828601909352604090209190915562000823565b50600062000823565b828054620008899062000ae8565b90600052602060002090601f016020900481019282620008ad5760008555620008f8565b82601f10620008c857805160ff1916838001178555620008f8565b82800160010185558215620008f8579182015b82811115620008f8578251825591602001919060010190620008db565b50620009069291506200090a565b5090565b5b808211156200090657600081556001016200090b565b80516001600160a01b03811681146200093957600080fd5b919050565b600082601f8301126200094f578081fd5b81516001600160401b03808211156200096c576200096c62000b25565b604051601f8301601f19908116603f0116810190828211818310171562000997576200099762000b25565b81604052838152602092508683858801011115620009b3578485fd5b8491505b83821015620009d65785820183015181830184015290820190620009b7565b83821115620009e757848385830101525b9695505050505050565b600080600080600080600060e0888a03121562000a0c578283fd5b87516001600160401b038082111562000a23578485fd5b62000a318b838c016200093e565b985060208a015191508082111562000a47578485fd5b62000a558b838c016200093e565b975060408a015191508082111562000a6b578485fd5b62000a798b838c016200093e565b965060608a015191508082111562000a8f578485fd5b62000a9d8b838c016200093e565b955060808a015191508082111562000ab3578485fd5b5062000ac28a828b016200093e565b93505060a0880151915062000ada60c0890162000921565b905092959891949750929550565b600181811c9082168062000afd57607f821691505b6020821081141562000b1f57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052604160045260246000fd5b61415c8062000b4b6000396000f3fe60806040526004361061038c5760003560e01c806389049a3a116101dc578063ca41b76a11610102578063e0825a92116100a0578063f2fde38b1161006f578063f2fde38b14610b74578063f48fc66014610b94578063ff1b655614610bcf578063ffe630b514610be457600080fd5b8063e0825a9214610b0a578063e8a3d48514610b1f578063e985e9c514610b34578063ee67171114610b5457600080fd5b8063d547741f116100dc578063d547741f14610a29578063d8258d9514610a49578063d8f6d59614610a5f578063dc100ec914610aea57600080fd5b8063ca41b76a146109c9578063d3760f49146109e9578063d52c57e014610a0957600080fd5b80639ef3914c1161017a578063b415965611610149578063b415965614610956578063b88d4fde14610969578063c87b56dd14610989578063ca15c873146109a957600080fd5b80639ef3914c146108e1578063a217fddf14610901578063a22cb46514610916578063ac4ab4811461093657600080fd5b8063902ddfff116101b6578063902ddfff1461087757806391d148541461088c578063938e3d7b146108ac57806395d89b41146108cc57600080fd5b806389049a3a1461077b5780638da5cb5b146108395780639010d07c1461085757600080fd5b806338af3eed116102c15780636352211e1161025f578063715018a61161022e578063715018a614610712578063773440e6146107275780637d36d4bf1461074157806385390a951461075b57600080fd5b80636352211e146106a857806363780c2c146106c85780636c0360eb146106dd57806370a08231146106f257600080fd5b806342966c681161029b57806342966c681461062857806344e797e91461064857806355f804b3146106685780635f3920bc1461068857600080fd5b806338af3eed146105af57806340b625c0146105d457806342842e0e1461060857600080fd5b80631b2996921161032e578063248a9ca311610308578063248a9ca31461052c5780632db115441461055c5780632f2ff15d1461056f57806336568abe1461058f57600080fd5b80631b299692146104cc5780631c31f710146104ec57806323b872dd1461050c57600080fd5b8063081812fc1161036a578063081812fc1461042a578063095ea7b3146104625780630d03c1da1461048457806318160ddd146104a957600080fd5b806301ffc9a714610391578063034f48af146103c657806306fdde0314610408575b600080fd5b34801561039d57600080fd5b506103b16103ac366004613be7565b610c04565b60405190151581526020015b60405180910390f35b3480156103d257600080fd5b506103e66103e1366004613b8a565b610c15565b60408051941515855260208501939093529183015260608201526080016103bd565b34801561041457600080fd5b5061041d610c87565b6040516103bd9190613ec3565b34801561043657600080fd5b5061044a610445366004613b8a565b610d19565b6040516001600160a01b0390911681526020016103bd565b34801561046e57600080fd5b5061048261047d366004613ad6565b610d5d565b005b34801561049057600080fd5b5060135461044a9061010090046001600160a01b031681565b3480156104b557600080fd5b50600154600054035b6040519081526020016103bd565b3480156104d857600080fd5b506104826104e73660046139a5565b610de4565b3480156104f857600080fd5b506104826105073660046139a5565b610e3f565b34801561051857600080fd5b506104826105273660046139f9565b610e91565b34801561053857600080fd5b506104be610547366004613b8a565b6000908152600b602052604090206001015490565b61048261056a366004613b8a565b610e9c565b34801561057b57600080fd5b5061048261058a366004613ba2565b610f1b565b34801561059b57600080fd5b506104826105aa366004613ba2565b610f40565b3480156105bb57600080fd5b5060185461044a9061010090046001600160a01b031681565b3480156105e057600080fd5b506104be7f7904e9328f622335e3d715af4f9d4b4147d279485bd5be001b80efa4da608a2981565b34801561061457600080fd5b506104826106233660046139f9565b610fbe565b34801561063457600080fd5b50610482610643366004613b8a565b610fd9565b34801561065457600080fd5b50610482610663366004613b8a565b610fe7565b34801561067457600080fd5b50610482610683366004613c6d565b61102f565b34801561069457600080fd5b506104826106a33660046139f9565b611065565b3480156106b457600080fd5b5061044a6106c3366004613b8a565b6110d5565b3480156106d457600080fd5b506104826110e7565b3480156106e957600080fd5b5061041d611234565b3480156106fe57600080fd5b506104be61070d3660046139a5565b6112c2565b34801561071e57600080fd5b50610482611310565b34801561073357600080fd5b506018546103b19060ff1681565b34801561074d57600080fd5b506013546103b19060ff1681565b34801561076757600080fd5b50610482610776366004613b01565b611346565b34801561078757600080fd5b506107ef610796366004613b8a565b60086020526000908152604090208054600182015460028301546003840154600490940154929391929091906001600160a01b0381169060ff600160a01b8204811691600160a81b8104821691600160b01b9091041688565b6040805198895260208901979097529587019490945260608601929092526001600160a01b03166080850152151560a0840152151560c0830152151560e0820152610100016103bd565b34801561084557600080fd5b50600a546001600160a01b031661044a565b34801561086357600080fd5b5061044a610872366004613bc6565b611397565b34801561088357600080fd5b506012546104be565b34801561089857600080fd5b506103b16108a7366004613ba2565b6113b6565b3480156108b857600080fd5b506104826108c7366004613c6d565b6113e1565b3480156108d857600080fd5b5061041d611417565b3480156108ed57600080fd5b506104826108fc366004613cfc565b611426565b34801561090d57600080fd5b506104be600081565b34801561092257600080fd5b50610482610931366004613aa2565b6114ad565b34801561094257600080fd5b50610482610951366004613b70565b611543565b610482610964366004613cac565b611580565b34801561097557600080fd5b50610482610984366004613a39565b611638565b34801561099557600080fd5b5061041d6109a4366004613b8a565b61167c565b3480156109b557600080fd5b506104be6109c4366004613b8a565b611700565b3480156109d557600080fd5b506104826109e4366004613b70565b611717565b3480156109f557600080fd5b50610482610a04366004613d36565b611754565b348015610a1557600080fd5b50610482610a24366004613ba2565b6117db565b348015610a3557600080fd5b50610482610a44366004613ba2565b611879565b348015610a5557600080fd5b506104be600e5481565b348015610a6b57600080fd5b50610a7f610a7a366004613b8a565b61189e565b6040516103bd9190815181526020808301519082015260408083015190820152606080830151908201526080808301516001600160a01b03169082015260a08083015115159082015260c08083015115159082015260e0918201511515918101919091526101000190565b348015610af657600080fd5b50610482610b05366004613b8a565b6119c4565b348015610b1657600080fd5b506104826119f3565b348015610b2b57600080fd5b5061041d611a29565b348015610b4057600080fd5b506103b1610b4f3660046139c1565b611a38565b348015610b6057600080fd5b50610482610b6f366004613b8a565b611b16565b348015610b8057600080fd5b50610482610b8f3660046139a5565b611c65565b348015610ba057600080fd5b506103b1610baf366004613c1f565b805160208183018101805160098252928201919093012091525460ff1681565b348015610bdb57600080fd5b5061041d611cfd565b348015610bf057600080fd5b50610482610bff366004613c6d565b611d0a565b6000610c0f82611ddb565b92915050565b6000818152601460205260408120548190819081908015610c415760019450610c3e8142613fd5565b93505b600086815260156020526040902054610c5a9085613f8a565b6000878152601660205260409020549093509150838211610c7b5783610c7d565b815b9150509193509193565b606060028054610c969061402f565b80601f0160208091040260200160405190810160405280929190818152602001828054610cc29061402f565b8015610d0f5780601f10610ce457610100808354040283529160200191610d0f565b820191906000526020600020905b815481529060010190602001808311610cf257829003601f168201915b5050505050905090565b6000610d2482611e00565b610d41576040516333d1c03960e21b815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b6000610d68826110d5565b9050806001600160a01b0316836001600160a01b03161415610d9d5760405163250fdee360e21b815260040160405180910390fd5b336001600160a01b03821614610dd457610db78133611a38565b610dd4576040516367d9dca160e11b815260040160405180910390fd5b610ddf838383611e2b565b505050565b600a546001600160a01b03163314610e175760405162461bcd60e51b8152600401610e0e90613f1e565b60405180910390fd5b601380546001600160a01b0390921661010002610100600160a81b0319909216919091179055565b600a546001600160a01b03163314610e695760405162461bcd60e51b8152600401610e0e90613f1e565b601880546001600160a01b0390921661010002610100600160a81b0319909216919091179055565b610ddf838383611e87565b6002600d541415610ebf5760405162461bcd60e51b8152600401610e0e90613f53565b6002600d55600e5481610ed56001546000540390565b610edf9190613f8a565b1115610efd5760405162461bcd60e51b8152600401610e0e90613ed6565b610f098160125461206d565b610f133382612080565b506001600d55565b6000828152600b6020526040902060010154610f368161209a565b610ddf83836120a4565b6001600160a01b0381163314610fb05760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b6064820152608401610e0e565b610fba82826120c6565b5050565b610ddf83838360405180602001604052806000815250611638565b610fe48160016120e8565b50565b600a546001600160a01b031633146110115760405162461bcd60e51b8152600401610e0e90613f1e565b6000908152600860205260409020600401805460ff60b01b19169055565b600a546001600160a01b031633146110595760405162461bcd60e51b8152600401610e0e90613f1e565b610ddf60108383613832565b3361106f826110d5565b6001600160a01b0316146110bb5760405162461bcd60e51b815260206004820152601360248201527231b7bbb637b73c9d1027b7363c9037bbb732b960691b6044820152606401610e0e565b60026017556110cb838383610fbe565b5050600160175550565b60006110e0826122a9565b5192915050565b600a546001600160a01b031633146111115760405162461bcd60e51b8152600401610e0e90613f1e565b60185461010090046001600160a01b031661116e5760405162461bcd60e51b815260206004820152601e60248201527f4e6f2062656e6566696369617279206164647265737320646566696e656400006044820152606401610e0e565b6018546040517f53656e64696e6720726576656e7565732066726f6d20636f776c6f6e79000000815260009161010090046001600160a01b0316904790601d0160006040518083038185875af1925050503d80600081146111eb576040519150601f19603f3d011682016040523d82523d6000602084013e6111f0565b606091505b5050905080610fe45760405162461bcd60e51b815260206004820152601060248201526f2a3930b739b332b9103330b4b632b21760811b6044820152606401610e0e565b601080546112419061402f565b80601f016020809104026020016040519081016040528092919081815260200182805461126d9061402f565b80156112ba5780601f1061128f576101008083540402835291602001916112ba565b820191906000526020600020905b81548152906001019060200180831161129d57829003601f168201915b505050505081565b60006001600160a01b0382166112eb576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b03166000908152600560205260409020546001600160401b031690565b600a546001600160a01b0316331461133a5760405162461bcd60e51b8152600401610e0e90613f1e565b61134460006123c3565b565b8060005b818110156113915761138184848381811061137557634e487b7160e01b600052603260045260246000fd5b90506020020135612415565b61138a8161406a565b905061134a565b50505050565b6000828152600c602052604081206113af90836125ca565b9392505050565b6000918252600b602090815260408084206001600160a01b0393909316845291905290205460ff1690565b600a546001600160a01b0316331461140b5760405162461bcd60e51b8152600401610e0e90613f1e565b610ddf60118383613832565b606060038054610c969061402f565b600a546001600160a01b031633146114505760405162461bcd60e51b8152600401610e0e90613f1e565b6114a68560405180610100016040528087815260200186815260200185815260200184815260200160006001600160a01b03168152602001600115158152602001600015158152602001600115158152506125d6565b5050505050565b6001600160a01b0382163314156114d75760405163b06307db60e01b815260040160405180910390fd5b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b600a546001600160a01b0316331461156d5760405162461bcd60e51b8152600401610e0e90613f1e565b6018805460ff1916911515919091179055565b6002600d5414156115a35760405162461bcd60e51b8152600401610e0e90613f53565b6002600d55600e54846115b96001546000540390565b6115c39190613f8a565b11156115e15760405162461bcd60e51b8152600401610e0e90613ed6565b6116238484848080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250869250612678915050565b61162d3385612080565b50506001600d555050565b611643848484611e87565b6001600160a01b0383163b156113915761165f84848484612695565b611391576040516368d2bf6b60e11b815260040160405180910390fd5b606061168782611e00565b6116a457604051630a14c4b560e41b815260040160405180910390fd5b60006116ae61278d565b90508051600014156116cf57604051806020016040528060008152506113af565b806116d98461279c565b6040516020016116ea929190613de2565b6040516020818303038152906040529392505050565b6000818152600c60205260408120610c0f906128b5565b600a546001600160a01b031633146117415760405162461bcd60e51b8152600401610e0e90613f1e565b6013805460ff1916911515919091179055565b600a546001600160a01b0316331461177e5760405162461bcd60e51b8152600401610e0e90613f1e565b6117d287604051806101000160405280898152602001888152602001878152602001868152602001856001600160a01b031681526020016000151581526020018415158152602001600115158152506125d6565b50505050505050565b600a546001600160a01b031633146118055760405162461bcd60e51b8152600401610e0e90613f1e565b6002600d5414156118285760405162461bcd60e51b8152600401610e0e90613f53565b6002600d55600e548261183e6001546000540390565b6118489190613f8a565b11156118665760405162461bcd60e51b8152600401610e0e90613ed6565b6118708183612080565b50506001600d55565b6000828152600b60205260409020600101546118948161209a565b610ddf83836120c6565b6040805161010081018252600080825260208201819052918101829052606081018290526080810182905260a0810182905260c0810182905260e0810191909152600082815260086020526040902060040154600160b01b900460ff166119385760405162461bcd60e51b815260206004820152600e60248201526d1a5b9d985b1a59081cd85b19525960921b6044820152606401610e0e565b5060009081526008602090815260409182902082516101008101845281548152600182015492810192909252600281015492820192909252600382015460608201526004909101546001600160a01b038116608083015260ff600160a01b82048116151560a0840152600160a81b82048116151560c0840152600160b01b90910416151560e082015290565b600a546001600160a01b031633146119ee5760405162461bcd60e51b8152600401610e0e90613f1e565b601255565b600a546001600160a01b03163314611a1d5760405162461bcd60e51b8152600401610e0e90613f1e565b60015460005403600e55565b606060118054610c969061402f565b60135460009060ff1615611ae85760135460405163c455279160e01b81526001600160a01b038581166004830152610100909204821691841690829063c45527919060240160206040518083038186803b158015611a9557600080fd5b505afa158015611aa9573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611acd9190613c51565b6001600160a01b03161415611ae6576001915050610c0f565b505b6001600160a01b0380841660009081526007602090815260408083209386168352929052205460ff166113af565b7f7904e9328f622335e3d715af4f9d4b4147d279485bd5be001b80efa4da608a29611b408161209a565b600082815260146020526040902054611b925760405162461bcd60e51b8152602060048201526014602482015273636f776c6f6e793a206e6f74206772617a696e6760601b6044820152606401610e0e565b600082815260146020526040812054611bab9042613fd5565b905080601560008581526020019081526020016000206000828254611bd09190613f8a565b909155505060008381526014602090815260408083208390556016909152902054811115611c0a5760008381526016602052604090208190555b60405183907f4bb23eeff28866af27e09ed0a28ff1645c7ff3f3ba944dde2a12c495e245b3de90600090a260405183907f3ebee94e74ea24f711b5876dca724062e18b7b37b6883e686a92f093248a4fcf90600090a2505050565b600a546001600160a01b03163314611c8f5760405162461bcd60e51b8152600401610e0e90613f1e565b6001600160a01b038116611cf45760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610e0e565b610fe4816123c3565b600f80546112419061402f565b600a546001600160a01b03163314611d345760405162461bcd60e51b8152600401610e0e90613f1e565b610ddf600f8383613832565b611d4a82826113b6565b610fba576000828152600b602090815260408083206001600160a01b03851684529091529020805460ff19166001179055611d823390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b60006113af836001600160a01b0384166128bf565b60006001600160e01b03198216635a05180f60e01b1480610c0f5750610c0f8261290e565b6000805482108015610c0f575050600090815260046020526040902054600160e01b900460ff161590565b60008281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6000611e92826122a9565b9050836001600160a01b031681600001516001600160a01b031614611ec95760405162a1148160e81b815260040160405180910390fd5b6000336001600160a01b0386161480611ee75750611ee78533611a38565b80611f02575033611ef784610d19565b6001600160a01b0316145b905080611f2257604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b038416611f4957604051633a954ecd60e21b815260040160405180910390fd5b611f568585856001612933565b611f6260008487611e2b565b6001600160a01b038581166000908152600560209081526040808320805467ffffffffffffffff198082166001600160401b0392831660001901831617909255898616808652838620805493841693831660019081018416949094179055898652600490945282852080546001600160e01b031916909417600160a01b4290921691909102178355870180845292208054919390911661203657600054821461203657805460208601516001600160401b0316600160a01b026001600160e01b03199091166001600160a01b038a16171781555b50505082846001600160a01b0316866001600160a01b031660008051602061410783398151915260405160405180910390a46114a6565b612076816129bf565b610fba8282612b38565b610fba828260405180602001604052806000815250612c34565b610fe48133612de1565b6120ae8282611d40565b6000828152600c60205260409020610ddf9082611dc6565b6120d08282612e45565b6000828152600c60205260409020610ddf9082612eac565b60006120f3836122a9565b80519091508215612159576000336001600160a01b038316148061211c575061211c8233611a38565b8061213757503361212c86610d19565b6001600160a01b0316145b90508061215757604051632ce44b5f60e11b815260040160405180910390fd5b505b612167816000866001612933565b61217360008583611e2b565b6001600160a01b0380821660008181526005602090815260408083208054600160801b6000196001600160401b0380841691909101811667ffffffffffffffff198416811783900482166001908101831690930277ffffffffffffffff0000000000000000ffffffffffffffff19909416179290921783558b86526004909452828520805460ff60e01b1942909316600160a01b026001600160e01b03199091169097179690961716600160e01b17855591890180845292208054919490911661227157600054821461227157805460208701516001600160401b0316600160a01b026001600160e01b03199091166001600160a01b038716171781555b5050604051869250600091506001600160a01b03841690600080516020614107833981519152908390a4505060018054810190555050565b6040805160608101825260008082526020820181905291810191909152816000548110156123aa57600081815260046020908152604091829020825160608101845290546001600160a01b0381168252600160a01b81046001600160401b031692820192909252600160e01b90910460ff161515918101829052906123a85780516001600160a01b03161561233f579392505050565b5060001901600081815260046020908152604091829020825160608101845290546001600160a01b038116808352600160a01b82046001600160401b031693830193909352600160e01b900460ff16151592810192909252156123a3579392505050565b61233f565b505b604051636f96cda160e11b815260040160405180910390fd5b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b8033612420826122a9565b516001600160a01b0316148061244657503361243b82610d19565b6001600160a01b0316145b61248b5760405162461bcd60e51b81526020600482015260166024820152752737ba1030b8383937bb32b2103737b91037bbb732b960511b6044820152606401610e0e565b6000828152601460205260409020548061252e5760185460ff166124f15760405162461bcd60e51b815260206004820152601c60248201527f636f776c6f6e793a206772617a696e6720756e617661696c61626c65000000006044820152606401610e0e565b6000838152601460205260408082204290555184917f55dc594553c08cd756fbb798b1c48b72acc1602a91a1aafd0d22d31adfd741fe91a2505050565b600061253a8242613fd5565b90508060156000868152602001908152602001600020600082825461255f9190613f8a565b9091555050600084815260146020908152604080832083905560169091529020548111156125995760008481526016602052604090208190555b60405184907f4bb23eeff28866af27e09ed0a28ff1645c7ff3f3ba944dde2a12c495e245b3de90600090a250505050565b60006113af8383612ec1565b600091825260086020908152604092839020825181559082015160018201559181015160028301556060810151600383015560808101516004909201805460a083015160c084015160e0909401511515600160b01b0260ff60b01b19941515600160a81b029490941661ffff60a81b19911515600160a01b026001600160a81b03199093166001600160a01b0390961695909517919091171692909217179055565b612681816129bf565b61268b8282612ef9565b610ddf8382612b38565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a02906126ca903390899088908890600401613e86565b602060405180830381600087803b1580156126e457600080fd5b505af1925050508015612714575060408051601f3d908101601f1916820190925261271191810190613c03565b60015b61276f573d808015612742576040519150601f19603f3d011682016040523d82523d6000602084013e612747565b606091505b508051612767576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490505b949350505050565b606060108054610c969061402f565b6060816127c05750506040805180820190915260018152600360fc1b602082015290565b8160005b81156127ea57806127d48161406a565b91506127e39050600a83613fa2565b91506127c4565b6000816001600160401b0381111561281257634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f19166020018201604052801561283c576020820181803683370190505b5090505b841561278557612851600183613fd5565b915061285e600a86614085565b612869906030613f8a565b60f81b81838151811061288c57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a9053506128ae600a86613fa2565b9450612840565b6000610c0f825490565b600081815260018301602052604081205461290657508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155610c0f565b506000610c0f565b60006001600160e01b03198216637965db0b60e01b1480610c0f5750610c0f826130a4565b8160006129408383613f8a565b90505b808210156129b757600082815260146020526040902054158061296857506017546002145b6129a75760405162461bcd60e51b815260206004820152601060248201526f636f776c6f6e793a206772617a696e6760801b6044820152606401610e0e565b6129b08261406a565b9150612943565b505050505050565b60008181526008602090815260409182902082516101008101845281548152600182015492810192909252600281015492820192909252600382015460608201526004909101546001600160a01b038116608083015260ff600160a01b82048116151560a0840152600160a81b82048116151560c0840152600160b01b90910416151560e08201819052612a865760405162461bcd60e51b815260206004820152600e60248201526d1a5b9d985b1a59081cd85b19525960921b6044820152606401610e0e565b805115801590612a965750805142115b612ae25760405162461bcd60e51b815260206004820152601d60248201527f73616c6520686173206e6f74206265656e2073746172746564207965740000006044820152606401610e0e565b60208101511580612af65750806020015142105b610fba5760405162461bcd60e51b81526020600482015260136024820152721cd85b19481a185cc81899595b88195b991959606a1b6044820152606401610e0e565b600081815260086020526040902060030154821115612bad5760405162461bcd60e51b815260206004820152602b60248201527f73616c65206c696d697420697320657863656564656420666f7220746869732060448201526a3a3930b739b0b1ba34b7b760a91b6064820152608401610e0e565b6000818152600860205260409020600201543490612bcb9084613fb6565b1115610fba5760405162461bcd60e51b815260206004820152603260248201527f6e6f7420656e6f7567682076616c7565207761732073656e7420746f20636f6d604482015271706c6574652074686520707572636861736560701b6064820152608401610e0e565b6000546001600160a01b038416612c5d57604051622e076360e81b815260040160405180910390fd5b82612c7b5760405163b562e8dd60e01b815260040160405180910390fd5b612c886000858386612933565b6001600160a01b038416600081815260056020908152604080832080546fffffffffffffffffffffffffffffffff1981166001600160401b038083168b0181169182176801000000000000000067ffffffffffffffff1990941690921783900481168b01811690920217909155858452600490925290912080546001600160e01b0319168317600160a01b42909316929092029190911790558190818501903b15612d9e575b60405182906001600160a01b03881690600090600080516020614107833981519152908290a4612d676000878480600101955087612695565b612d84576040516368d2bf6b60e11b815260040160405180910390fd5b808210612d2e578260005414612d9957600080fd5b612dd1565b5b6040516001830192906001600160a01b03881690600090600080516020614107833981519152908290a4808210612d9f575b5060009081556113919085838684565b612deb82826113b6565b610fba57612e03816001600160a01b031660146130f4565b612e0e8360206130f4565b604051602001612e1f929190613e11565b60408051601f198184030181529082905262461bcd60e51b8252610e0e91600401613ec3565b612e4f82826113b6565b15610fba576000828152600b602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b60006113af836001600160a01b0384166132d5565b6000826000018281548110612ee657634e487b7160e01b600052603260045260246000fd5b9060005260206000200154905092915050565b60008181526008602090815260409182902082516101008101845281548152600182015492810192909252600281015492820192909252600382015460608201526004909101546001600160a01b038116608083015260ff600160a01b82048116151560a08401819052600160a81b83048216151560c0850152600160b01b90920416151560e083015280612fc35750600983604051612f999190613dc6565b9081526040519081900360200190205460ff16158015612fc35750612fc3816080015133856133f2565b61304c5760405162461bcd60e51b815260206004820152604e60248201527f6164647265737320776974682074686973206b6579206973206e6f7420656c6960448201527f6769626c6520746f206d696e74206f722073616c654b6579206861732062656560648201526d1b88185b1c9958591e481d5cd95960921b608482015260a401610e0e565b600082815260086020526040902060040154600160a81b900460ff1615610ddf57600160098460405161307f9190613dc6565b908152604051908190036020019020805491151560ff19909216919091179055505050565b60006001600160e01b031982166380ac58cd60e01b14806130d557506001600160e01b03198216635b5e139f60e01b145b80610c0f57506301ffc9a760e01b6001600160e01b0319831614610c0f565b60606000613103836002613fb6565b61310e906002613f8a565b6001600160401b0381111561313357634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f19166020018201604052801561315d576020820181803683370190505b509050600360fc1b8160008151811061318657634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350600f60fb1b816001815181106131c357634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a90535060006131e7846002613fb6565b6131f2906001613f8a565b90505b6001811115613286576f181899199a1a9b1b9c1cb0b131b232b360811b85600f166010811061323457634e487b7160e01b600052603260045260246000fd5b1a60f81b82828151811061325857634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a90535060049490941c9361327f81614018565b90506131f5565b5083156113af5760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610e0e565b600081815260018301602052604081205480156133e85760006132f9600183613fd5565b855490915060009061330d90600190613fd5565b905081811461338e57600086600001828154811061333b57634e487b7160e01b600052603260045260246000fd5b906000526020600020015490508087600001848154811061336c57634e487b7160e01b600052603260045260246000fd5b6000918252602080832090910192909255918252600188019052604090208390555b85548690806133ad57634e487b7160e01b600052603160045260246000fd5b600190038181906000526020600020016000905590558560010160008681526020019081526020016000206000905560019350505050610c0f565b6000915050610c0f565b6040517f19457468657265756d205369676e6564204d6573736167653a0a33320000000060208201526001600160a01b038316603c82015260009061345a908390605c016040516020818303038152906040528051906020012061347790919063ffffffff16565b6001600160a01b0316846001600160a01b03161490509392505050565b6000806000613486858561349b565b915091506134938161350b565b509392505050565b6000808251604114156134d25760208301516040840151606085015160001a6134c68782858561370c565b94509450505050613504565b8251604014156134fc57602083015160408401516134f18683836137f9565b935093505050613504565b506000905060025b9250929050565b600081600481111561352d57634e487b7160e01b600052602160045260246000fd5b14156135365750565b600181600481111561355857634e487b7160e01b600052602160045260246000fd5b14156135a65760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610e0e565b60028160048111156135c857634e487b7160e01b600052602160045260246000fd5b14156136165760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610e0e565b600381600481111561363857634e487b7160e01b600052602160045260246000fd5b14156136915760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b6064820152608401610e0e565b60048160048111156136b357634e487b7160e01b600052602160045260246000fd5b1415610fe45760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b6064820152608401610e0e565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a083111561374357506000905060036137f0565b8460ff16601b1415801561375b57508460ff16601c14155b1561376c57506000905060046137f0565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa1580156137c0573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381166137e9576000600192509250506137f0565b9150600090505b94509492505050565b6000806001600160ff1b0383168161381660ff86901c601b613f8a565b90506138248782888561370c565b935093505050935093915050565b82805461383e9061402f565b90600052602060002090601f01602090048101928261386057600085556138a6565b82601f106138795782800160ff198235161785556138a6565b828001600101855582156138a6579182015b828111156138a657823582559160200191906001019061388b565b506138b29291506138b6565b5090565b5b808211156138b257600081556001016138b7565b803580151581146138db57600080fd5b919050565b60008083601f8401126138f1578182fd5b5081356001600160401b03811115613907578182fd5b60208301915083602082850101111561350457600080fd5b600082601f83011261392f578081fd5b81356001600160401b0380821115613949576139496140c5565b604051601f8301601f19908116603f01168101908282118183101715613971576139716140c5565b81604052838152866020858801011115613989578485fd5b8360208701602083013792830160200193909352509392505050565b6000602082840312156139b6578081fd5b81356113af816140db565b600080604083850312156139d3578081fd5b82356139de816140db565b915060208301356139ee816140db565b809150509250929050565b600080600060608486031215613a0d578081fd5b8335613a18816140db565b92506020840135613a28816140db565b929592945050506040919091013590565b60008060008060808587031215613a4e578081fd5b8435613a59816140db565b93506020850135613a69816140db565b92506040850135915060608501356001600160401b03811115613a8a578182fd5b613a968782880161391f565b91505092959194509250565b60008060408385031215613ab4578182fd5b8235613abf816140db565b9150613acd602084016138cb565b90509250929050565b60008060408385031215613ae8578182fd5b8235613af3816140db565b946020939093013593505050565b60008060208385031215613b13578182fd5b82356001600160401b0380821115613b29578384fd5b818501915085601f830112613b3c578384fd5b813581811115613b4a578485fd5b8660208260051b8501011115613b5e578485fd5b60209290920196919550909350505050565b600060208284031215613b81578081fd5b6113af826138cb565b600060208284031215613b9b578081fd5b5035919050565b60008060408385031215613bb4578182fd5b8235915060208301356139ee816140db565b60008060408385031215613bd8578182fd5b50508035926020909101359150565b600060208284031215613bf8578081fd5b81356113af816140f0565b600060208284031215613c14578081fd5b81516113af816140f0565b600060208284031215613c30578081fd5b81356001600160401b03811115613c45578182fd5b6127858482850161391f565b600060208284031215613c62578081fd5b81516113af816140db565b60008060208385031215613c7f578182fd5b82356001600160401b03811115613c94578283fd5b613ca0858286016138e0565b90969095509350505050565b60008060008060608587031215613cc1578182fd5b8435935060208501356001600160401b03811115613cdd578283fd5b613ce9878288016138e0565b9598909750949560400135949350505050565b600080600080600060a08688031215613d13578283fd5b505083359560208501359550604085013594606081013594506080013592509050565b600080600080600080600060e0888a031215613d50578485fd5b873596506020880135955060408801359450606088013593506080880135925060a0880135613d7e816140db565b9150613d8c60c089016138cb565b905092959891949750929550565b60008151808452613db2816020860160208601613fec565b601f01601f19169290920160200192915050565b60008251613dd8818460208701613fec565b9190910192915050565b60008351613df4818460208801613fec565b835190830190613e08818360208801613fec565b01949350505050565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000815260008351613e49816017850160208801613fec565b7001034b99036b4b9b9b4b733903937b6329607d1b6017918401918201528351613e7a816028840160208801613fec565b01602801949350505050565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090613eb990830184613d9a565b9695505050505050565b6020815260006113af6020830184613d9a565b60208082526028908201527f707572636861736520776f756c6420657863656564206d617820737570706c79604082015267206f6620436f777360c01b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b60008219821115613f9d57613f9d614099565b500190565b600082613fb157613fb16140af565b500490565b6000816000190483118215151615613fd057613fd0614099565b500290565b600082821015613fe757613fe7614099565b500390565b60005b83811015614007578181015183820152602001613fef565b838111156113915750506000910152565b60008161402757614027614099565b506000190190565b600181811c9082168061404357607f821691505b6020821081141561406457634e487b7160e01b600052602260045260246000fd5b50919050565b600060001982141561407e5761407e614099565b5060010190565b600082614094576140946140af565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b0381168114610fe457600080fd5b6001600160e01b031981168114610fe457600080fdfeddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa264697066735822122040b949fbcfbc9217ccc5055d561a099dc3777f31e2f0fddbc69a0f1fd4f9114464736f6c6343000804003300000000000000000000000000000000000000000000000000000000000000e00000000000000000000000000000000000000000000000000000000000000120000000000000000000000000000000000000000000000000000000000000016000000000000000000000000000000000000000000000000000000000000001c0000000000000000000000000000000000000000000000000000000000000022000000000000000000000000000000000000000000000000000000000000000020000000000000000000000007159ebe5f711d1a131283cf6aeff8ca1fd6e80040000000000000000000000000000000000000000000000000000000000000007636f776c6f6e79000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000007434f574c4f4e5900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004038306439333630613930643762636664656361626533666662653437323536626630663139376261326633376461653039326638326166653064636634323831000000000000000000000000000000000000000000000000000000000000003068747470733a2f2f6e66742d6d6574612d737570706c6965722e6865726f6b756170702e636f6d2f636f776c6f6e792f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005268747470733a2f2f636f776c6f6e792e6d7970696e6174612e636c6f75642f697066732f516d567033526a7478574d6d37556b7332646e664a645942316e5770783842634773324135664836537a5a6966590000000000000000000000000000

Deployed Bytecode

0x60806040526004361061038c5760003560e01c806389049a3a116101dc578063ca41b76a11610102578063e0825a92116100a0578063f2fde38b1161006f578063f2fde38b14610b74578063f48fc66014610b94578063ff1b655614610bcf578063ffe630b514610be457600080fd5b8063e0825a9214610b0a578063e8a3d48514610b1f578063e985e9c514610b34578063ee67171114610b5457600080fd5b8063d547741f116100dc578063d547741f14610a29578063d8258d9514610a49578063d8f6d59614610a5f578063dc100ec914610aea57600080fd5b8063ca41b76a146109c9578063d3760f49146109e9578063d52c57e014610a0957600080fd5b80639ef3914c1161017a578063b415965611610149578063b415965614610956578063b88d4fde14610969578063c87b56dd14610989578063ca15c873146109a957600080fd5b80639ef3914c146108e1578063a217fddf14610901578063a22cb46514610916578063ac4ab4811461093657600080fd5b8063902ddfff116101b6578063902ddfff1461087757806391d148541461088c578063938e3d7b146108ac57806395d89b41146108cc57600080fd5b806389049a3a1461077b5780638da5cb5b146108395780639010d07c1461085757600080fd5b806338af3eed116102c15780636352211e1161025f578063715018a61161022e578063715018a614610712578063773440e6146107275780637d36d4bf1461074157806385390a951461075b57600080fd5b80636352211e146106a857806363780c2c146106c85780636c0360eb146106dd57806370a08231146106f257600080fd5b806342966c681161029b57806342966c681461062857806344e797e91461064857806355f804b3146106685780635f3920bc1461068857600080fd5b806338af3eed146105af57806340b625c0146105d457806342842e0e1461060857600080fd5b80631b2996921161032e578063248a9ca311610308578063248a9ca31461052c5780632db115441461055c5780632f2ff15d1461056f57806336568abe1461058f57600080fd5b80631b299692146104cc5780631c31f710146104ec57806323b872dd1461050c57600080fd5b8063081812fc1161036a578063081812fc1461042a578063095ea7b3146104625780630d03c1da1461048457806318160ddd146104a957600080fd5b806301ffc9a714610391578063034f48af146103c657806306fdde0314610408575b600080fd5b34801561039d57600080fd5b506103b16103ac366004613be7565b610c04565b60405190151581526020015b60405180910390f35b3480156103d257600080fd5b506103e66103e1366004613b8a565b610c15565b60408051941515855260208501939093529183015260608201526080016103bd565b34801561041457600080fd5b5061041d610c87565b6040516103bd9190613ec3565b34801561043657600080fd5b5061044a610445366004613b8a565b610d19565b6040516001600160a01b0390911681526020016103bd565b34801561046e57600080fd5b5061048261047d366004613ad6565b610d5d565b005b34801561049057600080fd5b5060135461044a9061010090046001600160a01b031681565b3480156104b557600080fd5b50600154600054035b6040519081526020016103bd565b3480156104d857600080fd5b506104826104e73660046139a5565b610de4565b3480156104f857600080fd5b506104826105073660046139a5565b610e3f565b34801561051857600080fd5b506104826105273660046139f9565b610e91565b34801561053857600080fd5b506104be610547366004613b8a565b6000908152600b602052604090206001015490565b61048261056a366004613b8a565b610e9c565b34801561057b57600080fd5b5061048261058a366004613ba2565b610f1b565b34801561059b57600080fd5b506104826105aa366004613ba2565b610f40565b3480156105bb57600080fd5b5060185461044a9061010090046001600160a01b031681565b3480156105e057600080fd5b506104be7f7904e9328f622335e3d715af4f9d4b4147d279485bd5be001b80efa4da608a2981565b34801561061457600080fd5b506104826106233660046139f9565b610fbe565b34801561063457600080fd5b50610482610643366004613b8a565b610fd9565b34801561065457600080fd5b50610482610663366004613b8a565b610fe7565b34801561067457600080fd5b50610482610683366004613c6d565b61102f565b34801561069457600080fd5b506104826106a33660046139f9565b611065565b3480156106b457600080fd5b5061044a6106c3366004613b8a565b6110d5565b3480156106d457600080fd5b506104826110e7565b3480156106e957600080fd5b5061041d611234565b3480156106fe57600080fd5b506104be61070d3660046139a5565b6112c2565b34801561071e57600080fd5b50610482611310565b34801561073357600080fd5b506018546103b19060ff1681565b34801561074d57600080fd5b506013546103b19060ff1681565b34801561076757600080fd5b50610482610776366004613b01565b611346565b34801561078757600080fd5b506107ef610796366004613b8a565b60086020526000908152604090208054600182015460028301546003840154600490940154929391929091906001600160a01b0381169060ff600160a01b8204811691600160a81b8104821691600160b01b9091041688565b6040805198895260208901979097529587019490945260608601929092526001600160a01b03166080850152151560a0840152151560c0830152151560e0820152610100016103bd565b34801561084557600080fd5b50600a546001600160a01b031661044a565b34801561086357600080fd5b5061044a610872366004613bc6565b611397565b34801561088357600080fd5b506012546104be565b34801561089857600080fd5b506103b16108a7366004613ba2565b6113b6565b3480156108b857600080fd5b506104826108c7366004613c6d565b6113e1565b3480156108d857600080fd5b5061041d611417565b3480156108ed57600080fd5b506104826108fc366004613cfc565b611426565b34801561090d57600080fd5b506104be600081565b34801561092257600080fd5b50610482610931366004613aa2565b6114ad565b34801561094257600080fd5b50610482610951366004613b70565b611543565b610482610964366004613cac565b611580565b34801561097557600080fd5b50610482610984366004613a39565b611638565b34801561099557600080fd5b5061041d6109a4366004613b8a565b61167c565b3480156109b557600080fd5b506104be6109c4366004613b8a565b611700565b3480156109d557600080fd5b506104826109e4366004613b70565b611717565b3480156109f557600080fd5b50610482610a04366004613d36565b611754565b348015610a1557600080fd5b50610482610a24366004613ba2565b6117db565b348015610a3557600080fd5b50610482610a44366004613ba2565b611879565b348015610a5557600080fd5b506104be600e5481565b348015610a6b57600080fd5b50610a7f610a7a366004613b8a565b61189e565b6040516103bd9190815181526020808301519082015260408083015190820152606080830151908201526080808301516001600160a01b03169082015260a08083015115159082015260c08083015115159082015260e0918201511515918101919091526101000190565b348015610af657600080fd5b50610482610b05366004613b8a565b6119c4565b348015610b1657600080fd5b506104826119f3565b348015610b2b57600080fd5b5061041d611a29565b348015610b4057600080fd5b506103b1610b4f3660046139c1565b611a38565b348015610b6057600080fd5b50610482610b6f366004613b8a565b611b16565b348015610b8057600080fd5b50610482610b8f3660046139a5565b611c65565b348015610ba057600080fd5b506103b1610baf366004613c1f565b805160208183018101805160098252928201919093012091525460ff1681565b348015610bdb57600080fd5b5061041d611cfd565b348015610bf057600080fd5b50610482610bff366004613c6d565b611d0a565b6000610c0f82611ddb565b92915050565b6000818152601460205260408120548190819081908015610c415760019450610c3e8142613fd5565b93505b600086815260156020526040902054610c5a9085613f8a565b6000878152601660205260409020549093509150838211610c7b5783610c7d565b815b9150509193509193565b606060028054610c969061402f565b80601f0160208091040260200160405190810160405280929190818152602001828054610cc29061402f565b8015610d0f5780601f10610ce457610100808354040283529160200191610d0f565b820191906000526020600020905b815481529060010190602001808311610cf257829003601f168201915b5050505050905090565b6000610d2482611e00565b610d41576040516333d1c03960e21b815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b6000610d68826110d5565b9050806001600160a01b0316836001600160a01b03161415610d9d5760405163250fdee360e21b815260040160405180910390fd5b336001600160a01b03821614610dd457610db78133611a38565b610dd4576040516367d9dca160e11b815260040160405180910390fd5b610ddf838383611e2b565b505050565b600a546001600160a01b03163314610e175760405162461bcd60e51b8152600401610e0e90613f1e565b60405180910390fd5b601380546001600160a01b0390921661010002610100600160a81b0319909216919091179055565b600a546001600160a01b03163314610e695760405162461bcd60e51b8152600401610e0e90613f1e565b601880546001600160a01b0390921661010002610100600160a81b0319909216919091179055565b610ddf838383611e87565b6002600d541415610ebf5760405162461bcd60e51b8152600401610e0e90613f53565b6002600d55600e5481610ed56001546000540390565b610edf9190613f8a565b1115610efd5760405162461bcd60e51b8152600401610e0e90613ed6565b610f098160125461206d565b610f133382612080565b506001600d55565b6000828152600b6020526040902060010154610f368161209a565b610ddf83836120a4565b6001600160a01b0381163314610fb05760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b6064820152608401610e0e565b610fba82826120c6565b5050565b610ddf83838360405180602001604052806000815250611638565b610fe48160016120e8565b50565b600a546001600160a01b031633146110115760405162461bcd60e51b8152600401610e0e90613f1e565b6000908152600860205260409020600401805460ff60b01b19169055565b600a546001600160a01b031633146110595760405162461bcd60e51b8152600401610e0e90613f1e565b610ddf60108383613832565b3361106f826110d5565b6001600160a01b0316146110bb5760405162461bcd60e51b815260206004820152601360248201527231b7bbb637b73c9d1027b7363c9037bbb732b960691b6044820152606401610e0e565b60026017556110cb838383610fbe565b5050600160175550565b60006110e0826122a9565b5192915050565b600a546001600160a01b031633146111115760405162461bcd60e51b8152600401610e0e90613f1e565b60185461010090046001600160a01b031661116e5760405162461bcd60e51b815260206004820152601e60248201527f4e6f2062656e6566696369617279206164647265737320646566696e656400006044820152606401610e0e565b6018546040517f53656e64696e6720726576656e7565732066726f6d20636f776c6f6e79000000815260009161010090046001600160a01b0316904790601d0160006040518083038185875af1925050503d80600081146111eb576040519150601f19603f3d011682016040523d82523d6000602084013e6111f0565b606091505b5050905080610fe45760405162461bcd60e51b815260206004820152601060248201526f2a3930b739b332b9103330b4b632b21760811b6044820152606401610e0e565b601080546112419061402f565b80601f016020809104026020016040519081016040528092919081815260200182805461126d9061402f565b80156112ba5780601f1061128f576101008083540402835291602001916112ba565b820191906000526020600020905b81548152906001019060200180831161129d57829003601f168201915b505050505081565b60006001600160a01b0382166112eb576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b03166000908152600560205260409020546001600160401b031690565b600a546001600160a01b0316331461133a5760405162461bcd60e51b8152600401610e0e90613f1e565b61134460006123c3565b565b8060005b818110156113915761138184848381811061137557634e487b7160e01b600052603260045260246000fd5b90506020020135612415565b61138a8161406a565b905061134a565b50505050565b6000828152600c602052604081206113af90836125ca565b9392505050565b6000918252600b602090815260408084206001600160a01b0393909316845291905290205460ff1690565b600a546001600160a01b0316331461140b5760405162461bcd60e51b8152600401610e0e90613f1e565b610ddf60118383613832565b606060038054610c969061402f565b600a546001600160a01b031633146114505760405162461bcd60e51b8152600401610e0e90613f1e565b6114a68560405180610100016040528087815260200186815260200185815260200184815260200160006001600160a01b03168152602001600115158152602001600015158152602001600115158152506125d6565b5050505050565b6001600160a01b0382163314156114d75760405163b06307db60e01b815260040160405180910390fd5b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b600a546001600160a01b0316331461156d5760405162461bcd60e51b8152600401610e0e90613f1e565b6018805460ff1916911515919091179055565b6002600d5414156115a35760405162461bcd60e51b8152600401610e0e90613f53565b6002600d55600e54846115b96001546000540390565b6115c39190613f8a565b11156115e15760405162461bcd60e51b8152600401610e0e90613ed6565b6116238484848080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250869250612678915050565b61162d3385612080565b50506001600d555050565b611643848484611e87565b6001600160a01b0383163b156113915761165f84848484612695565b611391576040516368d2bf6b60e11b815260040160405180910390fd5b606061168782611e00565b6116a457604051630a14c4b560e41b815260040160405180910390fd5b60006116ae61278d565b90508051600014156116cf57604051806020016040528060008152506113af565b806116d98461279c565b6040516020016116ea929190613de2565b6040516020818303038152906040529392505050565b6000818152600c60205260408120610c0f906128b5565b600a546001600160a01b031633146117415760405162461bcd60e51b8152600401610e0e90613f1e565b6013805460ff1916911515919091179055565b600a546001600160a01b0316331461177e5760405162461bcd60e51b8152600401610e0e90613f1e565b6117d287604051806101000160405280898152602001888152602001878152602001868152602001856001600160a01b031681526020016000151581526020018415158152602001600115158152506125d6565b50505050505050565b600a546001600160a01b031633146118055760405162461bcd60e51b8152600401610e0e90613f1e565b6002600d5414156118285760405162461bcd60e51b8152600401610e0e90613f53565b6002600d55600e548261183e6001546000540390565b6118489190613f8a565b11156118665760405162461bcd60e51b8152600401610e0e90613ed6565b6118708183612080565b50506001600d55565b6000828152600b60205260409020600101546118948161209a565b610ddf83836120c6565b6040805161010081018252600080825260208201819052918101829052606081018290526080810182905260a0810182905260c0810182905260e0810191909152600082815260086020526040902060040154600160b01b900460ff166119385760405162461bcd60e51b815260206004820152600e60248201526d1a5b9d985b1a59081cd85b19525960921b6044820152606401610e0e565b5060009081526008602090815260409182902082516101008101845281548152600182015492810192909252600281015492820192909252600382015460608201526004909101546001600160a01b038116608083015260ff600160a01b82048116151560a0840152600160a81b82048116151560c0840152600160b01b90910416151560e082015290565b600a546001600160a01b031633146119ee5760405162461bcd60e51b8152600401610e0e90613f1e565b601255565b600a546001600160a01b03163314611a1d5760405162461bcd60e51b8152600401610e0e90613f1e565b60015460005403600e55565b606060118054610c969061402f565b60135460009060ff1615611ae85760135460405163c455279160e01b81526001600160a01b038581166004830152610100909204821691841690829063c45527919060240160206040518083038186803b158015611a9557600080fd5b505afa158015611aa9573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611acd9190613c51565b6001600160a01b03161415611ae6576001915050610c0f565b505b6001600160a01b0380841660009081526007602090815260408083209386168352929052205460ff166113af565b7f7904e9328f622335e3d715af4f9d4b4147d279485bd5be001b80efa4da608a29611b408161209a565b600082815260146020526040902054611b925760405162461bcd60e51b8152602060048201526014602482015273636f776c6f6e793a206e6f74206772617a696e6760601b6044820152606401610e0e565b600082815260146020526040812054611bab9042613fd5565b905080601560008581526020019081526020016000206000828254611bd09190613f8a565b909155505060008381526014602090815260408083208390556016909152902054811115611c0a5760008381526016602052604090208190555b60405183907f4bb23eeff28866af27e09ed0a28ff1645c7ff3f3ba944dde2a12c495e245b3de90600090a260405183907f3ebee94e74ea24f711b5876dca724062e18b7b37b6883e686a92f093248a4fcf90600090a2505050565b600a546001600160a01b03163314611c8f5760405162461bcd60e51b8152600401610e0e90613f1e565b6001600160a01b038116611cf45760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610e0e565b610fe4816123c3565b600f80546112419061402f565b600a546001600160a01b03163314611d345760405162461bcd60e51b8152600401610e0e90613f1e565b610ddf600f8383613832565b611d4a82826113b6565b610fba576000828152600b602090815260408083206001600160a01b03851684529091529020805460ff19166001179055611d823390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b60006113af836001600160a01b0384166128bf565b60006001600160e01b03198216635a05180f60e01b1480610c0f5750610c0f8261290e565b6000805482108015610c0f575050600090815260046020526040902054600160e01b900460ff161590565b60008281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6000611e92826122a9565b9050836001600160a01b031681600001516001600160a01b031614611ec95760405162a1148160e81b815260040160405180910390fd5b6000336001600160a01b0386161480611ee75750611ee78533611a38565b80611f02575033611ef784610d19565b6001600160a01b0316145b905080611f2257604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b038416611f4957604051633a954ecd60e21b815260040160405180910390fd5b611f568585856001612933565b611f6260008487611e2b565b6001600160a01b038581166000908152600560209081526040808320805467ffffffffffffffff198082166001600160401b0392831660001901831617909255898616808652838620805493841693831660019081018416949094179055898652600490945282852080546001600160e01b031916909417600160a01b4290921691909102178355870180845292208054919390911661203657600054821461203657805460208601516001600160401b0316600160a01b026001600160e01b03199091166001600160a01b038a16171781555b50505082846001600160a01b0316866001600160a01b031660008051602061410783398151915260405160405180910390a46114a6565b612076816129bf565b610fba8282612b38565b610fba828260405180602001604052806000815250612c34565b610fe48133612de1565b6120ae8282611d40565b6000828152600c60205260409020610ddf9082611dc6565b6120d08282612e45565b6000828152600c60205260409020610ddf9082612eac565b60006120f3836122a9565b80519091508215612159576000336001600160a01b038316148061211c575061211c8233611a38565b8061213757503361212c86610d19565b6001600160a01b0316145b90508061215757604051632ce44b5f60e11b815260040160405180910390fd5b505b612167816000866001612933565b61217360008583611e2b565b6001600160a01b0380821660008181526005602090815260408083208054600160801b6000196001600160401b0380841691909101811667ffffffffffffffff198416811783900482166001908101831690930277ffffffffffffffff0000000000000000ffffffffffffffff19909416179290921783558b86526004909452828520805460ff60e01b1942909316600160a01b026001600160e01b03199091169097179690961716600160e01b17855591890180845292208054919490911661227157600054821461227157805460208701516001600160401b0316600160a01b026001600160e01b03199091166001600160a01b038716171781555b5050604051869250600091506001600160a01b03841690600080516020614107833981519152908390a4505060018054810190555050565b6040805160608101825260008082526020820181905291810191909152816000548110156123aa57600081815260046020908152604091829020825160608101845290546001600160a01b0381168252600160a01b81046001600160401b031692820192909252600160e01b90910460ff161515918101829052906123a85780516001600160a01b03161561233f579392505050565b5060001901600081815260046020908152604091829020825160608101845290546001600160a01b038116808352600160a01b82046001600160401b031693830193909352600160e01b900460ff16151592810192909252156123a3579392505050565b61233f565b505b604051636f96cda160e11b815260040160405180910390fd5b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b8033612420826122a9565b516001600160a01b0316148061244657503361243b82610d19565b6001600160a01b0316145b61248b5760405162461bcd60e51b81526020600482015260166024820152752737ba1030b8383937bb32b2103737b91037bbb732b960511b6044820152606401610e0e565b6000828152601460205260409020548061252e5760185460ff166124f15760405162461bcd60e51b815260206004820152601c60248201527f636f776c6f6e793a206772617a696e6720756e617661696c61626c65000000006044820152606401610e0e565b6000838152601460205260408082204290555184917f55dc594553c08cd756fbb798b1c48b72acc1602a91a1aafd0d22d31adfd741fe91a2505050565b600061253a8242613fd5565b90508060156000868152602001908152602001600020600082825461255f9190613f8a565b9091555050600084815260146020908152604080832083905560169091529020548111156125995760008481526016602052604090208190555b60405184907f4bb23eeff28866af27e09ed0a28ff1645c7ff3f3ba944dde2a12c495e245b3de90600090a250505050565b60006113af8383612ec1565b600091825260086020908152604092839020825181559082015160018201559181015160028301556060810151600383015560808101516004909201805460a083015160c084015160e0909401511515600160b01b0260ff60b01b19941515600160a81b029490941661ffff60a81b19911515600160a01b026001600160a81b03199093166001600160a01b0390961695909517919091171692909217179055565b612681816129bf565b61268b8282612ef9565b610ddf8382612b38565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a02906126ca903390899088908890600401613e86565b602060405180830381600087803b1580156126e457600080fd5b505af1925050508015612714575060408051601f3d908101601f1916820190925261271191810190613c03565b60015b61276f573d808015612742576040519150601f19603f3d011682016040523d82523d6000602084013e612747565b606091505b508051612767576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490505b949350505050565b606060108054610c969061402f565b6060816127c05750506040805180820190915260018152600360fc1b602082015290565b8160005b81156127ea57806127d48161406a565b91506127e39050600a83613fa2565b91506127c4565b6000816001600160401b0381111561281257634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f19166020018201604052801561283c576020820181803683370190505b5090505b841561278557612851600183613fd5565b915061285e600a86614085565b612869906030613f8a565b60f81b81838151811061288c57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a9053506128ae600a86613fa2565b9450612840565b6000610c0f825490565b600081815260018301602052604081205461290657508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155610c0f565b506000610c0f565b60006001600160e01b03198216637965db0b60e01b1480610c0f5750610c0f826130a4565b8160006129408383613f8a565b90505b808210156129b757600082815260146020526040902054158061296857506017546002145b6129a75760405162461bcd60e51b815260206004820152601060248201526f636f776c6f6e793a206772617a696e6760801b6044820152606401610e0e565b6129b08261406a565b9150612943565b505050505050565b60008181526008602090815260409182902082516101008101845281548152600182015492810192909252600281015492820192909252600382015460608201526004909101546001600160a01b038116608083015260ff600160a01b82048116151560a0840152600160a81b82048116151560c0840152600160b01b90910416151560e08201819052612a865760405162461bcd60e51b815260206004820152600e60248201526d1a5b9d985b1a59081cd85b19525960921b6044820152606401610e0e565b805115801590612a965750805142115b612ae25760405162461bcd60e51b815260206004820152601d60248201527f73616c6520686173206e6f74206265656e2073746172746564207965740000006044820152606401610e0e565b60208101511580612af65750806020015142105b610fba5760405162461bcd60e51b81526020600482015260136024820152721cd85b19481a185cc81899595b88195b991959606a1b6044820152606401610e0e565b600081815260086020526040902060030154821115612bad5760405162461bcd60e51b815260206004820152602b60248201527f73616c65206c696d697420697320657863656564656420666f7220746869732060448201526a3a3930b739b0b1ba34b7b760a91b6064820152608401610e0e565b6000818152600860205260409020600201543490612bcb9084613fb6565b1115610fba5760405162461bcd60e51b815260206004820152603260248201527f6e6f7420656e6f7567682076616c7565207761732073656e7420746f20636f6d604482015271706c6574652074686520707572636861736560701b6064820152608401610e0e565b6000546001600160a01b038416612c5d57604051622e076360e81b815260040160405180910390fd5b82612c7b5760405163b562e8dd60e01b815260040160405180910390fd5b612c886000858386612933565b6001600160a01b038416600081815260056020908152604080832080546fffffffffffffffffffffffffffffffff1981166001600160401b038083168b0181169182176801000000000000000067ffffffffffffffff1990941690921783900481168b01811690920217909155858452600490925290912080546001600160e01b0319168317600160a01b42909316929092029190911790558190818501903b15612d9e575b60405182906001600160a01b03881690600090600080516020614107833981519152908290a4612d676000878480600101955087612695565b612d84576040516368d2bf6b60e11b815260040160405180910390fd5b808210612d2e578260005414612d9957600080fd5b612dd1565b5b6040516001830192906001600160a01b03881690600090600080516020614107833981519152908290a4808210612d9f575b5060009081556113919085838684565b612deb82826113b6565b610fba57612e03816001600160a01b031660146130f4565b612e0e8360206130f4565b604051602001612e1f929190613e11565b60408051601f198184030181529082905262461bcd60e51b8252610e0e91600401613ec3565b612e4f82826113b6565b15610fba576000828152600b602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b60006113af836001600160a01b0384166132d5565b6000826000018281548110612ee657634e487b7160e01b600052603260045260246000fd5b9060005260206000200154905092915050565b60008181526008602090815260409182902082516101008101845281548152600182015492810192909252600281015492820192909252600382015460608201526004909101546001600160a01b038116608083015260ff600160a01b82048116151560a08401819052600160a81b83048216151560c0850152600160b01b90920416151560e083015280612fc35750600983604051612f999190613dc6565b9081526040519081900360200190205460ff16158015612fc35750612fc3816080015133856133f2565b61304c5760405162461bcd60e51b815260206004820152604e60248201527f6164647265737320776974682074686973206b6579206973206e6f7420656c6960448201527f6769626c6520746f206d696e74206f722073616c654b6579206861732062656560648201526d1b88185b1c9958591e481d5cd95960921b608482015260a401610e0e565b600082815260086020526040902060040154600160a81b900460ff1615610ddf57600160098460405161307f9190613dc6565b908152604051908190036020019020805491151560ff19909216919091179055505050565b60006001600160e01b031982166380ac58cd60e01b14806130d557506001600160e01b03198216635b5e139f60e01b145b80610c0f57506301ffc9a760e01b6001600160e01b0319831614610c0f565b60606000613103836002613fb6565b61310e906002613f8a565b6001600160401b0381111561313357634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f19166020018201604052801561315d576020820181803683370190505b509050600360fc1b8160008151811061318657634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350600f60fb1b816001815181106131c357634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a90535060006131e7846002613fb6565b6131f2906001613f8a565b90505b6001811115613286576f181899199a1a9b1b9c1cb0b131b232b360811b85600f166010811061323457634e487b7160e01b600052603260045260246000fd5b1a60f81b82828151811061325857634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a90535060049490941c9361327f81614018565b90506131f5565b5083156113af5760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610e0e565b600081815260018301602052604081205480156133e85760006132f9600183613fd5565b855490915060009061330d90600190613fd5565b905081811461338e57600086600001828154811061333b57634e487b7160e01b600052603260045260246000fd5b906000526020600020015490508087600001848154811061336c57634e487b7160e01b600052603260045260246000fd5b6000918252602080832090910192909255918252600188019052604090208390555b85548690806133ad57634e487b7160e01b600052603160045260246000fd5b600190038181906000526020600020016000905590558560010160008681526020019081526020016000206000905560019350505050610c0f565b6000915050610c0f565b6040517f19457468657265756d205369676e6564204d6573736167653a0a33320000000060208201526001600160a01b038316603c82015260009061345a908390605c016040516020818303038152906040528051906020012061347790919063ffffffff16565b6001600160a01b0316846001600160a01b03161490509392505050565b6000806000613486858561349b565b915091506134938161350b565b509392505050565b6000808251604114156134d25760208301516040840151606085015160001a6134c68782858561370c565b94509450505050613504565b8251604014156134fc57602083015160408401516134f18683836137f9565b935093505050613504565b506000905060025b9250929050565b600081600481111561352d57634e487b7160e01b600052602160045260246000fd5b14156135365750565b600181600481111561355857634e487b7160e01b600052602160045260246000fd5b14156135a65760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610e0e565b60028160048111156135c857634e487b7160e01b600052602160045260246000fd5b14156136165760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610e0e565b600381600481111561363857634e487b7160e01b600052602160045260246000fd5b14156136915760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b6064820152608401610e0e565b60048160048111156136b357634e487b7160e01b600052602160045260246000fd5b1415610fe45760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b6064820152608401610e0e565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a083111561374357506000905060036137f0565b8460ff16601b1415801561375b57508460ff16601c14155b1561376c57506000905060046137f0565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa1580156137c0573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381166137e9576000600192509250506137f0565b9150600090505b94509492505050565b6000806001600160ff1b0383168161381660ff86901c601b613f8a565b90506138248782888561370c565b935093505050935093915050565b82805461383e9061402f565b90600052602060002090601f01602090048101928261386057600085556138a6565b82601f106138795782800160ff198235161785556138a6565b828001600101855582156138a6579182015b828111156138a657823582559160200191906001019061388b565b506138b29291506138b6565b5090565b5b808211156138b257600081556001016138b7565b803580151581146138db57600080fd5b919050565b60008083601f8401126138f1578182fd5b5081356001600160401b03811115613907578182fd5b60208301915083602082850101111561350457600080fd5b600082601f83011261392f578081fd5b81356001600160401b0380821115613949576139496140c5565b604051601f8301601f19908116603f01168101908282118183101715613971576139716140c5565b81604052838152866020858801011115613989578485fd5b8360208701602083013792830160200193909352509392505050565b6000602082840312156139b6578081fd5b81356113af816140db565b600080604083850312156139d3578081fd5b82356139de816140db565b915060208301356139ee816140db565b809150509250929050565b600080600060608486031215613a0d578081fd5b8335613a18816140db565b92506020840135613a28816140db565b929592945050506040919091013590565b60008060008060808587031215613a4e578081fd5b8435613a59816140db565b93506020850135613a69816140db565b92506040850135915060608501356001600160401b03811115613a8a578182fd5b613a968782880161391f565b91505092959194509250565b60008060408385031215613ab4578182fd5b8235613abf816140db565b9150613acd602084016138cb565b90509250929050565b60008060408385031215613ae8578182fd5b8235613af3816140db565b946020939093013593505050565b60008060208385031215613b13578182fd5b82356001600160401b0380821115613b29578384fd5b818501915085601f830112613b3c578384fd5b813581811115613b4a578485fd5b8660208260051b8501011115613b5e578485fd5b60209290920196919550909350505050565b600060208284031215613b81578081fd5b6113af826138cb565b600060208284031215613b9b578081fd5b5035919050565b60008060408385031215613bb4578182fd5b8235915060208301356139ee816140db565b60008060408385031215613bd8578182fd5b50508035926020909101359150565b600060208284031215613bf8578081fd5b81356113af816140f0565b600060208284031215613c14578081fd5b81516113af816140f0565b600060208284031215613c30578081fd5b81356001600160401b03811115613c45578182fd5b6127858482850161391f565b600060208284031215613c62578081fd5b81516113af816140db565b60008060208385031215613c7f578182fd5b82356001600160401b03811115613c94578283fd5b613ca0858286016138e0565b90969095509350505050565b60008060008060608587031215613cc1578182fd5b8435935060208501356001600160401b03811115613cdd578283fd5b613ce9878288016138e0565b9598909750949560400135949350505050565b600080600080600060a08688031215613d13578283fd5b505083359560208501359550604085013594606081013594506080013592509050565b600080600080600080600060e0888a031215613d50578485fd5b873596506020880135955060408801359450606088013593506080880135925060a0880135613d7e816140db565b9150613d8c60c089016138cb565b905092959891949750929550565b60008151808452613db2816020860160208601613fec565b601f01601f19169290920160200192915050565b60008251613dd8818460208701613fec565b9190910192915050565b60008351613df4818460208801613fec565b835190830190613e08818360208801613fec565b01949350505050565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000815260008351613e49816017850160208801613fec565b7001034b99036b4b9b9b4b733903937b6329607d1b6017918401918201528351613e7a816028840160208801613fec565b01602801949350505050565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090613eb990830184613d9a565b9695505050505050565b6020815260006113af6020830184613d9a565b60208082526028908201527f707572636861736520776f756c6420657863656564206d617820737570706c79604082015267206f6620436f777360c01b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b60008219821115613f9d57613f9d614099565b500190565b600082613fb157613fb16140af565b500490565b6000816000190483118215151615613fd057613fd0614099565b500290565b600082821015613fe757613fe7614099565b500390565b60005b83811015614007578181015183820152602001613fef565b838111156113915750506000910152565b60008161402757614027614099565b506000190190565b600181811c9082168061404357607f821691505b6020821081141561406457634e487b7160e01b600052602260045260246000fd5b50919050565b600060001982141561407e5761407e614099565b5060010190565b600082614094576140946140af565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b0381168114610fe457600080fd5b6001600160e01b031981168114610fe457600080fdfeddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa264697066735822122040b949fbcfbc9217ccc5055d561a099dc3777f31e2f0fddbc69a0f1fd4f9114464736f6c63430008040033

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

00000000000000000000000000000000000000000000000000000000000000e00000000000000000000000000000000000000000000000000000000000000120000000000000000000000000000000000000000000000000000000000000016000000000000000000000000000000000000000000000000000000000000001c0000000000000000000000000000000000000000000000000000000000000022000000000000000000000000000000000000000000000000000000000000000020000000000000000000000007159ebe5f711d1a131283cf6aeff8ca1fd6e80040000000000000000000000000000000000000000000000000000000000000007636f776c6f6e79000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000007434f574c4f4e5900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004038306439333630613930643762636664656361626533666662653437323536626630663139376261326633376461653039326638326166653064636634323831000000000000000000000000000000000000000000000000000000000000003068747470733a2f2f6e66742d6d6574612d737570706c6965722e6865726f6b756170702e636f6d2f636f776c6f6e792f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005268747470733a2f2f636f776c6f6e792e6d7970696e6174612e636c6f75642f697066732f516d567033526a7478574d6d37556b7332646e664a645942316e5770783842634773324135664836537a5a6966590000000000000000000000000000

-----Decoded View---------------
Arg [0] : name (string): cowlony
Arg [1] : symbol (string): COWLONY
Arg [2] : provenance (string): 80d9360a90d7bcfdecabe3ffbe47256bf0f197ba2f37dae092f82afe0dcf4281
Arg [3] : initBaseURI (string): https://nft-meta-supplier.herokuapp.com/cowlony/
Arg [4] : initContractURI (string): https://cowlony.mypinata.cloud/ipfs/QmVp3RjtxWMm7Uks2dnfJdYB1nWpx8BcGs2A5fH6SzZifY
Arg [5] : _defaultPublicSaleId (uint256): 2
Arg [6] : _beneficiary (address): 0x7159EbE5F711D1A131283cF6AeFF8Ca1fD6E8004

-----Encoded View---------------
21 Constructor Arguments found :
Arg [0] : 00000000000000000000000000000000000000000000000000000000000000e0
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000120
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000160
Arg [3] : 00000000000000000000000000000000000000000000000000000000000001c0
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000220
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000002
Arg [6] : 0000000000000000000000007159ebe5f711d1a131283cf6aeff8ca1fd6e8004
Arg [7] : 0000000000000000000000000000000000000000000000000000000000000007
Arg [8] : 636f776c6f6e7900000000000000000000000000000000000000000000000000
Arg [9] : 0000000000000000000000000000000000000000000000000000000000000007
Arg [10] : 434f574c4f4e5900000000000000000000000000000000000000000000000000
Arg [11] : 0000000000000000000000000000000000000000000000000000000000000040
Arg [12] : 3830643933363061393064376263666465636162653366666265343732353662
Arg [13] : 6630663139376261326633376461653039326638326166653064636634323831
Arg [14] : 0000000000000000000000000000000000000000000000000000000000000030
Arg [15] : 68747470733a2f2f6e66742d6d6574612d737570706c6965722e6865726f6b75
Arg [16] : 6170702e636f6d2f636f776c6f6e792f00000000000000000000000000000000
Arg [17] : 0000000000000000000000000000000000000000000000000000000000000052
Arg [18] : 68747470733a2f2f636f776c6f6e792e6d7970696e6174612e636c6f75642f69
Arg [19] : 7066732f516d567033526a7478574d6d37556b7332646e664a645942316e5770
Arg [20] : 783842634773324135664836537a5a6966590000000000000000000000000000


Loading...
Loading
Loading...
Loading
[ Download: CSV Export  ]
[ Download: CSV Export  ]

A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.