ETH Price: $2,614.48 (+1.62%)

Contract

0x51dee0CE46EC4D08b64A4CB7698997813A3ec655
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Mint191677132024-02-06 7:27:35253 days ago1707204455IN
0x51dee0CE...13A3ec655
0 ETH0.01337472149.98958725
Mint185074782023-11-05 18:06:11345 days ago1699207571IN
0x51dee0CE...13A3ec655
0 ETH0.0021988624.6556469
Mint184134812023-10-23 14:11:47359 days ago1698070307IN
0x51dee0CE...13A3ec655
0 ETH0.0025646735.57947645
Safe Transfer Fr...184134712023-10-23 14:09:47359 days ago1698070187IN
0x51dee0CE...13A3ec655
0 ETH0.0025137142.58086627
Mint182213262023-09-26 17:05:47385 days ago1695747947IN
0x51dee0CE...13A3ec655
0 ETH0.002077739.81574921
Mint182208172023-09-26 15:22:35386 days ago1695741755IN
0x51dee0CE...13A3ec655
0 ETH0.0016384223.64824028
Mint181833672023-09-21 9:30:11391 days ago1695288611IN
0x51dee0CE...13A3ec655
0 ETH0.0009109310.21695896
Mint181311582023-09-14 1:10:35398 days ago1694653835IN
0x51dee0CE...13A3ec655
0 ETH0.0025735728.84039771
Mint181310752023-09-14 0:53:35398 days ago1694652815IN
0x51dee0CE...13A3ec655
0 ETH0.0017467819.57515981
Mint181310692023-09-14 0:52:23398 days ago1694652743IN
0x51dee0CE...13A3ec655
0 ETH0.0015464917.3329141
Mint181310552023-09-14 0:49:35398 days ago1694652575IN
0x51dee0CE...13A3ec655
0 ETH0.0012952614.51516594
Mint181310212023-09-14 0:42:47398 days ago1694652167IN
0x51dee0CE...13A3ec655
0 ETH0.0011597413
Mint181310002023-09-14 0:38:35398 days ago1694651915IN
0x51dee0CE...13A3ec655
0 ETH0.001256714.08304541
Mint181307732023-09-13 23:52:59398 days ago1694649179IN
0x51dee0CE...13A3ec655
0 ETH0.000848399.50743964
Mint181307572023-09-13 23:49:35398 days ago1694648975IN
0x51dee0CE...13A3ec655
0 ETH0.000880739.86988855
Mint181304652023-09-13 22:49:59398 days ago1694645399IN
0x51dee0CE...13A3ec655
0 ETH0.00085289.55688674
Mint181294782023-09-13 19:31:35398 days ago1694633495IN
0x51dee0CE...13A3ec655
0 ETH0.001424215.96021296
Mint181294662023-09-13 19:29:11398 days ago1694633351IN
0x51dee0CE...13A3ec655
0 ETH0.0008563516.39427699
Mint181293962023-09-13 19:15:11398 days ago1694632511IN
0x51dee0CE...13A3ec655
0 ETH0.0016040417.97552674
Mint181293732023-09-13 19:10:35398 days ago1694632235IN
0x51dee0CE...13A3ec655
0 ETH0.0018790621.05749997
Set Approval For...181292462023-09-13 18:44:47398 days ago1694630687IN
0x51dee0CE...13A3ec655
0 ETH0.0007448316.15142228
Set Approval For...181278552023-09-13 14:03:47399 days ago1694613827IN
0x51dee0CE...13A3ec655
0 ETH0.0011866325.73154406
Mint181278502023-09-13 14:02:47399 days ago1694613767IN
0x51dee0CE...13A3ec655
0 ETH0.0025433328.50536798
Mint181277862023-09-13 13:49:59399 days ago1694612999IN
0x51dee0CE...13A3ec655
0 ETH0.0012458313.96313604
Mint181277452023-09-13 13:41:35399 days ago1694612495IN
0x51dee0CE...13A3ec655
0 ETH0.0014714416.48958752
View all transactions

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
OasisX1155

Compiler Version
v0.8.17+commit.8df45f5f

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 14 : OasisX1155.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

/// @notice tokens
import "@openzeppelin/contracts/token/ERC1155/extensions/ERC1155Supply.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@openzeppelin/contracts/utils/Counters.sol";
import "@openzeppelin/contracts/security/Pausable.sol";
import "@openzeppelin/contracts/utils/Strings.sol";

/**
 * @title OasisX 1155 contract
 * @author Cryptoware ME
 **/

contract OasisX1155 is ERC1155Supply, Pausable , ReentrancyGuard{
    /// @notice using Strings for uints conversion (tokenId)
    using Strings for uint256;

    /// @notice using Address for addresses extended functionality
    using Address for address;

    /// @notice using a counter to increment next Id to be minted
    using Counters for Counters.Counter;

    /// @notice Mapping minted tokens by address
    mapping(address => uint256) public minted;

    /// @notice tokenIds
    uint256 public tokenIds;

    /// @notice Price of token per ID
    mapping(uint256 => uint256) public mintPrice;

    /// @notice token id to be minted next
    Counters.Counter private _tokenIdTracker;

    /// @notice public metadata locked flag
    bool public locked = false;

    /// @notice address owner
    address public owner;

    /// @notice Token name
    string private _name;

    /// @notice Token symbol
    string private _symbol;

    /// @notice Address that will collect mint fees;
    address payable private _mintingBeneficiary;

    /// @notice Max token Id that can be minted;
    uint8 private maxId = 2;

    /// @notice factory address;
    address private factoryAddress;

    /// @notice Minting events definition
    event AdminMinted
    (
        address indexed to,
        uint256 indexed tokenId,
        uint256 quantity
    );

    event Minted
    (
        address indexed to,
        uint256 indexed tokenId,
        uint256 quantity
    );

    event MaxIdIncrementedwithPrice
    (
        uint256 indexed newId,
        uint256 indexed mintPrice
    );

    event MintCostChanged
    (
        uint256 indexed tokenId,
        uint256 indexed mintCost
    );

    event MintBeneficiaryChanged
    (
        address indexed beneficiary
    );

    event FactoryAddressChanged
    (
        address indexed FactoryAddress
    );

    event AvailableTokens
    (
        uint256[] indexed tokenIds,
        uint256[] indexed mintCosts
    );

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

    /// @notice metadata not locked modifier
    modifier notLocked() {
        require(!locked, "OasisX1155: Metadata URIs are locked");
        _;
    }

    /// @notice only owner modifier
    modifier onlyOwner() {
        require(msg.sender == owner, "OasisX1155: only owner");
        _;
    }

    /// @notice owner of factory modifier
    modifier ownerOrFactory(address account) {
        require(
            account == _msgSender() ||
                isApprovedForAll(account, _msgSender()) ||
                _msgSender() == factoryAddress,
            "OasisX1155: caller is not owner nor approved nor the factory"
        );
        _;
    }

    /**
     * @notice constructor
     * @param name_ the name of the Contract
     * @param symbol_ the token symbol
     * @param uri_ token metadata base uri
     **/
    constructor(
        string memory name_,
        string memory symbol_,
        string memory uri_,
        uint256[] memory tokenIds_,
        uint256[] memory mintCostPerTokenId_,
        address mbeneficiary_
    ) ERC1155(uri_) {
        require
        (
            mbeneficiary_ != address(0),
            "OasisX1155 : Address cannot be zero"
        );
        owner = msg.sender;
        _name = name_;
        _symbol = symbol_;
        _initialAddTokens(tokenIds_, mintCostPerTokenId_);
        _mintingBeneficiary = payable(mbeneficiary_);
    }

    ///@notice returns name of token
    function name() external view virtual returns (string memory) {
        return _name;
    }

    /// @notice returns symbol of token
    function symbol() external view virtual returns (string memory) {
        return _symbol;
    }

    /// @notice change max token Id
    function incrementMaxId(uint256 mintPrice_) external onlyOwner {
        maxId++;
        mintPrice[maxId] = mintPrice_;
        emit MaxIdIncrementedwithPrice(maxId, mintPrice_);
    }

    /// @notice returns max token Id
    function getMaxId() external view returns (uint8) {
        return maxId;
    }

    /**
     * @notice changes the minting cost
     * @param mintCost new minting cost
     **/
    function changeMintCost(uint256 mintCost, uint256 tokenId)
        external
        onlyOwner
    {
        require(
            mintCost != mintPrice[tokenId],
            "OasisX1155: mint Cost cannot be same as previous"
        );
        mintPrice[tokenId] = mintCost;
        emit MintCostChanged(tokenId, mintCost);
    }

    /**
     * @notice setting token URI
     * @param uri_ new URI
     */
    function setURI(string memory uri_) external onlyOwner {
        require(
            keccak256(abi.encodePacked(super.uri(0))) !=
                keccak256(abi.encodePacked(uri_)),
            "ERROR: URI same as previous"
        );
        _setURI(uri_);
    }

    /**
     * @notice return existing URI
     * @param id id of the token
     */
    function uri(uint256 id)
        public
        view
        virtual
        override
        returns (string memory)
    {
        require
        (
            exists(id),
            "OasisX1155: Nonexistent token"
        );
        return string(abi.encodePacked(super.uri(0), id.toString(), ".json"));
    }

    /**
     * @notice nextId to mint
     **/
    function nextId() internal view returns (uint256) {
        return _tokenIdTracker.current();
    }

    /// @notice pausing the contract minting and token transfer
    function pause() external virtual onlyOwner {
        _pause();
    }

    /// @notice unpausing the contract minting and token transfer
    function unpause() external virtual onlyOwner {
        _unpause();
    }

    /**
     * @notice a function for admins to mint cost-free
     * @param to the address to send the minted token to
     * @param amount amount of tokens to mint
     **/
    function adminMint(
        address to,
        uint256 id,
        uint256 amount
    ) external whenNotPaused onlyOwner nonReentrant{
        require
        (
            to != address(0),
            "OasisX1155: Address cannot be 0"
        );

        require
        (
            id <= maxId,
            "OasisX1155: Token id mismatch"
        );

        minted[to] = amount;

        _mint(to, id, amount, "");

        emit AdminMinted(to, id, amount);
    }

    /**
     * @notice the public/presale minting function
     * @param to the address to send the minted token to
     * @param id id of the token to mint
     * @param amount quantity of tokens to mint
     **/
    function mint(
        address to,
        uint256 id,
        uint256 amount
    ) external payable nonReentrant{
        uint256 received = msg.value;

        require
        (
            to != address(0),
            "OasisX1155: Address cannot be 0"
        );
        require(
            received == mintPrice[id]*(amount),
            "OasisX1155: Ether sent mismatch with mint price"
        );
        require
        (
            id <= maxId,
            "OasisX1155: Token id mismatch"
        );

        minted[to] = amount;

        _mint(to, id, amount, "");

        emit Minted(to, id, amount);

        _forwardFunds(received);
    }

    /**
     * @notice changes the minting beneficiary
     * @param beneficiary new benefeciary address
     **/

    function changeMintBeneficiary(address beneficiary) external onlyOwner {
        require
        (
            beneficiary != address(0),
            "OasisX1155: Minting beneficiary cannot be address 0"
        );

        require
        (
            beneficiary != _mintingBeneficiary,
            "OasisX1155: beneficiary cannot be the same as previous"
        );
        _mintingBeneficiary = payable(beneficiary);
        emit MintBeneficiaryChanged(beneficiary);
    }

    /**
     * @notice transfer batch of tokens
     * @param from address to transfer from
     * @param to address to transfer to
     * @param ids ids of the token transfered
     * @param amounts amount of token to transfer
     * @param data data to pass while transfer
     */
    function batchTransferFrom(
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) external {
        safeBatchTransferFrom(from, to, ids, amounts, data);
    }

    /**
     * @notice transfer token
     * @param from address to transfer from
     * @param to address to transfer to
     * @param id id of the token transfered
     * @param amount amount of token to transfer
     * @param data data to pass while transfer
     */
    function transferFrom(
        address from,
        address to,
        uint256 id,
        uint256 amount,
        bytes memory data
    ) external {
        safeTransferFrom(from, to, id, amount, data);
    }

    /**
     * @notice burn function requires approval or factoryAddress
     * @param account address to transfer from
     * @param id address to transfer to
     * @param value id of the token transfered
     */
    function burn(
        address account,
        uint256 id,
        uint256 value
    ) external virtual ownerOrFactory(account) {
        _burn(account, id, value);
    }

    /**
     * @notice Change factory address
     * @param factoryAddress_ factory address which calls initialize proxy
     */
    function changeFactoryAddress(address factoryAddress_) external onlyOwner {
        require(
            factoryAddress != factoryAddress_,
            "OasisX1155: Address cannot be the same as previous"
        );
        factoryAddress = factoryAddress_;
        emit FactoryAddressChanged(factoryAddress_);
    }

    /**
     * @notice add initial token ids with their respective supplies
     * @param tokenIds_ list of token ids to be added
     * @param mintCostPerTokenId_ mint price per token Id
     **/
    function _initialAddTokens(
        uint256[] memory tokenIds_,
        uint256[] memory mintCostPerTokenId_
    ) private {
        require(
            tokenIds_.length == mintCostPerTokenId_.length,
            "OasisX1155: IDs/MintCost arity mismatch"
        );
        require(tokenIds_.length > 0, "OasisX1155: Please add tokens");
        for (uint256 i = 0; i < tokenIds_.length; i++) {
            mintPrice[tokenIds_[i]] = mintCostPerTokenId_[i];
        }
        emit AvailableTokens(tokenIds_, mintCostPerTokenId_);
    }

    /**
     * @notice Determines how ETH is stored/forwarded on purchases.
     * @param received amount to forward
     */

    function _forwardFunds(uint256 received) internal {
        (bool success, ) = _mintingBeneficiary.call{value: received}("");
        require(success, "OasisX1155: Failed to forward funds");
    }

    /**
     * @notice Transfers ownership of the contract to a new account (`newOwner`).
     */
    function _transferOwnership(address newOwner) external onlyOwner{
        address oldOwner = owner;
        owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }

    /**
     * @notice before token transfer hook override
     * @param operator address of the operator
     * @param from address to send tokens from
     * @param to address to send tokens to
     * @param ids ids of the tokens to send
     * @param amounts amount of each token
     * @param data data to pass while sending
     */
    function _beforeTokenTransfer(
        address operator,
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) internal virtual override(ERC1155Supply) {
        super._beforeTokenTransfer(operator, from, to, ids, amounts, data);
        require(!paused(), "OasisX1155: token transfer while paused");
    }
}

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

pragma solidity ^0.8.0;

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

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

pragma solidity ^0.8.0;

import "./IERC165.sol";

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

File 5 of 14 : Counters.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Counters.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

pragma solidity ^0.8.1;

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

        return account.code.length > 0;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

import "../IERC1155.sol";

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

File 9 of 14 : ERC1155Supply.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC1155/extensions/ERC1155Supply.sol)

pragma solidity ^0.8.0;

import "../ERC1155.sol";

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

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

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

    /**
     * @dev See {ERC1155-_beforeTokenTransfer}.
     */
    function _beforeTokenTransfer(
        address operator,
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) internal virtual override {
        super._beforeTokenTransfer(operator, from, to, ids, amounts, data);

        if (from == address(0)) {
            for (uint256 i = 0; i < ids.length; ++i) {
                _totalSupply[ids[i]] += amounts[i];
            }
        }

        if (to == address(0)) {
            for (uint256 i = 0; i < ids.length; ++i) {
                uint256 id = ids[i];
                uint256 amount = amounts[i];
                uint256 supply = _totalSupply[id];
                require(supply >= amount, "ERC1155: burn amount exceeds totalSupply");
                unchecked {
                    _totalSupply[id] = supply - amount;
                }
            }
        }
    }
}

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

pragma solidity ^0.8.0;

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

File 12 of 14 : ERC1155.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC1155/ERC1155.sol)

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 {
        _setApprovalForAll(_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();
        uint256[] memory ids = _asSingletonArray(id);
        uint256[] memory amounts = _asSingletonArray(amount);

        _beforeTokenTransfer(operator, from, to, ids, amounts, 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);

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

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

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

        _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 `to`.
     *
     * Emits a {TransferSingle} event.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the
     * acceptance magic value.
     */
    function _mint(
        address to,
        uint256 id,
        uint256 amount,
        bytes memory data
    ) internal virtual {
        require(to != address(0), "ERC1155: mint to the zero address");

        address operator = _msgSender();
        uint256[] memory ids = _asSingletonArray(id);
        uint256[] memory amounts = _asSingletonArray(amount);

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

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

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

        _doSafeTransferAcceptanceCheck(operator, address(0), to, 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);

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

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

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

        address operator = _msgSender();
        uint256[] memory ids = _asSingletonArray(id);
        uint256[] memory amounts = _asSingletonArray(amount);

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

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

        emit TransferSingle(operator, from, address(0), id, amount);

        _afterTokenTransfer(operator, from, address(0), ids, amounts, "");
    }

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

        address operator = _msgSender();

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

        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: burn amount exceeds balance");
            unchecked {
                _balances[id][from] = fromBalance - amount;
            }
        }

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

        _afterTokenTransfer(operator, from, address(0), ids, amounts, "");
    }

    /**
     * @dev Approve `operator` to operate on all of `owner` tokens
     *
     * Emits a {ApprovalForAll} event.
     */
    function _setApprovalForAll(
        address owner,
        address operator,
        bool approved
    ) internal virtual {
        require(owner != operator, "ERC1155: setting approval status for self");
        _operatorApprovals[owner][operator] = approved;
        emit ApprovalForAll(owner, operator, approved);
    }

    /**
     * @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 {}

    /**
     * @dev Hook that is called after 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 _afterTokenTransfer(
        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.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.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 13 of 14 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol)

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 making 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 14 of 14 : Pausable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (security/Pausable.sol)

pragma solidity ^0.8.0;

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

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

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

    bool private _paused;

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

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

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

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

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

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

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"name_","type":"string"},{"internalType":"string","name":"symbol_","type":"string"},{"internalType":"string","name":"uri_","type":"string"},{"internalType":"uint256[]","name":"tokenIds_","type":"uint256[]"},{"internalType":"uint256[]","name":"mintCostPerTokenId_","type":"uint256[]"},{"internalType":"address","name":"mbeneficiary_","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"AdminMinted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"},{"indexed":true,"internalType":"uint256[]","name":"mintCosts","type":"uint256[]"}],"name":"AvailableTokens","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"FactoryAddress","type":"address"}],"name":"FactoryAddressChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"newId","type":"uint256"},{"indexed":true,"internalType":"uint256","name":"mintPrice","type":"uint256"}],"name":"MaxIdIncrementedwithPrice","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"beneficiary","type":"address"}],"name":"MintBeneficiaryChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":true,"internalType":"uint256","name":"mintCost","type":"uint256"}],"name":"MintCostChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"Minted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"oldOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"indexed":false,"internalType":"uint256[]","name":"values","type":"uint256[]"}],"name":"TransferBatch","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"id","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"TransferSingle","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"value","type":"string"},{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"}],"name":"URI","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"_transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"adminMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"accounts","type":"address[]"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"}],"name":"balanceOfBatch","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"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":"batchTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"factoryAddress_","type":"address"}],"name":"changeFactoryAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"beneficiary","type":"address"}],"name":"changeMintBeneficiary","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"mintCost","type":"uint256"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"changeMintCost","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"exists","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getMaxId","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"mintPrice_","type":"uint256"}],"name":"incrementMaxId","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"locked","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"mintPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"minted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"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":"uri_","type":"string"}],"name":"setURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tokenIds","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"uri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"}]

6080604052600a805460ff19169055600d805460ff60a01b1916600160a11b1790553480156200002e57600080fd5b506040516200361a3803806200361a833981016040819052620000519162000455565b836200005d8162000142565b506004805460ff1916905560016005556001600160a01b038116620000d55760405162461bcd60e51b815260206004820152602360248201527f4f617369735831313535203a20416464726573732063616e6e6f74206265207a60448201526265726f60e81b60648201526084015b60405180910390fd5b600a8054610100600160a81b0319163361010002179055600b620000fa8782620005d6565b50600c620001098682620005d6565b5062000116838362000154565b600d80546001600160a01b0319166001600160a01b039290921691909117905550620007189350505050565b6002620001508282620005d6565b5050565b8051825114620001b75760405162461bcd60e51b815260206004820152602760248201527f4f6173697358313135353a204944732f4d696e74436f7374206172697479206d6044820152660d2e6dac2e8c6d60cb1b6064820152608401620000cc565b60008251116200020a5760405162461bcd60e51b815260206004820152601d60248201527f4f6173697358313135353a20506c656173652061646420746f6b656e730000006044820152606401620000cc565b60005b82518110156200027d578181815181106200022c576200022c620006a2565b6020026020010151600860008584815181106200024d576200024d620006a2565b602002602001015181526020019081526020016000208190555080806200027490620006b8565b9150506200020d565b50806040516200028e9190620006e0565b604051809103902082604051620002a69190620006e0565b604051908190038120907ff1f05d82a97f6ed0b10f8aa83093aa0e6338210392c0e257aa82e94afab2673790600090a35050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b03811182821017156200031b576200031b620002da565b604052919050565b600082601f8301126200033557600080fd5b81516001600160401b03811115620003515762000351620002da565b602062000367601f8301601f19168201620002f0565b82815285828487010111156200037c57600080fd5b60005b838110156200039c5785810183015182820184015282016200037f565b506000928101909101919091529392505050565b600082601f830112620003c257600080fd5b815160206001600160401b03821115620003e057620003e0620002da565b8160051b620003f1828201620002f0565b92835284810182019282810190878511156200040c57600080fd5b83870192505b848310156200042d5782518252918301919083019062000412565b979650505050505050565b80516001600160a01b03811681146200045057600080fd5b919050565b60008060008060008060c087890312156200046f57600080fd5b86516001600160401b03808211156200048757600080fd5b620004958a838b0162000323565b97506020890151915080821115620004ac57600080fd5b620004ba8a838b0162000323565b96506040890151915080821115620004d157600080fd5b620004df8a838b0162000323565b95506060890151915080821115620004f657600080fd5b620005048a838b01620003b0565b945060808901519150808211156200051b57600080fd5b506200052a89828a01620003b0565b9250506200053b60a0880162000438565b90509295509295509295565b600181811c908216806200055c57607f821691505b6020821081036200057d57634e487b7160e01b600052602260045260246000fd5b50919050565b601f821115620005d157600081815260208120601f850160051c81016020861015620005ac5750805b601f850160051c820191505b81811015620005cd57828155600101620005b8565b5050505b505050565b81516001600160401b03811115620005f257620005f2620002da565b6200060a8162000603845462000547565b8462000583565b602080601f831160018114620006425760008415620006295750858301515b600019600386901b1c1916600185901b178555620005cd565b600085815260208120601f198616915b82811015620006735788860151825594840194600190910190840162000652565b5085821015620006925787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b634e487b7160e01b600052603260045260246000fd5b600060018201620006d957634e487b7160e01b600052601160045260246000fd5b5060010190565b815160009082906020808601845b838110156200070c57815185529382019390820190600101620006ee565b50929695505050505050565b612ef280620007286000396000f3fe6080604052600436106101e15760003560e01c806372ab7e4011610102578063d29d44ee11610095578063eefc433c11610064578063eefc433c146105dc578063f06e6c9c146105fc578063f242432a1461061c578063f5298aca1461063c57600080fd5b8063d29d44ee1461051a578063d477a7121461053a578063e6a72acf14610566578063e985e9c51461059357600080fd5b8063a22cb465116100d1578063a22cb46514610493578063bd85b039146104b3578063c975af6a146104e0578063cf3090121461050057600080fd5b806372ab7e401461040c5780638456cb591461042c5780638da5cb5b1461044157806395d89b411461047e57600080fd5b80632439aa901161017a5780634f558e79116101495780634f558e791461038f5780635c975abb146103be578063605105f0146103d6578063714cff56146103f657600080fd5b80632439aa901461030d5780632eb2c2d61461032d5780633f4ba83a1461034d5780634e1273f41461036257600080fd5b806306fdde03116101b657806306fdde031461028b5780630e89341c146102ad578063156e29f6146102cd5780631e7269c5146102e057600080fd5b80624a84cb146101e6578062fdd58e1461020857806301ffc9a71461023b57806302fe53051461026b575b600080fd5b3480156101f257600080fd5b5061020661020136600461241c565b61065c565b005b34801561021457600080fd5b5061022861022336600461244f565b610864565b6040519081526020015b60405180910390f35b34801561024757600080fd5b5061025b61025636600461248f565b6108f9565b6040519015158152602001610232565b34801561027757600080fd5b50610206610286366004612554565b610949565b34801561029757600080fd5b506102a0610a28565b60405161023291906125ed565b3480156102b957600080fd5b506102a06102c8366004612600565b610aba565b6102066102db36600461241c565b610b52565b3480156102ec57600080fd5b506102286102fb366004612619565b60066020526000908152604090205481565b34801561031957600080fd5b50610206610328366004612634565b610d6b565b34801561033957600080fd5b5061020661034836600461270b565b610e4f565b34801561035957600080fd5b50610206610ee6565b34801561036e57600080fd5b5061038261037d3660046127b5565b610f1f565b60405161023291906128bb565b34801561039b57600080fd5b5061025b6103aa366004612600565b600090815260036020526040902054151590565b3480156103ca57600080fd5b5060045460ff1661025b565b3480156103e257600080fd5b506102066103f13660046128ce565b611049565b34801561040257600080fd5b5061022860075481565b34801561041857600080fd5b50610206610427366004612619565b611056565b34801561043857600080fd5b50610206611147565b34801561044d57600080fd5b50600a546104669061010090046001600160a01b031681565b6040516001600160a01b039091168152602001610232565b34801561048a57600080fd5b506102a061117e565b34801561049f57600080fd5b506102066104ae366004612933565b61118d565b3480156104bf57600080fd5b506102286104ce366004612600565b60009081526003602052604090205490565b3480156104ec57600080fd5b506102066104fb366004612619565b61119c565b34801561050c57600080fd5b50600a5461025b9060ff1681565b34801561052657600080fd5b50610206610535366004612619565b611304565b34801561054657600080fd5b50600d54600160a01b900460ff1660405160ff9091168152602001610232565b34801561057257600080fd5b50610228610581366004612600565b60086020526000908152604090205481565b34801561059f57600080fd5b5061025b6105ae36600461296f565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205460ff1690565b3480156105e857600080fd5b506102066105f7366004612600565b61138d565b34801561060857600080fd5b5061020661061736600461270b565b611447565b34801561062857600080fd5b506102066106373660046128ce565b611454565b34801561064857600080fd5b5061020661065736600461241c565b6114db565b60045460ff16156106a75760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b60448201526064015b60405180910390fd5b600a5461010090046001600160a01b031633146106d65760405162461bcd60e51b815260040161069e906129a2565b6002600554036107285760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015260640161069e565b60026005556001600160a01b0383166107835760405162461bcd60e51b815260206004820152601f60248201527f4f6173697358313135353a20416464726573732063616e6e6f74206265203000604482015260640161069e565b600d54600160a01b900460ff168211156107df5760405162461bcd60e51b815260206004820152601d60248201527f4f6173697358313135353a20546f6b656e206964206d69736d61746368000000604482015260640161069e565b6001600160a01b03831660009081526006602090815260408083208490558051918201905290815261081690849084908490611599565b81836001600160a01b03167f9ea69fe563383aa6c77c5d921052ea81ff8e9bbdcc9aa2bfebfa25a014d3a7f08360405161085291815260200190565b60405180910390a35050600160055550565b60006001600160a01b0383166108d05760405162461bcd60e51b815260206004820152602b60248201527f455243313135353a2062616c616e636520717565727920666f7220746865207a60448201526a65726f206164647265737360a81b606482015260840161069e565b506000818152602081815260408083206001600160a01b03861684529091529020545b92915050565b60006001600160e01b03198216636cdb3d1360e11b148061092a57506001600160e01b031982166303a24d0760e21b145b806108f357506301ffc9a760e01b6001600160e01b03198316146108f3565b600a5461010090046001600160a01b031633146109785760405162461bcd60e51b815260040161069e906129a2565b8060405160200161098991906129d2565b604051602081830303815290604052805190602001206109a960006116bc565b6040516020016109b991906129d2565b6040516020818303038152906040528051906020012003610a1c5760405162461bcd60e51b815260206004820152601b60248201527f4552524f523a205552492073616d652061732070726576696f75730000000000604482015260640161069e565b610a2581611750565b50565b6060600b8054610a37906129ee565b80601f0160208091040260200160405190810160405280929190818152602001828054610a63906129ee565b8015610ab05780601f10610a8557610100808354040283529160200191610ab0565b820191906000526020600020905b815481529060010190602001808311610a9357829003601f168201915b5050505050905090565b600081815260036020526040902054606090610b185760405162461bcd60e51b815260206004820152601d60248201527f4f6173697358313135353a204e6f6e6578697374656e7420746f6b656e000000604482015260640161069e565b610b2260006116bc565b610b2b8361175c565b604051602001610b3c929190612a28565b6040516020818303038152906040529050919050565b600260055403610ba45760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015260640161069e565b6002600555346001600160a01b038416610c005760405162461bcd60e51b815260206004820152601f60248201527f4f6173697358313135353a20416464726573732063616e6e6f74206265203000604482015260640161069e565b600083815260086020526040902054610c1a908390612a7d565b8114610c805760405162461bcd60e51b815260206004820152602f60248201527f4f6173697358313135353a2045746865722073656e74206d69736d617463682060448201526e77697468206d696e7420707269636560881b606482015260840161069e565b600d54600160a01b900460ff16831115610cdc5760405162461bcd60e51b815260206004820152601d60248201527f4f6173697358313135353a20546f6b656e206964206d69736d61746368000000604482015260640161069e565b6001600160a01b038416600090815260066020908152604080832085905580519182019052908152610d1390859085908590611599565b82846001600160a01b03167f25b428dfde728ccfaddad7e29e4ac23c24ed7fd1a6e3e3f91894a9a073f5dfff84604051610d4f91815260200190565b60405180910390a3610d6081611865565b505060016005555050565b600a5461010090046001600160a01b03163314610d9a5760405162461bcd60e51b815260040161069e906129a2565b6000818152600860205260409020548203610e105760405162461bcd60e51b815260206004820152603060248201527f4f6173697358313135353a206d696e7420436f73742063616e6e6f742062652060448201526f73616d652061732070726576696f757360801b606482015260840161069e565b60008181526008602052604080822084905551839183917f9fdb0fc680a924922f9305a1b823c52506c09c0da5d36eb30a63cabc619935ca9190a35050565b6001600160a01b038516331480610e6b5750610e6b85336105ae565b610ed25760405162461bcd60e51b815260206004820152603260248201527f455243313135353a207472616e736665722063616c6c6572206973206e6f74206044820152711bdddb995c881b9bdc88185c1c1c9bdd995960721b606482015260840161069e565b610edf8585858585611914565b5050505050565b600a5461010090046001600160a01b03163314610f155760405162461bcd60e51b815260040161069e906129a2565b610f1d611aff565b565b60608151835114610f845760405162461bcd60e51b815260206004820152602960248201527f455243313135353a206163636f756e747320616e6420696473206c656e677468604482015268040dad2e6dac2e8c6d60bb1b606482015260840161069e565b6000835167ffffffffffffffff811115610fa057610fa06124b3565b604051908082528060200260200182016040528015610fc9578160200160208202803683370190505b50905060005b845181101561104157611014858281518110610fed57610fed612a94565b602002602001015185838151811061100757611007612a94565b6020026020010151610864565b82828151811061102657611026612a94565b602090810291909101015261103a81612aaa565b9050610fcf565b509392505050565b610edf8585858585611454565b600a5461010090046001600160a01b031633146110855760405162461bcd60e51b815260040161069e906129a2565b600e546001600160a01b038083169116036110fd5760405162461bcd60e51b815260206004820152603260248201527f4f6173697358313135353a20416464726573732063616e6e6f74206265207468604482015271652073616d652061732070726576696f757360701b606482015260840161069e565b600e80546001600160a01b0319166001600160a01b0383169081179091556040517ff6f48d556c1c66026aceb2fa5ba6a4eedf21a0468512691e0cd42dc68a3c275c90600090a250565b600a5461010090046001600160a01b031633146111765760405162461bcd60e51b815260040161069e906129a2565b610f1d611b92565b6060600c8054610a37906129ee565b611198338383611c0d565b5050565b600a5461010090046001600160a01b031633146111cb5760405162461bcd60e51b815260040161069e906129a2565b6001600160a01b03811661123d5760405162461bcd60e51b815260206004820152603360248201527f4f6173697358313135353a204d696e74696e672062656e656669636961727920604482015272063616e6e6f742062652061646472657373203606c1b606482015260840161069e565b600d546001600160a01b03908116908216036112ba5760405162461bcd60e51b815260206004820152603660248201527f4f6173697358313135353a2062656e65666963696172792063616e6e6f74206260448201527565207468652073616d652061732070726576696f757360501b606482015260840161069e565b600d80546001600160a01b0319166001600160a01b0383169081179091556040517f6aecd39596cc28bd5fd0458f724197ac2c56739ecbc77da30bf94e6d63341f4f90600090a250565b600a5461010090046001600160a01b031633146113335760405162461bcd60e51b815260040161069e906129a2565b600a80546001600160a01b03838116610100818102610100600160a81b031985161790945560405193909204169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600a5461010090046001600160a01b031633146113bc5760405162461bcd60e51b815260040161069e906129a2565b600d8054600160a01b900460ff169060146113d683612ac3565b82546101009290920a60ff818102199093169183160217909155600d8054600160a01b9081900483166000908152600860205260408082208790559254925186955091909204909216917f57a248df7b534c6d6f56a097863c8b9d6897becb91c29a37456402ae871f64fd9190a350565b610edf8585858585610e4f565b6001600160a01b038516331480611470575061147085336105ae565b6114ce5760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260448201526808185c1c1c9bdd995960ba1b606482015260840161069e565b610edf8585858585611ced565b826001600160a01b0381163314806114f857506114f881336105ae565b806115165750600e546001600160a01b0316336001600160a01b0316145b6115885760405162461bcd60e51b815260206004820152603c60248201527f4f6173697358313135353a2063616c6c6572206973206e6f74206f776e65722060448201527f6e6f7220617070726f766564206e6f722074686520666163746f727900000000606482015260840161069e565b611593848484611e25565b50505050565b6001600160a01b0384166115f95760405162461bcd60e51b815260206004820152602160248201527f455243313135353a206d696e7420746f20746865207a65726f206164647265736044820152607360f81b606482015260840161069e565b33600061160585611fb5565b9050600061161285611fb5565b905061162383600089858589612000565b6000868152602081815260408083206001600160a01b038b16845290915281208054879290611653908490612ae2565b909155505060408051878152602081018790526001600160a01b03808a1692600092918716917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a46116b383600089898989612071565b50505050505050565b6060600280546116cb906129ee565b80601f01602080910402602001604051908101604052809291908181526020018280546116f7906129ee565b80156117445780601f1061171957610100808354040283529160200191611744565b820191906000526020600020905b81548152906001019060200180831161172757829003601f168201915b50505050509050919050565b60026111988282612b40565b6060816000036117835750506040805180820190915260018152600360fc1b602082015290565b8160005b81156117ad578061179781612aaa565b91506117a69050600a83612c16565b9150611787565b60008167ffffffffffffffff8111156117c8576117c86124b3565b6040519080825280601f01601f1916602001820160405280156117f2576020820181803683370190505b5090505b841561185d57611807600183612c2a565b9150611814600a86612c3d565b61181f906030612ae2565b60f81b81838151811061183457611834612a94565b60200101906001600160f81b031916908160001a905350611856600a86612c16565b94506117f6565b949350505050565b600d546040516000916001600160a01b03169083908381818185875af1925050503d80600081146118b2576040519150601f19603f3d011682016040523d82523d6000602084013e6118b7565b606091505b50509050806111985760405162461bcd60e51b815260206004820152602360248201527f4f6173697358313135353a204661696c656420746f20666f72776172642066756044820152626e647360e81b606482015260840161069e565b81518351146119765760405162461bcd60e51b815260206004820152602860248201527f455243313135353a2069647320616e6420616d6f756e7473206c656e677468206044820152670dad2e6dac2e8c6d60c31b606482015260840161069e565b6001600160a01b03841661199c5760405162461bcd60e51b815260040161069e90612c51565b336119ab818787878787612000565b60005b8451811015611a915760008582815181106119cb576119cb612a94565b6020026020010151905060008583815181106119e9576119e9612a94565b602090810291909101810151600084815280835260408082206001600160a01b038e168352909352919091205490915081811015611a395760405162461bcd60e51b815260040161069e90612c96565b6000838152602081815260408083206001600160a01b038e8116855292528083208585039055908b16825281208054849290611a76908490612ae2565b9250508190555050505080611a8a90612aaa565b90506119ae565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051611ae1929190612ce0565b60405180910390a4611af78187878787876121cc565b505050505050565b60045460ff16611b485760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b604482015260640161069e565b6004805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b60045460ff1615611bd85760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015260640161069e565b6004805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258611b753390565b816001600160a01b0316836001600160a01b031603611c805760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2073657474696e6720617070726f76616c20737461747573604482015268103337b91039b2b63360b91b606482015260840161069e565b6001600160a01b03838116600081815260016020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6001600160a01b038416611d135760405162461bcd60e51b815260040161069e90612c51565b336000611d1f85611fb5565b90506000611d2c85611fb5565b9050611d3c838989858589612000565b6000868152602081815260408083206001600160a01b038c16845290915290205485811015611d7d5760405162461bcd60e51b815260040161069e90612c96565b6000878152602081815260408083206001600160a01b038d8116855292528083208985039055908a16825281208054889290611dba908490612ae2565b909155505060408051888152602081018890526001600160a01b03808b16928c821692918816917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4611e1a848a8a8a8a8a612071565b505050505050505050565b6001600160a01b038316611e875760405162461bcd60e51b815260206004820152602360248201527f455243313135353a206275726e2066726f6d20746865207a65726f206164647260448201526265737360e81b606482015260840161069e565b336000611e9384611fb5565b90506000611ea084611fb5565b9050611ec083876000858560405180602001604052806000815250612000565b6000858152602081815260408083206001600160a01b038a16845290915290205484811015611f3d5760405162461bcd60e51b8152602060048201526024808201527f455243313135353a206275726e20616d6f756e7420657863656564732062616c604482015263616e636560e01b606482015260840161069e565b6000868152602081815260408083206001600160a01b038b81168086529184528285208a8703905582518b81529384018a90529092908816917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a46040805160208101909152600090526116b3565b60408051600180825281830190925260609160009190602080830190803683370190505090508281600081518110611fef57611fef612a94565b602090810291909101015292915050565b61200e868686868686612287565b60045460ff1615611af75760405162461bcd60e51b815260206004820152602760248201527f4f6173697358313135353a20746f6b656e207472616e73666572207768696c65604482015266081c185d5cd95960ca1b606482015260840161069e565b6001600160a01b0384163b15611af75760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e61906120b59089908990889088908890600401612d0e565b6020604051808303816000875af19250505080156120f0575060408051601f3d908101601f191682019092526120ed91810190612d53565b60015b61219c576120fc612d70565b806308c379a0036121355750612110612d8c565b8061211b5750612137565b8060405162461bcd60e51b815260040161069e91906125ed565b505b60405162461bcd60e51b815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e20455243313135356044820152732932b1b2b4bb32b91034b6b83632b6b2b73a32b960611b606482015260840161069e565b6001600160e01b0319811663f23a6e6160e01b146116b35760405162461bcd60e51b815260040161069e90612e16565b6001600160a01b0384163b15611af75760405163bc197c8160e01b81526001600160a01b0385169063bc197c81906122109089908990889088908890600401612e5e565b6020604051808303816000875af192505050801561224b575060408051601f3d908101601f1916820190925261224891810190612d53565b60015b612257576120fc612d70565b6001600160e01b0319811663bc197c8160e01b146116b35760405162461bcd60e51b815260040161069e90612e16565b6001600160a01b03851661230e5760005b835181101561230c578281815181106122b3576122b3612a94565b6020026020010151600360008684815181106122d1576122d1612a94565b6020026020010151815260200190815260200160002060008282546122f69190612ae2565b90915550612305905081612aaa565b9050612298565b505b6001600160a01b038416611af75760005b83518110156116b357600084828151811061233c5761233c612a94565b60200260200101519050600084838151811061235a5761235a612a94565b60200260200101519050600060036000848152602001908152602001600020549050818110156123dd5760405162461bcd60e51b815260206004820152602860248201527f455243313135353a206275726e20616d6f756e74206578636565647320746f74604482015267616c537570706c7960c01b606482015260840161069e565b600092835260036020526040909220910390556123f981612aaa565b905061231f565b80356001600160a01b038116811461241757600080fd5b919050565b60008060006060848603121561243157600080fd5b61243a84612400565b95602085013595506040909401359392505050565b6000806040838503121561246257600080fd5b61246b83612400565b946020939093013593505050565b6001600160e01b031981168114610a2557600080fd5b6000602082840312156124a157600080fd5b81356124ac81612479565b9392505050565b634e487b7160e01b600052604160045260246000fd5b601f8201601f1916810167ffffffffffffffff811182821017156124ef576124ef6124b3565b6040525050565b600067ffffffffffffffff831115612510576125106124b3565b604051612527601f8501601f1916602001826124c9565b80915083815284848401111561253c57600080fd5b83836020830137600060208583010152509392505050565b60006020828403121561256657600080fd5b813567ffffffffffffffff81111561257d57600080fd5b8201601f8101841361258e57600080fd5b61185d848235602084016124f6565b60005b838110156125b85781810151838201526020016125a0565b50506000910152565b600081518084526125d981602086016020860161259d565b601f01601f19169290920160200192915050565b6020815260006124ac60208301846125c1565b60006020828403121561261257600080fd5b5035919050565b60006020828403121561262b57600080fd5b6124ac82612400565b6000806040838503121561264757600080fd5b50508035926020909101359150565b600067ffffffffffffffff821115612670576126706124b3565b5060051b60200190565b600082601f83011261268b57600080fd5b8135602061269882612656565b6040516126a582826124c9565b83815260059390931b85018201928281019150868411156126c557600080fd5b8286015b848110156126e057803583529183019183016126c9565b509695505050505050565b600082601f8301126126fc57600080fd5b6124ac838335602085016124f6565b600080600080600060a0868803121561272357600080fd5b61272c86612400565b945061273a60208701612400565b9350604086013567ffffffffffffffff8082111561275757600080fd5b61276389838a0161267a565b9450606088013591508082111561277957600080fd5b61278589838a0161267a565b9350608088013591508082111561279b57600080fd5b506127a8888289016126eb565b9150509295509295909350565b600080604083850312156127c857600080fd5b823567ffffffffffffffff808211156127e057600080fd5b818501915085601f8301126127f457600080fd5b8135602061280182612656565b60405161280e82826124c9565b83815260059390931b850182019282810191508984111561282e57600080fd5b948201945b838610156128535761284486612400565b82529482019490820190612833565b9650508601359250508082111561286957600080fd5b506128768582860161267a565b9150509250929050565b600081518084526020808501945080840160005b838110156128b057815187529582019590820190600101612894565b509495945050505050565b6020815260006124ac6020830184612880565b600080600080600060a086880312156128e657600080fd5b6128ef86612400565b94506128fd60208701612400565b93506040860135925060608601359150608086013567ffffffffffffffff81111561292757600080fd5b6127a8888289016126eb565b6000806040838503121561294657600080fd5b61294f83612400565b91506020830135801515811461296457600080fd5b809150509250929050565b6000806040838503121561298257600080fd5b61298b83612400565b915061299960208401612400565b90509250929050565b60208082526016908201527527b0b9b4b9ac18989a9a9d1037b7363c9037bbb732b960511b604082015260600190565b600082516129e481846020870161259d565b9190910192915050565b600181811c90821680612a0257607f821691505b602082108103612a2257634e487b7160e01b600052602260045260246000fd5b50919050565b60008351612a3a81846020880161259d565b835190830190612a4e81836020880161259d565b64173539b7b760d91b9101908152600501949350505050565b634e487b7160e01b600052601160045260246000fd5b80820281158282048414176108f3576108f3612a67565b634e487b7160e01b600052603260045260246000fd5b600060018201612abc57612abc612a67565b5060010190565b600060ff821660ff8103612ad957612ad9612a67565b60010192915050565b808201808211156108f3576108f3612a67565b601f821115612b3b57600081815260208120601f850160051c81016020861015612b1c5750805b601f850160051c820191505b81811015611af757828155600101612b28565b505050565b815167ffffffffffffffff811115612b5a57612b5a6124b3565b612b6e81612b6884546129ee565b84612af5565b602080601f831160018114612ba35760008415612b8b5750858301515b600019600386901b1c1916600185901b178555611af7565b600085815260208120601f198616915b82811015612bd257888601518255948401946001909101908401612bb3565b5085821015612bf05787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b634e487b7160e01b600052601260045260246000fd5b600082612c2557612c25612c00565b500490565b818103818111156108f3576108f3612a67565b600082612c4c57612c4c612c00565b500690565b60208082526025908201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604082015264647265737360d81b606082015260800190565b6020808252602a908201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60408201526939103a3930b739b332b960b11b606082015260800190565b604081526000612cf36040830185612880565b8281036020840152612d058185612880565b95945050505050565b6001600160a01b03868116825285166020820152604081018490526060810183905260a060808201819052600090612d48908301846125c1565b979650505050505050565b600060208284031215612d6557600080fd5b81516124ac81612479565b600060033d1115612d895760046000803e5060005160e01c5b90565b600060443d1015612d9a5790565b6040516003193d81016004833e81513d67ffffffffffffffff8160248401118184111715612dca57505050505090565b8285019150815181811115612de25750505050505090565b843d8701016020828501011115612dfc5750505050505090565b612e0b602082860101876124c9565b509095945050505050565b60208082526028908201527f455243313135353a204552433131353552656365697665722072656a656374656040820152676420746f6b656e7360c01b606082015260800190565b6001600160a01b0386811682528516602082015260a060408201819052600090612e8a90830186612880565b8281036060840152612e9c8186612880565b90508281036080840152612eb081856125c1565b9897505050505050505056fea2646970667358221220bc040c1f6964ebcedb56edc37c0888c12ae562cef0140be96b76ac89417936c864736f6c6343000811003300000000000000000000000000000000000000000000000000000000000000c000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000140000000000000000000000000000000000000000000000000000000000000016000000000000000000000000000000000000000000000000000000000000001e00000000000000000000000000ea83bcdf1a799f2eff07885f60c0daa512ff50c000000000000000000000000000000000000000000000000000000000000000c4c61756e6368582050617373000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000034c5850000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001bc16d674ec800000000000000000000000000000000000000000000000000008ac7230489e80000

Deployed Bytecode

0x6080604052600436106101e15760003560e01c806372ab7e4011610102578063d29d44ee11610095578063eefc433c11610064578063eefc433c146105dc578063f06e6c9c146105fc578063f242432a1461061c578063f5298aca1461063c57600080fd5b8063d29d44ee1461051a578063d477a7121461053a578063e6a72acf14610566578063e985e9c51461059357600080fd5b8063a22cb465116100d1578063a22cb46514610493578063bd85b039146104b3578063c975af6a146104e0578063cf3090121461050057600080fd5b806372ab7e401461040c5780638456cb591461042c5780638da5cb5b1461044157806395d89b411461047e57600080fd5b80632439aa901161017a5780634f558e79116101495780634f558e791461038f5780635c975abb146103be578063605105f0146103d6578063714cff56146103f657600080fd5b80632439aa901461030d5780632eb2c2d61461032d5780633f4ba83a1461034d5780634e1273f41461036257600080fd5b806306fdde03116101b657806306fdde031461028b5780630e89341c146102ad578063156e29f6146102cd5780631e7269c5146102e057600080fd5b80624a84cb146101e6578062fdd58e1461020857806301ffc9a71461023b57806302fe53051461026b575b600080fd5b3480156101f257600080fd5b5061020661020136600461241c565b61065c565b005b34801561021457600080fd5b5061022861022336600461244f565b610864565b6040519081526020015b60405180910390f35b34801561024757600080fd5b5061025b61025636600461248f565b6108f9565b6040519015158152602001610232565b34801561027757600080fd5b50610206610286366004612554565b610949565b34801561029757600080fd5b506102a0610a28565b60405161023291906125ed565b3480156102b957600080fd5b506102a06102c8366004612600565b610aba565b6102066102db36600461241c565b610b52565b3480156102ec57600080fd5b506102286102fb366004612619565b60066020526000908152604090205481565b34801561031957600080fd5b50610206610328366004612634565b610d6b565b34801561033957600080fd5b5061020661034836600461270b565b610e4f565b34801561035957600080fd5b50610206610ee6565b34801561036e57600080fd5b5061038261037d3660046127b5565b610f1f565b60405161023291906128bb565b34801561039b57600080fd5b5061025b6103aa366004612600565b600090815260036020526040902054151590565b3480156103ca57600080fd5b5060045460ff1661025b565b3480156103e257600080fd5b506102066103f13660046128ce565b611049565b34801561040257600080fd5b5061022860075481565b34801561041857600080fd5b50610206610427366004612619565b611056565b34801561043857600080fd5b50610206611147565b34801561044d57600080fd5b50600a546104669061010090046001600160a01b031681565b6040516001600160a01b039091168152602001610232565b34801561048a57600080fd5b506102a061117e565b34801561049f57600080fd5b506102066104ae366004612933565b61118d565b3480156104bf57600080fd5b506102286104ce366004612600565b60009081526003602052604090205490565b3480156104ec57600080fd5b506102066104fb366004612619565b61119c565b34801561050c57600080fd5b50600a5461025b9060ff1681565b34801561052657600080fd5b50610206610535366004612619565b611304565b34801561054657600080fd5b50600d54600160a01b900460ff1660405160ff9091168152602001610232565b34801561057257600080fd5b50610228610581366004612600565b60086020526000908152604090205481565b34801561059f57600080fd5b5061025b6105ae36600461296f565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205460ff1690565b3480156105e857600080fd5b506102066105f7366004612600565b61138d565b34801561060857600080fd5b5061020661061736600461270b565b611447565b34801561062857600080fd5b506102066106373660046128ce565b611454565b34801561064857600080fd5b5061020661065736600461241c565b6114db565b60045460ff16156106a75760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b60448201526064015b60405180910390fd5b600a5461010090046001600160a01b031633146106d65760405162461bcd60e51b815260040161069e906129a2565b6002600554036107285760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015260640161069e565b60026005556001600160a01b0383166107835760405162461bcd60e51b815260206004820152601f60248201527f4f6173697358313135353a20416464726573732063616e6e6f74206265203000604482015260640161069e565b600d54600160a01b900460ff168211156107df5760405162461bcd60e51b815260206004820152601d60248201527f4f6173697358313135353a20546f6b656e206964206d69736d61746368000000604482015260640161069e565b6001600160a01b03831660009081526006602090815260408083208490558051918201905290815261081690849084908490611599565b81836001600160a01b03167f9ea69fe563383aa6c77c5d921052ea81ff8e9bbdcc9aa2bfebfa25a014d3a7f08360405161085291815260200190565b60405180910390a35050600160055550565b60006001600160a01b0383166108d05760405162461bcd60e51b815260206004820152602b60248201527f455243313135353a2062616c616e636520717565727920666f7220746865207a60448201526a65726f206164647265737360a81b606482015260840161069e565b506000818152602081815260408083206001600160a01b03861684529091529020545b92915050565b60006001600160e01b03198216636cdb3d1360e11b148061092a57506001600160e01b031982166303a24d0760e21b145b806108f357506301ffc9a760e01b6001600160e01b03198316146108f3565b600a5461010090046001600160a01b031633146109785760405162461bcd60e51b815260040161069e906129a2565b8060405160200161098991906129d2565b604051602081830303815290604052805190602001206109a960006116bc565b6040516020016109b991906129d2565b6040516020818303038152906040528051906020012003610a1c5760405162461bcd60e51b815260206004820152601b60248201527f4552524f523a205552492073616d652061732070726576696f75730000000000604482015260640161069e565b610a2581611750565b50565b6060600b8054610a37906129ee565b80601f0160208091040260200160405190810160405280929190818152602001828054610a63906129ee565b8015610ab05780601f10610a8557610100808354040283529160200191610ab0565b820191906000526020600020905b815481529060010190602001808311610a9357829003601f168201915b5050505050905090565b600081815260036020526040902054606090610b185760405162461bcd60e51b815260206004820152601d60248201527f4f6173697358313135353a204e6f6e6578697374656e7420746f6b656e000000604482015260640161069e565b610b2260006116bc565b610b2b8361175c565b604051602001610b3c929190612a28565b6040516020818303038152906040529050919050565b600260055403610ba45760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015260640161069e565b6002600555346001600160a01b038416610c005760405162461bcd60e51b815260206004820152601f60248201527f4f6173697358313135353a20416464726573732063616e6e6f74206265203000604482015260640161069e565b600083815260086020526040902054610c1a908390612a7d565b8114610c805760405162461bcd60e51b815260206004820152602f60248201527f4f6173697358313135353a2045746865722073656e74206d69736d617463682060448201526e77697468206d696e7420707269636560881b606482015260840161069e565b600d54600160a01b900460ff16831115610cdc5760405162461bcd60e51b815260206004820152601d60248201527f4f6173697358313135353a20546f6b656e206964206d69736d61746368000000604482015260640161069e565b6001600160a01b038416600090815260066020908152604080832085905580519182019052908152610d1390859085908590611599565b82846001600160a01b03167f25b428dfde728ccfaddad7e29e4ac23c24ed7fd1a6e3e3f91894a9a073f5dfff84604051610d4f91815260200190565b60405180910390a3610d6081611865565b505060016005555050565b600a5461010090046001600160a01b03163314610d9a5760405162461bcd60e51b815260040161069e906129a2565b6000818152600860205260409020548203610e105760405162461bcd60e51b815260206004820152603060248201527f4f6173697358313135353a206d696e7420436f73742063616e6e6f742062652060448201526f73616d652061732070726576696f757360801b606482015260840161069e565b60008181526008602052604080822084905551839183917f9fdb0fc680a924922f9305a1b823c52506c09c0da5d36eb30a63cabc619935ca9190a35050565b6001600160a01b038516331480610e6b5750610e6b85336105ae565b610ed25760405162461bcd60e51b815260206004820152603260248201527f455243313135353a207472616e736665722063616c6c6572206973206e6f74206044820152711bdddb995c881b9bdc88185c1c1c9bdd995960721b606482015260840161069e565b610edf8585858585611914565b5050505050565b600a5461010090046001600160a01b03163314610f155760405162461bcd60e51b815260040161069e906129a2565b610f1d611aff565b565b60608151835114610f845760405162461bcd60e51b815260206004820152602960248201527f455243313135353a206163636f756e747320616e6420696473206c656e677468604482015268040dad2e6dac2e8c6d60bb1b606482015260840161069e565b6000835167ffffffffffffffff811115610fa057610fa06124b3565b604051908082528060200260200182016040528015610fc9578160200160208202803683370190505b50905060005b845181101561104157611014858281518110610fed57610fed612a94565b602002602001015185838151811061100757611007612a94565b6020026020010151610864565b82828151811061102657611026612a94565b602090810291909101015261103a81612aaa565b9050610fcf565b509392505050565b610edf8585858585611454565b600a5461010090046001600160a01b031633146110855760405162461bcd60e51b815260040161069e906129a2565b600e546001600160a01b038083169116036110fd5760405162461bcd60e51b815260206004820152603260248201527f4f6173697358313135353a20416464726573732063616e6e6f74206265207468604482015271652073616d652061732070726576696f757360701b606482015260840161069e565b600e80546001600160a01b0319166001600160a01b0383169081179091556040517ff6f48d556c1c66026aceb2fa5ba6a4eedf21a0468512691e0cd42dc68a3c275c90600090a250565b600a5461010090046001600160a01b031633146111765760405162461bcd60e51b815260040161069e906129a2565b610f1d611b92565b6060600c8054610a37906129ee565b611198338383611c0d565b5050565b600a5461010090046001600160a01b031633146111cb5760405162461bcd60e51b815260040161069e906129a2565b6001600160a01b03811661123d5760405162461bcd60e51b815260206004820152603360248201527f4f6173697358313135353a204d696e74696e672062656e656669636961727920604482015272063616e6e6f742062652061646472657373203606c1b606482015260840161069e565b600d546001600160a01b03908116908216036112ba5760405162461bcd60e51b815260206004820152603660248201527f4f6173697358313135353a2062656e65666963696172792063616e6e6f74206260448201527565207468652073616d652061732070726576696f757360501b606482015260840161069e565b600d80546001600160a01b0319166001600160a01b0383169081179091556040517f6aecd39596cc28bd5fd0458f724197ac2c56739ecbc77da30bf94e6d63341f4f90600090a250565b600a5461010090046001600160a01b031633146113335760405162461bcd60e51b815260040161069e906129a2565b600a80546001600160a01b03838116610100818102610100600160a81b031985161790945560405193909204169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600a5461010090046001600160a01b031633146113bc5760405162461bcd60e51b815260040161069e906129a2565b600d8054600160a01b900460ff169060146113d683612ac3565b82546101009290920a60ff818102199093169183160217909155600d8054600160a01b9081900483166000908152600860205260408082208790559254925186955091909204909216917f57a248df7b534c6d6f56a097863c8b9d6897becb91c29a37456402ae871f64fd9190a350565b610edf8585858585610e4f565b6001600160a01b038516331480611470575061147085336105ae565b6114ce5760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260448201526808185c1c1c9bdd995960ba1b606482015260840161069e565b610edf8585858585611ced565b826001600160a01b0381163314806114f857506114f881336105ae565b806115165750600e546001600160a01b0316336001600160a01b0316145b6115885760405162461bcd60e51b815260206004820152603c60248201527f4f6173697358313135353a2063616c6c6572206973206e6f74206f776e65722060448201527f6e6f7220617070726f766564206e6f722074686520666163746f727900000000606482015260840161069e565b611593848484611e25565b50505050565b6001600160a01b0384166115f95760405162461bcd60e51b815260206004820152602160248201527f455243313135353a206d696e7420746f20746865207a65726f206164647265736044820152607360f81b606482015260840161069e565b33600061160585611fb5565b9050600061161285611fb5565b905061162383600089858589612000565b6000868152602081815260408083206001600160a01b038b16845290915281208054879290611653908490612ae2565b909155505060408051878152602081018790526001600160a01b03808a1692600092918716917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a46116b383600089898989612071565b50505050505050565b6060600280546116cb906129ee565b80601f01602080910402602001604051908101604052809291908181526020018280546116f7906129ee565b80156117445780601f1061171957610100808354040283529160200191611744565b820191906000526020600020905b81548152906001019060200180831161172757829003601f168201915b50505050509050919050565b60026111988282612b40565b6060816000036117835750506040805180820190915260018152600360fc1b602082015290565b8160005b81156117ad578061179781612aaa565b91506117a69050600a83612c16565b9150611787565b60008167ffffffffffffffff8111156117c8576117c86124b3565b6040519080825280601f01601f1916602001820160405280156117f2576020820181803683370190505b5090505b841561185d57611807600183612c2a565b9150611814600a86612c3d565b61181f906030612ae2565b60f81b81838151811061183457611834612a94565b60200101906001600160f81b031916908160001a905350611856600a86612c16565b94506117f6565b949350505050565b600d546040516000916001600160a01b03169083908381818185875af1925050503d80600081146118b2576040519150601f19603f3d011682016040523d82523d6000602084013e6118b7565b606091505b50509050806111985760405162461bcd60e51b815260206004820152602360248201527f4f6173697358313135353a204661696c656420746f20666f72776172642066756044820152626e647360e81b606482015260840161069e565b81518351146119765760405162461bcd60e51b815260206004820152602860248201527f455243313135353a2069647320616e6420616d6f756e7473206c656e677468206044820152670dad2e6dac2e8c6d60c31b606482015260840161069e565b6001600160a01b03841661199c5760405162461bcd60e51b815260040161069e90612c51565b336119ab818787878787612000565b60005b8451811015611a915760008582815181106119cb576119cb612a94565b6020026020010151905060008583815181106119e9576119e9612a94565b602090810291909101810151600084815280835260408082206001600160a01b038e168352909352919091205490915081811015611a395760405162461bcd60e51b815260040161069e90612c96565b6000838152602081815260408083206001600160a01b038e8116855292528083208585039055908b16825281208054849290611a76908490612ae2565b9250508190555050505080611a8a90612aaa565b90506119ae565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051611ae1929190612ce0565b60405180910390a4611af78187878787876121cc565b505050505050565b60045460ff16611b485760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b604482015260640161069e565b6004805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b60045460ff1615611bd85760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015260640161069e565b6004805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258611b753390565b816001600160a01b0316836001600160a01b031603611c805760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2073657474696e6720617070726f76616c20737461747573604482015268103337b91039b2b63360b91b606482015260840161069e565b6001600160a01b03838116600081815260016020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6001600160a01b038416611d135760405162461bcd60e51b815260040161069e90612c51565b336000611d1f85611fb5565b90506000611d2c85611fb5565b9050611d3c838989858589612000565b6000868152602081815260408083206001600160a01b038c16845290915290205485811015611d7d5760405162461bcd60e51b815260040161069e90612c96565b6000878152602081815260408083206001600160a01b038d8116855292528083208985039055908a16825281208054889290611dba908490612ae2565b909155505060408051888152602081018890526001600160a01b03808b16928c821692918816917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4611e1a848a8a8a8a8a612071565b505050505050505050565b6001600160a01b038316611e875760405162461bcd60e51b815260206004820152602360248201527f455243313135353a206275726e2066726f6d20746865207a65726f206164647260448201526265737360e81b606482015260840161069e565b336000611e9384611fb5565b90506000611ea084611fb5565b9050611ec083876000858560405180602001604052806000815250612000565b6000858152602081815260408083206001600160a01b038a16845290915290205484811015611f3d5760405162461bcd60e51b8152602060048201526024808201527f455243313135353a206275726e20616d6f756e7420657863656564732062616c604482015263616e636560e01b606482015260840161069e565b6000868152602081815260408083206001600160a01b038b81168086529184528285208a8703905582518b81529384018a90529092908816917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a46040805160208101909152600090526116b3565b60408051600180825281830190925260609160009190602080830190803683370190505090508281600081518110611fef57611fef612a94565b602090810291909101015292915050565b61200e868686868686612287565b60045460ff1615611af75760405162461bcd60e51b815260206004820152602760248201527f4f6173697358313135353a20746f6b656e207472616e73666572207768696c65604482015266081c185d5cd95960ca1b606482015260840161069e565b6001600160a01b0384163b15611af75760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e61906120b59089908990889088908890600401612d0e565b6020604051808303816000875af19250505080156120f0575060408051601f3d908101601f191682019092526120ed91810190612d53565b60015b61219c576120fc612d70565b806308c379a0036121355750612110612d8c565b8061211b5750612137565b8060405162461bcd60e51b815260040161069e91906125ed565b505b60405162461bcd60e51b815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e20455243313135356044820152732932b1b2b4bb32b91034b6b83632b6b2b73a32b960611b606482015260840161069e565b6001600160e01b0319811663f23a6e6160e01b146116b35760405162461bcd60e51b815260040161069e90612e16565b6001600160a01b0384163b15611af75760405163bc197c8160e01b81526001600160a01b0385169063bc197c81906122109089908990889088908890600401612e5e565b6020604051808303816000875af192505050801561224b575060408051601f3d908101601f1916820190925261224891810190612d53565b60015b612257576120fc612d70565b6001600160e01b0319811663bc197c8160e01b146116b35760405162461bcd60e51b815260040161069e90612e16565b6001600160a01b03851661230e5760005b835181101561230c578281815181106122b3576122b3612a94565b6020026020010151600360008684815181106122d1576122d1612a94565b6020026020010151815260200190815260200160002060008282546122f69190612ae2565b90915550612305905081612aaa565b9050612298565b505b6001600160a01b038416611af75760005b83518110156116b357600084828151811061233c5761233c612a94565b60200260200101519050600084838151811061235a5761235a612a94565b60200260200101519050600060036000848152602001908152602001600020549050818110156123dd5760405162461bcd60e51b815260206004820152602860248201527f455243313135353a206275726e20616d6f756e74206578636565647320746f74604482015267616c537570706c7960c01b606482015260840161069e565b600092835260036020526040909220910390556123f981612aaa565b905061231f565b80356001600160a01b038116811461241757600080fd5b919050565b60008060006060848603121561243157600080fd5b61243a84612400565b95602085013595506040909401359392505050565b6000806040838503121561246257600080fd5b61246b83612400565b946020939093013593505050565b6001600160e01b031981168114610a2557600080fd5b6000602082840312156124a157600080fd5b81356124ac81612479565b9392505050565b634e487b7160e01b600052604160045260246000fd5b601f8201601f1916810167ffffffffffffffff811182821017156124ef576124ef6124b3565b6040525050565b600067ffffffffffffffff831115612510576125106124b3565b604051612527601f8501601f1916602001826124c9565b80915083815284848401111561253c57600080fd5b83836020830137600060208583010152509392505050565b60006020828403121561256657600080fd5b813567ffffffffffffffff81111561257d57600080fd5b8201601f8101841361258e57600080fd5b61185d848235602084016124f6565b60005b838110156125b85781810151838201526020016125a0565b50506000910152565b600081518084526125d981602086016020860161259d565b601f01601f19169290920160200192915050565b6020815260006124ac60208301846125c1565b60006020828403121561261257600080fd5b5035919050565b60006020828403121561262b57600080fd5b6124ac82612400565b6000806040838503121561264757600080fd5b50508035926020909101359150565b600067ffffffffffffffff821115612670576126706124b3565b5060051b60200190565b600082601f83011261268b57600080fd5b8135602061269882612656565b6040516126a582826124c9565b83815260059390931b85018201928281019150868411156126c557600080fd5b8286015b848110156126e057803583529183019183016126c9565b509695505050505050565b600082601f8301126126fc57600080fd5b6124ac838335602085016124f6565b600080600080600060a0868803121561272357600080fd5b61272c86612400565b945061273a60208701612400565b9350604086013567ffffffffffffffff8082111561275757600080fd5b61276389838a0161267a565b9450606088013591508082111561277957600080fd5b61278589838a0161267a565b9350608088013591508082111561279b57600080fd5b506127a8888289016126eb565b9150509295509295909350565b600080604083850312156127c857600080fd5b823567ffffffffffffffff808211156127e057600080fd5b818501915085601f8301126127f457600080fd5b8135602061280182612656565b60405161280e82826124c9565b83815260059390931b850182019282810191508984111561282e57600080fd5b948201945b838610156128535761284486612400565b82529482019490820190612833565b9650508601359250508082111561286957600080fd5b506128768582860161267a565b9150509250929050565b600081518084526020808501945080840160005b838110156128b057815187529582019590820190600101612894565b509495945050505050565b6020815260006124ac6020830184612880565b600080600080600060a086880312156128e657600080fd5b6128ef86612400565b94506128fd60208701612400565b93506040860135925060608601359150608086013567ffffffffffffffff81111561292757600080fd5b6127a8888289016126eb565b6000806040838503121561294657600080fd5b61294f83612400565b91506020830135801515811461296457600080fd5b809150509250929050565b6000806040838503121561298257600080fd5b61298b83612400565b915061299960208401612400565b90509250929050565b60208082526016908201527527b0b9b4b9ac18989a9a9d1037b7363c9037bbb732b960511b604082015260600190565b600082516129e481846020870161259d565b9190910192915050565b600181811c90821680612a0257607f821691505b602082108103612a2257634e487b7160e01b600052602260045260246000fd5b50919050565b60008351612a3a81846020880161259d565b835190830190612a4e81836020880161259d565b64173539b7b760d91b9101908152600501949350505050565b634e487b7160e01b600052601160045260246000fd5b80820281158282048414176108f3576108f3612a67565b634e487b7160e01b600052603260045260246000fd5b600060018201612abc57612abc612a67565b5060010190565b600060ff821660ff8103612ad957612ad9612a67565b60010192915050565b808201808211156108f3576108f3612a67565b601f821115612b3b57600081815260208120601f850160051c81016020861015612b1c5750805b601f850160051c820191505b81811015611af757828155600101612b28565b505050565b815167ffffffffffffffff811115612b5a57612b5a6124b3565b612b6e81612b6884546129ee565b84612af5565b602080601f831160018114612ba35760008415612b8b5750858301515b600019600386901b1c1916600185901b178555611af7565b600085815260208120601f198616915b82811015612bd257888601518255948401946001909101908401612bb3565b5085821015612bf05787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b634e487b7160e01b600052601260045260246000fd5b600082612c2557612c25612c00565b500490565b818103818111156108f3576108f3612a67565b600082612c4c57612c4c612c00565b500690565b60208082526025908201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604082015264647265737360d81b606082015260800190565b6020808252602a908201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60408201526939103a3930b739b332b960b11b606082015260800190565b604081526000612cf36040830185612880565b8281036020840152612d058185612880565b95945050505050565b6001600160a01b03868116825285166020820152604081018490526060810183905260a060808201819052600090612d48908301846125c1565b979650505050505050565b600060208284031215612d6557600080fd5b81516124ac81612479565b600060033d1115612d895760046000803e5060005160e01c5b90565b600060443d1015612d9a5790565b6040516003193d81016004833e81513d67ffffffffffffffff8160248401118184111715612dca57505050505090565b8285019150815181811115612de25750505050505090565b843d8701016020828501011115612dfc5750505050505090565b612e0b602082860101876124c9565b509095945050505050565b60208082526028908201527f455243313135353a204552433131353552656365697665722072656a656374656040820152676420746f6b656e7360c01b606082015260800190565b6001600160a01b0386811682528516602082015260a060408201819052600090612e8a90830186612880565b8281036060840152612e9c8186612880565b90508281036080840152612eb081856125c1565b9897505050505050505056fea2646970667358221220bc040c1f6964ebcedb56edc37c0888c12ae562cef0140be96b76ac89417936c864736f6c63430008110033

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

00000000000000000000000000000000000000000000000000000000000000c000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000140000000000000000000000000000000000000000000000000000000000000016000000000000000000000000000000000000000000000000000000000000001e00000000000000000000000000ea83bcdf1a799f2eff07885f60c0daa512ff50c000000000000000000000000000000000000000000000000000000000000000c4c61756e6368582050617373000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000034c5850000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001bc16d674ec800000000000000000000000000000000000000000000000000008ac7230489e80000

-----Decoded View---------------
Arg [0] : name_ (string): LaunchX Pass
Arg [1] : symbol_ (string): LXP
Arg [2] : uri_ (string):
Arg [3] : tokenIds_ (uint256[]): 0,1,2
Arg [4] : mintCostPerTokenId_ (uint256[]): 0,2000000000000000000,10000000000000000000
Arg [5] : mbeneficiary_ (address): 0x0ea83Bcdf1a799F2EfF07885f60c0dAa512ff50c

-----Encoded View---------------
19 Constructor Arguments found :
Arg [0] : 00000000000000000000000000000000000000000000000000000000000000c0
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000100
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000140
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000160
Arg [4] : 00000000000000000000000000000000000000000000000000000000000001e0
Arg [5] : 0000000000000000000000000ea83bcdf1a799f2eff07885f60c0daa512ff50c
Arg [6] : 000000000000000000000000000000000000000000000000000000000000000c
Arg [7] : 4c61756e63685820506173730000000000000000000000000000000000000000
Arg [8] : 0000000000000000000000000000000000000000000000000000000000000003
Arg [9] : 4c58500000000000000000000000000000000000000000000000000000000000
Arg [10] : 0000000000000000000000000000000000000000000000000000000000000000
Arg [11] : 0000000000000000000000000000000000000000000000000000000000000003
Arg [12] : 0000000000000000000000000000000000000000000000000000000000000000
Arg [13] : 0000000000000000000000000000000000000000000000000000000000000001
Arg [14] : 0000000000000000000000000000000000000000000000000000000000000002
Arg [15] : 0000000000000000000000000000000000000000000000000000000000000003
Arg [16] : 0000000000000000000000000000000000000000000000000000000000000000
Arg [17] : 0000000000000000000000000000000000000000000000001bc16d674ec80000
Arg [18] : 0000000000000000000000000000000000000000000000008ac7230489e80000


Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

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

Validator Index Block Amount
View All Withdrawals

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

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