ETH Price: $2,918.24 (+3.50%)
 

Overview

ETH Balance

1.0419 ETH

Eth Value

$3,040.51 (@ $2,918.24/ETH)

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Set Mint Open211295222024-11-06 15:32:1143 hrs ago1730907131IN
0x486c441f...E6d5cbE38
0 ETH0.000501920.70071565
Set Approval For...211283872024-11-06 11:43:3547 hrs ago1730893415IN
0x486c441f...E6d5cbE38
0 ETH0.0007934817.00709513
Set Approval For...211283612024-11-06 11:38:2347 hrs ago1730893103IN
0x486c441f...E6d5cbE38
0 ETH0.0007827116.77635475
Mint NFT211278582024-11-06 9:57:112 days ago1730887031IN
0x486c441f...E6d5cbE38
0.0207 ETH0.001497113.19336947
Set Mint Open211276022024-11-06 9:05:112 days ago1730883911IN
0x486c441f...E6d5cbE38
0 ETH0.000953320.6531696
Set Mint Open211269912024-11-06 7:02:232 days ago1730876543IN
0x486c441f...E6d5cbE38
0 ETH0.0007597131.33351888
Mint NFT211257592024-11-06 2:55:112 days ago1730861711IN
0x486c441f...E6d5cbE38
0.0069 ETH0.0017652729.96670831
Mint NFT211257562024-11-06 2:54:352 days ago1730861675IN
0x486c441f...E6d5cbE38
0.0069 ETH0.0017310129.38497319
Mint NFT211253692024-11-06 1:36:472 days ago1730857007IN
0x486c441f...E6d5cbE38
0.0069 ETH0.001109718.83797547
Mint NFT211252492024-11-06 1:12:472 days ago1730855567IN
0x486c441f...E6d5cbE38
0.0138 ETH0.0016379219.00343744
Mint NFT211249702024-11-06 0:16:232 days ago1730852183IN
0x486c441f...E6d5cbE38
0.0069 ETH0.000426387.23809543
Mint NFT211249142024-11-06 0:05:112 days ago1730851511IN
0x486c441f...E6d5cbE38
0.0069 ETH0.000440847.48368427
Mint NFT211245132024-11-05 22:44:592 days ago1730846699IN
0x486c441f...E6d5cbE38
0.0207 ETH0.000847437.46809248
Set Approval For...211244362024-11-05 22:29:352 days ago1730845775IN
0x486c441f...E6d5cbE38
0 ETH0.000334747.17469551
Mint NFT211243502024-11-05 22:12:112 days ago1730844731IN
0x486c441f...E6d5cbE38
0.0207 ETH0.000753646.64152337
Mint NFT211242812024-11-05 21:58:232 days ago1730843903IN
0x486c441f...E6d5cbE38
0.0069 ETH0.000377346.40566712
Mint NFT211238752024-11-05 20:36:352 days ago1730838995IN
0x486c441f...E6d5cbE38
0.0069 ETH0.000525568.92175162
Mint NFT211237922024-11-05 20:19:472 days ago1730837987IN
0x486c441f...E6d5cbE38
0.0069 ETH0.000507438.61397042
Mint NFT211237792024-11-05 20:17:112 days ago1730837831IN
0x486c441f...E6d5cbE38
0.0069 ETH0.0006475710.99292013
Mint NFT211236772024-11-05 19:56:352 days ago1730836595IN
0x486c441f...E6d5cbE38
0.0207 ETH0.0014051312.38285859
Mint NFT211235072024-11-05 19:22:352 days ago1730834555IN
0x486c441f...E6d5cbE38
0.0069 ETH0.0006396210.85809997
Mint NFT211234992024-11-05 19:20:592 days ago1730834459IN
0x486c441f...E6d5cbE38
0.0069 ETH0.0006440410.93301642
Mint NFT211234122024-11-05 19:03:232 days ago1730833403IN
0x486c441f...E6d5cbE38
0.0069 ETH0.0006888611.69383925
Set Approval For...211232812024-11-05 18:36:592 days ago1730831819IN
0x486c441f...E6d5cbE38
0 ETH0.0007528716.13669163
Mint NFT211232702024-11-05 18:34:472 days ago1730831687IN
0x486c441f...E6d5cbE38
0.0069 ETH0.0009938216.87429346
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:
RainerHoschDT24

Compiler Version
v0.8.28+commit.7893614a

Optimization Enabled:
No with 200 runs

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

import "@openzeppelin/contracts/token/ERC1155/ERC1155.sol";
import "@openzeppelin/contracts/token/ERC1155/extensions/ERC1155Burnable.sol";
import "@openzeppelin/contracts/access/Ownable.sol";

// Contact: Artist rainerhosch.com / Dev [email protected]
contract RainerHoschDT24 is ERC1155, Ownable, ERC1155Burnable {
    uint256 private _supply = 0;
    uint256 public mintPrice = 2400000000000000;
    bool public mintOpen = false;
    string public name = "Donald Trump";
    string public symbol = "DT24";

    constructor(address initialOwner)
        ERC1155("https://metadata-rainerhosch.code2chain.io/mintthevote/dt/{id}")
        Ownable(initialOwner)
    {}

    function mintNFT(address _to, uint256 _quantity) payable external {
        require(_quantity > 0, "Mint at least 1 NFT.");
        require(mintOpen, "Mint is not open.");
        require(msg.value == mintPrice*_quantity, "Invalid value.");
        for (uint256 i = 0; i < _quantity; i++)
            doMint(_to);
    }

    function airDrop(address[] memory to) public onlyOwner {
        for (uint256 i = 0; i < to.length; i++)
            doMint(to[i]);
    }

    function doMint(address to) private {
        _supply += 1;
        _mint(to, _supply, 1, "");
    }

    function setMintPrice(uint256 _mintPrice) public onlyOwner {
        mintPrice = _mintPrice;
    }

    function setMintOpen(bool _mintStatus) public onlyOwner {
        mintOpen = _mintStatus;
    }

    function setUri(string memory newuri) public onlyOwner {
        _setURI(newuri);
    }

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

    function withdraw() public onlyOwner {
        payable(msg.sender).transfer(address(this).balance);
    }
}

File 2 of 14 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)

pragma solidity ^0.8.20;

import {Context} from "../utils/Context.sol";

/**
 * @dev Contract module which provides a basic access control mechanism, where
 * there is an account (an owner) that can be granted exclusive access to
 * specific functions.
 *
 * The initial owner is set to the address provided by the deployer. This can
 * later be changed with {transferOwnership}.
 *
 * This module is used through inheritance. It will make available the modifier
 * `onlyOwner`, which can be applied to your functions to restrict their use to
 * the owner.
 */
abstract contract Ownable is Context {
    address private _owner;

    /**
     * @dev The caller account is not authorized to perform an operation.
     */
    error OwnableUnauthorizedAccount(address account);

    /**
     * @dev The owner is not a valid owner account. (eg. `address(0)`)
     */
    error OwnableInvalidOwner(address owner);

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

    /**
     * @dev Initializes the contract setting the address provided by the deployer as the initial owner.
     */
    constructor(address initialOwner) {
        if (initialOwner == address(0)) {
            revert OwnableInvalidOwner(address(0));
        }
        _transferOwnership(initialOwner);
    }

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        _checkOwner();
        _;
    }

    /**
     * @dev Returns the address of the current owner.
     */
    function owner() public view virtual returns (address) {
        return _owner;
    }

    /**
     * @dev Throws if the sender is not the owner.
     */
    function _checkOwner() internal view virtual {
        if (owner() != _msgSender()) {
            revert OwnableUnauthorizedAccount(_msgSender());
        }
    }

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby disabling any functionality that is only available to the owner.
     */
    function renounceOwnership() public virtual onlyOwner {
        _transferOwnership(address(0));
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public virtual onlyOwner {
        if (newOwner == address(0)) {
            revert OwnableInvalidOwner(address(0));
        }
        _transferOwnership(newOwner);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Internal function without access restriction.
     */
    function _transferOwnership(address newOwner) internal virtual {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

File 3 of 14 : ERC1155Burnable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC1155/extensions/ERC1155Burnable.sol)

pragma solidity ^0.8.20;

import {ERC1155} from "../ERC1155.sol";

/**
 * @dev Extension of {ERC1155} that allows token holders to destroy both their
 * own tokens and those that they have been approved to use.
 */
abstract contract ERC1155Burnable is ERC1155 {
    function burn(address account, uint256 id, uint256 value) public virtual {
        if (account != _msgSender() && !isApprovedForAll(account, _msgSender())) {
            revert ERC1155MissingApprovalForAll(_msgSender(), account);
        }

        _burn(account, id, value);
    }

    function burnBatch(address account, uint256[] memory ids, uint256[] memory values) public virtual {
        if (account != _msgSender() && !isApprovedForAll(account, _msgSender())) {
            revert ERC1155MissingApprovalForAll(_msgSender(), account);
        }

        _burnBatch(account, ids, values);
    }
}

File 4 of 14 : ERC1155.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC1155/ERC1155.sol)

pragma solidity ^0.8.20;

import {IERC1155} from "./IERC1155.sol";
import {IERC1155Receiver} from "./IERC1155Receiver.sol";
import {IERC1155MetadataURI} from "./extensions/IERC1155MetadataURI.sol";
import {Context} from "../../utils/Context.sol";
import {IERC165, ERC165} from "../../utils/introspection/ERC165.sol";
import {Arrays} from "../../utils/Arrays.sol";
import {IERC1155Errors} from "../../interfaces/draft-IERC6093.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
 */
abstract contract ERC1155 is Context, ERC165, IERC1155, IERC1155MetadataURI, IERC1155Errors {
    using Arrays for uint256[];
    using Arrays for address[];

    mapping(uint256 id => mapping(address account => uint256)) private _balances;

    mapping(address account => mapping(address operator => 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 /* id */) public view virtual returns (string memory) {
        return _uri;
    }

    /**
     * @dev See {IERC1155-balanceOf}.
     */
    function balanceOf(address account, uint256 id) public view virtual returns (uint256) {
        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 returns (uint256[] memory) {
        if (accounts.length != ids.length) {
            revert ERC1155InvalidArrayLength(ids.length, accounts.length);
        }

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

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

        return batchBalances;
    }

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

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

    /**
     * @dev See {IERC1155-safeTransferFrom}.
     */
    function safeTransferFrom(address from, address to, uint256 id, uint256 value, bytes memory data) public virtual {
        address sender = _msgSender();
        if (from != sender && !isApprovedForAll(from, sender)) {
            revert ERC1155MissingApprovalForAll(sender, from);
        }
        _safeTransferFrom(from, to, id, value, data);
    }

    /**
     * @dev See {IERC1155-safeBatchTransferFrom}.
     */
    function safeBatchTransferFrom(
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory values,
        bytes memory data
    ) public virtual {
        address sender = _msgSender();
        if (from != sender && !isApprovedForAll(from, sender)) {
            revert ERC1155MissingApprovalForAll(sender, from);
        }
        _safeBatchTransferFrom(from, to, ids, values, data);
    }

    /**
     * @dev Transfers a `value` amount of tokens of type `id` from `from` to `to`. Will mint (or burn) if `from`
     * (or `to`) is the zero address.
     *
     * Emits a {TransferSingle} event if the arrays contain one element, and {TransferBatch} otherwise.
     *
     * Requirements:
     *
     * - If `to` refers to a smart contract, it must implement either {IERC1155Receiver-onERC1155Received}
     *   or {IERC1155Receiver-onERC1155BatchReceived} and return the acceptance magic value.
     * - `ids` and `values` must have the same length.
     *
     * NOTE: The ERC-1155 acceptance check is not performed in this function. See {_updateWithAcceptanceCheck} instead.
     */
    function _update(address from, address to, uint256[] memory ids, uint256[] memory values) internal virtual {
        if (ids.length != values.length) {
            revert ERC1155InvalidArrayLength(ids.length, values.length);
        }

        address operator = _msgSender();

        for (uint256 i = 0; i < ids.length; ++i) {
            uint256 id = ids.unsafeMemoryAccess(i);
            uint256 value = values.unsafeMemoryAccess(i);

            if (from != address(0)) {
                uint256 fromBalance = _balances[id][from];
                if (fromBalance < value) {
                    revert ERC1155InsufficientBalance(from, fromBalance, value, id);
                }
                unchecked {
                    // Overflow not possible: value <= fromBalance
                    _balances[id][from] = fromBalance - value;
                }
            }

            if (to != address(0)) {
                _balances[id][to] += value;
            }
        }

        if (ids.length == 1) {
            uint256 id = ids.unsafeMemoryAccess(0);
            uint256 value = values.unsafeMemoryAccess(0);
            emit TransferSingle(operator, from, to, id, value);
        } else {
            emit TransferBatch(operator, from, to, ids, values);
        }
    }

    /**
     * @dev Version of {_update} that performs the token acceptance check by calling
     * {IERC1155Receiver-onERC1155Received} or {IERC1155Receiver-onERC1155BatchReceived} on the receiver address if it
     * contains code (eg. is a smart contract at the moment of execution).
     *
     * IMPORTANT: Overriding this function is discouraged because it poses a reentrancy risk from the receiver. So any
     * update to the contract state after this function would break the check-effect-interaction pattern. Consider
     * overriding {_update} instead.
     */
    function _updateWithAcceptanceCheck(
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory values,
        bytes memory data
    ) internal virtual {
        _update(from, to, ids, values);
        if (to != address(0)) {
            address operator = _msgSender();
            if (ids.length == 1) {
                uint256 id = ids.unsafeMemoryAccess(0);
                uint256 value = values.unsafeMemoryAccess(0);
                _doSafeTransferAcceptanceCheck(operator, from, to, id, value, data);
            } else {
                _doSafeBatchTransferAcceptanceCheck(operator, from, to, ids, values, data);
            }
        }
    }

    /**
     * @dev Transfers a `value` 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 `value` 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 value, bytes memory data) internal {
        if (to == address(0)) {
            revert ERC1155InvalidReceiver(address(0));
        }
        if (from == address(0)) {
            revert ERC1155InvalidSender(address(0));
        }
        (uint256[] memory ids, uint256[] memory values) = _asSingletonArrays(id, value);
        _updateWithAcceptanceCheck(from, to, ids, values, 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.
     * - `ids` and `values` must have the same length.
     */
    function _safeBatchTransferFrom(
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory values,
        bytes memory data
    ) internal {
        if (to == address(0)) {
            revert ERC1155InvalidReceiver(address(0));
        }
        if (from == address(0)) {
            revert ERC1155InvalidSender(address(0));
        }
        _updateWithAcceptanceCheck(from, to, ids, values, 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 values 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 a `value` amount of tokens of 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 value, bytes memory data) internal {
        if (to == address(0)) {
            revert ERC1155InvalidReceiver(address(0));
        }
        (uint256[] memory ids, uint256[] memory values) = _asSingletonArrays(id, value);
        _updateWithAcceptanceCheck(address(0), to, ids, values, data);
    }

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_mint}.
     *
     * Emits a {TransferBatch} event.
     *
     * Requirements:
     *
     * - `ids` and `values` must have the same length.
     * - `to` cannot be the zero address.
     * - 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 values, bytes memory data) internal {
        if (to == address(0)) {
            revert ERC1155InvalidReceiver(address(0));
        }
        _updateWithAcceptanceCheck(address(0), to, ids, values, data);
    }

    /**
     * @dev Destroys a `value` amount of tokens of type `id` from `from`
     *
     * Emits a {TransferSingle} event.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `from` must have at least `value` amount of tokens of type `id`.
     */
    function _burn(address from, uint256 id, uint256 value) internal {
        if (from == address(0)) {
            revert ERC1155InvalidSender(address(0));
        }
        (uint256[] memory ids, uint256[] memory values) = _asSingletonArrays(id, value);
        _updateWithAcceptanceCheck(from, address(0), ids, values, "");
    }

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_burn}.
     *
     * Emits a {TransferBatch} event.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `from` must have at least `value` amount of tokens of type `id`.
     * - `ids` and `values` must have the same length.
     */
    function _burnBatch(address from, uint256[] memory ids, uint256[] memory values) internal {
        if (from == address(0)) {
            revert ERC1155InvalidSender(address(0));
        }
        _updateWithAcceptanceCheck(from, address(0), ids, values, "");
    }

    /**
     * @dev Approve `operator` to operate on all of `owner` tokens
     *
     * Emits an {ApprovalForAll} event.
     *
     * Requirements:
     *
     * - `operator` cannot be the zero address.
     */
    function _setApprovalForAll(address owner, address operator, bool approved) internal virtual {
        if (operator == address(0)) {
            revert ERC1155InvalidOperator(address(0));
        }
        _operatorApprovals[owner][operator] = approved;
        emit ApprovalForAll(owner, operator, approved);
    }

    /**
     * @dev Performs an acceptance check by calling {IERC1155-onERC1155Received} on the `to` address
     * if it contains code at the moment of execution.
     */
    function _doSafeTransferAcceptanceCheck(
        address operator,
        address from,
        address to,
        uint256 id,
        uint256 value,
        bytes memory data
    ) private {
        if (to.code.length > 0) {
            try IERC1155Receiver(to).onERC1155Received(operator, from, id, value, data) returns (bytes4 response) {
                if (response != IERC1155Receiver.onERC1155Received.selector) {
                    // Tokens rejected
                    revert ERC1155InvalidReceiver(to);
                }
            } catch (bytes memory reason) {
                if (reason.length == 0) {
                    // non-ERC1155Receiver implementer
                    revert ERC1155InvalidReceiver(to);
                } else {
                    /// @solidity memory-safe-assembly
                    assembly {
                        revert(add(32, reason), mload(reason))
                    }
                }
            }
        }
    }

    /**
     * @dev Performs a batch acceptance check by calling {IERC1155-onERC1155BatchReceived} on the `to` address
     * if it contains code at the moment of execution.
     */
    function _doSafeBatchTransferAcceptanceCheck(
        address operator,
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory values,
        bytes memory data
    ) private {
        if (to.code.length > 0) {
            try IERC1155Receiver(to).onERC1155BatchReceived(operator, from, ids, values, data) returns (
                bytes4 response
            ) {
                if (response != IERC1155Receiver.onERC1155BatchReceived.selector) {
                    // Tokens rejected
                    revert ERC1155InvalidReceiver(to);
                }
            } catch (bytes memory reason) {
                if (reason.length == 0) {
                    // non-ERC1155Receiver implementer
                    revert ERC1155InvalidReceiver(to);
                } else {
                    /// @solidity memory-safe-assembly
                    assembly {
                        revert(add(32, reason), mload(reason))
                    }
                }
            }
        }
    }

    /**
     * @dev Creates an array in memory with only one value for each of the elements provided.
     */
    function _asSingletonArrays(
        uint256 element1,
        uint256 element2
    ) private pure returns (uint256[] memory array1, uint256[] memory array2) {
        /// @solidity memory-safe-assembly
        assembly {
            // Load the free memory pointer
            array1 := mload(0x40)
            // Set array length to 1
            mstore(array1, 1)
            // Store the single element at the next word after the length (where content starts)
            mstore(add(array1, 0x20), element1)

            // Repeat for next array locating it right after the first array
            array2 := add(array1, 0x40)
            mstore(array2, 1)
            mstore(add(array2, 0x20), element2)

            // Update the free memory pointer by pointing after the second array
            mstore(0x40, add(array2, 0x40))
        }
    }
}

File 5 of 14 : draft-IERC6093.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (interfaces/draft-IERC6093.sol)
pragma solidity ^0.8.20;

/**
 * @dev Standard ERC20 Errors
 * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC20 tokens.
 */
interface IERC20Errors {
    /**
     * @dev Indicates an error related to the current `balance` of a `sender`. Used in transfers.
     * @param sender Address whose tokens are being transferred.
     * @param balance Current balance for the interacting account.
     * @param needed Minimum amount required to perform a transfer.
     */
    error ERC20InsufficientBalance(address sender, uint256 balance, uint256 needed);

    /**
     * @dev Indicates a failure with the token `sender`. Used in transfers.
     * @param sender Address whose tokens are being transferred.
     */
    error ERC20InvalidSender(address sender);

    /**
     * @dev Indicates a failure with the token `receiver`. Used in transfers.
     * @param receiver Address to which tokens are being transferred.
     */
    error ERC20InvalidReceiver(address receiver);

    /**
     * @dev Indicates a failure with the `spender`’s `allowance`. Used in transfers.
     * @param spender Address that may be allowed to operate on tokens without being their owner.
     * @param allowance Amount of tokens a `spender` is allowed to operate with.
     * @param needed Minimum amount required to perform a transfer.
     */
    error ERC20InsufficientAllowance(address spender, uint256 allowance, uint256 needed);

    /**
     * @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals.
     * @param approver Address initiating an approval operation.
     */
    error ERC20InvalidApprover(address approver);

    /**
     * @dev Indicates a failure with the `spender` to be approved. Used in approvals.
     * @param spender Address that may be allowed to operate on tokens without being their owner.
     */
    error ERC20InvalidSpender(address spender);
}

/**
 * @dev Standard ERC721 Errors
 * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC721 tokens.
 */
interface IERC721Errors {
    /**
     * @dev Indicates that an address can't be an owner. For example, `address(0)` is a forbidden owner in EIP-20.
     * Used in balance queries.
     * @param owner Address of the current owner of a token.
     */
    error ERC721InvalidOwner(address owner);

    /**
     * @dev Indicates a `tokenId` whose `owner` is the zero address.
     * @param tokenId Identifier number of a token.
     */
    error ERC721NonexistentToken(uint256 tokenId);

    /**
     * @dev Indicates an error related to the ownership over a particular token. Used in transfers.
     * @param sender Address whose tokens are being transferred.
     * @param tokenId Identifier number of a token.
     * @param owner Address of the current owner of a token.
     */
    error ERC721IncorrectOwner(address sender, uint256 tokenId, address owner);

    /**
     * @dev Indicates a failure with the token `sender`. Used in transfers.
     * @param sender Address whose tokens are being transferred.
     */
    error ERC721InvalidSender(address sender);

    /**
     * @dev Indicates a failure with the token `receiver`. Used in transfers.
     * @param receiver Address to which tokens are being transferred.
     */
    error ERC721InvalidReceiver(address receiver);

    /**
     * @dev Indicates a failure with the `operator`’s approval. Used in transfers.
     * @param operator Address that may be allowed to operate on tokens without being their owner.
     * @param tokenId Identifier number of a token.
     */
    error ERC721InsufficientApproval(address operator, uint256 tokenId);

    /**
     * @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals.
     * @param approver Address initiating an approval operation.
     */
    error ERC721InvalidApprover(address approver);

    /**
     * @dev Indicates a failure with the `operator` to be approved. Used in approvals.
     * @param operator Address that may be allowed to operate on tokens without being their owner.
     */
    error ERC721InvalidOperator(address operator);
}

/**
 * @dev Standard ERC1155 Errors
 * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC1155 tokens.
 */
interface IERC1155Errors {
    /**
     * @dev Indicates an error related to the current `balance` of a `sender`. Used in transfers.
     * @param sender Address whose tokens are being transferred.
     * @param balance Current balance for the interacting account.
     * @param needed Minimum amount required to perform a transfer.
     * @param tokenId Identifier number of a token.
     */
    error ERC1155InsufficientBalance(address sender, uint256 balance, uint256 needed, uint256 tokenId);

    /**
     * @dev Indicates a failure with the token `sender`. Used in transfers.
     * @param sender Address whose tokens are being transferred.
     */
    error ERC1155InvalidSender(address sender);

    /**
     * @dev Indicates a failure with the token `receiver`. Used in transfers.
     * @param receiver Address to which tokens are being transferred.
     */
    error ERC1155InvalidReceiver(address receiver);

    /**
     * @dev Indicates a failure with the `operator`’s approval. Used in transfers.
     * @param operator Address that may be allowed to operate on tokens without being their owner.
     * @param owner Address of the current owner of a token.
     */
    error ERC1155MissingApprovalForAll(address operator, address owner);

    /**
     * @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals.
     * @param approver Address initiating an approval operation.
     */
    error ERC1155InvalidApprover(address approver);

    /**
     * @dev Indicates a failure with the `operator` to be approved. Used in approvals.
     * @param operator Address that may be allowed to operate on tokens without being their owner.
     */
    error ERC1155InvalidOperator(address operator);

    /**
     * @dev Indicates an array length mismatch between ids and values in a safeBatchTransferFrom operation.
     * Used in batch transfers.
     * @param idsLength Length of the array of token identifiers
     * @param valuesLength Length of the array of token amounts
     */
    error ERC1155InvalidArrayLength(uint256 idsLength, uint256 valuesLength);
}

File 6 of 14 : Arrays.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/Arrays.sol)

pragma solidity ^0.8.20;

import {StorageSlot} from "./StorageSlot.sol";
import {Math} from "./math/Math.sol";

/**
 * @dev Collection of functions related to array types.
 */
library Arrays {
    using StorageSlot for bytes32;

    /**
     * @dev Searches a sorted `array` and returns the first index that contains
     * a value greater or equal to `element`. If no such index exists (i.e. all
     * values in the array are strictly less than `element`), the array length is
     * returned. Time complexity O(log n).
     *
     * `array` is expected to be sorted in ascending order, and to contain no
     * repeated elements.
     */
    function findUpperBound(uint256[] storage array, uint256 element) internal view returns (uint256) {
        uint256 low = 0;
        uint256 high = array.length;

        if (high == 0) {
            return 0;
        }

        while (low < high) {
            uint256 mid = Math.average(low, high);

            // Note that mid will always be strictly less than high (i.e. it will be a valid array index)
            // because Math.average rounds towards zero (it does integer division with truncation).
            if (unsafeAccess(array, mid).value > element) {
                high = mid;
            } else {
                low = mid + 1;
            }
        }

        // At this point `low` is the exclusive upper bound. We will return the inclusive upper bound.
        if (low > 0 && unsafeAccess(array, low - 1).value == element) {
            return low - 1;
        } else {
            return low;
        }
    }

    /**
     * @dev Access an array in an "unsafe" way. Skips solidity "index-out-of-range" check.
     *
     * WARNING: Only use if you are certain `pos` is lower than the array length.
     */
    function unsafeAccess(address[] storage arr, uint256 pos) internal pure returns (StorageSlot.AddressSlot storage) {
        bytes32 slot;
        // We use assembly to calculate the storage slot of the element at index `pos` of the dynamic array `arr`
        // following https://docs.soliditylang.org/en/v0.8.20/internals/layout_in_storage.html#mappings-and-dynamic-arrays.

        /// @solidity memory-safe-assembly
        assembly {
            mstore(0, arr.slot)
            slot := add(keccak256(0, 0x20), pos)
        }
        return slot.getAddressSlot();
    }

    /**
     * @dev Access an array in an "unsafe" way. Skips solidity "index-out-of-range" check.
     *
     * WARNING: Only use if you are certain `pos` is lower than the array length.
     */
    function unsafeAccess(bytes32[] storage arr, uint256 pos) internal pure returns (StorageSlot.Bytes32Slot storage) {
        bytes32 slot;
        // We use assembly to calculate the storage slot of the element at index `pos` of the dynamic array `arr`
        // following https://docs.soliditylang.org/en/v0.8.20/internals/layout_in_storage.html#mappings-and-dynamic-arrays.

        /// @solidity memory-safe-assembly
        assembly {
            mstore(0, arr.slot)
            slot := add(keccak256(0, 0x20), pos)
        }
        return slot.getBytes32Slot();
    }

    /**
     * @dev Access an array in an "unsafe" way. Skips solidity "index-out-of-range" check.
     *
     * WARNING: Only use if you are certain `pos` is lower than the array length.
     */
    function unsafeAccess(uint256[] storage arr, uint256 pos) internal pure returns (StorageSlot.Uint256Slot storage) {
        bytes32 slot;
        // We use assembly to calculate the storage slot of the element at index `pos` of the dynamic array `arr`
        // following https://docs.soliditylang.org/en/v0.8.20/internals/layout_in_storage.html#mappings-and-dynamic-arrays.

        /// @solidity memory-safe-assembly
        assembly {
            mstore(0, arr.slot)
            slot := add(keccak256(0, 0x20), pos)
        }
        return slot.getUint256Slot();
    }

    /**
     * @dev Access an array in an "unsafe" way. Skips solidity "index-out-of-range" check.
     *
     * WARNING: Only use if you are certain `pos` is lower than the array length.
     */
    function unsafeMemoryAccess(uint256[] memory arr, uint256 pos) internal pure returns (uint256 res) {
        assembly {
            res := mload(add(add(arr, 0x20), mul(pos, 0x20)))
        }
    }

    /**
     * @dev Access an array in an "unsafe" way. Skips solidity "index-out-of-range" check.
     *
     * WARNING: Only use if you are certain `pos` is lower than the array length.
     */
    function unsafeMemoryAccess(address[] memory arr, uint256 pos) internal pure returns (address res) {
        assembly {
            res := mload(add(add(arr, 0x20), mul(pos, 0x20)))
        }
    }
}

File 7 of 14 : ERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/introspection/ERC165.sol)

pragma solidity ^0.8.20;

import {IERC165} from "./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);
 * }
 * ```
 */
abstract contract ERC165 is IERC165 {
    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual returns (bool) {
        return interfaceId == type(IERC165).interfaceId;
    }
}

File 8 of 14 : Context.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)

pragma solidity ^0.8.20;

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

    function _contextSuffixLength() internal view virtual returns (uint256) {
        return 0;
    }
}

File 9 of 14 : IERC1155MetadataURI.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC1155/extensions/IERC1155MetadataURI.sol)

pragma solidity ^0.8.20;

import {IERC1155} from "../IERC1155.sol";

/**
 * @dev Interface of the optional ERC1155MetadataExtension interface, as defined
 * in the https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[EIP].
 */
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 10 of 14 : IERC1155Receiver.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC1155/IERC1155Receiver.sol)

pragma solidity ^0.8.20;

import {IERC165} from "../../utils/introspection/IERC165.sol";

/**
 * @dev Interface that must be implemented by smart contracts in order to receive
 * ERC-1155 token transfers.
 */
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 (last updated v5.0.1) (token/ERC1155/IERC1155.sol)

pragma solidity ^0.8.20;

import {IERC165} from "../../utils/introspection/IERC165.sol";

/**
 * @dev Required interface of an ERC1155 compliant contract, as defined in the
 * https://eips.ethereum.org/EIPS/eip-1155[EIP].
 */
interface IERC1155 is IERC165 {
    /**
     * @dev Emitted when `value` amount of tokens of 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 value 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 a `value` amount of tokens of type `id` from `from` to `to`.
     *
     * WARNING: This function can potentially allow a reentrancy attack when transferring tokens
     * to an untrusted contract, when invoking {onERC1155Received} on the receiver.
     * Ensure to follow the checks-effects-interactions pattern and consider employing
     * reentrancy guards when interacting with untrusted contracts.
     *
     * Emits a {TransferSingle} event.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - If the caller is not `from`, it must have been approved to spend ``from``'s tokens via {setApprovalForAll}.
     * - `from` must have a balance of tokens of type `id` of at least `value` 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 value, bytes calldata data) external;

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {safeTransferFrom}.
     *
     * WARNING: This function can potentially allow a reentrancy attack when transferring tokens
     * to an untrusted contract, when invoking {onERC1155BatchReceived} on the receiver.
     * Ensure to follow the checks-effects-interactions pattern and consider employing
     * reentrancy guards when interacting with untrusted contracts.
     *
     * Emits either a {TransferSingle} or a {TransferBatch} event, depending on the length of the array arguments.
     *
     * Requirements:
     *
     * - `ids` and `values` 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 values,
        bytes calldata data
    ) external;
}

File 12 of 14 : IERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/introspection/IERC165.sol)

pragma solidity ^0.8.20;

/**
 * @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 13 of 14 : Math.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/math/Math.sol)

pragma solidity ^0.8.20;

/**
 * @dev Standard math utilities missing in the Solidity language.
 */
library Math {
    /**
     * @dev Muldiv operation overflow.
     */
    error MathOverflowedMulDiv();

    enum Rounding {
        Floor, // Toward negative infinity
        Ceil, // Toward positive infinity
        Trunc, // Toward zero
        Expand // Away from zero
    }

    /**
     * @dev Returns the addition of two unsigned integers, with an overflow flag.
     */
    function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            uint256 c = a + b;
            if (c < a) return (false, 0);
            return (true, c);
        }
    }

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

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

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

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

    /**
     * @dev Returns the largest of two numbers.
     */
    function max(uint256 a, uint256 b) internal pure returns (uint256) {
        return a > b ? a : b;
    }

    /**
     * @dev Returns the smallest of two numbers.
     */
    function min(uint256 a, uint256 b) internal pure returns (uint256) {
        return a < b ? a : b;
    }

    /**
     * @dev Returns the average of two numbers. The result is rounded towards
     * zero.
     */
    function average(uint256 a, uint256 b) internal pure returns (uint256) {
        // (a + b) / 2 can overflow.
        return (a & b) + (a ^ b) / 2;
    }

    /**
     * @dev Returns the ceiling of the division of two numbers.
     *
     * This differs from standard division with `/` in that it rounds towards infinity instead
     * of rounding towards zero.
     */
    function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) {
        if (b == 0) {
            // Guarantee the same behavior as in a regular Solidity division.
            return a / b;
        }

        // (a + b - 1) / b can overflow on addition, so we distribute.
        return a == 0 ? 0 : (a - 1) / b + 1;
    }

    /**
     * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or
     * denominator == 0.
     * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv) with further edits by
     * Uniswap Labs also under MIT license.
     */
    function mulDiv(uint256 x, uint256 y, uint256 denominator) internal pure returns (uint256 result) {
        unchecked {
            // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use
            // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256
            // variables such that product = prod1 * 2^256 + prod0.
            uint256 prod0 = x * y; // Least significant 256 bits of the product
            uint256 prod1; // Most significant 256 bits of the product
            assembly {
                let mm := mulmod(x, y, not(0))
                prod1 := sub(sub(mm, prod0), lt(mm, prod0))
            }

            // Handle non-overflow cases, 256 by 256 division.
            if (prod1 == 0) {
                // Solidity will revert if denominator == 0, unlike the div opcode on its own.
                // The surrounding unchecked block does not change this fact.
                // See https://docs.soliditylang.org/en/latest/control-structures.html#checked-or-unchecked-arithmetic.
                return prod0 / denominator;
            }

            // Make sure the result is less than 2^256. Also prevents denominator == 0.
            if (denominator <= prod1) {
                revert MathOverflowedMulDiv();
            }

            ///////////////////////////////////////////////
            // 512 by 256 division.
            ///////////////////////////////////////////////

            // Make division exact by subtracting the remainder from [prod1 prod0].
            uint256 remainder;
            assembly {
                // Compute remainder using mulmod.
                remainder := mulmod(x, y, denominator)

                // Subtract 256 bit number from 512 bit number.
                prod1 := sub(prod1, gt(remainder, prod0))
                prod0 := sub(prod0, remainder)
            }

            // Factor powers of two out of denominator and compute largest power of two divisor of denominator.
            // Always >= 1. See https://cs.stackexchange.com/q/138556/92363.

            uint256 twos = denominator & (0 - denominator);
            assembly {
                // Divide denominator by twos.
                denominator := div(denominator, twos)

                // Divide [prod1 prod0] by twos.
                prod0 := div(prod0, twos)

                // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one.
                twos := add(div(sub(0, twos), twos), 1)
            }

            // Shift in bits from prod1 into prod0.
            prod0 |= prod1 * twos;

            // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such
            // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for
            // four bits. That is, denominator * inv = 1 mod 2^4.
            uint256 inverse = (3 * denominator) ^ 2;

            // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also
            // works in modular arithmetic, doubling the correct bits in each step.
            inverse *= 2 - denominator * inverse; // inverse mod 2^8
            inverse *= 2 - denominator * inverse; // inverse mod 2^16
            inverse *= 2 - denominator * inverse; // inverse mod 2^32
            inverse *= 2 - denominator * inverse; // inverse mod 2^64
            inverse *= 2 - denominator * inverse; // inverse mod 2^128
            inverse *= 2 - denominator * inverse; // inverse mod 2^256

            // Because the division is now exact we can divide by multiplying with the modular inverse of denominator.
            // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is
            // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1
            // is no longer required.
            result = prod0 * inverse;
            return result;
        }
    }

    /**
     * @notice Calculates x * y / denominator with full precision, following the selected rounding direction.
     */
    function mulDiv(uint256 x, uint256 y, uint256 denominator, Rounding rounding) internal pure returns (uint256) {
        uint256 result = mulDiv(x, y, denominator);
        if (unsignedRoundsUp(rounding) && mulmod(x, y, denominator) > 0) {
            result += 1;
        }
        return result;
    }

    /**
     * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded
     * towards zero.
     *
     * Inspired by Henry S. Warren, Jr.'s "Hacker's Delight" (Chapter 11).
     */
    function sqrt(uint256 a) internal pure returns (uint256) {
        if (a == 0) {
            return 0;
        }

        // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target.
        //
        // We know that the "msb" (most significant bit) of our target number `a` is a power of 2 such that we have
        // `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`.
        //
        // This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)`
        // → `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))`
        // → `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)`
        //
        // Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit.
        uint256 result = 1 << (log2(a) >> 1);

        // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128,
        // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at
        // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision
        // into the expected uint128 result.
        unchecked {
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            return min(result, a / result);
        }
    }

    /**
     * @notice Calculates sqrt(a), following the selected rounding direction.
     */
    function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = sqrt(a);
            return result + (unsignedRoundsUp(rounding) && result * result < a ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 2 of a positive value rounded towards zero.
     * Returns 0 if given 0.
     */
    function log2(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >> 128 > 0) {
                value >>= 128;
                result += 128;
            }
            if (value >> 64 > 0) {
                value >>= 64;
                result += 64;
            }
            if (value >> 32 > 0) {
                value >>= 32;
                result += 32;
            }
            if (value >> 16 > 0) {
                value >>= 16;
                result += 16;
            }
            if (value >> 8 > 0) {
                value >>= 8;
                result += 8;
            }
            if (value >> 4 > 0) {
                value >>= 4;
                result += 4;
            }
            if (value >> 2 > 0) {
                value >>= 2;
                result += 2;
            }
            if (value >> 1 > 0) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 2, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log2(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log2(value);
            return result + (unsignedRoundsUp(rounding) && 1 << result < value ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 10 of a positive value rounded towards zero.
     * Returns 0 if given 0.
     */
    function log10(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >= 10 ** 64) {
                value /= 10 ** 64;
                result += 64;
            }
            if (value >= 10 ** 32) {
                value /= 10 ** 32;
                result += 32;
            }
            if (value >= 10 ** 16) {
                value /= 10 ** 16;
                result += 16;
            }
            if (value >= 10 ** 8) {
                value /= 10 ** 8;
                result += 8;
            }
            if (value >= 10 ** 4) {
                value /= 10 ** 4;
                result += 4;
            }
            if (value >= 10 ** 2) {
                value /= 10 ** 2;
                result += 2;
            }
            if (value >= 10 ** 1) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 10, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log10(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log10(value);
            return result + (unsignedRoundsUp(rounding) && 10 ** result < value ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 256 of a positive value rounded towards zero.
     * Returns 0 if given 0.
     *
     * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string.
     */
    function log256(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >> 128 > 0) {
                value >>= 128;
                result += 16;
            }
            if (value >> 64 > 0) {
                value >>= 64;
                result += 8;
            }
            if (value >> 32 > 0) {
                value >>= 32;
                result += 4;
            }
            if (value >> 16 > 0) {
                value >>= 16;
                result += 2;
            }
            if (value >> 8 > 0) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 256, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log256(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log256(value);
            return result + (unsignedRoundsUp(rounding) && 1 << (result << 3) < value ? 1 : 0);
        }
    }

    /**
     * @dev Returns whether a provided rounding mode is considered rounding up for unsigned integers.
     */
    function unsignedRoundsUp(Rounding rounding) internal pure returns (bool) {
        return uint8(rounding) % 2 == 1;
    }
}

File 14 of 14 : StorageSlot.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/StorageSlot.sol)
// This file was procedurally generated from scripts/generate/templates/StorageSlot.js.

pragma solidity ^0.8.20;

/**
 * @dev Library for reading and writing primitive types to specific storage slots.
 *
 * Storage slots are often used to avoid storage conflict when dealing with upgradeable contracts.
 * This library helps with reading and writing to such slots without the need for inline assembly.
 *
 * The functions in this library return Slot structs that contain a `value` member that can be used to read or write.
 *
 * Example usage to set ERC1967 implementation slot:
 * ```solidity
 * contract ERC1967 {
 *     bytes32 internal constant _IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;
 *
 *     function _getImplementation() internal view returns (address) {
 *         return StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value;
 *     }
 *
 *     function _setImplementation(address newImplementation) internal {
 *         require(newImplementation.code.length > 0);
 *         StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation;
 *     }
 * }
 * ```
 */
library StorageSlot {
    struct AddressSlot {
        address value;
    }

    struct BooleanSlot {
        bool value;
    }

    struct Bytes32Slot {
        bytes32 value;
    }

    struct Uint256Slot {
        uint256 value;
    }

    struct StringSlot {
        string value;
    }

    struct BytesSlot {
        bytes value;
    }

    /**
     * @dev Returns an `AddressSlot` with member `value` located at `slot`.
     */
    function getAddressSlot(bytes32 slot) internal pure returns (AddressSlot storage r) {
        /// @solidity memory-safe-assembly
        assembly {
            r.slot := slot
        }
    }

    /**
     * @dev Returns an `BooleanSlot` with member `value` located at `slot`.
     */
    function getBooleanSlot(bytes32 slot) internal pure returns (BooleanSlot storage r) {
        /// @solidity memory-safe-assembly
        assembly {
            r.slot := slot
        }
    }

    /**
     * @dev Returns an `Bytes32Slot` with member `value` located at `slot`.
     */
    function getBytes32Slot(bytes32 slot) internal pure returns (Bytes32Slot storage r) {
        /// @solidity memory-safe-assembly
        assembly {
            r.slot := slot
        }
    }

    /**
     * @dev Returns an `Uint256Slot` with member `value` located at `slot`.
     */
    function getUint256Slot(bytes32 slot) internal pure returns (Uint256Slot storage r) {
        /// @solidity memory-safe-assembly
        assembly {
            r.slot := slot
        }
    }

    /**
     * @dev Returns an `StringSlot` with member `value` located at `slot`.
     */
    function getStringSlot(bytes32 slot) internal pure returns (StringSlot storage r) {
        /// @solidity memory-safe-assembly
        assembly {
            r.slot := slot
        }
    }

    /**
     * @dev Returns an `StringSlot` representation of the string storage pointer `store`.
     */
    function getStringSlot(string storage store) internal pure returns (StringSlot storage r) {
        /// @solidity memory-safe-assembly
        assembly {
            r.slot := store.slot
        }
    }

    /**
     * @dev Returns an `BytesSlot` with member `value` located at `slot`.
     */
    function getBytesSlot(bytes32 slot) internal pure returns (BytesSlot storage r) {
        /// @solidity memory-safe-assembly
        assembly {
            r.slot := slot
        }
    }

    /**
     * @dev Returns an `BytesSlot` representation of the bytes storage pointer `store`.
     */
    function getBytesSlot(bytes storage store) internal pure returns (BytesSlot storage r) {
        /// @solidity memory-safe-assembly
        assembly {
            r.slot := store.slot
        }
    }
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"initialOwner","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"uint256","name":"balance","type":"uint256"},{"internalType":"uint256","name":"needed","type":"uint256"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ERC1155InsufficientBalance","type":"error"},{"inputs":[{"internalType":"address","name":"approver","type":"address"}],"name":"ERC1155InvalidApprover","type":"error"},{"inputs":[{"internalType":"uint256","name":"idsLength","type":"uint256"},{"internalType":"uint256","name":"valuesLength","type":"uint256"}],"name":"ERC1155InvalidArrayLength","type":"error"},{"inputs":[{"internalType":"address","name":"operator","type":"address"}],"name":"ERC1155InvalidOperator","type":"error"},{"inputs":[{"internalType":"address","name":"receiver","type":"address"}],"name":"ERC1155InvalidReceiver","type":"error"},{"inputs":[{"internalType":"address","name":"sender","type":"address"}],"name":"ERC1155InvalidSender","type":"error"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"address","name":"owner","type":"address"}],"name":"ERC1155MissingApprovalForAll","type":"error"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"OwnableInvalidOwner","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"OwnableUnauthorizedAccount","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"indexed":false,"internalType":"uint256[]","name":"values","type":"uint256[]"}],"name":"TransferBatch","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"id","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"TransferSingle","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"value","type":"string"},{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"}],"name":"URI","type":"event"},{"inputs":[{"internalType":"address[]","name":"to","type":"address[]"}],"name":"airDrop","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"accounts","type":"address[]"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"}],"name":"balanceOfBatch","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"values","type":"uint256[]"}],"name":"burnBatch","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_quantity","type":"uint256"}],"name":"mintNFT","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"mintOpen","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mintPrice","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":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"values","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":"value","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":"bool","name":"_mintStatus","type":"bool"}],"name":"setMintOpen","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_mintPrice","type":"uint256"}],"name":"setMintPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"newuri","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":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"uri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60806040525f600455660886c98b7600006005555f60065f6101000a81548160ff0219169083151502179055506040518060400160405280600c81526020017f446f6e616c64205472756d7000000000000000000000000000000000000000008152506007908161007091906104a6565b506040518060400160405280600481526020017f4454323400000000000000000000000000000000000000000000000000000000815250600890816100b591906104a6565b503480156100c1575f5ffd5b506040516136ef3803806136ef83398181016040528101906100e391906105d3565b806040518060600160405280603e81526020016136b1603e913961010c8161019360201b60201c565b505f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff160361017d575f6040517f1e4fbdf7000000000000000000000000000000000000000000000000000000008152600401610174919061060d565b60405180910390fd5b61018c816101a660201b60201c565b5050610626565b80600290816101a291906104a6565b5050565b5f60035f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690508160035f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b5f81519050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602260045260245ffd5b5f60028204905060018216806102e457607f821691505b6020821081036102f7576102f66102a0565b5b50919050565b5f819050815f5260205f209050919050565b5f6020601f8301049050919050565b5f82821b905092915050565b5f600883026103597fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8261031e565b610363868361031e565b95508019841693508086168417925050509392505050565b5f819050919050565b5f819050919050565b5f6103a76103a261039d8461037b565b610384565b61037b565b9050919050565b5f819050919050565b6103c08361038d565b6103d46103cc826103ae565b84845461032a565b825550505050565b5f5f905090565b6103eb6103dc565b6103f68184846103b7565b505050565b5b818110156104195761040e5f826103e3565b6001810190506103fc565b5050565b601f82111561045e5761042f816102fd565b6104388461030f565b81016020851015610447578190505b61045b6104538561030f565b8301826103fb565b50505b505050565b5f82821c905092915050565b5f61047e5f1984600802610463565b1980831691505092915050565b5f610496838361046f565b9150826002028217905092915050565b6104af82610269565b67ffffffffffffffff8111156104c8576104c7610273565b5b6104d282546102cd565b6104dd82828561041d565b5f60209050601f83116001811461050e575f84156104fc578287015190505b610506858261048b565b86555061056d565b601f19841661051c866102fd565b5f5b828110156105435784890151825560018201915060208501945060208101905061051e565b86831015610560578489015161055c601f89168261046f565b8355505b6001600288020188555050505b505050505050565b5f5ffd5b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f6105a282610579565b9050919050565b6105b281610598565b81146105bc575f5ffd5b50565b5f815190506105cd816105a9565b92915050565b5f602082840312156105e8576105e7610575565b5b5f6105f5848285016105bf565b91505092915050565b61060781610598565b82525050565b5f6020820190506106205f8301846105fe565b92915050565b61307e806106335f395ff3fe608060405260043610610148575f3560e01c80636b20c454116100b5578063e985e9c51161006e578063e985e9c514610448578063f242432a14610484578063f2fde38b146104ac578063f4a0a528146104d4578063f5298aca146104fc578063f8004d311461052457610148565b80636b20c45414610366578063715018a61461038e5780638da5cb5b146103a457806395d89b41146103ce5780639b642de1146103f8578063a22cb4651461042057610148565b806324bbd0491161010757806324bbd0491461027c5780632eb2c2d6146102a65780633c168eab146102ce5780633ccfd60b146102ea5780634e1273f4146103005780636817c76c1461033c57610148565b8062b6849f1461014c578062fdd58e1461017457806301ffc9a7146101b057806306fdde03146101ec5780630e89341c1461021657806318160ddd14610252575b5f5ffd5b348015610157575f5ffd5b50610172600480360381019061016d9190612027565b61054c565b005b34801561017f575f5ffd5b5061019a600480360381019061019591906120a1565b610596565b6040516101a791906120ee565b60405180910390f35b3480156101bb575f5ffd5b506101d660048036038101906101d1919061215c565b6105eb565b6040516101e391906121a1565b60405180910390f35b3480156101f7575f5ffd5b506102006106cc565b60405161020d919061221a565b60405180910390f35b348015610221575f5ffd5b5061023c6004803603810190610237919061223a565b610758565b604051610249919061221a565b60405180910390f35b34801561025d575f5ffd5b506102666107ea565b60405161027391906120ee565b60405180910390f35b348015610287575f5ffd5b506102906107f3565b60405161029d91906121a1565b60405180910390f35b3480156102b1575f5ffd5b506102cc60048036038101906102c791906123d5565b610805565b005b6102e860048036038101906102e391906120a1565b6108ac565b005b3480156102f5575f5ffd5b506102fe6109b3565b005b34801561030b575f5ffd5b50610326600480360381019061032191906124a0565b610a01565b60405161033391906125cd565b60405180910390f35b348015610347575f5ffd5b50610350610b0b565b60405161035d91906120ee565b60405180910390f35b348015610371575f5ffd5b5061038c600480360381019061038791906125ed565b610b11565b005b348015610399575f5ffd5b506103a2610bbd565b005b3480156103af575f5ffd5b506103b8610bd0565b6040516103c59190612684565b60405180910390f35b3480156103d9575f5ffd5b506103e2610bf8565b6040516103ef919061221a565b60405180910390f35b348015610403575f5ffd5b5061041e6004803603810190610419919061273b565b610c84565b005b34801561042b575f5ffd5b50610446600480360381019061044191906127ac565b610c98565b005b348015610453575f5ffd5b5061046e600480360381019061046991906127ea565b610cae565b60405161047b91906121a1565b60405180910390f35b34801561048f575f5ffd5b506104aa60048036038101906104a59190612828565b610d3c565b005b3480156104b7575f5ffd5b506104d260048036038101906104cd91906128bb565b610de3565b005b3480156104df575f5ffd5b506104fa60048036038101906104f5919061223a565b610e67565b005b348015610507575f5ffd5b50610522600480360381019061051d91906128e6565b610e79565b005b34801561052f575f5ffd5b5061054a60048036038101906105459190612936565b610f25565b005b610554610f49565b5f5f90505b81518110156105925761058582828151811061057857610577612961565b5b6020026020010151610fd0565b8080600101915050610559565b5050565b5f5f5f8381526020019081526020015f205f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054905092915050565b5f7fd9b67a26000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806106b557507f0e89341c000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806106c557506106c482611009565b5b9050919050565b600780546106d9906129bb565b80601f0160208091040260200160405190810160405280929190818152602001828054610705906129bb565b80156107505780601f1061072757610100808354040283529160200191610750565b820191905f5260205f20905b81548152906001019060200180831161073357829003601f168201915b505050505081565b606060028054610767906129bb565b80601f0160208091040260200160405190810160405280929190818152602001828054610793906129bb565b80156107de5780601f106107b5576101008083540402835291602001916107de565b820191905f5260205f20905b8154815290600101906020018083116107c157829003601f168201915b50505050509050919050565b5f600454905090565b60065f9054906101000a900460ff1681565b5f61080e611072565b90508073ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff161415801561085357506108518682610cae565b155b156108975780866040517fe237d92200000000000000000000000000000000000000000000000000000000815260040161088e9291906129eb565b60405180910390fd5b6108a48686868686611079565b505050505050565b5f81116108ee576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108e590612a5c565b60405180910390fd5b60065f9054906101000a900460ff1661093c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161093390612ac4565b60405180910390fd5b8060055461094a9190612b0f565b341461098b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161098290612b9a565b60405180910390fd5b5f5f90505b818110156109ae576109a183610fd0565b8080600101915050610990565b505050565b6109bb610f49565b3373ffffffffffffffffffffffffffffffffffffffff166108fc4790811502906040515f60405180830381858888f193505050501580156109fe573d5f5f3e3d5ffd5b50565b60608151835114610a4d57815183516040517f5b059991000000000000000000000000000000000000000000000000000000008152600401610a44929190612bb8565b60405180910390fd5b5f835167ffffffffffffffff811115610a6957610a68611e91565b5b604051908082528060200260200182016040528015610a975781602001602082028036833780820191505090505b5090505f5f90505b8451811015610b0057610ad6610abe828761116d90919063ffffffff16565b610ad1838761118090919063ffffffff16565b610596565b828281518110610ae957610ae8612961565b5b602002602001018181525050806001019050610a9f565b508091505092915050565b60055481565b610b19611072565b73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614158015610b625750610b6083610b5b611072565b610cae565b155b15610bad57610b6f611072565b836040517fe237d922000000000000000000000000000000000000000000000000000000008152600401610ba49291906129eb565b60405180910390fd5b610bb8838383611193565b505050565b610bc5610f49565b610bce5f611223565b565b5f60035f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60088054610c05906129bb565b80601f0160208091040260200160405190810160405280929190818152602001828054610c31906129bb565b8015610c7c5780601f10610c5357610100808354040283529160200191610c7c565b820191905f5260205f20905b815481529060010190602001808311610c5f57829003601f168201915b505050505081565b610c8c610f49565b610c95816112e6565b50565b610caa610ca3611072565b83836112f9565b5050565b5f60015f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16905092915050565b5f610d45611072565b90508073ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff1614158015610d8a5750610d888682610cae565b155b15610dce5780866040517fe237d922000000000000000000000000000000000000000000000000000000008152600401610dc59291906129eb565b60405180910390fd5b610ddb8686868686611462565b505050505050565b610deb610f49565b5f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610e5b575f6040517f1e4fbdf7000000000000000000000000000000000000000000000000000000008152600401610e529190612684565b60405180910390fd5b610e6481611223565b50565b610e6f610f49565b8060058190555050565b610e81611072565b73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614158015610eca5750610ec883610ec3611072565b610cae565b155b15610f1557610ed7611072565b836040517fe237d922000000000000000000000000000000000000000000000000000000008152600401610f0c9291906129eb565b60405180910390fd5b610f20838383611568565b505050565b610f2d610f49565b8060065f6101000a81548160ff02191690831515021790555050565b610f51611072565b73ffffffffffffffffffffffffffffffffffffffff16610f6f610bd0565b73ffffffffffffffffffffffffffffffffffffffff1614610fce57610f92611072565b6040517f118cdaa7000000000000000000000000000000000000000000000000000000008152600401610fc59190612684565b60405180910390fd5b565b600160045f828254610fe29190612bdf565b9250508190555061100681600454600160405180602001604052805f81525061160a565b50565b5f7f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b5f33905090565b5f73ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16036110e9575f6040517f57f447ce0000000000000000000000000000000000000000000000000000000081526004016110e09190612684565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1603611159575f6040517f01a835140000000000000000000000000000000000000000000000000000000081526004016111509190612684565b60405180910390fd5b611166858585858561169f565b5050505050565b5f60208202602084010151905092915050565b5f60208202602084010151905092915050565b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603611203575f6040517f01a835140000000000000000000000000000000000000000000000000000000081526004016111fa9190612684565b60405180910390fd5b61121e835f848460405180602001604052805f81525061169f565b505050565b5f60035f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690508160035f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b80600290816112f59190612db2565b5050565b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611369575f6040517fced3e1000000000000000000000000000000000000000000000000000000000081526004016113609190612684565b60405180910390fd5b8060015f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405161145591906121a1565b60405180910390a3505050565b5f73ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16036114d2575f6040517f57f447ce0000000000000000000000000000000000000000000000000000000081526004016114c99190612684565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1603611542575f6040517f01a835140000000000000000000000000000000000000000000000000000000081526004016115399190612684565b60405180910390fd5b5f5f61154e858561174b565b9150915061155f878784848761169f565b50505050505050565b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036115d8575f6040517f01a835140000000000000000000000000000000000000000000000000000000081526004016115cf9190612684565b60405180910390fd5b5f5f6115e4848461174b565b91509150611603855f848460405180602001604052805f81525061169f565b5050505050565b5f73ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff160361167a575f6040517f57f447ce0000000000000000000000000000000000000000000000000000000081526004016116719190612684565b60405180910390fd5b5f5f611686858561174b565b915091506116975f8784848761169f565b505050505050565b6116ab8585858561177b565b5f73ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614611744575f6116e7611072565b90506001845103611733575f6117065f8661118090919063ffffffff16565b90505f61171c5f8661118090919063ffffffff16565b905061172c838989858589611b0e565b5050611742565b611741818787878787611cbd565b5b505b5050505050565b60608060405191506001825283602083015260408201905060018152826020820152604081016040529250929050565b80518251146117c557815181516040517f5b0599910000000000000000000000000000000000000000000000000000000081526004016117bc929190612bb8565b60405180910390fd5b5f6117ce611072565b90505f5f90505b83518110156119cd575f6117f2828661118090919063ffffffff16565b90505f611808838661118090919063ffffffff16565b90505f73ffffffffffffffffffffffffffffffffffffffff168873ffffffffffffffffffffffffffffffffffffffff161461192b575f5f5f8481526020019081526020015f205f8a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20549050818110156118d757888183856040517f03dee4c50000000000000000000000000000000000000000000000000000000081526004016118ce9493929190612e81565b60405180910390fd5b8181035f5f8581526020019081526020015f205f8b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2081905550505b5f73ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff16146119c057805f5f8481526020019081526020015f205f8973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8282546119b89190612bdf565b925050819055505b50508060010190506117d5565b506001835103611a88575f6119eb5f8561118090919063ffffffff16565b90505f611a015f8561118090919063ffffffff16565b90508573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f628585604051611a79929190612bb8565b60405180910390a45050611b07565b8373ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8686604051611afe929190612ec4565b60405180910390a45b5050505050565b5f8473ffffffffffffffffffffffffffffffffffffffff163b1115611cb5578373ffffffffffffffffffffffffffffffffffffffff1663f23a6e6187878686866040518663ffffffff1660e01b8152600401611b6e959493929190612f4b565b6020604051808303815f875af1925050508015611ba957506040513d601f19601f82011682018060405250810190611ba69190612fb7565b60015b611c2a573d805f8114611bd7576040519150601f19603f3d011682016040523d82523d5f602084013e611bdc565b606091505b505f815103611c2257846040517f57f447ce000000000000000000000000000000000000000000000000000000008152600401611c199190612684565b60405180910390fd5b805181602001fd5b63f23a6e6160e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614611cb357846040517f57f447ce000000000000000000000000000000000000000000000000000000008152600401611caa9190612684565b60405180910390fd5b505b505050505050565b5f8473ffffffffffffffffffffffffffffffffffffffff163b1115611e64578373ffffffffffffffffffffffffffffffffffffffff1663bc197c8187878686866040518663ffffffff1660e01b8152600401611d1d959493929190612fe2565b6020604051808303815f875af1925050508015611d5857506040513d601f19601f82011682018060405250810190611d559190612fb7565b60015b611dd9573d805f8114611d86576040519150601f19603f3d011682016040523d82523d5f602084013e611d8b565b606091505b505f815103611dd157846040517f57f447ce000000000000000000000000000000000000000000000000000000008152600401611dc89190612684565b60405180910390fd5b805181602001fd5b63bc197c8160e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614611e6257846040517f57f447ce000000000000000000000000000000000000000000000000000000008152600401611e599190612684565b60405180910390fd5b505b505050505050565b5f604051905090565b5f5ffd5b5f5ffd5b5f5ffd5b5f601f19601f8301169050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b611ec782611e81565b810181811067ffffffffffffffff82111715611ee657611ee5611e91565b5b80604052505050565b5f611ef8611e6c565b9050611f048282611ebe565b919050565b5f67ffffffffffffffff821115611f2357611f22611e91565b5b602082029050602081019050919050565b5f5ffd5b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f611f6182611f38565b9050919050565b611f7181611f57565b8114611f7b575f5ffd5b50565b5f81359050611f8c81611f68565b92915050565b5f611fa4611f9f84611f09565b611eef565b90508083825260208201905060208402830185811115611fc757611fc6611f34565b5b835b81811015611ff05780611fdc8882611f7e565b845260208401935050602081019050611fc9565b5050509392505050565b5f82601f83011261200e5761200d611e7d565b5b813561201e848260208601611f92565b91505092915050565b5f6020828403121561203c5761203b611e75565b5b5f82013567ffffffffffffffff81111561205957612058611e79565b5b61206584828501611ffa565b91505092915050565b5f819050919050565b6120808161206e565b811461208a575f5ffd5b50565b5f8135905061209b81612077565b92915050565b5f5f604083850312156120b7576120b6611e75565b5b5f6120c485828601611f7e565b92505060206120d58582860161208d565b9150509250929050565b6120e88161206e565b82525050565b5f6020820190506121015f8301846120df565b92915050565b5f7fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b61213b81612107565b8114612145575f5ffd5b50565b5f8135905061215681612132565b92915050565b5f6020828403121561217157612170611e75565b5b5f61217e84828501612148565b91505092915050565b5f8115159050919050565b61219b81612187565b82525050565b5f6020820190506121b45f830184612192565b92915050565b5f81519050919050565b5f82825260208201905092915050565b8281835e5f83830152505050565b5f6121ec826121ba565b6121f681856121c4565b93506122068185602086016121d4565b61220f81611e81565b840191505092915050565b5f6020820190508181035f83015261223281846121e2565b905092915050565b5f6020828403121561224f5761224e611e75565b5b5f61225c8482850161208d565b91505092915050565b5f67ffffffffffffffff82111561227f5761227e611e91565b5b602082029050602081019050919050565b5f6122a261229d84612265565b611eef565b905080838252602082019050602084028301858111156122c5576122c4611f34565b5b835b818110156122ee57806122da888261208d565b8452602084019350506020810190506122c7565b5050509392505050565b5f82601f83011261230c5761230b611e7d565b5b813561231c848260208601612290565b91505092915050565b5f5ffd5b5f67ffffffffffffffff82111561234357612342611e91565b5b61234c82611e81565b9050602081019050919050565b828183375f83830152505050565b5f61237961237484612329565b611eef565b90508281526020810184848401111561239557612394612325565b5b6123a0848285612359565b509392505050565b5f82601f8301126123bc576123bb611e7d565b5b81356123cc848260208601612367565b91505092915050565b5f5f5f5f5f60a086880312156123ee576123ed611e75565b5b5f6123fb88828901611f7e565b955050602061240c88828901611f7e565b945050604086013567ffffffffffffffff81111561242d5761242c611e79565b5b612439888289016122f8565b935050606086013567ffffffffffffffff81111561245a57612459611e79565b5b612466888289016122f8565b925050608086013567ffffffffffffffff81111561248757612486611e79565b5b612493888289016123a8565b9150509295509295909350565b5f5f604083850312156124b6576124b5611e75565b5b5f83013567ffffffffffffffff8111156124d3576124d2611e79565b5b6124df85828601611ffa565b925050602083013567ffffffffffffffff811115612500576124ff611e79565b5b61250c858286016122f8565b9150509250929050565b5f81519050919050565b5f82825260208201905092915050565b5f819050602082019050919050565b6125488161206e565b82525050565b5f612559838361253f565b60208301905092915050565b5f602082019050919050565b5f61257b82612516565b6125858185612520565b935061259083612530565b805f5b838110156125c05781516125a7888261254e565b97506125b283612565565b925050600181019050612593565b5085935050505092915050565b5f6020820190508181035f8301526125e58184612571565b905092915050565b5f5f5f6060848603121561260457612603611e75565b5b5f61261186828701611f7e565b935050602084013567ffffffffffffffff81111561263257612631611e79565b5b61263e868287016122f8565b925050604084013567ffffffffffffffff81111561265f5761265e611e79565b5b61266b868287016122f8565b9150509250925092565b61267e81611f57565b82525050565b5f6020820190506126975f830184612675565b92915050565b5f67ffffffffffffffff8211156126b7576126b6611e91565b5b6126c082611e81565b9050602081019050919050565b5f6126df6126da8461269d565b611eef565b9050828152602081018484840111156126fb576126fa612325565b5b612706848285612359565b509392505050565b5f82601f83011261272257612721611e7d565b5b81356127328482602086016126cd565b91505092915050565b5f602082840312156127505761274f611e75565b5b5f82013567ffffffffffffffff81111561276d5761276c611e79565b5b6127798482850161270e565b91505092915050565b61278b81612187565b8114612795575f5ffd5b50565b5f813590506127a681612782565b92915050565b5f5f604083850312156127c2576127c1611e75565b5b5f6127cf85828601611f7e565b92505060206127e085828601612798565b9150509250929050565b5f5f60408385031215612800576127ff611e75565b5b5f61280d85828601611f7e565b925050602061281e85828601611f7e565b9150509250929050565b5f5f5f5f5f60a0868803121561284157612840611e75565b5b5f61284e88828901611f7e565b955050602061285f88828901611f7e565b94505060406128708882890161208d565b93505060606128818882890161208d565b925050608086013567ffffffffffffffff8111156128a2576128a1611e79565b5b6128ae888289016123a8565b9150509295509295909350565b5f602082840312156128d0576128cf611e75565b5b5f6128dd84828501611f7e565b91505092915050565b5f5f5f606084860312156128fd576128fc611e75565b5b5f61290a86828701611f7e565b935050602061291b8682870161208d565b925050604061292c8682870161208d565b9150509250925092565b5f6020828403121561294b5761294a611e75565b5b5f61295884828501612798565b91505092915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602260045260245ffd5b5f60028204905060018216806129d257607f821691505b6020821081036129e5576129e461298e565b5b50919050565b5f6040820190506129fe5f830185612675565b612a0b6020830184612675565b9392505050565b7f4d696e74206174206c656173742031204e46542e0000000000000000000000005f82015250565b5f612a466014836121c4565b9150612a5182612a12565b602082019050919050565b5f6020820190508181035f830152612a7381612a3a565b9050919050565b7f4d696e74206973206e6f74206f70656e2e0000000000000000000000000000005f82015250565b5f612aae6011836121c4565b9150612ab982612a7a565b602082019050919050565b5f6020820190508181035f830152612adb81612aa2565b9050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b5f612b198261206e565b9150612b248361206e565b9250828202612b328161206e565b91508282048414831517612b4957612b48612ae2565b5b5092915050565b7f496e76616c69642076616c75652e0000000000000000000000000000000000005f82015250565b5f612b84600e836121c4565b9150612b8f82612b50565b602082019050919050565b5f6020820190508181035f830152612bb181612b78565b9050919050565b5f604082019050612bcb5f8301856120df565b612bd860208301846120df565b9392505050565b5f612be98261206e565b9150612bf48361206e565b9250828201905080821115612c0c57612c0b612ae2565b5b92915050565b5f819050815f5260205f209050919050565b5f6020601f8301049050919050565b5f82821b905092915050565b5f60088302612c6e7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82612c33565b612c788683612c33565b95508019841693508086168417925050509392505050565b5f819050919050565b5f612cb3612cae612ca98461206e565b612c90565b61206e565b9050919050565b5f819050919050565b612ccc83612c99565b612ce0612cd882612cba565b848454612c3f565b825550505050565b5f5f905090565b612cf7612ce8565b612d02818484612cc3565b505050565b5b81811015612d2557612d1a5f82612cef565b600181019050612d08565b5050565b601f821115612d6a57612d3b81612c12565b612d4484612c24565b81016020851015612d53578190505b612d67612d5f85612c24565b830182612d07565b50505b505050565b5f82821c905092915050565b5f612d8a5f1984600802612d6f565b1980831691505092915050565b5f612da28383612d7b565b9150826002028217905092915050565b612dbb826121ba565b67ffffffffffffffff811115612dd457612dd3611e91565b5b612dde82546129bb565b612de9828285612d29565b5f60209050601f831160018114612e1a575f8415612e08578287015190505b612e128582612d97565b865550612e79565b601f198416612e2886612c12565b5f5b82811015612e4f57848901518255600182019150602085019450602081019050612e2a565b86831015612e6c5784890151612e68601f891682612d7b565b8355505b6001600288020188555050505b505050505050565b5f608082019050612e945f830187612675565b612ea160208301866120df565b612eae60408301856120df565b612ebb60608301846120df565b95945050505050565b5f6040820190508181035f830152612edc8185612571565b90508181036020830152612ef08184612571565b90509392505050565b5f81519050919050565b5f82825260208201905092915050565b5f612f1d82612ef9565b612f278185612f03565b9350612f378185602086016121d4565b612f4081611e81565b840191505092915050565b5f60a082019050612f5e5f830188612675565b612f6b6020830187612675565b612f7860408301866120df565b612f8560608301856120df565b8181036080830152612f978184612f13565b90509695505050505050565b5f81519050612fb181612132565b92915050565b5f60208284031215612fcc57612fcb611e75565b5b5f612fd984828501612fa3565b91505092915050565b5f60a082019050612ff55f830188612675565b6130026020830187612675565b81810360408301526130148186612571565b905081810360608301526130288185612571565b9050818103608083015261303c8184612f13565b9050969550505050505056fea26469706673582212208717b17a53c8e4474e72c1eed92c0e1b7908b900835bbf16bae61028891d021064736f6c634300081c003368747470733a2f2f6d657461646174612d7261696e6572686f7363682e636f646532636861696e2e696f2f6d696e74746865766f74652f64742f7b69647d0000000000000000000000003537763dab69ba36c6cd2124fba117c6c67b5743

Deployed Bytecode

0x608060405260043610610148575f3560e01c80636b20c454116100b5578063e985e9c51161006e578063e985e9c514610448578063f242432a14610484578063f2fde38b146104ac578063f4a0a528146104d4578063f5298aca146104fc578063f8004d311461052457610148565b80636b20c45414610366578063715018a61461038e5780638da5cb5b146103a457806395d89b41146103ce5780639b642de1146103f8578063a22cb4651461042057610148565b806324bbd0491161010757806324bbd0491461027c5780632eb2c2d6146102a65780633c168eab146102ce5780633ccfd60b146102ea5780634e1273f4146103005780636817c76c1461033c57610148565b8062b6849f1461014c578062fdd58e1461017457806301ffc9a7146101b057806306fdde03146101ec5780630e89341c1461021657806318160ddd14610252575b5f5ffd5b348015610157575f5ffd5b50610172600480360381019061016d9190612027565b61054c565b005b34801561017f575f5ffd5b5061019a600480360381019061019591906120a1565b610596565b6040516101a791906120ee565b60405180910390f35b3480156101bb575f5ffd5b506101d660048036038101906101d1919061215c565b6105eb565b6040516101e391906121a1565b60405180910390f35b3480156101f7575f5ffd5b506102006106cc565b60405161020d919061221a565b60405180910390f35b348015610221575f5ffd5b5061023c6004803603810190610237919061223a565b610758565b604051610249919061221a565b60405180910390f35b34801561025d575f5ffd5b506102666107ea565b60405161027391906120ee565b60405180910390f35b348015610287575f5ffd5b506102906107f3565b60405161029d91906121a1565b60405180910390f35b3480156102b1575f5ffd5b506102cc60048036038101906102c791906123d5565b610805565b005b6102e860048036038101906102e391906120a1565b6108ac565b005b3480156102f5575f5ffd5b506102fe6109b3565b005b34801561030b575f5ffd5b50610326600480360381019061032191906124a0565b610a01565b60405161033391906125cd565b60405180910390f35b348015610347575f5ffd5b50610350610b0b565b60405161035d91906120ee565b60405180910390f35b348015610371575f5ffd5b5061038c600480360381019061038791906125ed565b610b11565b005b348015610399575f5ffd5b506103a2610bbd565b005b3480156103af575f5ffd5b506103b8610bd0565b6040516103c59190612684565b60405180910390f35b3480156103d9575f5ffd5b506103e2610bf8565b6040516103ef919061221a565b60405180910390f35b348015610403575f5ffd5b5061041e6004803603810190610419919061273b565b610c84565b005b34801561042b575f5ffd5b50610446600480360381019061044191906127ac565b610c98565b005b348015610453575f5ffd5b5061046e600480360381019061046991906127ea565b610cae565b60405161047b91906121a1565b60405180910390f35b34801561048f575f5ffd5b506104aa60048036038101906104a59190612828565b610d3c565b005b3480156104b7575f5ffd5b506104d260048036038101906104cd91906128bb565b610de3565b005b3480156104df575f5ffd5b506104fa60048036038101906104f5919061223a565b610e67565b005b348015610507575f5ffd5b50610522600480360381019061051d91906128e6565b610e79565b005b34801561052f575f5ffd5b5061054a60048036038101906105459190612936565b610f25565b005b610554610f49565b5f5f90505b81518110156105925761058582828151811061057857610577612961565b5b6020026020010151610fd0565b8080600101915050610559565b5050565b5f5f5f8381526020019081526020015f205f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054905092915050565b5f7fd9b67a26000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806106b557507f0e89341c000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806106c557506106c482611009565b5b9050919050565b600780546106d9906129bb565b80601f0160208091040260200160405190810160405280929190818152602001828054610705906129bb565b80156107505780601f1061072757610100808354040283529160200191610750565b820191905f5260205f20905b81548152906001019060200180831161073357829003601f168201915b505050505081565b606060028054610767906129bb565b80601f0160208091040260200160405190810160405280929190818152602001828054610793906129bb565b80156107de5780601f106107b5576101008083540402835291602001916107de565b820191905f5260205f20905b8154815290600101906020018083116107c157829003601f168201915b50505050509050919050565b5f600454905090565b60065f9054906101000a900460ff1681565b5f61080e611072565b90508073ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff161415801561085357506108518682610cae565b155b156108975780866040517fe237d92200000000000000000000000000000000000000000000000000000000815260040161088e9291906129eb565b60405180910390fd5b6108a48686868686611079565b505050505050565b5f81116108ee576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108e590612a5c565b60405180910390fd5b60065f9054906101000a900460ff1661093c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161093390612ac4565b60405180910390fd5b8060055461094a9190612b0f565b341461098b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161098290612b9a565b60405180910390fd5b5f5f90505b818110156109ae576109a183610fd0565b8080600101915050610990565b505050565b6109bb610f49565b3373ffffffffffffffffffffffffffffffffffffffff166108fc4790811502906040515f60405180830381858888f193505050501580156109fe573d5f5f3e3d5ffd5b50565b60608151835114610a4d57815183516040517f5b059991000000000000000000000000000000000000000000000000000000008152600401610a44929190612bb8565b60405180910390fd5b5f835167ffffffffffffffff811115610a6957610a68611e91565b5b604051908082528060200260200182016040528015610a975781602001602082028036833780820191505090505b5090505f5f90505b8451811015610b0057610ad6610abe828761116d90919063ffffffff16565b610ad1838761118090919063ffffffff16565b610596565b828281518110610ae957610ae8612961565b5b602002602001018181525050806001019050610a9f565b508091505092915050565b60055481565b610b19611072565b73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614158015610b625750610b6083610b5b611072565b610cae565b155b15610bad57610b6f611072565b836040517fe237d922000000000000000000000000000000000000000000000000000000008152600401610ba49291906129eb565b60405180910390fd5b610bb8838383611193565b505050565b610bc5610f49565b610bce5f611223565b565b5f60035f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60088054610c05906129bb565b80601f0160208091040260200160405190810160405280929190818152602001828054610c31906129bb565b8015610c7c5780601f10610c5357610100808354040283529160200191610c7c565b820191905f5260205f20905b815481529060010190602001808311610c5f57829003601f168201915b505050505081565b610c8c610f49565b610c95816112e6565b50565b610caa610ca3611072565b83836112f9565b5050565b5f60015f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16905092915050565b5f610d45611072565b90508073ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff1614158015610d8a5750610d888682610cae565b155b15610dce5780866040517fe237d922000000000000000000000000000000000000000000000000000000008152600401610dc59291906129eb565b60405180910390fd5b610ddb8686868686611462565b505050505050565b610deb610f49565b5f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610e5b575f6040517f1e4fbdf7000000000000000000000000000000000000000000000000000000008152600401610e529190612684565b60405180910390fd5b610e6481611223565b50565b610e6f610f49565b8060058190555050565b610e81611072565b73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614158015610eca5750610ec883610ec3611072565b610cae565b155b15610f1557610ed7611072565b836040517fe237d922000000000000000000000000000000000000000000000000000000008152600401610f0c9291906129eb565b60405180910390fd5b610f20838383611568565b505050565b610f2d610f49565b8060065f6101000a81548160ff02191690831515021790555050565b610f51611072565b73ffffffffffffffffffffffffffffffffffffffff16610f6f610bd0565b73ffffffffffffffffffffffffffffffffffffffff1614610fce57610f92611072565b6040517f118cdaa7000000000000000000000000000000000000000000000000000000008152600401610fc59190612684565b60405180910390fd5b565b600160045f828254610fe29190612bdf565b9250508190555061100681600454600160405180602001604052805f81525061160a565b50565b5f7f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b5f33905090565b5f73ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16036110e9575f6040517f57f447ce0000000000000000000000000000000000000000000000000000000081526004016110e09190612684565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1603611159575f6040517f01a835140000000000000000000000000000000000000000000000000000000081526004016111509190612684565b60405180910390fd5b611166858585858561169f565b5050505050565b5f60208202602084010151905092915050565b5f60208202602084010151905092915050565b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603611203575f6040517f01a835140000000000000000000000000000000000000000000000000000000081526004016111fa9190612684565b60405180910390fd5b61121e835f848460405180602001604052805f81525061169f565b505050565b5f60035f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690508160035f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b80600290816112f59190612db2565b5050565b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611369575f6040517fced3e1000000000000000000000000000000000000000000000000000000000081526004016113609190612684565b60405180910390fd5b8060015f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405161145591906121a1565b60405180910390a3505050565b5f73ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16036114d2575f6040517f57f447ce0000000000000000000000000000000000000000000000000000000081526004016114c99190612684565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1603611542575f6040517f01a835140000000000000000000000000000000000000000000000000000000081526004016115399190612684565b60405180910390fd5b5f5f61154e858561174b565b9150915061155f878784848761169f565b50505050505050565b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036115d8575f6040517f01a835140000000000000000000000000000000000000000000000000000000081526004016115cf9190612684565b60405180910390fd5b5f5f6115e4848461174b565b91509150611603855f848460405180602001604052805f81525061169f565b5050505050565b5f73ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff160361167a575f6040517f57f447ce0000000000000000000000000000000000000000000000000000000081526004016116719190612684565b60405180910390fd5b5f5f611686858561174b565b915091506116975f8784848761169f565b505050505050565b6116ab8585858561177b565b5f73ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614611744575f6116e7611072565b90506001845103611733575f6117065f8661118090919063ffffffff16565b90505f61171c5f8661118090919063ffffffff16565b905061172c838989858589611b0e565b5050611742565b611741818787878787611cbd565b5b505b5050505050565b60608060405191506001825283602083015260408201905060018152826020820152604081016040529250929050565b80518251146117c557815181516040517f5b0599910000000000000000000000000000000000000000000000000000000081526004016117bc929190612bb8565b60405180910390fd5b5f6117ce611072565b90505f5f90505b83518110156119cd575f6117f2828661118090919063ffffffff16565b90505f611808838661118090919063ffffffff16565b90505f73ffffffffffffffffffffffffffffffffffffffff168873ffffffffffffffffffffffffffffffffffffffff161461192b575f5f5f8481526020019081526020015f205f8a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20549050818110156118d757888183856040517f03dee4c50000000000000000000000000000000000000000000000000000000081526004016118ce9493929190612e81565b60405180910390fd5b8181035f5f8581526020019081526020015f205f8b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2081905550505b5f73ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff16146119c057805f5f8481526020019081526020015f205f8973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8282546119b89190612bdf565b925050819055505b50508060010190506117d5565b506001835103611a88575f6119eb5f8561118090919063ffffffff16565b90505f611a015f8561118090919063ffffffff16565b90508573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f628585604051611a79929190612bb8565b60405180910390a45050611b07565b8373ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8686604051611afe929190612ec4565b60405180910390a45b5050505050565b5f8473ffffffffffffffffffffffffffffffffffffffff163b1115611cb5578373ffffffffffffffffffffffffffffffffffffffff1663f23a6e6187878686866040518663ffffffff1660e01b8152600401611b6e959493929190612f4b565b6020604051808303815f875af1925050508015611ba957506040513d601f19601f82011682018060405250810190611ba69190612fb7565b60015b611c2a573d805f8114611bd7576040519150601f19603f3d011682016040523d82523d5f602084013e611bdc565b606091505b505f815103611c2257846040517f57f447ce000000000000000000000000000000000000000000000000000000008152600401611c199190612684565b60405180910390fd5b805181602001fd5b63f23a6e6160e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614611cb357846040517f57f447ce000000000000000000000000000000000000000000000000000000008152600401611caa9190612684565b60405180910390fd5b505b505050505050565b5f8473ffffffffffffffffffffffffffffffffffffffff163b1115611e64578373ffffffffffffffffffffffffffffffffffffffff1663bc197c8187878686866040518663ffffffff1660e01b8152600401611d1d959493929190612fe2565b6020604051808303815f875af1925050508015611d5857506040513d601f19601f82011682018060405250810190611d559190612fb7565b60015b611dd9573d805f8114611d86576040519150601f19603f3d011682016040523d82523d5f602084013e611d8b565b606091505b505f815103611dd157846040517f57f447ce000000000000000000000000000000000000000000000000000000008152600401611dc89190612684565b60405180910390fd5b805181602001fd5b63bc197c8160e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614611e6257846040517f57f447ce000000000000000000000000000000000000000000000000000000008152600401611e599190612684565b60405180910390fd5b505b505050505050565b5f604051905090565b5f5ffd5b5f5ffd5b5f5ffd5b5f601f19601f8301169050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b611ec782611e81565b810181811067ffffffffffffffff82111715611ee657611ee5611e91565b5b80604052505050565b5f611ef8611e6c565b9050611f048282611ebe565b919050565b5f67ffffffffffffffff821115611f2357611f22611e91565b5b602082029050602081019050919050565b5f5ffd5b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f611f6182611f38565b9050919050565b611f7181611f57565b8114611f7b575f5ffd5b50565b5f81359050611f8c81611f68565b92915050565b5f611fa4611f9f84611f09565b611eef565b90508083825260208201905060208402830185811115611fc757611fc6611f34565b5b835b81811015611ff05780611fdc8882611f7e565b845260208401935050602081019050611fc9565b5050509392505050565b5f82601f83011261200e5761200d611e7d565b5b813561201e848260208601611f92565b91505092915050565b5f6020828403121561203c5761203b611e75565b5b5f82013567ffffffffffffffff81111561205957612058611e79565b5b61206584828501611ffa565b91505092915050565b5f819050919050565b6120808161206e565b811461208a575f5ffd5b50565b5f8135905061209b81612077565b92915050565b5f5f604083850312156120b7576120b6611e75565b5b5f6120c485828601611f7e565b92505060206120d58582860161208d565b9150509250929050565b6120e88161206e565b82525050565b5f6020820190506121015f8301846120df565b92915050565b5f7fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b61213b81612107565b8114612145575f5ffd5b50565b5f8135905061215681612132565b92915050565b5f6020828403121561217157612170611e75565b5b5f61217e84828501612148565b91505092915050565b5f8115159050919050565b61219b81612187565b82525050565b5f6020820190506121b45f830184612192565b92915050565b5f81519050919050565b5f82825260208201905092915050565b8281835e5f83830152505050565b5f6121ec826121ba565b6121f681856121c4565b93506122068185602086016121d4565b61220f81611e81565b840191505092915050565b5f6020820190508181035f83015261223281846121e2565b905092915050565b5f6020828403121561224f5761224e611e75565b5b5f61225c8482850161208d565b91505092915050565b5f67ffffffffffffffff82111561227f5761227e611e91565b5b602082029050602081019050919050565b5f6122a261229d84612265565b611eef565b905080838252602082019050602084028301858111156122c5576122c4611f34565b5b835b818110156122ee57806122da888261208d565b8452602084019350506020810190506122c7565b5050509392505050565b5f82601f83011261230c5761230b611e7d565b5b813561231c848260208601612290565b91505092915050565b5f5ffd5b5f67ffffffffffffffff82111561234357612342611e91565b5b61234c82611e81565b9050602081019050919050565b828183375f83830152505050565b5f61237961237484612329565b611eef565b90508281526020810184848401111561239557612394612325565b5b6123a0848285612359565b509392505050565b5f82601f8301126123bc576123bb611e7d565b5b81356123cc848260208601612367565b91505092915050565b5f5f5f5f5f60a086880312156123ee576123ed611e75565b5b5f6123fb88828901611f7e565b955050602061240c88828901611f7e565b945050604086013567ffffffffffffffff81111561242d5761242c611e79565b5b612439888289016122f8565b935050606086013567ffffffffffffffff81111561245a57612459611e79565b5b612466888289016122f8565b925050608086013567ffffffffffffffff81111561248757612486611e79565b5b612493888289016123a8565b9150509295509295909350565b5f5f604083850312156124b6576124b5611e75565b5b5f83013567ffffffffffffffff8111156124d3576124d2611e79565b5b6124df85828601611ffa565b925050602083013567ffffffffffffffff811115612500576124ff611e79565b5b61250c858286016122f8565b9150509250929050565b5f81519050919050565b5f82825260208201905092915050565b5f819050602082019050919050565b6125488161206e565b82525050565b5f612559838361253f565b60208301905092915050565b5f602082019050919050565b5f61257b82612516565b6125858185612520565b935061259083612530565b805f5b838110156125c05781516125a7888261254e565b97506125b283612565565b925050600181019050612593565b5085935050505092915050565b5f6020820190508181035f8301526125e58184612571565b905092915050565b5f5f5f6060848603121561260457612603611e75565b5b5f61261186828701611f7e565b935050602084013567ffffffffffffffff81111561263257612631611e79565b5b61263e868287016122f8565b925050604084013567ffffffffffffffff81111561265f5761265e611e79565b5b61266b868287016122f8565b9150509250925092565b61267e81611f57565b82525050565b5f6020820190506126975f830184612675565b92915050565b5f67ffffffffffffffff8211156126b7576126b6611e91565b5b6126c082611e81565b9050602081019050919050565b5f6126df6126da8461269d565b611eef565b9050828152602081018484840111156126fb576126fa612325565b5b612706848285612359565b509392505050565b5f82601f83011261272257612721611e7d565b5b81356127328482602086016126cd565b91505092915050565b5f602082840312156127505761274f611e75565b5b5f82013567ffffffffffffffff81111561276d5761276c611e79565b5b6127798482850161270e565b91505092915050565b61278b81612187565b8114612795575f5ffd5b50565b5f813590506127a681612782565b92915050565b5f5f604083850312156127c2576127c1611e75565b5b5f6127cf85828601611f7e565b92505060206127e085828601612798565b9150509250929050565b5f5f60408385031215612800576127ff611e75565b5b5f61280d85828601611f7e565b925050602061281e85828601611f7e565b9150509250929050565b5f5f5f5f5f60a0868803121561284157612840611e75565b5b5f61284e88828901611f7e565b955050602061285f88828901611f7e565b94505060406128708882890161208d565b93505060606128818882890161208d565b925050608086013567ffffffffffffffff8111156128a2576128a1611e79565b5b6128ae888289016123a8565b9150509295509295909350565b5f602082840312156128d0576128cf611e75565b5b5f6128dd84828501611f7e565b91505092915050565b5f5f5f606084860312156128fd576128fc611e75565b5b5f61290a86828701611f7e565b935050602061291b8682870161208d565b925050604061292c8682870161208d565b9150509250925092565b5f6020828403121561294b5761294a611e75565b5b5f61295884828501612798565b91505092915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602260045260245ffd5b5f60028204905060018216806129d257607f821691505b6020821081036129e5576129e461298e565b5b50919050565b5f6040820190506129fe5f830185612675565b612a0b6020830184612675565b9392505050565b7f4d696e74206174206c656173742031204e46542e0000000000000000000000005f82015250565b5f612a466014836121c4565b9150612a5182612a12565b602082019050919050565b5f6020820190508181035f830152612a7381612a3a565b9050919050565b7f4d696e74206973206e6f74206f70656e2e0000000000000000000000000000005f82015250565b5f612aae6011836121c4565b9150612ab982612a7a565b602082019050919050565b5f6020820190508181035f830152612adb81612aa2565b9050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b5f612b198261206e565b9150612b248361206e565b9250828202612b328161206e565b91508282048414831517612b4957612b48612ae2565b5b5092915050565b7f496e76616c69642076616c75652e0000000000000000000000000000000000005f82015250565b5f612b84600e836121c4565b9150612b8f82612b50565b602082019050919050565b5f6020820190508181035f830152612bb181612b78565b9050919050565b5f604082019050612bcb5f8301856120df565b612bd860208301846120df565b9392505050565b5f612be98261206e565b9150612bf48361206e565b9250828201905080821115612c0c57612c0b612ae2565b5b92915050565b5f819050815f5260205f209050919050565b5f6020601f8301049050919050565b5f82821b905092915050565b5f60088302612c6e7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82612c33565b612c788683612c33565b95508019841693508086168417925050509392505050565b5f819050919050565b5f612cb3612cae612ca98461206e565b612c90565b61206e565b9050919050565b5f819050919050565b612ccc83612c99565b612ce0612cd882612cba565b848454612c3f565b825550505050565b5f5f905090565b612cf7612ce8565b612d02818484612cc3565b505050565b5b81811015612d2557612d1a5f82612cef565b600181019050612d08565b5050565b601f821115612d6a57612d3b81612c12565b612d4484612c24565b81016020851015612d53578190505b612d67612d5f85612c24565b830182612d07565b50505b505050565b5f82821c905092915050565b5f612d8a5f1984600802612d6f565b1980831691505092915050565b5f612da28383612d7b565b9150826002028217905092915050565b612dbb826121ba565b67ffffffffffffffff811115612dd457612dd3611e91565b5b612dde82546129bb565b612de9828285612d29565b5f60209050601f831160018114612e1a575f8415612e08578287015190505b612e128582612d97565b865550612e79565b601f198416612e2886612c12565b5f5b82811015612e4f57848901518255600182019150602085019450602081019050612e2a565b86831015612e6c5784890151612e68601f891682612d7b565b8355505b6001600288020188555050505b505050505050565b5f608082019050612e945f830187612675565b612ea160208301866120df565b612eae60408301856120df565b612ebb60608301846120df565b95945050505050565b5f6040820190508181035f830152612edc8185612571565b90508181036020830152612ef08184612571565b90509392505050565b5f81519050919050565b5f82825260208201905092915050565b5f612f1d82612ef9565b612f278185612f03565b9350612f378185602086016121d4565b612f4081611e81565b840191505092915050565b5f60a082019050612f5e5f830188612675565b612f6b6020830187612675565b612f7860408301866120df565b612f8560608301856120df565b8181036080830152612f978184612f13565b90509695505050505050565b5f81519050612fb181612132565b92915050565b5f60208284031215612fcc57612fcb611e75565b5b5f612fd984828501612fa3565b91505092915050565b5f60a082019050612ff55f830188612675565b6130026020830187612675565b81810360408301526130148186612571565b905081810360608301526130288185612571565b9050818103608083015261303c8184612f13565b9050969550505050505056fea26469706673582212208717b17a53c8e4474e72c1eed92c0e1b7908b900835bbf16bae61028891d021064736f6c634300081c0033

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

0000000000000000000000003537763dab69ba36c6cd2124fba117c6c67b5743

-----Decoded View---------------
Arg [0] : initialOwner (address): 0x3537763dAb69BA36c6CD2124fba117C6c67b5743

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 0000000000000000000000003537763dab69ba36c6cd2124fba117c6c67b5743


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.