ETH Price: $2,143.19 (-2.10%)

Token

Vestran Unity Collection (VUC)
 

Overview

Max Total Supply

10,000 VUC

Holders

907

Transfers

-
2 ( 100.00%)

Market

Volume (24H)

0.255 ETH

Min Price (24H)

$267.90 @ 0.125000 ETH

Max Price (24H)

$278.61 @ 0.130000 ETH

Other Info

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:
Vestrans

Compiler Version
v0.8.20+commit.a1b79de6

Optimization Enabled:
Yes with 200 runs

Other Settings:
paris EvmVersion
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.20;

import "@openzeppelin/contracts/token/ERC1155/ERC1155.sol";
import "@openzeppelin/contracts/token/ERC1155/extensions/ERC1155Supply.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/Strings.sol";

interface ISTAKE {
    function votingPower(address account) external view returns (uint256); 
}

contract Vestrans is ERC1155, Ownable, ERC1155Supply {

    event Buy(address indexed account, uint256 tokenId, uint256 amount, uint256 sendEth, uint256 refundEth);
    event Price(uint256 tokenId, uint256 price, uint256 newPrice);

    using Strings for uint256;

    string public name;
    string public symbol;
    uint256 public totalEthSold;

    address immutable public stakeAddress;
    uint256 constant PRO_WOTING = 200;
    uint256 constant REG_WOTING = 1;

    bool public isOwnerMint;
    uint256 public lastTokenId;

    modifier onlyUser() {
        require(msg.sender == tx.origin, "Not allowed");
        _;
    }

    modifier onlyTokenIdRange(uint256 tokenId) {
        require(tokenId > 0 && tokenId <= lastTokenId, "Unknown token ID");
        _;
    }

    struct NftInfo {
        string name;
        uint256 maxSupply;
        uint256 price;
        uint256 point;
        uint256 maxAllocation;
        uint256 totalMinted;
    }
    
    mapping(uint256 => NftInfo) private _nftInfo;
    mapping(address => mapping (uint256 => uint256)) private _mintCounts;


    constructor(address initialOwner, address daoStake, string memory startUri, string memory tokenName, string memory tokenSymbol) ERC1155(startUri) Ownable(initialOwner) {
        stakeAddress = daoStake;
        name = tokenName;
        symbol = tokenSymbol;
    }


    function setNFTDetails(string memory tierName, uint256 maxSupply, uint256 price, uint256 point, uint256 maxAllocation) external onlyOwner(){
        require(maxSupply > 0 && price > 0 && point > 0 && maxAllocation > 0, "Zero values are not allowed");
        require(lastTokenId < 4, "Max tokenId reached");

        lastTokenId++;
        _nftInfo[lastTokenId].name = tierName;
        _nftInfo[lastTokenId].maxSupply = maxSupply;
        _nftInfo[lastTokenId].price = price;
        _nftInfo[lastTokenId].point = point;
        _nftInfo[lastTokenId].maxAllocation = maxAllocation;
    }


    function buyToMint(uint256 tokenId, uint256 amount) external payable onlyUser() onlyTokenIdRange(tokenId) {
        NftInfo memory info = _nftInfo[tokenId];

        uint256 price = userPrice(msg.sender, tokenId);

        uint256 totalPrice = price * amount;
        require(msg.value >= totalPrice, "Insufficient ETH amount");
        require(totalSupply(tokenId) + amount <= info.maxSupply, "Exceeds max supply");
        require(mintCounts(msg.sender, tokenId) + amount <= info.maxAllocation, "Max purchase limit exceeded");

        _mintCounts[msg.sender][tokenId] += amount; 

        _mint(msg.sender, tokenId, amount, "");

        if(msg.value > totalPrice){
            (bool success, ) = msg.sender.call{value: (msg.value -  totalPrice) }("");
            require(success, "ETH refund failed");
        }

        totalEthSold += totalPrice;

        emit Buy(msg.sender, tokenId, amount, msg.value, (msg.value -  totalPrice));
    }

    function votingPower(address account) public view returns(uint256){
        return ISTAKE(stakeAddress).votingPower(account);
    }
    
    function userPrice(address account, uint256 tokenId) public view returns(uint256){
        uint256 vp = votingPower(account);
        uint256 price = _nftInfo[tokenId].price;
        uint256 discount;
        if(vp == PRO_WOTING){
            discount = (price * 10) / 100;
        }else if(vp == REG_WOTING){
            discount = (price * 5) / 100;
        }
        return (price - discount);
    }

    function ownerMint() external onlyOwner(){
        require(!isOwnerMint, "Owner has already minted");
        require(lastTokenId == 4, "Not all categories are defined");

        for (uint i = 0; i < lastTokenId; i++) {
            _mint(owner(), i+1, (_nftInfo[i+1].maxSupply * 5) / 100, ""); 
        }

        isOwnerMint = true;
    }

    function setPrice(uint256 tokenId, uint256 newPrice) external onlyOwner onlyTokenIdRange(tokenId) {
        uint256 price = _nftInfo[tokenId].price;
        _nftInfo[tokenId].price = newPrice;
        emit Price(tokenId, price, newPrice);
    }


    function setURI(string memory newuri) public onlyOwner {
        _setURI(newuri);
    }


    function withdraw() external onlyOwner {
        uint256 amount = address(this).balance;
        require(amount > 0, "No balance available");
        (bool success, ) = owner().call{value: amount }(""); 
        require(success, "ETH refund failed");
    }


    function getUserNFTs(address account) public view returns (uint256[] memory _userNfts) {
        _userNfts = new uint256[](lastTokenId);   
        for (uint i = 0; i < lastTokenId; i++) {
            _userNfts[i] = balanceOf(account, i + 1);
        }
    }

    function getUserTotalPoints(address account) external view returns (uint256 totalPoints) {
        uint256[] memory  userToken = getUserNFTs(account);
        for (uint i = 0; i < userToken.length; i++) {
            totalPoints += (userToken[i] * _nftInfo[i + 1].point);
        }
    }

    function uri(uint256 tokenId) public view override onlyTokenIdRange(tokenId) returns (string memory) { 
        return string(abi.encodePacked(super.uri(tokenId), Strings.toString(tokenId)));
    }
    
    function nftInfo(uint256 tokenId) public view onlyTokenIdRange(tokenId) returns(NftInfo memory info){
        info = _nftInfo[tokenId];
        info.totalMinted = totalSupply(tokenId);
    }

    function mintCounts(address account, uint256 tokenId) public view onlyTokenIdRange(tokenId) returns(uint256){
        return _mintCounts[account][tokenId];
    }

    function _update(
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory values
    ) internal virtual override(ERC1155, ERC1155Supply) {
        super._update(from, to, ids, values);
    }

    receive() external payable {}
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)

pragma solidity ^0.8.20;

import {Context} from "../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.
 *
 * The initial owner is set to the address provided by the deployer. 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;

    /**
     * @dev The caller account is not authorized to perform an operation.
     */
    error OwnableUnauthorizedAccount(address account);

    /**
     * @dev The owner is not a valid owner account. (eg. `address(0)`)
     */
    error OwnableInvalidOwner(address owner);

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

    /**
     * @dev Initializes the contract setting the address provided by the deployer as the initial owner.
     */
    constructor(address initialOwner) {
        if (initialOwner == address(0)) {
            revert OwnableInvalidOwner(address(0));
        }
        _transferOwnership(initialOwner);
    }

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        _checkOwner();
        _;
    }

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

    /**
     * @dev Throws if the sender is not the owner.
     */
    function _checkOwner() internal view virtual {
        if (owner() != _msgSender()) {
            revert OwnableUnauthorizedAccount(_msgSender());
        }
    }

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby disabling 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 {
        if (newOwner == address(0)) {
            revert OwnableInvalidOwner(address(0));
        }
        _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);
    }
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (interfaces/draft-IERC6093.sol)
pragma solidity ^0.8.20;

/**
 * @dev Standard ERC20 Errors
 * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC20 tokens.
 */
interface IERC20Errors {
    /**
     * @dev Indicates an error related to the current `balance` of a `sender`. Used in transfers.
     * @param sender Address whose tokens are being transferred.
     * @param balance Current balance for the interacting account.
     * @param needed Minimum amount required to perform a transfer.
     */
    error ERC20InsufficientBalance(address sender, uint256 balance, uint256 needed);

    /**
     * @dev Indicates a failure with the token `sender`. Used in transfers.
     * @param sender Address whose tokens are being transferred.
     */
    error ERC20InvalidSender(address sender);

    /**
     * @dev Indicates a failure with the token `receiver`. Used in transfers.
     * @param receiver Address to which tokens are being transferred.
     */
    error ERC20InvalidReceiver(address receiver);

    /**
     * @dev Indicates a failure with the `spender`’s `allowance`. Used in transfers.
     * @param spender Address that may be allowed to operate on tokens without being their owner.
     * @param allowance Amount of tokens a `spender` is allowed to operate with.
     * @param needed Minimum amount required to perform a transfer.
     */
    error ERC20InsufficientAllowance(address spender, uint256 allowance, uint256 needed);

    /**
     * @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals.
     * @param approver Address initiating an approval operation.
     */
    error ERC20InvalidApprover(address approver);

    /**
     * @dev Indicates a failure with the `spender` to be approved. Used in approvals.
     * @param spender Address that may be allowed to operate on tokens without being their owner.
     */
    error ERC20InvalidSpender(address spender);
}

/**
 * @dev Standard ERC721 Errors
 * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC721 tokens.
 */
interface IERC721Errors {
    /**
     * @dev Indicates that an address can't be an owner. For example, `address(0)` is a forbidden owner in EIP-20.
     * Used in balance queries.
     * @param owner Address of the current owner of a token.
     */
    error ERC721InvalidOwner(address owner);

    /**
     * @dev Indicates a `tokenId` whose `owner` is the zero address.
     * @param tokenId Identifier number of a token.
     */
    error ERC721NonexistentToken(uint256 tokenId);

    /**
     * @dev Indicates an error related to the ownership over a particular token. Used in transfers.
     * @param sender Address whose tokens are being transferred.
     * @param tokenId Identifier number of a token.
     * @param owner Address of the current owner of a token.
     */
    error ERC721IncorrectOwner(address sender, uint256 tokenId, address owner);

    /**
     * @dev Indicates a failure with the token `sender`. Used in transfers.
     * @param sender Address whose tokens are being transferred.
     */
    error ERC721InvalidSender(address sender);

    /**
     * @dev Indicates a failure with the token `receiver`. Used in transfers.
     * @param receiver Address to which tokens are being transferred.
     */
    error ERC721InvalidReceiver(address receiver);

    /**
     * @dev Indicates a failure with the `operator`’s approval. Used in transfers.
     * @param operator Address that may be allowed to operate on tokens without being their owner.
     * @param tokenId Identifier number of a token.
     */
    error ERC721InsufficientApproval(address operator, uint256 tokenId);

    /**
     * @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals.
     * @param approver Address initiating an approval operation.
     */
    error ERC721InvalidApprover(address approver);

    /**
     * @dev Indicates a failure with the `operator` to be approved. Used in approvals.
     * @param operator Address that may be allowed to operate on tokens without being their owner.
     */
    error ERC721InvalidOperator(address operator);
}

/**
 * @dev Standard ERC1155 Errors
 * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC1155 tokens.
 */
interface IERC1155Errors {
    /**
     * @dev Indicates an error related to the current `balance` of a `sender`. Used in transfers.
     * @param sender Address whose tokens are being transferred.
     * @param balance Current balance for the interacting account.
     * @param needed Minimum amount required to perform a transfer.
     * @param tokenId Identifier number of a token.
     */
    error ERC1155InsufficientBalance(address sender, uint256 balance, uint256 needed, uint256 tokenId);

    /**
     * @dev Indicates a failure with the token `sender`. Used in transfers.
     * @param sender Address whose tokens are being transferred.
     */
    error ERC1155InvalidSender(address sender);

    /**
     * @dev Indicates a failure with the token `receiver`. Used in transfers.
     * @param receiver Address to which tokens are being transferred.
     */
    error ERC1155InvalidReceiver(address receiver);

    /**
     * @dev Indicates a failure with the `operator`’s approval. Used in transfers.
     * @param operator Address that may be allowed to operate on tokens without being their owner.
     * @param owner Address of the current owner of a token.
     */
    error ERC1155MissingApprovalForAll(address operator, address owner);

    /**
     * @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals.
     * @param approver Address initiating an approval operation.
     */
    error ERC1155InvalidApprover(address approver);

    /**
     * @dev Indicates a failure with the `operator` to be approved. Used in approvals.
     * @param operator Address that may be allowed to operate on tokens without being their owner.
     */
    error ERC1155InvalidOperator(address operator);

    /**
     * @dev Indicates an array length mismatch between ids and values in a safeBatchTransferFrom operation.
     * Used in batch transfers.
     * @param idsLength Length of the array of token identifiers
     * @param valuesLength Length of the array of token amounts
     */
    error ERC1155InvalidArrayLength(uint256 idsLength, uint256 valuesLength);
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC1155/ERC1155.sol)

pragma solidity ^0.8.20;

import {IERC1155} from "./IERC1155.sol";
import {IERC1155Receiver} from "./IERC1155Receiver.sol";
import {IERC1155MetadataURI} from "./extensions/IERC1155MetadataURI.sol";
import {Context} from "../../utils/Context.sol";
import {IERC165, ERC165} from "../../utils/introspection/ERC165.sol";
import {Arrays} from "../../utils/Arrays.sol";
import {IERC1155Errors} from "../../interfaces/draft-IERC6093.sol";

/**
 * @dev Implementation of the basic standard multi-token.
 * See https://eips.ethereum.org/EIPS/eip-1155
 * Originally based on code by Enjin: https://github.com/enjin/erc-1155
 */
abstract contract ERC1155 is Context, ERC165, IERC1155, IERC1155MetadataURI, IERC1155Errors {
    using Arrays for uint256[];
    using Arrays for address[];

    mapping(uint256 id => mapping(address account => uint256)) private _balances;

    mapping(address account => mapping(address operator => bool)) private _operatorApprovals;

    // Used as the URI for all token types by relying on ID substitution, e.g. https://token-cdn-domain/{id}.json
    string private _uri;

    /**
     * @dev See {_setURI}.
     */
    constructor(string memory uri_) {
        _setURI(uri_);
    }

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

    /**
     * @dev See {IERC1155MetadataURI-uri}.
     *
     * This implementation returns the same URI for *all* token types. It relies
     * on the token type ID substitution mechanism
     * https://eips.ethereum.org/EIPS/eip-1155#metadata[defined in the EIP].
     *
     * Clients calling this function must replace the `\{id\}` substring with the
     * actual token type ID.
     */
    function uri(uint256 /* id */) public view virtual returns (string memory) {
        return _uri;
    }

    /**
     * @dev See {IERC1155-balanceOf}.
     */
    function balanceOf(address account, uint256 id) public view virtual returns (uint256) {
        return _balances[id][account];
    }

    /**
     * @dev See {IERC1155-balanceOfBatch}.
     *
     * Requirements:
     *
     * - `accounts` and `ids` must have the same length.
     */
    function balanceOfBatch(
        address[] memory accounts,
        uint256[] memory ids
    ) public view virtual returns (uint256[] memory) {
        if (accounts.length != ids.length) {
            revert ERC1155InvalidArrayLength(ids.length, accounts.length);
        }

        uint256[] memory batchBalances = new uint256[](accounts.length);

        for (uint256 i = 0; i < accounts.length; ++i) {
            batchBalances[i] = balanceOf(accounts.unsafeMemoryAccess(i), ids.unsafeMemoryAccess(i));
        }

        return batchBalances;
    }

    /**
     * @dev See {IERC1155-setApprovalForAll}.
     */
    function setApprovalForAll(address operator, bool approved) public virtual {
        _setApprovalForAll(_msgSender(), operator, approved);
    }

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

    /**
     * @dev See {IERC1155-safeTransferFrom}.
     */
    function safeTransferFrom(address from, address to, uint256 id, uint256 value, bytes memory data) public virtual {
        address sender = _msgSender();
        if (from != sender && !isApprovedForAll(from, sender)) {
            revert ERC1155MissingApprovalForAll(sender, from);
        }
        _safeTransferFrom(from, to, id, value, data);
    }

    /**
     * @dev See {IERC1155-safeBatchTransferFrom}.
     */
    function safeBatchTransferFrom(
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory values,
        bytes memory data
    ) public virtual {
        address sender = _msgSender();
        if (from != sender && !isApprovedForAll(from, sender)) {
            revert ERC1155MissingApprovalForAll(sender, from);
        }
        _safeBatchTransferFrom(from, to, ids, values, data);
    }

    /**
     * @dev Transfers a `value` amount of tokens of type `id` from `from` to `to`. Will mint (or burn) if `from`
     * (or `to`) is the zero address.
     *
     * Emits a {TransferSingle} event if the arrays contain one element, and {TransferBatch} otherwise.
     *
     * Requirements:
     *
     * - If `to` refers to a smart contract, it must implement either {IERC1155Receiver-onERC1155Received}
     *   or {IERC1155Receiver-onERC1155BatchReceived} and return the acceptance magic value.
     * - `ids` and `values` must have the same length.
     *
     * NOTE: The ERC-1155 acceptance check is not performed in this function. See {_updateWithAcceptanceCheck} instead.
     */
    function _update(address from, address to, uint256[] memory ids, uint256[] memory values) internal virtual {
        if (ids.length != values.length) {
            revert ERC1155InvalidArrayLength(ids.length, values.length);
        }

        address operator = _msgSender();

        for (uint256 i = 0; i < ids.length; ++i) {
            uint256 id = ids.unsafeMemoryAccess(i);
            uint256 value = values.unsafeMemoryAccess(i);

            if (from != address(0)) {
                uint256 fromBalance = _balances[id][from];
                if (fromBalance < value) {
                    revert ERC1155InsufficientBalance(from, fromBalance, value, id);
                }
                unchecked {
                    // Overflow not possible: value <= fromBalance
                    _balances[id][from] = fromBalance - value;
                }
            }

            if (to != address(0)) {
                _balances[id][to] += value;
            }
        }

        if (ids.length == 1) {
            uint256 id = ids.unsafeMemoryAccess(0);
            uint256 value = values.unsafeMemoryAccess(0);
            emit TransferSingle(operator, from, to, id, value);
        } else {
            emit TransferBatch(operator, from, to, ids, values);
        }
    }

    /**
     * @dev Version of {_update} that performs the token acceptance check by calling
     * {IERC1155Receiver-onERC1155Received} or {IERC1155Receiver-onERC1155BatchReceived} on the receiver address if it
     * contains code (eg. is a smart contract at the moment of execution).
     *
     * IMPORTANT: Overriding this function is discouraged because it poses a reentrancy risk from the receiver. So any
     * update to the contract state after this function would break the check-effect-interaction pattern. Consider
     * overriding {_update} instead.
     */
    function _updateWithAcceptanceCheck(
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory values,
        bytes memory data
    ) internal virtual {
        _update(from, to, ids, values);
        if (to != address(0)) {
            address operator = _msgSender();
            if (ids.length == 1) {
                uint256 id = ids.unsafeMemoryAccess(0);
                uint256 value = values.unsafeMemoryAccess(0);
                _doSafeTransferAcceptanceCheck(operator, from, to, id, value, data);
            } else {
                _doSafeBatchTransferAcceptanceCheck(operator, from, to, ids, values, data);
            }
        }
    }

    /**
     * @dev Transfers a `value` tokens of token type `id` from `from` to `to`.
     *
     * Emits a {TransferSingle} event.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - `from` must have a balance of tokens of type `id` of at least `value` amount.
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the
     * acceptance magic value.
     */
    function _safeTransferFrom(address from, address to, uint256 id, uint256 value, bytes memory data) internal {
        if (to == address(0)) {
            revert ERC1155InvalidReceiver(address(0));
        }
        if (from == address(0)) {
            revert ERC1155InvalidSender(address(0));
        }
        (uint256[] memory ids, uint256[] memory values) = _asSingletonArrays(id, value);
        _updateWithAcceptanceCheck(from, to, ids, values, data);
    }

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_safeTransferFrom}.
     *
     * Emits a {TransferBatch} event.
     *
     * Requirements:
     *
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the
     * acceptance magic value.
     * - `ids` and `values` must have the same length.
     */
    function _safeBatchTransferFrom(
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory values,
        bytes memory data
    ) internal {
        if (to == address(0)) {
            revert ERC1155InvalidReceiver(address(0));
        }
        if (from == address(0)) {
            revert ERC1155InvalidSender(address(0));
        }
        _updateWithAcceptanceCheck(from, to, ids, values, data);
    }

    /**
     * @dev Sets a new URI for all token types, by relying on the token type ID
     * substitution mechanism
     * https://eips.ethereum.org/EIPS/eip-1155#metadata[defined in the EIP].
     *
     * By this mechanism, any occurrence of the `\{id\}` substring in either the
     * URI or any of the values in the JSON file at said URI will be replaced by
     * clients with the token type ID.
     *
     * For example, the `https://token-cdn-domain/\{id\}.json` URI would be
     * interpreted by clients as
     * `https://token-cdn-domain/000000000000000000000000000000000000000000000000000000000004cce0.json`
     * for token type ID 0x4cce0.
     *
     * See {uri}.
     *
     * Because these URIs cannot be meaningfully represented by the {URI} event,
     * this function emits no events.
     */
    function _setURI(string memory newuri) internal virtual {
        _uri = newuri;
    }

    /**
     * @dev Creates a `value` amount of tokens of type `id`, and assigns them to `to`.
     *
     * Emits a {TransferSingle} event.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the
     * acceptance magic value.
     */
    function _mint(address to, uint256 id, uint256 value, bytes memory data) internal {
        if (to == address(0)) {
            revert ERC1155InvalidReceiver(address(0));
        }
        (uint256[] memory ids, uint256[] memory values) = _asSingletonArrays(id, value);
        _updateWithAcceptanceCheck(address(0), to, ids, values, data);
    }

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_mint}.
     *
     * Emits a {TransferBatch} event.
     *
     * Requirements:
     *
     * - `ids` and `values` must have the same length.
     * - `to` cannot be the zero address.
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the
     * acceptance magic value.
     */
    function _mintBatch(address to, uint256[] memory ids, uint256[] memory values, bytes memory data) internal {
        if (to == address(0)) {
            revert ERC1155InvalidReceiver(address(0));
        }
        _updateWithAcceptanceCheck(address(0), to, ids, values, data);
    }

    /**
     * @dev Destroys a `value` amount of tokens of type `id` from `from`
     *
     * Emits a {TransferSingle} event.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `from` must have at least `value` amount of tokens of type `id`.
     */
    function _burn(address from, uint256 id, uint256 value) internal {
        if (from == address(0)) {
            revert ERC1155InvalidSender(address(0));
        }
        (uint256[] memory ids, uint256[] memory values) = _asSingletonArrays(id, value);
        _updateWithAcceptanceCheck(from, address(0), ids, values, "");
    }

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_burn}.
     *
     * Emits a {TransferBatch} event.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `from` must have at least `value` amount of tokens of type `id`.
     * - `ids` and `values` must have the same length.
     */
    function _burnBatch(address from, uint256[] memory ids, uint256[] memory values) internal {
        if (from == address(0)) {
            revert ERC1155InvalidSender(address(0));
        }
        _updateWithAcceptanceCheck(from, address(0), ids, values, "");
    }

    /**
     * @dev Approve `operator` to operate on all of `owner` tokens
     *
     * Emits an {ApprovalForAll} event.
     *
     * Requirements:
     *
     * - `operator` cannot be the zero address.
     */
    function _setApprovalForAll(address owner, address operator, bool approved) internal virtual {
        if (operator == address(0)) {
            revert ERC1155InvalidOperator(address(0));
        }
        _operatorApprovals[owner][operator] = approved;
        emit ApprovalForAll(owner, operator, approved);
    }

    /**
     * @dev Performs an acceptance check by calling {IERC1155-onERC1155Received} on the `to` address
     * if it contains code at the moment of execution.
     */
    function _doSafeTransferAcceptanceCheck(
        address operator,
        address from,
        address to,
        uint256 id,
        uint256 value,
        bytes memory data
    ) private {
        if (to.code.length > 0) {
            try IERC1155Receiver(to).onERC1155Received(operator, from, id, value, data) returns (bytes4 response) {
                if (response != IERC1155Receiver.onERC1155Received.selector) {
                    // Tokens rejected
                    revert ERC1155InvalidReceiver(to);
                }
            } catch (bytes memory reason) {
                if (reason.length == 0) {
                    // non-ERC1155Receiver implementer
                    revert ERC1155InvalidReceiver(to);
                } else {
                    /// @solidity memory-safe-assembly
                    assembly {
                        revert(add(32, reason), mload(reason))
                    }
                }
            }
        }
    }

    /**
     * @dev Performs a batch acceptance check by calling {IERC1155-onERC1155BatchReceived} on the `to` address
     * if it contains code at the moment of execution.
     */
    function _doSafeBatchTransferAcceptanceCheck(
        address operator,
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory values,
        bytes memory data
    ) private {
        if (to.code.length > 0) {
            try IERC1155Receiver(to).onERC1155BatchReceived(operator, from, ids, values, data) returns (
                bytes4 response
            ) {
                if (response != IERC1155Receiver.onERC1155BatchReceived.selector) {
                    // Tokens rejected
                    revert ERC1155InvalidReceiver(to);
                }
            } catch (bytes memory reason) {
                if (reason.length == 0) {
                    // non-ERC1155Receiver implementer
                    revert ERC1155InvalidReceiver(to);
                } else {
                    /// @solidity memory-safe-assembly
                    assembly {
                        revert(add(32, reason), mload(reason))
                    }
                }
            }
        }
    }

    /**
     * @dev Creates an array in memory with only one value for each of the elements provided.
     */
    function _asSingletonArrays(
        uint256 element1,
        uint256 element2
    ) private pure returns (uint256[] memory array1, uint256[] memory array2) {
        /// @solidity memory-safe-assembly
        assembly {
            // Load the free memory pointer
            array1 := mload(0x40)
            // Set array length to 1
            mstore(array1, 1)
            // Store the single element at the next word after the length (where content starts)
            mstore(add(array1, 0x20), element1)

            // Repeat for next array locating it right after the first array
            array2 := add(array1, 0x40)
            mstore(array2, 1)
            mstore(add(array2, 0x20), element2)

            // Update the free memory pointer by pointing after the second array
            mstore(0x40, add(array2, 0x40))
        }
    }
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC1155/extensions/ERC1155Supply.sol)

pragma solidity ^0.8.20;

import {ERC1155} from "../ERC1155.sol";

/**
 * @dev Extension of ERC1155 that adds tracking of total supply per id.
 *
 * Useful for scenarios where Fungible and Non-fungible tokens have to be
 * clearly identified. Note: While a totalSupply of 1 might mean the
 * corresponding is an NFT, there is no guarantees that no other token with the
 * same id are not going to be minted.
 *
 * NOTE: This contract implies a global limit of 2**256 - 1 to the number of tokens
 * that can be minted.
 *
 * CAUTION: This extension should not be added in an upgrade to an already deployed contract.
 */
abstract contract ERC1155Supply is ERC1155 {
    mapping(uint256 id => uint256) private _totalSupply;
    uint256 private _totalSupplyAll;

    /**
     * @dev Total value of tokens in with a given id.
     */
    function totalSupply(uint256 id) public view virtual returns (uint256) {
        return _totalSupply[id];
    }

    /**
     * @dev Total value of tokens.
     */
    function totalSupply() public view virtual returns (uint256) {
        return _totalSupplyAll;
    }

    /**
     * @dev Indicates whether any token exist with a given id, or not.
     */
    function exists(uint256 id) public view virtual returns (bool) {
        return totalSupply(id) > 0;
    }

    /**
     * @dev See {ERC1155-_update}.
     */
    function _update(
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory values
    ) internal virtual override {
        super._update(from, to, ids, values);

        if (from == address(0)) {
            uint256 totalMintValue = 0;
            for (uint256 i = 0; i < ids.length; ++i) {
                uint256 value = values[i];
                // Overflow check required: The rest of the code assumes that totalSupply never overflows
                _totalSupply[ids[i]] += value;
                totalMintValue += value;
            }
            // Overflow check required: The rest of the code assumes that totalSupplyAll never overflows
            _totalSupplyAll += totalMintValue;
        }

        if (to == address(0)) {
            uint256 totalBurnValue = 0;
            for (uint256 i = 0; i < ids.length; ++i) {
                uint256 value = values[i];

                unchecked {
                    // Overflow not possible: values[i] <= balanceOf(from, ids[i]) <= totalSupply(ids[i])
                    _totalSupply[ids[i]] -= value;
                    // Overflow not possible: sum_i(values[i]) <= sum_i(totalSupply(ids[i])) <= totalSupplyAll
                    totalBurnValue += value;
                }
            }
            unchecked {
                // Overflow not possible: totalBurnValue = sum_i(values[i]) <= sum_i(totalSupply(ids[i])) <= totalSupplyAll
                _totalSupplyAll -= totalBurnValue;
            }
        }
    }
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC1155/extensions/IERC1155MetadataURI.sol)

pragma solidity ^0.8.20;

import {IERC1155} from "../IERC1155.sol";

/**
 * @dev Interface of the optional ERC1155MetadataExtension interface, as defined
 * in the https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[EIP].
 */
interface IERC1155MetadataURI is IERC1155 {
    /**
     * @dev Returns the URI for token type `id`.
     *
     * If the `\{id\}` substring is present in the URI, it must be replaced by
     * clients with the actual token type ID.
     */
    function uri(uint256 id) external view returns (string memory);
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.1) (token/ERC1155/IERC1155.sol)

pragma solidity ^0.8.20;

import {IERC165} from "../../utils/introspection/IERC165.sol";

/**
 * @dev Required interface of an ERC1155 compliant contract, as defined in the
 * https://eips.ethereum.org/EIPS/eip-1155[EIP].
 */
interface IERC1155 is IERC165 {
    /**
     * @dev Emitted when `value` amount of tokens of type `id` are transferred from `from` to `to` by `operator`.
     */
    event TransferSingle(address indexed operator, address indexed from, address indexed to, uint256 id, uint256 value);

    /**
     * @dev Equivalent to multiple {TransferSingle} events, where `operator`, `from` and `to` are the same for all
     * transfers.
     */
    event TransferBatch(
        address indexed operator,
        address indexed from,
        address indexed to,
        uint256[] ids,
        uint256[] values
    );

    /**
     * @dev Emitted when `account` grants or revokes permission to `operator` to transfer their tokens, according to
     * `approved`.
     */
    event ApprovalForAll(address indexed account, address indexed operator, bool approved);

    /**
     * @dev Emitted when the URI for token type `id` changes to `value`, if it is a non-programmatic URI.
     *
     * If an {URI} event was emitted for `id`, the standard
     * https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[guarantees] that `value` will equal the value
     * returned by {IERC1155MetadataURI-uri}.
     */
    event URI(string value, uint256 indexed id);

    /**
     * @dev Returns the value of tokens of token type `id` owned by `account`.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     */
    function balanceOf(address account, uint256 id) external view returns (uint256);

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {balanceOf}.
     *
     * Requirements:
     *
     * - `accounts` and `ids` must have the same length.
     */
    function balanceOfBatch(
        address[] calldata accounts,
        uint256[] calldata ids
    ) external view returns (uint256[] memory);

    /**
     * @dev Grants or revokes permission to `operator` to transfer the caller's tokens, according to `approved`,
     *
     * Emits an {ApprovalForAll} event.
     *
     * Requirements:
     *
     * - `operator` cannot be the caller.
     */
    function setApprovalForAll(address operator, bool approved) external;

    /**
     * @dev Returns true if `operator` is approved to transfer ``account``'s tokens.
     *
     * See {setApprovalForAll}.
     */
    function isApprovedForAll(address account, address operator) external view returns (bool);

    /**
     * @dev Transfers a `value` amount of tokens of type `id` from `from` to `to`.
     *
     * WARNING: This function can potentially allow a reentrancy attack when transferring tokens
     * to an untrusted contract, when invoking {onERC1155Received} on the receiver.
     * Ensure to follow the checks-effects-interactions pattern and consider employing
     * reentrancy guards when interacting with untrusted contracts.
     *
     * Emits a {TransferSingle} event.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - If the caller is not `from`, it must have been approved to spend ``from``'s tokens via {setApprovalForAll}.
     * - `from` must have a balance of tokens of type `id` of at least `value` amount.
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the
     * acceptance magic value.
     */
    function safeTransferFrom(address from, address to, uint256 id, uint256 value, bytes calldata data) external;

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {safeTransferFrom}.
     *
     * WARNING: This function can potentially allow a reentrancy attack when transferring tokens
     * to an untrusted contract, when invoking {onERC1155BatchReceived} on the receiver.
     * Ensure to follow the checks-effects-interactions pattern and consider employing
     * reentrancy guards when interacting with untrusted contracts.
     *
     * Emits either a {TransferSingle} or a {TransferBatch} event, depending on the length of the array arguments.
     *
     * Requirements:
     *
     * - `ids` and `values` must have the same length.
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the
     * acceptance magic value.
     */
    function safeBatchTransferFrom(
        address from,
        address to,
        uint256[] calldata ids,
        uint256[] calldata values,
        bytes calldata data
    ) external;
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC1155/IERC1155Receiver.sol)

pragma solidity ^0.8.20;

import {IERC165} from "../../utils/introspection/IERC165.sol";

/**
 * @dev Interface that must be implemented by smart contracts in order to receive
 * ERC-1155 token transfers.
 */
interface IERC1155Receiver is IERC165 {
    /**
     * @dev Handles the receipt of a single ERC1155 token type. This function is
     * called at the end of a `safeTransferFrom` after the balance has been updated.
     *
     * NOTE: To accept the transfer, this must return
     * `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))`
     * (i.e. 0xf23a6e61, or its own function selector).
     *
     * @param operator The address which initiated the transfer (i.e. msg.sender)
     * @param from The address which previously owned the token
     * @param id The ID of the token being transferred
     * @param value The amount of tokens being transferred
     * @param data Additional data with no specified format
     * @return `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))` if transfer is allowed
     */
    function onERC1155Received(
        address operator,
        address from,
        uint256 id,
        uint256 value,
        bytes calldata data
    ) external returns (bytes4);

    /**
     * @dev Handles the receipt of a multiple ERC1155 token types. This function
     * is called at the end of a `safeBatchTransferFrom` after the balances have
     * been updated.
     *
     * NOTE: To accept the transfer(s), this must return
     * `bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))`
     * (i.e. 0xbc197c81, or its own function selector).
     *
     * @param operator The address which initiated the batch transfer (i.e. msg.sender)
     * @param from The address which previously owned the token
     * @param ids An array containing ids of each token being transferred (order and length must match values array)
     * @param values An array containing amounts of each token being transferred (order and length must match ids array)
     * @param data Additional data with no specified format
     * @return `bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))` if transfer is allowed
     */
    function onERC1155BatchReceived(
        address operator,
        address from,
        uint256[] calldata ids,
        uint256[] calldata values,
        bytes calldata data
    ) external returns (bytes4);
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/Arrays.sol)

pragma solidity ^0.8.20;

import {StorageSlot} from "./StorageSlot.sol";
import {Math} from "./math/Math.sol";

/**
 * @dev Collection of functions related to array types.
 */
library Arrays {
    using StorageSlot for bytes32;

    /**
     * @dev Searches a sorted `array` and returns the first index that contains
     * a value greater or equal to `element`. If no such index exists (i.e. all
     * values in the array are strictly less than `element`), the array length is
     * returned. Time complexity O(log n).
     *
     * `array` is expected to be sorted in ascending order, and to contain no
     * repeated elements.
     */
    function findUpperBound(uint256[] storage array, uint256 element) internal view returns (uint256) {
        uint256 low = 0;
        uint256 high = array.length;

        if (high == 0) {
            return 0;
        }

        while (low < high) {
            uint256 mid = Math.average(low, high);

            // Note that mid will always be strictly less than high (i.e. it will be a valid array index)
            // because Math.average rounds towards zero (it does integer division with truncation).
            if (unsafeAccess(array, mid).value > element) {
                high = mid;
            } else {
                low = mid + 1;
            }
        }

        // At this point `low` is the exclusive upper bound. We will return the inclusive upper bound.
        if (low > 0 && unsafeAccess(array, low - 1).value == element) {
            return low - 1;
        } else {
            return low;
        }
    }

    /**
     * @dev Access an array in an "unsafe" way. Skips solidity "index-out-of-range" check.
     *
     * WARNING: Only use if you are certain `pos` is lower than the array length.
     */
    function unsafeAccess(address[] storage arr, uint256 pos) internal pure returns (StorageSlot.AddressSlot storage) {
        bytes32 slot;
        // We use assembly to calculate the storage slot of the element at index `pos` of the dynamic array `arr`
        // following https://docs.soliditylang.org/en/v0.8.20/internals/layout_in_storage.html#mappings-and-dynamic-arrays.

        /// @solidity memory-safe-assembly
        assembly {
            mstore(0, arr.slot)
            slot := add(keccak256(0, 0x20), pos)
        }
        return slot.getAddressSlot();
    }

    /**
     * @dev Access an array in an "unsafe" way. Skips solidity "index-out-of-range" check.
     *
     * WARNING: Only use if you are certain `pos` is lower than the array length.
     */
    function unsafeAccess(bytes32[] storage arr, uint256 pos) internal pure returns (StorageSlot.Bytes32Slot storage) {
        bytes32 slot;
        // We use assembly to calculate the storage slot of the element at index `pos` of the dynamic array `arr`
        // following https://docs.soliditylang.org/en/v0.8.20/internals/layout_in_storage.html#mappings-and-dynamic-arrays.

        /// @solidity memory-safe-assembly
        assembly {
            mstore(0, arr.slot)
            slot := add(keccak256(0, 0x20), pos)
        }
        return slot.getBytes32Slot();
    }

    /**
     * @dev Access an array in an "unsafe" way. Skips solidity "index-out-of-range" check.
     *
     * WARNING: Only use if you are certain `pos` is lower than the array length.
     */
    function unsafeAccess(uint256[] storage arr, uint256 pos) internal pure returns (StorageSlot.Uint256Slot storage) {
        bytes32 slot;
        // We use assembly to calculate the storage slot of the element at index `pos` of the dynamic array `arr`
        // following https://docs.soliditylang.org/en/v0.8.20/internals/layout_in_storage.html#mappings-and-dynamic-arrays.

        /// @solidity memory-safe-assembly
        assembly {
            mstore(0, arr.slot)
            slot := add(keccak256(0, 0x20), pos)
        }
        return slot.getUint256Slot();
    }

    /**
     * @dev Access an array in an "unsafe" way. Skips solidity "index-out-of-range" check.
     *
     * WARNING: Only use if you are certain `pos` is lower than the array length.
     */
    function unsafeMemoryAccess(uint256[] memory arr, uint256 pos) internal pure returns (uint256 res) {
        assembly {
            res := mload(add(add(arr, 0x20), mul(pos, 0x20)))
        }
    }

    /**
     * @dev Access an array in an "unsafe" way. Skips solidity "index-out-of-range" check.
     *
     * WARNING: Only use if you are certain `pos` is lower than the array length.
     */
    function unsafeMemoryAccess(address[] memory arr, uint256 pos) internal pure returns (address res) {
        assembly {
            res := mload(add(add(arr, 0x20), mul(pos, 0x20)))
        }
    }
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)

pragma solidity ^0.8.20;

/**
 * @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;
    }

    function _contextSuffixLength() internal view virtual returns (uint256) {
        return 0;
    }
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/introspection/ERC165.sol)

pragma solidity ^0.8.20;

import {IERC165} from "./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);
 * }
 * ```
 */
abstract contract ERC165 is IERC165 {
    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual returns (bool) {
        return interfaceId == type(IERC165).interfaceId;
    }
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/introspection/IERC165.sol)

pragma solidity ^0.8.20;

/**
 * @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);
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/math/Math.sol)

pragma solidity ^0.8.20;

/**
 * @dev Standard math utilities missing in the Solidity language.
 */
library Math {
    /**
     * @dev Muldiv operation overflow.
     */
    error MathOverflowedMulDiv();

    enum Rounding {
        Floor, // Toward negative infinity
        Ceil, // Toward positive infinity
        Trunc, // Toward zero
        Expand // Away from zero
    }

    /**
     * @dev Returns the addition of two unsigned integers, with an overflow flag.
     */
    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 subtraction of two unsigned integers, with an overflow flag.
     */
    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.
     */
    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.
     */
    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.
     */
    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 largest of two numbers.
     */
    function max(uint256 a, uint256 b) internal pure returns (uint256) {
        return a > b ? a : b;
    }

    /**
     * @dev Returns the smallest of two numbers.
     */
    function min(uint256 a, uint256 b) internal pure returns (uint256) {
        return a < b ? a : b;
    }

    /**
     * @dev Returns the average of two numbers. The result is rounded towards
     * zero.
     */
    function average(uint256 a, uint256 b) internal pure returns (uint256) {
        // (a + b) / 2 can overflow.
        return (a & b) + (a ^ b) / 2;
    }

    /**
     * @dev Returns the ceiling of the division of two numbers.
     *
     * This differs from standard division with `/` in that it rounds towards infinity instead
     * of rounding towards zero.
     */
    function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) {
        if (b == 0) {
            // Guarantee the same behavior as in a regular Solidity division.
            return a / b;
        }

        // (a + b - 1) / b can overflow on addition, so we distribute.
        return a == 0 ? 0 : (a - 1) / b + 1;
    }

    /**
     * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or
     * denominator == 0.
     * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv) with further edits by
     * Uniswap Labs also under MIT license.
     */
    function mulDiv(uint256 x, uint256 y, uint256 denominator) internal pure returns (uint256 result) {
        unchecked {
            // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use
            // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256
            // variables such that product = prod1 * 2^256 + prod0.
            uint256 prod0 = x * y; // Least significant 256 bits of the product
            uint256 prod1; // Most significant 256 bits of the product
            assembly {
                let mm := mulmod(x, y, not(0))
                prod1 := sub(sub(mm, prod0), lt(mm, prod0))
            }

            // Handle non-overflow cases, 256 by 256 division.
            if (prod1 == 0) {
                // Solidity will revert if denominator == 0, unlike the div opcode on its own.
                // The surrounding unchecked block does not change this fact.
                // See https://docs.soliditylang.org/en/latest/control-structures.html#checked-or-unchecked-arithmetic.
                return prod0 / denominator;
            }

            // Make sure the result is less than 2^256. Also prevents denominator == 0.
            if (denominator <= prod1) {
                revert MathOverflowedMulDiv();
            }

            ///////////////////////////////////////////////
            // 512 by 256 division.
            ///////////////////////////////////////////////

            // Make division exact by subtracting the remainder from [prod1 prod0].
            uint256 remainder;
            assembly {
                // Compute remainder using mulmod.
                remainder := mulmod(x, y, denominator)

                // Subtract 256 bit number from 512 bit number.
                prod1 := sub(prod1, gt(remainder, prod0))
                prod0 := sub(prod0, remainder)
            }

            // Factor powers of two out of denominator and compute largest power of two divisor of denominator.
            // Always >= 1. See https://cs.stackexchange.com/q/138556/92363.

            uint256 twos = denominator & (0 - denominator);
            assembly {
                // Divide denominator by twos.
                denominator := div(denominator, twos)

                // Divide [prod1 prod0] by twos.
                prod0 := div(prod0, twos)

                // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one.
                twos := add(div(sub(0, twos), twos), 1)
            }

            // Shift in bits from prod1 into prod0.
            prod0 |= prod1 * twos;

            // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such
            // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for
            // four bits. That is, denominator * inv = 1 mod 2^4.
            uint256 inverse = (3 * denominator) ^ 2;

            // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also
            // works in modular arithmetic, doubling the correct bits in each step.
            inverse *= 2 - denominator * inverse; // inverse mod 2^8
            inverse *= 2 - denominator * inverse; // inverse mod 2^16
            inverse *= 2 - denominator * inverse; // inverse mod 2^32
            inverse *= 2 - denominator * inverse; // inverse mod 2^64
            inverse *= 2 - denominator * inverse; // inverse mod 2^128
            inverse *= 2 - denominator * inverse; // inverse mod 2^256

            // Because the division is now exact we can divide by multiplying with the modular inverse of denominator.
            // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is
            // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1
            // is no longer required.
            result = prod0 * inverse;
            return result;
        }
    }

    /**
     * @notice Calculates x * y / denominator with full precision, following the selected rounding direction.
     */
    function mulDiv(uint256 x, uint256 y, uint256 denominator, Rounding rounding) internal pure returns (uint256) {
        uint256 result = mulDiv(x, y, denominator);
        if (unsignedRoundsUp(rounding) && mulmod(x, y, denominator) > 0) {
            result += 1;
        }
        return result;
    }

    /**
     * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded
     * towards zero.
     *
     * Inspired by Henry S. Warren, Jr.'s "Hacker's Delight" (Chapter 11).
     */
    function sqrt(uint256 a) internal pure returns (uint256) {
        if (a == 0) {
            return 0;
        }

        // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target.
        //
        // We know that the "msb" (most significant bit) of our target number `a` is a power of 2 such that we have
        // `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`.
        //
        // This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)`
        // → `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))`
        // → `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)`
        //
        // Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit.
        uint256 result = 1 << (log2(a) >> 1);

        // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128,
        // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at
        // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision
        // into the expected uint128 result.
        unchecked {
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            return min(result, a / result);
        }
    }

    /**
     * @notice Calculates sqrt(a), following the selected rounding direction.
     */
    function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = sqrt(a);
            return result + (unsignedRoundsUp(rounding) && result * result < a ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 2 of a positive value rounded towards zero.
     * Returns 0 if given 0.
     */
    function log2(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >> 128 > 0) {
                value >>= 128;
                result += 128;
            }
            if (value >> 64 > 0) {
                value >>= 64;
                result += 64;
            }
            if (value >> 32 > 0) {
                value >>= 32;
                result += 32;
            }
            if (value >> 16 > 0) {
                value >>= 16;
                result += 16;
            }
            if (value >> 8 > 0) {
                value >>= 8;
                result += 8;
            }
            if (value >> 4 > 0) {
                value >>= 4;
                result += 4;
            }
            if (value >> 2 > 0) {
                value >>= 2;
                result += 2;
            }
            if (value >> 1 > 0) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 2, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log2(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log2(value);
            return result + (unsignedRoundsUp(rounding) && 1 << result < value ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 10 of a positive value rounded towards zero.
     * Returns 0 if given 0.
     */
    function log10(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >= 10 ** 64) {
                value /= 10 ** 64;
                result += 64;
            }
            if (value >= 10 ** 32) {
                value /= 10 ** 32;
                result += 32;
            }
            if (value >= 10 ** 16) {
                value /= 10 ** 16;
                result += 16;
            }
            if (value >= 10 ** 8) {
                value /= 10 ** 8;
                result += 8;
            }
            if (value >= 10 ** 4) {
                value /= 10 ** 4;
                result += 4;
            }
            if (value >= 10 ** 2) {
                value /= 10 ** 2;
                result += 2;
            }
            if (value >= 10 ** 1) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 10, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log10(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log10(value);
            return result + (unsignedRoundsUp(rounding) && 10 ** result < value ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 256 of a positive value rounded towards zero.
     * Returns 0 if given 0.
     *
     * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string.
     */
    function log256(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >> 128 > 0) {
                value >>= 128;
                result += 16;
            }
            if (value >> 64 > 0) {
                value >>= 64;
                result += 8;
            }
            if (value >> 32 > 0) {
                value >>= 32;
                result += 4;
            }
            if (value >> 16 > 0) {
                value >>= 16;
                result += 2;
            }
            if (value >> 8 > 0) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 256, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log256(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log256(value);
            return result + (unsignedRoundsUp(rounding) && 1 << (result << 3) < value ? 1 : 0);
        }
    }

    /**
     * @dev Returns whether a provided rounding mode is considered rounding up for unsigned integers.
     */
    function unsignedRoundsUp(Rounding rounding) internal pure returns (bool) {
        return uint8(rounding) % 2 == 1;
    }
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/math/SignedMath.sol)

pragma solidity ^0.8.20;

/**
 * @dev Standard signed math utilities missing in the Solidity language.
 */
library SignedMath {
    /**
     * @dev Returns the largest of two signed numbers.
     */
    function max(int256 a, int256 b) internal pure returns (int256) {
        return a > b ? a : b;
    }

    /**
     * @dev Returns the smallest of two signed numbers.
     */
    function min(int256 a, int256 b) internal pure returns (int256) {
        return a < b ? a : b;
    }

    /**
     * @dev Returns the average of two signed numbers without overflow.
     * The result is rounded towards zero.
     */
    function average(int256 a, int256 b) internal pure returns (int256) {
        // Formula from the book "Hacker's Delight"
        int256 x = (a & b) + ((a ^ b) >> 1);
        return x + (int256(uint256(x) >> 255) & (a ^ b));
    }

    /**
     * @dev Returns the absolute unsigned value of a signed value.
     */
    function abs(int256 n) internal pure returns (uint256) {
        unchecked {
            // must be unchecked in order to support `n = type(int256).min`
            return uint256(n >= 0 ? n : -n);
        }
    }
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/StorageSlot.sol)
// This file was procedurally generated from scripts/generate/templates/StorageSlot.js.

pragma solidity ^0.8.20;

/**
 * @dev Library for reading and writing primitive types to specific storage slots.
 *
 * Storage slots are often used to avoid storage conflict when dealing with upgradeable contracts.
 * This library helps with reading and writing to such slots without the need for inline assembly.
 *
 * The functions in this library return Slot structs that contain a `value` member that can be used to read or write.
 *
 * Example usage to set ERC1967 implementation slot:
 * ```solidity
 * contract ERC1967 {
 *     bytes32 internal constant _IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;
 *
 *     function _getImplementation() internal view returns (address) {
 *         return StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value;
 *     }
 *
 *     function _setImplementation(address newImplementation) internal {
 *         require(newImplementation.code.length > 0);
 *         StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation;
 *     }
 * }
 * ```
 */
library StorageSlot {
    struct AddressSlot {
        address value;
    }

    struct BooleanSlot {
        bool value;
    }

    struct Bytes32Slot {
        bytes32 value;
    }

    struct Uint256Slot {
        uint256 value;
    }

    struct StringSlot {
        string value;
    }

    struct BytesSlot {
        bytes value;
    }

    /**
     * @dev Returns an `AddressSlot` with member `value` located at `slot`.
     */
    function getAddressSlot(bytes32 slot) internal pure returns (AddressSlot storage r) {
        /// @solidity memory-safe-assembly
        assembly {
            r.slot := slot
        }
    }

    /**
     * @dev Returns an `BooleanSlot` with member `value` located at `slot`.
     */
    function getBooleanSlot(bytes32 slot) internal pure returns (BooleanSlot storage r) {
        /// @solidity memory-safe-assembly
        assembly {
            r.slot := slot
        }
    }

    /**
     * @dev Returns an `Bytes32Slot` with member `value` located at `slot`.
     */
    function getBytes32Slot(bytes32 slot) internal pure returns (Bytes32Slot storage r) {
        /// @solidity memory-safe-assembly
        assembly {
            r.slot := slot
        }
    }

    /**
     * @dev Returns an `Uint256Slot` with member `value` located at `slot`.
     */
    function getUint256Slot(bytes32 slot) internal pure returns (Uint256Slot storage r) {
        /// @solidity memory-safe-assembly
        assembly {
            r.slot := slot
        }
    }

    /**
     * @dev Returns an `StringSlot` with member `value` located at `slot`.
     */
    function getStringSlot(bytes32 slot) internal pure returns (StringSlot storage r) {
        /// @solidity memory-safe-assembly
        assembly {
            r.slot := slot
        }
    }

    /**
     * @dev Returns an `StringSlot` representation of the string storage pointer `store`.
     */
    function getStringSlot(string storage store) internal pure returns (StringSlot storage r) {
        /// @solidity memory-safe-assembly
        assembly {
            r.slot := store.slot
        }
    }

    /**
     * @dev Returns an `BytesSlot` with member `value` located at `slot`.
     */
    function getBytesSlot(bytes32 slot) internal pure returns (BytesSlot storage r) {
        /// @solidity memory-safe-assembly
        assembly {
            r.slot := slot
        }
    }

    /**
     * @dev Returns an `BytesSlot` representation of the bytes storage pointer `store`.
     */
    function getBytesSlot(bytes storage store) internal pure returns (BytesSlot storage r) {
        /// @solidity memory-safe-assembly
        assembly {
            r.slot := store.slot
        }
    }
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/Strings.sol)

pragma solidity ^0.8.20;

import {Math} from "./math/Math.sol";
import {SignedMath} from "./math/SignedMath.sol";

/**
 * @dev String operations.
 */
library Strings {
    bytes16 private constant HEX_DIGITS = "0123456789abcdef";
    uint8 private constant ADDRESS_LENGTH = 20;

    /**
     * @dev The `value` string doesn't fit in the specified `length`.
     */
    error StringsInsufficientHexLength(uint256 value, uint256 length);

    /**
     * @dev Converts a `uint256` to its ASCII `string` decimal representation.
     */
    function toString(uint256 value) internal pure returns (string memory) {
        unchecked {
            uint256 length = Math.log10(value) + 1;
            string memory buffer = new string(length);
            uint256 ptr;
            /// @solidity memory-safe-assembly
            assembly {
                ptr := add(buffer, add(32, length))
            }
            while (true) {
                ptr--;
                /// @solidity memory-safe-assembly
                assembly {
                    mstore8(ptr, byte(mod(value, 10), HEX_DIGITS))
                }
                value /= 10;
                if (value == 0) break;
            }
            return buffer;
        }
    }

    /**
     * @dev Converts a `int256` to its ASCII `string` decimal representation.
     */
    function toStringSigned(int256 value) internal pure returns (string memory) {
        return string.concat(value < 0 ? "-" : "", toString(SignedMath.abs(value)));
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.
     */
    function toHexString(uint256 value) internal pure returns (string memory) {
        unchecked {
            return toHexString(value, Math.log256(value) + 1);
        }
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.
     */
    function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {
        uint256 localValue = value;
        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_DIGITS[localValue & 0xf];
            localValue >>= 4;
        }
        if (localValue != 0) {
            revert StringsInsufficientHexLength(value, length);
        }
        return string(buffer);
    }

    /**
     * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal
     * representation.
     */
    function toHexString(address addr) internal pure returns (string memory) {
        return toHexString(uint256(uint160(addr)), ADDRESS_LENGTH);
    }

    /**
     * @dev Returns true if the two strings are equal.
     */
    function equal(string memory a, string memory b) internal pure returns (bool) {
        return bytes(a).length == bytes(b).length && keccak256(bytes(a)) == keccak256(bytes(b));
    }
}

Settings
{
  "optimizer": {
    "enabled": true,
    "runs": 200
  },
  "debug": {
    "revertStrings": "debug"
  },
  "evmVersion": "paris",
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "metadata": {
    "useLiteralContent": true
  }
}

Contract Security Audit

Contract ABI

API
[{"inputs":[{"internalType":"address","name":"initialOwner","type":"address"},{"internalType":"address","name":"daoStake","type":"address"},{"internalType":"string","name":"startUri","type":"string"},{"internalType":"string","name":"tokenName","type":"string"},{"internalType":"string","name":"tokenSymbol","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"uint256","name":"balance","type":"uint256"},{"internalType":"uint256","name":"needed","type":"uint256"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ERC1155InsufficientBalance","type":"error"},{"inputs":[{"internalType":"address","name":"approver","type":"address"}],"name":"ERC1155InvalidApprover","type":"error"},{"inputs":[{"internalType":"uint256","name":"idsLength","type":"uint256"},{"internalType":"uint256","name":"valuesLength","type":"uint256"}],"name":"ERC1155InvalidArrayLength","type":"error"},{"inputs":[{"internalType":"address","name":"operator","type":"address"}],"name":"ERC1155InvalidOperator","type":"error"},{"inputs":[{"internalType":"address","name":"receiver","type":"address"}],"name":"ERC1155InvalidReceiver","type":"error"},{"inputs":[{"internalType":"address","name":"sender","type":"address"}],"name":"ERC1155InvalidSender","type":"error"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"address","name":"owner","type":"address"}],"name":"ERC1155MissingApprovalForAll","type":"error"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"OwnableInvalidOwner","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"OwnableUnauthorizedAccount","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","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":"account","type":"address"},{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"sendEth","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"refundEth","type":"uint256"}],"name":"Buy","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":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"price","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newPrice","type":"uint256"}],"name":"Price","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"indexed":false,"internalType":"uint256[]","name":"values","type":"uint256[]"}],"name":"TransferBatch","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"id","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"TransferSingle","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"value","type":"string"},{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"}],"name":"URI","type":"event"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"accounts","type":"address[]"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"}],"name":"balanceOfBatch","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"buyToMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"exists","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"getUserNFTs","outputs":[{"internalType":"uint256[]","name":"_userNfts","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"getUserTotalPoints","outputs":[{"internalType":"uint256","name":"totalPoints","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isOwnerMint","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lastTokenId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"mintCounts","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"nftInfo","outputs":[{"components":[{"internalType":"string","name":"name","type":"string"},{"internalType":"uint256","name":"maxSupply","type":"uint256"},{"internalType":"uint256","name":"price","type":"uint256"},{"internalType":"uint256","name":"point","type":"uint256"},{"internalType":"uint256","name":"maxAllocation","type":"uint256"},{"internalType":"uint256","name":"totalMinted","type":"uint256"}],"internalType":"struct Vestrans.NftInfo","name":"info","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ownerMint","outputs":[],"stateMutability":"nonpayable","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":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"values","type":"uint256[]"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeBatchTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"value","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":"tierName","type":"string"},{"internalType":"uint256","name":"maxSupply","type":"uint256"},{"internalType":"uint256","name":"price","type":"uint256"},{"internalType":"uint256","name":"point","type":"uint256"},{"internalType":"uint256","name":"maxAllocation","type":"uint256"}],"name":"setNFTDetails","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"newPrice","type":"uint256"}],"name":"setPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"newuri","type":"string"}],"name":"setURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"stakeAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"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":"totalEthSold","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":"uint256","name":"id","type":"uint256"}],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"uri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"userPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"votingPower","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]

60a06040523480156200005e5760405162461bcd60e51b815260206004820152602260248201527f45746865722073656e7420746f206e6f6e2d70617961626c652066756e637469604482019081526137b760f11b6064830152608482fd5b5060405162003a0238038062003a02833981016040819052620000819162000344565b84836200008e8162000100565b506001600160a01b038116620000be57604051631e4fbdf760e01b81526000600482015260240160405180910390fd5b620000c98162000112565b506001600160a01b0384166080526006620000e58382620004e5565b506007620000f48282620004e5565b505050505050620005b1565b60026200010e8282620004e5565b5050565b600380546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60405162461bcd60e51b815260206004820152602260248201527f414249206465636f64696e673a20696e76616c6964207475706c65206f666673604482015261195d60f21b6064820152608481fd5b80516001600160a01b0381168114620001cc57600080fd5b919050565b634e487b7160e01b600052604160045260246000fd5b60005b8381101562000204578181015183820152602001620001ea565b50506000910152565b600082601f830112620002735760405162461bcd60e51b815260206004820152602b60248201527f414249206465636f64696e673a20696e76616c69642063616c6c64617461206160448201526a1c9c985e481bd9999cd95d60aa1b6064820152608481fd5b81516001600160401b0380821115620002905762000290620001d1565b604051601f8301601f19908116603f01168101908282118183101715620002bb57620002bb620001d1565b81604052838152866020858801011115620003275760405162461bcd60e51b815260206004820152602760248201527f414249206465636f64696e673a20696e76616c69642062797465206172726179604482015266040d8cadccee8d60cb1b60648201529250608483fd5b6200033a846020830160208901620001e7565b9695505050505050565b600080600080600060a08688031215620003a85760405162461bcd60e51b815260206004820152602260248201527f414249206465636f64696e673a207475706c65206461746120746f6f2073686f6044820152611c9d60f21b6064820152608481fd5b620003b386620001b4565b9450620003c360208701620001b4565b60408701519094506001600160401b0380821115620003e657620003e662000164565b620003f489838a016200020d565b9450606088015191508082111562000410576200041062000164565b6200041e89838a016200020d565b935060808801519150808211156200043a576200043a62000164565b5062000449888289016200020d565b9150509295509295909350565b600181811c908216806200046b57607f821691505b6020821081036200048c57634e487b7160e01b600052602260045260246000fd5b50919050565b601f821115620004e057600081815260208120601f850160051c81016020861015620004bb5750805b601f850160051c820191505b81811015620004dc57828155600101620004c7565b5050505b505050565b81516001600160401b03811115620005015762000501620001d1565b620005198162000512845462000456565b8462000492565b602080601f831160018114620005515760008415620005385750858301515b600019600386901b1c1916600185901b178555620004dc565b600085815260208120601f198616915b82811015620005825788860151825594840194600190910190840162000561565b5085821015620005a15787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b60805161342e620005d46000396000818161082a0152611ade015261342e6000f3fe6080604052600436106101e65760003560e01c80638510736711610102578063def6327311610095578063f242432a11610064578063f242432a14610c32578063f2fde38b14610c8d578063f7d9757714610ce8578063f84ddf0b14610d43576101ed565b8063def6327314610ad6578063def9c5d614610b2b578063e985e9c514610b86578063effcb1d414610be1576101ed565b8063a22cb465116100d1578063a22cb46514610968578063b12dc991146109c3578063bd85b03914610a13578063c07473f614610a7b576101ed565b806385107367146107dd5780638da5cb5b14610864578063916433a6146108bd57806395d89b4114610918576101ed565b80632eb2c2d61161017a5780634e1273f4116101495780634e1273f4146106605780634f558e79146106c857806352de4ee514610732578063715018a61461078d576101ed565b80632eb2c2d6146104ff578063333591611461055a5780633ccfd60b146105b55780634a011b6d14610605576101ed565b80630e89341c116101b65780630e89341c146103d957806318160ddd146104345780631f8bc79014610484578063231a9946146104ec576101ed565b8062fdd58e1461024657806301ffc9a7146102b457806302fe53051461031f57806306fdde031461037c576101ed565b366101ed57005b60405162461bcd60e51b815260206004820152602960248201527f556e6b6e6f776e207369676e617475726520616e64206e6f2066616c6c62616360448201908152681ac81919599a5b995960ba1b6064830152608482fd5b34801561028d5760405162461bcd60e51b815260206004820152602260248201526000805160206133d9833981519152604482019081526137b760f11b6064830152608482fd5b506102a161029c366004612961565b610d94565b6040519081526020015b60405180910390f35b3480156102fb5760405162461bcd60e51b815260206004820152602260248201526000805160206133d9833981519152604482019081526137b760f11b6064830152608482fd5b5061030f61030a3660046129a4565b610dbc565b60405190151581526020016102ab565b3480156103665760405162461bcd60e51b815260206004820152602260248201526000805160206133d9833981519152604482019081526137b760f11b6064830152608482fd5b5061037a610375366004612b2c565b610e0c565b005b3480156103c35760405162461bcd60e51b815260206004820152602260248201526000805160206133d9833981519152604482019081526137b760f11b6064830152608482fd5b506103cc610e20565b6040516102ab9190612bbf565b3480156104205760405162461bcd60e51b815260206004820152602260248201526000805160206133d9833981519152604482019081526137b760f11b6064830152608482fd5b506103cc61042f366004612bd2565b610eae565b34801561047b5760405162461bcd60e51b815260206004820152602260248201526000805160206133d9833981519152604482019081526137b760f11b6064830152608482fd5b506005546102a1565b3480156104cb5760405162461bcd60e51b815260206004820152602260248201526000805160206133d9833981519152604482019081526137b760f11b6064830152608482fd5b506104df6104da366004612bd2565b610f23565b6040516102ab9190612bee565b61037a6104fa366004612c48565b61108a565b3480156105465760405162461bcd60e51b815260206004820152602260248201526000805160206133d9833981519152604482019081526137b760f11b6064830152608482fd5b5061037a610555366004612d5b565b61146b565b3480156105a15760405162461bcd60e51b815260206004820152602260248201526000805160206133d9833981519152604482019081526137b760f11b6064830152608482fd5b5061037a6105b0366004612e11565b6114d2565b3480156105fc5760405162461bcd60e51b815260206004820152602260248201526000805160206133d9833981519152604482019081526137b760f11b6064830152608482fd5b5061037a61160b565b34801561064c5760405162461bcd60e51b815260206004820152602260248201526000805160206133d9833981519152604482019081526137b760f11b6064830152608482fd5b506102a161065b366004612961565b611704565b3480156106a75760405162461bcd60e51b815260206004820152602260248201526000805160206133d9833981519152604482019081526137b760f11b6064830152608482fd5b506106bb6106b6366004612e74565b611782565b6040516102ab9190612f7e565b34801561070f5760405162461bcd60e51b815260206004820152602260248201526000805160206133d9833981519152604482019081526137b760f11b6064830152608482fd5b5061030f61071e366004612bd2565b600090815260046020526040902054151590565b3480156107795760405162461bcd60e51b815260206004820152602260248201526000805160206133d9833981519152604482019081526137b760f11b6064830152608482fd5b506106bb610788366004612f91565b611857565b3480156107d45760405162461bcd60e51b815260206004820152602260248201526000805160206133d9833981519152604482019081526137b760f11b6064830152608482fd5b5061037a6118eb565b3480156108245760405162461bcd60e51b815260206004820152602260248201526000805160206133d9833981519152604482019081526137b760f11b6064830152608482fd5b5061084c7f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b0390911681526020016102ab565b3480156108ab5760405162461bcd60e51b815260206004820152602260248201526000805160206133d9833981519152604482019081526137b760f11b6064830152608482fd5b506003546001600160a01b031661084c565b3480156109045760405162461bcd60e51b815260206004820152602260248201526000805160206133d9833981519152604482019081526137b760f11b6064830152608482fd5b506102a1610913366004612961565b6118ff565b34801561095f5760405162461bcd60e51b815260206004820152602260248201526000805160206133d9833981519152604482019081526137b760f11b6064830152608482fd5b506103cc61195a565b3480156109af5760405162461bcd60e51b815260206004820152602260248201526000805160206133d9833981519152604482019081526137b760f11b6064830152608482fd5b5061037a6109be366004612faf565b611967565b348015610a0a5760405162461bcd60e51b815260206004820152602260248201526000805160206133d9833981519152604482019081526137b760f11b6064830152608482fd5b5061037a611972565b348015610a5a5760405162461bcd60e51b815260206004820152602260248201526000805160206133d9833981519152604482019081526137b760f11b6064830152608482fd5b506102a1610a69366004612bd2565b60009081526004602052604090205490565b348015610ac25760405162461bcd60e51b815260206004820152602260248201526000805160206133d9833981519152604482019081526137b760f11b6064830152608482fd5b506102a1610ad1366004612f91565b611abc565b348015610b1d5760405162461bcd60e51b815260206004820152602260248201526000805160206133d9833981519152604482019081526137b760f11b6064830152608482fd5b5060095461030f9060ff1681565b348015610b725760405162461bcd60e51b815260206004820152602260248201526000805160206133d9833981519152604482019081526137b760f11b6064830152608482fd5b506102a1610b81366004612f91565b611baa565b348015610bcd5760405162461bcd60e51b815260206004820152602260248201526000805160206133d9833981519152604482019081526137b760f11b6064830152608482fd5b5061030f610bdc366004612fee565b611c2e565b348015610c285760405162461bcd60e51b815260206004820152602260248201526000805160206133d9833981519152604482019081526137b760f11b6064830152608482fd5b506102a160085481565b348015610c795760405162461bcd60e51b815260206004820152602260248201526000805160206133d9833981519152604482019081526137b760f11b6064830152608482fd5b5061037a610c88366004613024565b611c5c565b348015610cd45760405162461bcd60e51b815260206004820152602260248201526000805160206133d9833981519152604482019081526137b760f11b6064830152608482fd5b5061037a610ce3366004612f91565b611cbb565b348015610d2f5760405162461bcd60e51b815260206004820152602260248201526000805160206133d9833981519152604482019081526137b760f11b6064830152608482fd5b5061037a610d3e366004612c48565b611cf6565b348015610d8a5760405162461bcd60e51b815260206004820152602260248201526000805160206133d9833981519152604482019081526137b760f11b6064830152608482fd5b506102a1600a5481565b6000818152602081815260408083206001600160a01b03861684529091529020545b92915050565b60006001600160e01b03198216636cdb3d1360e11b1480610ded57506001600160e01b031982166303a24d0760e21b145b80610db657506301ffc9a760e01b6001600160e01b0319831614610db6565b610e14611d8c565b610e1d81611db9565b50565b60068054610e2d9061308f565b80601f0160208091040260200160405190810160405280929190818152602001828054610e599061308f565b8015610ea65780601f10610e7b57610100808354040283529160200191610ea6565b820191906000526020600020905b815481529060010190602001808311610e8957829003601f168201915b505050505081565b606081600081118015610ec35750600a548111155b610ee85760405162461bcd60e51b8152600401610edf906130c3565b60405180910390fd5b610ef183611dc5565b610efa84611e59565b604051602001610f0b9291906130ed565b60405160208183030381529060405291505b50919050565b610f5c6040518060c001604052806060815260200160008152602001600081526020016000815260200160008152602001600081525090565b81600081118015610f6f5750600a548111155b610f8b5760405162461bcd60e51b8152600401610edf906130c3565b6000838152600b602052604090819020815160c08101909252805482908290610fb39061308f565b80601f0160208091040260200160405190810160405280929190818152602001828054610fdf9061308f565b801561102c5780601f106110015761010080835404028352916020019161102c565b820191906000526020600020905b81548152906001019060200180831161100f57829003601f168201915b5050505050815260200160018201548152602001600282015481526020016003820154815260200160048201548152602001600582015481525050915061107f8360009081526004602052604090205490565b60a083015250919050565b3332146110c75760405162461bcd60e51b815260206004820152600b60248201526a139bdd08185b1b1bddd95960aa1b6044820152606401610edf565b816000811180156110da5750600a548111155b6110f65760405162461bcd60e51b8152600401610edf906130c3565b6000838152600b6020526040808220815160c0810190925280548290829061111d9061308f565b80601f01602080910402602001604051908101604052809291908181526020018280546111499061308f565b80156111965780601f1061116b57610100808354040283529160200191611196565b820191906000526020600020905b81548152906001019060200180831161117957829003601f168201915b5050505050815260200160018201548152602001600282015481526020016003820154815260200160048201548152602001600582015481525050905060006111df3386611704565b905060006111ed8583613132565b90508034101561123f5760405162461bcd60e51b815260206004820152601760248201527f496e73756666696369656e742045544820616d6f756e740000000000000000006044820152606401610edf565b82602001518561125b8860009081526004602052604090205490565b6112659190613149565b11156112a85760405162461bcd60e51b815260206004820152601260248201527145786365656473206d617820737570706c7960701b6044820152606401610edf565b8260800151856112b833896118ff565b6112c29190613149565b11156113105760405162461bcd60e51b815260206004820152601b60248201527f4d6178207075726368617365206c696d697420657863656564656400000000006044820152606401610edf565b336000908152600c602090815260408083208984529091528120805487929061133a908490613149565b9250508190555061135c33878760405180602001604052806000815250611eec565b803411156113f957600033611371833461315c565b604051600081818185875af1925050503d80600081146113ad576040519150601f19603f3d011682016040523d82523d6000602084013e6113b2565b606091505b50509050806113f75760405162461bcd60e51b8152602060048201526011602482015270115512081c99599d5b990819985a5b1959607a1b6044820152606401610edf565b505b806008600082825461140b9190613149565b909155503390507f064fb1933e186be0b289a87e98518dc18cc9856ecbc9f1353d1a138ddf733ec5878734611440868261315c565b60408051948552602085019390935291830152606082015260800160405180910390a2505050505050565b336001600160a01b038616811480159061148c575061148a8682611c2e565b155b156114bd5760405163711bec9160e11b81526001600160a01b03808316600483015287166024820152604401610edf565b6114ca8686868686611f49565b505050505050565b6114da611d8c565b6000841180156114ea5750600083115b80156114f65750600082115b80156115025750600081115b61154e5760405162461bcd60e51b815260206004820152601b60248201527f5a65726f2076616c75657320617265206e6f7420616c6c6f77656400000000006044820152606401610edf565b6004600a54106115965760405162461bcd60e51b815260206004820152601360248201527213585e081d1bdad95b9259081c995858da1959606a1b6044820152606401610edf565b600a80549060006115a68361316f565b9091555050600a546000908152600b602052604090206115c686826131d3565b50600a80546000908152600b60205260408082206001019690965581548152858120600201949094558054845284842060030192909255905482529190206004015550565b611613611d8c565b47806116585760405162461bcd60e51b81526020600482015260146024820152734e6f2062616c616e636520617661696c61626c6560601b6044820152606401610edf565b600061166c6003546001600160a01b031690565b6001600160a01b03168260405160006040518083038185875af1925050503d80600081146116b6576040519150601f19603f3d011682016040523d82523d6000602084013e6116bb565b606091505b50509050806117005760405162461bcd60e51b8152602060048201526011602482015270115512081c99599d5b990819985a5b1959607a1b6044820152606401610edf565b5050565b60008061171084611abc565b6000848152600b602052604081206002015491925060c719830161174c57606461173b83600a613132565b6117459190613293565b905061176e565b6001830361176e576064611761836005613132565b61176b9190613293565b90505b611778818361315c565b9695505050505050565b606081518351146117b35781518351604051635b05999160e01b815260048101929092526024820152604401610edf565b6000835167ffffffffffffffff8111156117cf576117cf612a24565b6040519080825280602002602001820160405280156117f8578160200160208202803683370190505b50905060005b845181101561184f5760208082028601015161182290602080840287010151610d94565b828281518110611834576118346132b5565b60209081029190910101526118488161316f565b90506117fe565b509392505050565b6060600a5467ffffffffffffffff81111561187457611874612a24565b60405190808252806020026020018201604052801561189d578160200160208202803683370190505b50905060005b600a54811015610f1d576118bc8361029c836001613149565b8282815181106118ce576118ce6132b5565b6020908102919091010152806118e38161316f565b9150506118a3565b6118f3611d8c565b6118fd6000611fb0565b565b6000816000811180156119145750600a548111155b6119305760405162461bcd60e51b8152600401610edf906130c3565b50506001600160a01b03919091166000908152600c60209081526040808320938352929052205490565b60078054610e2d9061308f565b611700338383612002565b61197a611d8c565b60095460ff16156119cd5760405162461bcd60e51b815260206004820152601860248201527f4f776e65722068617320616c7265616479206d696e74656400000000000000006044820152606401610edf565b600a54600414611a1f5760405162461bcd60e51b815260206004820152601e60248201527f4e6f7420616c6c2063617465676f726965732061726520646566696e656400006044820152606401610edf565b60005b600a54811015611aac57611a9a611a416003546001600160a01b031690565b611a4c836001613149565b6064600b6000611a5d876001613149565b8152602001908152602001600020600101546005611a7b9190613132565b611a859190613293565b60405180602001604052806000815250611eec565b80611aa48161316f565b915050611a22565b506009805460ff19166001179055565b60405163603a39fb60e11b81526001600160a01b0382811660048301526000917f00000000000000000000000000000000000000000000000000000000000000009091169063c07473f69060240160206040518083038186803b158015611b725760405162461bcd60e51b815260206004820152602560248201527f54617267657420636f6e747261637420646f6573206e6f7420636f6e7461696e604482019081526420636f646560d81b6064830152608482fd5b505afa158015611b86573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610db691906132cb565b600080611bb683611857565b905060005b8151811015611c2757600b6000611bd3836001613149565b815260200190815260200160002060030154828281518110611bf757611bf76132b5565b6020026020010151611c099190613132565b611c139084613149565b925080611c1f8161316f565b915050611bbb565b5050919050565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205460ff1690565b336001600160a01b0386168114801590611c7d5750611c7b8682611c2e565b155b15611cae5760405163711bec9160e11b81526001600160a01b03808316600483015287166024820152604401610edf565b6114ca8686868686612098565b611cc3611d8c565b6001600160a01b038116611ced57604051631e4fbdf760e01b815260006004820152602401610edf565b610e1d81611fb0565b611cfe611d8c565b81600081118015611d115750600a548111155b611d2d5760405162461bcd60e51b8152600401610edf906130c3565b6000838152600b602090815260409182902060020180549085905582518681529182018190529181018490527f4afcb4a87cdbd9974efdb92ee48bc8d7cd0ae4bf217004db3d080cbaee652ca79060600160405180910390a150505050565b6003546001600160a01b031633146118fd5760405163118cdaa760e01b8152336004820152602401610edf565b600261170082826131d3565b606060028054611dd49061308f565b80601f0160208091040260200160405190810160405280929190818152602001828054611e009061308f565b8015611e4d5780601f10611e2257610100808354040283529160200191611e4d565b820191906000526020600020905b815481529060010190602001808311611e3057829003601f168201915b50505050509050919050565b60606000611e6683612126565b600101905060008167ffffffffffffffff811115611e8657611e86612a24565b6040519080825280601f01601f191660200182016040528015611eb0576020820181803683370190505b5090508181016020015b600019016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a8504945084611eba57509392505050565b6001600160a01b038416611f1657604051632bfa23e760e11b815260006004820152602401610edf565b604080516001808252602082018690528183019081526060820185905260808201909252906114ca6000878484876121fe565b6001600160a01b038416611f7357604051632bfa23e760e11b815260006004820152602401610edf565b6001600160a01b038516611f9c57604051626a0d4560e21b815260006004820152602401610edf565b611fa985858585856121fe565b5050505050565b600380546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b03821661202b5760405162ced3e160e81b815260006004820152602401610edf565b6001600160a01b03838116600081815260016020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6001600160a01b0384166120c257604051632bfa23e760e11b815260006004820152602401610edf565b6001600160a01b0385166120eb57604051626a0d4560e21b815260006004820152602401610edf565b6040805160018082526020820186905281830190815260608201859052608082019092529061211d87878484876121fe565b50505050505050565b60008072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b83106121655772184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b830492506040015b6d04ee2d6d415b85acef81000000008310612191576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc1000083106121af57662386f26fc10000830492506010015b6305f5e10083106121c7576305f5e100830492506008015b61271083106121db57612710830492506004015b606483106121ed576064830492506002015b600a8310610db65760010192915050565b61220a85858585612251565b6001600160a01b03841615611fa95782513390600103612243576020848101519084015161223c838989858589612263565b50506114ca565b6114ca8187878787876123e6565b61225d8484848461252e565b50505050565b6001600160a01b0384163b156114ca5760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e61906122a790899089908890889088906004016132e7565b602060405180830381600087803b1580156123115760405162461bcd60e51b815260206004820152602560248201527f54617267657420636f6e747261637420646f6573206e6f7420636f6e7461696e604482019081526420636f646560d81b6064830152608482fd5b505af1925050508015612341575060408051601f3d908101601f1916820190925261233e9181019061332c565b60015b6123aa573d80801561236f576040519150601f19603f3d011682016040523d82523d6000602084013e612374565b606091505b5080516000036123a257604051632bfa23e760e11b81526001600160a01b0386166004820152602401610edf565b805181602001fd5b6001600160e01b0319811663f23a6e6160e01b1461211d57604051632bfa23e760e11b81526001600160a01b0386166004820152602401610edf565b6001600160a01b0384163b156114ca5760405163bc197c8160e01b81526001600160a01b0385169063bc197c819061242a908990899088908890889060040161334c565b602060405180830381600087803b1580156124945760405162461bcd60e51b815260206004820152602560248201527f54617267657420636f6e747261637420646f6573206e6f7420636f6e7461696e604482019081526420636f646560d81b6064830152608482fd5b505af19250505080156124c4575060408051601f3d908101601f191682019092526124c19181019061332c565b60015b6124f2573d80801561236f576040519150601f19603f3d011682016040523d82523d6000602084013e612374565b6001600160e01b0319811663bc197c8160e01b1461211d57604051632bfa23e760e11b81526001600160a01b0386166004820152602401610edf565b61253a84848484612688565b6001600160a01b0384166125ed576000805b83518110156125d3576000838281518110612569576125696132b5565b60200260200101519050806004600087858151811061258a5761258a6132b5565b6020026020010151815260200190815260200160002060008282546125af9190613149565b909155506125bf90508184613149565b925050806125cc9061316f565b905061254c565b5080600560008282546125e69190613149565b9091555050505b6001600160a01b03831661225d576000805b835181101561267757600083828151811061261c5761261c6132b5565b60200260200101519050806004600087858151811061263d5761263d6132b5565b6020026020010151815260200190815260200160002060008282540392505081905550808301925050806126709061316f565b90506125ff565b506005805491909103905550505050565b80518251146126b75781518151604051635b05999160e01b815260048101929092526024820152604401610edf565b3360005b83518110156127c6576020818102858101820151908501909101516001600160a01b0388161561276e576000828152602081815260408083206001600160a01b038c16845290915290205481811015612747576040516303dee4c560e01b81526001600160a01b038a166004820152602481018290526044810183905260648101849052608401610edf565b6000838152602081815260408083206001600160a01b038d16845290915290209082900390555b6001600160a01b038716156127b3576000828152602081815260408083206001600160a01b038b168452909152812080548392906127ad908490613149565b90915550505b5050806127bf9061316f565b90506126bb565b5082516001036128475760208301516000906020840151909150856001600160a01b0316876001600160a01b0316846001600160a01b03167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f628585604051612838929190918252602082015260400190565b60405180910390a45050611fa9565b836001600160a01b0316856001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb86866040516128969291906133aa565b60405180910390a45050505050565b60405162461bcd60e51b815260206004820152602260248201527f414249206465636f64696e673a207475706c65206461746120746f6f2073686f6044820152611c9d60f21b6064820152608481fd5b60405162461bcd60e51b815260206004820152602260248201527f414249206465636f64696e673a20696e76616c6964207475706c65206f666673604482015261195d60f21b6064820152608481fd5b80356001600160a01b038116811461295c57600080fd5b919050565b60008060408385031215612977576129776128a5565b61298083612945565b946020939093013593505050565b6001600160e01b031981168114610e1d57600080fd5b6000602082840312156129b9576129b96128a5565b81356129c48161298e565b9392505050565b60405162461bcd60e51b815260206004820152602b60248201527f414249206465636f64696e673a20696e76616c69642063616c6c64617461206160448201526a1c9c985e481bd9999cd95d60aa1b6064820152608481fd5b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff81118282101715612a6357612a63612a24565b604052919050565b600082601f830112612a7f57612a7f6129cb565b8135602067ffffffffffffffff821115612a9b57612a9b612a24565b612aad601f8301601f19168201612a3a565b8281528582848701011115612b115760405162461bcd60e51b815260048101839052602760248201527f414249206465636f64696e673a20696e76616c69642062797465206172726179604482015266040d8cadccee8d60cb1b6064820152608481fd5b82828601838301376000928101909101919091529392505050565b600060208284031215612b4157612b416128a5565b813567ffffffffffffffff811115612b5b57612b5b6128f5565b612b6784828501612a6b565b949350505050565b60005b83811015612b8a578181015183820152602001612b72565b50506000910152565b60008151808452612bab816020860160208601612b6f565b601f01601f19169290920160200192915050565b6020815260006129c46020830184612b93565b600060208284031215612be757612be76128a5565b5035919050565b602081526000825160c06020840152612c0a60e0840182612b93565b9050602084015160408401526040840151606084015260608401516080840152608084015160a084015260a084015160c08401528091505092915050565b60008060408385031215612c5e57612c5e6128a5565b50508035926020909101359150565b600067ffffffffffffffff821115612c8757612c87612a24565b5060051b60200190565b60405162461bcd60e51b815260206004820152602b60248201527f414249206465636f64696e673a20696e76616c69642063616c6c64617461206160448201526a727261792073747269646560a81b6064820152608481fd5b600082601f830112612cfe57612cfe6129cb565b81356020612d13612d0e83612c6d565b612a3a565b82815260059290921b84018101918181019086841115612d3557612d35612c91565b8286015b84811015612d505780358352918301918301612d39565b509695505050505050565b600080600080600060a08688031215612d7657612d766128a5565b612d7f86612945565b9450612d8d60208701612945565b9350604086013567ffffffffffffffff80821115612dad57612dad6128f5565b612db989838a01612cea565b94506060880135915080821115612dd257612dd26128f5565b612dde89838a01612cea565b93506080880135915080821115612df757612df76128f5565b50612e0488828901612a6b565b9150509295509295909350565b600080600080600060a08688031215612e2c57612e2c6128a5565b853567ffffffffffffffff811115612e4657612e466128f5565b612e5288828901612a6b565b9860208801359850604088013597606081013597506080013595509350505050565b60008060408385031215612e8a57612e8a6128a5565b823567ffffffffffffffff80821115612ea557612ea56128f5565b818501915085601f830112612ebc57612ebc6129cb565b81356020612ecc612d0e83612c6d565b82815260059290921b84018101918181019089841115612eee57612eee612c91565b948201945b83861015612f1357612f0486612945565b82529482019490820190612ef3565b96505086013592505080821115612f2c57612f2c6128f5565b50612f3985828601612cea565b9150509250929050565b600081518084526020808501945080840160005b83811015612f7357815187529582019590820190600101612f57565b509495945050505050565b6020815260006129c46020830184612f43565b600060208284031215612fa657612fa66128a5565b6129c482612945565b60008060408385031215612fc557612fc56128a5565b612fce83612945565b915060208301358015158114612fe357600080fd5b809150509250929050565b60008060408385031215613004576130046128a5565b61300d83612945565b915061301b60208401612945565b90509250929050565b600080600080600060a0868803121561303f5761303f6128a5565b61304886612945565b945061305660208701612945565b93506040860135925060608601359150608086013567ffffffffffffffff811115613083576130836128f5565b612e0488828901612a6b565b600181811c908216806130a357607f821691505b602082108103610f1d57634e487b7160e01b600052602260045260246000fd5b60208082526010908201526f155b9adb9bdddb881d1bdad95b88125160821b604082015260600190565b600083516130ff818460208801612b6f565b835190830190613113818360208801612b6f565b01949350505050565b634e487b7160e01b600052601160045260246000fd5b8082028115828204841417610db657610db661311c565b80820180821115610db657610db661311c565b81810381811115610db657610db661311c565b6000600182016131815761318161311c565b5060010190565b601f8211156131ce57600081815260208120601f850160051c810160208610156131af5750805b601f850160051c820191505b818110156114ca578281556001016131bb565b505050565b815167ffffffffffffffff8111156131ed576131ed612a24565b613201816131fb845461308f565b84613188565b602080601f831160018114613236576000841561321e5750858301515b600019600386901b1c1916600185901b1785556114ca565b600085815260208120601f198616915b8281101561326557888601518255948401946001909101908401613246565b50858210156132835787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b6000826132b057634e487b7160e01b600052601260045260246000fd5b500490565b634e487b7160e01b600052603260045260246000fd5b6000602082840312156132e0576132e06128a5565b5051919050565b6001600160a01b03868116825285166020820152604081018490526060810183905260a06080820181905260009061332190830184612b93565b979650505050505050565b600060208284031215613341576133416128a5565b81516129c48161298e565b6001600160a01b0386811682528516602082015260a06040820181905260009061337890830186612f43565b828103606084015261338a8186612f43565b9050828103608084015261339e8185612b93565b98975050505050505050565b6040815260006133bd6040830185612f43565b82810360208401526133cf8185612f43565b9594505050505056fe45746865722073656e7420746f206e6f6e2d70617961626c652066756e637469a26469706673582212207aec73d6202ce384216f5acf7b94ede88bcef98f1c30a160bd26a90fe951598c64736f6c6343000814003300000000000000000000000073395dd2954333fe546414679b931fb08c84ae81000000000000000000000000ad37f4b08e90067e5bb90d6d022cf5aaf7b1d71800000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000140000000000000000000000000000000000000000000000000000000000000002368747470733a2f2f6e66742e76657374726164616f2e636f6d2f7665737472616e732f000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000185665737472616e20556e69747920436f6c6c656374696f6e000000000000000000000000000000000000000000000000000000000000000000000000000000035655430000000000000000000000000000000000000000000000000000000000

Deployed Bytecode

0x6080604052600436106101e65760003560e01c80638510736711610102578063def6327311610095578063f242432a11610064578063f242432a14610c32578063f2fde38b14610c8d578063f7d9757714610ce8578063f84ddf0b14610d43576101ed565b8063def6327314610ad6578063def9c5d614610b2b578063e985e9c514610b86578063effcb1d414610be1576101ed565b8063a22cb465116100d1578063a22cb46514610968578063b12dc991146109c3578063bd85b03914610a13578063c07473f614610a7b576101ed565b806385107367146107dd5780638da5cb5b14610864578063916433a6146108bd57806395d89b4114610918576101ed565b80632eb2c2d61161017a5780634e1273f4116101495780634e1273f4146106605780634f558e79146106c857806352de4ee514610732578063715018a61461078d576101ed565b80632eb2c2d6146104ff578063333591611461055a5780633ccfd60b146105b55780634a011b6d14610605576101ed565b80630e89341c116101b65780630e89341c146103d957806318160ddd146104345780631f8bc79014610484578063231a9946146104ec576101ed565b8062fdd58e1461024657806301ffc9a7146102b457806302fe53051461031f57806306fdde031461037c576101ed565b366101ed57005b60405162461bcd60e51b815260206004820152602960248201527f556e6b6e6f776e207369676e617475726520616e64206e6f2066616c6c62616360448201908152681ac81919599a5b995960ba1b6064830152608482fd5b34801561028d5760405162461bcd60e51b815260206004820152602260248201526000805160206133d9833981519152604482019081526137b760f11b6064830152608482fd5b506102a161029c366004612961565b610d94565b6040519081526020015b60405180910390f35b3480156102fb5760405162461bcd60e51b815260206004820152602260248201526000805160206133d9833981519152604482019081526137b760f11b6064830152608482fd5b5061030f61030a3660046129a4565b610dbc565b60405190151581526020016102ab565b3480156103665760405162461bcd60e51b815260206004820152602260248201526000805160206133d9833981519152604482019081526137b760f11b6064830152608482fd5b5061037a610375366004612b2c565b610e0c565b005b3480156103c35760405162461bcd60e51b815260206004820152602260248201526000805160206133d9833981519152604482019081526137b760f11b6064830152608482fd5b506103cc610e20565b6040516102ab9190612bbf565b3480156104205760405162461bcd60e51b815260206004820152602260248201526000805160206133d9833981519152604482019081526137b760f11b6064830152608482fd5b506103cc61042f366004612bd2565b610eae565b34801561047b5760405162461bcd60e51b815260206004820152602260248201526000805160206133d9833981519152604482019081526137b760f11b6064830152608482fd5b506005546102a1565b3480156104cb5760405162461bcd60e51b815260206004820152602260248201526000805160206133d9833981519152604482019081526137b760f11b6064830152608482fd5b506104df6104da366004612bd2565b610f23565b6040516102ab9190612bee565b61037a6104fa366004612c48565b61108a565b3480156105465760405162461bcd60e51b815260206004820152602260248201526000805160206133d9833981519152604482019081526137b760f11b6064830152608482fd5b5061037a610555366004612d5b565b61146b565b3480156105a15760405162461bcd60e51b815260206004820152602260248201526000805160206133d9833981519152604482019081526137b760f11b6064830152608482fd5b5061037a6105b0366004612e11565b6114d2565b3480156105fc5760405162461bcd60e51b815260206004820152602260248201526000805160206133d9833981519152604482019081526137b760f11b6064830152608482fd5b5061037a61160b565b34801561064c5760405162461bcd60e51b815260206004820152602260248201526000805160206133d9833981519152604482019081526137b760f11b6064830152608482fd5b506102a161065b366004612961565b611704565b3480156106a75760405162461bcd60e51b815260206004820152602260248201526000805160206133d9833981519152604482019081526137b760f11b6064830152608482fd5b506106bb6106b6366004612e74565b611782565b6040516102ab9190612f7e565b34801561070f5760405162461bcd60e51b815260206004820152602260248201526000805160206133d9833981519152604482019081526137b760f11b6064830152608482fd5b5061030f61071e366004612bd2565b600090815260046020526040902054151590565b3480156107795760405162461bcd60e51b815260206004820152602260248201526000805160206133d9833981519152604482019081526137b760f11b6064830152608482fd5b506106bb610788366004612f91565b611857565b3480156107d45760405162461bcd60e51b815260206004820152602260248201526000805160206133d9833981519152604482019081526137b760f11b6064830152608482fd5b5061037a6118eb565b3480156108245760405162461bcd60e51b815260206004820152602260248201526000805160206133d9833981519152604482019081526137b760f11b6064830152608482fd5b5061084c7f000000000000000000000000ad37f4b08e90067e5bb90d6d022cf5aaf7b1d71881565b6040516001600160a01b0390911681526020016102ab565b3480156108ab5760405162461bcd60e51b815260206004820152602260248201526000805160206133d9833981519152604482019081526137b760f11b6064830152608482fd5b506003546001600160a01b031661084c565b3480156109045760405162461bcd60e51b815260206004820152602260248201526000805160206133d9833981519152604482019081526137b760f11b6064830152608482fd5b506102a1610913366004612961565b6118ff565b34801561095f5760405162461bcd60e51b815260206004820152602260248201526000805160206133d9833981519152604482019081526137b760f11b6064830152608482fd5b506103cc61195a565b3480156109af5760405162461bcd60e51b815260206004820152602260248201526000805160206133d9833981519152604482019081526137b760f11b6064830152608482fd5b5061037a6109be366004612faf565b611967565b348015610a0a5760405162461bcd60e51b815260206004820152602260248201526000805160206133d9833981519152604482019081526137b760f11b6064830152608482fd5b5061037a611972565b348015610a5a5760405162461bcd60e51b815260206004820152602260248201526000805160206133d9833981519152604482019081526137b760f11b6064830152608482fd5b506102a1610a69366004612bd2565b60009081526004602052604090205490565b348015610ac25760405162461bcd60e51b815260206004820152602260248201526000805160206133d9833981519152604482019081526137b760f11b6064830152608482fd5b506102a1610ad1366004612f91565b611abc565b348015610b1d5760405162461bcd60e51b815260206004820152602260248201526000805160206133d9833981519152604482019081526137b760f11b6064830152608482fd5b5060095461030f9060ff1681565b348015610b725760405162461bcd60e51b815260206004820152602260248201526000805160206133d9833981519152604482019081526137b760f11b6064830152608482fd5b506102a1610b81366004612f91565b611baa565b348015610bcd5760405162461bcd60e51b815260206004820152602260248201526000805160206133d9833981519152604482019081526137b760f11b6064830152608482fd5b5061030f610bdc366004612fee565b611c2e565b348015610c285760405162461bcd60e51b815260206004820152602260248201526000805160206133d9833981519152604482019081526137b760f11b6064830152608482fd5b506102a160085481565b348015610c795760405162461bcd60e51b815260206004820152602260248201526000805160206133d9833981519152604482019081526137b760f11b6064830152608482fd5b5061037a610c88366004613024565b611c5c565b348015610cd45760405162461bcd60e51b815260206004820152602260248201526000805160206133d9833981519152604482019081526137b760f11b6064830152608482fd5b5061037a610ce3366004612f91565b611cbb565b348015610d2f5760405162461bcd60e51b815260206004820152602260248201526000805160206133d9833981519152604482019081526137b760f11b6064830152608482fd5b5061037a610d3e366004612c48565b611cf6565b348015610d8a5760405162461bcd60e51b815260206004820152602260248201526000805160206133d9833981519152604482019081526137b760f11b6064830152608482fd5b506102a1600a5481565b6000818152602081815260408083206001600160a01b03861684529091529020545b92915050565b60006001600160e01b03198216636cdb3d1360e11b1480610ded57506001600160e01b031982166303a24d0760e21b145b80610db657506301ffc9a760e01b6001600160e01b0319831614610db6565b610e14611d8c565b610e1d81611db9565b50565b60068054610e2d9061308f565b80601f0160208091040260200160405190810160405280929190818152602001828054610e599061308f565b8015610ea65780601f10610e7b57610100808354040283529160200191610ea6565b820191906000526020600020905b815481529060010190602001808311610e8957829003601f168201915b505050505081565b606081600081118015610ec35750600a548111155b610ee85760405162461bcd60e51b8152600401610edf906130c3565b60405180910390fd5b610ef183611dc5565b610efa84611e59565b604051602001610f0b9291906130ed565b60405160208183030381529060405291505b50919050565b610f5c6040518060c001604052806060815260200160008152602001600081526020016000815260200160008152602001600081525090565b81600081118015610f6f5750600a548111155b610f8b5760405162461bcd60e51b8152600401610edf906130c3565b6000838152600b602052604090819020815160c08101909252805482908290610fb39061308f565b80601f0160208091040260200160405190810160405280929190818152602001828054610fdf9061308f565b801561102c5780601f106110015761010080835404028352916020019161102c565b820191906000526020600020905b81548152906001019060200180831161100f57829003601f168201915b5050505050815260200160018201548152602001600282015481526020016003820154815260200160048201548152602001600582015481525050915061107f8360009081526004602052604090205490565b60a083015250919050565b3332146110c75760405162461bcd60e51b815260206004820152600b60248201526a139bdd08185b1b1bddd95960aa1b6044820152606401610edf565b816000811180156110da5750600a548111155b6110f65760405162461bcd60e51b8152600401610edf906130c3565b6000838152600b6020526040808220815160c0810190925280548290829061111d9061308f565b80601f01602080910402602001604051908101604052809291908181526020018280546111499061308f565b80156111965780601f1061116b57610100808354040283529160200191611196565b820191906000526020600020905b81548152906001019060200180831161117957829003601f168201915b5050505050815260200160018201548152602001600282015481526020016003820154815260200160048201548152602001600582015481525050905060006111df3386611704565b905060006111ed8583613132565b90508034101561123f5760405162461bcd60e51b815260206004820152601760248201527f496e73756666696369656e742045544820616d6f756e740000000000000000006044820152606401610edf565b82602001518561125b8860009081526004602052604090205490565b6112659190613149565b11156112a85760405162461bcd60e51b815260206004820152601260248201527145786365656473206d617820737570706c7960701b6044820152606401610edf565b8260800151856112b833896118ff565b6112c29190613149565b11156113105760405162461bcd60e51b815260206004820152601b60248201527f4d6178207075726368617365206c696d697420657863656564656400000000006044820152606401610edf565b336000908152600c602090815260408083208984529091528120805487929061133a908490613149565b9250508190555061135c33878760405180602001604052806000815250611eec565b803411156113f957600033611371833461315c565b604051600081818185875af1925050503d80600081146113ad576040519150601f19603f3d011682016040523d82523d6000602084013e6113b2565b606091505b50509050806113f75760405162461bcd60e51b8152602060048201526011602482015270115512081c99599d5b990819985a5b1959607a1b6044820152606401610edf565b505b806008600082825461140b9190613149565b909155503390507f064fb1933e186be0b289a87e98518dc18cc9856ecbc9f1353d1a138ddf733ec5878734611440868261315c565b60408051948552602085019390935291830152606082015260800160405180910390a2505050505050565b336001600160a01b038616811480159061148c575061148a8682611c2e565b155b156114bd5760405163711bec9160e11b81526001600160a01b03808316600483015287166024820152604401610edf565b6114ca8686868686611f49565b505050505050565b6114da611d8c565b6000841180156114ea5750600083115b80156114f65750600082115b80156115025750600081115b61154e5760405162461bcd60e51b815260206004820152601b60248201527f5a65726f2076616c75657320617265206e6f7420616c6c6f77656400000000006044820152606401610edf565b6004600a54106115965760405162461bcd60e51b815260206004820152601360248201527213585e081d1bdad95b9259081c995858da1959606a1b6044820152606401610edf565b600a80549060006115a68361316f565b9091555050600a546000908152600b602052604090206115c686826131d3565b50600a80546000908152600b60205260408082206001019690965581548152858120600201949094558054845284842060030192909255905482529190206004015550565b611613611d8c565b47806116585760405162461bcd60e51b81526020600482015260146024820152734e6f2062616c616e636520617661696c61626c6560601b6044820152606401610edf565b600061166c6003546001600160a01b031690565b6001600160a01b03168260405160006040518083038185875af1925050503d80600081146116b6576040519150601f19603f3d011682016040523d82523d6000602084013e6116bb565b606091505b50509050806117005760405162461bcd60e51b8152602060048201526011602482015270115512081c99599d5b990819985a5b1959607a1b6044820152606401610edf565b5050565b60008061171084611abc565b6000848152600b602052604081206002015491925060c719830161174c57606461173b83600a613132565b6117459190613293565b905061176e565b6001830361176e576064611761836005613132565b61176b9190613293565b90505b611778818361315c565b9695505050505050565b606081518351146117b35781518351604051635b05999160e01b815260048101929092526024820152604401610edf565b6000835167ffffffffffffffff8111156117cf576117cf612a24565b6040519080825280602002602001820160405280156117f8578160200160208202803683370190505b50905060005b845181101561184f5760208082028601015161182290602080840287010151610d94565b828281518110611834576118346132b5565b60209081029190910101526118488161316f565b90506117fe565b509392505050565b6060600a5467ffffffffffffffff81111561187457611874612a24565b60405190808252806020026020018201604052801561189d578160200160208202803683370190505b50905060005b600a54811015610f1d576118bc8361029c836001613149565b8282815181106118ce576118ce6132b5565b6020908102919091010152806118e38161316f565b9150506118a3565b6118f3611d8c565b6118fd6000611fb0565b565b6000816000811180156119145750600a548111155b6119305760405162461bcd60e51b8152600401610edf906130c3565b50506001600160a01b03919091166000908152600c60209081526040808320938352929052205490565b60078054610e2d9061308f565b611700338383612002565b61197a611d8c565b60095460ff16156119cd5760405162461bcd60e51b815260206004820152601860248201527f4f776e65722068617320616c7265616479206d696e74656400000000000000006044820152606401610edf565b600a54600414611a1f5760405162461bcd60e51b815260206004820152601e60248201527f4e6f7420616c6c2063617465676f726965732061726520646566696e656400006044820152606401610edf565b60005b600a54811015611aac57611a9a611a416003546001600160a01b031690565b611a4c836001613149565b6064600b6000611a5d876001613149565b8152602001908152602001600020600101546005611a7b9190613132565b611a859190613293565b60405180602001604052806000815250611eec565b80611aa48161316f565b915050611a22565b506009805460ff19166001179055565b60405163603a39fb60e11b81526001600160a01b0382811660048301526000917f000000000000000000000000ad37f4b08e90067e5bb90d6d022cf5aaf7b1d7189091169063c07473f69060240160206040518083038186803b158015611b725760405162461bcd60e51b815260206004820152602560248201527f54617267657420636f6e747261637420646f6573206e6f7420636f6e7461696e604482019081526420636f646560d81b6064830152608482fd5b505afa158015611b86573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610db691906132cb565b600080611bb683611857565b905060005b8151811015611c2757600b6000611bd3836001613149565b815260200190815260200160002060030154828281518110611bf757611bf76132b5565b6020026020010151611c099190613132565b611c139084613149565b925080611c1f8161316f565b915050611bbb565b5050919050565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205460ff1690565b336001600160a01b0386168114801590611c7d5750611c7b8682611c2e565b155b15611cae5760405163711bec9160e11b81526001600160a01b03808316600483015287166024820152604401610edf565b6114ca8686868686612098565b611cc3611d8c565b6001600160a01b038116611ced57604051631e4fbdf760e01b815260006004820152602401610edf565b610e1d81611fb0565b611cfe611d8c565b81600081118015611d115750600a548111155b611d2d5760405162461bcd60e51b8152600401610edf906130c3565b6000838152600b602090815260409182902060020180549085905582518681529182018190529181018490527f4afcb4a87cdbd9974efdb92ee48bc8d7cd0ae4bf217004db3d080cbaee652ca79060600160405180910390a150505050565b6003546001600160a01b031633146118fd5760405163118cdaa760e01b8152336004820152602401610edf565b600261170082826131d3565b606060028054611dd49061308f565b80601f0160208091040260200160405190810160405280929190818152602001828054611e009061308f565b8015611e4d5780601f10611e2257610100808354040283529160200191611e4d565b820191906000526020600020905b815481529060010190602001808311611e3057829003601f168201915b50505050509050919050565b60606000611e6683612126565b600101905060008167ffffffffffffffff811115611e8657611e86612a24565b6040519080825280601f01601f191660200182016040528015611eb0576020820181803683370190505b5090508181016020015b600019016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a8504945084611eba57509392505050565b6001600160a01b038416611f1657604051632bfa23e760e11b815260006004820152602401610edf565b604080516001808252602082018690528183019081526060820185905260808201909252906114ca6000878484876121fe565b6001600160a01b038416611f7357604051632bfa23e760e11b815260006004820152602401610edf565b6001600160a01b038516611f9c57604051626a0d4560e21b815260006004820152602401610edf565b611fa985858585856121fe565b5050505050565b600380546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b03821661202b5760405162ced3e160e81b815260006004820152602401610edf565b6001600160a01b03838116600081815260016020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6001600160a01b0384166120c257604051632bfa23e760e11b815260006004820152602401610edf565b6001600160a01b0385166120eb57604051626a0d4560e21b815260006004820152602401610edf565b6040805160018082526020820186905281830190815260608201859052608082019092529061211d87878484876121fe565b50505050505050565b60008072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b83106121655772184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b830492506040015b6d04ee2d6d415b85acef81000000008310612191576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc1000083106121af57662386f26fc10000830492506010015b6305f5e10083106121c7576305f5e100830492506008015b61271083106121db57612710830492506004015b606483106121ed576064830492506002015b600a8310610db65760010192915050565b61220a85858585612251565b6001600160a01b03841615611fa95782513390600103612243576020848101519084015161223c838989858589612263565b50506114ca565b6114ca8187878787876123e6565b61225d8484848461252e565b50505050565b6001600160a01b0384163b156114ca5760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e61906122a790899089908890889088906004016132e7565b602060405180830381600087803b1580156123115760405162461bcd60e51b815260206004820152602560248201527f54617267657420636f6e747261637420646f6573206e6f7420636f6e7461696e604482019081526420636f646560d81b6064830152608482fd5b505af1925050508015612341575060408051601f3d908101601f1916820190925261233e9181019061332c565b60015b6123aa573d80801561236f576040519150601f19603f3d011682016040523d82523d6000602084013e612374565b606091505b5080516000036123a257604051632bfa23e760e11b81526001600160a01b0386166004820152602401610edf565b805181602001fd5b6001600160e01b0319811663f23a6e6160e01b1461211d57604051632bfa23e760e11b81526001600160a01b0386166004820152602401610edf565b6001600160a01b0384163b156114ca5760405163bc197c8160e01b81526001600160a01b0385169063bc197c819061242a908990899088908890889060040161334c565b602060405180830381600087803b1580156124945760405162461bcd60e51b815260206004820152602560248201527f54617267657420636f6e747261637420646f6573206e6f7420636f6e7461696e604482019081526420636f646560d81b6064830152608482fd5b505af19250505080156124c4575060408051601f3d908101601f191682019092526124c19181019061332c565b60015b6124f2573d80801561236f576040519150601f19603f3d011682016040523d82523d6000602084013e612374565b6001600160e01b0319811663bc197c8160e01b1461211d57604051632bfa23e760e11b81526001600160a01b0386166004820152602401610edf565b61253a84848484612688565b6001600160a01b0384166125ed576000805b83518110156125d3576000838281518110612569576125696132b5565b60200260200101519050806004600087858151811061258a5761258a6132b5565b6020026020010151815260200190815260200160002060008282546125af9190613149565b909155506125bf90508184613149565b925050806125cc9061316f565b905061254c565b5080600560008282546125e69190613149565b9091555050505b6001600160a01b03831661225d576000805b835181101561267757600083828151811061261c5761261c6132b5565b60200260200101519050806004600087858151811061263d5761263d6132b5565b6020026020010151815260200190815260200160002060008282540392505081905550808301925050806126709061316f565b90506125ff565b506005805491909103905550505050565b80518251146126b75781518151604051635b05999160e01b815260048101929092526024820152604401610edf565b3360005b83518110156127c6576020818102858101820151908501909101516001600160a01b0388161561276e576000828152602081815260408083206001600160a01b038c16845290915290205481811015612747576040516303dee4c560e01b81526001600160a01b038a166004820152602481018290526044810183905260648101849052608401610edf565b6000838152602081815260408083206001600160a01b038d16845290915290209082900390555b6001600160a01b038716156127b3576000828152602081815260408083206001600160a01b038b168452909152812080548392906127ad908490613149565b90915550505b5050806127bf9061316f565b90506126bb565b5082516001036128475760208301516000906020840151909150856001600160a01b0316876001600160a01b0316846001600160a01b03167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f628585604051612838929190918252602082015260400190565b60405180910390a45050611fa9565b836001600160a01b0316856001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb86866040516128969291906133aa565b60405180910390a45050505050565b60405162461bcd60e51b815260206004820152602260248201527f414249206465636f64696e673a207475706c65206461746120746f6f2073686f6044820152611c9d60f21b6064820152608481fd5b60405162461bcd60e51b815260206004820152602260248201527f414249206465636f64696e673a20696e76616c6964207475706c65206f666673604482015261195d60f21b6064820152608481fd5b80356001600160a01b038116811461295c57600080fd5b919050565b60008060408385031215612977576129776128a5565b61298083612945565b946020939093013593505050565b6001600160e01b031981168114610e1d57600080fd5b6000602082840312156129b9576129b96128a5565b81356129c48161298e565b9392505050565b60405162461bcd60e51b815260206004820152602b60248201527f414249206465636f64696e673a20696e76616c69642063616c6c64617461206160448201526a1c9c985e481bd9999cd95d60aa1b6064820152608481fd5b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff81118282101715612a6357612a63612a24565b604052919050565b600082601f830112612a7f57612a7f6129cb565b8135602067ffffffffffffffff821115612a9b57612a9b612a24565b612aad601f8301601f19168201612a3a565b8281528582848701011115612b115760405162461bcd60e51b815260048101839052602760248201527f414249206465636f64696e673a20696e76616c69642062797465206172726179604482015266040d8cadccee8d60cb1b6064820152608481fd5b82828601838301376000928101909101919091529392505050565b600060208284031215612b4157612b416128a5565b813567ffffffffffffffff811115612b5b57612b5b6128f5565b612b6784828501612a6b565b949350505050565b60005b83811015612b8a578181015183820152602001612b72565b50506000910152565b60008151808452612bab816020860160208601612b6f565b601f01601f19169290920160200192915050565b6020815260006129c46020830184612b93565b600060208284031215612be757612be76128a5565b5035919050565b602081526000825160c06020840152612c0a60e0840182612b93565b9050602084015160408401526040840151606084015260608401516080840152608084015160a084015260a084015160c08401528091505092915050565b60008060408385031215612c5e57612c5e6128a5565b50508035926020909101359150565b600067ffffffffffffffff821115612c8757612c87612a24565b5060051b60200190565b60405162461bcd60e51b815260206004820152602b60248201527f414249206465636f64696e673a20696e76616c69642063616c6c64617461206160448201526a727261792073747269646560a81b6064820152608481fd5b600082601f830112612cfe57612cfe6129cb565b81356020612d13612d0e83612c6d565b612a3a565b82815260059290921b84018101918181019086841115612d3557612d35612c91565b8286015b84811015612d505780358352918301918301612d39565b509695505050505050565b600080600080600060a08688031215612d7657612d766128a5565b612d7f86612945565b9450612d8d60208701612945565b9350604086013567ffffffffffffffff80821115612dad57612dad6128f5565b612db989838a01612cea565b94506060880135915080821115612dd257612dd26128f5565b612dde89838a01612cea565b93506080880135915080821115612df757612df76128f5565b50612e0488828901612a6b565b9150509295509295909350565b600080600080600060a08688031215612e2c57612e2c6128a5565b853567ffffffffffffffff811115612e4657612e466128f5565b612e5288828901612a6b565b9860208801359850604088013597606081013597506080013595509350505050565b60008060408385031215612e8a57612e8a6128a5565b823567ffffffffffffffff80821115612ea557612ea56128f5565b818501915085601f830112612ebc57612ebc6129cb565b81356020612ecc612d0e83612c6d565b82815260059290921b84018101918181019089841115612eee57612eee612c91565b948201945b83861015612f1357612f0486612945565b82529482019490820190612ef3565b96505086013592505080821115612f2c57612f2c6128f5565b50612f3985828601612cea565b9150509250929050565b600081518084526020808501945080840160005b83811015612f7357815187529582019590820190600101612f57565b509495945050505050565b6020815260006129c46020830184612f43565b600060208284031215612fa657612fa66128a5565b6129c482612945565b60008060408385031215612fc557612fc56128a5565b612fce83612945565b915060208301358015158114612fe357600080fd5b809150509250929050565b60008060408385031215613004576130046128a5565b61300d83612945565b915061301b60208401612945565b90509250929050565b600080600080600060a0868803121561303f5761303f6128a5565b61304886612945565b945061305660208701612945565b93506040860135925060608601359150608086013567ffffffffffffffff811115613083576130836128f5565b612e0488828901612a6b565b600181811c908216806130a357607f821691505b602082108103610f1d57634e487b7160e01b600052602260045260246000fd5b60208082526010908201526f155b9adb9bdddb881d1bdad95b88125160821b604082015260600190565b600083516130ff818460208801612b6f565b835190830190613113818360208801612b6f565b01949350505050565b634e487b7160e01b600052601160045260246000fd5b8082028115828204841417610db657610db661311c565b80820180821115610db657610db661311c565b81810381811115610db657610db661311c565b6000600182016131815761318161311c565b5060010190565b601f8211156131ce57600081815260208120601f850160051c810160208610156131af5750805b601f850160051c820191505b818110156114ca578281556001016131bb565b505050565b815167ffffffffffffffff8111156131ed576131ed612a24565b613201816131fb845461308f565b84613188565b602080601f831160018114613236576000841561321e5750858301515b600019600386901b1c1916600185901b1785556114ca565b600085815260208120601f198616915b8281101561326557888601518255948401946001909101908401613246565b50858210156132835787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b6000826132b057634e487b7160e01b600052601260045260246000fd5b500490565b634e487b7160e01b600052603260045260246000fd5b6000602082840312156132e0576132e06128a5565b5051919050565b6001600160a01b03868116825285166020820152604081018490526060810183905260a06080820181905260009061332190830184612b93565b979650505050505050565b600060208284031215613341576133416128a5565b81516129c48161298e565b6001600160a01b0386811682528516602082015260a06040820181905260009061337890830186612f43565b828103606084015261338a8186612f43565b9050828103608084015261339e8185612b93565b98975050505050505050565b6040815260006133bd6040830185612f43565b82810360208401526133cf8185612f43565b9594505050505056fe45746865722073656e7420746f206e6f6e2d70617961626c652066756e637469a26469706673582212207aec73d6202ce384216f5acf7b94ede88bcef98f1c30a160bd26a90fe951598c64736f6c63430008140033

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

00000000000000000000000073395dd2954333fe546414679b931fb08c84ae81000000000000000000000000ad37f4b08e90067e5bb90d6d022cf5aaf7b1d71800000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000140000000000000000000000000000000000000000000000000000000000000002368747470733a2f2f6e66742e76657374726164616f2e636f6d2f7665737472616e732f000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000185665737472616e20556e69747920436f6c6c656374696f6e000000000000000000000000000000000000000000000000000000000000000000000000000000035655430000000000000000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : initialOwner (address): 0x73395DD2954333Fe546414679B931fB08C84ae81
Arg [1] : daoStake (address): 0xAd37f4B08E90067E5Bb90D6D022CF5AAF7b1d718
Arg [2] : startUri (string): https://nft.vestradao.com/vestrans/
Arg [3] : tokenName (string): Vestran Unity Collection
Arg [4] : tokenSymbol (string): VUC

-----Encoded View---------------
12 Constructor Arguments found :
Arg [0] : 00000000000000000000000073395dd2954333fe546414679b931fb08c84ae81
Arg [1] : 000000000000000000000000ad37f4b08e90067e5bb90d6d022cf5aaf7b1d718
Arg [2] : 00000000000000000000000000000000000000000000000000000000000000a0
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000100
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000140
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000023
Arg [6] : 68747470733a2f2f6e66742e76657374726164616f2e636f6d2f766573747261
Arg [7] : 6e732f0000000000000000000000000000000000000000000000000000000000
Arg [8] : 0000000000000000000000000000000000000000000000000000000000000018
Arg [9] : 5665737472616e20556e69747920436f6c6c656374696f6e0000000000000000
Arg [10] : 0000000000000000000000000000000000000000000000000000000000000003
Arg [11] : 5655430000000000000000000000000000000000000000000000000000000000


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.