ETH Price: $3,326.10 (-4.81%)
Gas: 4.11 Gwei

Token

Capitalist Pigs (PIGS)
 

Overview

Max Total Supply

0 PIGS

Holders

76

Total Transfers

-

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Loading...
Loading
Loading...
Loading
Loading...
Loading

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

Contract Source Code Verified (Exact Match)

Contract Name:
CapitalistPigs

Compiler Version
v0.8.0+commit.c7dfd78e

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion
File 1 of 13 : CapitalistPigs.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 "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol";

contract CapitalistPigs is ERC721, Ownable {
    using Strings for uint256;

    enum MintStatus { Closed, Presale, Public }

    struct TierInfo {
        uint price;
        MintStatus mintStatus;
        uint minId;
        uint nextId;
        uint maxId;
    }
    mapping(uint => TierInfo) tiers;
    uint nextTier;

    // A counter to allow us to keep fresh presale buyers list for arbitrary future mints.
    uint currentPresale;
    
    // currrentPresale => address => hasMinted
    mapping(uint => mapping(address => bool)) presaleBuyers;
    mapping(uint => bytes32) presaleRoot;

    address payable devWallet;
    string baseURI;
    
    uint royaltyRate; 
    uint constant royaltyRateDivisor = 100_000;
    address payable royaltyWallet; 

    constructor (
        string memory _baseURI,
        address payable _royaltyWallet,
        address payable _devWallet
    ) ERC721("Capitalist Pigs", "PIGS") {
        baseURI = _baseURI;
        royaltyRate = 10_000;
        royaltyWallet = _royaltyWallet;
        devWallet = _devWallet;

        tiers[nextTier++] = TierInfo({
            price: 5 ether,
            mintStatus: MintStatus.Public,
            minId: 0,
            nextId: 0,
            maxId: 49
        });
    }

    // MINTING FUNCTIONS //
    
    function mintPresale(uint _edition, bytes32[] calldata _proof) public payable {
        TierInfo storage tier = tiers[_edition];
        require(tier.mintStatus == MintStatus.Presale, "presale minting closed");
        require(presaleBuyers[currentPresale][msg.sender] == false, 'already minted');
        require(MerkleProof.verify(_proof, presaleRoot[currentPresale], keccak256(abi.encodePacked(msg.sender))), "invalid merkle proof");
        presaleBuyers[currentPresale][msg.sender] = true;
        _mintTokens(tier, 1);
    }

    function mintPublic(uint _edition, uint _quantity) public payable {
        TierInfo storage tier = tiers[_edition];
        require(tier.mintStatus == MintStatus.Public, "public minting closed");
        _mintTokens(tier, _quantity);
    }

    function _mintTokens(TierInfo storage tier, uint _quantity) internal {
        require(msg.value == _quantity * tier.price, "incorrect value");
        require(tier.nextId + _quantity - 1 <= tier.maxId, "max id reached");
        for (uint i = 0; i < _quantity; i++) {
            _safeMint(msg.sender, tier.nextId++);
        }
    }

    function ownerMint(uint _edition, address _to) external onlyOwner {
        TierInfo storage tier = tiers[_edition];
        require(tier.nextId <= tier.maxId, "max id reached");
        _safeMint(_to, tier.nextId++);
    }

    // VIEWS //

    function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
        require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token");
        return string(abi.encodePacked(baseURI, tokenId.toString(), ".json"));
    }

    function getTierInfo(uint _edition) public view returns (TierInfo memory) {
        return tiers[_edition];
    }

    function isPigInTier(uint _tokenId, uint _edition) public view returns (bool) {
        TierInfo memory tier = tiers[_edition];
        return (_tokenId >= tier.minId && _tokenId < tier.nextId);
    }

    function isOwnerInTier(address _owner, uint _tokenId, uint _edition) public view returns (bool) {
        return (ownerOf(_tokenId) == _owner && isPigInTier(_tokenId, _edition));
    }

    // CREATE & UPDATE TIERS //

    function createNewTier(uint _price, MintStatus _mintStatus, uint _minId, uint _maxId) external onlyOwner {
        require(tiers[nextTier - 1].maxId < _minId, "minId must be higher than prev tier maxId");
        tiers[nextTier++] = TierInfo({
            price: _price,
            mintStatus: _mintStatus,
            minId: _minId,
            nextId: _minId,
            maxId: _maxId
        });
    }

    function setTierInfo(uint _edition, MintStatus _status, uint _price, uint _maxId) external onlyOwner {
        TierInfo memory oldTierInfo = tiers[_edition];
        require(tiers[_edition + 1].minId == 0 || _maxId < tiers[_edition + 1].minId, "overlapping with next tier");
        tiers[_edition] = TierInfo({
            price: _price,
            mintStatus: _status,
            minId: oldTierInfo.minId,
            nextId: oldTierInfo.nextId,
            maxId: _maxId
        });        
    }

    // ADMIN //

    function setBaseURI(string memory _newBaseURI) external onlyOwner {
        baseURI = _newBaseURI;
    }

    function setDevWallet(address payable _devWallet) external onlyOwner {
        devWallet = _devWallet;
    }

    function startNewPresale(bytes32 _root) external onlyOwner {
        unchecked {
            currentPresale++;
        }
        presaleRoot[currentPresale] = _root;
    }

    function withdrawEth(address payable _addr) external onlyOwner {
        uint devPayout = address(this).balance / 10;
        devWallet.transfer(devPayout);
        _addr.transfer(address(this).balance);
    }

    function withdrawToken(address token, address _addr) external onlyOwner {
        uint balance = IERC20(token).balanceOf(address(this));
        uint devPayout = balance / 10;
        IERC20(token).transfer(devWallet, devPayout);
        IERC20(token).transfer(_addr, balance - devPayout);
    }

    // EIP 2981 ROYALTIES //

    function royaltyInfo(uint256 _tokenId, uint256 _salePrice) external view returns (address receiver, uint256 royaltyAmount) {
        require(_exists(_tokenId), "nonexistant token");
        uint amountToPay = _salePrice * royaltyRate / royaltyRateDivisor;
        return (royaltyWallet, amountToPay);
    }

    function updateRoyaltyRate(uint256 _rate) public onlyOwner {
        royaltyRate = _rate;
    }

    function updateRoyaltyWallet(address payable _wallet) public onlyOwner {
        royaltyWallet = _wallet;
    }
}

File 2 of 13 : 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 13 : 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 13 : 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 5 of 13 : MerkleProof.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/cryptography/MerkleProof.sol)

pragma solidity ^0.8.0;

/**
 * @dev These functions deal with verification of Merkle Trees proofs.
 *
 * The proofs can be generated using the JavaScript library
 * https://github.com/miguelmota/merkletreejs[merkletreejs].
 * Note: the hashing algorithm should be keccak256 and pair sorting should be enabled.
 *
 * See `test/utils/cryptography/MerkleProof.test.js` for some examples.
 */
library MerkleProof {
    /**
     * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree
     * defined by `root`. For this, a `proof` must be provided, containing
     * sibling hashes on the branch from the leaf to the root of the tree. Each
     * pair of leaves and each pair of pre-images are assumed to be sorted.
     */
    function verify(
        bytes32[] memory proof,
        bytes32 root,
        bytes32 leaf
    ) internal pure returns (bool) {
        return processProof(proof, leaf) == root;
    }

    /**
     * @dev Returns the rebuilt hash obtained by traversing a Merklee tree up
     * from `leaf` using `proof`. A `proof` is valid if and only if the rebuilt
     * hash matches the root of the tree. When processing the proof, the pairs
     * of leafs & pre-images are assumed to be sorted.
     *
     * _Available since v4.4._
     */
    function processProof(bytes32[] memory proof, bytes32 leaf) internal pure returns (bytes32) {
        bytes32 computedHash = leaf;
        for (uint256 i = 0; i < proof.length; i++) {
            bytes32 proofElement = proof[i];
            if (computedHash <= proofElement) {
                // Hash(current computed hash + current element of the proof)
                computedHash = keccak256(abi.encodePacked(computedHash, proofElement));
            } else {
                // Hash(current element of the proof + current computed hash)
                computedHash = keccak256(abi.encodePacked(proofElement, computedHash));
            }
        }
        return computedHash;
    }
}

File 6 of 13 : 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 7 of 13 : 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 8 of 13 : 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 9 of 13 : 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 10 of 13 : Context.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)

pragma solidity ^0.8.0;

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

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

File 11 of 13 : 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 12 of 13 : 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 13 of 13 : IERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)

pragma solidity ^0.8.0;

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

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"_baseURI","type":"string"},{"internalType":"address payable","name":"_royaltyWallet","type":"address"},{"internalType":"address payable","name":"_devWallet","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":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":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_price","type":"uint256"},{"internalType":"enum CapitalistPigs.MintStatus","name":"_mintStatus","type":"uint8"},{"internalType":"uint256","name":"_minId","type":"uint256"},{"internalType":"uint256","name":"_maxId","type":"uint256"}],"name":"createNewTier","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":"uint256","name":"_edition","type":"uint256"}],"name":"getTierInfo","outputs":[{"components":[{"internalType":"uint256","name":"price","type":"uint256"},{"internalType":"enum CapitalistPigs.MintStatus","name":"mintStatus","type":"uint8"},{"internalType":"uint256","name":"minId","type":"uint256"},{"internalType":"uint256","name":"nextId","type":"uint256"},{"internalType":"uint256","name":"maxId","type":"uint256"}],"internalType":"struct CapitalistPigs.TierInfo","name":"","type":"tuple"}],"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":[{"internalType":"address","name":"_owner","type":"address"},{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"uint256","name":"_edition","type":"uint256"}],"name":"isOwnerInTier","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"uint256","name":"_edition","type":"uint256"}],"name":"isPigInTier","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_edition","type":"uint256"},{"internalType":"bytes32[]","name":"_proof","type":"bytes32[]"}],"name":"mintPresale","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_edition","type":"uint256"},{"internalType":"uint256","name":"_quantity","type":"uint256"}],"name":"mintPublic","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_edition","type":"uint256"},{"internalType":"address","name":"_to","type":"address"}],"name":"ownerMint","outputs":[],"stateMutability":"nonpayable","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":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"uint256","name":"_salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint256","name":"royaltyAmount","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":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_newBaseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address payable","name":"_devWallet","type":"address"}],"name":"setDevWallet","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_edition","type":"uint256"},{"internalType":"enum CapitalistPigs.MintStatus","name":"_status","type":"uint8"},{"internalType":"uint256","name":"_price","type":"uint256"},{"internalType":"uint256","name":"_maxId","type":"uint256"}],"name":"setTierInfo","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_root","type":"bytes32"}],"name":"startNewPresale","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":[{"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":"_rate","type":"uint256"}],"name":"updateRoyaltyRate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address payable","name":"_wallet","type":"address"}],"name":"updateRoyaltyWallet","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address payable","name":"_addr","type":"address"}],"name":"withdrawEth","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"address","name":"_addr","type":"address"}],"name":"withdrawToken","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60806040523480156200001157600080fd5b5060405162005680380380620056808339818101604052810190620000379190620004c3565b6040518060400160405280600f81526020017f4361706974616c697374205069677300000000000000000000000000000000008152506040518060400160405280600481526020017f50494753000000000000000000000000000000000000000000000000000000008152508160009080519060200190620000bb9291906200038a565b508060019080519060200190620000d49291906200038a565b505050620000f7620000eb620002bc60201b60201c565b620002c460201b60201c565b82600d90805190602001906200010f9291906200038a565b50612710600e8190555081600f60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555080600c60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506040518060a00160405280674563918244f400008152602001600280811115620001ee577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b81526020016000815260200160008152602001603181525060076000600860008154809291906200021f9062000643565b9190505581526020019081526020016000206000820151816000015560208201518160010160006101000a81548160ff021916908360028111156200028d577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b021790555060408201518160020155606082015181600301556080820151816004015590505050505062000738565b600033905090565b6000600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600660006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b82805462000398906200060d565b90600052602060002090601f016020900481019282620003bc576000855562000408565b82601f10620003d757805160ff191683800117855562000408565b8280016001018555821562000408579182015b8281111562000407578251825591602001919060010190620003ea565b5b5090506200041791906200041b565b5090565b5b80821115620004365760008160009055506001016200041c565b5090565b6000620004516200044b8462000566565b62000532565b9050828152602081018484840111156200046a57600080fd5b62000477848285620005d7565b509392505050565b60008151905062000490816200071e565b92915050565b600082601f830112620004a857600080fd5b8151620004ba8482602086016200043a565b91505092915050565b600080600060608486031215620004d957600080fd5b600084015167ffffffffffffffff811115620004f457600080fd5b620005028682870162000496565b935050602062000515868287016200047f565b925050604062000528868287016200047f565b9150509250925092565b6000604051905081810181811067ffffffffffffffff821117156200055c576200055b620006ef565b5b8060405250919050565b600067ffffffffffffffff821115620005845762000583620006ef565b5b601f19601f8301169050602081019050919050565b6000620005a682620005ad565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b60005b83811015620005f7578082015181840152602081019050620005da565b8381111562000607576000848401525b50505050565b600060028204905060018216806200062657607f821691505b602082108114156200063d576200063c620006c0565b5b50919050565b60006200065082620005cd565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82141562000686576200068562000691565b5b600182019050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b620007298162000599565b81146200073557600080fd5b50565b614f3880620007486000396000f3fe6080604052600436106101e35760003560e01c80635dd2b48911610102578063b88d4fde11610095578063e1ee5c8311610064578063e1ee5c8314610700578063e985e9c514610729578063ed5ab3f614610766578063f2fde38b14610782576101e3565b8063b88d4fde14610634578063c87b56dd1461065d578063cc9d75191461069a578063d52c57e0146106d7576101e3565b8063715018a6116100d1578063715018a61461059e5780638da5cb5b146105b557806395d89b41146105e0578063a22cb4651461060b576101e3565b80635dd2b489146104be5780636352211e146104e75780636e0c3c191461052457806370a0823114610561576101e3565b806325e160631161017a5780633aeac4e1116101495780633aeac4e11461041a57806342842e0e1461044357806344fb2a3c1461046c57806355f804b314610495576101e3565b806325e160631461034d578063268247d9146103765780632a55205a1461039f5780632d3411be146103dd576101e3565b8063095ea7b3116101b6578063095ea7b3146102b65780630c0a6b5e146102df5780631f53ac02146102fb57806323b872dd14610324576101e3565b806301ffc9a7146101e857806302ff59791461022557806306fdde031461024e578063081812fc14610279575b600080fd5b3480156101f457600080fd5b5061020f600480360381019061020a91906137ec565b6107ab565b60405161021c91906145b3565b60405180910390f35b34801561023157600080fd5b5061024c60048036038101906102479190613965565b61088d565b005b34801561025a57600080fd5b50610263610a7e565b60405161027091906145ce565b60405180910390f35b34801561028557600080fd5b506102a0600480360381019061029b919061387f565b610b10565b6040516102ad91906144fa565b60405180910390f35b3480156102c257600080fd5b506102dd60048036038101906102d8919061370f565b610b95565b005b6102f960048036038101906102f4919061390d565b610cad565b005b34801561030757600080fd5b50610322600480360381019061031d91906135a4565b610f70565b005b34801561033057600080fd5b5061034b60048036038101906103469190613609565b611030565b005b34801561035957600080fd5b50610374600480360381019061036f91906135a4565b611090565b005b34801561038257600080fd5b5061039d600480360381019061039891906135a4565b6111d1565b005b3480156103ab57600080fd5b506103c660048036038101906103c191906139c8565b611291565b6040516103d492919061458a565b60405180910390f35b3480156103e957600080fd5b5061040460048036038101906103ff919061374b565b61132c565b60405161041191906145b3565b60405180910390f35b34801561042657600080fd5b50610441600480360381019061043c91906135cd565b611380565b005b34801561044f57600080fd5b5061046a60048036038101906104659190613609565b6115e9565b005b34801561047857600080fd5b50610493600480360381019061048e9190613965565b611609565b005b3480156104a157600080fd5b506104bc60048036038101906104b7919061383e565b6118e9565b005b3480156104ca57600080fd5b506104e560048036038101906104e091906137c3565b61197f565b005b3480156104f357600080fd5b5061050e6004803603810190610509919061387f565b611a2a565b60405161051b91906144fa565b60405180910390f35b34801561053057600080fd5b5061054b600480360381019061054691906139c8565b611adc565b60405161055891906145b3565b60405180910390f35b34801561056d57600080fd5b506105886004803603810190610583919061357b565b611bce565b604051610595919061492b565b60405180910390f35b3480156105aa57600080fd5b506105b3611c86565b005b3480156105c157600080fd5b506105ca611d0e565b6040516105d791906144fa565b60405180910390f35b3480156105ec57600080fd5b506105f5611d38565b60405161060291906145ce565b60405180910390f35b34801561061757600080fd5b50610632600480360381019061062d91906136d3565b611dca565b005b34801561064057600080fd5b5061065b60048036038101906106569190613658565b611de0565b005b34801561066957600080fd5b50610684600480360381019061067f919061387f565b611e42565b60405161069191906145ce565b60405180910390f35b3480156106a657600080fd5b506106c160048036038101906106bc919061387f565b611ebe565b6040516106ce9190614910565b60405180910390f35b3480156106e357600080fd5b506106fe60048036038101906106f991906138d1565b611f9a565b005b34801561070c57600080fd5b506107276004803603810190610722919061387f565b61209f565b005b34801561073557600080fd5b50610750600480360381019061074b91906135cd565b612125565b60405161075d91906145b3565b60405180910390f35b610780600480360381019061077b91906139c8565b6121b9565b005b34801561078e57600080fd5b506107a960048036038101906107a4919061357b565b6122a2565b005b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061087657507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b8061088657506108858261239a565b5b9050919050565b610895612404565b73ffffffffffffffffffffffffffffffffffffffff166108b3611d0e565b73ffffffffffffffffffffffffffffffffffffffff1614610909576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161090090614790565b60405180910390fd5b8160076000600160085461091d9190614b10565b8152602001908152602001600020600401541061096f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161096690614830565b60405180910390fd5b6040518060a001604052808581526020018460028111156109b9577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b81526020018381526020018381526020018281525060076000600860008154809291906109e590614ca3565b9190505581526020019081526020016000206000820151816000015560208201518160010160006101000a81548160ff02191690836002811115610a52577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b021790555060408201518160020155606082015181600301556080820151816004015590505050505050565b606060008054610a8d90614c71565b80601f0160208091040260200160405190810160405280929190818152602001828054610ab990614c71565b8015610b065780601f10610adb57610100808354040283529160200191610b06565b820191906000526020600020905b815481529060010190602001808311610ae957829003601f168201915b5050505050905090565b6000610b1b8261240c565b610b5a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b5190614770565b60405180910390fd5b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610ba082611a2a565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610c11576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c08906147f0565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610c30612404565b73ffffffffffffffffffffffffffffffffffffffff161480610c5f5750610c5e81610c59612404565b612125565b5b610c9e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c95906146f0565b60405180910390fd5b610ca88383612478565b505050565b600060076000858152602001908152602001600020905060016002811115610cfe577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b8160010160009054906101000a900460ff166002811115610d48577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b14610d88576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d7f90614870565b60405180910390fd5b60001515600a6000600954815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16151514610e2e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e25906148f0565b60405180910390fd5b610eb5838380806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f82011690508083019250505050505050600b600060095481526020019081526020016000205433604051602001610e9a9190614484565b60405160208183030381529060405280519060200120612531565b610ef4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610eeb90614630565b60405180910390fd5b6001600a6000600954815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550610f6a816001612548565b50505050565b610f78612404565b73ffffffffffffffffffffffffffffffffffffffff16610f96611d0e565b73ffffffffffffffffffffffffffffffffffffffff1614610fec576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fe390614790565b60405180910390fd5b80600c60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b61104161103b612404565b82612640565b611080576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161107790614810565b60405180910390fd5b61108b83838361271e565b505050565b611098612404565b73ffffffffffffffffffffffffffffffffffffffff166110b6611d0e565b73ffffffffffffffffffffffffffffffffffffffff161461110c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161110390614790565b60405180910390fd5b6000600a4761111b9190614a85565b9050600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f19350505050158015611185573d6000803e3d6000fd5b508173ffffffffffffffffffffffffffffffffffffffff166108fc479081150290604051600060405180830381858888f193505050501580156111cc573d6000803e3d6000fd5b505050565b6111d9612404565b73ffffffffffffffffffffffffffffffffffffffff166111f7611d0e565b73ffffffffffffffffffffffffffffffffffffffff161461124d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161124490614790565b60405180910390fd5b80600f60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b60008061129d8461240c565b6112dc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112d390614890565b60405180910390fd5b6000620186a0600e54856112f09190614ab6565b6112fa9190614a85565b9050600f60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff168192509250509250929050565b60008373ffffffffffffffffffffffffffffffffffffffff1661134e84611a2a565b73ffffffffffffffffffffffffffffffffffffffff1614801561137757506113768383611adc565b5b90509392505050565b611388612404565b73ffffffffffffffffffffffffffffffffffffffff166113a6611d0e565b73ffffffffffffffffffffffffffffffffffffffff16146113fc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113f390614790565b60405180910390fd5b60008273ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b815260040161143791906144fa565b60206040518083038186803b15801561144f57600080fd5b505afa158015611463573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061148791906138a8565b90506000600a826114989190614a85565b90508373ffffffffffffffffffffffffffffffffffffffff1663a9059cbb600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16836040518363ffffffff1660e01b81526004016114f7929190614515565b602060405180830381600087803b15801561151157600080fd5b505af1158015611525573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611549919061379a565b508373ffffffffffffffffffffffffffffffffffffffff1663a9059cbb8483856115739190614b10565b6040518363ffffffff1660e01b815260040161159092919061458a565b602060405180830381600087803b1580156115aa57600080fd5b505af11580156115be573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115e2919061379a565b5050505050565b61160483838360405180602001604052806000815250611de0565b505050565b611611612404565b73ffffffffffffffffffffffffffffffffffffffff1661162f611d0e565b73ffffffffffffffffffffffffffffffffffffffff1614611685576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161167c90614790565b60405180910390fd5b6000600760008681526020019081526020016000206040518060a0016040529081600082015481526020016001820160009054906101000a900460ff1660028111156116fa577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b6002811115611732577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b8152602001600282015481526020016003820154815260200160048201548152505090506000600760006001886117699190614a2f565b81526020019081526020016000206002015414806117a85750600760006001876117939190614a2f565b81526020019081526020016000206002015482105b6117e7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117de90614850565b60405180910390fd5b6040518060a00160405280848152602001856002811115611831577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b8152602001826040015181526020018260600151815260200183815250600760008781526020019081526020016000206000820151816000015560208201518160010160006101000a81548160ff021916908360028111156118bc577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b02179055506040820151816002015560608201518160030155608082015181600401559050505050505050565b6118f1612404565b73ffffffffffffffffffffffffffffffffffffffff1661190f611d0e565b73ffffffffffffffffffffffffffffffffffffffff1614611965576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161195c90614790565b60405180910390fd5b80600d908051906020019061197b929190613285565b5050565b611987612404565b73ffffffffffffffffffffffffffffffffffffffff166119a5611d0e565b73ffffffffffffffffffffffffffffffffffffffff16146119fb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119f290614790565b60405180910390fd5b60096000815480929190600101919050555080600b600060095481526020019081526020016000208190555050565b6000806002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611ad3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611aca90614730565b60405180910390fd5b80915050919050565b600080600760008481526020019081526020016000206040518060a0016040529081600082015481526020016001820160009054906101000a900460ff166002811115611b52577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b6002811115611b8a577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b81526020016002820154815260200160038201548152602001600482015481525050905080604001518410158015611bc55750806060015184105b91505092915050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611c3f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c3690614710565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b611c8e612404565b73ffffffffffffffffffffffffffffffffffffffff16611cac611d0e565b73ffffffffffffffffffffffffffffffffffffffff1614611d02576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611cf990614790565b60405180910390fd5b611d0c600061297a565b565b6000600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b606060018054611d4790614c71565b80601f0160208091040260200160405190810160405280929190818152602001828054611d7390614c71565b8015611dc05780601f10611d9557610100808354040283529160200191611dc0565b820191906000526020600020905b815481529060010190602001808311611da357829003601f168201915b5050505050905090565b611ddc611dd5612404565b8383612a40565b5050565b611df1611deb612404565b83612640565b611e30576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e2790614810565b60405180910390fd5b611e3c84848484612bad565b50505050565b6060611e4d8261240c565b611e8c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e83906147d0565b60405180910390fd5b600d611e9783612c09565b604051602001611ea89291906144cb565b6040516020818303038152906040529050919050565b611ec661330b565b600760008381526020019081526020016000206040518060a0016040529081600082015481526020016001820160009054906101000a900460ff166002811115611f39577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b6002811115611f71577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b815260200160028201548152602001600382015481526020016004820154815250509050919050565b611fa2612404565b73ffffffffffffffffffffffffffffffffffffffff16611fc0611d0e565b73ffffffffffffffffffffffffffffffffffffffff1614612016576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161200d90614790565b60405180910390fd5b6000600760008481526020019081526020016000209050806004015481600301541115612078576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161206f90614670565b60405180910390fd5b61209a8282600301600081548092919061209190614ca3565b91905055612db6565b505050565b6120a7612404565b73ffffffffffffffffffffffffffffffffffffffff166120c5611d0e565b73ffffffffffffffffffffffffffffffffffffffff161461211b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161211290614790565b60405180910390fd5b80600e8190555050565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6000600760008481526020019081526020016000209050600280811115612209577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b8160010160009054906101000a900460ff166002811115612253577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b14612293576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161228a906148d0565b60405180910390fd5b61229d8183612548565b505050565b6122aa612404565b73ffffffffffffffffffffffffffffffffffffffff166122c8611d0e565b73ffffffffffffffffffffffffffffffffffffffff161461231e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161231590614790565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141561238e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161238590614610565b60405180910390fd5b6123978161297a565b50565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b600033905090565b60008073ffffffffffffffffffffffffffffffffffffffff166002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff166124eb83611a2a565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60008261253e8584612dd4565b1490509392505050565b8160000154816125589190614ab6565b3414612599576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612590906148b0565b60405180910390fd5b816004015460018284600301546125b09190614a2f565b6125ba9190614b10565b11156125fb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016125f290614670565b60405180910390fd5b60005b8181101561263b576126283384600301600081548092919061261f90614ca3565b91905055612db6565b808061263390614ca3565b9150506125fe565b505050565b600061264b8261240c565b61268a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612681906146d0565b60405180910390fd5b600061269583611a2a565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16148061270457508373ffffffffffffffffffffffffffffffffffffffff166126ec84610b10565b73ffffffffffffffffffffffffffffffffffffffff16145b8061271557506127148185612125565b5b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff1661273e82611a2a565b73ffffffffffffffffffffffffffffffffffffffff1614612794576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161278b906147b0565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612804576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016127fb90614690565b60405180910390fd5b61280f838383612ead565b61281a600082612478565b6001600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461286a9190614b10565b925050819055506001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546128c19190614a2f565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b6000600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600660006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415612aaf576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612aa6906146b0565b60405180910390fd5b80600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051612ba091906145b3565b60405180910390a3505050565b612bb884848461271e565b612bc484848484612eb2565b612c03576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612bfa906145f0565b60405180910390fd5b50505050565b60606000821415612c51576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050612db1565b600082905060005b60008214612c83578080612c6c90614ca3565b915050600a82612c7c9190614a85565b9150612c59565b60008167ffffffffffffffff811115612cc5577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015612cf75781602001600182028036833780820191505090505b5090505b60008514612daa57600182612d109190614b10565b9150600a85612d1f9190614d1a565b6030612d2b9190614a2f565b60f81b818381518110612d67577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a85612da39190614a85565b9450612cfb565b8093505050505b919050565b612dd0828260405180602001604052806000815250613049565b5050565b60008082905060005b8451811015612ea2576000858281518110612e21577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200260200101519050808311612e62578281604051602001612e4592919061449f565b604051602081830303815290604052805190602001209250612e8e565b8083604051602001612e7592919061449f565b6040516020818303038152906040528051906020012092505b508080612e9a90614ca3565b915050612ddd565b508091505092915050565b505050565b6000612ed38473ffffffffffffffffffffffffffffffffffffffff166130a4565b1561303c578373ffffffffffffffffffffffffffffffffffffffff1663150b7a02612efc612404565b8786866040518563ffffffff1660e01b8152600401612f1e949392919061453e565b602060405180830381600087803b158015612f3857600080fd5b505af1925050508015612f6957506040513d601f19601f82011682018060405250810190612f669190613815565b60015b612fec573d8060008114612f99576040519150601f19603f3d011682016040523d82523d6000602084013e612f9e565b606091505b50600081511415612fe4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612fdb906145f0565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050613041565b600190505b949350505050565b61305383836130b7565b6130606000848484612eb2565b61309f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613096906145f0565b60405180910390fd5b505050565b600080823b905060008111915050919050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415613127576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161311e90614750565b60405180910390fd5b6131308161240c565b15613170576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161316790614650565b60405180910390fd5b61317c60008383612ead565b6001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546131cc9190614a2f565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050565b82805461329190614c71565b90600052602060002090601f0160209004810192826132b357600085556132fa565b82601f106132cc57805160ff19168380011785556132fa565b828001600101855582156132fa579182015b828111156132f95782518255916020019190600101906132de565b5b5090506133079190613372565b5090565b6040518060a001604052806000815260200160006002811115613357577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b81526020016000815260200160008152602001600081525090565b5b8082111561338b576000816000905550600101613373565b5090565b60006133a261339d84614977565b614946565b9050828152602081018484840111156133ba57600080fd5b6133c5848285614c2f565b509392505050565b60006133e06133db846149a7565b614946565b9050828152602081018484840111156133f857600080fd5b613403848285614c2f565b509392505050565b60008135905061341a81614e68565b92915050565b60008135905061342f81614e7f565b92915050565b60008083601f84011261344757600080fd5b8235905067ffffffffffffffff81111561346057600080fd5b60208301915083602082028301111561347857600080fd5b9250929050565b60008135905061348e81614e96565b92915050565b6000815190506134a381614e96565b92915050565b6000813590506134b881614ead565b92915050565b6000813590506134cd81614ec4565b92915050565b6000815190506134e281614ec4565b92915050565b600082601f8301126134f957600080fd5b813561350984826020860161338f565b91505092915050565b60008135905061352181614edb565b92915050565b600082601f83011261353857600080fd5b81356135488482602086016133cd565b91505092915050565b60008135905061356081614eeb565b92915050565b60008151905061357581614eeb565b92915050565b60006020828403121561358d57600080fd5b600061359b8482850161340b565b91505092915050565b6000602082840312156135b657600080fd5b60006135c484828501613420565b91505092915050565b600080604083850312156135e057600080fd5b60006135ee8582860161340b565b92505060206135ff8582860161340b565b9150509250929050565b60008060006060848603121561361e57600080fd5b600061362c8682870161340b565b935050602061363d8682870161340b565b925050604061364e86828701613551565b9150509250925092565b6000806000806080858703121561366e57600080fd5b600061367c8782880161340b565b945050602061368d8782880161340b565b935050604061369e87828801613551565b925050606085013567ffffffffffffffff8111156136bb57600080fd5b6136c7878288016134e8565b91505092959194509250565b600080604083850312156136e657600080fd5b60006136f48582860161340b565b92505060206137058582860161347f565b9150509250929050565b6000806040838503121561372257600080fd5b60006137308582860161340b565b925050602061374185828601613551565b9150509250929050565b60008060006060848603121561376057600080fd5b600061376e8682870161340b565b935050602061377f86828701613551565b925050604061379086828701613551565b9150509250925092565b6000602082840312156137ac57600080fd5b60006137ba84828501613494565b91505092915050565b6000602082840312156137d557600080fd5b60006137e3848285016134a9565b91505092915050565b6000602082840312156137fe57600080fd5b600061380c848285016134be565b91505092915050565b60006020828403121561382757600080fd5b6000613835848285016134d3565b91505092915050565b60006020828403121561385057600080fd5b600082013567ffffffffffffffff81111561386a57600080fd5b61387684828501613527565b91505092915050565b60006020828403121561389157600080fd5b600061389f84828501613551565b91505092915050565b6000602082840312156138ba57600080fd5b60006138c884828501613566565b91505092915050565b600080604083850312156138e457600080fd5b60006138f285828601613551565b92505060206139038582860161340b565b9150509250929050565b60008060006040848603121561392257600080fd5b600061393086828701613551565b935050602084013567ffffffffffffffff81111561394d57600080fd5b61395986828701613435565b92509250509250925092565b6000806000806080858703121561397b57600080fd5b600061398987828801613551565b945050602061399a87828801613512565b93505060406139ab87828801613551565b92505060606139bc87828801613551565b91505092959194509250565b600080604083850312156139db57600080fd5b60006139e985828601613551565b92505060206139fa85828601613551565b9150509250929050565b613a0d81614be7565b82525050565b613a1c81614b44565b82525050565b613a33613a2e82614b44565b614cec565b82525050565b613a4281614b68565b82525050565b613a59613a5482614b74565b614cfe565b82525050565b6000613a6a826149ec565b613a748185614a02565b9350613a84818560208601614c3e565b613a8d81614e36565b840191505092915050565b613aa181614bf9565b82525050565b6000613ab2826149f7565b613abc8185614a13565b9350613acc818560208601614c3e565b613ad581614e36565b840191505092915050565b6000613aeb826149f7565b613af58185614a24565b9350613b05818560208601614c3e565b80840191505092915050565b60008154613b1e81614c71565b613b288186614a24565b94506001821660008114613b435760018114613b5457613b87565b60ff19831686528186019350613b87565b613b5d856149d7565b60005b83811015613b7f57815481890152600182019150602081019050613b60565b838801955050505b50505092915050565b6000613b9d603283614a13565b91507f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008301527f63656976657220696d706c656d656e74657200000000000000000000000000006020830152604082019050919050565b6000613c03602683614a13565b91507f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008301527f64647265737300000000000000000000000000000000000000000000000000006020830152604082019050919050565b6000613c69601483614a13565b91507f696e76616c6964206d65726b6c652070726f6f660000000000000000000000006000830152602082019050919050565b6000613ca9601c83614a13565b91507f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006000830152602082019050919050565b6000613ce9600e83614a13565b91507f6d617820696420726561636865640000000000000000000000000000000000006000830152602082019050919050565b6000613d29602483614a13565b91507f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008301527f72657373000000000000000000000000000000000000000000000000000000006020830152604082019050919050565b6000613d8f601983614a13565b91507f4552433732313a20617070726f766520746f2063616c6c6572000000000000006000830152602082019050919050565b6000613dcf602c83614a13565b91507f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860008301527f697374656e7420746f6b656e00000000000000000000000000000000000000006020830152604082019050919050565b6000613e35603883614a13565b91507f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760008301527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006020830152604082019050919050565b6000613e9b602a83614a13565b91507f4552433732313a2062616c616e636520717565727920666f7220746865207a6560008301527f726f2061646472657373000000000000000000000000000000000000000000006020830152604082019050919050565b6000613f01602983614a13565b91507f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460008301527f656e7420746f6b656e00000000000000000000000000000000000000000000006020830152604082019050919050565b6000613f67602083614a13565b91507f4552433732313a206d696e7420746f20746865207a65726f20616464726573736000830152602082019050919050565b6000613fa7602c83614a13565b91507f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860008301527f697374656e7420746f6b656e00000000000000000000000000000000000000006020830152604082019050919050565b600061400d600583614a24565b91507f2e6a736f6e0000000000000000000000000000000000000000000000000000006000830152600582019050919050565b600061404d602083614a13565b91507f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726000830152602082019050919050565b600061408d602983614a13565b91507f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960008301527f73206e6f74206f776e00000000000000000000000000000000000000000000006020830152604082019050919050565b60006140f3602f83614a13565b91507f4552433732314d657461646174613a2055524920717565727920666f72206e6f60008301527f6e6578697374656e7420746f6b656e00000000000000000000000000000000006020830152604082019050919050565b6000614159602183614a13565b91507f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008301527f72000000000000000000000000000000000000000000000000000000000000006020830152604082019050919050565b60006141bf603183614a13565b91507f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60008301527f776e6572206e6f7220617070726f7665640000000000000000000000000000006020830152604082019050919050565b6000614225602983614a13565b91507f6d696e4964206d75737420626520686967686572207468616e2070726576207460008301527f696572206d6178496400000000000000000000000000000000000000000000006020830152604082019050919050565b600061428b601a83614a13565b91507f6f7665726c617070696e672077697468206e65787420746965720000000000006000830152602082019050919050565b60006142cb601683614a13565b91507f70726573616c65206d696e74696e6720636c6f736564000000000000000000006000830152602082019050919050565b600061430b601183614a13565b91507f6e6f6e6578697374616e7420746f6b656e0000000000000000000000000000006000830152602082019050919050565b600061434b600f83614a13565b91507f696e636f72726563742076616c756500000000000000000000000000000000006000830152602082019050919050565b600061438b601583614a13565b91507f7075626c6963206d696e74696e6720636c6f73656400000000000000000000006000830152602082019050919050565b60006143cb600e83614a13565b91507f616c7265616479206d696e7465640000000000000000000000000000000000006000830152602082019050919050565b60a0820160008201516144146000850182614466565b5060208201516144276020850182613a98565b50604082015161443a6040850182614466565b50606082015161444d6060850182614466565b5060808201516144606080850182614466565b50505050565b61446f81614bdd565b82525050565b61447e81614bdd565b82525050565b60006144908284613a22565b60148201915081905092915050565b60006144ab8285613a48565b6020820191506144bb8284613a48565b6020820191508190509392505050565b60006144d78285613b11565b91506144e38284613ae0565b91506144ee82614000565b91508190509392505050565b600060208201905061450f6000830184613a13565b92915050565b600060408201905061452a6000830185613a04565b6145376020830184614475565b9392505050565b60006080820190506145536000830187613a13565b6145606020830186613a13565b61456d6040830185614475565b818103606083015261457f8184613a5f565b905095945050505050565b600060408201905061459f6000830185613a13565b6145ac6020830184614475565b9392505050565b60006020820190506145c86000830184613a39565b92915050565b600060208201905081810360008301526145e88184613aa7565b905092915050565b6000602082019050818103600083015261460981613b90565b9050919050565b6000602082019050818103600083015261462981613bf6565b9050919050565b6000602082019050818103600083015261464981613c5c565b9050919050565b6000602082019050818103600083015261466981613c9c565b9050919050565b6000602082019050818103600083015261468981613cdc565b9050919050565b600060208201905081810360008301526146a981613d1c565b9050919050565b600060208201905081810360008301526146c981613d82565b9050919050565b600060208201905081810360008301526146e981613dc2565b9050919050565b6000602082019050818103600083015261470981613e28565b9050919050565b6000602082019050818103600083015261472981613e8e565b9050919050565b6000602082019050818103600083015261474981613ef4565b9050919050565b6000602082019050818103600083015261476981613f5a565b9050919050565b6000602082019050818103600083015261478981613f9a565b9050919050565b600060208201905081810360008301526147a981614040565b9050919050565b600060208201905081810360008301526147c981614080565b9050919050565b600060208201905081810360008301526147e9816140e6565b9050919050565b600060208201905081810360008301526148098161414c565b9050919050565b60006020820190508181036000830152614829816141b2565b9050919050565b6000602082019050818103600083015261484981614218565b9050919050565b600060208201905081810360008301526148698161427e565b9050919050565b60006020820190508181036000830152614889816142be565b9050919050565b600060208201905081810360008301526148a9816142fe565b9050919050565b600060208201905081810360008301526148c98161433e565b9050919050565b600060208201905081810360008301526148e98161437e565b9050919050565b60006020820190508181036000830152614909816143be565b9050919050565b600060a08201905061492560008301846143fe565b92915050565b60006020820190506149406000830184614475565b92915050565b6000604051905081810181811067ffffffffffffffff8211171561496d5761496c614e07565b5b8060405250919050565b600067ffffffffffffffff82111561499257614991614e07565b5b601f19601f8301169050602081019050919050565b600067ffffffffffffffff8211156149c2576149c1614e07565b5b601f19601f8301169050602081019050919050565b60008190508160005260206000209050919050565b600081519050919050565b600081519050919050565b600082825260208201905092915050565b600082825260208201905092915050565b600081905092915050565b6000614a3a82614bdd565b9150614a4583614bdd565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115614a7a57614a79614d4b565b5b828201905092915050565b6000614a9082614bdd565b9150614a9b83614bdd565b925082614aab57614aaa614d7a565b5b828204905092915050565b6000614ac182614bdd565b9150614acc83614bdd565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615614b0557614b04614d4b565b5b828202905092915050565b6000614b1b82614bdd565b9150614b2683614bdd565b925082821015614b3957614b38614d4b565b5b828203905092915050565b6000614b4f82614bbd565b9050919050565b6000614b6182614bbd565b9050919050565b60008115159050919050565b6000819050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b6000819050614bb882614e54565b919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b6000614bf282614c0b565b9050919050565b6000614c0482614baa565b9050919050565b6000614c1682614c1d565b9050919050565b6000614c2882614bbd565b9050919050565b82818337600083830152505050565b60005b83811015614c5c578082015181840152602081019050614c41565b83811115614c6b576000848401525b50505050565b60006002820490506001821680614c8957607f821691505b60208210811415614c9d57614c9c614dd8565b5b50919050565b6000614cae82614bdd565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415614ce157614ce0614d4b565b5b600182019050919050565b6000614cf782614d08565b9050919050565b6000819050919050565b6000614d1382614e47565b9050919050565b6000614d2582614bdd565b9150614d3083614bdd565b925082614d4057614d3f614d7a565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000601f19601f8301169050919050565b60008160601b9050919050565b60038110614e6557614e64614da9565b5b50565b614e7181614b44565b8114614e7c57600080fd5b50565b614e8881614b56565b8114614e9357600080fd5b50565b614e9f81614b68565b8114614eaa57600080fd5b50565b614eb681614b74565b8114614ec157600080fd5b50565b614ecd81614b7e565b8114614ed857600080fd5b50565b60038110614ee857600080fd5b50565b614ef481614bdd565b8114614eff57600080fd5b5056fea2646970667358221220beadbd802d9d60dadea07132974cbe6c8be765cd8be79edfb9b70dc11f7f3d0c64736f6c6343000800003300000000000000000000000000000000000000000000000000000000000000600000000000000000000000006804b6a151ef9326d18b031846d7fe1e28242f9d00000000000000000000000039e4be283fa2c56781375507ae837bacab1169ab0000000000000000000000000000000000000000000000000000000000000036697066733a2f2f516d584167675a544a5573333573564d546256774579774c55386e7047715973634876345275586464517032414b2f00000000000000000000

Deployed Bytecode

0x6080604052600436106101e35760003560e01c80635dd2b48911610102578063b88d4fde11610095578063e1ee5c8311610064578063e1ee5c8314610700578063e985e9c514610729578063ed5ab3f614610766578063f2fde38b14610782576101e3565b8063b88d4fde14610634578063c87b56dd1461065d578063cc9d75191461069a578063d52c57e0146106d7576101e3565b8063715018a6116100d1578063715018a61461059e5780638da5cb5b146105b557806395d89b41146105e0578063a22cb4651461060b576101e3565b80635dd2b489146104be5780636352211e146104e75780636e0c3c191461052457806370a0823114610561576101e3565b806325e160631161017a5780633aeac4e1116101495780633aeac4e11461041a57806342842e0e1461044357806344fb2a3c1461046c57806355f804b314610495576101e3565b806325e160631461034d578063268247d9146103765780632a55205a1461039f5780632d3411be146103dd576101e3565b8063095ea7b3116101b6578063095ea7b3146102b65780630c0a6b5e146102df5780631f53ac02146102fb57806323b872dd14610324576101e3565b806301ffc9a7146101e857806302ff59791461022557806306fdde031461024e578063081812fc14610279575b600080fd5b3480156101f457600080fd5b5061020f600480360381019061020a91906137ec565b6107ab565b60405161021c91906145b3565b60405180910390f35b34801561023157600080fd5b5061024c60048036038101906102479190613965565b61088d565b005b34801561025a57600080fd5b50610263610a7e565b60405161027091906145ce565b60405180910390f35b34801561028557600080fd5b506102a0600480360381019061029b919061387f565b610b10565b6040516102ad91906144fa565b60405180910390f35b3480156102c257600080fd5b506102dd60048036038101906102d8919061370f565b610b95565b005b6102f960048036038101906102f4919061390d565b610cad565b005b34801561030757600080fd5b50610322600480360381019061031d91906135a4565b610f70565b005b34801561033057600080fd5b5061034b60048036038101906103469190613609565b611030565b005b34801561035957600080fd5b50610374600480360381019061036f91906135a4565b611090565b005b34801561038257600080fd5b5061039d600480360381019061039891906135a4565b6111d1565b005b3480156103ab57600080fd5b506103c660048036038101906103c191906139c8565b611291565b6040516103d492919061458a565b60405180910390f35b3480156103e957600080fd5b5061040460048036038101906103ff919061374b565b61132c565b60405161041191906145b3565b60405180910390f35b34801561042657600080fd5b50610441600480360381019061043c91906135cd565b611380565b005b34801561044f57600080fd5b5061046a60048036038101906104659190613609565b6115e9565b005b34801561047857600080fd5b50610493600480360381019061048e9190613965565b611609565b005b3480156104a157600080fd5b506104bc60048036038101906104b7919061383e565b6118e9565b005b3480156104ca57600080fd5b506104e560048036038101906104e091906137c3565b61197f565b005b3480156104f357600080fd5b5061050e6004803603810190610509919061387f565b611a2a565b60405161051b91906144fa565b60405180910390f35b34801561053057600080fd5b5061054b600480360381019061054691906139c8565b611adc565b60405161055891906145b3565b60405180910390f35b34801561056d57600080fd5b506105886004803603810190610583919061357b565b611bce565b604051610595919061492b565b60405180910390f35b3480156105aa57600080fd5b506105b3611c86565b005b3480156105c157600080fd5b506105ca611d0e565b6040516105d791906144fa565b60405180910390f35b3480156105ec57600080fd5b506105f5611d38565b60405161060291906145ce565b60405180910390f35b34801561061757600080fd5b50610632600480360381019061062d91906136d3565b611dca565b005b34801561064057600080fd5b5061065b60048036038101906106569190613658565b611de0565b005b34801561066957600080fd5b50610684600480360381019061067f919061387f565b611e42565b60405161069191906145ce565b60405180910390f35b3480156106a657600080fd5b506106c160048036038101906106bc919061387f565b611ebe565b6040516106ce9190614910565b60405180910390f35b3480156106e357600080fd5b506106fe60048036038101906106f991906138d1565b611f9a565b005b34801561070c57600080fd5b506107276004803603810190610722919061387f565b61209f565b005b34801561073557600080fd5b50610750600480360381019061074b91906135cd565b612125565b60405161075d91906145b3565b60405180910390f35b610780600480360381019061077b91906139c8565b6121b9565b005b34801561078e57600080fd5b506107a960048036038101906107a4919061357b565b6122a2565b005b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061087657507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b8061088657506108858261239a565b5b9050919050565b610895612404565b73ffffffffffffffffffffffffffffffffffffffff166108b3611d0e565b73ffffffffffffffffffffffffffffffffffffffff1614610909576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161090090614790565b60405180910390fd5b8160076000600160085461091d9190614b10565b8152602001908152602001600020600401541061096f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161096690614830565b60405180910390fd5b6040518060a001604052808581526020018460028111156109b9577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b81526020018381526020018381526020018281525060076000600860008154809291906109e590614ca3565b9190505581526020019081526020016000206000820151816000015560208201518160010160006101000a81548160ff02191690836002811115610a52577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b021790555060408201518160020155606082015181600301556080820151816004015590505050505050565b606060008054610a8d90614c71565b80601f0160208091040260200160405190810160405280929190818152602001828054610ab990614c71565b8015610b065780601f10610adb57610100808354040283529160200191610b06565b820191906000526020600020905b815481529060010190602001808311610ae957829003601f168201915b5050505050905090565b6000610b1b8261240c565b610b5a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b5190614770565b60405180910390fd5b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610ba082611a2a565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610c11576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c08906147f0565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610c30612404565b73ffffffffffffffffffffffffffffffffffffffff161480610c5f5750610c5e81610c59612404565b612125565b5b610c9e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c95906146f0565b60405180910390fd5b610ca88383612478565b505050565b600060076000858152602001908152602001600020905060016002811115610cfe577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b8160010160009054906101000a900460ff166002811115610d48577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b14610d88576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d7f90614870565b60405180910390fd5b60001515600a6000600954815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16151514610e2e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e25906148f0565b60405180910390fd5b610eb5838380806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f82011690508083019250505050505050600b600060095481526020019081526020016000205433604051602001610e9a9190614484565b60405160208183030381529060405280519060200120612531565b610ef4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610eeb90614630565b60405180910390fd5b6001600a6000600954815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550610f6a816001612548565b50505050565b610f78612404565b73ffffffffffffffffffffffffffffffffffffffff16610f96611d0e565b73ffffffffffffffffffffffffffffffffffffffff1614610fec576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fe390614790565b60405180910390fd5b80600c60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b61104161103b612404565b82612640565b611080576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161107790614810565b60405180910390fd5b61108b83838361271e565b505050565b611098612404565b73ffffffffffffffffffffffffffffffffffffffff166110b6611d0e565b73ffffffffffffffffffffffffffffffffffffffff161461110c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161110390614790565b60405180910390fd5b6000600a4761111b9190614a85565b9050600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f19350505050158015611185573d6000803e3d6000fd5b508173ffffffffffffffffffffffffffffffffffffffff166108fc479081150290604051600060405180830381858888f193505050501580156111cc573d6000803e3d6000fd5b505050565b6111d9612404565b73ffffffffffffffffffffffffffffffffffffffff166111f7611d0e565b73ffffffffffffffffffffffffffffffffffffffff161461124d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161124490614790565b60405180910390fd5b80600f60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b60008061129d8461240c565b6112dc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112d390614890565b60405180910390fd5b6000620186a0600e54856112f09190614ab6565b6112fa9190614a85565b9050600f60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff168192509250509250929050565b60008373ffffffffffffffffffffffffffffffffffffffff1661134e84611a2a565b73ffffffffffffffffffffffffffffffffffffffff1614801561137757506113768383611adc565b5b90509392505050565b611388612404565b73ffffffffffffffffffffffffffffffffffffffff166113a6611d0e565b73ffffffffffffffffffffffffffffffffffffffff16146113fc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113f390614790565b60405180910390fd5b60008273ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b815260040161143791906144fa565b60206040518083038186803b15801561144f57600080fd5b505afa158015611463573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061148791906138a8565b90506000600a826114989190614a85565b90508373ffffffffffffffffffffffffffffffffffffffff1663a9059cbb600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16836040518363ffffffff1660e01b81526004016114f7929190614515565b602060405180830381600087803b15801561151157600080fd5b505af1158015611525573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611549919061379a565b508373ffffffffffffffffffffffffffffffffffffffff1663a9059cbb8483856115739190614b10565b6040518363ffffffff1660e01b815260040161159092919061458a565b602060405180830381600087803b1580156115aa57600080fd5b505af11580156115be573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115e2919061379a565b5050505050565b61160483838360405180602001604052806000815250611de0565b505050565b611611612404565b73ffffffffffffffffffffffffffffffffffffffff1661162f611d0e565b73ffffffffffffffffffffffffffffffffffffffff1614611685576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161167c90614790565b60405180910390fd5b6000600760008681526020019081526020016000206040518060a0016040529081600082015481526020016001820160009054906101000a900460ff1660028111156116fa577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b6002811115611732577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b8152602001600282015481526020016003820154815260200160048201548152505090506000600760006001886117699190614a2f565b81526020019081526020016000206002015414806117a85750600760006001876117939190614a2f565b81526020019081526020016000206002015482105b6117e7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117de90614850565b60405180910390fd5b6040518060a00160405280848152602001856002811115611831577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b8152602001826040015181526020018260600151815260200183815250600760008781526020019081526020016000206000820151816000015560208201518160010160006101000a81548160ff021916908360028111156118bc577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b02179055506040820151816002015560608201518160030155608082015181600401559050505050505050565b6118f1612404565b73ffffffffffffffffffffffffffffffffffffffff1661190f611d0e565b73ffffffffffffffffffffffffffffffffffffffff1614611965576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161195c90614790565b60405180910390fd5b80600d908051906020019061197b929190613285565b5050565b611987612404565b73ffffffffffffffffffffffffffffffffffffffff166119a5611d0e565b73ffffffffffffffffffffffffffffffffffffffff16146119fb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119f290614790565b60405180910390fd5b60096000815480929190600101919050555080600b600060095481526020019081526020016000208190555050565b6000806002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611ad3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611aca90614730565b60405180910390fd5b80915050919050565b600080600760008481526020019081526020016000206040518060a0016040529081600082015481526020016001820160009054906101000a900460ff166002811115611b52577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b6002811115611b8a577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b81526020016002820154815260200160038201548152602001600482015481525050905080604001518410158015611bc55750806060015184105b91505092915050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611c3f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c3690614710565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b611c8e612404565b73ffffffffffffffffffffffffffffffffffffffff16611cac611d0e565b73ffffffffffffffffffffffffffffffffffffffff1614611d02576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611cf990614790565b60405180910390fd5b611d0c600061297a565b565b6000600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b606060018054611d4790614c71565b80601f0160208091040260200160405190810160405280929190818152602001828054611d7390614c71565b8015611dc05780601f10611d9557610100808354040283529160200191611dc0565b820191906000526020600020905b815481529060010190602001808311611da357829003601f168201915b5050505050905090565b611ddc611dd5612404565b8383612a40565b5050565b611df1611deb612404565b83612640565b611e30576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e2790614810565b60405180910390fd5b611e3c84848484612bad565b50505050565b6060611e4d8261240c565b611e8c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e83906147d0565b60405180910390fd5b600d611e9783612c09565b604051602001611ea89291906144cb565b6040516020818303038152906040529050919050565b611ec661330b565b600760008381526020019081526020016000206040518060a0016040529081600082015481526020016001820160009054906101000a900460ff166002811115611f39577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b6002811115611f71577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b815260200160028201548152602001600382015481526020016004820154815250509050919050565b611fa2612404565b73ffffffffffffffffffffffffffffffffffffffff16611fc0611d0e565b73ffffffffffffffffffffffffffffffffffffffff1614612016576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161200d90614790565b60405180910390fd5b6000600760008481526020019081526020016000209050806004015481600301541115612078576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161206f90614670565b60405180910390fd5b61209a8282600301600081548092919061209190614ca3565b91905055612db6565b505050565b6120a7612404565b73ffffffffffffffffffffffffffffffffffffffff166120c5611d0e565b73ffffffffffffffffffffffffffffffffffffffff161461211b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161211290614790565b60405180910390fd5b80600e8190555050565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6000600760008481526020019081526020016000209050600280811115612209577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b8160010160009054906101000a900460ff166002811115612253577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b14612293576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161228a906148d0565b60405180910390fd5b61229d8183612548565b505050565b6122aa612404565b73ffffffffffffffffffffffffffffffffffffffff166122c8611d0e565b73ffffffffffffffffffffffffffffffffffffffff161461231e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161231590614790565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141561238e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161238590614610565b60405180910390fd5b6123978161297a565b50565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b600033905090565b60008073ffffffffffffffffffffffffffffffffffffffff166002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff166124eb83611a2a565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60008261253e8584612dd4565b1490509392505050565b8160000154816125589190614ab6565b3414612599576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612590906148b0565b60405180910390fd5b816004015460018284600301546125b09190614a2f565b6125ba9190614b10565b11156125fb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016125f290614670565b60405180910390fd5b60005b8181101561263b576126283384600301600081548092919061261f90614ca3565b91905055612db6565b808061263390614ca3565b9150506125fe565b505050565b600061264b8261240c565b61268a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612681906146d0565b60405180910390fd5b600061269583611a2a565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16148061270457508373ffffffffffffffffffffffffffffffffffffffff166126ec84610b10565b73ffffffffffffffffffffffffffffffffffffffff16145b8061271557506127148185612125565b5b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff1661273e82611a2a565b73ffffffffffffffffffffffffffffffffffffffff1614612794576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161278b906147b0565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612804576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016127fb90614690565b60405180910390fd5b61280f838383612ead565b61281a600082612478565b6001600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461286a9190614b10565b925050819055506001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546128c19190614a2f565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b6000600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600660006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415612aaf576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612aa6906146b0565b60405180910390fd5b80600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051612ba091906145b3565b60405180910390a3505050565b612bb884848461271e565b612bc484848484612eb2565b612c03576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612bfa906145f0565b60405180910390fd5b50505050565b60606000821415612c51576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050612db1565b600082905060005b60008214612c83578080612c6c90614ca3565b915050600a82612c7c9190614a85565b9150612c59565b60008167ffffffffffffffff811115612cc5577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015612cf75781602001600182028036833780820191505090505b5090505b60008514612daa57600182612d109190614b10565b9150600a85612d1f9190614d1a565b6030612d2b9190614a2f565b60f81b818381518110612d67577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a85612da39190614a85565b9450612cfb565b8093505050505b919050565b612dd0828260405180602001604052806000815250613049565b5050565b60008082905060005b8451811015612ea2576000858281518110612e21577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200260200101519050808311612e62578281604051602001612e4592919061449f565b604051602081830303815290604052805190602001209250612e8e565b8083604051602001612e7592919061449f565b6040516020818303038152906040528051906020012092505b508080612e9a90614ca3565b915050612ddd565b508091505092915050565b505050565b6000612ed38473ffffffffffffffffffffffffffffffffffffffff166130a4565b1561303c578373ffffffffffffffffffffffffffffffffffffffff1663150b7a02612efc612404565b8786866040518563ffffffff1660e01b8152600401612f1e949392919061453e565b602060405180830381600087803b158015612f3857600080fd5b505af1925050508015612f6957506040513d601f19601f82011682018060405250810190612f669190613815565b60015b612fec573d8060008114612f99576040519150601f19603f3d011682016040523d82523d6000602084013e612f9e565b606091505b50600081511415612fe4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612fdb906145f0565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050613041565b600190505b949350505050565b61305383836130b7565b6130606000848484612eb2565b61309f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613096906145f0565b60405180910390fd5b505050565b600080823b905060008111915050919050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415613127576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161311e90614750565b60405180910390fd5b6131308161240c565b15613170576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161316790614650565b60405180910390fd5b61317c60008383612ead565b6001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546131cc9190614a2f565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050565b82805461329190614c71565b90600052602060002090601f0160209004810192826132b357600085556132fa565b82601f106132cc57805160ff19168380011785556132fa565b828001600101855582156132fa579182015b828111156132f95782518255916020019190600101906132de565b5b5090506133079190613372565b5090565b6040518060a001604052806000815260200160006002811115613357577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b81526020016000815260200160008152602001600081525090565b5b8082111561338b576000816000905550600101613373565b5090565b60006133a261339d84614977565b614946565b9050828152602081018484840111156133ba57600080fd5b6133c5848285614c2f565b509392505050565b60006133e06133db846149a7565b614946565b9050828152602081018484840111156133f857600080fd5b613403848285614c2f565b509392505050565b60008135905061341a81614e68565b92915050565b60008135905061342f81614e7f565b92915050565b60008083601f84011261344757600080fd5b8235905067ffffffffffffffff81111561346057600080fd5b60208301915083602082028301111561347857600080fd5b9250929050565b60008135905061348e81614e96565b92915050565b6000815190506134a381614e96565b92915050565b6000813590506134b881614ead565b92915050565b6000813590506134cd81614ec4565b92915050565b6000815190506134e281614ec4565b92915050565b600082601f8301126134f957600080fd5b813561350984826020860161338f565b91505092915050565b60008135905061352181614edb565b92915050565b600082601f83011261353857600080fd5b81356135488482602086016133cd565b91505092915050565b60008135905061356081614eeb565b92915050565b60008151905061357581614eeb565b92915050565b60006020828403121561358d57600080fd5b600061359b8482850161340b565b91505092915050565b6000602082840312156135b657600080fd5b60006135c484828501613420565b91505092915050565b600080604083850312156135e057600080fd5b60006135ee8582860161340b565b92505060206135ff8582860161340b565b9150509250929050565b60008060006060848603121561361e57600080fd5b600061362c8682870161340b565b935050602061363d8682870161340b565b925050604061364e86828701613551565b9150509250925092565b6000806000806080858703121561366e57600080fd5b600061367c8782880161340b565b945050602061368d8782880161340b565b935050604061369e87828801613551565b925050606085013567ffffffffffffffff8111156136bb57600080fd5b6136c7878288016134e8565b91505092959194509250565b600080604083850312156136e657600080fd5b60006136f48582860161340b565b92505060206137058582860161347f565b9150509250929050565b6000806040838503121561372257600080fd5b60006137308582860161340b565b925050602061374185828601613551565b9150509250929050565b60008060006060848603121561376057600080fd5b600061376e8682870161340b565b935050602061377f86828701613551565b925050604061379086828701613551565b9150509250925092565b6000602082840312156137ac57600080fd5b60006137ba84828501613494565b91505092915050565b6000602082840312156137d557600080fd5b60006137e3848285016134a9565b91505092915050565b6000602082840312156137fe57600080fd5b600061380c848285016134be565b91505092915050565b60006020828403121561382757600080fd5b6000613835848285016134d3565b91505092915050565b60006020828403121561385057600080fd5b600082013567ffffffffffffffff81111561386a57600080fd5b61387684828501613527565b91505092915050565b60006020828403121561389157600080fd5b600061389f84828501613551565b91505092915050565b6000602082840312156138ba57600080fd5b60006138c884828501613566565b91505092915050565b600080604083850312156138e457600080fd5b60006138f285828601613551565b92505060206139038582860161340b565b9150509250929050565b60008060006040848603121561392257600080fd5b600061393086828701613551565b935050602084013567ffffffffffffffff81111561394d57600080fd5b61395986828701613435565b92509250509250925092565b6000806000806080858703121561397b57600080fd5b600061398987828801613551565b945050602061399a87828801613512565b93505060406139ab87828801613551565b92505060606139bc87828801613551565b91505092959194509250565b600080604083850312156139db57600080fd5b60006139e985828601613551565b92505060206139fa85828601613551565b9150509250929050565b613a0d81614be7565b82525050565b613a1c81614b44565b82525050565b613a33613a2e82614b44565b614cec565b82525050565b613a4281614b68565b82525050565b613a59613a5482614b74565b614cfe565b82525050565b6000613a6a826149ec565b613a748185614a02565b9350613a84818560208601614c3e565b613a8d81614e36565b840191505092915050565b613aa181614bf9565b82525050565b6000613ab2826149f7565b613abc8185614a13565b9350613acc818560208601614c3e565b613ad581614e36565b840191505092915050565b6000613aeb826149f7565b613af58185614a24565b9350613b05818560208601614c3e565b80840191505092915050565b60008154613b1e81614c71565b613b288186614a24565b94506001821660008114613b435760018114613b5457613b87565b60ff19831686528186019350613b87565b613b5d856149d7565b60005b83811015613b7f57815481890152600182019150602081019050613b60565b838801955050505b50505092915050565b6000613b9d603283614a13565b91507f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008301527f63656976657220696d706c656d656e74657200000000000000000000000000006020830152604082019050919050565b6000613c03602683614a13565b91507f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008301527f64647265737300000000000000000000000000000000000000000000000000006020830152604082019050919050565b6000613c69601483614a13565b91507f696e76616c6964206d65726b6c652070726f6f660000000000000000000000006000830152602082019050919050565b6000613ca9601c83614a13565b91507f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006000830152602082019050919050565b6000613ce9600e83614a13565b91507f6d617820696420726561636865640000000000000000000000000000000000006000830152602082019050919050565b6000613d29602483614a13565b91507f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008301527f72657373000000000000000000000000000000000000000000000000000000006020830152604082019050919050565b6000613d8f601983614a13565b91507f4552433732313a20617070726f766520746f2063616c6c6572000000000000006000830152602082019050919050565b6000613dcf602c83614a13565b91507f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860008301527f697374656e7420746f6b656e00000000000000000000000000000000000000006020830152604082019050919050565b6000613e35603883614a13565b91507f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760008301527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006020830152604082019050919050565b6000613e9b602a83614a13565b91507f4552433732313a2062616c616e636520717565727920666f7220746865207a6560008301527f726f2061646472657373000000000000000000000000000000000000000000006020830152604082019050919050565b6000613f01602983614a13565b91507f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460008301527f656e7420746f6b656e00000000000000000000000000000000000000000000006020830152604082019050919050565b6000613f67602083614a13565b91507f4552433732313a206d696e7420746f20746865207a65726f20616464726573736000830152602082019050919050565b6000613fa7602c83614a13565b91507f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860008301527f697374656e7420746f6b656e00000000000000000000000000000000000000006020830152604082019050919050565b600061400d600583614a24565b91507f2e6a736f6e0000000000000000000000000000000000000000000000000000006000830152600582019050919050565b600061404d602083614a13565b91507f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726000830152602082019050919050565b600061408d602983614a13565b91507f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960008301527f73206e6f74206f776e00000000000000000000000000000000000000000000006020830152604082019050919050565b60006140f3602f83614a13565b91507f4552433732314d657461646174613a2055524920717565727920666f72206e6f60008301527f6e6578697374656e7420746f6b656e00000000000000000000000000000000006020830152604082019050919050565b6000614159602183614a13565b91507f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008301527f72000000000000000000000000000000000000000000000000000000000000006020830152604082019050919050565b60006141bf603183614a13565b91507f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60008301527f776e6572206e6f7220617070726f7665640000000000000000000000000000006020830152604082019050919050565b6000614225602983614a13565b91507f6d696e4964206d75737420626520686967686572207468616e2070726576207460008301527f696572206d6178496400000000000000000000000000000000000000000000006020830152604082019050919050565b600061428b601a83614a13565b91507f6f7665726c617070696e672077697468206e65787420746965720000000000006000830152602082019050919050565b60006142cb601683614a13565b91507f70726573616c65206d696e74696e6720636c6f736564000000000000000000006000830152602082019050919050565b600061430b601183614a13565b91507f6e6f6e6578697374616e7420746f6b656e0000000000000000000000000000006000830152602082019050919050565b600061434b600f83614a13565b91507f696e636f72726563742076616c756500000000000000000000000000000000006000830152602082019050919050565b600061438b601583614a13565b91507f7075626c6963206d696e74696e6720636c6f73656400000000000000000000006000830152602082019050919050565b60006143cb600e83614a13565b91507f616c7265616479206d696e7465640000000000000000000000000000000000006000830152602082019050919050565b60a0820160008201516144146000850182614466565b5060208201516144276020850182613a98565b50604082015161443a6040850182614466565b50606082015161444d6060850182614466565b5060808201516144606080850182614466565b50505050565b61446f81614bdd565b82525050565b61447e81614bdd565b82525050565b60006144908284613a22565b60148201915081905092915050565b60006144ab8285613a48565b6020820191506144bb8284613a48565b6020820191508190509392505050565b60006144d78285613b11565b91506144e38284613ae0565b91506144ee82614000565b91508190509392505050565b600060208201905061450f6000830184613a13565b92915050565b600060408201905061452a6000830185613a04565b6145376020830184614475565b9392505050565b60006080820190506145536000830187613a13565b6145606020830186613a13565b61456d6040830185614475565b818103606083015261457f8184613a5f565b905095945050505050565b600060408201905061459f6000830185613a13565b6145ac6020830184614475565b9392505050565b60006020820190506145c86000830184613a39565b92915050565b600060208201905081810360008301526145e88184613aa7565b905092915050565b6000602082019050818103600083015261460981613b90565b9050919050565b6000602082019050818103600083015261462981613bf6565b9050919050565b6000602082019050818103600083015261464981613c5c565b9050919050565b6000602082019050818103600083015261466981613c9c565b9050919050565b6000602082019050818103600083015261468981613cdc565b9050919050565b600060208201905081810360008301526146a981613d1c565b9050919050565b600060208201905081810360008301526146c981613d82565b9050919050565b600060208201905081810360008301526146e981613dc2565b9050919050565b6000602082019050818103600083015261470981613e28565b9050919050565b6000602082019050818103600083015261472981613e8e565b9050919050565b6000602082019050818103600083015261474981613ef4565b9050919050565b6000602082019050818103600083015261476981613f5a565b9050919050565b6000602082019050818103600083015261478981613f9a565b9050919050565b600060208201905081810360008301526147a981614040565b9050919050565b600060208201905081810360008301526147c981614080565b9050919050565b600060208201905081810360008301526147e9816140e6565b9050919050565b600060208201905081810360008301526148098161414c565b9050919050565b60006020820190508181036000830152614829816141b2565b9050919050565b6000602082019050818103600083015261484981614218565b9050919050565b600060208201905081810360008301526148698161427e565b9050919050565b60006020820190508181036000830152614889816142be565b9050919050565b600060208201905081810360008301526148a9816142fe565b9050919050565b600060208201905081810360008301526148c98161433e565b9050919050565b600060208201905081810360008301526148e98161437e565b9050919050565b60006020820190508181036000830152614909816143be565b9050919050565b600060a08201905061492560008301846143fe565b92915050565b60006020820190506149406000830184614475565b92915050565b6000604051905081810181811067ffffffffffffffff8211171561496d5761496c614e07565b5b8060405250919050565b600067ffffffffffffffff82111561499257614991614e07565b5b601f19601f8301169050602081019050919050565b600067ffffffffffffffff8211156149c2576149c1614e07565b5b601f19601f8301169050602081019050919050565b60008190508160005260206000209050919050565b600081519050919050565b600081519050919050565b600082825260208201905092915050565b600082825260208201905092915050565b600081905092915050565b6000614a3a82614bdd565b9150614a4583614bdd565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115614a7a57614a79614d4b565b5b828201905092915050565b6000614a9082614bdd565b9150614a9b83614bdd565b925082614aab57614aaa614d7a565b5b828204905092915050565b6000614ac182614bdd565b9150614acc83614bdd565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615614b0557614b04614d4b565b5b828202905092915050565b6000614b1b82614bdd565b9150614b2683614bdd565b925082821015614b3957614b38614d4b565b5b828203905092915050565b6000614b4f82614bbd565b9050919050565b6000614b6182614bbd565b9050919050565b60008115159050919050565b6000819050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b6000819050614bb882614e54565b919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b6000614bf282614c0b565b9050919050565b6000614c0482614baa565b9050919050565b6000614c1682614c1d565b9050919050565b6000614c2882614bbd565b9050919050565b82818337600083830152505050565b60005b83811015614c5c578082015181840152602081019050614c41565b83811115614c6b576000848401525b50505050565b60006002820490506001821680614c8957607f821691505b60208210811415614c9d57614c9c614dd8565b5b50919050565b6000614cae82614bdd565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415614ce157614ce0614d4b565b5b600182019050919050565b6000614cf782614d08565b9050919050565b6000819050919050565b6000614d1382614e47565b9050919050565b6000614d2582614bdd565b9150614d3083614bdd565b925082614d4057614d3f614d7a565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000601f19601f8301169050919050565b60008160601b9050919050565b60038110614e6557614e64614da9565b5b50565b614e7181614b44565b8114614e7c57600080fd5b50565b614e8881614b56565b8114614e9357600080fd5b50565b614e9f81614b68565b8114614eaa57600080fd5b50565b614eb681614b74565b8114614ec157600080fd5b50565b614ecd81614b7e565b8114614ed857600080fd5b50565b60038110614ee857600080fd5b50565b614ef481614bdd565b8114614eff57600080fd5b5056fea2646970667358221220beadbd802d9d60dadea07132974cbe6c8be765cd8be79edfb9b70dc11f7f3d0c64736f6c63430008000033

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

00000000000000000000000000000000000000000000000000000000000000600000000000000000000000006804b6a151ef9326d18b031846d7fe1e28242f9d00000000000000000000000039e4be283fa2c56781375507ae837bacab1169ab0000000000000000000000000000000000000000000000000000000000000036697066733a2f2f516d584167675a544a5573333573564d546256774579774c55386e7047715973634876345275586464517032414b2f00000000000000000000

-----Decoded View---------------
Arg [0] : _baseURI (string): ipfs://QmXAggZTJUs35sVMTbVwEywLU8npGqYscHv4RuXddQp2AK/
Arg [1] : _royaltyWallet (address): 0x6804b6A151Ef9326d18b031846d7FE1E28242f9d
Arg [2] : _devWallet (address): 0x39E4BE283Fa2c56781375507Ae837BaCAb1169Ab

-----Encoded View---------------
6 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000060
Arg [1] : 0000000000000000000000006804b6a151ef9326d18b031846d7fe1e28242f9d
Arg [2] : 00000000000000000000000039e4be283fa2c56781375507ae837bacab1169ab
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000036
Arg [4] : 697066733a2f2f516d584167675a544a5573333573564d546256774579774c55
Arg [5] : 386e7047715973634876345275586464517032414b2f00000000000000000000


Loading...
Loading
Loading...
Loading
[ Download: CSV Export  ]
[ Download: CSV Export  ]

A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.