ETH Price: $3,105.87 (+0.07%)

Token

Average Punks (AVGP)
 

Overview

Max Total Supply

4,201 AVGP

Holders

841

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Filtered by Token Holder
azima.eth
Balance
2 AVGP
0x9d156bc7c8768294510A4A41883d5A4EB15b15E3
Loading...
Loading
Loading...
Loading
Loading...
Loading

OVERVIEW

Average Punks are 6,666 randomly generated 3D Characters punking around the Ethereum blockchain as ERC-721 tokens and hosted on IPFS. Public Mint is closed with over 2000 AVPs having come to life. The remaining 4300 AVPs can only come to life by using $PZA token earned via h...

# Exchange Pair Price  24H Volume % Volume

Similar Match Source Code
This contract matches the deployed Bytecode of the Source Code for Contract 0x93fA6633...A3702E843
The constructor portion of the code might be different and could alter the actual behaviour of the contract

Contract Name:
AveragePunks

Compiler Version
v0.8.4+commit.c7e474f2

Optimization Enabled:
Yes with 200 runs

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

import './ERC721EnumerableB.sol';
import "@openzeppelin/contracts/utils/Strings.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/finance/PaymentSplitter.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";

contract AveragePunks is ERC721EnumerableB, Ownable, PaymentSplitter, ReentrancyGuard {
  using Strings for uint;

  enum preSaleClaimStatus { Invalid, Unclaimed, Claimed }

  string private _baseTokenURI = '';
  string private _tokenURISuffix = '';
  string public PROVENANCE;

  uint public constant MAX_SUPPLY = 6667;
  uint public constant PRICE = 0.085 ether;
  uint public preSalePrice = 0.069 ether;
  uint public maxOrder = 3;

  bool public isPreSaleActive = false;
  bool public isActive = false;
  bool public locked = false;

  mapping (address => preSaleClaimStatus) private _preSaleClaims;
  mapping (address => uint) private _preSaleTokens;

  constructor(string memory provenance, address[] memory _payees, uint256[] memory _shares)
    ERC721B("Average Punks", "AVGP")
    PaymentSplitter(_payees, _shares) {
    PROVENANCE = provenance;
    _owners.push(address(0));
  }

  function mint(uint numberOfTokens) external payable nonReentrant() {
    require(isActive, "Sale must be active" );
    require(numberOfTokens <= maxOrder, "Check the max tokens per transaction" );
    require(msg.value >= PRICE * numberOfTokens, "Incorrect eth amount" );

    uint256 supply = totalSupply();
    require(supply + numberOfTokens <= MAX_SUPPLY, "Max supply reached" );

    for(uint i = 0; i < numberOfTokens; ++i) {
      _safeMint(msg.sender, supply++);
    }
  }

  function mintPreSale(uint numberOfTokens) external payable nonReentrant() {
    require(isPreSaleActive, "Pre sale must be active");
    require(_preSaleClaims[msg.sender] != preSaleClaimStatus.Claimed, "Already Claimed");
    require(_preSaleClaims[msg.sender] == preSaleClaimStatus.Unclaimed, "Not on the list");
    require(numberOfTokens <= maxOrder, "Check the max tokens per transaction");
    require(msg.value >= preSalePrice * numberOfTokens, "Incorrect eth amount");
    require(_preSaleTokens[msg.sender] + numberOfTokens <= maxOrder, "Check max presale amount");

     uint256 supply = totalSupply();
     require(supply + numberOfTokens <= MAX_SUPPLY, "Max supply reached" );

    _preSaleTokens[msg.sender] += numberOfTokens;
    if(_preSaleTokens[msg.sender] == maxOrder) {
      _preSaleClaims[msg.sender] = preSaleClaimStatus.Claimed;
    }

    for(uint i = 0; i < numberOfTokens; ++i) {
      _safeMint(msg.sender, supply++);
    }
  }

  function airdrop(uint[] calldata quantity, address[] calldata recipient) external onlyOwner {
    require(quantity.length == recipient.length, "Quantity length is not equal to recipients");

    uint totalQuantity = 0;
    for(uint i = 0; i < quantity.length; ++i) {
      totalQuantity += quantity[i];
    }

    uint256 supply = totalSupply();
    require(supply + totalQuantity <= MAX_SUPPLY, "Max supply reached");

    delete totalQuantity;

    for(uint i = 0; i < recipient.length; ++i) {
      for(uint j = 0; j < quantity[i]; ++j) {
        _safeMint(recipient[i], supply++);
      }
    }
  }

  function togglePublicSale() external onlyOwner {
    isPreSaleActive = false;
    isActive = !isActive;
  }

  function togglePreSale() external onlyOwner {
    isPreSaleActive = !isPreSaleActive;
  }

  function setMaxOrder(uint _maxOrder) external onlyOwner {
    maxOrder = _maxOrder;
  }

  function setPreSalePrice(uint _price) external onlyOwner {
    preSalePrice = _price;
  }

  function setProvenance(string calldata provenance) public onlyOwner {
    require(!locked, "Locked");
    PROVENANCE = provenance;
  }

  function lock() public onlyOwner {
    locked = true;
  }

  function setBaseURI(string calldata _newBaseURI, string calldata _newSuffix) external onlyOwner {
    _baseTokenURI = _newBaseURI;
    _tokenURISuffix = _newSuffix;
  }

  function addToList(address[] memory members) external onlyOwner {
    for (uint256 i = 0; i < members.length; ++i) {
      _preSaleClaims[members[i]] = preSaleClaimStatus.Unclaimed;
    }
  }

  function tokenURI(uint tokenId) external view virtual override returns (string memory) {
    require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token");
    return bytes(_baseTokenURI).length > 0 ?
      string(abi.encodePacked(_baseTokenURI, tokenId.toString(), _tokenURISuffix)) :
      'ipfs://QmS82n1AXodv4BEAHhDBC9RKgnW8Gkmnj9ZGykFixtAJsU';
  }
}

File 2 of 16 : Ownable.sol
// SPDX-License-Identifier: MIT

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() {
        _setOwner(_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 {
        _setOwner(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");
        _setOwner(newOwner);
    }

    function _setOwner(address newOwner) private {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

File 3 of 16 : PaymentSplitter.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../utils/Address.sol";
import "../utils/Context.sol";
import "../utils/math/SafeMath.sol";

/**
 * @title PaymentSplitter
 * @dev This contract allows to split Ether payments among a group of accounts. The sender does not need to be aware
 * that the Ether will be split in this way, since it is handled transparently by the contract.
 *
 * The split can be in equal parts or in any other arbitrary proportion. The way this is specified is by assigning each
 * account to a number of shares. Of all the Ether that this contract receives, each account will then be able to claim
 * an amount proportional to the percentage of total shares they were assigned.
 *
 * `PaymentSplitter` follows a _pull payment_ model. This means that payments are not automatically forwarded to the
 * accounts but kept in this contract, and the actual transfer is triggered as a separate step by calling the {release}
 * function.
 */
contract PaymentSplitter is Context {
    event PayeeAdded(address account, uint256 shares);
    event PaymentReleased(address to, uint256 amount);
    event PaymentReceived(address from, uint256 amount);

    uint256 private _totalShares;
    uint256 private _totalReleased;

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

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

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

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

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

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

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

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

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

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

        uint256 totalReceived = address(this).balance + _totalReleased;
        uint256 payment = (totalReceived * _shares[account]) / _totalShares - _released[account];

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

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

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

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

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

File 4 of 16 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT

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 make 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 16 : IERC721.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

File 6 of 16 : IERC721Receiver.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

File 7 of 16 : IERC721Enumerable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../IERC721.sol";

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

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

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

File 8 of 16 : IERC721Metadata.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../IERC721.sol";

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

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

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

File 9 of 16 : Address.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

File 10 of 16 : Context.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

File 11 of 16 : Strings.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

File 12 of 16 : ERC165.sol
// SPDX-License-Identifier: MIT

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 13 of 16 : IERC165.sol
// SPDX-License-Identifier: MIT

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 14 of 16 : SafeMath.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

// CAUTION
// This version of SafeMath should only be used with Solidity 0.8 or later,
// because it relies on the compiler's built in overflow checks.

/**
 * @dev Wrappers over Solidity's arithmetic operations.
 *
 * NOTE: `SafeMath` is no longer needed starting with Solidity 0.8. The compiler
 * now has built in overflow checking.
 */
library SafeMath {
    /**
     * @dev Returns the addition of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            uint256 c = a + b;
            if (c < a) return (false, 0);
            return (true, c);
        }
    }

    /**
     * @dev Returns the substraction of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b > a) return (false, 0);
            return (true, a - b);
        }
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            // Gas optimization: this is cheaper than requiring 'a' not being zero, but the
            // benefit is lost if 'b' is also tested.
            // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
            if (a == 0) return (true, 0);
            uint256 c = a * b;
            if (c / a != b) return (false, 0);
            return (true, c);
        }
    }

    /**
     * @dev Returns the division of two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a / b);
        }
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a % b);
        }
    }

    /**
     * @dev Returns the addition of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `+` operator.
     *
     * Requirements:
     *
     * - Addition cannot overflow.
     */
    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        return a + b;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b) internal pure returns (uint256) {
        return a - b;
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `*` operator.
     *
     * Requirements:
     *
     * - Multiplication cannot overflow.
     */
    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        return a * b;
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator.
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        return a / b;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting when dividing by zero.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b) internal pure returns (uint256) {
        return a % b;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {trySub}.
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b <= a, errorMessage);
            return a - b;
        }
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting with custom message on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b > 0, errorMessage);
            return a / b;
        }
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting with custom message when dividing by zero.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {tryMod}.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b > 0, errorMessage);
            return a % b;
        }
    }
}

File 15 of 16 : ERC721B.sol
// SPDX-License-Identifier: BSD-3-Clause

pragma solidity ^0.8.0;

/********************
* @author: Squeebo *
********************/

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

abstract contract ERC721B is Context, ERC165, IERC721, IERC721Metadata {
    using Address for address;

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

    // Mapping from token ID to owner address
    address[] internal _owners;

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

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

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

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

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

        uint count = 0;
        for( uint i = 0; i < _owners.length; i++ ){
          if( owner == _owners[i] ){
            count++;
          }
        }

        return count;
    }

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

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

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

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

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

        _approve(to, tokenId);
    }

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

        return _tokenApprovals[tokenId];
    }

    /**
     * @dev See {IERC721-setApprovalForAll}.
     */
    function setApprovalForAll(address operator, bool approved) public virtual override {
        require(operator != _msgSender(), "ERC721: approve to caller");

        _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 {
        //solhint-disable-next-line max-line-length
        require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved");

        _transfer(from, to, tokenId);
    }

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

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

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients
     * are aware of the ERC721 protocol to prevent tokens from being forever locked.
     *
     * `_data` is additional data, it has no specified format and it is sent in call to `to`.
     *
     * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g.
     * implement alternative mechanisms to perform token transfer, such as signature-based.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function _safeTransfer(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) internal virtual {
        _transfer(from, to, tokenId);
        require(_checkOnERC721Received(from, to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer");
    }

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

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

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


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

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

        _beforeTokenTransfer(address(0), to, tokenId);
        _owners.push(to);

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

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

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

        // Clear approvals
        _approve(address(0), tokenId);
        _owners[tokenId] = address(0);

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

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

        _beforeTokenTransfer(from, to, tokenId);

        // Clear approvals from the previous owner
        _approve(address(0), tokenId);
        _owners[tokenId] = to;

        emit Transfer(from, to, tokenId);
    }

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


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

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

File 16 of 16 : ERC721EnumerableB.sol
// SPDX-License-Identifier: BSD-3-Clause

pragma solidity ^0.8.0;

import "./ERC721B.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Enumerable.sol";

/**
 * @dev This implements an optional extension of {ERC721} defined in the EIP that adds
 * enumerability of all the token ids in the contract as well as all token ids owned by each
 * account.
 */
abstract contract ERC721EnumerableB is ERC721B, IERC721Enumerable {
    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC721B) returns (bool) {
        return interfaceId == type(IERC721Enumerable).interfaceId || super.supportsInterface(interfaceId);
    }

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

        uint count;
        for( uint i; i < _owners.length; ++i ){
            if( owner == _owners[i] ){
                if( count == index )
                    return i;
                else
                    ++count;
            }
        }

        require(false, "ERC721Enumerable: owner index out of bounds");
    }

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

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

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"provenance","type":"string"},{"internalType":"address[]","name":"_payees","type":"address[]"},{"internalType":"uint256[]","name":"_shares","type":"uint256[]"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"uint256","name":"shares","type":"uint256"}],"name":"PayeeAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"from","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"PaymentReceived","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"PaymentReleased","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"MAX_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PROVENANCE","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"members","type":"address[]"}],"name":"addToList","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"quantity","type":"uint256[]"},{"internalType":"address[]","name":"recipient","type":"address[]"}],"name":"airdrop","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isActive","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":"isPreSaleActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lock","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"locked","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxOrder","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"numberOfTokens","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"numberOfTokens","type":"uint256"}],"name":"mintPreSale","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"payee","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"preSalePrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address payable","name":"account","type":"address"}],"name":"release","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"released","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"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"},{"internalType":"string","name":"_newSuffix","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_maxOrder","type":"uint256"}],"name":"setMaxOrder","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_price","type":"uint256"}],"name":"setPreSalePrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"provenance","type":"string"}],"name":"setProvenance","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"shares","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"togglePreSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"togglePublicSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalReleased","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalShares","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]

60a06040819052600060808190526200001b91600c9162000506565b506040805160208101918290526000908190526200003c91600d9162000506565b5066f5232269808000600f5560036010556011805462ffffff191690553480156200006657600080fd5b50604051620036ef380380620036ef83398101604081905262000089916200069c565b604080518082018252600d81526c417665726167652050756e6b7360981b6020808301918252835180850190945260048452630415647560e41b90840152815185938593929091620000de9160009162000506565b508051620000f490600190602084019062000506565b505050620001116200010b620002c260201b60201c565b620002c6565b8051825114620001835760405162461bcd60e51b815260206004820152603260248201527f5061796d656e7453706c69747465723a2070617965657320616e6420736861726044820152710cae640d8cadccee8d040dad2e6dac2e8c6d60731b60648201526084015b60405180910390fd5b6000825111620001d65760405162461bcd60e51b815260206004820152601a60248201527f5061796d656e7453706c69747465723a206e6f2070617965657300000000000060448201526064016200017a565b60005b82518110156200025a57620002458382815181106200020857634e487b7160e01b600052603260045260246000fd5b60200260200101518383815181106200023157634e487b7160e01b600052603260045260246000fd5b60200260200101516200031860201b60201c565b80620002518162000851565b915050620001d9565b50506001600b555082516200027790600e90602086019062000506565b5050600280546001810182556000919091527f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ace0180546001600160a01b0319169055506200089b9050565b3390565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b038216620003855760405162461bcd60e51b815260206004820152602c60248201527f5061796d656e7453706c69747465723a206163636f756e74206973207468652060448201526b7a65726f206164647265737360a01b60648201526084016200017a565b60008111620003d75760405162461bcd60e51b815260206004820152601d60248201527f5061796d656e7453706c69747465723a2073686172657320617265203000000060448201526064016200017a565b6001600160a01b03821660009081526008602052604090205415620004535760405162461bcd60e51b815260206004820152602b60248201527f5061796d656e7453706c69747465723a206163636f756e7420616c726561647960448201526a206861732073686172657360a81b60648201526084016200017a565b600a8054600181019091557fc65a7bb8d6351c1cf70c95a316cc6a92839c986682d98bc35f958f4883f9d2a80180546001600160a01b0319166001600160a01b0384169081179091556000908152600860205260409020819055600654620004bd908290620007f9565b600655604080516001600160a01b0384168152602081018390527f40c340f65e17194d14ddddb073d3c9f888e3cb52b5aae0c6c7706b4fbc905fac910160405180910390a15050565b828054620005149062000814565b90600052602060002090601f01602090048101928262000538576000855562000583565b82601f106200055357805160ff191683800117855562000583565b8280016001018555821562000583579182015b828111156200058357825182559160200191906001019062000566565b506200059192915062000595565b5090565b5b8082111562000591576000815560010162000596565b600082601f830112620005bd578081fd5b81516020620005d6620005d083620007d3565b620007a0565b80838252828201915082860187848660051b8901011115620005f6578586fd5b855b858110156200062b5781516001600160a01b038116811462000618578788fd5b84529284019290840190600101620005f8565b5090979650505050505050565b600082601f83011262000649578081fd5b815160206200065c620005d083620007d3565b80838252828201915082860187848660051b89010111156200067c578586fd5b855b858110156200062b578151845292840192908401906001016200067e565b600080600060608486031215620006b1578283fd5b83516001600160401b0380821115620006c8578485fd5b818601915086601f830112620006dc578485fd5b815181811115620006f157620006f162000885565b602062000707601f8301601f19168201620007a0565b82815289828487010111156200071b578788fd5b875b838110156200073a5785810183015182820184015282016200071d565b838111156200074b57888385840101525b50908801519096509250508082111562000763578384fd5b6200077187838801620005ac565b9350604086015191508082111562000787578283fd5b50620007968682870162000638565b9150509250925092565b604051601f8201601f191681016001600160401b0381118282101715620007cb57620007cb62000885565b604052919050565b60006001600160401b03821115620007ef57620007ef62000885565b5060051b60200190565b600082198211156200080f576200080f6200086f565b500190565b600181811c908216806200082957607f821691505b602082108114156200084b57634e487b7160e01b600052602260045260246000fd5b50919050565b60006000198214156200086857620008686200086f565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fd5b612e4480620008ab6000396000f3fe60806040526004361061026a5760003560e01c80638b83209b11610144578063ca3cb522116100b6578063e33b7de31161007a578063e33b7de31461075b578063e757c17d14610770578063e985e9c514610786578063f2fde38b146107cf578063f83d08ba146107ef578063ffe630b51461080457600080fd5b8063ca3cb522146106bb578063ce7c2ac2146106d0578063cf30901214610706578063dde3d31314610726578063e222c7f91461074657600080fd5b80639d044ed3116101085780639d044ed31461061b578063a0712d6814610635578063a22cb46514610648578063b88d4fde14610668578063b988477214610688578063c87b56dd1461069b57600080fd5b80638b83209b146105765780638d859f3e146105965780638da5cb5b146105b257806395d89b41146105d05780639852595c146105e557600080fd5b80633a98ef39116101dd5780636373a6b1116101a15780636373a6b1146104cc5780636673c4c2146104e15780636790a9de1461050157806370a0823114610521578063715018a6146105415780637d7eee421461055657600080fd5b80633a98ef391461043757806342842e0e1461044c5780634be0c7081461046c5780634f6ccce71461048c5780636352211e146104ac57600080fd5b806318160ddd1161022f57806318160ddd1461038d57806319165587146103a257806322f3e2d4146103c257806323b872dd146103e15780632f745c591461040157806332cb6b0c1461042157600080fd5b8062451026146102b857806301ffc9a7146102e157806306fdde0314610311578063081812fc14610333578063095ea7b31461036b57600080fd5b366102b3577f6ef95f06320e7a25a04a175ca677b7052bdd97131872c2192525a629f51be77033604080516001600160a01b0390921682523460208301520160405180910390a1005b600080fd5b3480156102c457600080fd5b506102ce60105481565b6040519081526020015b60405180910390f35b3480156102ed57600080fd5b506103016102fc36600461287c565b610824565b60405190151581526020016102d8565b34801561031d57600080fd5b5061032661084f565b6040516102d89190612a9d565b34801561033f57600080fd5b5061035361034e366004612951565b6108e1565b6040516001600160a01b0390911681526020016102d8565b34801561037757600080fd5b5061038b610386366004612734565b61096e565b005b34801561039957600080fd5b506002546102ce565b3480156103ae57600080fd5b5061038b6103bd3660046125ac565b610a84565b3480156103ce57600080fd5b5060115461030190610100900460ff1681565b3480156103ed57600080fd5b5061038b6103fc366004612607565b610c55565b34801561040d57600080fd5b506102ce61041c366004612734565b610c86565b34801561042d57600080fd5b506102ce611a0b81565b34801561044357600080fd5b506006546102ce565b34801561045857600080fd5b5061038b610467366004612607565b610d43565b34801561047857600080fd5b5061038b61048736600461275f565b610d5e565b34801561049857600080fd5b506102ce6104a7366004612951565b610e1e565b3480156104b857600080fd5b506103536104c7366004612951565b610e90565b3480156104d857600080fd5b50610326610f2a565b3480156104ed57600080fd5b5061038b6104fc366004612813565b610fb8565b34801561050d57600080fd5b5061038b61051c3660046128f4565b611180565b34801561052d57600080fd5b506102ce61053c3660046125ac565b6111ca565b34801561054d57600080fd5b5061038b6112aa565b34801561056257600080fd5b5061038b610571366004612951565b6112e0565b34801561058257600080fd5b50610353610591366004612951565b61130f565b3480156105a257600080fd5b506102ce67012dfb0cb5e8800081565b3480156105be57600080fd5b506005546001600160a01b0316610353565b3480156105dc57600080fd5b5061032661134d565b3480156105f157600080fd5b506102ce6106003660046125ac565b6001600160a01b031660009081526009602052604090205490565b34801561062757600080fd5b506011546103019060ff1681565b61038b610643366004612951565b61135c565b34801561065457600080fd5b5061038b610663366004612703565b6114ed565b34801561067457600080fd5b5061038b610683366004612647565b6115b2565b61038b610696366004612951565b6115ea565b3480156106a757600080fd5b506103266106b6366004612951565b611916565b3480156106c757600080fd5b5061038b6119ed565b3480156106dc57600080fd5b506102ce6106eb3660046125ac565b6001600160a01b031660009081526008602052604090205490565b34801561071257600080fd5b506011546103019062010000900460ff1681565b34801561073257600080fd5b5061038b610741366004612951565b611a2b565b34801561075257600080fd5b5061038b611a5a565b34801561076757600080fd5b506007546102ce565b34801561077c57600080fd5b506102ce600f5481565b34801561079257600080fd5b506103016107a13660046125cf565b6001600160a01b03918216600090815260046020908152604080832093909416825291909152205460ff1690565b3480156107db57600080fd5b5061038b6107ea3660046125ac565b611aa4565b3480156107fb57600080fd5b5061038b611b3f565b34801561081057600080fd5b5061038b61081f3660046128b4565b611b7c565b60006001600160e01b0319821663780e9d6360e01b1480610849575061084982611bf4565b92915050565b60606000805461085e90612d02565b80601f016020809104026020016040519081016040528092919081815260200182805461088a90612d02565b80156108d75780601f106108ac576101008083540402835291602001916108d7565b820191906000526020600020905b8154815290600101906020018083116108ba57829003601f168201915b5050505050905090565b60006108ec82611c44565b6109525760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600360205260409020546001600160a01b031690565b600061097982610e90565b9050806001600160a01b0316836001600160a01b031614156109e75760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610949565b336001600160a01b0382161480610a035750610a0381336107a1565b610a755760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610949565b610a7f8383611c9c565b505050565b6001600160a01b038116600090815260086020526040902054610af85760405162461bcd60e51b815260206004820152602660248201527f5061796d656e7453706c69747465723a206163636f756e7420686173206e6f2060448201526573686172657360d01b6064820152608401610949565b600060075447610b089190612c74565b6001600160a01b0383166000908152600960209081526040808320546006546008909352908320549394509192610b3f9085612ca0565b610b499190612c8c565b610b539190612cbf565b905080610bb65760405162461bcd60e51b815260206004820152602b60248201527f5061796d656e7453706c69747465723a206163636f756e74206973206e6f742060448201526a191d59481c185e5b595b9d60aa1b6064820152608401610949565b6001600160a01b038316600090815260096020526040902054610bda908290612c74565b6001600160a01b038416600090815260096020526040902055600754610c01908290612c74565b600755610c0e8382611d0a565b604080516001600160a01b0385168152602081018390527fdf20fd1e76bc69d672e4814fafb2c449bba3a5369d8359adf9e05e6fde87b056910160405180910390a1505050565b610c5f3382611e23565b610c7b5760405162461bcd60e51b815260040161094990612b82565b610a7f838383611f0d565b6000610c91836111ca565b8210610caf5760405162461bcd60e51b815260040161094990612ab0565b6000805b600254811015610d2a5760028181548110610cde57634e487b7160e01b600052603260045260246000fd5b6000918252602090912001546001600160a01b0386811691161415610d1a5783821415610d0e5791506108499050565b610d1782612d3d565b91505b610d2381612d3d565b9050610cb3565b5060405162461bcd60e51b815260040161094990612ab0565b610a7f838383604051806020016040528060008152506115b2565b6005546001600160a01b03163314610d885760405162461bcd60e51b815260040161094990612b4d565b60005b8151811015610e1a57600160126000848481518110610dba57634e487b7160e01b600052603260045260246000fd5b6020908102919091018101516001600160a01b03168252810191909152604001600020805460ff19166001836002811115610e0557634e487b7160e01b600052602160045260246000fd5b0217905550610e1381612d3d565b9050610d8b565b5050565b6000610e2960025490565b8210610e8c5760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b6064820152608401610949565b5090565b60008060028381548110610eb457634e487b7160e01b600052603260045260246000fd5b6000918252602090912001546001600160a01b03169050806108495760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610949565b600e8054610f3790612d02565b80601f0160208091040260200160405190810160405280929190818152602001828054610f6390612d02565b8015610fb05780601f10610f8557610100808354040283529160200191610fb0565b820191906000526020600020905b815481529060010190602001808311610f9357829003601f168201915b505050505081565b6005546001600160a01b03163314610fe25760405162461bcd60e51b815260040161094990612b4d565b8281146110445760405162461bcd60e51b815260206004820152602a60248201527f5175616e74697479206c656e677468206973206e6f7420657175616c20746f20604482015269726563697069656e747360b01b6064820152608401610949565b6000805b848110156110945785858281811061107057634e487b7160e01b600052603260045260246000fd5b90506020020135826110829190612c74565b915061108d81612d3d565b9050611048565b5060006110a060025490565b9050611a0b6110af8383612c74565b11156110cd5760405162461bcd60e51b815260040161094990612bd3565b6000915060005b838110156111775760005b8787838181106110ff57634e487b7160e01b600052603260045260246000fd5b905060200201358110156111665761115686868481811061113057634e487b7160e01b600052603260045260246000fd5b905060200201602081019061114591906125ac565b8461114f81612d3d565b9550612071565b61115f81612d3d565b90506110df565b5061117081612d3d565b90506110d4565b50505050505050565b6005546001600160a01b031633146111aa5760405162461bcd60e51b815260040161094990612b4d565b6111b6600c8585612492565b506111c3600d8383612492565b5050505050565b60006001600160a01b0382166112355760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610949565b6000805b6002548110156112a3576002818154811061126457634e487b7160e01b600052603260045260246000fd5b6000918252602090912001546001600160a01b0385811691161415611291578161128d81612d3d565b9250505b8061129b81612d3d565b915050611239565b5092915050565b6005546001600160a01b031633146112d45760405162461bcd60e51b815260040161094990612b4d565b6112de600061208b565b565b6005546001600160a01b0316331461130a5760405162461bcd60e51b815260040161094990612b4d565b600f55565b6000600a828154811061133257634e487b7160e01b600052603260045260246000fd5b6000918252602090912001546001600160a01b031692915050565b60606001805461085e90612d02565b6002600b5414156113af5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610949565b6002600b55601154610100900460ff166114015760405162461bcd60e51b815260206004820152601360248201527253616c65206d7573742062652061637469766560681b6044820152606401610949565b6010548111156114235760405162461bcd60e51b815260040161094990612bff565b6114358167012dfb0cb5e88000612ca0565b34101561147b5760405162461bcd60e51b8152602060048201526014602482015273125b98dbdc9c9958dd08195d1a08185b5bdd5b9d60621b6044820152606401610949565b600061148660025490565b9050611a0b6114958383612c74565b11156114b35760405162461bcd60e51b815260040161094990612bd3565b60005b828110156114e3576114d333836114cc81612d3d565b9450612071565b6114dc81612d3d565b90506114b6565b50506001600b5550565b6001600160a01b0382163314156115465760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610949565b3360008181526004602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6115bc3383611e23565b6115d85760405162461bcd60e51b815260040161094990612b82565b6115e4848484846120dd565b50505050565b6002600b54141561163d5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610949565b6002600b5560115460ff166116945760405162461bcd60e51b815260206004820152601760248201527f5072652073616c65206d757374206265206163746976650000000000000000006044820152606401610949565b60023360009081526012602052604090205460ff1660028111156116c857634e487b7160e01b600052602160045260246000fd5b14156117085760405162461bcd60e51b815260206004820152600f60248201526e105b1c9958591e4810db185a5b5959608a1b6044820152606401610949565b60013360009081526012602052604090205460ff16600281111561173c57634e487b7160e01b600052602160045260246000fd5b1461177b5760405162461bcd60e51b815260206004820152600f60248201526e139bdd081bdb881d1a19481b1a5cdd608a1b6044820152606401610949565b60105481111561179d5760405162461bcd60e51b815260040161094990612bff565b80600f546117ab9190612ca0565b3410156117f15760405162461bcd60e51b8152602060048201526014602482015273125b98dbdc9c9958dd08195d1a08185b5bdd5b9d60621b6044820152606401610949565b6010543360009081526013602052604090205461180f908390612c74565b111561185d5760405162461bcd60e51b815260206004820152601860248201527f436865636b206d61782070726573616c6520616d6f756e7400000000000000006044820152606401610949565b600061186860025490565b9050611a0b6118778383612c74565b11156118955760405162461bcd60e51b815260040161094990612bd3565b33600090815260136020526040812080548492906118b4908490612c74565b90915550506010543360009081526013602052604090205414156118ed57336000908152601260205260409020805460ff191660021790555b60005b828110156114e35761190633836114cc81612d3d565b61190f81612d3d565b90506118f0565b606061192182611c44565b6119855760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401610949565b6000600c805461199490612d02565b9050116119b957604051806060016040528060358152602001612dda60359139610849565b600c6119c483612110565b600d6040516020016119d893929190612a2d565b60405160208183030381529060405292915050565b6005546001600160a01b03163314611a175760405162461bcd60e51b815260040161094990612b4d565b6011805460ff19811660ff90911615179055565b6005546001600160a01b03163314611a555760405162461bcd60e51b815260040161094990612b4d565b601055565b6005546001600160a01b03163314611a845760405162461bcd60e51b815260040161094990612b4d565b6011805461010060ff19821681900460ff16150261ffff19909116179055565b6005546001600160a01b03163314611ace5760405162461bcd60e51b815260040161094990612b4d565b6001600160a01b038116611b335760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610949565b611b3c8161208b565b50565b6005546001600160a01b03163314611b695760405162461bcd60e51b815260040161094990612b4d565b6011805462ff0000191662010000179055565b6005546001600160a01b03163314611ba65760405162461bcd60e51b815260040161094990612b4d565b60115462010000900460ff1615611be85760405162461bcd60e51b8152602060048201526006602482015265131bd8dad95960d21b6044820152606401610949565b610a7f600e8383612492565b60006001600160e01b031982166380ac58cd60e01b1480611c2557506001600160e01b03198216635b5e139f60e01b145b8061084957506301ffc9a760e01b6001600160e01b0319831614610849565b60025460009082108015610849575060006001600160a01b031660028381548110611c7f57634e487b7160e01b600052603260045260246000fd5b6000918252602090912001546001600160a01b0316141592915050565b600081815260036020526040902080546001600160a01b0319166001600160a01b0384169081179091558190611cd182610e90565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b80471015611d5a5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e63650000006044820152606401610949565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114611da7576040519150601f19603f3d011682016040523d82523d6000602084013e611dac565b606091505b5050905080610a7f5760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d617920686176652072657665727465640000000000006064820152608401610949565b6000611e2e82611c44565b611e8f5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610949565b6000611e9a83610e90565b9050806001600160a01b0316846001600160a01b03161480611ed55750836001600160a01b0316611eca846108e1565b6001600160a01b0316145b80611f0557506001600160a01b0380821660009081526004602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b0316611f2082610e90565b6001600160a01b031614611f885760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b6064820152608401610949565b6001600160a01b038216611fea5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610949565b611ff5600082611c9c565b816002828154811061201757634e487b7160e01b600052603260045260246000fd5b6000918252602082200180546001600160a01b0319166001600160a01b03938416179055604051839285811692908716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9190a4505050565b610e1a82826040518060200160405280600081525061222a565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6120e8848484611f0d565b6120f48484848461225d565b6115e45760405162461bcd60e51b815260040161094990612afb565b6060816121345750506040805180820190915260018152600360fc1b602082015290565b8160005b811561215e578061214881612d3d565b91506121579050600a83612c8c565b9150612138565b60008167ffffffffffffffff81111561218757634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156121b1576020820181803683370190505b5090505b8415611f05576121c6600183612cbf565b91506121d3600a86612d58565b6121de906030612c74565b60f81b81838151811061220157634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350612223600a86612c8c565b94506121b5565b612234838361236a565b612241600084848461225d565b610a7f5760405162461bcd60e51b815260040161094990612afb565b60006001600160a01b0384163b1561235f57604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906122a1903390899088908890600401612a60565b602060405180830381600087803b1580156122bb57600080fd5b505af19250505080156122eb575060408051601f3d908101601f191682019092526122e891810190612898565b60015b612345573d808015612319576040519150601f19603f3d011682016040523d82523d6000602084013e61231e565b606091505b50805161233d5760405162461bcd60e51b815260040161094990612afb565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611f05565b506001949350505050565b6001600160a01b0382166123c05760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610949565b6123c981611c44565b156124165760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610949565b6002805460018101825560009182527f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ace0180546001600160a01b0319166001600160a01b0385169081179091556040518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b82805461249e90612d02565b90600052602060002090601f0160209004810192826124c05760008555612506565b82601f106124d95782800160ff19823516178555612506565b82800160010185558215612506579182015b828111156125065782358255916020019190600101906124eb565b50610e8c9291505b80821115610e8c576000815560010161250e565b60008083601f840112612533578182fd5b50813567ffffffffffffffff81111561254a578182fd5b6020830191508360208260051b850101111561256557600080fd5b9250929050565b60008083601f84011261257d578182fd5b50813567ffffffffffffffff811115612594578182fd5b60208301915083602082850101111561256557600080fd5b6000602082840312156125bd578081fd5b81356125c881612dae565b9392505050565b600080604083850312156125e1578081fd5b82356125ec81612dae565b915060208301356125fc81612dae565b809150509250929050565b60008060006060848603121561261b578081fd5b833561262681612dae565b9250602084013561263681612dae565b929592945050506040919091013590565b6000806000806080858703121561265c578081fd5b843561266781612dae565b935060208581013561267881612dae565b935060408601359250606086013567ffffffffffffffff8082111561269b578384fd5b818801915088601f8301126126ae578384fd5b8135818111156126c0576126c0612d98565b6126d2601f8201601f19168501612c43565b915080825289848285010111156126e7578485fd5b8084840185840137810190920192909252939692955090935050565b60008060408385031215612715578182fd5b823561272081612dae565b9150602083013580151581146125fc578182fd5b60008060408385031215612746578182fd5b823561275181612dae565b946020939093013593505050565b60006020808385031215612771578182fd5b823567ffffffffffffffff80821115612788578384fd5b818501915085601f83011261279b578384fd5b8135818111156127ad576127ad612d98565b8060051b91506127be848301612c43565b8181528481019084860184860187018a10156127d8578788fd5b8795505b8386101561280657803594506127f185612dae565b848352600195909501949186019186016127dc565b5098975050505050505050565b60008060008060408587031215612828578384fd5b843567ffffffffffffffff8082111561283f578586fd5b61284b88838901612522565b90965094506020870135915080821115612863578384fd5b5061287087828801612522565b95989497509550505050565b60006020828403121561288d578081fd5b81356125c881612dc3565b6000602082840312156128a9578081fd5b81516125c881612dc3565b600080602083850312156128c6578182fd5b823567ffffffffffffffff8111156128dc578283fd5b6128e88582860161256c565b90969095509350505050565b60008060008060408587031215612909578182fd5b843567ffffffffffffffff80821115612920578384fd5b61292c8883890161256c565b90965094506020870135915080821115612944578384fd5b506128708782880161256c565b600060208284031215612962578081fd5b5035919050565b60008151808452612981816020860160208601612cd6565b601f01601f19169290920160200192915050565b8054600090600181811c90808316806129af57607f831692505b60208084108214156129cf57634e487b7160e01b86526022600452602486fd5b8180156129e357600181146129f457612a21565b60ff19861689528489019650612a21565b60008881526020902060005b86811015612a195781548b820152908501908301612a00565b505084890196505b50505050505092915050565b6000612a398286612995565b8451612a49818360208901612cd6565b612a5581830186612995565b979650505050505050565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090612a9390830184612969565b9695505050505050565b6020815260006125c86020830184612969565b6020808252602b908201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560408201526a74206f6620626f756e647360a81b606082015260800190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b60208082526012908201527113585e081cdd5c1c1b1e481c995858da195960721b604082015260600190565b60208082526024908201527f436865636b20746865206d617820746f6b656e7320706572207472616e7361636040820152633a34b7b760e11b606082015260800190565b604051601f8201601f1916810167ffffffffffffffff81118282101715612c6c57612c6c612d98565b604052919050565b60008219821115612c8757612c87612d6c565b500190565b600082612c9b57612c9b612d82565b500490565b6000816000190483118215151615612cba57612cba612d6c565b500290565b600082821015612cd157612cd1612d6c565b500390565b60005b83811015612cf1578181015183820152602001612cd9565b838111156115e45750506000910152565b600181811c90821680612d1657607f821691505b60208210811415612d3757634e487b7160e01b600052602260045260246000fd5b50919050565b6000600019821415612d5157612d51612d6c565b5060010190565b600082612d6757612d67612d82565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b0381168114611b3c57600080fd5b6001600160e01b031981168114611b3c57600080fdfe697066733a2f2f516d5338326e3141586f647634424541486844424339524b676e5738476b6d6e6a395a47796b46697874414a7355a2646970667358221220fe2667f35c1d3481dfce1260ef6021a81d2527a1379f25577c59374b1326650964736f6c63430008040033000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000c0000000000000000000000000000000000000000000000000000000000000016000000000000000000000000000000000000000000000000000000000000000406436663732356538303536613335356164343432616439316264646634616632613566646362623564636565393637653535636261643232613831333562313700000000000000000000000000000000000000000000000000000000000000040000000000000000000000002427e01df94902493b3c071bcca86d72b38736be000000000000000000000000d4850927a6e3f30e2e3c3b14d98131cf8e2d96340000000000000000000000002c8a40e48c31c167664f71d5235e7e67e9696407000000000000000000000000be1f98c407e7030904fdac86219f5c9fb7029ecf0000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000004e0000000000000000000000000000000000000000000000000000000000000007000000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000000000000000000000000000000000000000005

Deployed Bytecode

0x60806040526004361061026a5760003560e01c80638b83209b11610144578063ca3cb522116100b6578063e33b7de31161007a578063e33b7de31461075b578063e757c17d14610770578063e985e9c514610786578063f2fde38b146107cf578063f83d08ba146107ef578063ffe630b51461080457600080fd5b8063ca3cb522146106bb578063ce7c2ac2146106d0578063cf30901214610706578063dde3d31314610726578063e222c7f91461074657600080fd5b80639d044ed3116101085780639d044ed31461061b578063a0712d6814610635578063a22cb46514610648578063b88d4fde14610668578063b988477214610688578063c87b56dd1461069b57600080fd5b80638b83209b146105765780638d859f3e146105965780638da5cb5b146105b257806395d89b41146105d05780639852595c146105e557600080fd5b80633a98ef39116101dd5780636373a6b1116101a15780636373a6b1146104cc5780636673c4c2146104e15780636790a9de1461050157806370a0823114610521578063715018a6146105415780637d7eee421461055657600080fd5b80633a98ef391461043757806342842e0e1461044c5780634be0c7081461046c5780634f6ccce71461048c5780636352211e146104ac57600080fd5b806318160ddd1161022f57806318160ddd1461038d57806319165587146103a257806322f3e2d4146103c257806323b872dd146103e15780632f745c591461040157806332cb6b0c1461042157600080fd5b8062451026146102b857806301ffc9a7146102e157806306fdde0314610311578063081812fc14610333578063095ea7b31461036b57600080fd5b366102b3577f6ef95f06320e7a25a04a175ca677b7052bdd97131872c2192525a629f51be77033604080516001600160a01b0390921682523460208301520160405180910390a1005b600080fd5b3480156102c457600080fd5b506102ce60105481565b6040519081526020015b60405180910390f35b3480156102ed57600080fd5b506103016102fc36600461287c565b610824565b60405190151581526020016102d8565b34801561031d57600080fd5b5061032661084f565b6040516102d89190612a9d565b34801561033f57600080fd5b5061035361034e366004612951565b6108e1565b6040516001600160a01b0390911681526020016102d8565b34801561037757600080fd5b5061038b610386366004612734565b61096e565b005b34801561039957600080fd5b506002546102ce565b3480156103ae57600080fd5b5061038b6103bd3660046125ac565b610a84565b3480156103ce57600080fd5b5060115461030190610100900460ff1681565b3480156103ed57600080fd5b5061038b6103fc366004612607565b610c55565b34801561040d57600080fd5b506102ce61041c366004612734565b610c86565b34801561042d57600080fd5b506102ce611a0b81565b34801561044357600080fd5b506006546102ce565b34801561045857600080fd5b5061038b610467366004612607565b610d43565b34801561047857600080fd5b5061038b61048736600461275f565b610d5e565b34801561049857600080fd5b506102ce6104a7366004612951565b610e1e565b3480156104b857600080fd5b506103536104c7366004612951565b610e90565b3480156104d857600080fd5b50610326610f2a565b3480156104ed57600080fd5b5061038b6104fc366004612813565b610fb8565b34801561050d57600080fd5b5061038b61051c3660046128f4565b611180565b34801561052d57600080fd5b506102ce61053c3660046125ac565b6111ca565b34801561054d57600080fd5b5061038b6112aa565b34801561056257600080fd5b5061038b610571366004612951565b6112e0565b34801561058257600080fd5b50610353610591366004612951565b61130f565b3480156105a257600080fd5b506102ce67012dfb0cb5e8800081565b3480156105be57600080fd5b506005546001600160a01b0316610353565b3480156105dc57600080fd5b5061032661134d565b3480156105f157600080fd5b506102ce6106003660046125ac565b6001600160a01b031660009081526009602052604090205490565b34801561062757600080fd5b506011546103019060ff1681565b61038b610643366004612951565b61135c565b34801561065457600080fd5b5061038b610663366004612703565b6114ed565b34801561067457600080fd5b5061038b610683366004612647565b6115b2565b61038b610696366004612951565b6115ea565b3480156106a757600080fd5b506103266106b6366004612951565b611916565b3480156106c757600080fd5b5061038b6119ed565b3480156106dc57600080fd5b506102ce6106eb3660046125ac565b6001600160a01b031660009081526008602052604090205490565b34801561071257600080fd5b506011546103019062010000900460ff1681565b34801561073257600080fd5b5061038b610741366004612951565b611a2b565b34801561075257600080fd5b5061038b611a5a565b34801561076757600080fd5b506007546102ce565b34801561077c57600080fd5b506102ce600f5481565b34801561079257600080fd5b506103016107a13660046125cf565b6001600160a01b03918216600090815260046020908152604080832093909416825291909152205460ff1690565b3480156107db57600080fd5b5061038b6107ea3660046125ac565b611aa4565b3480156107fb57600080fd5b5061038b611b3f565b34801561081057600080fd5b5061038b61081f3660046128b4565b611b7c565b60006001600160e01b0319821663780e9d6360e01b1480610849575061084982611bf4565b92915050565b60606000805461085e90612d02565b80601f016020809104026020016040519081016040528092919081815260200182805461088a90612d02565b80156108d75780601f106108ac576101008083540402835291602001916108d7565b820191906000526020600020905b8154815290600101906020018083116108ba57829003601f168201915b5050505050905090565b60006108ec82611c44565b6109525760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600360205260409020546001600160a01b031690565b600061097982610e90565b9050806001600160a01b0316836001600160a01b031614156109e75760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610949565b336001600160a01b0382161480610a035750610a0381336107a1565b610a755760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610949565b610a7f8383611c9c565b505050565b6001600160a01b038116600090815260086020526040902054610af85760405162461bcd60e51b815260206004820152602660248201527f5061796d656e7453706c69747465723a206163636f756e7420686173206e6f2060448201526573686172657360d01b6064820152608401610949565b600060075447610b089190612c74565b6001600160a01b0383166000908152600960209081526040808320546006546008909352908320549394509192610b3f9085612ca0565b610b499190612c8c565b610b539190612cbf565b905080610bb65760405162461bcd60e51b815260206004820152602b60248201527f5061796d656e7453706c69747465723a206163636f756e74206973206e6f742060448201526a191d59481c185e5b595b9d60aa1b6064820152608401610949565b6001600160a01b038316600090815260096020526040902054610bda908290612c74565b6001600160a01b038416600090815260096020526040902055600754610c01908290612c74565b600755610c0e8382611d0a565b604080516001600160a01b0385168152602081018390527fdf20fd1e76bc69d672e4814fafb2c449bba3a5369d8359adf9e05e6fde87b056910160405180910390a1505050565b610c5f3382611e23565b610c7b5760405162461bcd60e51b815260040161094990612b82565b610a7f838383611f0d565b6000610c91836111ca565b8210610caf5760405162461bcd60e51b815260040161094990612ab0565b6000805b600254811015610d2a5760028181548110610cde57634e487b7160e01b600052603260045260246000fd5b6000918252602090912001546001600160a01b0386811691161415610d1a5783821415610d0e5791506108499050565b610d1782612d3d565b91505b610d2381612d3d565b9050610cb3565b5060405162461bcd60e51b815260040161094990612ab0565b610a7f838383604051806020016040528060008152506115b2565b6005546001600160a01b03163314610d885760405162461bcd60e51b815260040161094990612b4d565b60005b8151811015610e1a57600160126000848481518110610dba57634e487b7160e01b600052603260045260246000fd5b6020908102919091018101516001600160a01b03168252810191909152604001600020805460ff19166001836002811115610e0557634e487b7160e01b600052602160045260246000fd5b0217905550610e1381612d3d565b9050610d8b565b5050565b6000610e2960025490565b8210610e8c5760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b6064820152608401610949565b5090565b60008060028381548110610eb457634e487b7160e01b600052603260045260246000fd5b6000918252602090912001546001600160a01b03169050806108495760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610949565b600e8054610f3790612d02565b80601f0160208091040260200160405190810160405280929190818152602001828054610f6390612d02565b8015610fb05780601f10610f8557610100808354040283529160200191610fb0565b820191906000526020600020905b815481529060010190602001808311610f9357829003601f168201915b505050505081565b6005546001600160a01b03163314610fe25760405162461bcd60e51b815260040161094990612b4d565b8281146110445760405162461bcd60e51b815260206004820152602a60248201527f5175616e74697479206c656e677468206973206e6f7420657175616c20746f20604482015269726563697069656e747360b01b6064820152608401610949565b6000805b848110156110945785858281811061107057634e487b7160e01b600052603260045260246000fd5b90506020020135826110829190612c74565b915061108d81612d3d565b9050611048565b5060006110a060025490565b9050611a0b6110af8383612c74565b11156110cd5760405162461bcd60e51b815260040161094990612bd3565b6000915060005b838110156111775760005b8787838181106110ff57634e487b7160e01b600052603260045260246000fd5b905060200201358110156111665761115686868481811061113057634e487b7160e01b600052603260045260246000fd5b905060200201602081019061114591906125ac565b8461114f81612d3d565b9550612071565b61115f81612d3d565b90506110df565b5061117081612d3d565b90506110d4565b50505050505050565b6005546001600160a01b031633146111aa5760405162461bcd60e51b815260040161094990612b4d565b6111b6600c8585612492565b506111c3600d8383612492565b5050505050565b60006001600160a01b0382166112355760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610949565b6000805b6002548110156112a3576002818154811061126457634e487b7160e01b600052603260045260246000fd5b6000918252602090912001546001600160a01b0385811691161415611291578161128d81612d3d565b9250505b8061129b81612d3d565b915050611239565b5092915050565b6005546001600160a01b031633146112d45760405162461bcd60e51b815260040161094990612b4d565b6112de600061208b565b565b6005546001600160a01b0316331461130a5760405162461bcd60e51b815260040161094990612b4d565b600f55565b6000600a828154811061133257634e487b7160e01b600052603260045260246000fd5b6000918252602090912001546001600160a01b031692915050565b60606001805461085e90612d02565b6002600b5414156113af5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610949565b6002600b55601154610100900460ff166114015760405162461bcd60e51b815260206004820152601360248201527253616c65206d7573742062652061637469766560681b6044820152606401610949565b6010548111156114235760405162461bcd60e51b815260040161094990612bff565b6114358167012dfb0cb5e88000612ca0565b34101561147b5760405162461bcd60e51b8152602060048201526014602482015273125b98dbdc9c9958dd08195d1a08185b5bdd5b9d60621b6044820152606401610949565b600061148660025490565b9050611a0b6114958383612c74565b11156114b35760405162461bcd60e51b815260040161094990612bd3565b60005b828110156114e3576114d333836114cc81612d3d565b9450612071565b6114dc81612d3d565b90506114b6565b50506001600b5550565b6001600160a01b0382163314156115465760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610949565b3360008181526004602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6115bc3383611e23565b6115d85760405162461bcd60e51b815260040161094990612b82565b6115e4848484846120dd565b50505050565b6002600b54141561163d5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610949565b6002600b5560115460ff166116945760405162461bcd60e51b815260206004820152601760248201527f5072652073616c65206d757374206265206163746976650000000000000000006044820152606401610949565b60023360009081526012602052604090205460ff1660028111156116c857634e487b7160e01b600052602160045260246000fd5b14156117085760405162461bcd60e51b815260206004820152600f60248201526e105b1c9958591e4810db185a5b5959608a1b6044820152606401610949565b60013360009081526012602052604090205460ff16600281111561173c57634e487b7160e01b600052602160045260246000fd5b1461177b5760405162461bcd60e51b815260206004820152600f60248201526e139bdd081bdb881d1a19481b1a5cdd608a1b6044820152606401610949565b60105481111561179d5760405162461bcd60e51b815260040161094990612bff565b80600f546117ab9190612ca0565b3410156117f15760405162461bcd60e51b8152602060048201526014602482015273125b98dbdc9c9958dd08195d1a08185b5bdd5b9d60621b6044820152606401610949565b6010543360009081526013602052604090205461180f908390612c74565b111561185d5760405162461bcd60e51b815260206004820152601860248201527f436865636b206d61782070726573616c6520616d6f756e7400000000000000006044820152606401610949565b600061186860025490565b9050611a0b6118778383612c74565b11156118955760405162461bcd60e51b815260040161094990612bd3565b33600090815260136020526040812080548492906118b4908490612c74565b90915550506010543360009081526013602052604090205414156118ed57336000908152601260205260409020805460ff191660021790555b60005b828110156114e35761190633836114cc81612d3d565b61190f81612d3d565b90506118f0565b606061192182611c44565b6119855760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401610949565b6000600c805461199490612d02565b9050116119b957604051806060016040528060358152602001612dda60359139610849565b600c6119c483612110565b600d6040516020016119d893929190612a2d565b60405160208183030381529060405292915050565b6005546001600160a01b03163314611a175760405162461bcd60e51b815260040161094990612b4d565b6011805460ff19811660ff90911615179055565b6005546001600160a01b03163314611a555760405162461bcd60e51b815260040161094990612b4d565b601055565b6005546001600160a01b03163314611a845760405162461bcd60e51b815260040161094990612b4d565b6011805461010060ff19821681900460ff16150261ffff19909116179055565b6005546001600160a01b03163314611ace5760405162461bcd60e51b815260040161094990612b4d565b6001600160a01b038116611b335760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610949565b611b3c8161208b565b50565b6005546001600160a01b03163314611b695760405162461bcd60e51b815260040161094990612b4d565b6011805462ff0000191662010000179055565b6005546001600160a01b03163314611ba65760405162461bcd60e51b815260040161094990612b4d565b60115462010000900460ff1615611be85760405162461bcd60e51b8152602060048201526006602482015265131bd8dad95960d21b6044820152606401610949565b610a7f600e8383612492565b60006001600160e01b031982166380ac58cd60e01b1480611c2557506001600160e01b03198216635b5e139f60e01b145b8061084957506301ffc9a760e01b6001600160e01b0319831614610849565b60025460009082108015610849575060006001600160a01b031660028381548110611c7f57634e487b7160e01b600052603260045260246000fd5b6000918252602090912001546001600160a01b0316141592915050565b600081815260036020526040902080546001600160a01b0319166001600160a01b0384169081179091558190611cd182610e90565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b80471015611d5a5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e63650000006044820152606401610949565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114611da7576040519150601f19603f3d011682016040523d82523d6000602084013e611dac565b606091505b5050905080610a7f5760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d617920686176652072657665727465640000000000006064820152608401610949565b6000611e2e82611c44565b611e8f5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610949565b6000611e9a83610e90565b9050806001600160a01b0316846001600160a01b03161480611ed55750836001600160a01b0316611eca846108e1565b6001600160a01b0316145b80611f0557506001600160a01b0380821660009081526004602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b0316611f2082610e90565b6001600160a01b031614611f885760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b6064820152608401610949565b6001600160a01b038216611fea5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610949565b611ff5600082611c9c565b816002828154811061201757634e487b7160e01b600052603260045260246000fd5b6000918252602082200180546001600160a01b0319166001600160a01b03938416179055604051839285811692908716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9190a4505050565b610e1a82826040518060200160405280600081525061222a565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6120e8848484611f0d565b6120f48484848461225d565b6115e45760405162461bcd60e51b815260040161094990612afb565b6060816121345750506040805180820190915260018152600360fc1b602082015290565b8160005b811561215e578061214881612d3d565b91506121579050600a83612c8c565b9150612138565b60008167ffffffffffffffff81111561218757634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156121b1576020820181803683370190505b5090505b8415611f05576121c6600183612cbf565b91506121d3600a86612d58565b6121de906030612c74565b60f81b81838151811061220157634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350612223600a86612c8c565b94506121b5565b612234838361236a565b612241600084848461225d565b610a7f5760405162461bcd60e51b815260040161094990612afb565b60006001600160a01b0384163b1561235f57604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906122a1903390899088908890600401612a60565b602060405180830381600087803b1580156122bb57600080fd5b505af19250505080156122eb575060408051601f3d908101601f191682019092526122e891810190612898565b60015b612345573d808015612319576040519150601f19603f3d011682016040523d82523d6000602084013e61231e565b606091505b50805161233d5760405162461bcd60e51b815260040161094990612afb565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611f05565b506001949350505050565b6001600160a01b0382166123c05760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610949565b6123c981611c44565b156124165760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610949565b6002805460018101825560009182527f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ace0180546001600160a01b0319166001600160a01b0385169081179091556040518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b82805461249e90612d02565b90600052602060002090601f0160209004810192826124c05760008555612506565b82601f106124d95782800160ff19823516178555612506565b82800160010185558215612506579182015b828111156125065782358255916020019190600101906124eb565b50610e8c9291505b80821115610e8c576000815560010161250e565b60008083601f840112612533578182fd5b50813567ffffffffffffffff81111561254a578182fd5b6020830191508360208260051b850101111561256557600080fd5b9250929050565b60008083601f84011261257d578182fd5b50813567ffffffffffffffff811115612594578182fd5b60208301915083602082850101111561256557600080fd5b6000602082840312156125bd578081fd5b81356125c881612dae565b9392505050565b600080604083850312156125e1578081fd5b82356125ec81612dae565b915060208301356125fc81612dae565b809150509250929050565b60008060006060848603121561261b578081fd5b833561262681612dae565b9250602084013561263681612dae565b929592945050506040919091013590565b6000806000806080858703121561265c578081fd5b843561266781612dae565b935060208581013561267881612dae565b935060408601359250606086013567ffffffffffffffff8082111561269b578384fd5b818801915088601f8301126126ae578384fd5b8135818111156126c0576126c0612d98565b6126d2601f8201601f19168501612c43565b915080825289848285010111156126e7578485fd5b8084840185840137810190920192909252939692955090935050565b60008060408385031215612715578182fd5b823561272081612dae565b9150602083013580151581146125fc578182fd5b60008060408385031215612746578182fd5b823561275181612dae565b946020939093013593505050565b60006020808385031215612771578182fd5b823567ffffffffffffffff80821115612788578384fd5b818501915085601f83011261279b578384fd5b8135818111156127ad576127ad612d98565b8060051b91506127be848301612c43565b8181528481019084860184860187018a10156127d8578788fd5b8795505b8386101561280657803594506127f185612dae565b848352600195909501949186019186016127dc565b5098975050505050505050565b60008060008060408587031215612828578384fd5b843567ffffffffffffffff8082111561283f578586fd5b61284b88838901612522565b90965094506020870135915080821115612863578384fd5b5061287087828801612522565b95989497509550505050565b60006020828403121561288d578081fd5b81356125c881612dc3565b6000602082840312156128a9578081fd5b81516125c881612dc3565b600080602083850312156128c6578182fd5b823567ffffffffffffffff8111156128dc578283fd5b6128e88582860161256c565b90969095509350505050565b60008060008060408587031215612909578182fd5b843567ffffffffffffffff80821115612920578384fd5b61292c8883890161256c565b90965094506020870135915080821115612944578384fd5b506128708782880161256c565b600060208284031215612962578081fd5b5035919050565b60008151808452612981816020860160208601612cd6565b601f01601f19169290920160200192915050565b8054600090600181811c90808316806129af57607f831692505b60208084108214156129cf57634e487b7160e01b86526022600452602486fd5b8180156129e357600181146129f457612a21565b60ff19861689528489019650612a21565b60008881526020902060005b86811015612a195781548b820152908501908301612a00565b505084890196505b50505050505092915050565b6000612a398286612995565b8451612a49818360208901612cd6565b612a5581830186612995565b979650505050505050565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090612a9390830184612969565b9695505050505050565b6020815260006125c86020830184612969565b6020808252602b908201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560408201526a74206f6620626f756e647360a81b606082015260800190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b60208082526012908201527113585e081cdd5c1c1b1e481c995858da195960721b604082015260600190565b60208082526024908201527f436865636b20746865206d617820746f6b656e7320706572207472616e7361636040820152633a34b7b760e11b606082015260800190565b604051601f8201601f1916810167ffffffffffffffff81118282101715612c6c57612c6c612d98565b604052919050565b60008219821115612c8757612c87612d6c565b500190565b600082612c9b57612c9b612d82565b500490565b6000816000190483118215151615612cba57612cba612d6c565b500290565b600082821015612cd157612cd1612d6c565b500390565b60005b83811015612cf1578181015183820152602001612cd9565b838111156115e45750506000910152565b600181811c90821680612d1657607f821691505b60208210811415612d3757634e487b7160e01b600052602260045260246000fd5b50919050565b6000600019821415612d5157612d51612d6c565b5060010190565b600082612d6757612d67612d82565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b0381168114611b3c57600080fd5b6001600160e01b031981168114611b3c57600080fdfe697066733a2f2f516d5338326e3141586f647634424541486844424339524b676e5738476b6d6e6a395a47796b46697874414a7355a2646970667358221220fe2667f35c1d3481dfce1260ef6021a81d2527a1379f25577c59374b1326650964736f6c63430008040033

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.