ETH Price: $3,392.15 (+1.72%)

Token

Planets (PLANET)
 

Overview

Max Total Supply

0 PLANET

Holders

8,674

Market

Volume (24H)

0.0175 ETH

Min Price (24H)

$8.48 @ 0.002500 ETH

Max Price (24H)

$40.71 @ 0.012000 ETH
0x33e5bF87C9d07553b5C92935d42eA70A536B163E
Loading...
Loading
Loading...
Loading
Loading...
Loading

OVERVIEW

Guide the direction of your favorite Inhabitants world with Planet digital tokens, comprised of nine planets and one moon.

# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
Planets

Compiler Version
v0.8.4+commit.c7e474f2

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 21 : Planets.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;

import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol";
import "@openzeppelin/contracts/utils/Counters.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Enumerable.sol";

import './AbstractERC1155Factory.sol';
import "./PaymentSplitter.sol";

/*
* @title ERC1155 token for Pixelvault planets
*
* @author Niftydude
*/
contract Planets is AbstractERC1155Factory, PaymentSplitter  {
    using Counters for Counters.Counter;
    Counters.Counter private counter; 

    uint256 constant MOON_ID = 3;
    
    uint256 public claimWindowOpens = 4788607340;
    uint256 public claimWindowCloses = 4788607340;
    uint256 public purchaseWindowOpens = 4788607340;
    uint256 public daoBurnWindowOpens = 4788607340;
    uint256 public burnWindowOpens = 4788607340;

    ERC721Contract public comicContract;
    ERC721Contract public founderDAOContract;

    bool burnClosed;
    mapping(uint256 => bool) private isSaleClosed;
    mapping(uint256 => bool) private isClaimClosed;

    mapping(uint256 => Planet) public planets;

    event Claimed(uint indexed index, address indexed account, uint amount);
    event Purchased(uint indexed index, address indexed account, uint amount);

    struct Planet {
        uint256 mintPrice;
        uint256 maxSupply;
        uint256 maxPurchaseSupply;
        uint256 maxPurchaseTx;
        uint256 purchased;
        string ipfsMetadataHash;
        bytes32 merkleRoot;
        mapping(address => uint256) claimed;
    }

    constructor(
        string memory _name, 
        string memory _symbol,  
        address _comicContract,
        address _founderDAOContract,
        address[] memory payees,
        uint256[] memory shares_
    ) ERC1155("ipfs://") PaymentSplitter(payees, shares_) {
        name_ = _name;
        symbol_ = _symbol;

        comicContract = ERC721Contract(_comicContract);
        founderDAOContract = ERC721Contract(_founderDAOContract);
    }

    /**
    * @notice adds a new planet
    * 
    * @param _merkleRoot the merkle root to verify eligile claims
    * @param _mintPrice mint price in gwei
    * @param _maxSupply maximum total supply
    * @param _maxPurchaseSupply maximum supply that can be purchased
    * @param _ipfsMetadataHash the ipfs hash for planet metadata
    */
    function addPlanet(
        bytes32 _merkleRoot, 
        uint256  _mintPrice, 
        uint256 _maxSupply,
        uint256 _maxPurchaseSupply,      
        uint256 _maxPurchaseTx,        
        string memory _ipfsMetadataHash
    ) public onlyOwner {
        Planet storage p = planets[counter.current()];
        p.merkleRoot = _merkleRoot;
        p.mintPrice = _mintPrice;
        p.maxSupply = _maxSupply;
        p.maxPurchaseSupply = _maxPurchaseSupply;
        p.maxPurchaseTx = _maxPurchaseTx;                                        
        p.ipfsMetadataHash = _ipfsMetadataHash;

        counter.increment();
    }    

    /**
    * @notice edit an existing planet
    * 
    * @param _merkleRoot the merkle root to verify eligile claims
    * @param _mintPrice mint price in gwei
    * @param _maxPurchaseSupply maximum total supply
    * @param _ipfsMetadataHash the ipfs hash for planet metadata
    * @param _planetIndex the planet id to change
    */
    function editPlanet(
        bytes32 _merkleRoot, 
        uint256  _mintPrice, 
        uint256 _maxPurchaseSupply,
        uint256 _maxPurchaseTx,        
        string memory _ipfsMetadataHash,
        uint256 _planetIndex
    ) external onlyOwner {
        require(exists(_planetIndex), "EditPlanet: planet does not exist");

        planets[_planetIndex].merkleRoot = _merkleRoot;
        planets[_planetIndex].mintPrice = _mintPrice;  
        planets[_planetIndex].maxPurchaseSupply = _maxPurchaseSupply;     
        planets[_planetIndex].maxPurchaseTx = _maxPurchaseTx;                       
        planets[_planetIndex].ipfsMetadataHash = _ipfsMetadataHash;    
    }    

    /**
    * @notice mint planet tokens
    * 
    * @param planetID the planet id to mint
    * @param amount the amount of tokens to mint
    */
    function mint(uint256 planetID, uint256 amount, address to) external onlyOwner {
        require(exists(planetID), "Mint: planet does not exist");
        require(totalSupply(planetID) + amount <= planets[planetID].maxSupply, "Mint: Max supply reached");

        _mint(to, planetID, amount, "");
    }

    /**
    * @notice close planet sale
    * 
    * @param planetIds the planet ids to close the sale for
    */
    function closeSale(uint256[] calldata planetIds) external onlyOwner {
        uint256 count = planetIds.length;

        for (uint256 i; i < count; i++) {
            require(exists(planetIds[i]), "Close sale: planet does not exist");

            isSaleClosed[planetIds[i]] = true;
        }
    }

    /**
    * @notice close claiming planets for MHs hold
    * 
    * @param planetIds the planet ids to close claiming for 
    */
    function closeClaim(uint256[] calldata planetIds) external onlyOwner {
        uint256 count = planetIds.length;

        for (uint256 i; i < count; i++) {
            require(exists(planetIds[i]), "Close claim: planet does not exist");

            isClaimClosed[planetIds[i]] = true;
        }
    }

    /**
    * @notice close burning comics for moon tokens
    */
    function closeBurn() external onlyOwner {
        burnClosed = true;
    }

    /**
    * @notice edit windows for claiming and purchasing planets
    * 
    * @param _claimWindowOpens UNIX timestamp for claiming window opening time
    * @param _claimWindowOpens UNIX timestamp for claiming window close time
    * @param _claimWindowOpens UNIX timestamp for purchasing window opening time
    */
    function editWindows(
        uint256 _purchaseWindowOpens,
        uint256 _daoBurnWindowOpens,
        uint256 _burnWindowOpens,
        uint256 _claimWindowOpens, 
        uint256 _claimWindowCloses
    ) external onlyOwner {   
        claimWindowOpens = _claimWindowOpens;
        claimWindowCloses = _claimWindowCloses;
        purchaseWindowOpens = _purchaseWindowOpens;
        daoBurnWindowOpens = _daoBurnWindowOpens;
        burnWindowOpens = _burnWindowOpens;
    }

    /**
    * @notice purchase planet tokens
    * 
    * @param planetID the planet id to purchase
    * @param amount the amount of tokens to purchase
    */
    function purchase(uint256 planetID, uint256 amount) external payable whenNotPaused {
        require(!isSaleClosed[planetID], "Purchase: sale is closed");
        require (block.timestamp >= purchaseWindowOpens, "Purchase: window closed");
        require(amount <= planets[planetID].maxPurchaseTx, "Purchase: Max purchase per tx exceeded");                
        require(planets[planetID].purchased + amount <= planets[planetID].maxPurchaseSupply, "Purchase: Max purchase supply reached");
        require(totalSupply(planetID) + amount <= planets[planetID].maxSupply, "Purchase: Max total supply reached");
        require(msg.value == amount * planets[planetID].mintPrice, "Purchase: Incorrect payment"); 

        planets[planetID].purchased += amount;

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

        emit Purchased(planetID, msg.sender, amount);
    }

    /**
    * @notice burn punks comics to receive moon tokens
    * 
    * @param tokenIds the token ids of the comics to burn
    */
    function burnComicForMoon(uint256[] calldata tokenIds) external whenNotPaused {
        require(!burnClosed, "Burn: is closed");
        require((founderDAOContract.balanceOf(msg.sender) > 0 && block.timestamp >= daoBurnWindowOpens) || block.timestamp >= burnWindowOpens, "burnComicForMoon: window not open or DAO token required");

        uint256 count = tokenIds.length;

        require(count <= 40, "Too many tokens");
        require(totalSupply(MOON_ID) + count <= planets[MOON_ID].maxSupply, "Burn comic: Max moon supply reached");

        for (uint256 i; i < count; i++) {
            comicContract.burn(tokenIds[i]);
        }

       _mint(msg.sender, MOON_ID, count, "");
    }

    /**
    * @notice burn punks comics to receive moon tokens
    * 
    * @param amount the amount of planet tokens to claim
    * @param planetId the id of the planet to claim for
    * @param index the index of the merkle proof
    * @param maxAmount the max amount óf planet tokens sender is eligible to claim
    * @param merkleProof the valid merkle proof of sender for given planet id
    */
    function claim(
        uint256 amount,
        uint256 planetId,
        uint256 index,
        uint256 maxAmount,
        bytes32[] calldata merkleProof
    ) external whenNotPaused {
        require(!isClaimClosed[planetId], "Claim: is closed");        
        require (block.timestamp >= claimWindowOpens && block.timestamp <= claimWindowCloses, "Claim: time window closed");        
        require(planets[planetId].claimed[msg.sender] + amount <= maxAmount, "Claim: Not allowed to claim given amount");

        bytes32 node = keccak256(abi.encodePacked(index, msg.sender, maxAmount));
        require(
            MerkleProof.verify(merkleProof, planets[planetId].merkleRoot, node),
            "MerkleDistributor: Invalid proof."
        );

        planets[planetId].claimed[msg.sender] = planets[planetId].claimed[msg.sender] + amount;

        _mint(msg.sender, planetId, amount, "");
        emit Claimed(planetId, msg.sender, amount);                
    }

    /**
     * @notice Triggers a transfer to `account` of the amount of Ether they are owed, according to their percentage of the
     * total shares and their previous withdrawals.
     * 
     * @param account the payee to release funds for
     */
    function release(address payable account) public override onlyOwner {
        super.release(account);
    } 

    /**
    * @notice return total supply for all existing planets
    */
    function totalSupplyAll() external view returns (uint[] memory) {
        uint[] memory result = new uint[](counter.current());

        for(uint256 i; i < counter.current(); i++) {
            result[i] = totalSupply(i);
        }

        return result;
    }

    /**
    * @notice indicates weither any token exist with a given id, or not
    */
    function exists(uint256 id) public view override returns (bool) {
        return planets[id].maxSupply > 0;
    }    

    /**
    * @notice returns the metadata uri for a given id
    * 
    * @param _id the planet id to return metadata for
    */
    function uri(uint256 _id) public view override returns (string memory) {
            require(exists(_id), "URI: nonexistent token");
            
            return string(abi.encodePacked(super.uri(_id), planets[_id].ipfsMetadataHash));
    }    
}

interface ERC721Contract is IERC721 {
    function burn(uint256 tokenId) external;
}

File 2 of 21 : MerkleProof.sol
// SPDX-License-Identifier: MIT

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

        // Check if the computed hash (root) is equal to the provided root
        return computedHash == root;
    }
}

File 3 of 21 : Counters.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @title Counters
 * @author Matt Condon (@shrugs)
 * @dev Provides counters that can only be incremented, decremented or reset. This can be used e.g. to track the number
 * of elements in a mapping, issuing ERC721 ids, or counting request ids.
 *
 * Include with `using Counters for Counters.Counter;`
 */
library Counters {
    struct Counter {
        // This variable should never be directly accessed by users of the library: interactions must be restricted to
        // the library's function. As of Solidity v0.5.2, this cannot be enforced, though there is a proposal to add
        // this feature: see https://github.com/ethereum/solidity/issues/4637
        uint256 _value; // default: 0
    }

    function current(Counter storage counter) internal view returns (uint256) {
        return counter._value;
    }

    function increment(Counter storage counter) internal {
        unchecked {
            counter._value += 1;
        }
    }

    function decrement(Counter storage counter) internal {
        uint256 value = counter._value;
        require(value > 0, "Counter: decrement overflow");
        unchecked {
            counter._value = value - 1;
        }
    }

    function reset(Counter storage counter) internal {
        counter._value = 0;
    }
}

File 4 of 21 : IERC721Enumerable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../IERC721.sol";

/**
 * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension
 * @dev See https://eips.ethereum.org/EIPS/eip-721
 */
interface IERC721Enumerable is IERC721 {
    /**
     * @dev Returns the total amount of tokens stored by the contract.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns a token ID owned by `owner` at a given `index` of its token list.
     * Use along with {balanceOf} to enumerate all of ``owner``'s tokens.
     */
    function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256 tokenId);

    /**
     * @dev Returns a token ID at a given `index` of all the tokens stored by the contract.
     * Use along with {totalSupply} to enumerate all tokens.
     */
    function tokenByIndex(uint256 index) external view returns (uint256);
}

File 5 of 21 : AbstractERC1155Factory.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.4;

import '@openzeppelin/contracts/access/Ownable.sol';
import '@openzeppelin/contracts/token/ERC1155/extensions/ERC1155Burnable.sol';
import '@openzeppelin/contracts/token/ERC1155/extensions/ERC1155Pausable.sol';
import '@openzeppelin/contracts/token/ERC1155/extensions/ERC1155Supply.sol';

abstract contract AbstractERC1155Factory is ERC1155Pausable, ERC1155Supply, ERC1155Burnable, Ownable {
    
    string public name_;
    string public symbol_;   
    
    function pause() external onlyOwner {
        _pause();
    }

    function unpause() external onlyOwner {
        _unpause();
    }    

    function setURI(string memory baseURI) external onlyOwner {
        _setURI(baseURI);
    }    

    function name() public view returns (string memory) {
        return name_;
    }

    function symbol() public view returns (string memory) {
        return symbol_;
    }          

    function _mint(
        address account,
        uint256 id,
        uint256 amount,
        bytes memory data
    ) internal virtual override(ERC1155, ERC1155Supply) {
        super._mint(account, id, amount, data);
    }

    function _mintBatch(
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) internal virtual override(ERC1155, ERC1155Supply) {
        super._mintBatch(to, ids, amounts, data);
    }

    function _burn(
        address account,
        uint256 id,
        uint256 amount
    ) internal virtual override(ERC1155, ERC1155Supply) {
        super._burn(account, id, amount);
    }

    function _burnBatch(
        address account,
        uint256[] memory ids,
        uint256[] memory amounts
    ) internal virtual override(ERC1155, ERC1155Supply) {
        super._burnBatch(account, ids, amounts);
    }  

    function _beforeTokenTransfer(
        address operator,
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) internal virtual override(ERC1155Pausable, ERC1155) {
        super._beforeTokenTransfer(operator, from, to, ids, amounts, data);
    }  
}

File 6 of 21 : PaymentSplitter.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "@openzeppelin/contracts/utils/Address.sol";
import "@openzeppelin/contracts/utils/Context.sol";
import "@openzeppelin/contracts/utils/math/SafeMath.sol";

/**
 * @title PaymentSplitter
 * @dev This contract allows to split Ether payments among a group of accounts. The sender does not need to be aware
 * that the Ether will be split in this way, since it is handled transparently by the contract.
 *
 * The split can be in equal parts or in any other arbitrary proportion. The way this is specified is by assigning each
 * account to a number of shares. Of all the Ether that this contract receives, each account will then be able to claim
 * an amount proportional to the percentage of total shares they were assigned.
 *
 * `PaymentSplitter` follows a _pull payment_ model. This means that payments are not automatically forwarded to the
 * accounts but kept in this contract, and the actual transfer is triggered as a separate step by calling the {release}
 * function.
 */
contract PaymentSplitter is Context {
    event PayeeAdded(address account, uint256 shares);
    event PaymentReleased(address to, uint256 amount);

    uint256 private _totalShares;
    uint256 private _totalReleased;

    mapping(address => uint256) private _shares;
    mapping(address => uint256) private _released;
    address[] private _payees;

    /**
     * @dev Creates an instance of `PaymentSplitter` where each account in `payees` is assigned the number of shares at
     * the matching position in the `shares` array.
     *
     * All addresses in `payees` must be non-zero. Both arrays must have the same non-zero length, and there must be no
     * duplicates in `payees`.
     */
    constructor(address[] memory payees, uint256[] memory shares_) payable {
        require(payees.length == shares_.length, "PaymentSplitter: payees and shares length mismatch");
        require(payees.length > 0, "PaymentSplitter: no payees");

        for (uint256 i = 0; i < payees.length; i++) {
            _addPayee(payees[i], shares_[i]);
        }
    }

    /**
     * @dev Getter for the amount of shares held by an account.
     */
    function shares(address account) public view returns (uint256) {
        return _shares[account];
    }

    /**
     * @dev Triggers a transfer to `account` of the amount of Ether they are owed, according to their percentage of the
     * total shares and their previous withdrawals.
     */
    function release(address payable account) public virtual {
        require(_shares[account] > 0, "PaymentSplitter: account has no shares");

        uint256 totalReceived = address(this).balance + _totalReleased;
        uint256 payment = (totalReceived * _shares[account]) / _totalShares - _released[account];

        require(payment != 0, "PaymentSplitter: account is not due payment");

        _released[account] = _released[account] + payment;
        _totalReleased = _totalReleased + payment;

        Address.sendValue(account, payment);
        emit PaymentReleased(account, payment);
    }

    /**
     * @dev Add a new payee to the contract.
     * @param account The address of the payee to add.
     * @param shares_ The number of shares owned by the payee.
     */
    function _addPayee(address account, uint256 shares_) private {
        require(account != address(0), "PaymentSplitter: account is the zero address");
        require(shares_ > 0, "PaymentSplitter: shares are 0");
        require(_shares[account] == 0, "PaymentSplitter: account already has shares");

        _payees.push(account);
        _shares[account] = shares_;
        _totalShares = _totalShares + shares_;
        emit PayeeAdded(account, shares_);
    } 
}

File 7 of 21 : IERC721.sol
// SPDX-License-Identifier: MIT

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 8 of 21 : IERC165.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

File 9 of 21 : Ownable.sol
// SPDX-License-Identifier: MIT

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() {
        _setOwner(_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 {
        _setOwner(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");
        _setOwner(newOwner);
    }

    function _setOwner(address newOwner) private {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

File 10 of 21 : ERC1155Burnable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../ERC1155.sol";

/**
 * @dev Extension of {ERC1155} that allows token holders to destroy both their
 * own tokens and those that they have been approved to use.
 *
 * _Available since v3.1._
 */
abstract contract ERC1155Burnable is ERC1155 {
    function burn(
        address account,
        uint256 id,
        uint256 value
    ) public virtual {
        require(
            account == _msgSender() || isApprovedForAll(account, _msgSender()),
            "ERC1155: caller is not owner nor approved"
        );

        _burn(account, id, value);
    }

    function burnBatch(
        address account,
        uint256[] memory ids,
        uint256[] memory values
    ) public virtual {
        require(
            account == _msgSender() || isApprovedForAll(account, _msgSender()),
            "ERC1155: caller is not owner nor approved"
        );

        _burnBatch(account, ids, values);
    }
}

File 11 of 21 : ERC1155Pausable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../ERC1155.sol";
import "../../../security/Pausable.sol";

/**
 * @dev ERC1155 token with pausable token transfers, minting and burning.
 *
 * Useful for scenarios such as preventing trades until the end of an evaluation
 * period, or having an emergency switch for freezing all token transfers in the
 * event of a large bug.
 *
 * _Available since v3.1._
 */
abstract contract ERC1155Pausable is ERC1155, Pausable {
    /**
     * @dev See {ERC1155-_beforeTokenTransfer}.
     *
     * Requirements:
     *
     * - the contract must not be paused.
     */
    function _beforeTokenTransfer(
        address operator,
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) internal virtual override {
        super._beforeTokenTransfer(operator, from, to, ids, amounts, data);

        require(!paused(), "ERC1155Pausable: token transfer while paused");
    }
}

File 12 of 21 : ERC1155Supply.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../ERC1155.sol";

/**
 * @dev Extension of ERC1155 that adds tracking of total supply per id.
 *
 * Useful for scenarios where Fungible and Non-fungible tokens have to be
 * clearly identified. Note: While a totalSupply of 1 might mean the
 * corresponding is an NFT, there is no guarantees that no other token with the
 * same id are not going to be minted.
 */
abstract contract ERC1155Supply is ERC1155 {
    mapping(uint256 => uint256) private _totalSupply;

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

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

    /**
     * @dev See {ERC1155-_mint}.
     */
    function _mint(
        address account,
        uint256 id,
        uint256 amount,
        bytes memory data
    ) internal virtual override {
        super._mint(account, id, amount, data);
        _totalSupply[id] += amount;
    }

    /**
     * @dev See {ERC1155-_mintBatch}.
     */
    function _mintBatch(
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) internal virtual override {
        super._mintBatch(to, ids, amounts, data);
        for (uint256 i = 0; i < ids.length; ++i) {
            _totalSupply[ids[i]] += amounts[i];
        }
    }

    /**
     * @dev See {ERC1155-_burn}.
     */
    function _burn(
        address account,
        uint256 id,
        uint256 amount
    ) internal virtual override {
        super._burn(account, id, amount);
        _totalSupply[id] -= amount;
    }

    /**
     * @dev See {ERC1155-_burnBatch}.
     */
    function _burnBatch(
        address account,
        uint256[] memory ids,
        uint256[] memory amounts
    ) internal virtual override {
        super._burnBatch(account, ids, amounts);
        for (uint256 i = 0; i < ids.length; ++i) {
            _totalSupply[ids[i]] -= amounts[i];
        }
    }
}

File 13 of 21 : Context.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

File 14 of 21 : ERC1155.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "./IERC1155.sol";
import "./IERC1155Receiver.sol";
import "./extensions/IERC1155MetadataURI.sol";
import "../../utils/Address.sol";
import "../../utils/Context.sol";
import "../../utils/introspection/ERC165.sol";

/**
 * @dev Implementation of the basic standard multi-token.
 * See https://eips.ethereum.org/EIPS/eip-1155
 * Originally based on code by Enjin: https://github.com/enjin/erc-1155
 *
 * _Available since v3.1._
 */
contract ERC1155 is Context, ERC165, IERC1155, IERC1155MetadataURI {
    using Address for address;

    // Mapping from token ID to account balances
    mapping(uint256 => mapping(address => uint256)) private _balances;

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

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

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

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

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

    /**
     * @dev See {IERC1155-balanceOf}.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     */
    function balanceOf(address account, uint256 id) public view virtual override returns (uint256) {
        require(account != address(0), "ERC1155: balance query for the zero address");
        return _balances[id][account];
    }

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

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

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

        return batchBalances;
    }

    /**
     * @dev See {IERC1155-setApprovalForAll}.
     */
    function setApprovalForAll(address operator, bool approved) public virtual override {
        require(_msgSender() != operator, "ERC1155: setting approval status for self");

        _operatorApprovals[_msgSender()][operator] = approved;
        emit ApprovalForAll(_msgSender(), operator, approved);
    }

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

    /**
     * @dev See {IERC1155-safeTransferFrom}.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 id,
        uint256 amount,
        bytes memory data
    ) public virtual override {
        require(
            from == _msgSender() || isApprovedForAll(from, _msgSender()),
            "ERC1155: caller is not owner nor approved"
        );
        _safeTransferFrom(from, to, id, amount, data);
    }

    /**
     * @dev See {IERC1155-safeBatchTransferFrom}.
     */
    function safeBatchTransferFrom(
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) public virtual override {
        require(
            from == _msgSender() || isApprovedForAll(from, _msgSender()),
            "ERC1155: transfer caller is not owner nor approved"
        );
        _safeBatchTransferFrom(from, to, ids, amounts, data);
    }

    /**
     * @dev Transfers `amount` tokens of token type `id` from `from` to `to`.
     *
     * Emits a {TransferSingle} event.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - `from` must have a balance of tokens of type `id` of at least `amount`.
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the
     * acceptance magic value.
     */
    function _safeTransferFrom(
        address from,
        address to,
        uint256 id,
        uint256 amount,
        bytes memory data
    ) internal virtual {
        require(to != address(0), "ERC1155: transfer to the zero address");

        address operator = _msgSender();

        _beforeTokenTransfer(operator, from, to, _asSingletonArray(id), _asSingletonArray(amount), data);

        uint256 fromBalance = _balances[id][from];
        require(fromBalance >= amount, "ERC1155: insufficient balance for transfer");
        unchecked {
            _balances[id][from] = fromBalance - amount;
        }
        _balances[id][to] += amount;

        emit TransferSingle(operator, from, to, id, amount);

        _doSafeTransferAcceptanceCheck(operator, from, to, id, amount, data);
    }

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_safeTransferFrom}.
     *
     * Emits a {TransferBatch} event.
     *
     * Requirements:
     *
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the
     * acceptance magic value.
     */
    function _safeBatchTransferFrom(
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) internal virtual {
        require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch");
        require(to != address(0), "ERC1155: transfer to the zero address");

        address operator = _msgSender();

        _beforeTokenTransfer(operator, from, to, ids, amounts, data);

        for (uint256 i = 0; i < ids.length; ++i) {
            uint256 id = ids[i];
            uint256 amount = amounts[i];

            uint256 fromBalance = _balances[id][from];
            require(fromBalance >= amount, "ERC1155: insufficient balance for transfer");
            unchecked {
                _balances[id][from] = fromBalance - amount;
            }
            _balances[id][to] += amount;
        }

        emit TransferBatch(operator, from, to, ids, amounts);

        _doSafeBatchTransferAcceptanceCheck(operator, from, to, ids, amounts, data);
    }

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

    /**
     * @dev Creates `amount` tokens of token type `id`, and assigns them to `account`.
     *
     * Emits a {TransferSingle} event.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     * - If `account` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the
     * acceptance magic value.
     */
    function _mint(
        address account,
        uint256 id,
        uint256 amount,
        bytes memory data
    ) internal virtual {
        require(account != address(0), "ERC1155: mint to the zero address");

        address operator = _msgSender();

        _beforeTokenTransfer(operator, address(0), account, _asSingletonArray(id), _asSingletonArray(amount), data);

        _balances[id][account] += amount;
        emit TransferSingle(operator, address(0), account, id, amount);

        _doSafeTransferAcceptanceCheck(operator, address(0), account, id, amount, data);
    }

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_mint}.
     *
     * Requirements:
     *
     * - `ids` and `amounts` must have the same length.
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the
     * acceptance magic value.
     */
    function _mintBatch(
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) internal virtual {
        require(to != address(0), "ERC1155: mint to the zero address");
        require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch");

        address operator = _msgSender();

        _beforeTokenTransfer(operator, address(0), to, ids, amounts, data);

        for (uint256 i = 0; i < ids.length; i++) {
            _balances[ids[i]][to] += amounts[i];
        }

        emit TransferBatch(operator, address(0), to, ids, amounts);

        _doSafeBatchTransferAcceptanceCheck(operator, address(0), to, ids, amounts, data);
    }

    /**
     * @dev Destroys `amount` tokens of token type `id` from `account`
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     * - `account` must have at least `amount` tokens of token type `id`.
     */
    function _burn(
        address account,
        uint256 id,
        uint256 amount
    ) internal virtual {
        require(account != address(0), "ERC1155: burn from the zero address");

        address operator = _msgSender();

        _beforeTokenTransfer(operator, account, address(0), _asSingletonArray(id), _asSingletonArray(amount), "");

        uint256 accountBalance = _balances[id][account];
        require(accountBalance >= amount, "ERC1155: burn amount exceeds balance");
        unchecked {
            _balances[id][account] = accountBalance - amount;
        }

        emit TransferSingle(operator, account, address(0), id, amount);
    }

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_burn}.
     *
     * Requirements:
     *
     * - `ids` and `amounts` must have the same length.
     */
    function _burnBatch(
        address account,
        uint256[] memory ids,
        uint256[] memory amounts
    ) internal virtual {
        require(account != address(0), "ERC1155: burn from the zero address");
        require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch");

        address operator = _msgSender();

        _beforeTokenTransfer(operator, account, address(0), ids, amounts, "");

        for (uint256 i = 0; i < ids.length; i++) {
            uint256 id = ids[i];
            uint256 amount = amounts[i];

            uint256 accountBalance = _balances[id][account];
            require(accountBalance >= amount, "ERC1155: burn amount exceeds balance");
            unchecked {
                _balances[id][account] = accountBalance - amount;
            }
        }

        emit TransferBatch(operator, account, address(0), ids, amounts);
    }

    /**
     * @dev Hook that is called before any token transfer. This includes minting
     * and burning, as well as batched variants.
     *
     * The same hook is called on both single and batched variants. For single
     * transfers, the length of the `id` and `amount` arrays will be 1.
     *
     * Calling conditions (for each `id` and `amount` pair):
     *
     * - When `from` and `to` are both non-zero, `amount` of ``from``'s tokens
     * of token type `id` will be  transferred to `to`.
     * - When `from` is zero, `amount` tokens of token type `id` will be minted
     * for `to`.
     * - when `to` is zero, `amount` of ``from``'s tokens of token type `id`
     * will be burned.
     * - `from` and `to` are never both zero.
     * - `ids` and `amounts` have the same, non-zero length.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _beforeTokenTransfer(
        address operator,
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) internal virtual {}

    function _doSafeTransferAcceptanceCheck(
        address operator,
        address from,
        address to,
        uint256 id,
        uint256 amount,
        bytes memory data
    ) private {
        if (to.isContract()) {
            try IERC1155Receiver(to).onERC1155Received(operator, from, id, amount, data) returns (bytes4 response) {
                if (response != IERC1155Receiver(to).onERC1155Received.selector) {
                    revert("ERC1155: ERC1155Receiver rejected tokens");
                }
            } catch Error(string memory reason) {
                revert(reason);
            } catch {
                revert("ERC1155: transfer to non ERC1155Receiver implementer");
            }
        }
    }

    function _doSafeBatchTransferAcceptanceCheck(
        address operator,
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) private {
        if (to.isContract()) {
            try IERC1155Receiver(to).onERC1155BatchReceived(operator, from, ids, amounts, data) returns (
                bytes4 response
            ) {
                if (response != IERC1155Receiver(to).onERC1155BatchReceived.selector) {
                    revert("ERC1155: ERC1155Receiver rejected tokens");
                }
            } catch Error(string memory reason) {
                revert(reason);
            } catch {
                revert("ERC1155: transfer to non ERC1155Receiver implementer");
            }
        }
    }

    function _asSingletonArray(uint256 element) private pure returns (uint256[] memory) {
        uint256[] memory array = new uint256[](1);
        array[0] = element;

        return array;
    }
}

File 15 of 21 : IERC1155.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

    /**
     * @dev Transfers `amount` tokens of token type `id` from `from` to `to`.
     *
     * Emits a {TransferSingle} event.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - If the caller is not `from`, it must be have been approved to spend ``from``'s tokens via {setApprovalForAll}.
     * - `from` must have a balance of tokens of type `id` of at least `amount`.
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the
     * acceptance magic value.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 id,
        uint256 amount,
        bytes calldata data
    ) external;

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {safeTransferFrom}.
     *
     * Emits a {TransferBatch} event.
     *
     * Requirements:
     *
     * - `ids` and `amounts` must have the same length.
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the
     * acceptance magic value.
     */
    function safeBatchTransferFrom(
        address from,
        address to,
        uint256[] calldata ids,
        uint256[] calldata amounts,
        bytes calldata data
    ) external;
}

File 16 of 21 : IERC1155Receiver.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

/**
 * @dev _Available since v3.1._
 */
interface IERC1155Receiver is IERC165 {
    /**
        @dev Handles the receipt of a single ERC1155 token type. This function is
        called at the end of a `safeTransferFrom` after the balance has been updated.
        To accept the transfer, this must return
        `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))`
        (i.e. 0xf23a6e61, or its own function selector).
        @param operator The address which initiated the transfer (i.e. msg.sender)
        @param from The address which previously owned the token
        @param id The ID of the token being transferred
        @param value The amount of tokens being transferred
        @param data Additional data with no specified format
        @return `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))` if transfer is allowed
    */
    function onERC1155Received(
        address operator,
        address from,
        uint256 id,
        uint256 value,
        bytes calldata data
    ) external returns (bytes4);

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

File 17 of 21 : IERC1155MetadataURI.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../IERC1155.sol";

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

File 18 of 21 : Address.sol
// SPDX-License-Identifier: MIT

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

    function _verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) private 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 19 of 21 : ERC165.sol
// SPDX-License-Identifier: MIT

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 20 of 21 : Pausable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

/**
 * @dev Contract module which allows children to implement an emergency stop
 * mechanism that can be triggered by an authorized account.
 *
 * This module is used through inheritance. It will make available the
 * modifiers `whenNotPaused` and `whenPaused`, which can be applied to
 * the functions of your contract. Note that they will not be pausable by
 * simply including this module, only once the modifiers are put in place.
 */
abstract contract Pausable is Context {
    /**
     * @dev Emitted when the pause is triggered by `account`.
     */
    event Paused(address account);

    /**
     * @dev Emitted when the pause is lifted by `account`.
     */
    event Unpaused(address account);

    bool private _paused;

    /**
     * @dev Initializes the contract in unpaused state.
     */
    constructor() {
        _paused = false;
    }

    /**
     * @dev Returns true if the contract is paused, and false otherwise.
     */
    function paused() public view virtual returns (bool) {
        return _paused;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is not paused.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    modifier whenNotPaused() {
        require(!paused(), "Pausable: paused");
        _;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is paused.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    modifier whenPaused() {
        require(paused(), "Pausable: not paused");
        _;
    }

    /**
     * @dev Triggers stopped state.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    function _pause() internal virtual whenNotPaused {
        _paused = true;
        emit Paused(_msgSender());
    }

    /**
     * @dev Returns to normal state.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    function _unpause() internal virtual whenPaused {
        _paused = false;
        emit Unpaused(_msgSender());
    }
}

File 21 of 21 : SafeMath.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

// CAUTION
// This version of SafeMath should only be used with Solidity 0.8 or later,
// because it relies on the compiler's built in overflow checks.

/**
 * @dev Wrappers over Solidity's arithmetic operations.
 *
 * NOTE: `SafeMath` is no longer needed starting with Solidity 0.8. The compiler
 * now has built in overflow checking.
 */
library SafeMath {
    /**
     * @dev Returns the addition of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            uint256 c = a + b;
            if (c < a) return (false, 0);
            return (true, c);
        }
    }

    /**
     * @dev Returns the substraction of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b > a) return (false, 0);
            return (true, a - b);
        }
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            // Gas optimization: this is cheaper than requiring 'a' not being zero, but the
            // benefit is lost if 'b' is also tested.
            // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
            if (a == 0) return (true, 0);
            uint256 c = a * b;
            if (c / a != b) return (false, 0);
            return (true, c);
        }
    }

    /**
     * @dev Returns the division of two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a / b);
        }
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a % b);
        }
    }

    /**
     * @dev Returns the addition of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `+` operator.
     *
     * Requirements:
     *
     * - Addition cannot overflow.
     */
    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        return a + b;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b) internal pure returns (uint256) {
        return a - b;
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `*` operator.
     *
     * Requirements:
     *
     * - Multiplication cannot overflow.
     */
    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        return a * b;
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator.
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        return a / b;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting when dividing by zero.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b) internal pure returns (uint256) {
        return a % b;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {trySub}.
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b <= a, errorMessage);
            return a - b;
        }
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting with custom message on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b > 0, errorMessage);
            return a / b;
        }
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting with custom message when dividing by zero.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {tryMod}.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b > 0, errorMessage);
            return a % b;
        }
    }
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"_name","type":"string"},{"internalType":"string","name":"_symbol","type":"string"},{"internalType":"address","name":"_comicContract","type":"address"},{"internalType":"address","name":"_founderDAOContract","type":"address"},{"internalType":"address[]","name":"payees","type":"address[]"},{"internalType":"uint256[]","name":"shares_","type":"uint256[]"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"index","type":"uint256"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Claimed","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"uint256","name":"shares","type":"uint256"}],"name":"PayeeAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"PaymentReleased","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"index","type":"uint256"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Purchased","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"indexed":false,"internalType":"uint256[]","name":"values","type":"uint256[]"}],"name":"TransferBatch","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"id","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"TransferSingle","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"value","type":"string"},{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"}],"name":"URI","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[{"internalType":"bytes32","name":"_merkleRoot","type":"bytes32"},{"internalType":"uint256","name":"_mintPrice","type":"uint256"},{"internalType":"uint256","name":"_maxSupply","type":"uint256"},{"internalType":"uint256","name":"_maxPurchaseSupply","type":"uint256"},{"internalType":"uint256","name":"_maxPurchaseTx","type":"uint256"},{"internalType":"string","name":"_ipfsMetadataHash","type":"string"}],"name":"addPlanet","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"accounts","type":"address[]"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"}],"name":"balanceOfBatch","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"values","type":"uint256[]"}],"name":"burnBatch","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"burnComicForMoon","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"burnWindowOpens","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"planetId","type":"uint256"},{"internalType":"uint256","name":"index","type":"uint256"},{"internalType":"uint256","name":"maxAmount","type":"uint256"},{"internalType":"bytes32[]","name":"merkleProof","type":"bytes32[]"}],"name":"claim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"claimWindowCloses","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"claimWindowOpens","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"closeBurn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"planetIds","type":"uint256[]"}],"name":"closeClaim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"planetIds","type":"uint256[]"}],"name":"closeSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"comicContract","outputs":[{"internalType":"contract ERC721Contract","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"daoBurnWindowOpens","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_merkleRoot","type":"bytes32"},{"internalType":"uint256","name":"_mintPrice","type":"uint256"},{"internalType":"uint256","name":"_maxPurchaseSupply","type":"uint256"},{"internalType":"uint256","name":"_maxPurchaseTx","type":"uint256"},{"internalType":"string","name":"_ipfsMetadataHash","type":"string"},{"internalType":"uint256","name":"_planetIndex","type":"uint256"}],"name":"editPlanet","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_purchaseWindowOpens","type":"uint256"},{"internalType":"uint256","name":"_daoBurnWindowOpens","type":"uint256"},{"internalType":"uint256","name":"_burnWindowOpens","type":"uint256"},{"internalType":"uint256","name":"_claimWindowOpens","type":"uint256"},{"internalType":"uint256","name":"_claimWindowCloses","type":"uint256"}],"name":"editWindows","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"exists","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"founderDAOContract","outputs":[{"internalType":"contract ERC721Contract","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"planetID","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"address","name":"to","type":"address"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name_","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"planets","outputs":[{"internalType":"uint256","name":"mintPrice","type":"uint256"},{"internalType":"uint256","name":"maxSupply","type":"uint256"},{"internalType":"uint256","name":"maxPurchaseSupply","type":"uint256"},{"internalType":"uint256","name":"maxPurchaseTx","type":"uint256"},{"internalType":"uint256","name":"purchased","type":"uint256"},{"internalType":"string","name":"ipfsMetadataHash","type":"string"},{"internalType":"bytes32","name":"merkleRoot","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"planetID","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"purchase","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"purchaseWindowOpens","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address payable","name":"account","type":"address"}],"name":"release","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeBatchTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"baseURI","type":"string"}],"name":"setURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"shares","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol_","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupplyAll","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"}],"name":"uri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"}]

608060405264011d6c596c600e5564011d6c596c600f5564011d6c596c60105564011d6c596c60115564011d6c596c6012553480156200003e57600080fd5b50604051620047ee380380620047ee8339810160408190526200006191620006ee565b818160405180604001604052806007815260200166697066733a2f2f60c81b81525062000094816200025d60201b60201c565b506003805460ff19169055620000aa3362000276565b80518251146200011c5760405162461bcd60e51b815260206004820152603260248201527f5061796d656e7453706c69747465723a2070617965657320616e6420736861726044820152710cae640d8cadccee8d040dad2e6dac2e8c6d60731b60648201526084015b60405180910390fd5b60008251116200016f5760405162461bcd60e51b815260206004820152601a60248201527f5061796d656e7453706c69747465723a206e6f20706179656573000000000000604482015260640162000113565b60005b8251811015620001f357620001de838281518110620001a157634e487b7160e01b600052603260045260246000fd5b6020026020010151838381518110620001ca57634e487b7160e01b600052603260045260246000fd5b6020026020010151620002c860201b60201c565b80620001ea8162000877565b91505062000172565b505086516200020b91506006906020890190620004b6565b50845162000221906007906020880190620004b6565b5050601380546001600160a01b039485166001600160a01b031991821617909155601480549390941692169190911790915550620008c1915050565b805162000272906002906020840190620004b6565b5050565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b038216620003355760405162461bcd60e51b815260206004820152602c60248201527f5061796d656e7453706c69747465723a206163636f756e74206973207468652060448201526b7a65726f206164647265737360a01b606482015260840162000113565b60008111620003875760405162461bcd60e51b815260206004820152601d60248201527f5061796d656e7453706c69747465723a20736861726573206172652030000000604482015260640162000113565b6001600160a01b0382166000908152600a602052604090205415620004035760405162461bcd60e51b815260206004820152602b60248201527f5061796d656e7453706c69747465723a206163636f756e7420616c726561647960448201526a206861732073686172657360a81b606482015260840162000113565b600c8054600181019091557fdf6966c971051c3d54ec59162606531493a51404a002842f56009d7e5cf4a8c70180546001600160a01b0319166001600160a01b0384169081179091556000908152600a602052604090208190556008546200046d9082906200081f565b600855604080516001600160a01b0384168152602081018390527f40c340f65e17194d14ddddb073d3c9f888e3cb52b5aae0c6c7706b4fbc905fac910160405180910390a15050565b828054620004c4906200083a565b90600052602060002090601f016020900481019282620004e8576000855562000533565b82601f106200050357805160ff191683800117855562000533565b8280016001018555821562000533579182015b828111156200053357825182559160200191906001019062000516565b506200054192915062000545565b5090565b5b8082111562000541576000815560010162000546565b80516001600160a01b03811681146200057457600080fd5b919050565b600082601f8301126200058a578081fd5b81516020620005a36200059d83620007f9565b620007c6565b80838252828201915082860187848660051b8901011115620005c3578586fd5b855b85811015620005ec57620005d9826200055c565b84529284019290840190600101620005c5565b5090979650505050505050565b600082601f8301126200060a578081fd5b815160206200061d6200059d83620007f9565b80838252828201915082860187848660051b89010111156200063d578586fd5b855b85811015620005ec578151845292840192908401906001016200063f565b600082601f8301126200066e578081fd5b81516001600160401b038111156200068a576200068a620008ab565b6020620006a0601f8301601f19168201620007c6565b8281528582848701011115620006b4578384fd5b835b83811015620006d3578581018301518282018401528201620006b6565b83811115620006e457848385840101525b5095945050505050565b60008060008060008060c0878903121562000707578182fd5b86516001600160401b03808211156200071e578384fd5b6200072c8a838b016200065d565b9750602089015191508082111562000742578384fd5b620007508a838b016200065d565b96506200076060408a016200055c565b95506200077060608a016200055c565b9450608089015191508082111562000786578384fd5b620007948a838b0162000579565b935060a0890151915080821115620007aa578283fd5b50620007b989828a01620005f9565b9150509295509295509295565b604051601f8201601f191681016001600160401b0381118282101715620007f157620007f1620008ab565b604052919050565b60006001600160401b03821115620008155762000815620008ab565b5060051b60200190565b6000821982111562000835576200083562000895565b500190565b600181811c908216806200084f57607f821691505b602082108114156200087157634e487b7160e01b600052602260045260246000fd5b50919050565b60006000198214156200088e576200088e62000895565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fd5b613f1d80620008d16000396000f3fe6080604052600436106102665760003560e01c8063834577ff11610144578063b2580fe6116100b6578063e7d3fe6b1161007a578063e7d3fe6b14610728578063e985e9c514610748578063f242432a14610791578063f2fde38b146107b1578063f5298aca146107d1578063fff01ab0146107f157600080fd5b8063b2580fe61461067b578063b42394f11461069b578063bd85b039146106b0578063ce7c2ac2146106dd578063e2b9e1861461071357600080fd5b8063993940171161010857806399394017146105c6578063a22cb465146105e6578063ab22ff0214610606578063ae65cbb314610626578063af17dea614610646578063afe1a3331461065b57600080fd5b8063834577ff146105265780638456cb591461055e5780638a1cfed6146105735780638da5cb5b1461059357806395d89b41146105b157600080fd5b80634027b0e4116101dd5780635c975abb116101a15780635c975abb1461049a5780636b20c454146104b257806370876c98146104d25780637119035b146104e5578063715018a6146104fb5780637b58de8b1461051057600080fd5b80634027b0e4146103e557806340aafada146103fb5780634e1273f41461041b5780634f558e79146104485780635463c3e81461047a57600080fd5b80630f34f1c61161022f5780630f34f1c614610332578063191655871461034757806326c1e750146103675780632eb2c2d61461039a5780633b44c8d0146103ba5780633f4ba83a146103d057600080fd5b8062fdd58e1461026b57806301ffc9a71461029e57806302fe5305146102ce57806306fdde03146102f05780630e89341c14610312575b600080fd5b34801561027757600080fd5b5061028b61028636600461343f565b610807565b6040519081526020015b60405180910390f35b3480156102aa57600080fd5b506102be6102b936600461367b565b61089e565b6040519015158152602001610295565b3480156102da57600080fd5b506102ee6102e93660046136b3565b6108f0565b005b3480156102fc57600080fd5b50610305610926565b6040516102959190613a10565b34801561031e57600080fd5b5061030561032d3660046136ed565b6109b8565b34801561033e57600080fd5b506102ee610a54565b34801561035357600080fd5b506102ee610362366004613232565b610a93565b34801561037357600080fd5b506103876103823660046136ed565b610ac6565b6040516102959796959493929190613c71565b3480156103a657600080fd5b506102ee6103b536600461328d565b610b90565b3480156103c657600080fd5b5061028b60105481565b3480156103dc57600080fd5b506102ee610c27565b3480156103f157600080fd5b5061028b600f5481565b34801561040757600080fd5b506102ee61041636600461356a565b610c5b565b34801561042757600080fd5b5061043b61043636600461349e565b610d94565b60405161029591906139cf565b34801561045457600080fd5b506102be6104633660046136ed565b600090815260176020526040902060010154151590565b34801561048657600080fd5b506102ee610495366004613776565b610ef5565b3480156104a657600080fd5b5060035460ff166102be565b3480156104be57600080fd5b506102ee6104cd36600461339c565b6111e4565b6102ee6104e036600461371d565b61122c565b3480156104f157600080fd5b5061028b60115481565b34801561050757600080fd5b506102ee611558565b34801561051c57600080fd5b5061028b60125481565b34801561053257600080fd5b50601354610546906001600160a01b031681565b6040516001600160a01b039091168152602001610295565b34801561056a57600080fd5b506102ee61158c565b34801561057f57600080fd5b506102ee61058e36600461356a565b6115be565b34801561059f57600080fd5b506005546001600160a01b0316610546565b3480156105bd57600080fd5b506103056116d2565b3480156105d257600080fd5b506102ee6105e13660046135a9565b6116e1565b3480156105f257600080fd5b506102ee61060136600461340e565b6117b9565b34801561061257600080fd5b506102ee6106213660046137dd565b611889565b34801561063257600080fd5b50601454610546906001600160a01b031681565b34801561065257600080fd5b506103056118ca565b34801561066757600080fd5b506102ee610676366004613612565b611958565b34801561068757600080fd5b506102ee61069636600461356a565b6119e7565b3480156106a757600080fd5b5061043b611d1a565b3480156106bc57600080fd5b5061028b6106cb3660046136ed565b60009081526004602052604090205490565b3480156106e957600080fd5b5061028b6106f8366004613232565b6001600160a01b03166000908152600a602052604090205490565b34801561071f57600080fd5b50610305611dd7565b34801561073457600080fd5b506102ee61074336600461373e565b611de4565b34801561075457600080fd5b506102be610763366004613255565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205460ff1690565b34801561079d57600080fd5b506102ee6107ac366004613336565b611efe565b3480156107bd57600080fd5b506102ee6107cc366004613232565b611f43565b3480156107dd57600080fd5b506102ee6107ec36600461346a565b611fdb565b3480156107fd57600080fd5b5061028b600e5481565b60006001600160a01b0383166108785760405162461bcd60e51b815260206004820152602b60248201527f455243313135353a2062616c616e636520717565727920666f7220746865207a60448201526a65726f206164647265737360a81b60648201526084015b60405180910390fd5b506000908152602081815260408083206001600160a01b03949094168352929052205490565b60006001600160e01b03198216636cdb3d1360e11b14806108cf57506001600160e01b031982166303a24d0760e21b145b806108ea57506301ffc9a760e01b6001600160e01b03198316145b92915050565b6005546001600160a01b0316331461091a5760405162461bcd60e51b815260040161086f90613bf4565b6109238161201e565b50565b60606006805461093590613d73565b80601f016020809104026020016040519081016040528092919081815260200182805461096190613d73565b80156109ae5780601f10610983576101008083540402835291602001916109ae565b820191906000526020600020905b81548152906001019060200180831161099157829003601f168201915b5050505050905090565b600081815260176020526040902060010154606090610a125760405162461bcd60e51b81526020600482015260166024820152752aa9249d103737b732bc34b9ba32b73a103a37b5b2b760511b604482015260640161086f565b610a1b82612035565b6000838152601760209081526040918290209151610a3e9392600501910161387d565b6040516020818303038152906040529050919050565b6005546001600160a01b03163314610a7e5760405162461bcd60e51b815260040161086f90613bf4565b6014805460ff60a01b1916600160a01b179055565b6005546001600160a01b03163314610abd5760405162461bcd60e51b815260040161086f90613bf4565b610923816120c9565b6017602052806000526040600020600091509050806000015490806001015490806002015490806003015490806004015490806005018054610b0790613d73565b80601f0160208091040260200160405190810160405280929190818152602001828054610b3390613d73565b8015610b805780601f10610b5557610100808354040283529160200191610b80565b820191906000526020600020905b815481529060010190602001808311610b6357829003601f168201915b5050505050908060060154905087565b6001600160a01b038516331480610bac5750610bac8533610763565b610c135760405162461bcd60e51b815260206004820152603260248201527f455243313135353a207472616e736665722063616c6c6572206973206e6f74206044820152711bdddb995c881b9bdc88185c1c1c9bdd995960721b606482015260840161086f565b610c20858585858561229a565b5050505050565b6005546001600160a01b03163314610c515760405162461bcd60e51b815260040161086f90613bf4565b610c59612460565b565b6005546001600160a01b03163314610c855760405162461bcd60e51b815260040161086f90613bf4565b8060005b81811015610d8e57610cd2848483818110610cb457634e487b7160e01b600052603260045260246000fd5b90506020020135600090815260176020526040902060010154151590565b610d295760405162461bcd60e51b815260206004820152602260248201527f436c6f736520636c61696d3a20706c616e657420646f6573206e6f74206578696044820152611cdd60f21b606482015260840161086f565b600160166000868685818110610d4f57634e487b7160e01b600052603260045260246000fd5b90506020020135815260200190815260200160002060006101000a81548160ff0219169083151502179055508080610d8690613dd4565b915050610c89565b50505050565b60608151835114610df95760405162461bcd60e51b815260206004820152602960248201527f455243313135353a206163636f756e747320616e6420696473206c656e677468604482015268040dad2e6dac2e8c6d60bb1b606482015260840161086f565b600083516001600160401b03811115610e2257634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015610e4b578160200160208202803683370190505b50905060005b8451811015610eed57610eb2858281518110610e7d57634e487b7160e01b600052603260045260246000fd5b6020026020010151858381518110610ea557634e487b7160e01b600052603260045260246000fd5b6020026020010151610807565b828281518110610ed257634e487b7160e01b600052603260045260246000fd5b6020908102919091010152610ee681613dd4565b9050610e51565b509392505050565b60035460ff1615610f185760405162461bcd60e51b815260040161086f90613af8565b60008581526016602052604090205460ff1615610f6a5760405162461bcd60e51b815260206004820152601060248201526f10db185a5b4e881a5cc818db1bdcd95960821b604482015260640161086f565b600e544210158015610f7e5750600f544211155b610fca5760405162461bcd60e51b815260206004820152601960248201527f436c61696d3a2074696d652077696e646f7720636c6f73656400000000000000604482015260640161086f565b60008581526017602090815260408083203384526007019091529020548390610ff4908890613cd9565b11156110535760405162461bcd60e51b815260206004820152602860248201527f436c61696d3a204e6f7420616c6c6f77656420746f20636c61696d20676976656044820152671b88185b5bdd5b9d60c21b606482015260840161086f565b60408051602081018690526bffffffffffffffffffffffff193360601b1691810191909152605481018490526000906074016040516020818303038152906040528051906020012090506110eb83838080602002602001604051908101604052809392919081815260200183836020028082843760009201829052508b81526017602052604090206006015492508591506124f39050565b6111415760405162461bcd60e51b815260206004820152602160248201527f4d65726b6c654469737472696275746f723a20496e76616c69642070726f6f666044820152601760f91b606482015260840161086f565b6000868152601760209081526040808320338452600701909152902054611169908890613cd9565b6000878152601760209081526040808320338085526007909101835281842094909455805191820190529081526111a4919088908a906125b0565b604051878152339087907f4ec90e965519d92681267467f775ada5bd214aa92c0dc93d90a5e880ce9ed0269060200160405180910390a350505050505050565b6001600160a01b03831633148061120057506112008333610763565b61121c5760405162461bcd60e51b815260040161086f90613aaf565b6112278383836125bc565b505050565b60035460ff161561124f5760405162461bcd60e51b815260040161086f90613af8565b60008281526015602052604090205460ff16156112ae5760405162461bcd60e51b815260206004820152601860248201527f50757263686173653a2073616c6520697320636c6f7365640000000000000000604482015260640161086f565b6010544210156113005760405162461bcd60e51b815260206004820152601760248201527f50757263686173653a2077696e646f7720636c6f736564000000000000000000604482015260640161086f565b6000828152601760205260409020600301548111156113705760405162461bcd60e51b815260206004820152602660248201527f50757263686173653a204d61782070757263686173652070657220747820657860448201526518d95959195960d21b606482015260840161086f565b60008281526017602052604090206002810154600490910154611394908390613cd9565b11156113f05760405162461bcd60e51b815260206004820152602560248201527f50757263686173653a204d617820707572636861736520737570706c792072656044820152641858da195960da1b606482015260840161086f565b600082815260176020908152604080832060010154600490925290912054611419908390613cd9565b11156114725760405162461bcd60e51b815260206004820152602260248201527f50757263686173653a204d617820746f74616c20737570706c79207265616368604482015261195960f21b606482015260840161086f565b60008281526017602052604090205461148b9082613d11565b34146114d95760405162461bcd60e51b815260206004820152601b60248201527f50757263686173653a20496e636f7272656374207061796d656e740000000000604482015260640161086f565b600082815260176020526040812060040180548392906114fa908490613cd9565b9250508190555061151c338383604051806020016040528060008152506125b0565b604051818152339083907ffd51b2c9f55c42d2b72ac683526519563be02fc0107f034ff430c05185ff1b66906020015b60405180910390a35050565b6005546001600160a01b031633146115825760405162461bcd60e51b815260040161086f90613bf4565b610c5960006125c7565b6005546001600160a01b031633146115b65760405162461bcd60e51b815260040161086f90613bf4565b610c59612619565b6005546001600160a01b031633146115e85760405162461bcd60e51b815260040161086f90613bf4565b8060005b81811015610d8e57611617848483818110610cb457634e487b7160e01b600052603260045260246000fd5b61166d5760405162461bcd60e51b815260206004820152602160248201527f436c6f73652073616c653a20706c616e657420646f6573206e6f7420657869736044820152601d60fa1b606482015260840161086f565b60016015600086868581811061169357634e487b7160e01b600052603260045260246000fd5b90506020020135815260200190815260200160002060006101000a81548160ff02191690831515021790555080806116ca90613dd4565b9150506115ec565b60606007805461093590613d73565b6005546001600160a01b0316331461170b5760405162461bcd60e51b815260040161086f90613bf4565b6000818152601760205260409020600101546117735760405162461bcd60e51b815260206004820152602160248201527f45646974506c616e65743a20706c616e657420646f6573206e6f7420657869736044820152601d60fa1b606482015260840161086f565b600081815260176020908152604090912060068101889055868155600281018690556003810185905583516117b09260059092019185019061306e565b50505050505050565b336001600160a01b03831614156118245760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2073657474696e6720617070726f76616c20737461747573604482015268103337b91039b2b63360b91b606482015260840161086f565b3360008181526001602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910161154c565b6005546001600160a01b031633146118b35760405162461bcd60e51b815260040161086f90613bf4565b600e91909155600f55601092909255601155601255565b600780546118d790613d73565b80601f016020809104026020016040519081016040528092919081815260200182805461190390613d73565b80156119505780601f1061192557610100808354040283529160200191611950565b820191906000526020600020905b81548152906001019060200180831161193357829003601f168201915b505050505081565b6005546001600160a01b031633146119825760405162461bcd60e51b815260040161086f90613bf4565b600060176000611991600d5490565b81526020808201929092526040016000206006810189905587815560018101879055600281018690556003810185905583519092506119d89160058401919085019061306e565b506117b0600d80546001019055565b60035460ff1615611a0a5760405162461bcd60e51b815260040161086f90613af8565b601454600160a01b900460ff1615611a565760405162461bcd60e51b815260206004820152600f60248201526e109d5c9b8e881a5cc818db1bdcd959608a1b604482015260640161086f565b6014546040516370a0823160e01b81523360048201526000916001600160a01b0316906370a082319060240160206040518083038186803b158015611a9a57600080fd5b505afa158015611aae573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ad29190613705565b118015611ae157506011544210155b80611aee57506012544210155b611b605760405162461bcd60e51b815260206004820152603760248201527f6275726e436f6d6963466f724d6f6f6e3a2077696e646f77206e6f74206f706560448201527f6e206f722044414f20746f6b656e207265717569726564000000000000000000606482015260840161086f565b806028811115611ba45760405162461bcd60e51b815260206004820152600f60248201526e546f6f206d616e7920746f6b656e7360881b604482015260640161086f565b60036000527fd8b2bced50346359af71f91110b86cdf684b6ab1c6ca64a7583c044d5c24de5d5460046020527f2e174c10e159ea99b867ce3205125c24a42d128804e4070ed6fcc8cc98166aa054611bfd908390613cd9565b1115611c575760405162461bcd60e51b815260206004820152602360248201527f4275726e20636f6d69633a204d6178206d6f6f6e20737570706c7920726561636044820152621a195960ea1b606482015260840161086f565b60005b81811015611cfd576013546001600160a01b03166342966c68858584818110611c9357634e487b7160e01b600052603260045260246000fd5b905060200201356040518263ffffffff1660e01b8152600401611cb891815260200190565b600060405180830381600087803b158015611cd257600080fd5b505af1158015611ce6573d6000803e3d6000fd5b505050508080611cf590613dd4565b915050611c5a565b5061122733600383604051806020016040528060008152506125b0565b60606000611d27600d5490565b6001600160401b03811115611d4c57634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015611d75578160200160208202803683370190505b50905060005b600d54811015611dd157600081815260046020526040902054828281518110611db457634e487b7160e01b600052603260045260246000fd5b602090810291909101015280611dc981613dd4565b915050611d7b565b50919050565b600680546118d790613d73565b6005546001600160a01b03163314611e0e5760405162461bcd60e51b815260040161086f90613bf4565b600083815260176020526040902060010154611e6c5760405162461bcd60e51b815260206004820152601b60248201527f4d696e743a20706c616e657420646f6573206e6f742065786973740000000000604482015260640161086f565b600083815260176020908152604080832060010154600490925290912054611e95908490613cd9565b1115611ee35760405162461bcd60e51b815260206004820152601860248201527f4d696e743a204d617820737570706c7920726561636865640000000000000000604482015260640161086f565b611227818484604051806020016040528060008152506125b0565b6001600160a01b038516331480611f1a5750611f1a8533610763565b611f365760405162461bcd60e51b815260040161086f90613aaf565b610c208585858585612671565b6005546001600160a01b03163314611f6d5760405162461bcd60e51b815260040161086f90613bf4565b6001600160a01b038116611fd25760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161086f565b610923816125c7565b6001600160a01b038316331480611ff75750611ff78333610763565b6120135760405162461bcd60e51b815260040161086f90613aaf565b611227838383612794565b805161203190600290602084019061306e565b5050565b60606002805461204490613d73565b80601f016020809104026020016040519081016040528092919081815260200182805461207090613d73565b80156120bd5780601f10612092576101008083540402835291602001916120bd565b820191906000526020600020905b8154815290600101906020018083116120a057829003601f168201915b50505050509050919050565b6001600160a01b0381166000908152600a602052604090205461213d5760405162461bcd60e51b815260206004820152602660248201527f5061796d656e7453706c69747465723a206163636f756e7420686173206e6f2060448201526573686172657360d01b606482015260840161086f565b60006009544761214d9190613cd9565b6001600160a01b0383166000908152600b6020908152604080832054600854600a9093529083205493945091926121849085613d11565b61218e9190613cf1565b6121989190613d30565b9050806121fb5760405162461bcd60e51b815260206004820152602b60248201527f5061796d656e7453706c69747465723a206163636f756e74206973206e6f742060448201526a191d59481c185e5b595b9d60aa1b606482015260840161086f565b6001600160a01b0383166000908152600b602052604090205461221f908290613cd9565b6001600160a01b0384166000908152600b6020526040902055600954612246908290613cd9565b600955612253838261279f565b604080516001600160a01b0385168152602081018390527fdf20fd1e76bc69d672e4814fafb2c449bba3a5369d8359adf9e05e6fde87b056910160405180910390a1505050565b81518351146122bb5760405162461bcd60e51b815260040161086f90613c29565b6001600160a01b0384166122e15760405162461bcd60e51b815260040161086f90613b22565b336122f08187878787876128b8565b60005b84518110156123f257600085828151811061231e57634e487b7160e01b600052603260045260246000fd5b60200260200101519050600085838151811061234a57634e487b7160e01b600052603260045260246000fd5b602090810291909101810151600084815280835260408082206001600160a01b038e16835290935291909120549091508181101561239a5760405162461bcd60e51b815260040161086f90613baa565b6000838152602081815260408083206001600160a01b038e8116855292528083208585039055908b168252812080548492906123d7908490613cd9565b92505081905550505050806123eb90613dd4565b90506122f3565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb87876040516124429291906139e2565b60405180910390a46124588187878787876128c6565b505050505050565b60035460ff166124a95760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b604482015260640161086f565b6003805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b600081815b85518110156125a557600086828151811061252357634e487b7160e01b600052603260045260246000fd5b60200260200101519050808311612565576040805160208101859052908101829052606001604051602081830303815290604052805190602001209250612592565b60408051602081018390529081018490526060016040516020818303038152906040528051906020012092505b508061259d81613dd4565b9150506124f8565b509092149392505050565b610d8e84848484612a31565b611227838383612a66565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60035460ff161561263c5760405162461bcd60e51b815260040161086f90613af8565b6003805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586124d63390565b6001600160a01b0384166126975760405162461bcd60e51b815260040161086f90613b22565b336126b68187876126a788612b04565b6126b088612b04565b876128b8565b6000848152602081815260408083206001600160a01b038a168452909152902054838110156126f75760405162461bcd60e51b815260040161086f90613baa565b6000858152602081815260408083206001600160a01b038b8116855292528083208785039055908816825281208054869290612734908490613cd9565b909155505060408051868152602081018690526001600160a01b03808916928a821692918616917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a46117b0828888888888612b5d565b611227838383612c27565b804710156127ef5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e6365000000604482015260640161086f565b6000826001600160a01b03168260405160006040518083038185875af1925050503d806000811461283c576040519150601f19603f3d011682016040523d82523d6000602084013e612841565b606091505b50509050806112275760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d61792068617665207265766572746564000000000000606482015260840161086f565b612458868686868686612c5a565b6001600160a01b0384163b156124585760405163bc197c8160e01b81526001600160a01b0385169063bc197c819061290a908990899088908890889060040161392c565b602060405180830381600087803b15801561292457600080fd5b505af1925050508015612954575060408051601f3d908101601f1916820190925261295191810190613697565b60015b612a0157612960613e1b565b806308c379a0141561299a5750612975613e33565b80612980575061299c565b8060405162461bcd60e51b815260040161086f9190613a10565b505b60405162461bcd60e51b815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e20455243313135356044820152732932b1b2b4bb32b91034b6b83632b6b2b73a32b960611b606482015260840161086f565b6001600160e01b0319811663bc197c8160e01b146117b05760405162461bcd60e51b815260040161086f90613a23565b612a3d84848484612cc2565b60008381526004602052604081208054849290612a5b908490613cd9565b909155505050505050565b612a71838383612dc3565b60005b8251811015610d8e57818181518110612a9d57634e487b7160e01b600052603260045260246000fd5b602002602001015160046000858481518110612ac957634e487b7160e01b600052603260045260246000fd5b602002602001015181526020019081526020016000206000828254612aee9190613d30565b90915550612afd905081613dd4565b9050612a74565b60408051600180825281830190925260609160009190602080830190803683370190505090508281600081518110612b4c57634e487b7160e01b600052603260045260246000fd5b602090810291909101015292915050565b6001600160a01b0384163b156124585760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e6190612ba1908990899088908890889060040161398a565b602060405180830381600087803b158015612bbb57600080fd5b505af1925050508015612beb575060408051601f3d908101601f19168201909252612be891810190613697565b60015b612bf757612960613e1b565b6001600160e01b0319811663f23a6e6160e01b146117b05760405162461bcd60e51b815260040161086f90613a23565b612c32838383612f6d565b60008281526004602052604081208054839290612c50908490613d30565b9091555050505050565b60035460ff16156124585760405162461bcd60e51b815260206004820152602c60248201527f455243313135355061757361626c653a20746f6b656e207472616e736665722060448201526b1dda1a5b19481c185d5cd95960a21b606482015260840161086f565b6001600160a01b038416612d225760405162461bcd60e51b815260206004820152602160248201527f455243313135353a206d696e7420746f20746865207a65726f206164647265736044820152607360f81b606482015260840161086f565b33612d33816000876126a788612b04565b6000848152602081815260408083206001600160a01b038916845290915281208054859290612d63908490613cd9565b909155505060408051858152602081018590526001600160a01b0380881692600092918516917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4610c2081600087878787612b5d565b6001600160a01b038316612de95760405162461bcd60e51b815260040161086f90613b67565b8051825114612e0a5760405162461bcd60e51b815260040161086f90613c29565b6000339050612e2d818560008686604051806020016040528060008152506128b8565b60005b8351811015612f0e576000848281518110612e5b57634e487b7160e01b600052603260045260246000fd5b602002602001015190506000848381518110612e8757634e487b7160e01b600052603260045260246000fd5b602090810291909101810151600084815280835260408082206001600160a01b038c168352909352919091205490915081811015612ed75760405162461bcd60e51b815260040161086f90613a6b565b6000928352602083815260408085206001600160a01b038b1686529091529092209103905580612f0681613dd4565b915050612e30565b5060006001600160a01b0316846001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8686604051612f5f9291906139e2565b60405180910390a450505050565b6001600160a01b038316612f935760405162461bcd60e51b815260040161086f90613b67565b33612fc281856000612fa487612b04565b612fad87612b04565b604051806020016040528060008152506128b8565b6000838152602081815260408083206001600160a01b0388168452909152902054828110156130035760405162461bcd60e51b815260040161086f90613a6b565b6000848152602081815260408083206001600160a01b03898116808652918452828520888703905582518981529384018890529092908616917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a45050505050565b82805461307a90613d73565b90600052602060002090601f01602090048101928261309c57600085556130e2565b82601f106130b557805160ff19168380011785556130e2565b828001600101855582156130e2579182015b828111156130e25782518255916020019190600101906130c7565b506130ee9291506130f2565b5090565b5b808211156130ee57600081556001016130f3565b60008083601f840112613118578182fd5b5081356001600160401b0381111561312e578182fd5b6020830191508360208260051b850101111561314957600080fd5b9250929050565b600082601f830112613160578081fd5b8135602061316d82613cb6565b60405161317a8282613da8565b8381528281019150858301600585901b87018401881015613199578586fd5b855b858110156131b75781358452928401929084019060010161319b565b5090979650505050505050565b600082601f8301126131d4578081fd5b81356001600160401b038111156131ed576131ed613e05565b604051613204601f8301601f191660200182613da8565b818152846020838601011115613218578283fd5b816020850160208301379081016020019190915292915050565b600060208284031215613243578081fd5b813561324e81613ebc565b9392505050565b60008060408385031215613267578081fd5b823561327281613ebc565b9150602083013561328281613ebc565b809150509250929050565b600080600080600060a086880312156132a4578081fd5b85356132af81613ebc565b945060208601356132bf81613ebc565b935060408601356001600160401b03808211156132da578283fd5b6132e689838a01613150565b945060608801359150808211156132fb578283fd5b61330789838a01613150565b9350608088013591508082111561331c578283fd5b50613329888289016131c4565b9150509295509295909350565b600080600080600060a0868803121561334d578081fd5b853561335881613ebc565b9450602086013561336881613ebc565b9350604086013592506060860135915060808601356001600160401b03811115613390578182fd5b613329888289016131c4565b6000806000606084860312156133b0578081fd5b83356133bb81613ebc565b925060208401356001600160401b03808211156133d6578283fd5b6133e287838801613150565b935060408601359150808211156133f7578283fd5b5061340486828701613150565b9150509250925092565b60008060408385031215613420578182fd5b823561342b81613ebc565b915060208301358015158114613282578182fd5b60008060408385031215613451578182fd5b823561345c81613ebc565b946020939093013593505050565b60008060006060848603121561347e578081fd5b833561348981613ebc565b95602085013595506040909401359392505050565b600080604083850312156134b0578182fd5b82356001600160401b03808211156134c6578384fd5b818501915085601f8301126134d9578384fd5b813560206134e682613cb6565b6040516134f38282613da8565b8381528281019150858301600585901b870184018b1015613512578889fd5b8896505b8487101561353d57803561352981613ebc565b835260019690960195918301918301613516565b5096505086013592505080821115613553578283fd5b5061356085828601613150565b9150509250929050565b6000806020838503121561357c578182fd5b82356001600160401b03811115613591578283fd5b61359d85828601613107565b90969095509350505050565b60008060008060008060c087890312156135c1578384fd5b8635955060208701359450604087013593506060870135925060808701356001600160401b038111156135f2578182fd5b6135fe89828a016131c4565b92505060a087013590509295509295509295565b60008060008060008060c0878903121561362a578384fd5b863595506020870135945060408701359350606087013592506080870135915060a08701356001600160401b03811115613662578182fd5b61366e89828a016131c4565b9150509295509295509295565b60006020828403121561368c578081fd5b813561324e81613ed1565b6000602082840312156136a8578081fd5b815161324e81613ed1565b6000602082840312156136c4578081fd5b81356001600160401b038111156136d9578182fd5b6136e5848285016131c4565b949350505050565b6000602082840312156136fe578081fd5b5035919050565b600060208284031215613716578081fd5b5051919050565b6000806040838503121561372f578182fd5b50508035926020909101359150565b600080600060608486031215613752578081fd5b8335925060208401359150604084013561376b81613ebc565b809150509250925092565b60008060008060008060a0878903121561378e578384fd5b8635955060208701359450604087013593506060870135925060808701356001600160401b038111156137bf578283fd5b6137cb89828a01613107565b979a9699509497509295939492505050565b600080600080600060a086880312156137f4578283fd5b505083359560208501359550604085013594606081013594506080013592509050565b6000815180845260208085019450808401835b838110156138465781518752958201959082019060010161382a565b509495945050505050565b60008151808452613869816020860160208601613d47565b601f01601f19169290920160200192915050565b6000835160206138908285838901613d47565b8454918401918390600181811c90808316806138ad57607f831692505b8583108114156138cb57634e487b7160e01b88526022600452602488fd5b8080156138df57600181146138f05761391c565b60ff1985168852838801955061391c565b60008b815260209020895b858110156139145781548a8201529084019088016138fb565b505083880195505b50939a9950505050505050505050565b6001600160a01b0386811682528516602082015260a06040820181905260009061395890830186613817565b828103606084015261396a8186613817565b9050828103608084015261397e8185613851565b98975050505050505050565b6001600160a01b03868116825285166020820152604081018490526060810183905260a0608082018190526000906139c490830184613851565b979650505050505050565b60208152600061324e6020830184613817565b6040815260006139f56040830185613817565b8281036020840152613a078185613817565b95945050505050565b60208152600061324e6020830184613851565b60208082526028908201527f455243313135353a204552433131353552656365697665722072656a656374656040820152676420746f6b656e7360c01b606082015260800190565b60208082526024908201527f455243313135353a206275726e20616d6f756e7420657863656564732062616c604082015263616e636560e01b606082015260800190565b60208082526029908201527f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260408201526808185c1c1c9bdd995960ba1b606082015260800190565b60208082526010908201526f14185d5cd8589b194e881c185d5cd95960821b604082015260600190565b60208082526025908201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604082015264647265737360d81b606082015260800190565b60208082526023908201527f455243313135353a206275726e2066726f6d20746865207a65726f206164647260408201526265737360e81b606082015260800190565b6020808252602a908201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60408201526939103a3930b739b332b960b11b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526028908201527f455243313135353a2069647320616e6420616d6f756e7473206c656e677468206040820152670dad2e6dac2e8c6d60c31b606082015260800190565b87815286602082015285604082015284606082015283608082015260e060a08201526000613ca260e0830185613851565b90508260c083015298975050505050505050565b60006001600160401b03821115613ccf57613ccf613e05565b5060051b60200190565b60008219821115613cec57613cec613def565b500190565b600082613d0c57634e487b7160e01b81526012600452602481fd5b500490565b6000816000190483118215151615613d2b57613d2b613def565b500290565b600082821015613d4257613d42613def565b500390565b60005b83811015613d62578181015183820152602001613d4a565b83811115610d8e5750506000910152565b600181811c90821680613d8757607f821691505b60208210811415611dd157634e487b7160e01b600052602260045260246000fd5b601f8201601f191681016001600160401b0381118282101715613dcd57613dcd613e05565b6040525050565b6000600019821415613de857613de8613def565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fd5b600060033d1115613e3057600481823e5160e01c5b90565b600060443d1015613e415790565b6040516003193d81016004833e81513d6001600160401b038160248401118184111715613e7057505050505090565b8285019150815181811115613e885750505050505090565b843d8701016020828501011115613ea25750505050505090565b613eb160208286010187613da8565b509095945050505050565b6001600160a01b038116811461092357600080fd5b6001600160e01b03198116811461092357600080fdfea2646970667358221220b8a4529960fb03ab8a319574f740e1c045a21cc824eca0321b30d63f3e67c91364736f6c6343000804003300000000000000000000000000000000000000000000000000000000000000c000000000000000000000000000000000000000000000000000000000000001000000000000000000000000005ab21ec0bfa0b29545230395e3adaca7d552c948000000000000000000000000d0a07a76746707f6d6d36d9d5897b14a8e9ed493000000000000000000000000000000000000000000000000000000000000014000000000000000000000000000000000000000000000000000000000000001c00000000000000000000000000000000000000000000000000000000000000007506c616e657473000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000006504c414e45540000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000300000000000000000000000019c30ad5ea4f7f9f36a8662b5fa2cbc09e55fded00000000000000000000000018f2368ab4816dd390e894a9a5b14a5e6dabf88c000000000000000000000000115ab9e1dbe84030719835dd3d4b74503be8921b0000000000000000000000000000000000000000000000000000000000000003000000000000000000000000000000000000000000000000000000000000157c0000000000000000000000000000000000000000000000000000000000000ab000000000000000000000000000000000000000000000000000000000000006e4

Deployed Bytecode

0x6080604052600436106102665760003560e01c8063834577ff11610144578063b2580fe6116100b6578063e7d3fe6b1161007a578063e7d3fe6b14610728578063e985e9c514610748578063f242432a14610791578063f2fde38b146107b1578063f5298aca146107d1578063fff01ab0146107f157600080fd5b8063b2580fe61461067b578063b42394f11461069b578063bd85b039146106b0578063ce7c2ac2146106dd578063e2b9e1861461071357600080fd5b8063993940171161010857806399394017146105c6578063a22cb465146105e6578063ab22ff0214610606578063ae65cbb314610626578063af17dea614610646578063afe1a3331461065b57600080fd5b8063834577ff146105265780638456cb591461055e5780638a1cfed6146105735780638da5cb5b1461059357806395d89b41146105b157600080fd5b80634027b0e4116101dd5780635c975abb116101a15780635c975abb1461049a5780636b20c454146104b257806370876c98146104d25780637119035b146104e5578063715018a6146104fb5780637b58de8b1461051057600080fd5b80634027b0e4146103e557806340aafada146103fb5780634e1273f41461041b5780634f558e79146104485780635463c3e81461047a57600080fd5b80630f34f1c61161022f5780630f34f1c614610332578063191655871461034757806326c1e750146103675780632eb2c2d61461039a5780633b44c8d0146103ba5780633f4ba83a146103d057600080fd5b8062fdd58e1461026b57806301ffc9a71461029e57806302fe5305146102ce57806306fdde03146102f05780630e89341c14610312575b600080fd5b34801561027757600080fd5b5061028b61028636600461343f565b610807565b6040519081526020015b60405180910390f35b3480156102aa57600080fd5b506102be6102b936600461367b565b61089e565b6040519015158152602001610295565b3480156102da57600080fd5b506102ee6102e93660046136b3565b6108f0565b005b3480156102fc57600080fd5b50610305610926565b6040516102959190613a10565b34801561031e57600080fd5b5061030561032d3660046136ed565b6109b8565b34801561033e57600080fd5b506102ee610a54565b34801561035357600080fd5b506102ee610362366004613232565b610a93565b34801561037357600080fd5b506103876103823660046136ed565b610ac6565b6040516102959796959493929190613c71565b3480156103a657600080fd5b506102ee6103b536600461328d565b610b90565b3480156103c657600080fd5b5061028b60105481565b3480156103dc57600080fd5b506102ee610c27565b3480156103f157600080fd5b5061028b600f5481565b34801561040757600080fd5b506102ee61041636600461356a565b610c5b565b34801561042757600080fd5b5061043b61043636600461349e565b610d94565b60405161029591906139cf565b34801561045457600080fd5b506102be6104633660046136ed565b600090815260176020526040902060010154151590565b34801561048657600080fd5b506102ee610495366004613776565b610ef5565b3480156104a657600080fd5b5060035460ff166102be565b3480156104be57600080fd5b506102ee6104cd36600461339c565b6111e4565b6102ee6104e036600461371d565b61122c565b3480156104f157600080fd5b5061028b60115481565b34801561050757600080fd5b506102ee611558565b34801561051c57600080fd5b5061028b60125481565b34801561053257600080fd5b50601354610546906001600160a01b031681565b6040516001600160a01b039091168152602001610295565b34801561056a57600080fd5b506102ee61158c565b34801561057f57600080fd5b506102ee61058e36600461356a565b6115be565b34801561059f57600080fd5b506005546001600160a01b0316610546565b3480156105bd57600080fd5b506103056116d2565b3480156105d257600080fd5b506102ee6105e13660046135a9565b6116e1565b3480156105f257600080fd5b506102ee61060136600461340e565b6117b9565b34801561061257600080fd5b506102ee6106213660046137dd565b611889565b34801561063257600080fd5b50601454610546906001600160a01b031681565b34801561065257600080fd5b506103056118ca565b34801561066757600080fd5b506102ee610676366004613612565b611958565b34801561068757600080fd5b506102ee61069636600461356a565b6119e7565b3480156106a757600080fd5b5061043b611d1a565b3480156106bc57600080fd5b5061028b6106cb3660046136ed565b60009081526004602052604090205490565b3480156106e957600080fd5b5061028b6106f8366004613232565b6001600160a01b03166000908152600a602052604090205490565b34801561071f57600080fd5b50610305611dd7565b34801561073457600080fd5b506102ee61074336600461373e565b611de4565b34801561075457600080fd5b506102be610763366004613255565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205460ff1690565b34801561079d57600080fd5b506102ee6107ac366004613336565b611efe565b3480156107bd57600080fd5b506102ee6107cc366004613232565b611f43565b3480156107dd57600080fd5b506102ee6107ec36600461346a565b611fdb565b3480156107fd57600080fd5b5061028b600e5481565b60006001600160a01b0383166108785760405162461bcd60e51b815260206004820152602b60248201527f455243313135353a2062616c616e636520717565727920666f7220746865207a60448201526a65726f206164647265737360a81b60648201526084015b60405180910390fd5b506000908152602081815260408083206001600160a01b03949094168352929052205490565b60006001600160e01b03198216636cdb3d1360e11b14806108cf57506001600160e01b031982166303a24d0760e21b145b806108ea57506301ffc9a760e01b6001600160e01b03198316145b92915050565b6005546001600160a01b0316331461091a5760405162461bcd60e51b815260040161086f90613bf4565b6109238161201e565b50565b60606006805461093590613d73565b80601f016020809104026020016040519081016040528092919081815260200182805461096190613d73565b80156109ae5780601f10610983576101008083540402835291602001916109ae565b820191906000526020600020905b81548152906001019060200180831161099157829003601f168201915b5050505050905090565b600081815260176020526040902060010154606090610a125760405162461bcd60e51b81526020600482015260166024820152752aa9249d103737b732bc34b9ba32b73a103a37b5b2b760511b604482015260640161086f565b610a1b82612035565b6000838152601760209081526040918290209151610a3e9392600501910161387d565b6040516020818303038152906040529050919050565b6005546001600160a01b03163314610a7e5760405162461bcd60e51b815260040161086f90613bf4565b6014805460ff60a01b1916600160a01b179055565b6005546001600160a01b03163314610abd5760405162461bcd60e51b815260040161086f90613bf4565b610923816120c9565b6017602052806000526040600020600091509050806000015490806001015490806002015490806003015490806004015490806005018054610b0790613d73565b80601f0160208091040260200160405190810160405280929190818152602001828054610b3390613d73565b8015610b805780601f10610b5557610100808354040283529160200191610b80565b820191906000526020600020905b815481529060010190602001808311610b6357829003601f168201915b5050505050908060060154905087565b6001600160a01b038516331480610bac5750610bac8533610763565b610c135760405162461bcd60e51b815260206004820152603260248201527f455243313135353a207472616e736665722063616c6c6572206973206e6f74206044820152711bdddb995c881b9bdc88185c1c1c9bdd995960721b606482015260840161086f565b610c20858585858561229a565b5050505050565b6005546001600160a01b03163314610c515760405162461bcd60e51b815260040161086f90613bf4565b610c59612460565b565b6005546001600160a01b03163314610c855760405162461bcd60e51b815260040161086f90613bf4565b8060005b81811015610d8e57610cd2848483818110610cb457634e487b7160e01b600052603260045260246000fd5b90506020020135600090815260176020526040902060010154151590565b610d295760405162461bcd60e51b815260206004820152602260248201527f436c6f736520636c61696d3a20706c616e657420646f6573206e6f74206578696044820152611cdd60f21b606482015260840161086f565b600160166000868685818110610d4f57634e487b7160e01b600052603260045260246000fd5b90506020020135815260200190815260200160002060006101000a81548160ff0219169083151502179055508080610d8690613dd4565b915050610c89565b50505050565b60608151835114610df95760405162461bcd60e51b815260206004820152602960248201527f455243313135353a206163636f756e747320616e6420696473206c656e677468604482015268040dad2e6dac2e8c6d60bb1b606482015260840161086f565b600083516001600160401b03811115610e2257634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015610e4b578160200160208202803683370190505b50905060005b8451811015610eed57610eb2858281518110610e7d57634e487b7160e01b600052603260045260246000fd5b6020026020010151858381518110610ea557634e487b7160e01b600052603260045260246000fd5b6020026020010151610807565b828281518110610ed257634e487b7160e01b600052603260045260246000fd5b6020908102919091010152610ee681613dd4565b9050610e51565b509392505050565b60035460ff1615610f185760405162461bcd60e51b815260040161086f90613af8565b60008581526016602052604090205460ff1615610f6a5760405162461bcd60e51b815260206004820152601060248201526f10db185a5b4e881a5cc818db1bdcd95960821b604482015260640161086f565b600e544210158015610f7e5750600f544211155b610fca5760405162461bcd60e51b815260206004820152601960248201527f436c61696d3a2074696d652077696e646f7720636c6f73656400000000000000604482015260640161086f565b60008581526017602090815260408083203384526007019091529020548390610ff4908890613cd9565b11156110535760405162461bcd60e51b815260206004820152602860248201527f436c61696d3a204e6f7420616c6c6f77656420746f20636c61696d20676976656044820152671b88185b5bdd5b9d60c21b606482015260840161086f565b60408051602081018690526bffffffffffffffffffffffff193360601b1691810191909152605481018490526000906074016040516020818303038152906040528051906020012090506110eb83838080602002602001604051908101604052809392919081815260200183836020028082843760009201829052508b81526017602052604090206006015492508591506124f39050565b6111415760405162461bcd60e51b815260206004820152602160248201527f4d65726b6c654469737472696275746f723a20496e76616c69642070726f6f666044820152601760f91b606482015260840161086f565b6000868152601760209081526040808320338452600701909152902054611169908890613cd9565b6000878152601760209081526040808320338085526007909101835281842094909455805191820190529081526111a4919088908a906125b0565b604051878152339087907f4ec90e965519d92681267467f775ada5bd214aa92c0dc93d90a5e880ce9ed0269060200160405180910390a350505050505050565b6001600160a01b03831633148061120057506112008333610763565b61121c5760405162461bcd60e51b815260040161086f90613aaf565b6112278383836125bc565b505050565b60035460ff161561124f5760405162461bcd60e51b815260040161086f90613af8565b60008281526015602052604090205460ff16156112ae5760405162461bcd60e51b815260206004820152601860248201527f50757263686173653a2073616c6520697320636c6f7365640000000000000000604482015260640161086f565b6010544210156113005760405162461bcd60e51b815260206004820152601760248201527f50757263686173653a2077696e646f7720636c6f736564000000000000000000604482015260640161086f565b6000828152601760205260409020600301548111156113705760405162461bcd60e51b815260206004820152602660248201527f50757263686173653a204d61782070757263686173652070657220747820657860448201526518d95959195960d21b606482015260840161086f565b60008281526017602052604090206002810154600490910154611394908390613cd9565b11156113f05760405162461bcd60e51b815260206004820152602560248201527f50757263686173653a204d617820707572636861736520737570706c792072656044820152641858da195960da1b606482015260840161086f565b600082815260176020908152604080832060010154600490925290912054611419908390613cd9565b11156114725760405162461bcd60e51b815260206004820152602260248201527f50757263686173653a204d617820746f74616c20737570706c79207265616368604482015261195960f21b606482015260840161086f565b60008281526017602052604090205461148b9082613d11565b34146114d95760405162461bcd60e51b815260206004820152601b60248201527f50757263686173653a20496e636f7272656374207061796d656e740000000000604482015260640161086f565b600082815260176020526040812060040180548392906114fa908490613cd9565b9250508190555061151c338383604051806020016040528060008152506125b0565b604051818152339083907ffd51b2c9f55c42d2b72ac683526519563be02fc0107f034ff430c05185ff1b66906020015b60405180910390a35050565b6005546001600160a01b031633146115825760405162461bcd60e51b815260040161086f90613bf4565b610c5960006125c7565b6005546001600160a01b031633146115b65760405162461bcd60e51b815260040161086f90613bf4565b610c59612619565b6005546001600160a01b031633146115e85760405162461bcd60e51b815260040161086f90613bf4565b8060005b81811015610d8e57611617848483818110610cb457634e487b7160e01b600052603260045260246000fd5b61166d5760405162461bcd60e51b815260206004820152602160248201527f436c6f73652073616c653a20706c616e657420646f6573206e6f7420657869736044820152601d60fa1b606482015260840161086f565b60016015600086868581811061169357634e487b7160e01b600052603260045260246000fd5b90506020020135815260200190815260200160002060006101000a81548160ff02191690831515021790555080806116ca90613dd4565b9150506115ec565b60606007805461093590613d73565b6005546001600160a01b0316331461170b5760405162461bcd60e51b815260040161086f90613bf4565b6000818152601760205260409020600101546117735760405162461bcd60e51b815260206004820152602160248201527f45646974506c616e65743a20706c616e657420646f6573206e6f7420657869736044820152601d60fa1b606482015260840161086f565b600081815260176020908152604090912060068101889055868155600281018690556003810185905583516117b09260059092019185019061306e565b50505050505050565b336001600160a01b03831614156118245760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2073657474696e6720617070726f76616c20737461747573604482015268103337b91039b2b63360b91b606482015260840161086f565b3360008181526001602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910161154c565b6005546001600160a01b031633146118b35760405162461bcd60e51b815260040161086f90613bf4565b600e91909155600f55601092909255601155601255565b600780546118d790613d73565b80601f016020809104026020016040519081016040528092919081815260200182805461190390613d73565b80156119505780601f1061192557610100808354040283529160200191611950565b820191906000526020600020905b81548152906001019060200180831161193357829003601f168201915b505050505081565b6005546001600160a01b031633146119825760405162461bcd60e51b815260040161086f90613bf4565b600060176000611991600d5490565b81526020808201929092526040016000206006810189905587815560018101879055600281018690556003810185905583519092506119d89160058401919085019061306e565b506117b0600d80546001019055565b60035460ff1615611a0a5760405162461bcd60e51b815260040161086f90613af8565b601454600160a01b900460ff1615611a565760405162461bcd60e51b815260206004820152600f60248201526e109d5c9b8e881a5cc818db1bdcd959608a1b604482015260640161086f565b6014546040516370a0823160e01b81523360048201526000916001600160a01b0316906370a082319060240160206040518083038186803b158015611a9a57600080fd5b505afa158015611aae573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ad29190613705565b118015611ae157506011544210155b80611aee57506012544210155b611b605760405162461bcd60e51b815260206004820152603760248201527f6275726e436f6d6963466f724d6f6f6e3a2077696e646f77206e6f74206f706560448201527f6e206f722044414f20746f6b656e207265717569726564000000000000000000606482015260840161086f565b806028811115611ba45760405162461bcd60e51b815260206004820152600f60248201526e546f6f206d616e7920746f6b656e7360881b604482015260640161086f565b60036000527fd8b2bced50346359af71f91110b86cdf684b6ab1c6ca64a7583c044d5c24de5d5460046020527f2e174c10e159ea99b867ce3205125c24a42d128804e4070ed6fcc8cc98166aa054611bfd908390613cd9565b1115611c575760405162461bcd60e51b815260206004820152602360248201527f4275726e20636f6d69633a204d6178206d6f6f6e20737570706c7920726561636044820152621a195960ea1b606482015260840161086f565b60005b81811015611cfd576013546001600160a01b03166342966c68858584818110611c9357634e487b7160e01b600052603260045260246000fd5b905060200201356040518263ffffffff1660e01b8152600401611cb891815260200190565b600060405180830381600087803b158015611cd257600080fd5b505af1158015611ce6573d6000803e3d6000fd5b505050508080611cf590613dd4565b915050611c5a565b5061122733600383604051806020016040528060008152506125b0565b60606000611d27600d5490565b6001600160401b03811115611d4c57634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015611d75578160200160208202803683370190505b50905060005b600d54811015611dd157600081815260046020526040902054828281518110611db457634e487b7160e01b600052603260045260246000fd5b602090810291909101015280611dc981613dd4565b915050611d7b565b50919050565b600680546118d790613d73565b6005546001600160a01b03163314611e0e5760405162461bcd60e51b815260040161086f90613bf4565b600083815260176020526040902060010154611e6c5760405162461bcd60e51b815260206004820152601b60248201527f4d696e743a20706c616e657420646f6573206e6f742065786973740000000000604482015260640161086f565b600083815260176020908152604080832060010154600490925290912054611e95908490613cd9565b1115611ee35760405162461bcd60e51b815260206004820152601860248201527f4d696e743a204d617820737570706c7920726561636865640000000000000000604482015260640161086f565b611227818484604051806020016040528060008152506125b0565b6001600160a01b038516331480611f1a5750611f1a8533610763565b611f365760405162461bcd60e51b815260040161086f90613aaf565b610c208585858585612671565b6005546001600160a01b03163314611f6d5760405162461bcd60e51b815260040161086f90613bf4565b6001600160a01b038116611fd25760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161086f565b610923816125c7565b6001600160a01b038316331480611ff75750611ff78333610763565b6120135760405162461bcd60e51b815260040161086f90613aaf565b611227838383612794565b805161203190600290602084019061306e565b5050565b60606002805461204490613d73565b80601f016020809104026020016040519081016040528092919081815260200182805461207090613d73565b80156120bd5780601f10612092576101008083540402835291602001916120bd565b820191906000526020600020905b8154815290600101906020018083116120a057829003601f168201915b50505050509050919050565b6001600160a01b0381166000908152600a602052604090205461213d5760405162461bcd60e51b815260206004820152602660248201527f5061796d656e7453706c69747465723a206163636f756e7420686173206e6f2060448201526573686172657360d01b606482015260840161086f565b60006009544761214d9190613cd9565b6001600160a01b0383166000908152600b6020908152604080832054600854600a9093529083205493945091926121849085613d11565b61218e9190613cf1565b6121989190613d30565b9050806121fb5760405162461bcd60e51b815260206004820152602b60248201527f5061796d656e7453706c69747465723a206163636f756e74206973206e6f742060448201526a191d59481c185e5b595b9d60aa1b606482015260840161086f565b6001600160a01b0383166000908152600b602052604090205461221f908290613cd9565b6001600160a01b0384166000908152600b6020526040902055600954612246908290613cd9565b600955612253838261279f565b604080516001600160a01b0385168152602081018390527fdf20fd1e76bc69d672e4814fafb2c449bba3a5369d8359adf9e05e6fde87b056910160405180910390a1505050565b81518351146122bb5760405162461bcd60e51b815260040161086f90613c29565b6001600160a01b0384166122e15760405162461bcd60e51b815260040161086f90613b22565b336122f08187878787876128b8565b60005b84518110156123f257600085828151811061231e57634e487b7160e01b600052603260045260246000fd5b60200260200101519050600085838151811061234a57634e487b7160e01b600052603260045260246000fd5b602090810291909101810151600084815280835260408082206001600160a01b038e16835290935291909120549091508181101561239a5760405162461bcd60e51b815260040161086f90613baa565b6000838152602081815260408083206001600160a01b038e8116855292528083208585039055908b168252812080548492906123d7908490613cd9565b92505081905550505050806123eb90613dd4565b90506122f3565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb87876040516124429291906139e2565b60405180910390a46124588187878787876128c6565b505050505050565b60035460ff166124a95760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b604482015260640161086f565b6003805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b600081815b85518110156125a557600086828151811061252357634e487b7160e01b600052603260045260246000fd5b60200260200101519050808311612565576040805160208101859052908101829052606001604051602081830303815290604052805190602001209250612592565b60408051602081018390529081018490526060016040516020818303038152906040528051906020012092505b508061259d81613dd4565b9150506124f8565b509092149392505050565b610d8e84848484612a31565b611227838383612a66565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60035460ff161561263c5760405162461bcd60e51b815260040161086f90613af8565b6003805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586124d63390565b6001600160a01b0384166126975760405162461bcd60e51b815260040161086f90613b22565b336126b68187876126a788612b04565b6126b088612b04565b876128b8565b6000848152602081815260408083206001600160a01b038a168452909152902054838110156126f75760405162461bcd60e51b815260040161086f90613baa565b6000858152602081815260408083206001600160a01b038b8116855292528083208785039055908816825281208054869290612734908490613cd9565b909155505060408051868152602081018690526001600160a01b03808916928a821692918616917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a46117b0828888888888612b5d565b611227838383612c27565b804710156127ef5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e6365000000604482015260640161086f565b6000826001600160a01b03168260405160006040518083038185875af1925050503d806000811461283c576040519150601f19603f3d011682016040523d82523d6000602084013e612841565b606091505b50509050806112275760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d61792068617665207265766572746564000000000000606482015260840161086f565b612458868686868686612c5a565b6001600160a01b0384163b156124585760405163bc197c8160e01b81526001600160a01b0385169063bc197c819061290a908990899088908890889060040161392c565b602060405180830381600087803b15801561292457600080fd5b505af1925050508015612954575060408051601f3d908101601f1916820190925261295191810190613697565b60015b612a0157612960613e1b565b806308c379a0141561299a5750612975613e33565b80612980575061299c565b8060405162461bcd60e51b815260040161086f9190613a10565b505b60405162461bcd60e51b815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e20455243313135356044820152732932b1b2b4bb32b91034b6b83632b6b2b73a32b960611b606482015260840161086f565b6001600160e01b0319811663bc197c8160e01b146117b05760405162461bcd60e51b815260040161086f90613a23565b612a3d84848484612cc2565b60008381526004602052604081208054849290612a5b908490613cd9565b909155505050505050565b612a71838383612dc3565b60005b8251811015610d8e57818181518110612a9d57634e487b7160e01b600052603260045260246000fd5b602002602001015160046000858481518110612ac957634e487b7160e01b600052603260045260246000fd5b602002602001015181526020019081526020016000206000828254612aee9190613d30565b90915550612afd905081613dd4565b9050612a74565b60408051600180825281830190925260609160009190602080830190803683370190505090508281600081518110612b4c57634e487b7160e01b600052603260045260246000fd5b602090810291909101015292915050565b6001600160a01b0384163b156124585760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e6190612ba1908990899088908890889060040161398a565b602060405180830381600087803b158015612bbb57600080fd5b505af1925050508015612beb575060408051601f3d908101601f19168201909252612be891810190613697565b60015b612bf757612960613e1b565b6001600160e01b0319811663f23a6e6160e01b146117b05760405162461bcd60e51b815260040161086f90613a23565b612c32838383612f6d565b60008281526004602052604081208054839290612c50908490613d30565b9091555050505050565b60035460ff16156124585760405162461bcd60e51b815260206004820152602c60248201527f455243313135355061757361626c653a20746f6b656e207472616e736665722060448201526b1dda1a5b19481c185d5cd95960a21b606482015260840161086f565b6001600160a01b038416612d225760405162461bcd60e51b815260206004820152602160248201527f455243313135353a206d696e7420746f20746865207a65726f206164647265736044820152607360f81b606482015260840161086f565b33612d33816000876126a788612b04565b6000848152602081815260408083206001600160a01b038916845290915281208054859290612d63908490613cd9565b909155505060408051858152602081018590526001600160a01b0380881692600092918516917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4610c2081600087878787612b5d565b6001600160a01b038316612de95760405162461bcd60e51b815260040161086f90613b67565b8051825114612e0a5760405162461bcd60e51b815260040161086f90613c29565b6000339050612e2d818560008686604051806020016040528060008152506128b8565b60005b8351811015612f0e576000848281518110612e5b57634e487b7160e01b600052603260045260246000fd5b602002602001015190506000848381518110612e8757634e487b7160e01b600052603260045260246000fd5b602090810291909101810151600084815280835260408082206001600160a01b038c168352909352919091205490915081811015612ed75760405162461bcd60e51b815260040161086f90613a6b565b6000928352602083815260408085206001600160a01b038b1686529091529092209103905580612f0681613dd4565b915050612e30565b5060006001600160a01b0316846001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8686604051612f5f9291906139e2565b60405180910390a450505050565b6001600160a01b038316612f935760405162461bcd60e51b815260040161086f90613b67565b33612fc281856000612fa487612b04565b612fad87612b04565b604051806020016040528060008152506128b8565b6000838152602081815260408083206001600160a01b0388168452909152902054828110156130035760405162461bcd60e51b815260040161086f90613a6b565b6000848152602081815260408083206001600160a01b03898116808652918452828520888703905582518981529384018890529092908616917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a45050505050565b82805461307a90613d73565b90600052602060002090601f01602090048101928261309c57600085556130e2565b82601f106130b557805160ff19168380011785556130e2565b828001600101855582156130e2579182015b828111156130e25782518255916020019190600101906130c7565b506130ee9291506130f2565b5090565b5b808211156130ee57600081556001016130f3565b60008083601f840112613118578182fd5b5081356001600160401b0381111561312e578182fd5b6020830191508360208260051b850101111561314957600080fd5b9250929050565b600082601f830112613160578081fd5b8135602061316d82613cb6565b60405161317a8282613da8565b8381528281019150858301600585901b87018401881015613199578586fd5b855b858110156131b75781358452928401929084019060010161319b565b5090979650505050505050565b600082601f8301126131d4578081fd5b81356001600160401b038111156131ed576131ed613e05565b604051613204601f8301601f191660200182613da8565b818152846020838601011115613218578283fd5b816020850160208301379081016020019190915292915050565b600060208284031215613243578081fd5b813561324e81613ebc565b9392505050565b60008060408385031215613267578081fd5b823561327281613ebc565b9150602083013561328281613ebc565b809150509250929050565b600080600080600060a086880312156132a4578081fd5b85356132af81613ebc565b945060208601356132bf81613ebc565b935060408601356001600160401b03808211156132da578283fd5b6132e689838a01613150565b945060608801359150808211156132fb578283fd5b61330789838a01613150565b9350608088013591508082111561331c578283fd5b50613329888289016131c4565b9150509295509295909350565b600080600080600060a0868803121561334d578081fd5b853561335881613ebc565b9450602086013561336881613ebc565b9350604086013592506060860135915060808601356001600160401b03811115613390578182fd5b613329888289016131c4565b6000806000606084860312156133b0578081fd5b83356133bb81613ebc565b925060208401356001600160401b03808211156133d6578283fd5b6133e287838801613150565b935060408601359150808211156133f7578283fd5b5061340486828701613150565b9150509250925092565b60008060408385031215613420578182fd5b823561342b81613ebc565b915060208301358015158114613282578182fd5b60008060408385031215613451578182fd5b823561345c81613ebc565b946020939093013593505050565b60008060006060848603121561347e578081fd5b833561348981613ebc565b95602085013595506040909401359392505050565b600080604083850312156134b0578182fd5b82356001600160401b03808211156134c6578384fd5b818501915085601f8301126134d9578384fd5b813560206134e682613cb6565b6040516134f38282613da8565b8381528281019150858301600585901b870184018b1015613512578889fd5b8896505b8487101561353d57803561352981613ebc565b835260019690960195918301918301613516565b5096505086013592505080821115613553578283fd5b5061356085828601613150565b9150509250929050565b6000806020838503121561357c578182fd5b82356001600160401b03811115613591578283fd5b61359d85828601613107565b90969095509350505050565b60008060008060008060c087890312156135c1578384fd5b8635955060208701359450604087013593506060870135925060808701356001600160401b038111156135f2578182fd5b6135fe89828a016131c4565b92505060a087013590509295509295509295565b60008060008060008060c0878903121561362a578384fd5b863595506020870135945060408701359350606087013592506080870135915060a08701356001600160401b03811115613662578182fd5b61366e89828a016131c4565b9150509295509295509295565b60006020828403121561368c578081fd5b813561324e81613ed1565b6000602082840312156136a8578081fd5b815161324e81613ed1565b6000602082840312156136c4578081fd5b81356001600160401b038111156136d9578182fd5b6136e5848285016131c4565b949350505050565b6000602082840312156136fe578081fd5b5035919050565b600060208284031215613716578081fd5b5051919050565b6000806040838503121561372f578182fd5b50508035926020909101359150565b600080600060608486031215613752578081fd5b8335925060208401359150604084013561376b81613ebc565b809150509250925092565b60008060008060008060a0878903121561378e578384fd5b8635955060208701359450604087013593506060870135925060808701356001600160401b038111156137bf578283fd5b6137cb89828a01613107565b979a9699509497509295939492505050565b600080600080600060a086880312156137f4578283fd5b505083359560208501359550604085013594606081013594506080013592509050565b6000815180845260208085019450808401835b838110156138465781518752958201959082019060010161382a565b509495945050505050565b60008151808452613869816020860160208601613d47565b601f01601f19169290920160200192915050565b6000835160206138908285838901613d47565b8454918401918390600181811c90808316806138ad57607f831692505b8583108114156138cb57634e487b7160e01b88526022600452602488fd5b8080156138df57600181146138f05761391c565b60ff1985168852838801955061391c565b60008b815260209020895b858110156139145781548a8201529084019088016138fb565b505083880195505b50939a9950505050505050505050565b6001600160a01b0386811682528516602082015260a06040820181905260009061395890830186613817565b828103606084015261396a8186613817565b9050828103608084015261397e8185613851565b98975050505050505050565b6001600160a01b03868116825285166020820152604081018490526060810183905260a0608082018190526000906139c490830184613851565b979650505050505050565b60208152600061324e6020830184613817565b6040815260006139f56040830185613817565b8281036020840152613a078185613817565b95945050505050565b60208152600061324e6020830184613851565b60208082526028908201527f455243313135353a204552433131353552656365697665722072656a656374656040820152676420746f6b656e7360c01b606082015260800190565b60208082526024908201527f455243313135353a206275726e20616d6f756e7420657863656564732062616c604082015263616e636560e01b606082015260800190565b60208082526029908201527f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260408201526808185c1c1c9bdd995960ba1b606082015260800190565b60208082526010908201526f14185d5cd8589b194e881c185d5cd95960821b604082015260600190565b60208082526025908201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604082015264647265737360d81b606082015260800190565b60208082526023908201527f455243313135353a206275726e2066726f6d20746865207a65726f206164647260408201526265737360e81b606082015260800190565b6020808252602a908201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60408201526939103a3930b739b332b960b11b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526028908201527f455243313135353a2069647320616e6420616d6f756e7473206c656e677468206040820152670dad2e6dac2e8c6d60c31b606082015260800190565b87815286602082015285604082015284606082015283608082015260e060a08201526000613ca260e0830185613851565b90508260c083015298975050505050505050565b60006001600160401b03821115613ccf57613ccf613e05565b5060051b60200190565b60008219821115613cec57613cec613def565b500190565b600082613d0c57634e487b7160e01b81526012600452602481fd5b500490565b6000816000190483118215151615613d2b57613d2b613def565b500290565b600082821015613d4257613d42613def565b500390565b60005b83811015613d62578181015183820152602001613d4a565b83811115610d8e5750506000910152565b600181811c90821680613d8757607f821691505b60208210811415611dd157634e487b7160e01b600052602260045260246000fd5b601f8201601f191681016001600160401b0381118282101715613dcd57613dcd613e05565b6040525050565b6000600019821415613de857613de8613def565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fd5b600060033d1115613e3057600481823e5160e01c5b90565b600060443d1015613e415790565b6040516003193d81016004833e81513d6001600160401b038160248401118184111715613e7057505050505090565b8285019150815181811115613e885750505050505090565b843d8701016020828501011115613ea25750505050505090565b613eb160208286010187613da8565b509095945050505050565b6001600160a01b038116811461092357600080fd5b6001600160e01b03198116811461092357600080fdfea2646970667358221220b8a4529960fb03ab8a319574f740e1c045a21cc824eca0321b30d63f3e67c91364736f6c63430008040033

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

00000000000000000000000000000000000000000000000000000000000000c000000000000000000000000000000000000000000000000000000000000001000000000000000000000000005ab21ec0bfa0b29545230395e3adaca7d552c948000000000000000000000000d0a07a76746707f6d6d36d9d5897b14a8e9ed493000000000000000000000000000000000000000000000000000000000000014000000000000000000000000000000000000000000000000000000000000001c00000000000000000000000000000000000000000000000000000000000000007506c616e657473000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000006504c414e45540000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000300000000000000000000000019c30ad5ea4f7f9f36a8662b5fa2cbc09e55fded00000000000000000000000018f2368ab4816dd390e894a9a5b14a5e6dabf88c000000000000000000000000115ab9e1dbe84030719835dd3d4b74503be8921b0000000000000000000000000000000000000000000000000000000000000003000000000000000000000000000000000000000000000000000000000000157c0000000000000000000000000000000000000000000000000000000000000ab000000000000000000000000000000000000000000000000000000000000006e4

-----Decoded View---------------
Arg [0] : _name (string): Planets
Arg [1] : _symbol (string): PLANET
Arg [2] : _comicContract (address): 0x5ab21Ec0bfa0B29545230395e3Adaca7d552C948
Arg [3] : _founderDAOContract (address): 0xd0A07a76746707f6D6d36D9d5897B14a8e9ED493
Arg [4] : payees (address[]): 0x19C30Ad5EA4f7f9F36A8662b5FA2Cbc09E55FDED,0x18f2368aB4816dD390E894a9A5b14A5E6DAbF88c,0x115Ab9e1dBe84030719835dd3d4B74503BE8921B
Arg [5] : shares_ (uint256[]): 5500,2736,1764

-----Encoded View---------------
18 Constructor Arguments found :
Arg [0] : 00000000000000000000000000000000000000000000000000000000000000c0
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000100
Arg [2] : 0000000000000000000000005ab21ec0bfa0b29545230395e3adaca7d552c948
Arg [3] : 000000000000000000000000d0a07a76746707f6d6d36d9d5897b14a8e9ed493
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000140
Arg [5] : 00000000000000000000000000000000000000000000000000000000000001c0
Arg [6] : 0000000000000000000000000000000000000000000000000000000000000007
Arg [7] : 506c616e65747300000000000000000000000000000000000000000000000000
Arg [8] : 0000000000000000000000000000000000000000000000000000000000000006
Arg [9] : 504c414e45540000000000000000000000000000000000000000000000000000
Arg [10] : 0000000000000000000000000000000000000000000000000000000000000003
Arg [11] : 00000000000000000000000019c30ad5ea4f7f9f36a8662b5fa2cbc09e55fded
Arg [12] : 00000000000000000000000018f2368ab4816dd390e894a9a5b14a5e6dabf88c
Arg [13] : 000000000000000000000000115ab9e1dbe84030719835dd3d4b74503be8921b
Arg [14] : 0000000000000000000000000000000000000000000000000000000000000003
Arg [15] : 000000000000000000000000000000000000000000000000000000000000157c
Arg [16] : 0000000000000000000000000000000000000000000000000000000000000ab0
Arg [17] : 00000000000000000000000000000000000000000000000000000000000006e4


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.