ETH Price: $3,389.36 (-1.40%)
Gas: 2 Gwei

Token

Capsule Community Curated Collection ()
 

Overview

Max Total Supply

2,870

Holders

1,226

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Filtered by Token Holder
bsy.eth
0xcc6c1d21e8474b3578e69eb036c712ab08ffdfbb
Loading...
Loading
Loading...
Loading
Loading...
Loading

OVERVIEW

Presented by Capsule House The Capsule House Community Curated collection is part of our Community Treasury proposal system. Our goal with Capsule House Community Curated is to provide our holders access to amazingly talented, often under appreciated, artists. Thank you, Pon...

# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
BaseFixedPriceAuctionERC1155

Compiler Version
v0.8.4+commit.c7e474f2

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 15 : BaseFixedPriceAuctionERC1155.sol
// SPDX-License-Identifier: MIT
// Author: Eric Gao (@itsoksami, https://github.com/Ericxgao)

pragma solidity 0.8.4;

import "@openzeppelin/contracts/token/ERC1155/ERC1155.sol";
import "@openzeppelin/contracts/utils/Strings.sol";
import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol";
import "@openzeppelin/contracts/finance/PaymentSplitter.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@openzeppelin/contracts/access/Ownable.sol";

contract BaseFixedPriceAuctionERC1155 is ERC1155, ReentrancyGuard, Ownable {
    using Strings for uint256;
    using ECDSA for bytes32;

    struct TokenInfo {
        uint256 tokenId;
        uint256 whitelistMaxMint;
        uint256 publicListMaxMint;
        uint256 nonReservedMax;
        uint256 reservedMax;
        uint256 price;
    }

    string public prefix = "Capsule Whitelist Verification:";
    string private baseTokenURI = '';

    mapping(uint256 => mapping(address => uint256)) public _whitelistClaimed;
    mapping(uint256 => mapping(address => uint256)) public _publicListClaimed;

    mapping(uint256 => TokenInfo) private tokenInfos;
    
    mapping(uint256 => uint256) public nonReservedMinted;
    mapping(uint256 => uint256) public reservedMinted;
    mapping(uint256 => uint256) public max;
    mapping(uint256 => uint256) private mintedAmounts;

    PaymentSplitter private _splitter;

    constructor(
        address[] memory payees, 
        uint256[] memory shares,
        string memory _uri,
        TokenInfo[] memory _tokenInfos
    )
        ERC1155(_uri)
    {
        setTokenInfo(_tokenInfos);
        _splitter = new PaymentSplitter(payees, shares);
    }

    function setTokenInfo(TokenInfo[] memory _tokenInfos) public onlyOwner {
        uint256 len = _tokenInfos.length;
        TokenInfo memory tmpInfo;
        uint256 _tokenId;
        for (uint256 i = 0; i < len; i ++) {
            tmpInfo = _tokenInfos[i];
            _tokenId = tmpInfo.tokenId;
            tokenInfos[_tokenId] = tmpInfo;
            max[_tokenId] = tmpInfo.nonReservedMax + tmpInfo.reservedMax;
        }
    }

    function getTokenInfo(uint256 _tokenId) external view returns (TokenInfo memory) {
        return tokenInfos[_tokenId];
    }

    function totalSupply(uint256 _tokenId) public view returns (uint256) {
        return mintedAmounts[_tokenId];
    }

    function setPrice(uint256 _tokenId, uint256 _price) public onlyOwner {
        tokenInfos[_tokenId].price = _price;
    }

    function release(address payable account) external {
        _splitter.release(account);
    }

    function _hash(address _address) internal view returns (bytes32) {
        return keccak256(abi.encodePacked(prefix, _address));
    }

    function _verify(bytes32 hash, bytes memory signature) internal view returns (bool) {
        return (_recover(hash, signature) == owner());
    }

    function _recover(bytes32 hash, bytes memory signature) internal pure returns (address) {
        return hash.recover(signature);
    }

    function setPrefix(string memory _prefix) public onlyOwner {
        prefix = _prefix;
    }

    function setWhitelistMaxMint(uint256 _tokenId, uint256 _whitelistMaxMint) external onlyOwner {
        tokenInfos[_tokenId].whitelistMaxMint = _whitelistMaxMint;
    }

    function setPublicListMaxMint(uint256 _tokenId, uint256 _publicListMaxMint) external onlyOwner {
        tokenInfos[_tokenId].publicListMaxMint = _publicListMaxMint;
    }

    function mintCapsule(uint256 tokenId, uint256 numberOfTokens) external payable {
        require(_publicListClaimed[tokenId][msg.sender] + numberOfTokens <= tokenInfos[tokenId].publicListMaxMint, 'You cannot mint this many.');

        _publicListClaimed[tokenId][msg.sender] += numberOfTokens;
        _nonReservedMintHelper(tokenId, numberOfTokens);
    }
    
    function mintCapsuleWhitelist(bytes32 hash, bytes memory signature, uint256 tokenId, uint256 numberOfTokens) external payable {
        require(_verify(hash, signature), "This hash's signature is invalid.");
        require(_hash(msg.sender) == hash, "The address hash does not match the signed hash.");
        require(_whitelistClaimed[tokenId][msg.sender] + numberOfTokens <= tokenInfos[tokenId].whitelistMaxMint, 'You cannot mint this many.');

        _whitelistClaimed[tokenId][msg.sender] += numberOfTokens;
        _nonReservedMintHelper(tokenId, numberOfTokens);
    }

    function _nonReservedMintHelper(uint256 tokenId, uint256 numberOfTokens) internal {
        require(numberOfTokens * tokenInfos[tokenId].price == msg.value, "Invalid amount.");
        require(mintedAmounts[tokenId] + numberOfTokens <= max[tokenId], "Sold out.");

        mintedAmounts[tokenId] += numberOfTokens;
        _mint(msg.sender, tokenId, numberOfTokens, "");
    }

    function splitPayments() public payable onlyOwner {
        (bool success, ) = payable(_splitter).call{value: address(this).balance}(
        ""
        );
        require(success);
    }

    function mintReservedCapsule(uint256 tokenId) external onlyOwner {
        require(mintedAmounts[tokenId] == 0, 'Reserves already taken.');
        require(tokenInfos[tokenId].reservedMax != 0, 'reserved not set');
        _mint(msg.sender, tokenId, tokenInfos[tokenId].reservedMax, "");
        mintedAmounts[tokenId] = tokenInfos[tokenId].reservedMax;
    }

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

    function uri(uint256 tokenId)
        public
        view
        virtual
        override
        returns (string memory)
    {
        return string(abi.encodePacked(super.uri(tokenId), tokenId.toString()));
    }
}

File 2 of 15 : 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 3 of 15 : Strings.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

File 4 of 15 : ECDSA.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

        // If the signature is valid (and not malleable), return the signer address
        address signer = ecrecover(hash, v, r, s);
        require(signer != address(0), "ECDSA: invalid signature");

        return signer;
    }

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

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

File 5 of 15 : PaymentSplitter.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../utils/Address.sol";
import "../utils/Context.sol";
import "../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);
    event PaymentReceived(address from, 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 The Ether received will be logged with {PaymentReceived} events. Note that these events are not fully
     * reliable: it's possible for a contract to receive Ether without triggering this function. This only affects the
     * reliability of the events, and not the actual splitting of Ether.
     *
     * To learn more about this see the Solidity documentation for
     * https://solidity.readthedocs.io/en/latest/contracts.html#fallback-function[fallback
     * functions].
     */
    receive() external payable virtual {
        emit PaymentReceived(_msgSender(), msg.value);
    }

    /**
     * @dev Getter for the total shares held by payees.
     */
    function totalShares() public view returns (uint256) {
        return _totalShares;
    }

    /**
     * @dev Getter for the total amount of Ether already released.
     */
    function totalReleased() public view returns (uint256) {
        return _totalReleased;
    }

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

    /**
     * @dev Getter for the amount of Ether already released to a payee.
     */
    function released(address account) public view returns (uint256) {
        return _released[account];
    }

    /**
     * @dev Getter for the address of the payee number `index`.
     */
    function payee(uint256 index) public view returns (address) {
        return _payees[index];
    }

    /**
     * @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 6 of 15 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @dev Contract module that helps prevent reentrant calls to a function.
 *
 * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier
 * available, which can be applied to functions to make sure there are no nested
 * (reentrant) calls to them.
 *
 * Note that because there is a single `nonReentrant` guard, functions marked as
 * `nonReentrant` may not call one another. This can be worked around by making
 * those functions `private`, and then adding `external` `nonReentrant` entry
 * points to them.
 *
 * TIP: If you would like to learn more about reentrancy and alternative ways
 * to protect against it, check out our blog post
 * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].
 */
abstract contract ReentrancyGuard {
    // Booleans are more expensive than uint256 or any type that takes up a full
    // word because each write operation emits an extra SLOAD to first read the
    // slot's contents, replace the bits taken up by the boolean, and then write
    // back. This is the compiler's defense against contract upgrades and
    // pointer aliasing, and it cannot be disabled.

    // The values being non-zero value makes deployment a bit more expensive,
    // but in exchange the refund on every call to nonReentrant will be lower in
    // amount. Since refunds are capped to a percentage of the total
    // transaction's gas, it is best to keep them low in cases like this one, to
    // increase the likelihood of the full refund coming into effect.
    uint256 private constant _NOT_ENTERED = 1;
    uint256 private constant _ENTERED = 2;

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

    /**
     * @dev Prevents a contract from calling itself, directly or indirectly.
     * Calling a `nonReentrant` function from another `nonReentrant`
     * function is not supported. It is possible to prevent this from happening
     * by making the `nonReentrant` function external, and make it call a
     * `private` function that does the actual work.
     */
    modifier nonReentrant() {
        // On the first call to nonReentrant, _notEntered will be true
        require(_status != _ENTERED, "ReentrancyGuard: reentrant call");

        // Any calls to nonReentrant after this point will fail
        _status = _ENTERED;

        _;

        // By storing the original value once again, a refund is triggered (see
        // https://eips.ethereum.org/EIPS/eip-2200)
        _status = _NOT_ENTERED;
    }
}

File 7 of 15 : 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 8 of 15 : 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 9 of 15 : 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 10 of 15 : 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 11 of 15 : 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 12 of 15 : 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 13 of 15 : 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 14 of 15 : 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 15 of 15 : 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",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "libraries": {}
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address[]","name":"payees","type":"address[]"},{"internalType":"uint256[]","name":"shares","type":"uint256[]"},{"internalType":"string","name":"_uri","type":"string"},{"components":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"whitelistMaxMint","type":"uint256"},{"internalType":"uint256","name":"publicListMaxMint","type":"uint256"},{"internalType":"uint256","name":"nonReservedMax","type":"uint256"},{"internalType":"uint256","name":"reservedMax","type":"uint256"},{"internalType":"uint256","name":"price","type":"uint256"}],"internalType":"struct BaseFixedPriceAuctionERC1155.TokenInfo[]","name":"_tokenInfos","type":"tuple[]"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"indexed":false,"internalType":"uint256[]","name":"values","type":"uint256[]"}],"name":"TransferBatch","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"id","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"TransferSingle","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"value","type":"string"},{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"}],"name":"URI","type":"event"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"address","name":"","type":"address"}],"name":"_publicListClaimed","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"address","name":"","type":"address"}],"name":"_whitelistClaimed","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"accounts","type":"address[]"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"}],"name":"balanceOfBatch","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"getTokenInfo","outputs":[{"components":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"whitelistMaxMint","type":"uint256"},{"internalType":"uint256","name":"publicListMaxMint","type":"uint256"},{"internalType":"uint256","name":"nonReservedMax","type":"uint256"},{"internalType":"uint256","name":"reservedMax","type":"uint256"},{"internalType":"uint256","name":"price","type":"uint256"}],"internalType":"struct BaseFixedPriceAuctionERC1155.TokenInfo","name":"","type":"tuple"}],"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":"","type":"uint256"}],"name":"max","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"numberOfTokens","type":"uint256"}],"name":"mintCapsule","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"hash","type":"bytes32"},{"internalType":"bytes","name":"signature","type":"bytes"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"numberOfTokens","type":"uint256"}],"name":"mintCapsuleWhitelist","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"mintReservedCapsule","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"nonReservedMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"prefix","outputs":[{"internalType":"string","name":"","type":"string"}],"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":"uint256","name":"","type":"uint256"}],"name":"reservedMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256[]","name":"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":"_prefix","type":"string"}],"name":"setPrefix","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"uint256","name":"_price","type":"uint256"}],"name":"setPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"uint256","name":"_publicListMaxMint","type":"uint256"}],"name":"setPublicListMaxMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"components":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"whitelistMaxMint","type":"uint256"},{"internalType":"uint256","name":"publicListMaxMint","type":"uint256"},{"internalType":"uint256","name":"nonReservedMax","type":"uint256"},{"internalType":"uint256","name":"reservedMax","type":"uint256"},{"internalType":"uint256","name":"price","type":"uint256"}],"internalType":"struct BaseFixedPriceAuctionERC1155.TokenInfo[]","name":"_tokenInfos","type":"tuple[]"}],"name":"setTokenInfo","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"newuri","type":"string"}],"name":"setURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"uint256","name":"_whitelistMaxMint","type":"uint256"}],"name":"setWhitelistMaxMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"splitPayments","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"uri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"}]

60c0604052601f60808190527f43617073756c652057686974656c69737420566572696669636174696f6e3a0060a0908152620000409160059190620002ec565b506040805160208101918290526000908190526200006191600691620002ec565b503480156200006f57600080fd5b5060405162003ffd38038062003ffd833981016040819052620000929162000564565b816200009e8162000120565b506001600355620000af3362000139565b620000ba816200018b565b8383604051620000ca906200037b565b620000d79291906200068e565b604051809103906000f080158015620000f4573d6000803e3d6000fd5b50600e80546001600160a01b0319166001600160a01b0392909216919091179055506200082e92505050565b805162000135906002906020840190620002ec565b5050565b600480546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6004546001600160a01b03163314620001ea5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640160405180910390fd5b6000815190506200022a6040518060c001604052806000815260200160008152602001600081526020016000815260200160008152602001600081525090565b6000805b83811015620002e5578481815181106200025857634e487b7160e01b600052603260045260246000fd5b602090810291909101810151805160008181526009845260409081902083518155938301516001850155820151600284015560608201516003840181905560808301516004850181905560a08401516005909501949094559195509350620002c191906200078c565b6000838152600c602052604090205580620002dc81620007e4565b9150506200022e565b5050505050565b828054620002fa90620007a7565b90600052602060002090601f0160209004810192826200031e576000855562000369565b82601f106200033957805160ff191683800117855562000369565b8280016001018555821562000369579182015b82811115620003695782518255916020019190600101906200034c565b506200037792915062000389565b5090565b610b6a806200349383390190565b5b808211156200037757600081556001016200038a565b600082601f830112620003b1578081fd5b81516020620003ca620003c48362000766565b62000733565b8281528181019085830160c080860288018501891015620003e9578687fd5b865b86811015620004545781838b03121562000403578788fd5b6200040d62000708565b83518152868401518782015260408085015190820152606080850151908201526080808501519082015260a0808501519082015285529385019391810191600101620003eb565b509198975050505050505050565b600082601f83011262000473578081fd5b8151602062000486620003c48362000766565b80838252828201915082860187848660051b8901011115620004a6578586fd5b855b85811015620004c657815184529284019290840190600101620004a8565b5090979650505050505050565b600082601f830112620004e4578081fd5b81516001600160401b0381111562000500576200050062000818565b602062000516601f8301601f1916820162000733565b82815285828487010111156200052a578384fd5b835b83811015620005495785810183015182820184015282016200052c565b838111156200055a57848385840101525b5095945050505050565b600080600080608085870312156200057a578384fd5b84516001600160401b038082111562000591578586fd5b818701915087601f830112620005a5578586fd5b81516020620005b8620003c48362000766565b8083825282820191508286018c848660051b8901011115620005d8578a8bfd5b8a96505b84871015620006115780516001600160a01b0381168114620005fc578b8cfd5b835260019690960195918301918301620005dc565b50918a01519198509093505050808211156200062b578485fd5b620006398883890162000462565b945060408701519150808211156200064f578384fd5b6200065d88838901620004d3565b9350606087015191508082111562000673578283fd5b506200068287828801620003a0565b91505092959194509250565b604080825283519082018190526000906020906060840190828701845b82811015620006d25781516001600160a01b031684529284019290840190600101620006ab565b50505083810382850152845180825285830191830190845b81811015620004c657835183529284019291840191600101620006ea565b60405160c081016001600160401b03811182821017156200072d576200072d62000818565b60405290565b604051601f8201601f191681016001600160401b03811182821017156200075e576200075e62000818565b604052919050565b60006001600160401b0382111562000782576200078262000818565b5060051b60200190565b60008219821115620007a257620007a262000802565b500190565b600181811c90821680620007bc57607f821691505b60208210811415620007de57634e487b7160e01b600052602260045260246000fd5b50919050565b6000600019821415620007fb57620007fb62000802565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fd5b612c55806200083e6000396000f3fe6080604052600436106101cc5760003560e01c806385cb593b116100f7578063c8a830ba11610095578063e98dfdc311610064578063e98dfdc3146105e9578063f242432a14610609578063f2fde38b14610629578063f7d975771461064957600080fd5b8063c8a830ba14610540578063ca498edd1461056d578063d61007c814610580578063e985e9c5146105a057600080fd5b80639ab7d823116100d15780639ab7d8231461049b578063a22cb465146104d3578063b0098c39146104f3578063bd85b0391461051357600080fd5b806385cb593b146103e75780638c7a63ae146104075780638da5cb5b1461047357600080fd5b80631c6121aa1161016f578063704f09a61161013e578063704f09a6146103a2578063706c1e6f146103b5578063715018a6146103bd57806375dadb32146103d257600080fd5b80631c6121aa146103085780632eb2c2d6146103355780634e1273f4146103555780635f868f4e1461038257600080fd5b80630e89341c116101ab5780630e89341c1461025657806312e74e5a1461028357806319165587146102bb5780631c4885c4146102db57600080fd5b8062fdd58e146101d157806301ffc9a71461020457806302fe530514610234575b600080fd5b3480156101dd57600080fd5b506101f16101ec36600461234d565b610669565b6040519081526020015b60405180910390f35b34801561021057600080fd5b5061022461021f366004612583565b610703565b60405190151581526020016101fb565b34801561024057600080fd5b5061025461024f3660046125bb565b610753565b005b34801561026257600080fd5b50610276610271366004612600565b610789565b6040516101fb9190612886565b34801561028f57600080fd5b506101f161029e366004612618565b600760209081526000928352604080842090915290825290205481565b3480156102c757600080fd5b506102546102d63660046121b9565b6107c4565b3480156102e757600080fd5b506101f16102f6366004612600565b600b6020526000908152604090205481565b34801561031457600080fd5b506101f1610323366004612600565b600a6020526000908152604090205481565b34801561034157600080fd5b5061025461035036600461220d565b610826565b34801561036157600080fd5b50610375610370366004612378565b6108b6565b6040516101fb919061284e565b34801561038e57600080fd5b5061025461039d366004612600565b610a17565b6102546103b036600461263c565b610b3f565b610254610bfb565b3480156103c957600080fd5b50610254610c85565b3480156103de57600080fd5b50610276610cbb565b3480156103f357600080fd5b506102546104023660046125bb565b610d49565b34801561041357600080fd5b50610427610422366004612600565b610d86565b6040516101fb9190600060c082019050825182526020830151602083015260408301516040830152606083015160608301526080830151608083015260a083015160a083015292915050565b34801561047f57600080fd5b506004546040516001600160a01b0390911681526020016101fb565b3480156104a757600080fd5b506101f16104b6366004612618565b600860209081526000928352604080842090915290825290205481565b3480156104df57600080fd5b506102546104ee36600461231c565b610e18565b3480156104ff57600080fd5b5061025461050e36600461263c565b610eef565b34801561051f57600080fd5b506101f161052e366004612600565b6000908152600d602052604090205490565b34801561054c57600080fd5b506101f161055b366004612600565b600c6020526000908152604090205481565b61025461057b36600461252f565b610f2e565b34801561058c57600080fd5b5061025461059b366004612444565b6110bc565b3480156105ac57600080fd5b506102246105bb3660046121d5565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205460ff1690565b3480156105f557600080fd5b5061025461060436600461263c565b6111d9565b34801561061557600080fd5b506102546106243660046122b6565b611218565b34801561063557600080fd5b506102546106443660046121b9565b61129f565b34801561065557600080fd5b5061025461066436600461263c565b611337565b60006001600160a01b0383166106da5760405162461bcd60e51b815260206004820152602b60248201527f455243313135353a2062616c616e636520717565727920666f7220746865207a60448201526a65726f206164647265737360a81b60648201526084015b60405180910390fd5b506000818152602081815260408083206001600160a01b03861684529091529020545b92915050565b60006001600160e01b03198216636cdb3d1360e11b148061073457506001600160e01b031982166303a24d0760e21b145b806106fd57506301ffc9a760e01b6001600160e01b03198316146106fd565b6004546001600160a01b0316331461077d5760405162461bcd60e51b81526004016106d190612970565b61078681611376565b50565b606061079482611389565b61079d8361141d565b6040516020016107ae9291906126c3565b6040516020818303038152906040529050919050565b600e54604051631916558760e01b81526001600160a01b03838116600483015290911690631916558790602401600060405180830381600087803b15801561080b57600080fd5b505af115801561081f573d6000803e3d6000fd5b5050505050565b6001600160a01b038516331480610842575061084285336105bb565b6108a95760405162461bcd60e51b815260206004820152603260248201527f455243313135353a207472616e736665722063616c6c6572206973206e6f74206044820152711bdddb995c881b9bdc88185c1c1c9bdd995960721b60648201526084016106d1565b61081f858585858561153e565b6060815183511461091b5760405162461bcd60e51b815260206004820152602960248201527f455243313135353a206163636f756e747320616e6420696473206c656e677468604482015268040dad2e6dac2e8c6d60bb1b60648201526084016106d1565b600083516001600160401b0381111561094457634e487b7160e01b600052604160045260246000fd5b60405190808252806020026020018201604052801561096d578160200160208202803683370190505b50905060005b8451811015610a0f576109d485828151811061099f57634e487b7160e01b600052603260045260246000fd5b60200260200101518583815181106109c757634e487b7160e01b600052603260045260246000fd5b6020026020010151610669565b8282815181106109f457634e487b7160e01b600052603260045260246000fd5b6020908102919091010152610a0881612ae2565b9050610973565b509392505050565b6004546001600160a01b03163314610a415760405162461bcd60e51b81526004016106d190612970565b6000818152600d602052604090205415610a9d5760405162461bcd60e51b815260206004820152601760248201527f526573657276657320616c72656164792074616b656e2e00000000000000000060448201526064016106d1565b600081815260096020526040902060040154610aee5760405162461bcd60e51b815260206004820152601060248201526f1c995cd95c9d9959081b9bdd081cd95d60821b60448201526064016106d1565b610b1f3382600960008581526020019081526020016000206004015460405180602001604052806000815250611737565b600090815260096020908152604080832060040154600d90925290912055565b6000828152600960209081526040808320600201546008835281842033855290925290912054610b709083906129c8565b1115610bbe5760405162461bcd60e51b815260206004820152601a60248201527f596f752063616e6e6f74206d696e742074686973206d616e792e00000000000060448201526064016106d1565b600082815260086020908152604080832033845290915281208054839290610be79084906129c8565b90915550610bf790508282611841565b5050565b6004546001600160a01b03163314610c255760405162461bcd60e51b81526004016106d190612970565b600e546040516000916001600160a01b03169047908381818185875af1925050503d8060008114610c72576040519150601f19603f3d011682016040523d82523d6000602084013e610c77565b606091505b505090508061078657600080fd5b6004546001600160a01b03163314610caf5760405162461bcd60e51b81526004016106d190612970565b610cb9600061193e565b565b60058054610cc890612a56565b80601f0160208091040260200160405190810160405280929190818152602001828054610cf490612a56565b8015610d415780601f10610d1657610100808354040283529160200191610d41565b820191906000526020600020905b815481529060010190602001808311610d2457829003601f168201915b505050505081565b6004546001600160a01b03163314610d735760405162461bcd60e51b81526004016106d190612970565b8051610bf7906005906020840190612030565b610dbf6040518060c001604052806000815260200160008152602001600081526020016000815260200160008152602001600081525090565b50600090815260096020908152604091829020825160c08101845281548152600182015492810192909252600281015492820192909252600382015460608201526004820154608082015260059091015460a082015290565b336001600160a01b0383161415610e835760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2073657474696e6720617070726f76616c20737461747573604482015268103337b91039b2b63360b91b60648201526084016106d1565b3360008181526001602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6004546001600160a01b03163314610f195760405162461bcd60e51b81526004016106d190612970565b60009182526009602052604090912060010155565b610f388484611990565b610f8e5760405162461bcd60e51b815260206004820152602160248201527f5468697320686173682773207369676e617475726520697320696e76616c69646044820152601760f91b60648201526084016106d1565b83610f98336119c8565b14610ffe5760405162461bcd60e51b815260206004820152603060248201527f5468652061646472657373206861736820646f6573206e6f74206d617463682060448201526f3a34329039b4b3b732b2103430b9b41760811b60648201526084016106d1565b600082815260096020908152604080832060010154600783528184203385529092529091205461102f9083906129c8565b111561107d5760405162461bcd60e51b815260206004820152601a60248201527f596f752063616e6e6f74206d696e742074686973206d616e792e00000000000060448201526064016106d1565b6000828152600760209081526040808320338452909152812080548392906110a69084906129c8565b909155506110b690508282611841565b50505050565b6004546001600160a01b031633146110e65760405162461bcd60e51b81526004016106d190612970565b6000815190506111256040518060c001604052806000815260200160008152602001600081526020016000815260200160008152602001600081525090565b6000805b8381101561081f5784818151811061115157634e487b7160e01b600052603260045260246000fd5b602090810291909101810151805160008181526009845260409081902083518155938301516001850155820151600284015560608201516003840181905560808301516004850181905560a084015160059095019490945591955093506111b891906129c8565b6000838152600c6020526040902055806111d181612ae2565b915050611129565b6004546001600160a01b031633146112035760405162461bcd60e51b81526004016106d190612970565b60009182526009602052604090912060020155565b6001600160a01b038516331480611234575061123485336105bb565b6112925760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260448201526808185c1c1c9bdd995960ba1b60648201526084016106d1565b61081f85858585856119fb565b6004546001600160a01b031633146112c95760405162461bcd60e51b81526004016106d190612970565b6001600160a01b03811661132e5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016106d1565b6107868161193e565b6004546001600160a01b031633146113615760405162461bcd60e51b81526004016106d190612970565b60009182526009602052604090912060050155565b8051610bf7906002906020840190612030565b60606002805461139890612a56565b80601f01602080910402602001604051908101604052809291908181526020018280546113c490612a56565b80156114115780601f106113e657610100808354040283529160200191611411565b820191906000526020600020905b8154815290600101906020018083116113f457829003601f168201915b50505050509050919050565b6060816114415750506040805180820190915260018152600360fc1b602082015290565b8160005b811561146b578061145581612ae2565b91506114649050600a836129e0565b9150611445565b6000816001600160401b0381111561149357634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156114bd576020820181803683370190505b5090505b8415611536576114d2600183612a13565b91506114df600a86612afd565b6114ea9060306129c8565b60f81b81838151811061150d57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a90535061152f600a866129e0565b94506114c1565b949350505050565b81518351146115a05760405162461bcd60e51b815260206004820152602860248201527f455243313135353a2069647320616e6420616d6f756e7473206c656e677468206044820152670dad2e6dac2e8c6d60c31b60648201526084016106d1565b6001600160a01b0384166115c65760405162461bcd60e51b81526004016106d1906128e1565b3360005b84518110156116c95760008582815181106115f557634e487b7160e01b600052603260045260246000fd5b60200260200101519050600085838151811061162157634e487b7160e01b600052603260045260246000fd5b602090810291909101810151600084815280835260408082206001600160a01b038e1683529093529190912054909150818110156116715760405162461bcd60e51b81526004016106d190612926565b6000838152602081815260408083206001600160a01b038e8116855292528083208585039055908b168252812080548492906116ae9084906129c8565b92505081905550505050806116c290612ae2565b90506115ca565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051611719929190612861565b60405180910390a461172f818787878787611b18565b505050505050565b6001600160a01b0384166117975760405162461bcd60e51b815260206004820152602160248201527f455243313135353a206d696e7420746f20746865207a65726f206164647265736044820152607360f81b60648201526084016106d1565b336117b1816000876117a888611c83565b61081f88611c83565b6000848152602081815260408083206001600160a01b0389168452909152812080548592906117e19084906129c8565b909155505060408051858152602081018590526001600160a01b0380881692600092918516917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a461081f81600087878787611cdc565b600082815260096020526040902060050154349061185f90836129f4565b1461189e5760405162461bcd60e51b815260206004820152600f60248201526e24b73b30b634b21030b6b7bab73a1760891b60448201526064016106d1565b6000828152600c6020908152604080832054600d909252909120546118c49083906129c8565b11156118fe5760405162461bcd60e51b815260206004820152600960248201526829b7b6321037baba1760b91b60448201526064016106d1565b6000828152600d60205260408120805483929061191c9084906129c8565b92505081905550610bf733838360405180602001604052806000815250611737565b600480546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60006119a46004546001600160a01b031690565b6001600160a01b03166119b78484611da6565b6001600160a01b0316149392505050565b60006005826040516020016119de9291906126f2565b604051602081830303815290604052805190602001209050919050565b6001600160a01b038416611a215760405162461bcd60e51b81526004016106d1906128e1565b33611a318187876117a888611c83565b6000848152602081815260408083206001600160a01b038a16845290915290205483811015611a725760405162461bcd60e51b81526004016106d190612926565b6000858152602081815260408083206001600160a01b038b8116855292528083208785039055908816825281208054869290611aaf9084906129c8565b909155505060408051868152602081018690526001600160a01b03808916928a821692918616917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4611b0f828888888888611cdc565b50505050505050565b6001600160a01b0384163b1561172f5760405163bc197c8160e01b81526001600160a01b0385169063bc197c8190611b5c90899089908890889088906004016127ab565b602060405180830381600087803b158015611b7657600080fd5b505af1925050508015611ba6575060408051601f3d908101601f19168201909252611ba39181019061259f565b60015b611c5357611bb2612b53565b806308c379a01415611bec5750611bc7612b6b565b80611bd25750611bee565b8060405162461bcd60e51b81526004016106d19190612886565b505b60405162461bcd60e51b815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e20455243313135356044820152732932b1b2b4bb32b91034b6b83632b6b2b73a32b960611b60648201526084016106d1565b6001600160e01b0319811663bc197c8160e01b14611b0f5760405162461bcd60e51b81526004016106d190612899565b60408051600180825281830190925260609160009190602080830190803683370190505090508281600081518110611ccb57634e487b7160e01b600052603260045260246000fd5b602090810291909101015292915050565b6001600160a01b0384163b1561172f5760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e6190611d209089908990889088908890600401612809565b602060405180830381600087803b158015611d3a57600080fd5b505af1925050508015611d6a575060408051601f3d908101601f19168201909252611d679181019061259f565b60015b611d7657611bb2612b53565b6001600160e01b0319811663f23a6e6160e01b14611b0f5760405162461bcd60e51b81526004016106d190612899565b6000611db28383611db9565b9392505050565b6000815160411415611ded5760208201516040830151606084015160001a611de386828585611e5d565b93505050506106fd565b815160401415611e155760208201516040830151611e0c858383612006565b925050506106fd565b60405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e6774680060448201526064016106d1565b60007f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0821115611eda5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b60648201526084016106d1565b8360ff16601b1480611eef57508360ff16601c145b611f465760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b60648201526084016106d1565b6040805160008082526020820180845288905260ff871692820192909252606081018590526080810184905260019060a0016020604051602081039080840390855afa158015611f9a573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116611ffd5760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e6174757265000000000000000060448201526064016106d1565b95945050505050565b60006001600160ff1b03821660ff83901c601b0161202686828785611e5d565b9695505050505050565b82805461203c90612a56565b90600052602060002090601f01602090048101928261205e57600085556120a4565b82601f1061207757805160ff19168380011785556120a4565b828001600101855582156120a4579182015b828111156120a4578251825591602001919060010190612089565b506120b09291506120b4565b5090565b5b808211156120b057600081556001016120b5565b60006001600160401b038311156120e2576120e2612b3d565b6040516120f9601f8501601f191660200182612ab6565b80915083815284848401111561210e57600080fd5b83836020830137600060208583010152509392505050565b600082601f830112612136578081fd5b81356020612143826129a5565b6040516121508282612ab6565b8381528281019150858301600585901b8701840188101561216f578586fd5b855b8581101561218d57813584529284019290840190600101612171565b5090979650505050505050565b600082601f8301126121aa578081fd5b611db2838335602085016120c9565b6000602082840312156121ca578081fd5b8135611db281612bf4565b600080604083850312156121e7578081fd5b82356121f281612bf4565b9150602083013561220281612bf4565b809150509250929050565b600080600080600060a08688031215612224578081fd5b853561222f81612bf4565b9450602086013561223f81612bf4565b935060408601356001600160401b038082111561225a578283fd5b61226689838a01612126565b9450606088013591508082111561227b578283fd5b61228789838a01612126565b9350608088013591508082111561229c578283fd5b506122a98882890161219a565b9150509295509295909350565b600080600080600060a086880312156122cd578081fd5b85356122d881612bf4565b945060208601356122e881612bf4565b9350604086013592506060860135915060808601356001600160401b03811115612310578182fd5b6122a98882890161219a565b6000806040838503121561232e578182fd5b823561233981612bf4565b915060208301358015158114612202578182fd5b6000806040838503121561235f578182fd5b823561236a81612bf4565b946020939093013593505050565b6000806040838503121561238a578182fd5b82356001600160401b03808211156123a0578384fd5b818501915085601f8301126123b3578384fd5b813560206123c0826129a5565b6040516123cd8282612ab6565b8381528281019150858301600585901b870184018b10156123ec578889fd5b8896505b8487101561241757803561240381612bf4565b8352600196909601959183019183016123f0565b509650508601359250508082111561242d578283fd5b5061243a85828601612126565b9150509250929050565b60006020808385031215612456578182fd5b82356001600160401b0381111561246b578283fd5b8301601f8101851361247b578283fd5b8035612486816129a5565b604080516124948382612ab6565b838152858101925084860160c0808602870188018b10156124b3578889fd5b8896505b858710156125205780828c0312156124cd578889fd5b83516124d881612a91565b8235815288830135898201528483013585820152606080840135908201526080808401359082015260a0808401359082015285526001969096019593870193908101906124b7565b50909998505050505050505050565b60008060008060808587031215612544578182fd5b8435935060208501356001600160401b03811115612560578283fd5b61256c8782880161219a565b949794965050505060408301359260600135919050565b600060208284031215612594578081fd5b8135611db281612c09565b6000602082840312156125b0578081fd5b8151611db281612c09565b6000602082840312156125cc578081fd5b81356001600160401b038111156125e1578182fd5b8201601f810184136125f1578182fd5b611536848235602084016120c9565b600060208284031215612611578081fd5b5035919050565b6000806040838503121561262a578182fd5b82359150602083013561220281612bf4565b6000806040838503121561264e578182fd5b50508035926020909101359150565b6000815180845260208085019450808401835b8381101561268c57815187529582019590820190600101612670565b509495945050505050565b600081518084526126af816020860160208601612a2a565b601f01601f19169290920160200192915050565b600083516126d5818460208801612a2a565b8351908301906126e9818360208801612a2a565b01949350505050565b600080845482600182811c91508083168061270e57607f831692505b602080841082141561272e57634e487b7160e01b87526022600452602487fd5b81801561274257600181146127535761277f565b60ff1986168952848901965061277f565b60008b815260209020885b868110156127775781548b82015290850190830161275e565b505084890196505b5050505050506127a0818560601b6bffffffffffffffffffffffff19169052565b601401949350505050565b6001600160a01b0386811682528516602082015260a0604082018190526000906127d79083018661265d565b82810360608401526127e9818661265d565b905082810360808401526127fd8185612697565b98975050505050505050565b6001600160a01b03868116825285166020820152604081018490526060810183905260a06080820181905260009061284390830184612697565b979650505050505050565b602081526000611db2602083018461265d565b604081526000612874604083018561265d565b8281036020840152611ffd818561265d565b602081526000611db26020830184612697565b60208082526028908201527f455243313135353a204552433131353552656365697665722072656a656374656040820152676420746f6b656e7360c01b606082015260800190565b60208082526025908201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604082015264647265737360d81b606082015260800190565b6020808252602a908201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60408201526939103a3930b739b332b960b11b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60006001600160401b038211156129be576129be612b3d565b5060051b60200190565b600082198211156129db576129db612b11565b500190565b6000826129ef576129ef612b27565b500490565b6000816000190483118215151615612a0e57612a0e612b11565b500290565b600082821015612a2557612a25612b11565b500390565b60005b83811015612a45578181015183820152602001612a2d565b838111156110b65750506000910152565b600181811c90821680612a6a57607f821691505b60208210811415612a8b57634e487b7160e01b600052602260045260246000fd5b50919050565b60c081018181106001600160401b0382111715612ab057612ab0612b3d565b60405250565b601f8201601f191681016001600160401b0381118282101715612adb57612adb612b3d565b6040525050565b6000600019821415612af657612af6612b11565b5060010190565b600082612b0c57612b0c612b27565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b600060033d1115612b6857600481823e5160e01c5b90565b600060443d1015612b795790565b6040516003193d81016004833e81513d6001600160401b038160248401118184111715612ba857505050505090565b8285019150815181811115612bc05750505050505090565b843d8701016020828501011115612bda5750505050505090565b612be960208286010187612ab6565b509095945050505050565b6001600160a01b038116811461078657600080fd5b6001600160e01b03198116811461078657600080fdfea264697066735822122004a7b810d30ec269b573c24f5c2768f68e6426c434e7548909b742a9a5e99c9564736f6c63430008040033608060405260405162000b6a38038062000b6a8339810160408190526200002691620003db565b8051825114620000985760405162461bcd60e51b815260206004820152603260248201527f5061796d656e7453706c69747465723a2070617965657320616e6420736861726044820152710cae640d8cadccee8d040dad2e6dac2e8c6d60731b60648201526084015b60405180910390fd5b6000825111620000eb5760405162461bcd60e51b815260206004820152601a60248201527f5061796d656e7453706c69747465723a206e6f2070617965657300000000000060448201526064016200008f565b60005b82518110156200016f576200015a8382815181106200011d57634e487b7160e01b600052603260045260246000fd5b60200260200101518383815181106200014657634e487b7160e01b600052603260045260246000fd5b60200260200101516200017860201b60201c565b8062000166816200052c565b915050620000ee565b50505062000576565b6001600160a01b038216620001e55760405162461bcd60e51b815260206004820152602c60248201527f5061796d656e7453706c69747465723a206163636f756e74206973207468652060448201526b7a65726f206164647265737360a01b60648201526084016200008f565b60008111620002375760405162461bcd60e51b815260206004820152601d60248201527f5061796d656e7453706c69747465723a2073686172657320617265203000000060448201526064016200008f565b6001600160a01b03821660009081526002602052604090205415620002b35760405162461bcd60e51b815260206004820152602b60248201527f5061796d656e7453706c69747465723a206163636f756e7420616c726561647960448201526a206861732073686172657360a81b60648201526084016200008f565b60048054600181019091557f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b0180546001600160a01b0319166001600160a01b0384169081179091556000908152600260205260408120829055546200031b90829062000511565b600055604080516001600160a01b0384168152602081018390527f40c340f65e17194d14ddddb073d3c9f888e3cb52b5aae0c6c7706b4fbc905fac910160405180910390a15050565b600082601f83011262000375578081fd5b815160206200038e6200038883620004eb565b620004b8565b80838252828201915082860187848660051b8901011115620003ae578586fd5b855b85811015620003ce57815184529284019290840190600101620003b0565b5090979650505050505050565b60008060408385031215620003ee578182fd5b82516001600160401b038082111562000405578384fd5b818501915085601f83011262000419578384fd5b815160206200042c6200038883620004eb565b8083825282820191508286018a848660051b89010111156200044c578889fd5b8896505b84871015620004855780516001600160a01b03811681146200047057898afd5b83526001969096019591830191830162000450565b50918801519196509093505050808211156200049f578283fd5b50620004ae8582860162000364565b9150509250929050565b604051601f8201601f191681016001600160401b0381118282101715620004e357620004e362000560565b604052919050565b60006001600160401b0382111562000507576200050762000560565b5060051b60200190565b600082198211156200052757620005276200054a565b500190565b60006000198214156200054357620005436200054a565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6105e480620005866000396000f3fe6080604052600436106100595760003560e01c806319165587146100a75780633a98ef39146100c95780638b83209b146100ed5780639852595c14610125578063ce7c2ac21461015b578063e33b7de31461019157600080fd5b366100a2577f6ef95f06320e7a25a04a175ca677b7052bdd97131872c2192525a629f51be77033604080516001600160a01b0390921682523460208301520160405180910390a1005b600080fd5b3480156100b357600080fd5b506100c76100c23660046104d7565b6101a6565b005b3480156100d557600080fd5b506000545b6040519081526020015b60405180910390f35b3480156100f957600080fd5b5061010d6101083660046104fa565b61037b565b6040516001600160a01b0390911681526020016100e4565b34801561013157600080fd5b506100da6101403660046104d7565b6001600160a01b031660009081526003602052604090205490565b34801561016757600080fd5b506100da6101763660046104d7565b6001600160a01b031660009081526002602052604090205490565b34801561019d57600080fd5b506001546100da565b6001600160a01b03811660009081526002602052604090205461021f5760405162461bcd60e51b815260206004820152602660248201527f5061796d656e7453706c69747465723a206163636f756e7420686173206e6f2060448201526573686172657360d01b60648201526084015b60405180910390fd5b60006001544761022f9190610512565b6001600160a01b03831660009081526003602090815260408083205483546002909352908320549394509192610265908561054a565b61026f919061052a565b6102799190610569565b9050806102dc5760405162461bcd60e51b815260206004820152602b60248201527f5061796d656e7453706c69747465723a206163636f756e74206973206e6f742060448201526a191d59481c185e5b595b9d60aa1b6064820152608401610216565b6001600160a01b038316600090815260036020526040902054610300908290610512565b6001600160a01b038416600090815260036020526040902055600154610327908290610512565b60015561033483826103b9565b604080516001600160a01b0385168152602081018390527fdf20fd1e76bc69d672e4814fafb2c449bba3a5369d8359adf9e05e6fde87b056910160405180910390a1505050565b60006004828154811061039e57634e487b7160e01b600052603260045260246000fd5b6000918252602090912001546001600160a01b031692915050565b804710156104095760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e63650000006044820152606401610216565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114610456576040519150601f19603f3d011682016040523d82523d6000602084013e61045b565b606091505b50509050806104d25760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d617920686176652072657665727465640000000000006064820152608401610216565b505050565b6000602082840312156104e8578081fd5b81356104f381610596565b9392505050565b60006020828403121561050b578081fd5b5035919050565b6000821982111561052557610525610580565b500190565b60008261054557634e487b7160e01b81526012600452602481fd5b500490565b600081600019048311821515161561056457610564610580565b500290565b60008282101561057b5761057b610580565b500390565b634e487b7160e01b600052601160045260246000fd5b6001600160a01b03811681146105ab57600080fd5b5056fea2646970667358221220c96491603802a35d8468b85d1304c5db15afa93e123878731b5049f1e77eb80d64736f6c63430008040033000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000016000000000000000000000000000000000000000000000000000000000000000010000000000000000000000002b206c9c1bc6f81eb3391c3f9eba2bda85e61cf4000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000640000000000000000000000000000000000000000000000000000000000000033697066732f516d50436444363541485270564d7577365a63326b6e64384e4333366476565041413772654e467074357667565000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000027100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000006a94d74f430000

Deployed Bytecode

0x6080604052600436106101cc5760003560e01c806385cb593b116100f7578063c8a830ba11610095578063e98dfdc311610064578063e98dfdc3146105e9578063f242432a14610609578063f2fde38b14610629578063f7d975771461064957600080fd5b8063c8a830ba14610540578063ca498edd1461056d578063d61007c814610580578063e985e9c5146105a057600080fd5b80639ab7d823116100d15780639ab7d8231461049b578063a22cb465146104d3578063b0098c39146104f3578063bd85b0391461051357600080fd5b806385cb593b146103e75780638c7a63ae146104075780638da5cb5b1461047357600080fd5b80631c6121aa1161016f578063704f09a61161013e578063704f09a6146103a2578063706c1e6f146103b5578063715018a6146103bd57806375dadb32146103d257600080fd5b80631c6121aa146103085780632eb2c2d6146103355780634e1273f4146103555780635f868f4e1461038257600080fd5b80630e89341c116101ab5780630e89341c1461025657806312e74e5a1461028357806319165587146102bb5780631c4885c4146102db57600080fd5b8062fdd58e146101d157806301ffc9a71461020457806302fe530514610234575b600080fd5b3480156101dd57600080fd5b506101f16101ec36600461234d565b610669565b6040519081526020015b60405180910390f35b34801561021057600080fd5b5061022461021f366004612583565b610703565b60405190151581526020016101fb565b34801561024057600080fd5b5061025461024f3660046125bb565b610753565b005b34801561026257600080fd5b50610276610271366004612600565b610789565b6040516101fb9190612886565b34801561028f57600080fd5b506101f161029e366004612618565b600760209081526000928352604080842090915290825290205481565b3480156102c757600080fd5b506102546102d63660046121b9565b6107c4565b3480156102e757600080fd5b506101f16102f6366004612600565b600b6020526000908152604090205481565b34801561031457600080fd5b506101f1610323366004612600565b600a6020526000908152604090205481565b34801561034157600080fd5b5061025461035036600461220d565b610826565b34801561036157600080fd5b50610375610370366004612378565b6108b6565b6040516101fb919061284e565b34801561038e57600080fd5b5061025461039d366004612600565b610a17565b6102546103b036600461263c565b610b3f565b610254610bfb565b3480156103c957600080fd5b50610254610c85565b3480156103de57600080fd5b50610276610cbb565b3480156103f357600080fd5b506102546104023660046125bb565b610d49565b34801561041357600080fd5b50610427610422366004612600565b610d86565b6040516101fb9190600060c082019050825182526020830151602083015260408301516040830152606083015160608301526080830151608083015260a083015160a083015292915050565b34801561047f57600080fd5b506004546040516001600160a01b0390911681526020016101fb565b3480156104a757600080fd5b506101f16104b6366004612618565b600860209081526000928352604080842090915290825290205481565b3480156104df57600080fd5b506102546104ee36600461231c565b610e18565b3480156104ff57600080fd5b5061025461050e36600461263c565b610eef565b34801561051f57600080fd5b506101f161052e366004612600565b6000908152600d602052604090205490565b34801561054c57600080fd5b506101f161055b366004612600565b600c6020526000908152604090205481565b61025461057b36600461252f565b610f2e565b34801561058c57600080fd5b5061025461059b366004612444565b6110bc565b3480156105ac57600080fd5b506102246105bb3660046121d5565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205460ff1690565b3480156105f557600080fd5b5061025461060436600461263c565b6111d9565b34801561061557600080fd5b506102546106243660046122b6565b611218565b34801561063557600080fd5b506102546106443660046121b9565b61129f565b34801561065557600080fd5b5061025461066436600461263c565b611337565b60006001600160a01b0383166106da5760405162461bcd60e51b815260206004820152602b60248201527f455243313135353a2062616c616e636520717565727920666f7220746865207a60448201526a65726f206164647265737360a81b60648201526084015b60405180910390fd5b506000818152602081815260408083206001600160a01b03861684529091529020545b92915050565b60006001600160e01b03198216636cdb3d1360e11b148061073457506001600160e01b031982166303a24d0760e21b145b806106fd57506301ffc9a760e01b6001600160e01b03198316146106fd565b6004546001600160a01b0316331461077d5760405162461bcd60e51b81526004016106d190612970565b61078681611376565b50565b606061079482611389565b61079d8361141d565b6040516020016107ae9291906126c3565b6040516020818303038152906040529050919050565b600e54604051631916558760e01b81526001600160a01b03838116600483015290911690631916558790602401600060405180830381600087803b15801561080b57600080fd5b505af115801561081f573d6000803e3d6000fd5b5050505050565b6001600160a01b038516331480610842575061084285336105bb565b6108a95760405162461bcd60e51b815260206004820152603260248201527f455243313135353a207472616e736665722063616c6c6572206973206e6f74206044820152711bdddb995c881b9bdc88185c1c1c9bdd995960721b60648201526084016106d1565b61081f858585858561153e565b6060815183511461091b5760405162461bcd60e51b815260206004820152602960248201527f455243313135353a206163636f756e747320616e6420696473206c656e677468604482015268040dad2e6dac2e8c6d60bb1b60648201526084016106d1565b600083516001600160401b0381111561094457634e487b7160e01b600052604160045260246000fd5b60405190808252806020026020018201604052801561096d578160200160208202803683370190505b50905060005b8451811015610a0f576109d485828151811061099f57634e487b7160e01b600052603260045260246000fd5b60200260200101518583815181106109c757634e487b7160e01b600052603260045260246000fd5b6020026020010151610669565b8282815181106109f457634e487b7160e01b600052603260045260246000fd5b6020908102919091010152610a0881612ae2565b9050610973565b509392505050565b6004546001600160a01b03163314610a415760405162461bcd60e51b81526004016106d190612970565b6000818152600d602052604090205415610a9d5760405162461bcd60e51b815260206004820152601760248201527f526573657276657320616c72656164792074616b656e2e00000000000000000060448201526064016106d1565b600081815260096020526040902060040154610aee5760405162461bcd60e51b815260206004820152601060248201526f1c995cd95c9d9959081b9bdd081cd95d60821b60448201526064016106d1565b610b1f3382600960008581526020019081526020016000206004015460405180602001604052806000815250611737565b600090815260096020908152604080832060040154600d90925290912055565b6000828152600960209081526040808320600201546008835281842033855290925290912054610b709083906129c8565b1115610bbe5760405162461bcd60e51b815260206004820152601a60248201527f596f752063616e6e6f74206d696e742074686973206d616e792e00000000000060448201526064016106d1565b600082815260086020908152604080832033845290915281208054839290610be79084906129c8565b90915550610bf790508282611841565b5050565b6004546001600160a01b03163314610c255760405162461bcd60e51b81526004016106d190612970565b600e546040516000916001600160a01b03169047908381818185875af1925050503d8060008114610c72576040519150601f19603f3d011682016040523d82523d6000602084013e610c77565b606091505b505090508061078657600080fd5b6004546001600160a01b03163314610caf5760405162461bcd60e51b81526004016106d190612970565b610cb9600061193e565b565b60058054610cc890612a56565b80601f0160208091040260200160405190810160405280929190818152602001828054610cf490612a56565b8015610d415780601f10610d1657610100808354040283529160200191610d41565b820191906000526020600020905b815481529060010190602001808311610d2457829003601f168201915b505050505081565b6004546001600160a01b03163314610d735760405162461bcd60e51b81526004016106d190612970565b8051610bf7906005906020840190612030565b610dbf6040518060c001604052806000815260200160008152602001600081526020016000815260200160008152602001600081525090565b50600090815260096020908152604091829020825160c08101845281548152600182015492810192909252600281015492820192909252600382015460608201526004820154608082015260059091015460a082015290565b336001600160a01b0383161415610e835760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2073657474696e6720617070726f76616c20737461747573604482015268103337b91039b2b63360b91b60648201526084016106d1565b3360008181526001602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6004546001600160a01b03163314610f195760405162461bcd60e51b81526004016106d190612970565b60009182526009602052604090912060010155565b610f388484611990565b610f8e5760405162461bcd60e51b815260206004820152602160248201527f5468697320686173682773207369676e617475726520697320696e76616c69646044820152601760f91b60648201526084016106d1565b83610f98336119c8565b14610ffe5760405162461bcd60e51b815260206004820152603060248201527f5468652061646472657373206861736820646f6573206e6f74206d617463682060448201526f3a34329039b4b3b732b2103430b9b41760811b60648201526084016106d1565b600082815260096020908152604080832060010154600783528184203385529092529091205461102f9083906129c8565b111561107d5760405162461bcd60e51b815260206004820152601a60248201527f596f752063616e6e6f74206d696e742074686973206d616e792e00000000000060448201526064016106d1565b6000828152600760209081526040808320338452909152812080548392906110a69084906129c8565b909155506110b690508282611841565b50505050565b6004546001600160a01b031633146110e65760405162461bcd60e51b81526004016106d190612970565b6000815190506111256040518060c001604052806000815260200160008152602001600081526020016000815260200160008152602001600081525090565b6000805b8381101561081f5784818151811061115157634e487b7160e01b600052603260045260246000fd5b602090810291909101810151805160008181526009845260409081902083518155938301516001850155820151600284015560608201516003840181905560808301516004850181905560a084015160059095019490945591955093506111b891906129c8565b6000838152600c6020526040902055806111d181612ae2565b915050611129565b6004546001600160a01b031633146112035760405162461bcd60e51b81526004016106d190612970565b60009182526009602052604090912060020155565b6001600160a01b038516331480611234575061123485336105bb565b6112925760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260448201526808185c1c1c9bdd995960ba1b60648201526084016106d1565b61081f85858585856119fb565b6004546001600160a01b031633146112c95760405162461bcd60e51b81526004016106d190612970565b6001600160a01b03811661132e5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016106d1565b6107868161193e565b6004546001600160a01b031633146113615760405162461bcd60e51b81526004016106d190612970565b60009182526009602052604090912060050155565b8051610bf7906002906020840190612030565b60606002805461139890612a56565b80601f01602080910402602001604051908101604052809291908181526020018280546113c490612a56565b80156114115780601f106113e657610100808354040283529160200191611411565b820191906000526020600020905b8154815290600101906020018083116113f457829003601f168201915b50505050509050919050565b6060816114415750506040805180820190915260018152600360fc1b602082015290565b8160005b811561146b578061145581612ae2565b91506114649050600a836129e0565b9150611445565b6000816001600160401b0381111561149357634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156114bd576020820181803683370190505b5090505b8415611536576114d2600183612a13565b91506114df600a86612afd565b6114ea9060306129c8565b60f81b81838151811061150d57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a90535061152f600a866129e0565b94506114c1565b949350505050565b81518351146115a05760405162461bcd60e51b815260206004820152602860248201527f455243313135353a2069647320616e6420616d6f756e7473206c656e677468206044820152670dad2e6dac2e8c6d60c31b60648201526084016106d1565b6001600160a01b0384166115c65760405162461bcd60e51b81526004016106d1906128e1565b3360005b84518110156116c95760008582815181106115f557634e487b7160e01b600052603260045260246000fd5b60200260200101519050600085838151811061162157634e487b7160e01b600052603260045260246000fd5b602090810291909101810151600084815280835260408082206001600160a01b038e1683529093529190912054909150818110156116715760405162461bcd60e51b81526004016106d190612926565b6000838152602081815260408083206001600160a01b038e8116855292528083208585039055908b168252812080548492906116ae9084906129c8565b92505081905550505050806116c290612ae2565b90506115ca565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051611719929190612861565b60405180910390a461172f818787878787611b18565b505050505050565b6001600160a01b0384166117975760405162461bcd60e51b815260206004820152602160248201527f455243313135353a206d696e7420746f20746865207a65726f206164647265736044820152607360f81b60648201526084016106d1565b336117b1816000876117a888611c83565b61081f88611c83565b6000848152602081815260408083206001600160a01b0389168452909152812080548592906117e19084906129c8565b909155505060408051858152602081018590526001600160a01b0380881692600092918516917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a461081f81600087878787611cdc565b600082815260096020526040902060050154349061185f90836129f4565b1461189e5760405162461bcd60e51b815260206004820152600f60248201526e24b73b30b634b21030b6b7bab73a1760891b60448201526064016106d1565b6000828152600c6020908152604080832054600d909252909120546118c49083906129c8565b11156118fe5760405162461bcd60e51b815260206004820152600960248201526829b7b6321037baba1760b91b60448201526064016106d1565b6000828152600d60205260408120805483929061191c9084906129c8565b92505081905550610bf733838360405180602001604052806000815250611737565b600480546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60006119a46004546001600160a01b031690565b6001600160a01b03166119b78484611da6565b6001600160a01b0316149392505050565b60006005826040516020016119de9291906126f2565b604051602081830303815290604052805190602001209050919050565b6001600160a01b038416611a215760405162461bcd60e51b81526004016106d1906128e1565b33611a318187876117a888611c83565b6000848152602081815260408083206001600160a01b038a16845290915290205483811015611a725760405162461bcd60e51b81526004016106d190612926565b6000858152602081815260408083206001600160a01b038b8116855292528083208785039055908816825281208054869290611aaf9084906129c8565b909155505060408051868152602081018690526001600160a01b03808916928a821692918616917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4611b0f828888888888611cdc565b50505050505050565b6001600160a01b0384163b1561172f5760405163bc197c8160e01b81526001600160a01b0385169063bc197c8190611b5c90899089908890889088906004016127ab565b602060405180830381600087803b158015611b7657600080fd5b505af1925050508015611ba6575060408051601f3d908101601f19168201909252611ba39181019061259f565b60015b611c5357611bb2612b53565b806308c379a01415611bec5750611bc7612b6b565b80611bd25750611bee565b8060405162461bcd60e51b81526004016106d19190612886565b505b60405162461bcd60e51b815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e20455243313135356044820152732932b1b2b4bb32b91034b6b83632b6b2b73a32b960611b60648201526084016106d1565b6001600160e01b0319811663bc197c8160e01b14611b0f5760405162461bcd60e51b81526004016106d190612899565b60408051600180825281830190925260609160009190602080830190803683370190505090508281600081518110611ccb57634e487b7160e01b600052603260045260246000fd5b602090810291909101015292915050565b6001600160a01b0384163b1561172f5760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e6190611d209089908990889088908890600401612809565b602060405180830381600087803b158015611d3a57600080fd5b505af1925050508015611d6a575060408051601f3d908101601f19168201909252611d679181019061259f565b60015b611d7657611bb2612b53565b6001600160e01b0319811663f23a6e6160e01b14611b0f5760405162461bcd60e51b81526004016106d190612899565b6000611db28383611db9565b9392505050565b6000815160411415611ded5760208201516040830151606084015160001a611de386828585611e5d565b93505050506106fd565b815160401415611e155760208201516040830151611e0c858383612006565b925050506106fd565b60405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e6774680060448201526064016106d1565b60007f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0821115611eda5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b60648201526084016106d1565b8360ff16601b1480611eef57508360ff16601c145b611f465760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b60648201526084016106d1565b6040805160008082526020820180845288905260ff871692820192909252606081018590526080810184905260019060a0016020604051602081039080840390855afa158015611f9a573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116611ffd5760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e6174757265000000000000000060448201526064016106d1565b95945050505050565b60006001600160ff1b03821660ff83901c601b0161202686828785611e5d565b9695505050505050565b82805461203c90612a56565b90600052602060002090601f01602090048101928261205e57600085556120a4565b82601f1061207757805160ff19168380011785556120a4565b828001600101855582156120a4579182015b828111156120a4578251825591602001919060010190612089565b506120b09291506120b4565b5090565b5b808211156120b057600081556001016120b5565b60006001600160401b038311156120e2576120e2612b3d565b6040516120f9601f8501601f191660200182612ab6565b80915083815284848401111561210e57600080fd5b83836020830137600060208583010152509392505050565b600082601f830112612136578081fd5b81356020612143826129a5565b6040516121508282612ab6565b8381528281019150858301600585901b8701840188101561216f578586fd5b855b8581101561218d57813584529284019290840190600101612171565b5090979650505050505050565b600082601f8301126121aa578081fd5b611db2838335602085016120c9565b6000602082840312156121ca578081fd5b8135611db281612bf4565b600080604083850312156121e7578081fd5b82356121f281612bf4565b9150602083013561220281612bf4565b809150509250929050565b600080600080600060a08688031215612224578081fd5b853561222f81612bf4565b9450602086013561223f81612bf4565b935060408601356001600160401b038082111561225a578283fd5b61226689838a01612126565b9450606088013591508082111561227b578283fd5b61228789838a01612126565b9350608088013591508082111561229c578283fd5b506122a98882890161219a565b9150509295509295909350565b600080600080600060a086880312156122cd578081fd5b85356122d881612bf4565b945060208601356122e881612bf4565b9350604086013592506060860135915060808601356001600160401b03811115612310578182fd5b6122a98882890161219a565b6000806040838503121561232e578182fd5b823561233981612bf4565b915060208301358015158114612202578182fd5b6000806040838503121561235f578182fd5b823561236a81612bf4565b946020939093013593505050565b6000806040838503121561238a578182fd5b82356001600160401b03808211156123a0578384fd5b818501915085601f8301126123b3578384fd5b813560206123c0826129a5565b6040516123cd8282612ab6565b8381528281019150858301600585901b870184018b10156123ec578889fd5b8896505b8487101561241757803561240381612bf4565b8352600196909601959183019183016123f0565b509650508601359250508082111561242d578283fd5b5061243a85828601612126565b9150509250929050565b60006020808385031215612456578182fd5b82356001600160401b0381111561246b578283fd5b8301601f8101851361247b578283fd5b8035612486816129a5565b604080516124948382612ab6565b838152858101925084860160c0808602870188018b10156124b3578889fd5b8896505b858710156125205780828c0312156124cd578889fd5b83516124d881612a91565b8235815288830135898201528483013585820152606080840135908201526080808401359082015260a0808401359082015285526001969096019593870193908101906124b7565b50909998505050505050505050565b60008060008060808587031215612544578182fd5b8435935060208501356001600160401b03811115612560578283fd5b61256c8782880161219a565b949794965050505060408301359260600135919050565b600060208284031215612594578081fd5b8135611db281612c09565b6000602082840312156125b0578081fd5b8151611db281612c09565b6000602082840312156125cc578081fd5b81356001600160401b038111156125e1578182fd5b8201601f810184136125f1578182fd5b611536848235602084016120c9565b600060208284031215612611578081fd5b5035919050565b6000806040838503121561262a578182fd5b82359150602083013561220281612bf4565b6000806040838503121561264e578182fd5b50508035926020909101359150565b6000815180845260208085019450808401835b8381101561268c57815187529582019590820190600101612670565b509495945050505050565b600081518084526126af816020860160208601612a2a565b601f01601f19169290920160200192915050565b600083516126d5818460208801612a2a565b8351908301906126e9818360208801612a2a565b01949350505050565b600080845482600182811c91508083168061270e57607f831692505b602080841082141561272e57634e487b7160e01b87526022600452602487fd5b81801561274257600181146127535761277f565b60ff1986168952848901965061277f565b60008b815260209020885b868110156127775781548b82015290850190830161275e565b505084890196505b5050505050506127a0818560601b6bffffffffffffffffffffffff19169052565b601401949350505050565b6001600160a01b0386811682528516602082015260a0604082018190526000906127d79083018661265d565b82810360608401526127e9818661265d565b905082810360808401526127fd8185612697565b98975050505050505050565b6001600160a01b03868116825285166020820152604081018490526060810183905260a06080820181905260009061284390830184612697565b979650505050505050565b602081526000611db2602083018461265d565b604081526000612874604083018561265d565b8281036020840152611ffd818561265d565b602081526000611db26020830184612697565b60208082526028908201527f455243313135353a204552433131353552656365697665722072656a656374656040820152676420746f6b656e7360c01b606082015260800190565b60208082526025908201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604082015264647265737360d81b606082015260800190565b6020808252602a908201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60408201526939103a3930b739b332b960b11b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60006001600160401b038211156129be576129be612b3d565b5060051b60200190565b600082198211156129db576129db612b11565b500190565b6000826129ef576129ef612b27565b500490565b6000816000190483118215151615612a0e57612a0e612b11565b500290565b600082821015612a2557612a25612b11565b500390565b60005b83811015612a45578181015183820152602001612a2d565b838111156110b65750506000910152565b600181811c90821680612a6a57607f821691505b60208210811415612a8b57634e487b7160e01b600052602260045260246000fd5b50919050565b60c081018181106001600160401b0382111715612ab057612ab0612b3d565b60405250565b601f8201601f191681016001600160401b0381118282101715612adb57612adb612b3d565b6040525050565b6000600019821415612af657612af6612b11565b5060010190565b600082612b0c57612b0c612b27565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b600060033d1115612b6857600481823e5160e01c5b90565b600060443d1015612b795790565b6040516003193d81016004833e81513d6001600160401b038160248401118184111715612ba857505050505090565b8285019150815181811115612bc05750505050505090565b843d8701016020828501011115612bda5750505050505090565b612be960208286010187612ab6565b509095945050505050565b6001600160a01b038116811461078657600080fd5b6001600160e01b03198116811461078657600080fdfea264697066735822122004a7b810d30ec269b573c24f5c2768f68e6426c434e7548909b742a9a5e99c9564736f6c63430008040033

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

000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000016000000000000000000000000000000000000000000000000000000000000000010000000000000000000000002b206c9c1bc6f81eb3391c3f9eba2bda85e61cf4000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000640000000000000000000000000000000000000000000000000000000000000033697066732f516d50436444363541485270564d7577365a63326b6e64384e4333366476565041413772654e467074357667565000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000027100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000006a94d74f430000

-----Decoded View---------------
Arg [0] : payees (address[]): 0x2b206C9c1BC6f81eB3391c3F9EBa2BdA85e61CF4
Arg [1] : shares (uint256[]): 100
Arg [2] : _uri (string): ipfs/QmPCdD65AHRpVMuw6Zc2knd8NC36dvVPAA7reNFpt5vgVP
Arg [3] : _tokenInfos (tuple[]): System.Collections.Generic.List`1[Nethereum.ABI.FunctionEncoding.ParameterOutput]

-----Encoded View---------------
18 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000080
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000c0
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000100
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000160
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000001
Arg [5] : 0000000000000000000000002b206c9c1bc6f81eb3391c3f9eba2bda85e61cf4
Arg [6] : 0000000000000000000000000000000000000000000000000000000000000001
Arg [7] : 0000000000000000000000000000000000000000000000000000000000000064
Arg [8] : 0000000000000000000000000000000000000000000000000000000000000033
Arg [9] : 697066732f516d50436444363541485270564d7577365a63326b6e64384e4333
Arg [10] : 366476565041413772654e467074357667565000000000000000000000000000
Arg [11] : 0000000000000000000000000000000000000000000000000000000000000001
Arg [12] : 0000000000000000000000000000000000000000000000000000000000000001
Arg [13] : 0000000000000000000000000000000000000000000000000000000000000001
Arg [14] : 0000000000000000000000000000000000000000000000000000000000000000
Arg [15] : 0000000000000000000000000000000000000000000000000000000000002710
Arg [16] : 0000000000000000000000000000000000000000000000000000000000000000
Arg [17] : 000000000000000000000000000000000000000000000000006a94d74f430000


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.