ETH Price: $3,121.84 (-0.53%)

Token

BoredAIClub (BAIC)
 

Overview

Max Total Supply

10,000 BAIC

Holders

2,283

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Filtered by Token Holder
pypebomb.eth
Balance
1 BAIC
0xc385e70f2cd8b3ac106e2d648279aa5781860653
Loading...
Loading
Loading...
Loading
Loading...
Loading

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

Contract Source Code Verified (Exact Match)

Contract Name:
BoredAIClub

Compiler Version
v0.8.15+commit.e14f2714

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 12 : BoredAIClub.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.15;

import "./ERC721Optimized.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@openzeppelin/contracts/utils/Address.sol";
import "@openzeppelin/contracts/utils/Strings.sol";

contract BoredAIClub is ERC721Optimized, Ownable, ReentrancyGuard {
    using Strings for uint256;

    uint256 public constant MAX_TOKENS = 10000;
    uint256 public freeMintAmount = 2500;
    uint256 public maxTokensPerTx = 10;
    uint256 public maxFreeTokensPerTx = 1;
    uint256 public maxFreeTokensPerWallet = 1;
    uint256 public mintPrice = 0.05 ether;
    string public _baseTokenURI;
    mapping(address => uint256) public balance;
    
    event BAICMinted(address indexed mintAddress, uint256 indexed tokenId);
    event PermanentURI(string _value, uint256 indexed _id);

    constructor(string memory baseURI) ERC721Optimized("BoredAIClub", "BAIC") {
        _baseTokenURI = baseURI;
    }

    function freezeMetadata(uint256 tokenId, string memory ipfsHash) public {
        require(_exists(tokenId), "Token does not exist");
        require(_msgSender() == ERC721Optimized.ownerOf(tokenId), "You are not a token owner");
	    emit PermanentURI(ipfsHash, tokenId);
	}

    function publicMint(uint256 numberOfTokens) public payable nonReentrant {
        uint256 supply = totalSupply();
        if (supply < freeMintAmount) {
            require(numberOfTokens <= maxFreeTokensPerTx, "Too many tokens per transaction");
            require(balance[_msgSender()] + numberOfTokens <= maxFreeTokensPerWallet, "You will exceed max amount per wallet");
        } else {
            require(numberOfTokens <= maxTokensPerTx, "Too many tokens per transaction");
        }
        require((supply + numberOfTokens) <= MAX_TOKENS, "Purchase would exceed max supply");
        require(getTotalMintPrice(numberOfTokens) == msg.value, "Incorrect Ether amount sent");
        
        for (uint256 i = 0; i < numberOfTokens; i++) {
            _mintSingle(_msgSender());
            balance[_msgSender()] += 1;
        }
    }

    function devMint(address to, uint256 numberOfTokens) public onlyOwner {
        for (uint256 i = 0; i < numberOfTokens; i++) {
            _mintSingle(to);
        }
    }

    function getCurrentMintPrice() public view returns (uint256) {
        return totalSupply() >= freeMintAmount ? mintPrice : 0;
    }

    function getMintPriceForToken(uint256 tokenId) public view returns (uint256) {
        return tokenId >= freeMintAmount ? mintPrice : 0;
    }

    function getTotalMintPrice(uint256 numberOfTokens) public view returns (uint256) {
        require(numberOfTokens > 0, "numberOfTokens must be greater than zero");
        uint256 tokenId = totalSupply();
        uint256 end = tokenId + numberOfTokens;
        require(end <= MAX_TOKENS, "Exceeded max supply");
        if (end <= freeMintAmount) {
            return 0;
        } else {
            uint256 totalPrice = 0;
            for (; tokenId < end; ++tokenId) {
                totalPrice = totalPrice + getMintPriceForToken(tokenId);
            }
            return totalPrice;
        }
    }

    function setMintPrice(uint256 newPrice) public onlyOwner {
        require(newPrice >= 0, "Price must be greater than zero");
        mintPrice = newPrice;
    }

    function setMaxTokensPerTx(uint256 amount) public onlyOwner {
        require(amount > 0, "Amount must be greater than zero");
        maxTokensPerTx = amount;
    }

    function setFreeMintAmount(uint256 amount) public onlyOwner {
        require(amount >= 0, "Amount must be greater than zero");
        freeMintAmount = amount;
    }

    function setMaxFreeTokensPerTx(uint256 amount) public onlyOwner {
        require(amount >= 0, "Amount must be greater than zero");
        maxFreeTokensPerTx = amount;
    }

    function setMaxFreeTokensPerWallet(uint256 amount) public onlyOwner {
        require(amount >= 0, "Amount must be greater than zero");
        maxFreeTokensPerWallet = amount;
    }

    function setBaseURI(string memory newuri) public onlyOwner {
        _baseTokenURI = newuri;
    }

    function withdraw() public onlyOwner {
        require(address(this).balance > 0, "Insufficient balance");
        Address.sendValue(payable(msg.sender), address(this).balance);
    }

    function withdrawTo(uint256 amount, address payable to) public onlyOwner {
        require(address(this).balance > 0, "Insufficient balance");
        Address.sendValue(to, amount);
    }
    

    function _mintSingle(address mintAddress) private {
        uint256 mintIndex = totalSupply();
        if (mintIndex < MAX_TOKENS) {
            _safeMint(mintAddress, mintIndex);
            emit BAICMinted(mintAddress, mintIndex);
        }
    }

    function _baseURI() internal view virtual returns (string memory) {
	    return _baseTokenURI;
	}

    function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
        require(_exists(tokenId), "Token does not exist");
        string memory currentBaseURI = _baseURI();
        return bytes(currentBaseURI).length > 0	? string(abi.encodePacked(currentBaseURI, tokenId.toString())) : "";
	}
}

File 2 of 12 : ERC721Optimized.sol
// SPDX-License-Identifier: GPL-3.0
pragma solidity ^0.8.15;
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 ERC721Optimized is Context, ERC165, IERC721, IERC721Metadata {
    using Address for address;
    string private _name;
    string private _symbol;
    address[] internal _owners;
    mapping(uint256 => address) private _tokenApprovals;
    mapping(address => mapping(address => bool)) private _operatorApprovals;     
    constructor(string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
    }     

    function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) {
        return
            interfaceId == type(IERC721).interfaceId ||
            interfaceId == type(IERC721Metadata).interfaceId ||
            super.supportsInterface(interfaceId);
    }
    
    function balanceOf(address owner) public view virtual override returns (uint256) {
        require(owner != address(0), "ERC721: balance query for the zero address");
        uint count = 0;
        uint length = _owners.length;
        for( uint i = 0; i < length; ++i ){
          if( owner == _owners[i] ){
            ++count;
          }
        }
        delete length;
        return count;
    }

    function getOwners() public view virtual returns (address[] memory) {
        return _owners;
    }

    function totalSupply() public view virtual returns (uint256) {
        return _owners.length;
    }

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

    function name() public view virtual override returns (string memory) {
        return _name;
    }

    function symbol() public view virtual override returns (string memory) {
        return _symbol;
    }

    function approve(address to, uint256 tokenId) public virtual override {
        address owner = ERC721Optimized.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);
    }

    function getApproved(uint256 tokenId) public view virtual override returns (address) {
        require(_exists(tokenId), "ERC721: approved query for nonexistent token");

        return _tokenApprovals[tokenId];
    }

    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);
    }

    function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) {
        return _operatorApprovals[owner][operator];
    }

    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public virtual override {
        require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved");
        _transfer(from, to, tokenId);
    }

    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public virtual override {
        safeTransferFrom(from, to, tokenId, "");
    }

    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);
    }

    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");
    }

	function _exists(uint256 tokenId) internal view virtual returns (bool) {
        return tokenId < _owners.length && _owners[tokenId] != address(0);
    }

	function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) {
        require(_exists(tokenId), "ERC721: operator query for nonexistent token");
        address owner = ERC721Optimized.ownerOf(tokenId);
        return (spender == owner || isApprovedForAll(owner, spender) || getApproved(tokenId) == spender);
    }

	function _safeMint(address to, uint256 tokenId) internal virtual {
        _safeMint(to, tokenId, "");
    }
	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"
        );
    }

	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);
    }

	function _burn(uint256 tokenId) internal virtual {
        address owner = ERC721Optimized.ownerOf(tokenId);

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

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

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

	function _transfer(
        address from,
        address to,
        uint256 tokenId
    ) internal virtual {
        require(ERC721Optimized.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);
    }

	function _approve(address to, uint256 tokenId) internal virtual {
        _tokenApprovals[tokenId] = to;
        emit Approval(ERC721Optimized.ownerOf(tokenId), to, tokenId);
    }

	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;
        }
    }
    
	function _beforeTokenTransfer(
        address from,
        address to,
        uint256 tokenId
    ) internal virtual {}
}

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

File 4 of 12 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol)

pragma solidity ^0.8.0;

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

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

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

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

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

        _;

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

File 5 of 12 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol)

pragma solidity ^0.8.1;

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

        return account.code.length > 0;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

File 8 of 12 : IERC721Receiver.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721Receiver.sol)

pragma solidity ^0.8.0;

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

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

pragma solidity ^0.8.0;

import "../IERC721.sol";

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

pragma solidity ^0.8.0;

import "./IERC165.sol";

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

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

pragma solidity ^0.8.0;

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

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"baseURI","type":"string"}],"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":"mintAddress","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"BAICMinted","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":"string","name":"_value","type":"string"},{"indexed":true,"internalType":"uint256","name":"_id","type":"uint256"}],"name":"PermanentURI","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_TOKENS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_baseTokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"balance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"numberOfTokens","type":"uint256"}],"name":"devMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"freeMintAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"string","name":"ipfsHash","type":"string"}],"name":"freezeMetadata","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getCurrentMintPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getMintPriceForToken","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getOwners","outputs":[{"internalType":"address[]","name":"","type":"address[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"numberOfTokens","type":"uint256"}],"name":"getTotalMintPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxFreeTokensPerTx","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxFreeTokensPerWallet","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxTokensPerTx","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mintPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"numberOfTokens","type":"uint256"}],"name":"publicMint","outputs":[],"stateMutability":"payable","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":"newuri","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"setFreeMintAmount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"setMaxFreeTokensPerTx","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"setMaxFreeTokensPerWallet","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"setMaxTokensPerTx","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newPrice","type":"uint256"}],"name":"setMintPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"address payable","name":"to","type":"address"}],"name":"withdrawTo","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60806040526109c4600755600a60085560016009556001600a5566b1a2bc2ec50000600b553480156200003157600080fd5b50604051620029e2380380620029e2833981016040819052620000549162000159565b6040518060400160405280600b81526020016a2137b932b220a4a1b63ab160a91b815250604051806040016040528060048152602001634241494360e01b8152508160009081620000a69190620002c4565b506001620000b58282620002c4565b505050620000d2620000cc620000ed60201b60201c565b620000f1565b6001600655600c620000e58282620002c4565b505062000390565b3390565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b634e487b7160e01b600052604160045260246000fd5b600060208083850312156200016d57600080fd5b82516001600160401b03808211156200018557600080fd5b818501915085601f8301126200019a57600080fd5b815181811115620001af57620001af62000143565b604051601f8201601f19908116603f01168101908382118183101715620001da57620001da62000143565b816040528281528886848701011115620001f357600080fd5b600093505b82841015620002175784840186015181850187015292850192620001f8565b82841115620002295760008684830101525b98975050505050505050565b600181811c908216806200024a57607f821691505b6020821081036200026b57634e487b7160e01b600052602260045260246000fd5b50919050565b601f821115620002bf57600081815260208120601f850160051c810160208610156200029a5750805b601f850160051c820191505b81811015620002bb57828155600101620002a6565b5050505b505050565b81516001600160401b03811115620002e057620002e062000143565b620002f881620002f1845462000235565b8462000271565b602080601f831160018114620003305760008415620003175750858301515b600019600386901b1c1916600185901b178555620002bb565b600085815260208120601f198616915b82811015620003615788860151825594840194600190910190840162000340565b5085821015620003805787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b61264280620003a06000396000f3fe60806040526004361061023a5760003560e01c80638da5cb5b1161012e578063ca403e4d116100ab578063e985e9c51161006f578063e985e9c51461066a578063f2fde38b146106b3578063f47c84c5146106d3578063f4a0a528146106e9578063fe5a5ef41461070957600080fd5b8063ca403e4d146105dd578063cfc86f7b146105fd578063d25a2f5714610612578063e3d670d714610628578063e82ded211461065557600080fd5b8063b88d4fde116100f2578063b88d4fde1461053d578063b9bed05e1461055d578063c0c19a6e1461057d578063c86283c81461059d578063c87b56dd146105bd57600080fd5b80638da5cb5b146104b257806395d89b41146104d0578063a0e67e2b146104e5578063a22cb46514610507578063a499fcd61461052757600080fd5b806342842e0e116101bc5780636352211e116101805780636352211e146104275780636817c76c1461044757806370a082311461045d578063715018a61461047d5780637f953a221461049257600080fd5b806342842e0e1461039157806355f804b3146103b15780635c5ed16d146103d15780635e307a48146103f1578063627804af1461040757600080fd5b806318160ddd1161020357806318160ddd1461031e57806323b872dd146103335780632db11544146103535780633a467e3d146103665780633ccfd60b1461037c57600080fd5b8062b58b091461023f57806301ffc9a71461027257806306fdde03146102a2578063081812fc146102c4578063095ea7b3146102fc575b600080fd5b34801561024b57600080fd5b5061025f61025a366004611ed5565b610729565b6040519081526020015b60405180910390f35b34801561027e57600080fd5b5061029261028d366004611f04565b61083e565b6040519015158152602001610269565b3480156102ae57600080fd5b506102b7610890565b6040516102699190611f79565b3480156102d057600080fd5b506102e46102df366004611ed5565b610922565b6040516001600160a01b039091168152602001610269565b34801561030857600080fd5b5061031c610317366004611fa1565b6109aa565b005b34801561032a57600080fd5b5060025461025f565b34801561033f57600080fd5b5061031c61034e366004611fcd565b610abf565b61031c610361366004611ed5565b610af0565b34801561037257600080fd5b5061025f60075481565b34801561038857600080fd5b5061031c610d89565b34801561039d57600080fd5b5061031c6103ac366004611fcd565b610e06565b3480156103bd57600080fd5b5061031c6103cc3660046120ba565b610e21565b3480156103dd57600080fd5b5061025f6103ec366004611ed5565b610e5b565b3480156103fd57600080fd5b5061025f60085481565b34801561041357600080fd5b5061031c610422366004611fa1565b610e76565b34801561043357600080fd5b506102e4610442366004611ed5565b610ec6565b34801561045357600080fd5b5061025f600b5481565b34801561046957600080fd5b5061025f6104783660046120ef565b610f52565b34801561048957600080fd5b5061031c611024565b34801561049e57600080fd5b5061031c6104ad366004611ed5565b611058565b3480156104be57600080fd5b506005546001600160a01b03166102e4565b3480156104dc57600080fd5b506102b7611087565b3480156104f157600080fd5b506104fa611096565b604051610269919061210c565b34801561051357600080fd5b5061031c610522366004612159565b6110f7565b34801561053357600080fd5b5061025f600a5481565b34801561054957600080fd5b5061031c610558366004612197565b6111bb565b34801561056957600080fd5b5061031c610578366004611ed5565b6111f3565b34801561058957600080fd5b5061031c610598366004611ed5565b611272565b3480156105a957600080fd5b5061031c6105b8366004612217565b6112a1565b3480156105c957600080fd5b506102b76105d8366004611ed5565b61131c565b3480156105e957600080fd5b5061031c6105f836600461223c565b6113c6565b34801561060957600080fd5b506102b76114b7565b34801561061e57600080fd5b5061025f60095481565b34801561063457600080fd5b5061025f6106433660046120ef565b600d6020526000908152604090205481565b34801561066157600080fd5b5061025f611545565b34801561067657600080fd5b50610292610685366004612283565b6001600160a01b03918216600090815260046020908152604080832093909416825291909152205460ff1690565b3480156106bf57600080fd5b5061031c6106ce3660046120ef565b611566565b3480156106df57600080fd5b5061025f61271081565b3480156106f557600080fd5b5061031c610704366004611ed5565b611601565b34801561071557600080fd5b5061031c610724366004611ed5565b611630565b60008082116107905760405162461bcd60e51b815260206004820152602860248201527f6e756d6265724f66546f6b656e73206d7573742062652067726561746572207460448201526768616e207a65726f60c01b60648201526084015b60405180910390fd5b600061079b60025490565b905060006107a984836122c7565b90506127108111156107f35760405162461bcd60e51b81526020600482015260136024820152724578636565646564206d617820737570706c7960681b6044820152606401610787565b6007548111610806575060009392505050565b60005b818310156108365761081a83610e5b565b61082490826122c7565b905061082f836122df565b9250610809565b949350505050565b60006001600160e01b031982166380ac58cd60e01b148061086f57506001600160e01b03198216635b5e139f60e01b145b8061088a57506301ffc9a760e01b6001600160e01b03198316145b92915050565b60606000805461089f906122f8565b80601f01602080910402602001604051908101604052809291908181526020018280546108cb906122f8565b80156109185780601f106108ed57610100808354040283529160200191610918565b820191906000526020600020905b8154815290600101906020018083116108fb57829003601f168201915b5050505050905090565b600061092d8261165f565b61098e5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610787565b506000908152600360205260409020546001600160a01b031690565b60006109b582610ec6565b9050806001600160a01b0316836001600160a01b031603610a225760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610787565b336001600160a01b0382161480610a3e5750610a3e8133610685565b610ab05760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610787565b610aba83836116a9565b505050565b610ac93382611717565b610ae55760405162461bcd60e51b815260040161078790612332565b610aba838383611800565b600260065403610b425760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610787565b60026006556000610b5260025490565b9050600754811015610c2f57600954821115610bb05760405162461bcd60e51b815260206004820152601f60248201527f546f6f206d616e7920746f6b656e7320706572207472616e73616374696f6e006044820152606401610787565b600a54336000908152600d6020526040902054610bce9084906122c7565b1115610c2a5760405162461bcd60e51b815260206004820152602560248201527f596f752077696c6c20657863656564206d617820616d6f756e74207065722077604482015264185b1b195d60da1b6064820152608401610787565b610c81565b600854821115610c815760405162461bcd60e51b815260206004820152601f60248201527f546f6f206d616e7920746f6b656e7320706572207472616e73616374696f6e006044820152606401610787565b612710610c8e83836122c7565b1115610cdc5760405162461bcd60e51b815260206004820181905260248201527f507572636861736520776f756c6420657863656564206d617820737570706c796044820152606401610787565b34610ce683610729565b14610d335760405162461bcd60e51b815260206004820152601b60248201527f496e636f727265637420457468657220616d6f756e742073656e7400000000006044820152606401610787565b60005b82811015610d7f57610d4733611956565b336000908152600d60205260408120805460019290610d679084906122c7565b90915550819050610d77816122df565b915050610d36565b5050600160065550565b6005546001600160a01b03163314610db35760405162461bcd60e51b815260040161078790612383565b60004711610dfa5760405162461bcd60e51b8152602060048201526014602482015273496e73756666696369656e742062616c616e636560601b6044820152606401610787565b610e0433476119b1565b565b610aba838383604051806020016040528060008152506111bb565b6005546001600160a01b03163314610e4b5760405162461bcd60e51b815260040161078790612383565b600c610e578282612406565b5050565b6000600754821015610e6e57600061088a565b5050600b5490565b6005546001600160a01b03163314610ea05760405162461bcd60e51b815260040161078790612383565b60005b81811015610aba57610eb483611956565b80610ebe816122df565b915050610ea3565b60008060028381548110610edc57610edc6124c6565b6000918252602090912001546001600160a01b031690508061088a5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610787565b60006001600160a01b038216610fbd5760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610787565b600254600090815b8181101561101b5760028181548110610fe057610fe06124c6565b6000918252602090912001546001600160a01b039081169086160361100b57611008836122df565b92505b611014816122df565b9050610fc5565b50909392505050565b6005546001600160a01b0316331461104e5760405162461bcd60e51b815260040161078790612383565b610e046000611aca565b6005546001600160a01b031633146110825760405162461bcd60e51b815260040161078790612383565b600755565b60606001805461089f906122f8565b6060600280548060200260200160405190810160405280929190818152602001828054801561091857602002820191906000526020600020905b81546001600160a01b031681526001909101906020018083116110d0575050505050905090565b336001600160a01b0383160361114f5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610787565b3360008181526004602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6111c53383611717565b6111e15760405162461bcd60e51b815260040161078790612332565b6111ed84848484611b1c565b50505050565b6005546001600160a01b0316331461121d5760405162461bcd60e51b815260040161078790612383565b6000811161126d5760405162461bcd60e51b815260206004820181905260248201527f416d6f756e74206d7573742062652067726561746572207468616e207a65726f6044820152606401610787565b600855565b6005546001600160a01b0316331461129c5760405162461bcd60e51b815260040161078790612383565b600955565b6005546001600160a01b031633146112cb5760405162461bcd60e51b815260040161078790612383565b600047116113125760405162461bcd60e51b8152602060048201526014602482015273496e73756666696369656e742062616c616e636560601b6044820152606401610787565b610e5781836119b1565b60606113278261165f565b61136a5760405162461bcd60e51b8152602060048201526014602482015273151bdad95b88191bd95cc81b9bdd08195e1a5cdd60621b6044820152606401610787565b6000611374611b4f565b9050600081511161139457604051806020016040528060008152506113bf565b8061139e84611b5e565b6040516020016113af9291906124dc565b6040516020818303038152906040525b9392505050565b6113cf8261165f565b6114125760405162461bcd60e51b8152602060048201526014602482015273151bdad95b88191bd95cc81b9bdd08195e1a5cdd60621b6044820152606401610787565b61141b82610ec6565b6001600160a01b0316336001600160a01b03161461147b5760405162461bcd60e51b815260206004820152601960248201527f596f7520617265206e6f74206120746f6b656e206f776e6572000000000000006044820152606401610787565b817fa109ba539900bf1b633f956d63c96fc89b814c7287f7aa50a9216d0b55657207826040516114ab9190611f79565b60405180910390a25050565b600c80546114c4906122f8565b80601f01602080910402602001604051908101604052809291908181526020018280546114f0906122f8565b801561153d5780601f106115125761010080835404028352916020019161153d565b820191906000526020600020905b81548152906001019060200180831161152057829003601f168201915b505050505081565b600060075461155360025490565b101561155f5750600090565b50600b5490565b6005546001600160a01b031633146115905760405162461bcd60e51b815260040161078790612383565b6001600160a01b0381166115f55760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610787565b6115fe81611aca565b50565b6005546001600160a01b0316331461162b5760405162461bcd60e51b815260040161078790612383565b600b55565b6005546001600160a01b0316331461165a5760405162461bcd60e51b815260040161078790612383565b600a55565b6002546000908210801561088a575060006001600160a01b03166002838154811061168c5761168c6124c6565b6000918252602090912001546001600160a01b0316141592915050565b600081815260036020526040902080546001600160a01b0319166001600160a01b03841690811790915581906116de82610ec6565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60006117228261165f565b6117835760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610787565b600061178e83610ec6565b9050806001600160a01b0316846001600160a01b031614806117d557506001600160a01b0380821660009081526004602090815260408083209388168352929052205460ff165b806108365750836001600160a01b03166117ee84610922565b6001600160a01b031614949350505050565b826001600160a01b031661181382610ec6565b6001600160a01b03161461187b5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b6064820152608401610787565b6001600160a01b0382166118dd5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610787565b6118e86000826116a9565b81600282815481106118fc576118fc6124c6565b6000918252602082200180546001600160a01b0319166001600160a01b03938416179055604051839285811692908716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9190a4505050565b600061196160025490565b9050612710811015610e57576119778282611c5f565b60405181906001600160a01b038416907f2c1b33dfd18df2e5471e5556418c37abe63c98282ce111f2f63eeef42bdbbb8190600090a35050565b80471015611a015760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e63650000006044820152606401610787565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114611a4e576040519150601f19603f3d011682016040523d82523d6000602084013e611a53565b606091505b5050905080610aba5760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d617920686176652072657665727465640000000000006064820152608401610787565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b611b27848484611800565b611b3384848484611c79565b6111ed5760405162461bcd60e51b81526004016107879061250b565b6060600c805461089f906122f8565b606081600003611b855750506040805180820190915260018152600360fc1b602082015290565b8160005b8115611baf5780611b99816122df565b9150611ba89050600a83612573565b9150611b89565b60008167ffffffffffffffff811115611bca57611bca61200e565b6040519080825280601f01601f191660200182016040528015611bf4576020820181803683370190505b5090505b841561083657611c09600183612587565b9150611c16600a8661259e565b611c219060306122c7565b60f81b818381518110611c3657611c366124c6565b60200101906001600160f81b031916908160001a905350611c58600a86612573565b9450611bf8565b610e57828260405180602001604052806000815250611d7a565b60006001600160a01b0384163b15611d6f57604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290611cbd9033908990889088906004016125b2565b6020604051808303816000875af1925050508015611cf8575060408051601f3d908101601f19168201909252611cf5918101906125ef565b60015b611d55573d808015611d26576040519150601f19603f3d011682016040523d82523d6000602084013e611d2b565b606091505b508051600003611d4d5760405162461bcd60e51b81526004016107879061250b565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050610836565b506001949350505050565b611d848383611dad565b611d916000848484611c79565b610aba5760405162461bcd60e51b81526004016107879061250b565b6001600160a01b038216611e035760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610787565b611e0c8161165f565b15611e595760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610787565b6002805460018101825560009182527f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ace0180546001600160a01b0319166001600160a01b0385169081179091556040518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b600060208284031215611ee757600080fd5b5035919050565b6001600160e01b0319811681146115fe57600080fd5b600060208284031215611f1657600080fd5b81356113bf81611eee565b60005b83811015611f3c578181015183820152602001611f24565b838111156111ed5750506000910152565b60008151808452611f65816020860160208601611f21565b601f01601f19169290920160200192915050565b6020815260006113bf6020830184611f4d565b6001600160a01b03811681146115fe57600080fd5b60008060408385031215611fb457600080fd5b8235611fbf81611f8c565b946020939093013593505050565b600080600060608486031215611fe257600080fd5b8335611fed81611f8c565b92506020840135611ffd81611f8c565b929592945050506040919091013590565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff8084111561203f5761203f61200e565b604051601f8501601f19908116603f011681019082821181831017156120675761206761200e565b8160405280935085815286868601111561208057600080fd5b858560208301376000602087830101525050509392505050565b600082601f8301126120ab57600080fd5b6113bf83833560208501612024565b6000602082840312156120cc57600080fd5b813567ffffffffffffffff8111156120e357600080fd5b6108368482850161209a565b60006020828403121561210157600080fd5b81356113bf81611f8c565b6020808252825182820181905260009190848201906040850190845b8181101561214d5783516001600160a01b031683529284019291840191600101612128565b50909695505050505050565b6000806040838503121561216c57600080fd5b823561217781611f8c565b91506020830135801515811461218c57600080fd5b809150509250929050565b600080600080608085870312156121ad57600080fd5b84356121b881611f8c565b935060208501356121c881611f8c565b925060408501359150606085013567ffffffffffffffff8111156121eb57600080fd5b8501601f810187136121fc57600080fd5b61220b87823560208401612024565b91505092959194509250565b6000806040838503121561222a57600080fd5b82359150602083013561218c81611f8c565b6000806040838503121561224f57600080fd5b82359150602083013567ffffffffffffffff81111561226d57600080fd5b6122798582860161209a565b9150509250929050565b6000806040838503121561229657600080fd5b82356122a181611f8c565b9150602083013561218c81611f8c565b634e487b7160e01b600052601160045260246000fd5b600082198211156122da576122da6122b1565b500190565b6000600182016122f1576122f16122b1565b5060010190565b600181811c9082168061230c57607f821691505b60208210810361232c57634e487b7160e01b600052602260045260246000fd5b50919050565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b601f821115610aba57600081815260208120601f850160051c810160208610156123df5750805b601f850160051c820191505b818110156123fe578281556001016123eb565b505050505050565b815167ffffffffffffffff8111156124205761242061200e565b6124348161242e84546122f8565b846123b8565b602080601f83116001811461246957600084156124515750858301515b600019600386901b1c1916600185901b1785556123fe565b600085815260208120601f198616915b8281101561249857888601518255948401946001909101908401612479565b50858210156124b65787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b634e487b7160e01b600052603260045260246000fd5b600083516124ee818460208801611f21565b835190830190612502818360208801611f21565b01949350505050565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b634e487b7160e01b600052601260045260246000fd5b6000826125825761258261255d565b500490565b600082821015612599576125996122b1565b500390565b6000826125ad576125ad61255d565b500690565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906125e590830184611f4d565b9695505050505050565b60006020828403121561260157600080fd5b81516113bf81611eee56fea2646970667358221220612382892dae6dddcb7dc1768bacc2056be6ed8219d3404a1522afc4920178a164736f6c634300080f00330000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000001f68747470733a2f2f6d6574612e626f7265646169636c75622e636f6d2f742f00

Deployed Bytecode

0x60806040526004361061023a5760003560e01c80638da5cb5b1161012e578063ca403e4d116100ab578063e985e9c51161006f578063e985e9c51461066a578063f2fde38b146106b3578063f47c84c5146106d3578063f4a0a528146106e9578063fe5a5ef41461070957600080fd5b8063ca403e4d146105dd578063cfc86f7b146105fd578063d25a2f5714610612578063e3d670d714610628578063e82ded211461065557600080fd5b8063b88d4fde116100f2578063b88d4fde1461053d578063b9bed05e1461055d578063c0c19a6e1461057d578063c86283c81461059d578063c87b56dd146105bd57600080fd5b80638da5cb5b146104b257806395d89b41146104d0578063a0e67e2b146104e5578063a22cb46514610507578063a499fcd61461052757600080fd5b806342842e0e116101bc5780636352211e116101805780636352211e146104275780636817c76c1461044757806370a082311461045d578063715018a61461047d5780637f953a221461049257600080fd5b806342842e0e1461039157806355f804b3146103b15780635c5ed16d146103d15780635e307a48146103f1578063627804af1461040757600080fd5b806318160ddd1161020357806318160ddd1461031e57806323b872dd146103335780632db11544146103535780633a467e3d146103665780633ccfd60b1461037c57600080fd5b8062b58b091461023f57806301ffc9a71461027257806306fdde03146102a2578063081812fc146102c4578063095ea7b3146102fc575b600080fd5b34801561024b57600080fd5b5061025f61025a366004611ed5565b610729565b6040519081526020015b60405180910390f35b34801561027e57600080fd5b5061029261028d366004611f04565b61083e565b6040519015158152602001610269565b3480156102ae57600080fd5b506102b7610890565b6040516102699190611f79565b3480156102d057600080fd5b506102e46102df366004611ed5565b610922565b6040516001600160a01b039091168152602001610269565b34801561030857600080fd5b5061031c610317366004611fa1565b6109aa565b005b34801561032a57600080fd5b5060025461025f565b34801561033f57600080fd5b5061031c61034e366004611fcd565b610abf565b61031c610361366004611ed5565b610af0565b34801561037257600080fd5b5061025f60075481565b34801561038857600080fd5b5061031c610d89565b34801561039d57600080fd5b5061031c6103ac366004611fcd565b610e06565b3480156103bd57600080fd5b5061031c6103cc3660046120ba565b610e21565b3480156103dd57600080fd5b5061025f6103ec366004611ed5565b610e5b565b3480156103fd57600080fd5b5061025f60085481565b34801561041357600080fd5b5061031c610422366004611fa1565b610e76565b34801561043357600080fd5b506102e4610442366004611ed5565b610ec6565b34801561045357600080fd5b5061025f600b5481565b34801561046957600080fd5b5061025f6104783660046120ef565b610f52565b34801561048957600080fd5b5061031c611024565b34801561049e57600080fd5b5061031c6104ad366004611ed5565b611058565b3480156104be57600080fd5b506005546001600160a01b03166102e4565b3480156104dc57600080fd5b506102b7611087565b3480156104f157600080fd5b506104fa611096565b604051610269919061210c565b34801561051357600080fd5b5061031c610522366004612159565b6110f7565b34801561053357600080fd5b5061025f600a5481565b34801561054957600080fd5b5061031c610558366004612197565b6111bb565b34801561056957600080fd5b5061031c610578366004611ed5565b6111f3565b34801561058957600080fd5b5061031c610598366004611ed5565b611272565b3480156105a957600080fd5b5061031c6105b8366004612217565b6112a1565b3480156105c957600080fd5b506102b76105d8366004611ed5565b61131c565b3480156105e957600080fd5b5061031c6105f836600461223c565b6113c6565b34801561060957600080fd5b506102b76114b7565b34801561061e57600080fd5b5061025f60095481565b34801561063457600080fd5b5061025f6106433660046120ef565b600d6020526000908152604090205481565b34801561066157600080fd5b5061025f611545565b34801561067657600080fd5b50610292610685366004612283565b6001600160a01b03918216600090815260046020908152604080832093909416825291909152205460ff1690565b3480156106bf57600080fd5b5061031c6106ce3660046120ef565b611566565b3480156106df57600080fd5b5061025f61271081565b3480156106f557600080fd5b5061031c610704366004611ed5565b611601565b34801561071557600080fd5b5061031c610724366004611ed5565b611630565b60008082116107905760405162461bcd60e51b815260206004820152602860248201527f6e756d6265724f66546f6b656e73206d7573742062652067726561746572207460448201526768616e207a65726f60c01b60648201526084015b60405180910390fd5b600061079b60025490565b905060006107a984836122c7565b90506127108111156107f35760405162461bcd60e51b81526020600482015260136024820152724578636565646564206d617820737570706c7960681b6044820152606401610787565b6007548111610806575060009392505050565b60005b818310156108365761081a83610e5b565b61082490826122c7565b905061082f836122df565b9250610809565b949350505050565b60006001600160e01b031982166380ac58cd60e01b148061086f57506001600160e01b03198216635b5e139f60e01b145b8061088a57506301ffc9a760e01b6001600160e01b03198316145b92915050565b60606000805461089f906122f8565b80601f01602080910402602001604051908101604052809291908181526020018280546108cb906122f8565b80156109185780601f106108ed57610100808354040283529160200191610918565b820191906000526020600020905b8154815290600101906020018083116108fb57829003601f168201915b5050505050905090565b600061092d8261165f565b61098e5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610787565b506000908152600360205260409020546001600160a01b031690565b60006109b582610ec6565b9050806001600160a01b0316836001600160a01b031603610a225760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610787565b336001600160a01b0382161480610a3e5750610a3e8133610685565b610ab05760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610787565b610aba83836116a9565b505050565b610ac93382611717565b610ae55760405162461bcd60e51b815260040161078790612332565b610aba838383611800565b600260065403610b425760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610787565b60026006556000610b5260025490565b9050600754811015610c2f57600954821115610bb05760405162461bcd60e51b815260206004820152601f60248201527f546f6f206d616e7920746f6b656e7320706572207472616e73616374696f6e006044820152606401610787565b600a54336000908152600d6020526040902054610bce9084906122c7565b1115610c2a5760405162461bcd60e51b815260206004820152602560248201527f596f752077696c6c20657863656564206d617820616d6f756e74207065722077604482015264185b1b195d60da1b6064820152608401610787565b610c81565b600854821115610c815760405162461bcd60e51b815260206004820152601f60248201527f546f6f206d616e7920746f6b656e7320706572207472616e73616374696f6e006044820152606401610787565b612710610c8e83836122c7565b1115610cdc5760405162461bcd60e51b815260206004820181905260248201527f507572636861736520776f756c6420657863656564206d617820737570706c796044820152606401610787565b34610ce683610729565b14610d335760405162461bcd60e51b815260206004820152601b60248201527f496e636f727265637420457468657220616d6f756e742073656e7400000000006044820152606401610787565b60005b82811015610d7f57610d4733611956565b336000908152600d60205260408120805460019290610d679084906122c7565b90915550819050610d77816122df565b915050610d36565b5050600160065550565b6005546001600160a01b03163314610db35760405162461bcd60e51b815260040161078790612383565b60004711610dfa5760405162461bcd60e51b8152602060048201526014602482015273496e73756666696369656e742062616c616e636560601b6044820152606401610787565b610e0433476119b1565b565b610aba838383604051806020016040528060008152506111bb565b6005546001600160a01b03163314610e4b5760405162461bcd60e51b815260040161078790612383565b600c610e578282612406565b5050565b6000600754821015610e6e57600061088a565b5050600b5490565b6005546001600160a01b03163314610ea05760405162461bcd60e51b815260040161078790612383565b60005b81811015610aba57610eb483611956565b80610ebe816122df565b915050610ea3565b60008060028381548110610edc57610edc6124c6565b6000918252602090912001546001600160a01b031690508061088a5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610787565b60006001600160a01b038216610fbd5760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610787565b600254600090815b8181101561101b5760028181548110610fe057610fe06124c6565b6000918252602090912001546001600160a01b039081169086160361100b57611008836122df565b92505b611014816122df565b9050610fc5565b50909392505050565b6005546001600160a01b0316331461104e5760405162461bcd60e51b815260040161078790612383565b610e046000611aca565b6005546001600160a01b031633146110825760405162461bcd60e51b815260040161078790612383565b600755565b60606001805461089f906122f8565b6060600280548060200260200160405190810160405280929190818152602001828054801561091857602002820191906000526020600020905b81546001600160a01b031681526001909101906020018083116110d0575050505050905090565b336001600160a01b0383160361114f5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610787565b3360008181526004602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6111c53383611717565b6111e15760405162461bcd60e51b815260040161078790612332565b6111ed84848484611b1c565b50505050565b6005546001600160a01b0316331461121d5760405162461bcd60e51b815260040161078790612383565b6000811161126d5760405162461bcd60e51b815260206004820181905260248201527f416d6f756e74206d7573742062652067726561746572207468616e207a65726f6044820152606401610787565b600855565b6005546001600160a01b0316331461129c5760405162461bcd60e51b815260040161078790612383565b600955565b6005546001600160a01b031633146112cb5760405162461bcd60e51b815260040161078790612383565b600047116113125760405162461bcd60e51b8152602060048201526014602482015273496e73756666696369656e742062616c616e636560601b6044820152606401610787565b610e5781836119b1565b60606113278261165f565b61136a5760405162461bcd60e51b8152602060048201526014602482015273151bdad95b88191bd95cc81b9bdd08195e1a5cdd60621b6044820152606401610787565b6000611374611b4f565b9050600081511161139457604051806020016040528060008152506113bf565b8061139e84611b5e565b6040516020016113af9291906124dc565b6040516020818303038152906040525b9392505050565b6113cf8261165f565b6114125760405162461bcd60e51b8152602060048201526014602482015273151bdad95b88191bd95cc81b9bdd08195e1a5cdd60621b6044820152606401610787565b61141b82610ec6565b6001600160a01b0316336001600160a01b03161461147b5760405162461bcd60e51b815260206004820152601960248201527f596f7520617265206e6f74206120746f6b656e206f776e6572000000000000006044820152606401610787565b817fa109ba539900bf1b633f956d63c96fc89b814c7287f7aa50a9216d0b55657207826040516114ab9190611f79565b60405180910390a25050565b600c80546114c4906122f8565b80601f01602080910402602001604051908101604052809291908181526020018280546114f0906122f8565b801561153d5780601f106115125761010080835404028352916020019161153d565b820191906000526020600020905b81548152906001019060200180831161152057829003601f168201915b505050505081565b600060075461155360025490565b101561155f5750600090565b50600b5490565b6005546001600160a01b031633146115905760405162461bcd60e51b815260040161078790612383565b6001600160a01b0381166115f55760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610787565b6115fe81611aca565b50565b6005546001600160a01b0316331461162b5760405162461bcd60e51b815260040161078790612383565b600b55565b6005546001600160a01b0316331461165a5760405162461bcd60e51b815260040161078790612383565b600a55565b6002546000908210801561088a575060006001600160a01b03166002838154811061168c5761168c6124c6565b6000918252602090912001546001600160a01b0316141592915050565b600081815260036020526040902080546001600160a01b0319166001600160a01b03841690811790915581906116de82610ec6565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60006117228261165f565b6117835760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610787565b600061178e83610ec6565b9050806001600160a01b0316846001600160a01b031614806117d557506001600160a01b0380821660009081526004602090815260408083209388168352929052205460ff165b806108365750836001600160a01b03166117ee84610922565b6001600160a01b031614949350505050565b826001600160a01b031661181382610ec6565b6001600160a01b03161461187b5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b6064820152608401610787565b6001600160a01b0382166118dd5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610787565b6118e86000826116a9565b81600282815481106118fc576118fc6124c6565b6000918252602082200180546001600160a01b0319166001600160a01b03938416179055604051839285811692908716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9190a4505050565b600061196160025490565b9050612710811015610e57576119778282611c5f565b60405181906001600160a01b038416907f2c1b33dfd18df2e5471e5556418c37abe63c98282ce111f2f63eeef42bdbbb8190600090a35050565b80471015611a015760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e63650000006044820152606401610787565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114611a4e576040519150601f19603f3d011682016040523d82523d6000602084013e611a53565b606091505b5050905080610aba5760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d617920686176652072657665727465640000000000006064820152608401610787565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b611b27848484611800565b611b3384848484611c79565b6111ed5760405162461bcd60e51b81526004016107879061250b565b6060600c805461089f906122f8565b606081600003611b855750506040805180820190915260018152600360fc1b602082015290565b8160005b8115611baf5780611b99816122df565b9150611ba89050600a83612573565b9150611b89565b60008167ffffffffffffffff811115611bca57611bca61200e565b6040519080825280601f01601f191660200182016040528015611bf4576020820181803683370190505b5090505b841561083657611c09600183612587565b9150611c16600a8661259e565b611c219060306122c7565b60f81b818381518110611c3657611c366124c6565b60200101906001600160f81b031916908160001a905350611c58600a86612573565b9450611bf8565b610e57828260405180602001604052806000815250611d7a565b60006001600160a01b0384163b15611d6f57604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290611cbd9033908990889088906004016125b2565b6020604051808303816000875af1925050508015611cf8575060408051601f3d908101601f19168201909252611cf5918101906125ef565b60015b611d55573d808015611d26576040519150601f19603f3d011682016040523d82523d6000602084013e611d2b565b606091505b508051600003611d4d5760405162461bcd60e51b81526004016107879061250b565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050610836565b506001949350505050565b611d848383611dad565b611d916000848484611c79565b610aba5760405162461bcd60e51b81526004016107879061250b565b6001600160a01b038216611e035760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610787565b611e0c8161165f565b15611e595760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610787565b6002805460018101825560009182527f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ace0180546001600160a01b0319166001600160a01b0385169081179091556040518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b600060208284031215611ee757600080fd5b5035919050565b6001600160e01b0319811681146115fe57600080fd5b600060208284031215611f1657600080fd5b81356113bf81611eee565b60005b83811015611f3c578181015183820152602001611f24565b838111156111ed5750506000910152565b60008151808452611f65816020860160208601611f21565b601f01601f19169290920160200192915050565b6020815260006113bf6020830184611f4d565b6001600160a01b03811681146115fe57600080fd5b60008060408385031215611fb457600080fd5b8235611fbf81611f8c565b946020939093013593505050565b600080600060608486031215611fe257600080fd5b8335611fed81611f8c565b92506020840135611ffd81611f8c565b929592945050506040919091013590565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff8084111561203f5761203f61200e565b604051601f8501601f19908116603f011681019082821181831017156120675761206761200e565b8160405280935085815286868601111561208057600080fd5b858560208301376000602087830101525050509392505050565b600082601f8301126120ab57600080fd5b6113bf83833560208501612024565b6000602082840312156120cc57600080fd5b813567ffffffffffffffff8111156120e357600080fd5b6108368482850161209a565b60006020828403121561210157600080fd5b81356113bf81611f8c565b6020808252825182820181905260009190848201906040850190845b8181101561214d5783516001600160a01b031683529284019291840191600101612128565b50909695505050505050565b6000806040838503121561216c57600080fd5b823561217781611f8c565b91506020830135801515811461218c57600080fd5b809150509250929050565b600080600080608085870312156121ad57600080fd5b84356121b881611f8c565b935060208501356121c881611f8c565b925060408501359150606085013567ffffffffffffffff8111156121eb57600080fd5b8501601f810187136121fc57600080fd5b61220b87823560208401612024565b91505092959194509250565b6000806040838503121561222a57600080fd5b82359150602083013561218c81611f8c565b6000806040838503121561224f57600080fd5b82359150602083013567ffffffffffffffff81111561226d57600080fd5b6122798582860161209a565b9150509250929050565b6000806040838503121561229657600080fd5b82356122a181611f8c565b9150602083013561218c81611f8c565b634e487b7160e01b600052601160045260246000fd5b600082198211156122da576122da6122b1565b500190565b6000600182016122f1576122f16122b1565b5060010190565b600181811c9082168061230c57607f821691505b60208210810361232c57634e487b7160e01b600052602260045260246000fd5b50919050565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b601f821115610aba57600081815260208120601f850160051c810160208610156123df5750805b601f850160051c820191505b818110156123fe578281556001016123eb565b505050505050565b815167ffffffffffffffff8111156124205761242061200e565b6124348161242e84546122f8565b846123b8565b602080601f83116001811461246957600084156124515750858301515b600019600386901b1c1916600185901b1785556123fe565b600085815260208120601f198616915b8281101561249857888601518255948401946001909101908401612479565b50858210156124b65787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b634e487b7160e01b600052603260045260246000fd5b600083516124ee818460208801611f21565b835190830190612502818360208801611f21565b01949350505050565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b634e487b7160e01b600052601260045260246000fd5b6000826125825761258261255d565b500490565b600082821015612599576125996122b1565b500390565b6000826125ad576125ad61255d565b500690565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906125e590830184611f4d565b9695505050505050565b60006020828403121561260157600080fd5b81516113bf81611eee56fea2646970667358221220612382892dae6dddcb7dc1768bacc2056be6ed8219d3404a1522afc4920178a164736f6c634300080f0033

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

0000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000001f68747470733a2f2f6d6574612e626f7265646169636c75622e636f6d2f742f00

-----Decoded View---------------
Arg [0] : baseURI (string): https://meta.boredaiclub.com/t/

-----Encoded View---------------
3 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000020
Arg [1] : 000000000000000000000000000000000000000000000000000000000000001f
Arg [2] : 68747470733a2f2f6d6574612e626f7265646169636c75622e636f6d2f742f00


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.