ETH Price: $2,272.13 (-0.02%)

Contract

0xA37cc0Dce75702A9E4747dFCD37A99F3b593aB97
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Mint For ERC20169363672023-03-30 0:01:23528 days ago1680134483IN
0xA37cc0Dc...3b593aB97
0 ETH0.0048085134.98067267
Mint For ERC20164877892023-01-26 1:44:23591 days ago1674697463IN
0xA37cc0Dc...3b593aB97
0 ETH0.0060766117.46370728
Mint For ERC20164808522023-01-25 2:28:23592 days ago1674613703IN
0xA37cc0Dc...3b593aB97
0 ETH0.0034322716.79096822
Mint For ERC20164808372023-01-25 2:25:23592 days ago1674613523IN
0xA37cc0Dc...3b593aB97
0 ETH0.0055673116
Mint For ERC20164757252023-01-24 9:18:23593 days ago1674551903IN
0xA37cc0Dc...3b593aB97
0 ETH0.0016792416.26201872
Mint For ERC20164753152023-01-24 7:55:35593 days ago1674546935IN
0xA37cc0Dc...3b593aB97
0 ETH0.0085538214.23625273
Mint For ERC20164716722023-01-23 19:43:23593 days ago1674503003IN
0xA37cc0Dc...3b593aB97
0 ETH0.006414425.99017775
Mint For ERC20164715872023-01-23 19:26:23593 days ago1674501983IN
0xA37cc0Dc...3b593aB97
0 ETH0.0032311226.8450899
Mint For ERC20164712552023-01-23 18:19:47593 days ago1674497987IN
0xA37cc0Dc...3b593aB97
0 ETH0.0190102731.63906885
Mint For ERC20164711662023-01-23 18:01:59593 days ago1674496919IN
0xA37cc0Dc...3b593aB97
0 ETH0.0046465448.57250461
Validator Mint N...164154782023-01-15 23:28:47601 days ago1673825327IN
0xA37cc0Dc...3b593aB97
0 ETH0.0024049525
Allow Validator164154772023-01-15 23:28:35601 days ago1673825315IN
0xA37cc0Dc...3b593aB97
0 ETH0.001158525
Enable Contract164154762023-01-15 23:28:23601 days ago1673825303IN
0xA37cc0Dc...3b593aB97
0 ETH0.0011379525
Set Sales Start ...164154752023-01-15 23:28:11601 days ago1673825291IN
0xA37cc0Dc...3b593aB97
0 ETH0.001145425
Set Base Uri164154742023-01-15 23:27:59601 days ago1673825279IN
0xA37cc0Dc...3b593aB97
0 ETH0.0022951525
0x60806040164154642023-01-15 23:25:59601 days ago1673825159IN
 Create: BMC
0 ETH0.0568837525

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
BMC

Compiler Version
v0.8.4+commit.c7e474f2

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 20 : BMC.sol
//SPDX-License-Identifier: Unlicense
pragma solidity ^0.8.0;

import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";

import "contracts/IBMC.sol";
import "contracts/IPriceStrategy.sol";

import "contracts/Validator.sol";
import "contracts/Killswitch.sol";
import "contracts/CCAcceptERC20.sol";

contract BMC is CCAcceptERC20, ERC721, IBMC, Validator, Killswitch {
    uint256 private _tokenNum;
    uint256 private constant MAX_SUPPLY = 6000;

    string private _baseUri;
    uint256 private _salesStartTimestamp = 0;

    modifier sales() {
        // solhint-disable-next-line not-rely-on-time
        require(_salesStartTimestamp > 0 && block.timestamp >= _salesStartTimestamp, "sales not started");
        _;
    }

    constructor(string memory name_, string memory symbol_
        , address priceStrategy
        , address erc20Contract
        )
        CCAcceptERC20(erc20Contract, priceStrategy)
        ERC721(name_, symbol_)
        // solhint-disable-next-line no-empty-blocks
    {
    }

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

    function setBaseUri(string memory baseUri) external override onlyOwner {
        _baseUri = baseUri;
    }

    function setERC20PriceStrategy(address erc20Contract, address priceStrategyAddress) public override onlyOwner {
        _setERC20PriceStrategy(erc20Contract, priceStrategyAddress);
    }

    function setSalesStartAt(uint256 timestamp) external override onlyOwner {
        _salesStartTimestamp = timestamp;
    }

    function totalSupply() public override view returns (uint256) {
        return _tokenNum;
    }

    function maxSupply() public override pure returns (uint256) {
        return MAX_SUPPLY;
    }

    function getERC20Price(address erc20Contract, uint256 tokenNum) public view override erc20ok(erc20Contract) returns (uint256)
    {
        return _getERC20Price(erc20Contract, tokenNum);
    }

    function getSalesStartAt() external view override returns (uint256) {
        return _salesStartTimestamp;
    }

    function mintForERC20(address erc20Contract, uint256 amount) external override erc20ok(erc20Contract) killswitch sales {
        uint256 price = getERC20Price(erc20Contract, _tokenNum);
        IERC20 erc20 = IERC20(erc20Contract);
        uint256 allowance = erc20.allowance(msg.sender, address(this));
        require(allowance >= price * amount, "low allowance");
        uint256 balance = erc20.balanceOf(msg.sender);
        require(balance >= price * amount, "low balance");

        // transfer directly to owner
        bool success = erc20.transferFrom(msg.sender, owner(), amount * price);
        require(success, "failed to transfer erc20");

        _mintImpl(msg.sender, amount);
    }

    function _mintImpl(address for_, uint256 amount) private {
        require(amount > 0 && amount <= 20, "can't mint 0 or above 20 per tx");
        require(_tokenNum + amount <= MAX_SUPPLY, "can't mint above MAX_SUPPLY");

        uint256 _initial = _tokenNum + 1;
        for (uint256 i = 0; i < amount; ++i) {
            _safeMint(for_, _initial + i);
        }
        _tokenNum += amount;
    }

    function validatorMintNew(address mintFor, uint256 amount) external override onlyValidator killswitch {
        _mintImpl(mintFor, amount);
    }

    function validatorMint(address mintFor, uint256 tokenId) external override onlyValidator killswitch {
        require(mintFor != address(0), "invalid mintFor");
        require(tokenId <= _tokenNum, "not allowed: totalSupply");
        _safeMint(mintFor, tokenId);
    }

    function validatorBurn(uint256 tokenId) external override onlyValidator killswitch {
        _burn(tokenId);
    }

    function withdraw() external override onlyOwner {
        uint256 value = address(this).balance;
        if (value > 0) {
            address payable to = payable(owner());
            to.transfer(value);
        }
    }
}

File 2 of 20 : ERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/ERC721.sol)

pragma solidity ^0.8.0;

import "./IERC721.sol";
import "./IERC721Receiver.sol";
import "./extensions/IERC721Metadata.sol";
import "../../utils/Address.sol";
import "../../utils/Context.sol";
import "../../utils/Strings.sol";
import "../../utils/introspection/ERC165.sol";

/**
 * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
 * the Metadata extension, but not including the Enumerable extension, which is available separately as
 * {ERC721Enumerable}.
 */
contract ERC721 is Context, ERC165, IERC721, IERC721Metadata {
    using Address for address;
    using Strings for uint256;

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

    // Mapping from token ID to owner address
    mapping(uint256 => address) private _owners;

    // Mapping owner address to token count
    mapping(address => uint256) private _balances;

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

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

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

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

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

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

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

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

    /**
     * @dev See {IERC721Metadata-tokenURI}.
     */
    function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
        require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token");

        string memory baseURI = _baseURI();
        return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : "";
    }

    /**
     * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each
     * token will be the concatenation of the `baseURI` and the `tokenId`. Empty
     * by default, can be overriden in child contracts.
     */
    function _baseURI() internal view virtual returns (string memory) {
        return "";
    }

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

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

        _approve(to, tokenId);
    }

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

        return _tokenApprovals[tokenId];
    }

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

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

    /**
     * @dev See {IERC721-transferFrom}.
     */
    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public virtual override {
        //solhint-disable-next-line max-line-length
        require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved");

        _transfer(from, to, tokenId);
    }

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

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

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

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

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

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

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

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

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

        _balances[to] += 1;
        _owners[tokenId] = to;

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

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

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

        // Clear approvals
        _approve(address(0), tokenId);

        _balances[owner] -= 1;
        delete _owners[tokenId];

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

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

        _beforeTokenTransfer(from, to, tokenId);

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

        _balances[from] -= 1;
        _balances[to] += 1;
        _owners[tokenId] = to;

        emit Transfer(from, to, tokenId);
    }

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

    /**
     * @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 != operator, "ERC721: approve to caller");
        _operatorApprovals[owner][operator] = approved;
        emit ApprovalForAll(owner, operator, approved);
    }

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

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

File 3 of 20 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns the amount of tokens owned by `account`.
     */
    function balanceOf(address account) external view returns (uint256);

    /**
     * @dev Moves `amount` tokens from the caller's account to `recipient`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address recipient, uint256 amount) external returns (bool);

    /**
     * @dev Returns the remaining number of tokens that `spender` will be
     * allowed to spend on behalf of `owner` through {transferFrom}. This is
     * zero by default.
     *
     * This value changes when {approve} or {transferFrom} are called.
     */
    function allowance(address owner, address spender) external view returns (uint256);

    /**
     * @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * IMPORTANT: Beware that changing an allowance with this method brings the risk
     * that someone may use both the old and the new allowance by unfortunate
     * transaction ordering. One possible solution to mitigate this race
     * condition is to first reduce the spender's allowance to 0 and set the
     * desired value afterwards:
     * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
     *
     * Emits an {Approval} event.
     */
    function approve(address spender, uint256 amount) external returns (bool);

    /**
     * @dev Moves `amount` tokens from `sender` to `recipient` using the
     * allowance mechanism. `amount` is then deducted from the caller's
     * allowance.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(
        address sender,
        address recipient,
        uint256 amount
    ) external returns (bool);

    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

    /**
     * @dev Emitted when the allowance of a `spender` for an `owner` is set by
     * a call to {approve}. `value` is the new allowance.
     */
    event Approval(address indexed owner, address indexed spender, uint256 value);
}

File 4 of 20 : IBMC.sol
//SPDX-License-Identifier: Unlicense
pragma solidity ^0.8.0;

import "@openzeppelin/contracts/token/ERC721/IERC721.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol";
import "contracts/IValidator.sol";
import "contracts/IKillswitch.sol";

interface IBMC is IERC721, IERC721Metadata, IValidator, IKillswitch {
    function setBaseUri(string memory baseUri) external;
    function setERC20PriceStrategy(address erc20Contract, address priceStrategyAddress) external;
    function setSalesStartAt(uint256 timestamp) external;

    function totalSupply() external view returns (uint256);
    function maxSupply() external view returns (uint256);
    function getERC20Price(address erc20Contract, uint256 tokenNum) external view returns (uint256);
    function getSalesStartAt() external view returns (uint256);

    function mintForERC20(address erc20Contract, uint256 amount) external;

    function validatorMintNew(address mintFor, uint256 amount) external;
    function validatorMint(address mintFor, uint256 tokenId) external;
    function validatorBurn(uint256 tokenId) external;

    function withdraw() external;
}

File 5 of 20 : IPriceStrategy.sol
//SPDX-License-Identifier: Unlicense
pragma solidity ^0.8.0;

interface IPriceStrategy {
    function getPrice(uint256 num) external view returns (uint256);
    function setPrice(uint256 initial, uint256 step) external;
}

File 6 of 20 : Validator.sol
//SPDX-License-Identifier: Unlicense
pragma solidity ^0.8.0;

import "@openzeppelin/contracts/access/Ownable.sol";
import "contracts/IValidator.sol";

contract Validator is Ownable, IValidator {
    mapping (address => bool) private _validators;

    modifier onlyValidator() {
        require(_validators[msg.sender], "not a validator");
        _;
    }

    function allowValidator(address validatorAddress) public override onlyOwner {
        require(!_validators[validatorAddress], "already a validator");
        _validators[validatorAddress] = true;
    }

    function disallowValidator(address validatorAddress) public override onlyOwner {
        require(_validators[validatorAddress], "already not a validator");
        _validators[validatorAddress] = false;
    }
}

File 7 of 20 : Killswitch.sol
//SPDX-License-Identifier: Unlicense
pragma solidity ^0.8.0;

import "@openzeppelin/contracts/access/Ownable.sol";
import "contracts/IKillswitch.sol";

contract Killswitch is Ownable, IKillswitch {
    bool private _enabled = false;

    modifier killswitch() {
        require(!!_enabled, "contract disabled");
        _;
    }

    function isEnabled() external view override returns (bool)
    {
        return _enabled;
    }

    function enableContract() public override onlyOwner {
        _enabled = true;
    }

    function disableContract() public override onlyOwner {
        _enabled = false;
    }
}

File 8 of 20 : CCAcceptERC20.sol
//SPDX-License-Identifier: Unlicense
pragma solidity ^0.8.0;

import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "contracts/IPriceStrategy.sol";
import "contracts/ICCAcceptERC20.sol";

contract CCAcceptERC20 is ICCAcceptERC20 {
    mapping(IERC20 => IPriceStrategy) private _erc20PriceStrategy;
    mapping(address => bool) private _erc20Allowed;

    modifier erc20ok(address erc20Contract) {
        require(_erc20Allowed[erc20Contract] == true, "non-whitelisted erc20");
        _;
    }

    constructor(address erc20Contract, address priceStrategy)
    {
        _setERC20PriceStrategy(erc20Contract, priceStrategy);
    }

    function _setERC20PriceStrategy(address erc20Contract, address priceStrategyAddress) internal {
        require(erc20Contract != address(0), "invalid erc20Contract");
        _erc20PriceStrategy[IERC20(erc20Contract)] = IPriceStrategy(priceStrategyAddress);

        bool allowedBefore = _erc20Allowed[erc20Contract];
        _erc20Allowed[erc20Contract] = priceStrategyAddress != address(0) ? true : false;
        bool allowedAfter = _erc20Allowed[erc20Contract];

        if (!allowedBefore && allowedAfter) {
            emit ERC20Allowed(erc20Contract);
        } else if (allowedBefore && !allowedAfter) {
            emit ERC20Denied(erc20Contract);
        }
    }

    function _getERC20Price(address erc20Contract, uint256 tokenNum) internal view erc20ok(erc20Contract) returns (uint256)
    {
        IPriceStrategy priceStrategy = _erc20PriceStrategy[IERC20(erc20Contract)];
        return priceStrategy.getPrice(tokenNum);
    }
}

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

File 10 of 20 : IERC721Receiver.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721Receiver.sol)

pragma solidity ^0.8.0;

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

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

pragma solidity ^0.8.0;

import "../IERC721.sol";

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

File 13 of 20 : 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 14 of 20 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Strings.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

pragma solidity ^0.8.0;

import "./IERC165.sol";

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

File 16 of 20 : 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 17 of 20 : IValidator.sol
//SPDX-License-Identifier: Unlicense
pragma solidity ^0.8.0;

interface IValidator {
    function allowValidator(address validatorAddress) external;
    function disallowValidator(address validatorAddress) external;
}

File 18 of 20 : IKillswitch.sol
//SPDX-License-Identifier: Unlicense
pragma solidity ^0.8.0;

interface IKillswitch {
    function isEnabled() external view returns (bool);
    function enableContract() external;
    function disableContract() external;
}

File 19 of 20 : 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 20 of 20 : ICCAcceptERC20.sol
//SPDX-License-Identifier: Unlicense
pragma solidity ^0.8.0;

interface ICCAcceptERC20 {
    event ERC20Allowed(address erc20Contract);
    event ERC20Denied(address erc20Contract);
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"name_","type":"string"},{"internalType":"string","name":"symbol_","type":"string"},{"internalType":"address","name":"priceStrategy","type":"address"},{"internalType":"address","name":"erc20Contract","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"erc20Contract","type":"address"}],"name":"ERC20Allowed","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"erc20Contract","type":"address"}],"name":"ERC20Denied","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":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address","name":"validatorAddress","type":"address"}],"name":"allowValidator","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"disableContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"validatorAddress","type":"address"}],"name":"disallowValidator","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"enableContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"erc20Contract","type":"address"},{"internalType":"uint256","name":"tokenNum","type":"uint256"}],"name":"getERC20Price","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getSalesStartAt","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address","name":"erc20Contract","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"mintForERC20","outputs":[],"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":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"baseUri","type":"string"}],"name":"setBaseUri","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"erc20Contract","type":"address"},{"internalType":"address","name":"priceStrategyAddress","type":"address"}],"name":"setERC20PriceStrategy","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"timestamp","type":"uint256"}],"name":"setSalesStartAt","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"validatorBurn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"mintFor","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"validatorMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"mintFor","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"validatorMintNew","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

6080604052600a805460ff191690556000600d553480156200002057600080fd5b5060405162002a7f38038062002a7f8339810160408190526200004391620003ea565b83838284620000538282620000a7565b505081516200006a90600290602085019062000274565b5080516200008090600390602084019062000274565b5050506200009d620000976200021e60201b60201c565b62000222565b50505050620004c9565b6001600160a01b038216620001025760405162461bcd60e51b815260206004820152601560248201527f696e76616c6964206572633230436f6e74726163740000000000000000000000604482015260640160405180910390fd5b6001600160a01b0382811660009081526020818152604080832080546001600160a01b0319169486169485179055600190915290205460ff1690620001495760006200014c565b60015b6001600160a01b0384166000908152600160205260409020805460ff1916911515918217905560ff1681158015620001815750805b15620001c9576040516001600160a01b03851681527f5b5d0ebd23a2ce78c0e27b53d6e7d9ba02df75a734fce0f0605f704c996260349060200160405180910390a162000218565b818015620001d5575080155b1562000218576040516001600160a01b03851681527f52189fe53fb7e0ef7bc28897dc9ff81957c7346f7966dbd26f081e21d29eb2059060200160405180910390a15b50505050565b3390565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b828054620002829062000476565b90600052602060002090601f016020900481019282620002a65760008555620002f1565b82601f10620002c157805160ff1916838001178555620002f1565b82800160010185558215620002f1579182015b82811115620002f1578251825591602001919060010190620002d4565b50620002ff92915062000303565b5090565b5b80821115620002ff576000815560010162000304565b80516001600160a01b03811681146200033257600080fd5b919050565b600082601f83011262000348578081fd5b81516001600160401b0380821115620003655762000365620004b3565b604051601f8301601f19908116603f01168101908282118183101715620003905762000390620004b3565b81604052838152602092508683858801011115620003ac578485fd5b8491505b83821015620003cf5785820183015181830184015290820190620003b0565b83821115620003e057848385830101525b9695505050505050565b6000806000806080858703121562000400578384fd5b84516001600160401b038082111562000417578586fd5b620004258883890162000337565b955060208701519150808211156200043b578485fd5b506200044a8782880162000337565b9350506200045b604086016200031a565b91506200046b606086016200031a565b905092959194509250565b600181811c908216806200048b57607f821691505b60208210811415620004ad57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052604160045260246000fd5b6125a680620004d96000396000f3fe608060405234801561001057600080fd5b50600436106101fb5760003560e01c806370a082311161011a57806395d89b41116100ad578063b88d4fde1161007c578063b88d4fde146103f8578063c87b56dd1461040b578063d5abeb011461041e578063e985e9c514610426578063f2fde38b1461046257600080fd5b806395d89b41146103b7578063a0bcfc7f146103bf578063a0db5971146103d2578063a22cb465146103e557600080fd5b8063891d4134116100e9578063891d413414610383578063894ba833146103965780638da5cb5b1461039e57806390612b3c146103af57600080fd5b806370a0823114610342578063715018a61461035557806374d2290e1461035d578063798c578d1461037057600080fd5b8063367edd321161019257806356c4eab11161016157806356c4eab1146102fe5780636352211e146103115780636aa633b6146103245780636e550d2a1461032f57600080fd5b8063367edd32146102c85780633ccfd60b146102d057806342842e0e146102d85780634b2acaed146102eb57600080fd5b806318160ddd116101ce57806318160ddd1461027d57806323b872dd1461028f5780632d81a047146102a25780632dfd8a3b146102b557600080fd5b806301ffc9a71461020057806306fdde0314610228578063081812fc1461023d578063095ea7b314610268575b600080fd5b61021361020e36600461215e565b610475565b60405190151581526020015b60405180910390f35b6102306104c7565b60405161021f91906122a4565b61025061024b3660046121dc565b610559565b6040516001600160a01b03909116815260200161021f565b61027b610276366004612119565b6105f3565b005b600b545b60405190815260200161021f565b61027b61029d36600461202f565b610709565b61027b6102b03660046121dc565b61073a565b6102816102c3366004612119565b610797565b61027b6107ea565b61027b610823565b61027b6102e636600461202f565b6108a1565b61027b6102f93660046121dc565b6108bc565b61027b61030c366004611fe3565b6108eb565b61025061031f3660046121dc565b61099e565b600a5460ff16610213565b61027b61033d366004611ffd565b610a15565b610281610350366004611fe3565b610a4d565b61027b610ad4565b61027b61036b366004612119565b610b0a565b61027b61037e366004612119565b610b65565b61027b610391366004611fe3565b610c5a565b61027b610d07565b6008546001600160a01b0316610250565b600d54610281565b610230610d3d565b61027b6103cd366004612196565b610d4c565b61027b6103e0366004612119565b610d89565b61027b6103f33660046120e3565b6110fa565b61027b61040636600461206a565b611105565b6102306104193660046121dc565b61113d565b611770610281565b610213610434366004611ffd565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b61027b610470366004611fe3565b611218565b60006001600160e01b031982166380ac58cd60e01b14806104a657506001600160e01b03198216635b5e139f60e01b145b806104c157506301ffc9a760e01b6001600160e01b03198316145b92915050565b6060600280546104d6906124a0565b80601f0160208091040260200160405190810160405280929190818152602001828054610502906124a0565b801561054f5780601f106105245761010080835404028352916020019161054f565b820191906000526020600020905b81548152906001019060200180831161053257829003601f168201915b5050505050905090565b6000818152600460205260408120546001600160a01b03166105d75760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600660205260409020546001600160a01b031690565b60006105fe8261099e565b9050806001600160a01b0316836001600160a01b0316141561066c5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b60648201526084016105ce565b336001600160a01b038216148061068857506106888133610434565b6106fa5760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c000000000000000060648201526084016105ce565b61070483836112b0565b505050565b610713338261131e565b61072f5760405162461bcd60e51b81526004016105ce90612398565b610704838383611411565b3360009081526009602052604090205460ff166107695760405162461bcd60e51b81526004016105ce906123e9565b600a5460ff1661078b5760405162461bcd60e51b81526004016105ce90612338565b610794816115b1565b50565b6001600160a01b0382166000908152600160208190526040822054849160ff9091161515146107d85760405162461bcd60e51b81526004016105ce90612309565b6107e2848461164c565b949350505050565b6008546001600160a01b031633146108145760405162461bcd60e51b81526004016105ce90612363565b600a805460ff19166001179055565b6008546001600160a01b0316331461084d5760405162461bcd60e51b81526004016105ce90612363565b4780156107945760006108686008546001600160a01b031690565b6040519091506001600160a01b0382169083156108fc029084906000818181858888f19350505050158015610704573d6000803e3d6000fd5b61070483838360405180602001604052806000815250611105565b6008546001600160a01b031633146108e65760405162461bcd60e51b81526004016105ce90612363565b600d55565b6008546001600160a01b031633146109155760405162461bcd60e51b81526004016105ce90612363565b6001600160a01b03811660009081526009602052604090205460ff1661097d5760405162461bcd60e51b815260206004820152601760248201527f616c7265616479206e6f7420612076616c696461746f7200000000000000000060448201526064016105ce565b6001600160a01b03166000908152600960205260409020805460ff19169055565b6000818152600460205260408120546001600160a01b0316806104c15760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b60648201526084016105ce565b6008546001600160a01b03163314610a3f5760405162461bcd60e51b81526004016105ce90612363565b610a498282611723565b5050565b60006001600160a01b038216610ab85760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b60648201526084016105ce565b506001600160a01b031660009081526005602052604090205490565b6008546001600160a01b03163314610afe5760405162461bcd60e51b81526004016105ce90612363565b610b086000611885565b565b3360009081526009602052604090205460ff16610b395760405162461bcd60e51b81526004016105ce906123e9565b600a5460ff16610b5b5760405162461bcd60e51b81526004016105ce90612338565b610a4982826118d7565b3360009081526009602052604090205460ff16610b945760405162461bcd60e51b81526004016105ce906123e9565b600a5460ff16610bb65760405162461bcd60e51b81526004016105ce90612338565b6001600160a01b038216610bfe5760405162461bcd60e51b815260206004820152600f60248201526e34b73b30b634b21036b4b73a2337b960891b60448201526064016105ce565b600b54811115610c505760405162461bcd60e51b815260206004820152601860248201527f6e6f7420616c6c6f7765643a20746f74616c537570706c79000000000000000060448201526064016105ce565b610a4982826119f1565b6008546001600160a01b03163314610c845760405162461bcd60e51b81526004016105ce90612363565b6001600160a01b03811660009081526009602052604090205460ff1615610ce35760405162461bcd60e51b815260206004820152601360248201527230b63932b0b23c9030903b30b634b230ba37b960691b60448201526064016105ce565b6001600160a01b03166000908152600960205260409020805460ff19166001179055565b6008546001600160a01b03163314610d315760405162461bcd60e51b81526004016105ce90612363565b600a805460ff19169055565b6060600380546104d6906124a0565b6008546001600160a01b03163314610d765760405162461bcd60e51b81526004016105ce90612363565b8051610a4990600c906020840190611eb8565b6001600160a01b038216600090815260016020819052604090912054839160ff909116151514610dcb5760405162461bcd60e51b81526004016105ce90612309565b600a5460ff16610ded5760405162461bcd60e51b81526004016105ce90612338565b6000600d54118015610e015750600d544210155b610e415760405162461bcd60e51b81526020600482015260116024820152701cd85b195cc81b9bdd081cdd185c9d1959607a1b60448201526064016105ce565b6000610e4f84600b54610797565b604051636eb1769f60e11b815233600482015230602482015290915084906000906001600160a01b0383169063dd62ed3e9060440160206040518083038186803b158015610e9c57600080fd5b505afa158015610eb0573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ed491906121f4565b9050610ee0858461243e565b811015610f1f5760405162461bcd60e51b815260206004820152600d60248201526c6c6f7720616c6c6f77616e636560981b60448201526064016105ce565b6040516370a0823160e01b81523360048201526000906001600160a01b038416906370a082319060240160206040518083038186803b158015610f6157600080fd5b505afa158015610f75573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f9991906121f4565b9050610fa5868561243e565b811015610fe25760405162461bcd60e51b815260206004820152600b60248201526a6c6f772062616c616e636560a81b60448201526064016105ce565b6000836001600160a01b03166323b872dd336110066008546001600160a01b031690565b611010898c61243e565b6040516001600160e01b031960e086901b1681526001600160a01b0393841660048201529290911660248301526044820152606401602060405180830381600087803b15801561105f57600080fd5b505af1158015611073573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110979190612142565b9050806110e65760405162461bcd60e51b815260206004820152601860248201527f6661696c656420746f207472616e73666572206572633230000000000000000060448201526064016105ce565b6110f033886118d7565b5050505050505050565b610a49338383611a0b565b61110f338361131e565b61112b5760405162461bcd60e51b81526004016105ce90612398565b61113784848484611ada565b50505050565b6000818152600460205260409020546060906001600160a01b03166111bc5760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b60648201526084016105ce565b60006111c6611b0d565b905060008151116111e65760405180602001604052806000815250611211565b806111f084611b1c565b604051602001611201929190612238565b6040516020818303038152906040525b9392505050565b6008546001600160a01b031633146112425760405162461bcd60e51b81526004016105ce90612363565b6001600160a01b0381166112a75760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016105ce565b61079481611885565b600081815260066020526040902080546001600160a01b0319166001600160a01b03841690811790915581906112e58261099e565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152600460205260408120546001600160a01b03166113975760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084016105ce565b60006113a28361099e565b9050806001600160a01b0316846001600160a01b031614806113dd5750836001600160a01b03166113d284610559565b6001600160a01b0316145b806107e257506001600160a01b0380821660009081526007602090815260408083209388168352929052205460ff166107e2565b826001600160a01b03166114248261099e565b6001600160a01b03161461148c5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b60648201526084016105ce565b6001600160a01b0382166114ee5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b60648201526084016105ce565b6114f96000826112b0565b6001600160a01b038316600090815260056020526040812080546001929061152290849061245d565b90915550506001600160a01b0382166000908152600560205260408120805460019290611550908490612412565b909155505060008181526004602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b60006115bc8261099e565b90506115c96000836112b0565b6001600160a01b03811660009081526005602052604081208054600192906115f290849061245d565b909155505060008281526004602052604080822080546001600160a01b0319169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b6001600160a01b0382166000908152600160208190526040822054849160ff90911615151461168d5760405162461bcd60e51b81526004016105ce90612309565b6001600160a01b0384811660009081526020819052604090819020549051630e75722360e41b815260048101869052911690819063e75722309060240160206040518083038186803b1580156116e257600080fd5b505afa1580156116f6573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061171a91906121f4565b95945050505050565b6001600160a01b0382166117715760405162461bcd60e51b81526020600482015260156024820152741a5b9d985b1a5908195c98cc8c10dbdb9d1c9858dd605a1b60448201526064016105ce565b6001600160a01b0382811660009081526020818152604080832080546001600160a01b0319169486169485179055600190915290205460ff16906117b65760006117b9565b60015b6001600160a01b0384166000908152600160205260409020805460ff1916911515918217905560ff16811580156117ed5750805b15611833576040516001600160a01b03851681527f5b5d0ebd23a2ce78c0e27b53d6e7d9ba02df75a734fce0f0605f704c996260349060200160405180910390a1611137565b81801561183e575080155b15611137576040516001600160a01b03851681527f52189fe53fb7e0ef7bc28897dc9ff81957c7346f7966dbd26f081e21d29eb2059060200160405180910390a150505050565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6000811180156118e8575060148111155b6119345760405162461bcd60e51b815260206004820152601f60248201527f63616e2774206d696e742030206f722061626f7665203230207065722074780060448201526064016105ce565b61177081600b546119459190612412565b11156119935760405162461bcd60e51b815260206004820152601b60248201527f63616e2774206d696e742061626f7665204d41585f535550504c59000000000060448201526064016105ce565b6000600b5460016119a49190612412565b905060005b828110156119d4576119c4846119bf8385612412565b6119f1565b6119cd816124db565b90506119a9565b5081600b60008282546119e79190612412565b9091555050505050565b610a49828260405180602001604052806000815250611c36565b816001600160a01b0316836001600160a01b03161415611a6d5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c65720000000000000060448201526064016105ce565b6001600160a01b03838116600081815260076020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b611ae5848484611411565b611af184848484611c69565b6111375760405162461bcd60e51b81526004016105ce906122b7565b6060600c80546104d6906124a0565b606081611b405750506040805180820190915260018152600360fc1b602082015290565b8160005b8115611b6a5780611b54816124db565b9150611b639050600a8361242a565b9150611b44565b60008167ffffffffffffffff811115611b9357634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015611bbd576020820181803683370190505b5090505b84156107e257611bd260018361245d565b9150611bdf600a866124f6565b611bea906030612412565b60f81b818381518110611c0d57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350611c2f600a8661242a565b9450611bc1565b611c408383611d76565b611c4d6000848484611c69565b6107045760405162461bcd60e51b81526004016105ce906122b7565b60006001600160a01b0384163b15611d6b57604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290611cad903390899088908890600401612267565b602060405180830381600087803b158015611cc757600080fd5b505af1925050508015611cf7575060408051601f3d908101601f19168201909252611cf49181019061217a565b60015b611d51573d808015611d25576040519150601f19603f3d011682016040523d82523d6000602084013e611d2a565b606091505b508051611d495760405162461bcd60e51b81526004016105ce906122b7565b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506107e2565b506001949350505050565b6001600160a01b038216611dcc5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f206164647265737360448201526064016105ce565b6000818152600460205260409020546001600160a01b031615611e315760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000060448201526064016105ce565b6001600160a01b0382166000908152600560205260408120805460019290611e5a908490612412565b909155505060008181526004602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b828054611ec4906124a0565b90600052602060002090601f016020900481019282611ee65760008555611f2c565b82601f10611eff57805160ff1916838001178555611f2c565b82800160010185558215611f2c579182015b82811115611f2c578251825591602001919060010190611f11565b50611f38929150611f3c565b5090565b5b80821115611f385760008155600101611f3d565b600067ffffffffffffffff80841115611f6c57611f6c612536565b604051601f8501601f19908116603f01168101908282118183101715611f9457611f94612536565b81604052809350858152868686011115611fad57600080fd5b858560208301376000602087830101525050509392505050565b80356001600160a01b0381168114611fde57600080fd5b919050565b600060208284031215611ff4578081fd5b61121182611fc7565b6000806040838503121561200f578081fd5b61201883611fc7565b915061202660208401611fc7565b90509250929050565b600080600060608486031215612043578081fd5b61204c84611fc7565b925061205a60208501611fc7565b9150604084013590509250925092565b6000806000806080858703121561207f578081fd5b61208885611fc7565b935061209660208601611fc7565b925060408501359150606085013567ffffffffffffffff8111156120b8578182fd5b8501601f810187136120c8578182fd5b6120d787823560208401611f51565b91505092959194509250565b600080604083850312156120f5578182fd5b6120fe83611fc7565b9150602083013561210e8161254c565b809150509250929050565b6000806040838503121561212b578182fd5b61213483611fc7565b946020939093013593505050565b600060208284031215612153578081fd5b81516112118161254c565b60006020828403121561216f578081fd5b81356112118161255a565b60006020828403121561218b578081fd5b81516112118161255a565b6000602082840312156121a7578081fd5b813567ffffffffffffffff8111156121bd578182fd5b8201601f810184136121cd578182fd5b6107e284823560208401611f51565b6000602082840312156121ed578081fd5b5035919050565b600060208284031215612205578081fd5b5051919050565b60008151808452612224816020860160208601612474565b601f01601f19169290920160200192915050565b6000835161224a818460208801612474565b83519083019061225e818360208801612474565b01949350505050565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061229a9083018461220c565b9695505050505050565b602081526000611211602083018461220c565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b60208082526015908201527406e6f6e2d77686974656c697374656420657263323605c1b604082015260600190565b60208082526011908201527018dbdb9d1c9858dd08191a5cd8589b1959607a1b604082015260600190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b6020808252600f908201526e3737ba1030903b30b634b230ba37b960891b604082015260600190565b600082198211156124255761242561250a565b500190565b60008261243957612439612520565b500490565b60008160001904831182151516156124585761245861250a565b500290565b60008282101561246f5761246f61250a565b500390565b60005b8381101561248f578181015183820152602001612477565b838111156111375750506000910152565b600181811c908216806124b457607f821691505b602082108114156124d557634e487b7160e01b600052602260045260246000fd5b50919050565b60006000198214156124ef576124ef61250a565b5060010190565b60008261250557612505612520565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b801515811461079457600080fd5b6001600160e01b03198116811461079457600080fdfea2646970667358221220ac4bf24cd41863a1ec057a66afdb6010f7af7524bc7f413620613517081248f664736f6c63430008040033000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000c00000000000000000000000007af4c151d5d87d029d17c120a496c5bb4266e050000000000000000000000000d093f2634286afbc9d728c63ebc0d69f7d6cfc1a00000000000000000000000000000000000000000000000000000000000000154d61666961426561727343656c6562726974696573000000000000000000000000000000000000000000000000000000000000000000000000000000000000034d42430000000000000000000000000000000000000000000000000000000000

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106101fb5760003560e01c806370a082311161011a57806395d89b41116100ad578063b88d4fde1161007c578063b88d4fde146103f8578063c87b56dd1461040b578063d5abeb011461041e578063e985e9c514610426578063f2fde38b1461046257600080fd5b806395d89b41146103b7578063a0bcfc7f146103bf578063a0db5971146103d2578063a22cb465146103e557600080fd5b8063891d4134116100e9578063891d413414610383578063894ba833146103965780638da5cb5b1461039e57806390612b3c146103af57600080fd5b806370a0823114610342578063715018a61461035557806374d2290e1461035d578063798c578d1461037057600080fd5b8063367edd321161019257806356c4eab11161016157806356c4eab1146102fe5780636352211e146103115780636aa633b6146103245780636e550d2a1461032f57600080fd5b8063367edd32146102c85780633ccfd60b146102d057806342842e0e146102d85780634b2acaed146102eb57600080fd5b806318160ddd116101ce57806318160ddd1461027d57806323b872dd1461028f5780632d81a047146102a25780632dfd8a3b146102b557600080fd5b806301ffc9a71461020057806306fdde0314610228578063081812fc1461023d578063095ea7b314610268575b600080fd5b61021361020e36600461215e565b610475565b60405190151581526020015b60405180910390f35b6102306104c7565b60405161021f91906122a4565b61025061024b3660046121dc565b610559565b6040516001600160a01b03909116815260200161021f565b61027b610276366004612119565b6105f3565b005b600b545b60405190815260200161021f565b61027b61029d36600461202f565b610709565b61027b6102b03660046121dc565b61073a565b6102816102c3366004612119565b610797565b61027b6107ea565b61027b610823565b61027b6102e636600461202f565b6108a1565b61027b6102f93660046121dc565b6108bc565b61027b61030c366004611fe3565b6108eb565b61025061031f3660046121dc565b61099e565b600a5460ff16610213565b61027b61033d366004611ffd565b610a15565b610281610350366004611fe3565b610a4d565b61027b610ad4565b61027b61036b366004612119565b610b0a565b61027b61037e366004612119565b610b65565b61027b610391366004611fe3565b610c5a565b61027b610d07565b6008546001600160a01b0316610250565b600d54610281565b610230610d3d565b61027b6103cd366004612196565b610d4c565b61027b6103e0366004612119565b610d89565b61027b6103f33660046120e3565b6110fa565b61027b61040636600461206a565b611105565b6102306104193660046121dc565b61113d565b611770610281565b610213610434366004611ffd565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b61027b610470366004611fe3565b611218565b60006001600160e01b031982166380ac58cd60e01b14806104a657506001600160e01b03198216635b5e139f60e01b145b806104c157506301ffc9a760e01b6001600160e01b03198316145b92915050565b6060600280546104d6906124a0565b80601f0160208091040260200160405190810160405280929190818152602001828054610502906124a0565b801561054f5780601f106105245761010080835404028352916020019161054f565b820191906000526020600020905b81548152906001019060200180831161053257829003601f168201915b5050505050905090565b6000818152600460205260408120546001600160a01b03166105d75760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600660205260409020546001600160a01b031690565b60006105fe8261099e565b9050806001600160a01b0316836001600160a01b0316141561066c5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b60648201526084016105ce565b336001600160a01b038216148061068857506106888133610434565b6106fa5760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c000000000000000060648201526084016105ce565b61070483836112b0565b505050565b610713338261131e565b61072f5760405162461bcd60e51b81526004016105ce90612398565b610704838383611411565b3360009081526009602052604090205460ff166107695760405162461bcd60e51b81526004016105ce906123e9565b600a5460ff1661078b5760405162461bcd60e51b81526004016105ce90612338565b610794816115b1565b50565b6001600160a01b0382166000908152600160208190526040822054849160ff9091161515146107d85760405162461bcd60e51b81526004016105ce90612309565b6107e2848461164c565b949350505050565b6008546001600160a01b031633146108145760405162461bcd60e51b81526004016105ce90612363565b600a805460ff19166001179055565b6008546001600160a01b0316331461084d5760405162461bcd60e51b81526004016105ce90612363565b4780156107945760006108686008546001600160a01b031690565b6040519091506001600160a01b0382169083156108fc029084906000818181858888f19350505050158015610704573d6000803e3d6000fd5b61070483838360405180602001604052806000815250611105565b6008546001600160a01b031633146108e65760405162461bcd60e51b81526004016105ce90612363565b600d55565b6008546001600160a01b031633146109155760405162461bcd60e51b81526004016105ce90612363565b6001600160a01b03811660009081526009602052604090205460ff1661097d5760405162461bcd60e51b815260206004820152601760248201527f616c7265616479206e6f7420612076616c696461746f7200000000000000000060448201526064016105ce565b6001600160a01b03166000908152600960205260409020805460ff19169055565b6000818152600460205260408120546001600160a01b0316806104c15760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b60648201526084016105ce565b6008546001600160a01b03163314610a3f5760405162461bcd60e51b81526004016105ce90612363565b610a498282611723565b5050565b60006001600160a01b038216610ab85760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b60648201526084016105ce565b506001600160a01b031660009081526005602052604090205490565b6008546001600160a01b03163314610afe5760405162461bcd60e51b81526004016105ce90612363565b610b086000611885565b565b3360009081526009602052604090205460ff16610b395760405162461bcd60e51b81526004016105ce906123e9565b600a5460ff16610b5b5760405162461bcd60e51b81526004016105ce90612338565b610a4982826118d7565b3360009081526009602052604090205460ff16610b945760405162461bcd60e51b81526004016105ce906123e9565b600a5460ff16610bb65760405162461bcd60e51b81526004016105ce90612338565b6001600160a01b038216610bfe5760405162461bcd60e51b815260206004820152600f60248201526e34b73b30b634b21036b4b73a2337b960891b60448201526064016105ce565b600b54811115610c505760405162461bcd60e51b815260206004820152601860248201527f6e6f7420616c6c6f7765643a20746f74616c537570706c79000000000000000060448201526064016105ce565b610a4982826119f1565b6008546001600160a01b03163314610c845760405162461bcd60e51b81526004016105ce90612363565b6001600160a01b03811660009081526009602052604090205460ff1615610ce35760405162461bcd60e51b815260206004820152601360248201527230b63932b0b23c9030903b30b634b230ba37b960691b60448201526064016105ce565b6001600160a01b03166000908152600960205260409020805460ff19166001179055565b6008546001600160a01b03163314610d315760405162461bcd60e51b81526004016105ce90612363565b600a805460ff19169055565b6060600380546104d6906124a0565b6008546001600160a01b03163314610d765760405162461bcd60e51b81526004016105ce90612363565b8051610a4990600c906020840190611eb8565b6001600160a01b038216600090815260016020819052604090912054839160ff909116151514610dcb5760405162461bcd60e51b81526004016105ce90612309565b600a5460ff16610ded5760405162461bcd60e51b81526004016105ce90612338565b6000600d54118015610e015750600d544210155b610e415760405162461bcd60e51b81526020600482015260116024820152701cd85b195cc81b9bdd081cdd185c9d1959607a1b60448201526064016105ce565b6000610e4f84600b54610797565b604051636eb1769f60e11b815233600482015230602482015290915084906000906001600160a01b0383169063dd62ed3e9060440160206040518083038186803b158015610e9c57600080fd5b505afa158015610eb0573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ed491906121f4565b9050610ee0858461243e565b811015610f1f5760405162461bcd60e51b815260206004820152600d60248201526c6c6f7720616c6c6f77616e636560981b60448201526064016105ce565b6040516370a0823160e01b81523360048201526000906001600160a01b038416906370a082319060240160206040518083038186803b158015610f6157600080fd5b505afa158015610f75573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f9991906121f4565b9050610fa5868561243e565b811015610fe25760405162461bcd60e51b815260206004820152600b60248201526a6c6f772062616c616e636560a81b60448201526064016105ce565b6000836001600160a01b03166323b872dd336110066008546001600160a01b031690565b611010898c61243e565b6040516001600160e01b031960e086901b1681526001600160a01b0393841660048201529290911660248301526044820152606401602060405180830381600087803b15801561105f57600080fd5b505af1158015611073573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110979190612142565b9050806110e65760405162461bcd60e51b815260206004820152601860248201527f6661696c656420746f207472616e73666572206572633230000000000000000060448201526064016105ce565b6110f033886118d7565b5050505050505050565b610a49338383611a0b565b61110f338361131e565b61112b5760405162461bcd60e51b81526004016105ce90612398565b61113784848484611ada565b50505050565b6000818152600460205260409020546060906001600160a01b03166111bc5760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b60648201526084016105ce565b60006111c6611b0d565b905060008151116111e65760405180602001604052806000815250611211565b806111f084611b1c565b604051602001611201929190612238565b6040516020818303038152906040525b9392505050565b6008546001600160a01b031633146112425760405162461bcd60e51b81526004016105ce90612363565b6001600160a01b0381166112a75760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016105ce565b61079481611885565b600081815260066020526040902080546001600160a01b0319166001600160a01b03841690811790915581906112e58261099e565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152600460205260408120546001600160a01b03166113975760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084016105ce565b60006113a28361099e565b9050806001600160a01b0316846001600160a01b031614806113dd5750836001600160a01b03166113d284610559565b6001600160a01b0316145b806107e257506001600160a01b0380821660009081526007602090815260408083209388168352929052205460ff166107e2565b826001600160a01b03166114248261099e565b6001600160a01b03161461148c5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b60648201526084016105ce565b6001600160a01b0382166114ee5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b60648201526084016105ce565b6114f96000826112b0565b6001600160a01b038316600090815260056020526040812080546001929061152290849061245d565b90915550506001600160a01b0382166000908152600560205260408120805460019290611550908490612412565b909155505060008181526004602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b60006115bc8261099e565b90506115c96000836112b0565b6001600160a01b03811660009081526005602052604081208054600192906115f290849061245d565b909155505060008281526004602052604080822080546001600160a01b0319169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b6001600160a01b0382166000908152600160208190526040822054849160ff90911615151461168d5760405162461bcd60e51b81526004016105ce90612309565b6001600160a01b0384811660009081526020819052604090819020549051630e75722360e41b815260048101869052911690819063e75722309060240160206040518083038186803b1580156116e257600080fd5b505afa1580156116f6573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061171a91906121f4565b95945050505050565b6001600160a01b0382166117715760405162461bcd60e51b81526020600482015260156024820152741a5b9d985b1a5908195c98cc8c10dbdb9d1c9858dd605a1b60448201526064016105ce565b6001600160a01b0382811660009081526020818152604080832080546001600160a01b0319169486169485179055600190915290205460ff16906117b65760006117b9565b60015b6001600160a01b0384166000908152600160205260409020805460ff1916911515918217905560ff16811580156117ed5750805b15611833576040516001600160a01b03851681527f5b5d0ebd23a2ce78c0e27b53d6e7d9ba02df75a734fce0f0605f704c996260349060200160405180910390a1611137565b81801561183e575080155b15611137576040516001600160a01b03851681527f52189fe53fb7e0ef7bc28897dc9ff81957c7346f7966dbd26f081e21d29eb2059060200160405180910390a150505050565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6000811180156118e8575060148111155b6119345760405162461bcd60e51b815260206004820152601f60248201527f63616e2774206d696e742030206f722061626f7665203230207065722074780060448201526064016105ce565b61177081600b546119459190612412565b11156119935760405162461bcd60e51b815260206004820152601b60248201527f63616e2774206d696e742061626f7665204d41585f535550504c59000000000060448201526064016105ce565b6000600b5460016119a49190612412565b905060005b828110156119d4576119c4846119bf8385612412565b6119f1565b6119cd816124db565b90506119a9565b5081600b60008282546119e79190612412565b9091555050505050565b610a49828260405180602001604052806000815250611c36565b816001600160a01b0316836001600160a01b03161415611a6d5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c65720000000000000060448201526064016105ce565b6001600160a01b03838116600081815260076020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b611ae5848484611411565b611af184848484611c69565b6111375760405162461bcd60e51b81526004016105ce906122b7565b6060600c80546104d6906124a0565b606081611b405750506040805180820190915260018152600360fc1b602082015290565b8160005b8115611b6a5780611b54816124db565b9150611b639050600a8361242a565b9150611b44565b60008167ffffffffffffffff811115611b9357634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015611bbd576020820181803683370190505b5090505b84156107e257611bd260018361245d565b9150611bdf600a866124f6565b611bea906030612412565b60f81b818381518110611c0d57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350611c2f600a8661242a565b9450611bc1565b611c408383611d76565b611c4d6000848484611c69565b6107045760405162461bcd60e51b81526004016105ce906122b7565b60006001600160a01b0384163b15611d6b57604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290611cad903390899088908890600401612267565b602060405180830381600087803b158015611cc757600080fd5b505af1925050508015611cf7575060408051601f3d908101601f19168201909252611cf49181019061217a565b60015b611d51573d808015611d25576040519150601f19603f3d011682016040523d82523d6000602084013e611d2a565b606091505b508051611d495760405162461bcd60e51b81526004016105ce906122b7565b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506107e2565b506001949350505050565b6001600160a01b038216611dcc5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f206164647265737360448201526064016105ce565b6000818152600460205260409020546001600160a01b031615611e315760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000060448201526064016105ce565b6001600160a01b0382166000908152600560205260408120805460019290611e5a908490612412565b909155505060008181526004602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b828054611ec4906124a0565b90600052602060002090601f016020900481019282611ee65760008555611f2c565b82601f10611eff57805160ff1916838001178555611f2c565b82800160010185558215611f2c579182015b82811115611f2c578251825591602001919060010190611f11565b50611f38929150611f3c565b5090565b5b80821115611f385760008155600101611f3d565b600067ffffffffffffffff80841115611f6c57611f6c612536565b604051601f8501601f19908116603f01168101908282118183101715611f9457611f94612536565b81604052809350858152868686011115611fad57600080fd5b858560208301376000602087830101525050509392505050565b80356001600160a01b0381168114611fde57600080fd5b919050565b600060208284031215611ff4578081fd5b61121182611fc7565b6000806040838503121561200f578081fd5b61201883611fc7565b915061202660208401611fc7565b90509250929050565b600080600060608486031215612043578081fd5b61204c84611fc7565b925061205a60208501611fc7565b9150604084013590509250925092565b6000806000806080858703121561207f578081fd5b61208885611fc7565b935061209660208601611fc7565b925060408501359150606085013567ffffffffffffffff8111156120b8578182fd5b8501601f810187136120c8578182fd5b6120d787823560208401611f51565b91505092959194509250565b600080604083850312156120f5578182fd5b6120fe83611fc7565b9150602083013561210e8161254c565b809150509250929050565b6000806040838503121561212b578182fd5b61213483611fc7565b946020939093013593505050565b600060208284031215612153578081fd5b81516112118161254c565b60006020828403121561216f578081fd5b81356112118161255a565b60006020828403121561218b578081fd5b81516112118161255a565b6000602082840312156121a7578081fd5b813567ffffffffffffffff8111156121bd578182fd5b8201601f810184136121cd578182fd5b6107e284823560208401611f51565b6000602082840312156121ed578081fd5b5035919050565b600060208284031215612205578081fd5b5051919050565b60008151808452612224816020860160208601612474565b601f01601f19169290920160200192915050565b6000835161224a818460208801612474565b83519083019061225e818360208801612474565b01949350505050565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061229a9083018461220c565b9695505050505050565b602081526000611211602083018461220c565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b60208082526015908201527406e6f6e2d77686974656c697374656420657263323605c1b604082015260600190565b60208082526011908201527018dbdb9d1c9858dd08191a5cd8589b1959607a1b604082015260600190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b6020808252600f908201526e3737ba1030903b30b634b230ba37b960891b604082015260600190565b600082198211156124255761242561250a565b500190565b60008261243957612439612520565b500490565b60008160001904831182151516156124585761245861250a565b500290565b60008282101561246f5761246f61250a565b500390565b60005b8381101561248f578181015183820152602001612477565b838111156111375750506000910152565b600181811c908216806124b457607f821691505b602082108114156124d557634e487b7160e01b600052602260045260246000fd5b50919050565b60006000198214156124ef576124ef61250a565b5060010190565b60008261250557612505612520565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b801515811461079457600080fd5b6001600160e01b03198116811461079457600080fdfea2646970667358221220ac4bf24cd41863a1ec057a66afdb6010f7af7524bc7f413620613517081248f664736f6c63430008040033

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

000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000c00000000000000000000000007af4c151d5d87d029d17c120a496c5bb4266e050000000000000000000000000d093f2634286afbc9d728c63ebc0d69f7d6cfc1a00000000000000000000000000000000000000000000000000000000000000154d61666961426561727343656c6562726974696573000000000000000000000000000000000000000000000000000000000000000000000000000000000000034d42430000000000000000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : name_ (string): MafiaBearsCelebrities
Arg [1] : symbol_ (string): MBC
Arg [2] : priceStrategy (address): 0x7AF4C151D5d87d029d17C120A496C5Bb4266E050
Arg [3] : erc20Contract (address): 0xd093f2634286afbc9D728c63EbC0D69f7D6cfc1a

-----Encoded View---------------
8 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000080
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000c0
Arg [2] : 0000000000000000000000007af4c151d5d87d029d17c120a496c5bb4266e050
Arg [3] : 000000000000000000000000d093f2634286afbc9d728c63ebc0d69f7d6cfc1a
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000015
Arg [5] : 4d61666961426561727343656c65627269746965730000000000000000000000
Arg [6] : 0000000000000000000000000000000000000000000000000000000000000003
Arg [7] : 4d42430000000000000000000000000000000000000000000000000000000000


Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading
[ Download: CSV Export  ]

A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.