ETH Price: $3,828.83 (+5.30%)

Token

Ether Mines (COE)
 

Overview

Max Total Supply

1,117 COE

Holders

969

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A

Other Info

0x49E785e18cF95c83A4D0e44bfBB6549AFEED87Ca
Loading...
Loading
Loading...
Loading
Loading...
Loading

OVERVIEW

The Crystals of Ether function as an access token for the pre-sale of the Adventurers mint.

# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
KingdomsOfEtherCrystal

Compiler Version
v0.8.11+commit.d7f03943

Optimization Enabled:
Yes with 1000 runs

Other Settings:
default evmVersion
File 1 of 11 : Crystal1155.sol
//SPDX-License-Identifier: Unlicense
pragma solidity ^0.8.11;

import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/Address.sol";
import "@openzeppelin/contracts/utils/introspection/IERC165.sol";
import "@openzeppelin/contracts/token/ERC1155/extensions/IERC1155MetadataURI.sol";
import "@openzeppelin/contracts/token/ERC1155/IERC1155.sol";
import "@openzeppelin/contracts/token/ERC1155/IERC1155Receiver.sol";
import "@openzeppelin/contracts/utils/cryptography/draft-EIP712.sol";
import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol";


contract KingdomsOfEtherCrystal is IERC1155, IERC1155MetadataURI, EIP712, Ownable
{
    /* constants */
    string private tokenUri = "ipfs://QmcvfZ2w3FBCca1JWDYYqE9RfPjJ2rV7E2FZ5ZYN4Z2M2i";
    uint256 public constant TOKEN_ID = 1;
    string public constant NAME = "Ether Mines";
    string public constant SYMBOL = "COE";
    string public constant EIP712_VERSION = "1.0.0";

    /* state */
    address public signer; // for eip712 verification
    address public adventurers;

    uint private constant PUBLIC_POOL = 0;
    uint private constant PRIVATE_POOL = 1;
    uint private constant TOTAL_POOL = 2;
    uint64 private constant PUBLIC_POOL_CAPACITY = 500;
    uint64 private constant PRIVATE_POOL_CAPACITY = 500;
    uint64 private constant MAX_SUPPLY = 1500;
    uint private constant MAX_MINT_PER_ADDR = 1;
    struct Pool {
        uint64 supply;
        uint64 maxSupply;
    }

    bool public publicMint = false;
    Pool[] public supply;
    uint public maxMintPerAddress = MAX_MINT_PER_ADDR;
    mapping(address/*minter*/ => /*minted count*/uint) internal minters;

    string public name;
    string public symbol;

    mapping(address => uint256) private _balances;
    mapping(address => mapping(address => bool)) internal _allowances;
    
    using Address for address;

    constructor() EIP712(NAME, EIP712_VERSION) Ownable() {
        name = NAME;
        symbol = SYMBOL;
        signer = msg.sender;
        supply.push(Pool({
            supply: 0,
            maxSupply: PUBLIC_POOL_CAPACITY
        }));
        supply.push(Pool({
            supply: 0,
            maxSupply: PRIVATE_POOL_CAPACITY
        }));
        supply.push(Pool({
            supply: 0,
            maxSupply: MAX_SUPPLY
        }));
    }


    /**
     * @dev See {IERC20-totalSupply}.
     */
    function totalSupply() public view returns (uint256) {
        return supply[TOTAL_POOL].supply;
    }

    /**
     * @notice mint crystal token
     */
    function mint(uint256 _pool, bytes memory _signature) external returns (uint256 _tokenId) {
        require(verifySignature(msg.sender, _pool, _signature) == signer, INVALID_SIGNATURE);
        require(supply[_pool].supply < supply[_pool].maxSupply, SUPPLY_EXCEEDED);
        supply[_pool].supply += 1;
        require(supply[TOTAL_POOL].supply < supply[TOTAL_POOL].maxSupply, TOKENS_OVER);
        return _mint(msg.sender);
    }

    /**
     * @notice mint crystal token after public sale is enabled
     */
    function mintPublic() external returns (uint256 _tokenId) {
        require(publicMint, PUBLIC_MINT_NOT_STARTED);
        require(supply[TOTAL_POOL].supply < (supply[TOTAL_POOL].maxSupply - supply[PRIVATE_POOL].maxSupply), TOKENS_OVER);
        return _mint(msg.sender);
    }

    /**
     * @notice enable/disable public mint
     */
    function setPublicMint(bool _enabled) external onlyOwner() {
        publicMint = _enabled;
    }

    /**
     * @notice set max mint per address
     */
    function setMaxMintPerAddress(uint _maxMint) external onlyOwner() {
        maxMintPerAddress = _maxMint;
    }

    /**
     * @notice set max supply
     */
    function setMaxSupply(uint _pool, uint64 _maxSupply) external onlyOwner() {
        supply[_pool].maxSupply = _maxSupply;
    }

    /**
     * @notice set adventurers contract
     */
    function setAdventurers(address _adventurers) external onlyOwner() {
        adventurers = _adventurers;
    }

    /**
     * @notice set adventurers contract
     */
    function setUri(string memory _uri) external onlyOwner() {
        tokenUri = _uri;
    }

    /**
     * @notice set eip-712 signer
     */
    function setSigner(address _signer) external onlyOwner() {
        signer = _signer;
    }

    function _mint(address _to) internal returns (uint256 _tokenId) {
        require(minters[_to] < maxMintPerAddress, PASS_USED_UP);
        require(_to != address(0), ZERO_ADDRESS);
        supply[TOTAL_POOL].supply += 1;
        minters[_to] += 1;
        _balances[_to] += 1;
        emit TransferSingle(msg.sender, address(0), _to, TOKEN_ID, 1);
        return TOKEN_ID;
    }

    /* eip-712 */
    bytes32 private constant PASS_TYPEHASH = keccak256("MintPass(address wallet,uint256 pool)");

    function verifySignature(address _wallet, uint256 _pool, bytes memory _signature) public view returns (address _signer) {
        bytes32 _digest = _hashTypedDataV4(
            keccak256(abi.encode(PASS_TYPEHASH, _wallet, _pool))
        );
        _signer = ECDSA.recover(_digest, _signature);
    }

    function domainSeparatorV4() public view returns (bytes32) {
        return _domainSeparatorV4();
    }

    /**
     * @dev See {IERC1155-balanceOf}.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     */
    function balanceOf(address _account, uint256 _id) public view virtual override returns (uint256) {
        require(_id == TOKEN_ID, UNKNOWN_TOKEN);
        return _balances[_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 override
        returns (uint256[] memory)
    {
        require(_accounts.length == _ids.length, LENGTH_MISMATCH);
        uint256[] memory _batchBalances = new uint256[](_accounts.length);

        for (uint256 i = 0; i < _accounts.length; ++i) {
            _batchBalances[i] = balanceOf(_accounts[i], _ids[i]);
        }
        return _batchBalances;
    }

    /**
     * @dev See {IERC1155-setApprovalForAll}.
     */
    function setApprovalForAll(address _operator, bool _approved) public virtual override {
        _setApprovalForAll(msg.sender, _operator, _approved);
    }

    /**
     * @dev Approve `operator` to operate on all of `owner` tokens
     *
     * Emits a {ApprovalForAll} event.
     */
    function _setApprovalForAll(
        address _owner,
        address _operator,
        bool _approved
    ) internal virtual {
        require(_owner != address(0), ZERO_ADDRESS);
        require(_operator != address(0), ZERO_ADDRESS);
        _allowances[_owner][_operator] = _approved;
        emit ApprovalForAll(_owner, _operator, _approved);
    }

    /**
     * @dev See {IERC1155-isApprovedForAll}.
     */
    function isApprovedForAll(address _account, address _operator) public view virtual override returns (bool) {
        return _operator == adventurers || _allowances[_account][_operator];
    }

    /**
     * @dev See {IERC1155-safeTransferFrom}.
     */
    function safeTransferFrom(
        address _from,
        address _to,
        uint256 _id,
        uint256 _amount,
        bytes memory _data
    ) public virtual override {
        require(
            _from == msg.sender || isApprovedForAll(_from, msg.sender),
            NOT_OWNER
        );
        require(_id == TOKEN_ID, UNKNOWN_TOKEN);
        _safeTransferFrom(_from, _to, _amount, _data);
    }

    /**
     * @dev See {IERC1155-safeBatchTransferFrom}.
     */
    function safeBatchTransferFrom(
        address _from,
        address _to,
        uint256[] memory _ids,
        uint256[] memory _amounts,
        bytes memory _data
    ) public virtual override {
        require(
            _from == msg.sender|| isApprovedForAll(_from, msg.sender),
            NOT_OWNER
        );
        require(_ids.length == _amounts.length, LENGTH_MISMATCH);
        require(_ids.length < 2, SINGLE_TOKEN);
        if (_ids.length == 1) {
            _safeTransferFrom(_from, _to, _amounts[0], _data);
        }
    }

    /**
     * @dev Transfers `amount` 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 `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 _amount,
        bytes memory
    ) internal {
        address _operator = msg.sender;
        if (_operator != _from) {
            require(isApprovedForAll(_from, _operator), NOT_OWNER);
        }
        require(_from != address(0), ZERO_ADDRESS);
        require(_to != address(0), ZERO_ADDRESS);

        uint256 senderBalance = _balances[_from];
        require(senderBalance >= _amount, LOW_BALANCE);
        unchecked {
            _balances[_from] = senderBalance - _amount;
        }
        _balances[_to] += _amount;
        emit TransferSingle(msg.sender, _from, _to, TOKEN_ID, _amount);
    }

    /**
     * @dev See {IERC1155-uri}.
     */
    function uri(uint256) public view virtual returns (string memory _uri) {
        return tokenUri;
    }

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

    /* errors */
    string private constant UNKNOWN_TOKEN = "ERC1155: unknown token";
    string private constant LENGTH_MISMATCH = "ERC1155: accounts and ids length mismatch";
    string private constant APPROVAL_FOR_SELF = "ERC1155: setting approval status for self";
    //string private constant NON_ERC1155_RECEIVER = "ERC1155: transfer to non ERC1155Receiver implementer";
    //string private constant ERC1155_REJECTED = "ERC1155: ERC1155Receiver rejected tokens";
    string private constant NOT_OWNER = "ERC1155: caller is not owner nor approved";
    string private constant LOW_BALANCE = "ERC1155: insufficient balance for transfer";
    string private constant SINGLE_TOKEN = "ERC1155: contract has only one token";
    string private constant PASS_USED_UP = "EIP712: minted already";
    string private constant INVALID_SIGNATURE = "EIP712: invalid signature";
    string private constant PUBLIC_MINT_NOT_STARTED = "public mint is not started";
    string private constant SUPPLY_EXCEEDED = "maximum supply exceded";
    string private constant UNAUTHORIZED = "unauthorized";
    string private constant ZERO_ADDRESS = "zero address";
    string public constant TOKENS_OVER = "tokens are over";
}

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.1;

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

        return account.code.length > 0;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

File 5 of 11 : IERC1155MetadataURI.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC1155/extensions/IERC1155MetadataURI.sol)

pragma solidity ^0.8.0;

import "../IERC1155.sol";

/**
 * @dev Interface of the optional ERC1155MetadataExtension interface, as defined
 * in the https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[EIP].
 *
 * _Available since v3.1._
 */
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);
}

File 6 of 11 : IERC1155.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC1155/IERC1155.sol)

pragma solidity ^0.8.0;

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

/**
 * @dev Required interface of an ERC1155 compliant contract, as defined in the
 * https://eips.ethereum.org/EIPS/eip-1155[EIP].
 *
 * _Available since v3.1._
 */
interface IERC1155 is IERC165 {
    /**
     * @dev Emitted when `value` tokens of token 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 amount 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 `amount` tokens of token type `id` from `from` to `to`.
     *
     * Emits a {TransferSingle} event.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - If the caller is not `from`, it must be have been approved to spend ``from``'s tokens via {setApprovalForAll}.
     * - `from` must have a balance of tokens of type `id` of at least `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 amount,
        bytes calldata data
    ) external;

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {safeTransferFrom}.
     *
     * Emits a {TransferBatch} event.
     *
     * Requirements:
     *
     * - `ids` and `amounts` 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 amounts,
        bytes calldata data
    ) external;
}

File 7 of 11 : IERC1155Receiver.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC1155/IERC1155Receiver.sol)

pragma solidity ^0.8.0;

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

/**
 * @dev _Available since v3.1._
 */
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);
}

File 8 of 11 : draft-EIP712.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/cryptography/draft-EIP712.sol)

pragma solidity ^0.8.0;

import "./ECDSA.sol";

/**
 * @dev https://eips.ethereum.org/EIPS/eip-712[EIP 712] is a standard for hashing and signing of typed structured data.
 *
 * The encoding specified in the EIP is very generic, and such a generic implementation in Solidity is not feasible,
 * thus this contract does not implement the encoding itself. Protocols need to implement the type-specific encoding
 * they need in their contracts using a combination of `abi.encode` and `keccak256`.
 *
 * This contract implements the EIP 712 domain separator ({_domainSeparatorV4}) that is used as part of the encoding
 * scheme, and the final step of the encoding to obtain the message digest that is then signed via ECDSA
 * ({_hashTypedDataV4}).
 *
 * The implementation of the domain separator was designed to be as efficient as possible while still properly updating
 * the chain id to protect against replay attacks on an eventual fork of the chain.
 *
 * NOTE: This contract implements the version of the encoding known as "v4", as implemented by the JSON RPC method
 * https://docs.metamask.io/guide/signing-data.html[`eth_signTypedDataV4` in MetaMask].
 *
 * _Available since v3.4._
 */
abstract contract EIP712 {
    /* solhint-disable var-name-mixedcase */
    // Cache the domain separator as an immutable value, but also store the chain id that it corresponds to, in order to
    // invalidate the cached domain separator if the chain id changes.
    bytes32 private immutable _CACHED_DOMAIN_SEPARATOR;
    uint256 private immutable _CACHED_CHAIN_ID;
    address private immutable _CACHED_THIS;

    bytes32 private immutable _HASHED_NAME;
    bytes32 private immutable _HASHED_VERSION;
    bytes32 private immutable _TYPE_HASH;

    /* solhint-enable var-name-mixedcase */

    /**
     * @dev Initializes the domain separator and parameter caches.
     *
     * The meaning of `name` and `version` is specified in
     * https://eips.ethereum.org/EIPS/eip-712#definition-of-domainseparator[EIP 712]:
     *
     * - `name`: the user readable name of the signing domain, i.e. the name of the DApp or the protocol.
     * - `version`: the current major version of the signing domain.
     *
     * NOTE: These parameters cannot be changed except through a xref:learn::upgrading-smart-contracts.adoc[smart
     * contract upgrade].
     */
    constructor(string memory name, string memory version) {
        bytes32 hashedName = keccak256(bytes(name));
        bytes32 hashedVersion = keccak256(bytes(version));
        bytes32 typeHash = keccak256(
            "EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)"
        );
        _HASHED_NAME = hashedName;
        _HASHED_VERSION = hashedVersion;
        _CACHED_CHAIN_ID = block.chainid;
        _CACHED_DOMAIN_SEPARATOR = _buildDomainSeparator(typeHash, hashedName, hashedVersion);
        _CACHED_THIS = address(this);
        _TYPE_HASH = typeHash;
    }

    /**
     * @dev Returns the domain separator for the current chain.
     */
    function _domainSeparatorV4() internal view returns (bytes32) {
        if (address(this) == _CACHED_THIS && block.chainid == _CACHED_CHAIN_ID) {
            return _CACHED_DOMAIN_SEPARATOR;
        } else {
            return _buildDomainSeparator(_TYPE_HASH, _HASHED_NAME, _HASHED_VERSION);
        }
    }

    function _buildDomainSeparator(
        bytes32 typeHash,
        bytes32 nameHash,
        bytes32 versionHash
    ) private view returns (bytes32) {
        return keccak256(abi.encode(typeHash, nameHash, versionHash, block.chainid, address(this)));
    }

    /**
     * @dev Given an already https://eips.ethereum.org/EIPS/eip-712#definition-of-hashstruct[hashed struct], this
     * function returns the hash of the fully encoded EIP712 message for this domain.
     *
     * This hash can be used together with {ECDSA-recover} to obtain the signer of a message. For example:
     *
     * ```solidity
     * bytes32 digest = _hashTypedDataV4(keccak256(abi.encode(
     *     keccak256("Mail(address to,string contents)"),
     *     mailTo,
     *     keccak256(bytes(mailContents))
     * )));
     * address signer = ECDSA.recover(digest, signature);
     * ```
     */
    function _hashTypedDataV4(bytes32 structHash) internal view virtual returns (bytes32) {
        return ECDSA.toTypedDataHash(_domainSeparatorV4(), structHash);
    }
}

File 9 of 11 : ECDSA.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (utils/cryptography/ECDSA.sol)

pragma solidity ^0.8.0;

import "../Strings.sol";

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

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

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

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

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

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

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

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

        return (signer, RecoverError.NoError);
    }

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"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":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","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":[],"name":"EIP712_VERSION","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"NAME","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"SYMBOL","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"TOKENS_OVER","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"TOKEN_ID","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"adventurers","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"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":[],"name":"domainSeparatorV4","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"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":"maxMintPerAddress","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pool","type":"uint256"},{"internalType":"bytes","name":"_signature","type":"bytes"}],"name":"mint","outputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"mintPublic","outputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"publicMint","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_from","type":"address"},{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256[]","name":"_ids","type":"uint256[]"},{"internalType":"uint256[]","name":"_amounts","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":"_amount","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_adventurers","type":"address"}],"name":"setAdventurers","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":"uint256","name":"_maxMint","type":"uint256"}],"name":"setMaxMintPerAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pool","type":"uint256"},{"internalType":"uint64","name":"_maxSupply","type":"uint64"}],"name":"setMaxSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_enabled","type":"bool"}],"name":"setPublicMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_signer","type":"address"}],"name":"setSigner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_uri","type":"string"}],"name":"setUri","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"signer","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"supply","outputs":[{"internalType":"uint64","name":"supply","type":"uint64"},{"internalType":"uint64","name":"maxSupply","type":"uint64"}],"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":"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":"","type":"uint256"}],"name":"uri","outputs":[{"internalType":"string","name":"_uri","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_wallet","type":"address"},{"internalType":"uint256","name":"_pool","type":"uint256"},{"internalType":"bytes","name":"_signature","type":"bytes"}],"name":"verifySignature","outputs":[{"internalType":"address","name":"_signer","type":"address"}],"stateMutability":"view","type":"function"}]

6101a060405260356101408181529062002ad76101603980516200002c916001916020909101906200030e565b506003805460ff60a01b1916905560016005553480156200004c57600080fd5b50604080518082018252600b81526a4574686572204d696e657360a81b6020808301918252835180850190945260058452640312e302e360dc1b908401528151902060e08190527f06c015bd22b4c69690933c1058878ebdfef31f9aaae40bbe86d8a09fe1b2972c6101008190524660a0529192917f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f620001328184846040805160208101859052908101839052606081018290524660808201523060a082015260009060c0016040516020818303038152906040528051906020012090509392505050565b6080523060c05261012052506200015592506200014f9150503390565b620002be565b60408051808201909152600b8082526a4574686572204d696e657360a81b602090920191825262000189916007916200030e565b5060408051808201909152600380825262434f4560e81b6020909201918252620001b6916008916200030e565b5060028054336001600160a01b031990911617905560408051808201825260008082526101f46020808401828152600480546001818101835582875296517f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b918201805494516001600160401b039283166001600160801b031996871617680100000000000000009184168202179091558951808b018b528881528087019788528454808b018655858a52905190840180549851918416988716989098179083168202179096558851808a019099528689526105dc948901948552825497880183559190955295519490930180549151948616919093161792909316909202179055620003f1565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b8280546200031c90620003b4565b90600052602060002090601f0160209004810192826200034057600085556200038b565b82601f106200035b57805160ff19168380011785556200038b565b828001600101855582156200038b579182015b828111156200038b5782518255916020019190600101906200036e565b50620003999291506200039d565b5090565b5b808211156200039957600081556001016200039e565b600181811c90821680620003c957607f821691505b60208210811415620003eb57634e487b7160e01b600052602260045260246000fd5b50919050565b60805160a05160c05160e051610100516101205161269662000441600039600061172e0152600061177d01526000611758015260006116b1015260006116db0152600061170501526126966000f3fe608060405234801561001057600080fd5b50600436106102255760003560e01c8063715018a61161012a578063a3f4df7e116100bd578063e985e9c51161008c578063f242432a11610071578063f242432a14610504578063f2fde38b14610517578063f76f8d781461052a57600080fd5b8063e985e9c5146104b5578063eccec5a8146104c857600080fd5b8063a3f4df7e14610425578063a4eaa7fb14610461578063db7fd40814610474578063e88716a71461048757600080fd5b80638da5cb5b116100f95780638da5cb5b146103e657806395d89b41146103f75780639b642de1146103ff578063a22cb4651461041257600080fd5b8063715018a6146103c657806378e890ba146103ce57806389a89002146103d65780638c874ebd146103de57600080fd5b806326092b83116101bd5780634e1273f41161018c578063572849c411610171578063572849c414610397578063648b4d5b146103a05780636c19e783146103b357600080fd5b80634e1273f414610364578063556f29311461038457600080fd5b806326092b83146102f65780632eb2c2d61461030a5780632f0a55d71461031d578063354030231461033057600080fd5b80630e89341c116101f95780630e89341c1461029d57806318160ddd146102b05780631e14d44b146102b8578063238ac933146102cb57600080fd5b8062fdd58e1461022a57806301ffc9a71461025057806306fdde03146102735780630e2d56cf14610288575b600080fd5b61023d610238366004611ed3565b610566565b6040519081526020015b60405180910390f35b61026361025e366004611efd565b6105e7565b6040519015158152602001610247565b61027b610684565b6040516102479190611f27565b61029b610296366004611f8c565b610712565b005b61027b6102ab366004611fa7565b6107a5565b61023d610839565b61029b6102c6366004611fa7565b61086a565b6002546102de906001600160a01b031681565b6040516001600160a01b039091168152602001610247565b60035461026390600160a01b900460ff1681565b61029b61031836600461210e565b6108c9565b6003546102de906001600160a01b031681565b61034361033e366004611fa7565b6109ce565b6040805167ffffffffffffffff938416815292909116602083015201610247565b6103776103723660046121b8565b610a09565b6040516102479190612278565b61029b6103923660046122bc565b610b0d565b61023d60055481565b6102de6103ae3660046122f9565b610bb2565b61029b6103c1366004612350565b610c30565b61029b610cb9565b61023d610d1f565b61023d600181565b61023d610d2e565b6000546001600160a01b03166102de565b61027b610e8f565b61029b61040d36600461236b565b610e9c565b61029b6104203660046123bc565b610f0d565b61027b6040518060400160405280600b81526020017f4574686572204d696e657300000000000000000000000000000000000000000081525081565b61029b61046f366004612350565b610f18565b61023d6104823660046123ef565b610fa1565b61027b6040518060400160405280600f81526020016e3a37b5b2b7399030b9329037bb32b960891b81525081565b6102636104c336600461242c565b611201565b61027b6040518060400160405280600581526020017f312e302e3000000000000000000000000000000000000000000000000000000081525081565b61029b610512366004612456565b61124a565b61029b610525366004612350565b611300565b61027b6040518060400160405280600381526020017f434f45000000000000000000000000000000000000000000000000000000000081525081565b6000600182146040518060400160405280601681526020017f455243313135353a20756e6b6e6f776e20746f6b656e00000000000000000000815250906105c95760405162461bcd60e51b81526004016105c09190611f27565b60405180910390fd5b5050506001600160a01b031660009081526009602052604090205490565b60006001600160e01b031982167fd9b67a2600000000000000000000000000000000000000000000000000000000148061064a57506001600160e01b031982167f0e89341c00000000000000000000000000000000000000000000000000000000145b8061067e57506001600160e01b031982167f01ffc9a700000000000000000000000000000000000000000000000000000000145b92915050565b60078054610691906124bb565b80601f01602080910402602001604051908101604052809291908181526020018280546106bd906124bb565b801561070a5780601f106106df5761010080835404028352916020019161070a565b820191906000526020600020905b8154815290600101906020018083116106ed57829003601f168201915b505050505081565b6000546001600160a01b0316331461076c5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016105c0565b60038054911515600160a01b027fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff909216919091179055565b6060600180546107b4906124bb565b80601f01602080910402602001604051908101604052809291908181526020018280546107e0906124bb565b801561082d5780601f106108025761010080835404028352916020019161082d565b820191906000526020600020905b81548152906001019060200180831161081057829003601f168201915b50505050509050919050565b6000600460028154811061084f5761084f6124f6565b60009182526020909120015467ffffffffffffffff16919050565b6000546001600160a01b031633146108c45760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016105c0565b600555565b6001600160a01b0385163314806108e557506108e58533611201565b6040518060600160405280602981526020016125c1602991399061091c5760405162461bcd60e51b81526004016105c09190611f27565b50815183511460405180606001604052806029815260200161263860299139906109595760405162461bcd60e51b81526004016105c09190611f27565b5060028351106040518060600160405280602481526020016125ea60249139906109965760405162461bcd60e51b81526004016105c09190611f27565b508251600114156109c7576109c78585846000815181106109b9576109b96124f6565b6020026020010151846113e2565b5050505050565b600481815481106109de57600080fd5b60009182526020909120015467ffffffffffffffff8082169250680100000000000000009091041682565b606081518351146040518060600160405280602981526020016126386029913990610a475760405162461bcd60e51b81526004016105c09190611f27565b506000835167ffffffffffffffff811115610a6457610a64611fc0565b604051908082528060200260200182016040528015610a8d578160200160208202803683370190505b50905060005b8451811015610b0557610ad8858281518110610ab157610ab16124f6565b6020026020010151858381518110610acb57610acb6124f6565b6020026020010151610566565b828281518110610aea57610aea6124f6565b6020908102919091010152610afe81612522565b9050610a93565b509392505050565b6000546001600160a01b03163314610b675760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016105c0565b8060048381548110610b7b57610b7b6124f6565b9060005260206000200160000160086101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055505050565b604080517f61f07c48ecb536de1ceadb127e6f6a0be0b608d2d1560146c461861077256dbf60208201526001600160a01b03851691810191909152606081018390526000908190610c1b90608001604051602081830303815290604052805190602001206115c2565b9050610c27818461162b565b95945050505050565b6000546001600160a01b03163314610c8a5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016105c0565b6002805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b6000546001600160a01b03163314610d135760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016105c0565b610d1d6000611647565b565b6000610d296116a4565b905090565b60035460408051808201909152601a81527f7075626c6963206d696e74206973206e6f7420737461727465640000000000006020820152600091600160a01b900460ff16610d8f5760405162461bcd60e51b81526004016105c09190611f27565b506004600181548110610da457610da46124f6565b9060005260206000200160000160089054906101000a900467ffffffffffffffff166004600281548110610dda57610dda6124f6565b600091825260209091200154610e06919068010000000000000000900467ffffffffffffffff1661253d565b67ffffffffffffffff166004600281548110610e2457610e246124f6565b6000918252602091829020015460408051808201909152600f81526e3a37b5b2b7399030b9329037bb32b960891b92810192909252909167ffffffffffffffff90911610610e855760405162461bcd60e51b81526004016105c09190611f27565b50610d29336117cb565b60088054610691906124bb565b6000546001600160a01b03163314610ef65760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016105c0565b8051610f09906001906020840190611e1e565b5050565b610f093383836119b1565b6000546001600160a01b03163314610f725760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016105c0565b6003805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b6002546000906001600160a01b0316610fbb338585610bb2565b6001600160a01b0316146040518060400160405280601981526020017f4549503731323a20696e76616c6964207369676e617475726500000000000000815250906110195760405162461bcd60e51b81526004016105c09190611f27565b506004838154811061102d5761102d6124f6565b9060005260206000200160000160089054906101000a900467ffffffffffffffff1667ffffffffffffffff166004848154811061106c5761106c6124f6565b6000918252602091829020015460408051808201909152601681527f6d6178696d756d20737570706c7920657863656465640000000000000000000092810192909252909167ffffffffffffffff909116106110db5760405162461bcd60e51b81526004016105c09190611f27565b506001600484815481106110f1576110f16124f6565b60009182526020822001805490919061111590849067ffffffffffffffff16612566565b92506101000a81548167ffffffffffffffff021916908367ffffffffffffffff160217905550600460028154811061114f5761114f6124f6565b9060005260206000200160000160089054906101000a900467ffffffffffffffff1667ffffffffffffffff16600460028154811061118f5761118f6124f6565b6000918252602091829020015460408051808201909152600f81526e3a37b5b2b7399030b9329037bb32b960891b92810192909252909167ffffffffffffffff909116106111f05760405162461bcd60e51b81526004016105c09190611f27565b506111fa336117cb565b9392505050565b6003546000906001600160a01b03838116911614806111fa5750506001600160a01b039182166000908152600a6020908152604080832093909416825291909152205460ff1690565b6001600160a01b03851633148061126657506112668533611201565b6040518060600160405280602981526020016125c1602991399061129d5760405162461bcd60e51b81526004016105c09190611f27565b5060408051808201909152601681527f455243313135353a20756e6b6e6f776e20746f6b656e000000000000000000006020820152600184146112f35760405162461bcd60e51b81526004016105c09190611f27565b506109c7858584846113e2565b6000546001600160a01b0316331461135a5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016105c0565b6001600160a01b0381166113d65760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f646472657373000000000000000000000000000000000000000000000000000060648201526084016105c0565b6113df81611647565b50565b336001600160a01b0385168114611436576113fd8582611201565b6040518060600160405280602981526020016125c160299139906114345760405162461bcd60e51b81526004016105c09190611f27565b505b60408051808201909152600c81526b7a65726f206164647265737360a01b60208201526001600160a01b0386166114805760405162461bcd60e51b81526004016105c09190611f27565b5060408051808201909152600c81526b7a65726f206164647265737360a01b60208201526001600160a01b0385166114cb5760405162461bcd60e51b81526004016105c09190611f27565b50600060096000876001600160a01b03166001600160a01b03168152602001908152602001600020549050838110156040518060600160405280602a815260200161260e602a9139906115315760405162461bcd60e51b81526004016105c09190611f27565b506001600160a01b03808716600090815260096020526040808220878503905591871681529081208054869290611569908490612592565b90915550506040805160018152602081018690526001600160a01b03808816929089169133917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4505050505050565b600061067e6115cf6116a4565b836040517f19010000000000000000000000000000000000000000000000000000000000006020820152602281018390526042810182905260009060620160405160208183030381529060405280519060200120905092915050565b600080600061163a8585611ab4565b91509150610b0581611b24565b600080546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000306001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000161480156116fd57507f000000000000000000000000000000000000000000000000000000000000000046145b1561172757507f000000000000000000000000000000000000000000000000000000000000000090565b50604080517f00000000000000000000000000000000000000000000000000000000000000006020808301919091527f0000000000000000000000000000000000000000000000000000000000000000828401527f000000000000000000000000000000000000000000000000000000000000000060608301524660808301523060a0808401919091528351808403909101815260c0909201909252805191012090565b600060055460066000846001600160a01b03166001600160a01b0316815260200190815260200160002054106040518060400160405280601681526020017f4549503731323a206d696e74656420616c7265616479000000000000000000008152509061184b5760405162461bcd60e51b81526004016105c09190611f27565b5060408051808201909152600c81526b7a65726f206164647265737360a01b60208201526001600160a01b0383166118965760405162461bcd60e51b81526004016105c09190611f27565b50600160046002815481106118ad576118ad6124f6565b6000918252602082200180549091906118d190849067ffffffffffffffff16612566565b92506101000a81548167ffffffffffffffff021916908367ffffffffffffffff160217905550600160066000846001600160a01b03166001600160a01b03168152602001908152602001600020600082825461192d9190612592565b90915550506001600160a01b038216600090815260096020526040812080546001929061195b908490612592565b909155505060408051600180825260208201526001600160a01b0384169160009133917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4506001919050565b60408051808201909152600c81526b7a65726f206164647265737360a01b60208201526001600160a01b0384166119fb5760405162461bcd60e51b81526004016105c09190611f27565b5060408051808201909152600c81526b7a65726f206164647265737360a01b60208201526001600160a01b038316611a465760405162461bcd60e51b81526004016105c09190611f27565b506001600160a01b038381166000818152600a6020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b600080825160411415611aeb5760208301516040840151606085015160001a611adf87828585611cdf565b94509450505050611b1d565b825160401415611b155760208301516040840151611b0a868383611dcc565b935093505050611b1d565b506000905060025b9250929050565b6000816004811115611b3857611b386125aa565b1415611b415750565b6001816004811115611b5557611b556125aa565b1415611ba35760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e6174757265000000000000000060448201526064016105c0565b6002816004811115611bb757611bb76125aa565b1415611c055760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e6774680060448201526064016105c0565b6003816004811115611c1957611c196125aa565b1415611c725760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b60648201526084016105c0565b6004816004811115611c8657611c866125aa565b14156113df5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b60648201526084016105c0565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0831115611d165750600090506003611dc3565b8460ff16601b14158015611d2e57508460ff16601c14155b15611d3f5750600090506004611dc3565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015611d93573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116611dbc57600060019250925050611dc3565b9150600090505b94509492505050565b6000807f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff831681611e0260ff86901c601b612592565b9050611e1087828885611cdf565b935093505050935093915050565b828054611e2a906124bb565b90600052602060002090601f016020900481019282611e4c5760008555611e92565b82601f10611e6557805160ff1916838001178555611e92565b82800160010185558215611e92579182015b82811115611e92578251825591602001919060010190611e77565b50611e9e929150611ea2565b5090565b5b80821115611e9e5760008155600101611ea3565b80356001600160a01b0381168114611ece57600080fd5b919050565b60008060408385031215611ee657600080fd5b611eef83611eb7565b946020939093013593505050565b600060208284031215611f0f57600080fd5b81356001600160e01b0319811681146111fa57600080fd5b600060208083528351808285015260005b81811015611f5457858101830151858201604001528201611f38565b81811115611f66576000604083870101525b50601f01601f1916929092016040019392505050565b80358015158114611ece57600080fd5b600060208284031215611f9e57600080fd5b6111fa82611f7c565b600060208284031215611fb957600080fd5b5035919050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff81118282101715611fff57611fff611fc0565b604052919050565b600067ffffffffffffffff82111561202157612021611fc0565b5060051b60200190565b600082601f83011261203c57600080fd5b8135602061205161204c83612007565b611fd6565b82815260059290921b8401810191818101908684111561207057600080fd5b8286015b8481101561208b5780358352918301918301612074565b509695505050505050565b600067ffffffffffffffff8311156120b0576120b0611fc0565b6120c3601f8401601f1916602001611fd6565b90508281528383830111156120d757600080fd5b828260208301376000602084830101529392505050565b600082601f8301126120ff57600080fd5b6111fa83833560208501612096565b600080600080600060a0868803121561212657600080fd5b61212f86611eb7565b945061213d60208701611eb7565b9350604086013567ffffffffffffffff8082111561215a57600080fd5b61216689838a0161202b565b9450606088013591508082111561217c57600080fd5b61218889838a0161202b565b9350608088013591508082111561219e57600080fd5b506121ab888289016120ee565b9150509295509295909350565b600080604083850312156121cb57600080fd5b823567ffffffffffffffff808211156121e357600080fd5b818501915085601f8301126121f757600080fd5b8135602061220761204c83612007565b82815260059290921b8401810191818101908984111561222657600080fd5b948201945b8386101561224b5761223c86611eb7565b8252948201949082019061222b565b9650508601359250508082111561226157600080fd5b5061226e8582860161202b565b9150509250929050565b6020808252825182820181905260009190848201906040850190845b818110156122b057835183529284019291840191600101612294565b50909695505050505050565b600080604083850312156122cf57600080fd5b82359150602083013567ffffffffffffffff811681146122ee57600080fd5b809150509250929050565b60008060006060848603121561230e57600080fd5b61231784611eb7565b925060208401359150604084013567ffffffffffffffff81111561233a57600080fd5b612346868287016120ee565b9150509250925092565b60006020828403121561236257600080fd5b6111fa82611eb7565b60006020828403121561237d57600080fd5b813567ffffffffffffffff81111561239457600080fd5b8201601f810184136123a557600080fd5b6123b484823560208401612096565b949350505050565b600080604083850312156123cf57600080fd5b6123d883611eb7565b91506123e660208401611f7c565b90509250929050565b6000806040838503121561240257600080fd5b82359150602083013567ffffffffffffffff81111561242057600080fd5b61226e858286016120ee565b6000806040838503121561243f57600080fd5b61244883611eb7565b91506123e660208401611eb7565b600080600080600060a0868803121561246e57600080fd5b61247786611eb7565b945061248560208701611eb7565b93506040860135925060608601359150608086013567ffffffffffffffff8111156124af57600080fd5b6121ab888289016120ee565b600181811c908216806124cf57607f821691505b602082108114156124f057634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b60006000198214156125365761253661250c565b5060010190565b600067ffffffffffffffff8381169083168181101561255e5761255e61250c565b039392505050565b600067ffffffffffffffff8083168185168083038211156125895761258961250c565b01949350505050565b600082198211156125a5576125a561250c565b500190565b634e487b7160e01b600052602160045260246000fdfe455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7220617070726f766564455243313135353a20636f6e747261637420686173206f6e6c79206f6e6520746f6b656e455243313135353a20696e73756666696369656e742062616c616e636520666f72207472616e73666572455243313135353a206163636f756e747320616e6420696473206c656e677468206d69736d61746368a2646970667358221220170a0490bbe75b1264161fd08359b8e3a459a919b4f1c771dd774c7b3f0295eb64736f6c634300080b0033697066733a2f2f516d6376665a3277334642436361314a574459597145395266506a4a327256374532465a355a594e345a324d3269

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106102255760003560e01c8063715018a61161012a578063a3f4df7e116100bd578063e985e9c51161008c578063f242432a11610071578063f242432a14610504578063f2fde38b14610517578063f76f8d781461052a57600080fd5b8063e985e9c5146104b5578063eccec5a8146104c857600080fd5b8063a3f4df7e14610425578063a4eaa7fb14610461578063db7fd40814610474578063e88716a71461048757600080fd5b80638da5cb5b116100f95780638da5cb5b146103e657806395d89b41146103f75780639b642de1146103ff578063a22cb4651461041257600080fd5b8063715018a6146103c657806378e890ba146103ce57806389a89002146103d65780638c874ebd146103de57600080fd5b806326092b83116101bd5780634e1273f41161018c578063572849c411610171578063572849c414610397578063648b4d5b146103a05780636c19e783146103b357600080fd5b80634e1273f414610364578063556f29311461038457600080fd5b806326092b83146102f65780632eb2c2d61461030a5780632f0a55d71461031d578063354030231461033057600080fd5b80630e89341c116101f95780630e89341c1461029d57806318160ddd146102b05780631e14d44b146102b8578063238ac933146102cb57600080fd5b8062fdd58e1461022a57806301ffc9a71461025057806306fdde03146102735780630e2d56cf14610288575b600080fd5b61023d610238366004611ed3565b610566565b6040519081526020015b60405180910390f35b61026361025e366004611efd565b6105e7565b6040519015158152602001610247565b61027b610684565b6040516102479190611f27565b61029b610296366004611f8c565b610712565b005b61027b6102ab366004611fa7565b6107a5565b61023d610839565b61029b6102c6366004611fa7565b61086a565b6002546102de906001600160a01b031681565b6040516001600160a01b039091168152602001610247565b60035461026390600160a01b900460ff1681565b61029b61031836600461210e565b6108c9565b6003546102de906001600160a01b031681565b61034361033e366004611fa7565b6109ce565b6040805167ffffffffffffffff938416815292909116602083015201610247565b6103776103723660046121b8565b610a09565b6040516102479190612278565b61029b6103923660046122bc565b610b0d565b61023d60055481565b6102de6103ae3660046122f9565b610bb2565b61029b6103c1366004612350565b610c30565b61029b610cb9565b61023d610d1f565b61023d600181565b61023d610d2e565b6000546001600160a01b03166102de565b61027b610e8f565b61029b61040d36600461236b565b610e9c565b61029b6104203660046123bc565b610f0d565b61027b6040518060400160405280600b81526020017f4574686572204d696e657300000000000000000000000000000000000000000081525081565b61029b61046f366004612350565b610f18565b61023d6104823660046123ef565b610fa1565b61027b6040518060400160405280600f81526020016e3a37b5b2b7399030b9329037bb32b960891b81525081565b6102636104c336600461242c565b611201565b61027b6040518060400160405280600581526020017f312e302e3000000000000000000000000000000000000000000000000000000081525081565b61029b610512366004612456565b61124a565b61029b610525366004612350565b611300565b61027b6040518060400160405280600381526020017f434f45000000000000000000000000000000000000000000000000000000000081525081565b6000600182146040518060400160405280601681526020017f455243313135353a20756e6b6e6f776e20746f6b656e00000000000000000000815250906105c95760405162461bcd60e51b81526004016105c09190611f27565b60405180910390fd5b5050506001600160a01b031660009081526009602052604090205490565b60006001600160e01b031982167fd9b67a2600000000000000000000000000000000000000000000000000000000148061064a57506001600160e01b031982167f0e89341c00000000000000000000000000000000000000000000000000000000145b8061067e57506001600160e01b031982167f01ffc9a700000000000000000000000000000000000000000000000000000000145b92915050565b60078054610691906124bb565b80601f01602080910402602001604051908101604052809291908181526020018280546106bd906124bb565b801561070a5780601f106106df5761010080835404028352916020019161070a565b820191906000526020600020905b8154815290600101906020018083116106ed57829003601f168201915b505050505081565b6000546001600160a01b0316331461076c5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016105c0565b60038054911515600160a01b027fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff909216919091179055565b6060600180546107b4906124bb565b80601f01602080910402602001604051908101604052809291908181526020018280546107e0906124bb565b801561082d5780601f106108025761010080835404028352916020019161082d565b820191906000526020600020905b81548152906001019060200180831161081057829003601f168201915b50505050509050919050565b6000600460028154811061084f5761084f6124f6565b60009182526020909120015467ffffffffffffffff16919050565b6000546001600160a01b031633146108c45760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016105c0565b600555565b6001600160a01b0385163314806108e557506108e58533611201565b6040518060600160405280602981526020016125c1602991399061091c5760405162461bcd60e51b81526004016105c09190611f27565b50815183511460405180606001604052806029815260200161263860299139906109595760405162461bcd60e51b81526004016105c09190611f27565b5060028351106040518060600160405280602481526020016125ea60249139906109965760405162461bcd60e51b81526004016105c09190611f27565b508251600114156109c7576109c78585846000815181106109b9576109b96124f6565b6020026020010151846113e2565b5050505050565b600481815481106109de57600080fd5b60009182526020909120015467ffffffffffffffff8082169250680100000000000000009091041682565b606081518351146040518060600160405280602981526020016126386029913990610a475760405162461bcd60e51b81526004016105c09190611f27565b506000835167ffffffffffffffff811115610a6457610a64611fc0565b604051908082528060200260200182016040528015610a8d578160200160208202803683370190505b50905060005b8451811015610b0557610ad8858281518110610ab157610ab16124f6565b6020026020010151858381518110610acb57610acb6124f6565b6020026020010151610566565b828281518110610aea57610aea6124f6565b6020908102919091010152610afe81612522565b9050610a93565b509392505050565b6000546001600160a01b03163314610b675760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016105c0565b8060048381548110610b7b57610b7b6124f6565b9060005260206000200160000160086101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055505050565b604080517f61f07c48ecb536de1ceadb127e6f6a0be0b608d2d1560146c461861077256dbf60208201526001600160a01b03851691810191909152606081018390526000908190610c1b90608001604051602081830303815290604052805190602001206115c2565b9050610c27818461162b565b95945050505050565b6000546001600160a01b03163314610c8a5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016105c0565b6002805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b6000546001600160a01b03163314610d135760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016105c0565b610d1d6000611647565b565b6000610d296116a4565b905090565b60035460408051808201909152601a81527f7075626c6963206d696e74206973206e6f7420737461727465640000000000006020820152600091600160a01b900460ff16610d8f5760405162461bcd60e51b81526004016105c09190611f27565b506004600181548110610da457610da46124f6565b9060005260206000200160000160089054906101000a900467ffffffffffffffff166004600281548110610dda57610dda6124f6565b600091825260209091200154610e06919068010000000000000000900467ffffffffffffffff1661253d565b67ffffffffffffffff166004600281548110610e2457610e246124f6565b6000918252602091829020015460408051808201909152600f81526e3a37b5b2b7399030b9329037bb32b960891b92810192909252909167ffffffffffffffff90911610610e855760405162461bcd60e51b81526004016105c09190611f27565b50610d29336117cb565b60088054610691906124bb565b6000546001600160a01b03163314610ef65760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016105c0565b8051610f09906001906020840190611e1e565b5050565b610f093383836119b1565b6000546001600160a01b03163314610f725760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016105c0565b6003805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b6002546000906001600160a01b0316610fbb338585610bb2565b6001600160a01b0316146040518060400160405280601981526020017f4549503731323a20696e76616c6964207369676e617475726500000000000000815250906110195760405162461bcd60e51b81526004016105c09190611f27565b506004838154811061102d5761102d6124f6565b9060005260206000200160000160089054906101000a900467ffffffffffffffff1667ffffffffffffffff166004848154811061106c5761106c6124f6565b6000918252602091829020015460408051808201909152601681527f6d6178696d756d20737570706c7920657863656465640000000000000000000092810192909252909167ffffffffffffffff909116106110db5760405162461bcd60e51b81526004016105c09190611f27565b506001600484815481106110f1576110f16124f6565b60009182526020822001805490919061111590849067ffffffffffffffff16612566565b92506101000a81548167ffffffffffffffff021916908367ffffffffffffffff160217905550600460028154811061114f5761114f6124f6565b9060005260206000200160000160089054906101000a900467ffffffffffffffff1667ffffffffffffffff16600460028154811061118f5761118f6124f6565b6000918252602091829020015460408051808201909152600f81526e3a37b5b2b7399030b9329037bb32b960891b92810192909252909167ffffffffffffffff909116106111f05760405162461bcd60e51b81526004016105c09190611f27565b506111fa336117cb565b9392505050565b6003546000906001600160a01b03838116911614806111fa5750506001600160a01b039182166000908152600a6020908152604080832093909416825291909152205460ff1690565b6001600160a01b03851633148061126657506112668533611201565b6040518060600160405280602981526020016125c1602991399061129d5760405162461bcd60e51b81526004016105c09190611f27565b5060408051808201909152601681527f455243313135353a20756e6b6e6f776e20746f6b656e000000000000000000006020820152600184146112f35760405162461bcd60e51b81526004016105c09190611f27565b506109c7858584846113e2565b6000546001600160a01b0316331461135a5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016105c0565b6001600160a01b0381166113d65760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f646472657373000000000000000000000000000000000000000000000000000060648201526084016105c0565b6113df81611647565b50565b336001600160a01b0385168114611436576113fd8582611201565b6040518060600160405280602981526020016125c160299139906114345760405162461bcd60e51b81526004016105c09190611f27565b505b60408051808201909152600c81526b7a65726f206164647265737360a01b60208201526001600160a01b0386166114805760405162461bcd60e51b81526004016105c09190611f27565b5060408051808201909152600c81526b7a65726f206164647265737360a01b60208201526001600160a01b0385166114cb5760405162461bcd60e51b81526004016105c09190611f27565b50600060096000876001600160a01b03166001600160a01b03168152602001908152602001600020549050838110156040518060600160405280602a815260200161260e602a9139906115315760405162461bcd60e51b81526004016105c09190611f27565b506001600160a01b03808716600090815260096020526040808220878503905591871681529081208054869290611569908490612592565b90915550506040805160018152602081018690526001600160a01b03808816929089169133917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4505050505050565b600061067e6115cf6116a4565b836040517f19010000000000000000000000000000000000000000000000000000000000006020820152602281018390526042810182905260009060620160405160208183030381529060405280519060200120905092915050565b600080600061163a8585611ab4565b91509150610b0581611b24565b600080546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000306001600160a01b037f000000000000000000000000ba270d27a974e13489c9758518770c74d9308590161480156116fd57507f000000000000000000000000000000000000000000000000000000000000000146145b1561172757507f1efe86138dd0c6c58fb2ba39865886b97c9f00296f19c2aab4fb7cbfc8dcf2f990565b50604080517f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f6020808301919091527f6e5550d6b09a1f350cee5e6b6d8b05d4d0588ed8202bf0f9c985b71110758a8b828401527f06c015bd22b4c69690933c1058878ebdfef31f9aaae40bbe86d8a09fe1b2972c60608301524660808301523060a0808401919091528351808403909101815260c0909201909252805191012090565b600060055460066000846001600160a01b03166001600160a01b0316815260200190815260200160002054106040518060400160405280601681526020017f4549503731323a206d696e74656420616c7265616479000000000000000000008152509061184b5760405162461bcd60e51b81526004016105c09190611f27565b5060408051808201909152600c81526b7a65726f206164647265737360a01b60208201526001600160a01b0383166118965760405162461bcd60e51b81526004016105c09190611f27565b50600160046002815481106118ad576118ad6124f6565b6000918252602082200180549091906118d190849067ffffffffffffffff16612566565b92506101000a81548167ffffffffffffffff021916908367ffffffffffffffff160217905550600160066000846001600160a01b03166001600160a01b03168152602001908152602001600020600082825461192d9190612592565b90915550506001600160a01b038216600090815260096020526040812080546001929061195b908490612592565b909155505060408051600180825260208201526001600160a01b0384169160009133917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4506001919050565b60408051808201909152600c81526b7a65726f206164647265737360a01b60208201526001600160a01b0384166119fb5760405162461bcd60e51b81526004016105c09190611f27565b5060408051808201909152600c81526b7a65726f206164647265737360a01b60208201526001600160a01b038316611a465760405162461bcd60e51b81526004016105c09190611f27565b506001600160a01b038381166000818152600a6020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b600080825160411415611aeb5760208301516040840151606085015160001a611adf87828585611cdf565b94509450505050611b1d565b825160401415611b155760208301516040840151611b0a868383611dcc565b935093505050611b1d565b506000905060025b9250929050565b6000816004811115611b3857611b386125aa565b1415611b415750565b6001816004811115611b5557611b556125aa565b1415611ba35760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e6174757265000000000000000060448201526064016105c0565b6002816004811115611bb757611bb76125aa565b1415611c055760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e6774680060448201526064016105c0565b6003816004811115611c1957611c196125aa565b1415611c725760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b60648201526084016105c0565b6004816004811115611c8657611c866125aa565b14156113df5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b60648201526084016105c0565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0831115611d165750600090506003611dc3565b8460ff16601b14158015611d2e57508460ff16601c14155b15611d3f5750600090506004611dc3565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015611d93573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116611dbc57600060019250925050611dc3565b9150600090505b94509492505050565b6000807f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff831681611e0260ff86901c601b612592565b9050611e1087828885611cdf565b935093505050935093915050565b828054611e2a906124bb565b90600052602060002090601f016020900481019282611e4c5760008555611e92565b82601f10611e6557805160ff1916838001178555611e92565b82800160010185558215611e92579182015b82811115611e92578251825591602001919060010190611e77565b50611e9e929150611ea2565b5090565b5b80821115611e9e5760008155600101611ea3565b80356001600160a01b0381168114611ece57600080fd5b919050565b60008060408385031215611ee657600080fd5b611eef83611eb7565b946020939093013593505050565b600060208284031215611f0f57600080fd5b81356001600160e01b0319811681146111fa57600080fd5b600060208083528351808285015260005b81811015611f5457858101830151858201604001528201611f38565b81811115611f66576000604083870101525b50601f01601f1916929092016040019392505050565b80358015158114611ece57600080fd5b600060208284031215611f9e57600080fd5b6111fa82611f7c565b600060208284031215611fb957600080fd5b5035919050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff81118282101715611fff57611fff611fc0565b604052919050565b600067ffffffffffffffff82111561202157612021611fc0565b5060051b60200190565b600082601f83011261203c57600080fd5b8135602061205161204c83612007565b611fd6565b82815260059290921b8401810191818101908684111561207057600080fd5b8286015b8481101561208b5780358352918301918301612074565b509695505050505050565b600067ffffffffffffffff8311156120b0576120b0611fc0565b6120c3601f8401601f1916602001611fd6565b90508281528383830111156120d757600080fd5b828260208301376000602084830101529392505050565b600082601f8301126120ff57600080fd5b6111fa83833560208501612096565b600080600080600060a0868803121561212657600080fd5b61212f86611eb7565b945061213d60208701611eb7565b9350604086013567ffffffffffffffff8082111561215a57600080fd5b61216689838a0161202b565b9450606088013591508082111561217c57600080fd5b61218889838a0161202b565b9350608088013591508082111561219e57600080fd5b506121ab888289016120ee565b9150509295509295909350565b600080604083850312156121cb57600080fd5b823567ffffffffffffffff808211156121e357600080fd5b818501915085601f8301126121f757600080fd5b8135602061220761204c83612007565b82815260059290921b8401810191818101908984111561222657600080fd5b948201945b8386101561224b5761223c86611eb7565b8252948201949082019061222b565b9650508601359250508082111561226157600080fd5b5061226e8582860161202b565b9150509250929050565b6020808252825182820181905260009190848201906040850190845b818110156122b057835183529284019291840191600101612294565b50909695505050505050565b600080604083850312156122cf57600080fd5b82359150602083013567ffffffffffffffff811681146122ee57600080fd5b809150509250929050565b60008060006060848603121561230e57600080fd5b61231784611eb7565b925060208401359150604084013567ffffffffffffffff81111561233a57600080fd5b612346868287016120ee565b9150509250925092565b60006020828403121561236257600080fd5b6111fa82611eb7565b60006020828403121561237d57600080fd5b813567ffffffffffffffff81111561239457600080fd5b8201601f810184136123a557600080fd5b6123b484823560208401612096565b949350505050565b600080604083850312156123cf57600080fd5b6123d883611eb7565b91506123e660208401611f7c565b90509250929050565b6000806040838503121561240257600080fd5b82359150602083013567ffffffffffffffff81111561242057600080fd5b61226e858286016120ee565b6000806040838503121561243f57600080fd5b61244883611eb7565b91506123e660208401611eb7565b600080600080600060a0868803121561246e57600080fd5b61247786611eb7565b945061248560208701611eb7565b93506040860135925060608601359150608086013567ffffffffffffffff8111156124af57600080fd5b6121ab888289016120ee565b600181811c908216806124cf57607f821691505b602082108114156124f057634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b60006000198214156125365761253661250c565b5060010190565b600067ffffffffffffffff8381169083168181101561255e5761255e61250c565b039392505050565b600067ffffffffffffffff8083168185168083038211156125895761258961250c565b01949350505050565b600082198211156125a5576125a561250c565b500190565b634e487b7160e01b600052602160045260246000fdfe455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7220617070726f766564455243313135353a20636f6e747261637420686173206f6e6c79206f6e6520746f6b656e455243313135353a20696e73756666696369656e742062616c616e636520666f72207472616e73666572455243313135353a206163636f756e747320616e6420696473206c656e677468206d69736d61746368a2646970667358221220170a0490bbe75b1264161fd08359b8e3a459a919b4f1c771dd774c7b3f0295eb64736f6c634300080b0033

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.